squarex-ui-component-lib 1.0.3 → 1.0.5

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 (279) hide show
  1. package/dist/charts/components/ui/Avatar/Avatar.types.d.ts +1 -1
  2. package/dist/charts/components/ui/Avatar/Avatar.types.d.ts.map +1 -1
  3. package/dist/charts/components/ui/Avatar/AvatarBlock.d.ts +13 -0
  4. package/dist/charts/components/ui/Avatar/AvatarBlock.d.ts.map +1 -0
  5. package/dist/charts/components/ui/Avatar/AvatarGroup.d.ts +14 -0
  6. package/dist/charts/components/ui/Avatar/AvatarGroup.d.ts.map +1 -0
  7. package/dist/charts/components/ui/Avatar/index.d.ts +3 -1
  8. package/dist/charts/components/ui/Avatar/index.d.ts.map +1 -1
  9. package/dist/charts/components/ui/Breadcrumb/Breadcrumb.d.ts +1 -1
  10. package/dist/charts/components/ui/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  11. package/dist/charts/components/ui/Button/Button.d.ts.map +1 -1
  12. package/dist/charts/components/ui/ButtonDanger/ButtonDanger.d.ts.map +1 -1
  13. package/dist/charts/components/ui/Cell/Cell.d.ts.map +1 -1
  14. package/dist/charts/components/ui/Checkbox/Checkbox.d.ts.map +1 -1
  15. package/dist/charts/components/ui/IconButton/IconButton.d.ts.map +1 -1
  16. package/dist/charts/components/ui/InputField/InputField.d.ts +5 -0
  17. package/dist/charts/components/ui/InputField/InputField.d.ts.map +1 -0
  18. package/dist/charts/components/ui/InputField/InputField.types.d.ts +27 -0
  19. package/dist/charts/components/ui/InputField/InputField.types.d.ts.map +1 -0
  20. package/dist/charts/components/ui/InputField/index.d.ts +3 -0
  21. package/dist/charts/components/ui/InputField/index.d.ts.map +1 -0
  22. package/dist/charts/components/ui/ListSearch/ListSearch.d.ts +5 -0
  23. package/dist/charts/components/ui/ListSearch/ListSearch.d.ts.map +1 -0
  24. package/dist/charts/components/ui/ListSearch/ListSearch.types.d.ts +2 -0
  25. package/dist/charts/components/ui/ListSearch/ListSearch.types.d.ts.map +1 -0
  26. package/dist/charts/components/ui/ListSearch/index.d.ts +3 -0
  27. package/dist/charts/components/ui/ListSearch/index.d.ts.map +1 -0
  28. package/dist/charts/components/ui/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  29. package/dist/charts/components/ui/StatusIndicator/StatusIndicator.types.d.ts +1 -1
  30. package/dist/charts/components/ui/StatusIndicator/StatusIndicator.types.d.ts.map +1 -1
  31. package/dist/charts/components/ui/TextArea/TextArea.d.ts +0 -9
  32. package/dist/charts/components/ui/TextArea/TextArea.d.ts.map +1 -1
  33. package/dist/charts/components/ui/Toast/Toast.d.ts +11 -0
  34. package/dist/charts/components/ui/Toast/Toast.d.ts.map +1 -0
  35. package/dist/charts/components/ui/Toast/Toast.types.d.ts +2 -0
  36. package/dist/charts/components/ui/Toast/Toast.types.d.ts.map +1 -0
  37. package/dist/charts/components/ui/Toast/index.d.ts +3 -0
  38. package/dist/charts/components/ui/Toast/index.d.ts.map +1 -0
  39. package/dist/charts/components/ui/index.d.ts +8 -2
  40. package/dist/charts/components/ui/index.d.ts.map +1 -1
  41. package/dist/charts/index.d.ts +3 -0
  42. package/dist/charts/index.d.ts.map +1 -1
  43. package/dist/charts/tokens/core/breakpoints.d.ts +23 -0
  44. package/dist/charts/tokens/core/breakpoints.d.ts.map +1 -0
  45. package/dist/charts/tokens/core/colors.d.ts +186 -0
  46. package/dist/charts/tokens/core/colors.d.ts.map +1 -0
  47. package/dist/charts/tokens/core/index.d.ts +20 -0
  48. package/dist/charts/tokens/core/index.d.ts.map +1 -0
  49. package/dist/charts/tokens/core/spacing.d.ts +105 -0
  50. package/dist/charts/tokens/core/spacing.d.ts.map +1 -0
  51. package/dist/charts/tokens/core/typography.d.ts +52 -0
  52. package/dist/charts/tokens/core/typography.d.ts.map +1 -0
  53. package/dist/charts/tokens/index.d.ts +1646 -0
  54. package/dist/charts/tokens/index.d.ts.map +1 -0
  55. package/dist/charts/tokens/js/tokens.d.ts +482 -0
  56. package/dist/charts/tokens/js/tokens.d.ts.map +1 -0
  57. package/dist/charts/tokens/semantic/colors.d.ts +320 -0
  58. package/dist/charts/tokens/semantic/colors.d.ts.map +1 -0
  59. package/dist/charts/tokens/semantic/effects.d.ts +62 -0
  60. package/dist/charts/tokens/semantic/effects.d.ts.map +1 -0
  61. package/dist/charts/tokens/semantic/index.d.ts +18 -0
  62. package/dist/charts/tokens/semantic/index.d.ts.map +1 -0
  63. package/dist/charts/tokens/semantic/typography.d.ts +266 -0
  64. package/dist/charts/tokens/semantic/typography.d.ts.map +1 -0
  65. package/dist/charts/tokens/tailwind/config.d.ts +151 -0
  66. package/dist/charts/tokens/tailwind/config.d.ts.map +1 -0
  67. package/dist/charts/tokens/tailwind/index.d.ts +7 -0
  68. package/dist/charts/tokens/tailwind/index.d.ts.map +1 -0
  69. package/dist/charts/tokens/themes/dark.d.ts +308 -0
  70. package/dist/charts/tokens/themes/dark.d.ts.map +1 -0
  71. package/dist/charts/tokens/themes/index.d.ts +9 -0
  72. package/dist/charts/tokens/themes/index.d.ts.map +1 -0
  73. package/dist/charts/tokens/themes/light.d.ts +308 -0
  74. package/dist/charts/tokens/themes/light.d.ts.map +1 -0
  75. package/dist/charts/tokens/utils/cssVariables.d.ts +26 -0
  76. package/dist/charts/tokens/utils/cssVariables.d.ts.map +1 -0
  77. package/dist/charts/tokens/utils/hooks.d.ts +773 -0
  78. package/dist/charts/tokens/utils/hooks.d.ts.map +1 -0
  79. package/dist/charts/tokens/utils/index.d.ts +7 -0
  80. package/dist/charts/tokens/utils/index.d.ts.map +1 -0
  81. package/dist/charts/types/ui.d.ts +42 -1
  82. package/dist/charts/types/ui.d.ts.map +1 -1
  83. package/dist/components/ui/Avatar/Avatar.types.d.ts +1 -1
  84. package/dist/components/ui/Avatar/Avatar.types.d.ts.map +1 -1
  85. package/dist/components/ui/Avatar/AvatarBlock.d.ts +13 -0
  86. package/dist/components/ui/Avatar/AvatarBlock.d.ts.map +1 -0
  87. package/dist/components/ui/Avatar/AvatarGroup.d.ts +14 -0
  88. package/dist/components/ui/Avatar/AvatarGroup.d.ts.map +1 -0
  89. package/dist/components/ui/Avatar/index.d.ts +3 -1
  90. package/dist/components/ui/Avatar/index.d.ts.map +1 -1
  91. package/dist/components/ui/Breadcrumb/Breadcrumb.d.ts +1 -1
  92. package/dist/components/ui/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  93. package/dist/components/ui/Button/Button.d.ts.map +1 -1
  94. package/dist/components/ui/ButtonDanger/ButtonDanger.d.ts.map +1 -1
  95. package/dist/components/ui/Cell/Cell.d.ts.map +1 -1
  96. package/dist/components/ui/Checkbox/Checkbox.d.ts.map +1 -1
  97. package/dist/components/ui/IconButton/IconButton.d.ts.map +1 -1
  98. package/dist/components/ui/InputField/InputField.d.ts +5 -0
  99. package/dist/components/ui/InputField/InputField.d.ts.map +1 -0
  100. package/dist/components/ui/InputField/InputField.types.d.ts +27 -0
  101. package/dist/components/ui/InputField/InputField.types.d.ts.map +1 -0
  102. package/dist/components/ui/InputField/index.d.ts +3 -0
  103. package/dist/components/ui/InputField/index.d.ts.map +1 -0
  104. package/dist/components/ui/ListSearch/ListSearch.d.ts +5 -0
  105. package/dist/components/ui/ListSearch/ListSearch.d.ts.map +1 -0
  106. package/dist/components/ui/ListSearch/ListSearch.types.d.ts +2 -0
  107. package/dist/components/ui/ListSearch/ListSearch.types.d.ts.map +1 -0
  108. package/dist/components/ui/ListSearch/index.d.ts +3 -0
  109. package/dist/components/ui/ListSearch/index.d.ts.map +1 -0
  110. package/dist/components/ui/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  111. package/dist/components/ui/StatusIndicator/StatusIndicator.types.d.ts +1 -1
  112. package/dist/components/ui/StatusIndicator/StatusIndicator.types.d.ts.map +1 -1
  113. package/dist/components/ui/TextArea/TextArea.d.ts +0 -9
  114. package/dist/components/ui/TextArea/TextArea.d.ts.map +1 -1
  115. package/dist/components/ui/Toast/Toast.d.ts +11 -0
  116. package/dist/components/ui/Toast/Toast.d.ts.map +1 -0
  117. package/dist/components/ui/Toast/Toast.types.d.ts +2 -0
  118. package/dist/components/ui/Toast/Toast.types.d.ts.map +1 -0
  119. package/dist/components/ui/Toast/index.d.ts +3 -0
  120. package/dist/components/ui/Toast/index.d.ts.map +1 -0
  121. package/dist/components/ui/index.d.ts +8 -2
  122. package/dist/components/ui/index.d.ts.map +1 -1
  123. package/dist/index.css +1 -1
  124. package/dist/index.d.ts +3 -0
  125. package/dist/index.d.ts.map +1 -1
  126. package/dist/index.esm.css +1 -1
  127. package/dist/index.esm.js +1 -1
  128. package/dist/index.esm.js.map +1 -1
  129. package/dist/index.js +1 -1
  130. package/dist/index.js.map +1 -1
  131. package/dist/tokens/core/breakpoints.d.ts +23 -0
  132. package/dist/tokens/core/breakpoints.d.ts.map +1 -0
  133. package/dist/tokens/core/colors.d.ts +186 -0
  134. package/dist/tokens/core/colors.d.ts.map +1 -0
  135. package/dist/tokens/core/index.d.ts +20 -0
  136. package/dist/tokens/core/index.d.ts.map +1 -0
  137. package/dist/tokens/core/spacing.d.ts +105 -0
  138. package/dist/tokens/core/spacing.d.ts.map +1 -0
  139. package/dist/tokens/core/typography.d.ts +52 -0
  140. package/dist/tokens/core/typography.d.ts.map +1 -0
  141. package/dist/tokens/index.d.ts +1646 -0
  142. package/dist/tokens/index.d.ts.map +1 -0
  143. package/dist/tokens/js/tokens.d.ts +482 -0
  144. package/dist/tokens/js/tokens.d.ts.map +1 -0
  145. package/dist/tokens/semantic/colors.d.ts +320 -0
  146. package/dist/tokens/semantic/colors.d.ts.map +1 -0
  147. package/dist/tokens/semantic/effects.d.ts +62 -0
  148. package/dist/tokens/semantic/effects.d.ts.map +1 -0
  149. package/dist/tokens/semantic/index.d.ts +18 -0
  150. package/dist/tokens/semantic/index.d.ts.map +1 -0
  151. package/dist/tokens/semantic/typography.d.ts +266 -0
  152. package/dist/tokens/semantic/typography.d.ts.map +1 -0
  153. package/dist/tokens/tailwind/config.d.ts +151 -0
  154. package/dist/tokens/tailwind/config.d.ts.map +1 -0
  155. package/dist/tokens/tailwind/index.d.ts +7 -0
  156. package/dist/tokens/tailwind/index.d.ts.map +1 -0
  157. package/dist/tokens/themes/dark.d.ts +308 -0
  158. package/dist/tokens/themes/dark.d.ts.map +1 -0
  159. package/dist/tokens/themes/index.d.ts +9 -0
  160. package/dist/tokens/themes/index.d.ts.map +1 -0
  161. package/dist/tokens/themes/light.d.ts +308 -0
  162. package/dist/tokens/themes/light.d.ts.map +1 -0
  163. package/dist/tokens/utils/cssVariables.d.ts +26 -0
  164. package/dist/tokens/utils/cssVariables.d.ts.map +1 -0
  165. package/dist/tokens/utils/hooks.d.ts +773 -0
  166. package/dist/tokens/utils/hooks.d.ts.map +1 -0
  167. package/dist/tokens/utils/index.d.ts +7 -0
  168. package/dist/tokens/utils/index.d.ts.map +1 -0
  169. package/dist/types/ui.d.ts +42 -1
  170. package/dist/types/ui.d.ts.map +1 -1
  171. package/dist/ui/components/ui/Avatar/Avatar.types.d.ts +1 -1
  172. package/dist/ui/components/ui/Avatar/Avatar.types.d.ts.map +1 -1
  173. package/dist/ui/components/ui/Avatar/AvatarBlock.d.ts +13 -0
  174. package/dist/ui/components/ui/Avatar/AvatarBlock.d.ts.map +1 -0
  175. package/dist/ui/components/ui/Avatar/AvatarGroup.d.ts +14 -0
  176. package/dist/ui/components/ui/Avatar/AvatarGroup.d.ts.map +1 -0
  177. package/dist/ui/components/ui/Avatar/index.d.ts +3 -1
  178. package/dist/ui/components/ui/Avatar/index.d.ts.map +1 -1
  179. package/dist/ui/components/ui/Breadcrumb/Breadcrumb.d.ts +1 -1
  180. package/dist/ui/components/ui/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  181. package/dist/ui/components/ui/Button/Button.d.ts.map +1 -1
  182. package/dist/ui/components/ui/ButtonDanger/ButtonDanger.d.ts.map +1 -1
  183. package/dist/ui/components/ui/Cell/Cell.d.ts.map +1 -1
  184. package/dist/ui/components/ui/Checkbox/Checkbox.d.ts.map +1 -1
  185. package/dist/ui/components/ui/IconButton/IconButton.d.ts.map +1 -1
  186. package/dist/ui/components/ui/InputField/InputField.d.ts +5 -0
  187. package/dist/ui/components/ui/InputField/InputField.d.ts.map +1 -0
  188. package/dist/ui/components/ui/InputField/InputField.types.d.ts +27 -0
  189. package/dist/ui/components/ui/InputField/InputField.types.d.ts.map +1 -0
  190. package/dist/ui/components/ui/InputField/index.d.ts +3 -0
  191. package/dist/ui/components/ui/InputField/index.d.ts.map +1 -0
  192. package/dist/ui/components/ui/ListSearch/ListSearch.d.ts +5 -0
  193. package/dist/ui/components/ui/ListSearch/ListSearch.d.ts.map +1 -0
  194. package/dist/ui/components/ui/ListSearch/ListSearch.types.d.ts +2 -0
  195. package/dist/ui/components/ui/ListSearch/ListSearch.types.d.ts.map +1 -0
  196. package/dist/ui/components/ui/ListSearch/index.d.ts +3 -0
  197. package/dist/ui/components/ui/ListSearch/index.d.ts.map +1 -0
  198. package/dist/ui/components/ui/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  199. package/dist/ui/components/ui/StatusIndicator/StatusIndicator.types.d.ts +1 -1
  200. package/dist/ui/components/ui/StatusIndicator/StatusIndicator.types.d.ts.map +1 -1
  201. package/dist/ui/components/ui/TextArea/TextArea.d.ts +0 -9
  202. package/dist/ui/components/ui/TextArea/TextArea.d.ts.map +1 -1
  203. package/dist/ui/components/ui/Toast/Toast.d.ts +11 -0
  204. package/dist/ui/components/ui/Toast/Toast.d.ts.map +1 -0
  205. package/dist/ui/components/ui/Toast/Toast.types.d.ts +2 -0
  206. package/dist/ui/components/ui/Toast/Toast.types.d.ts.map +1 -0
  207. package/dist/ui/components/ui/Toast/index.d.ts +3 -0
  208. package/dist/ui/components/ui/Toast/index.d.ts.map +1 -0
  209. package/dist/ui/components/ui/index.d.ts +8 -2
  210. package/dist/ui/components/ui/index.d.ts.map +1 -1
  211. package/dist/ui/index.d.ts +3 -0
  212. package/dist/ui/index.d.ts.map +1 -1
  213. package/dist/ui/index.esm.css +1 -1
  214. package/dist/ui/index.esm.js +1 -1
  215. package/dist/ui/index.esm.js.map +1 -1
  216. package/dist/ui/tokens/core/breakpoints.d.ts +23 -0
  217. package/dist/ui/tokens/core/breakpoints.d.ts.map +1 -0
  218. package/dist/ui/tokens/core/colors.d.ts +186 -0
  219. package/dist/ui/tokens/core/colors.d.ts.map +1 -0
  220. package/dist/ui/tokens/core/index.d.ts +20 -0
  221. package/dist/ui/tokens/core/index.d.ts.map +1 -0
  222. package/dist/ui/tokens/core/spacing.d.ts +105 -0
  223. package/dist/ui/tokens/core/spacing.d.ts.map +1 -0
  224. package/dist/ui/tokens/core/typography.d.ts +52 -0
  225. package/dist/ui/tokens/core/typography.d.ts.map +1 -0
  226. package/dist/ui/tokens/index.d.ts +1646 -0
  227. package/dist/ui/tokens/index.d.ts.map +1 -0
  228. package/dist/ui/tokens/js/tokens.d.ts +482 -0
  229. package/dist/ui/tokens/js/tokens.d.ts.map +1 -0
  230. package/dist/ui/tokens/semantic/colors.d.ts +320 -0
  231. package/dist/ui/tokens/semantic/colors.d.ts.map +1 -0
  232. package/dist/ui/tokens/semantic/effects.d.ts +62 -0
  233. package/dist/ui/tokens/semantic/effects.d.ts.map +1 -0
  234. package/dist/ui/tokens/semantic/index.d.ts +18 -0
  235. package/dist/ui/tokens/semantic/index.d.ts.map +1 -0
  236. package/dist/ui/tokens/semantic/typography.d.ts +266 -0
  237. package/dist/ui/tokens/semantic/typography.d.ts.map +1 -0
  238. package/dist/ui/tokens/tailwind/config.d.ts +151 -0
  239. package/dist/ui/tokens/tailwind/config.d.ts.map +1 -0
  240. package/dist/ui/tokens/tailwind/index.d.ts +7 -0
  241. package/dist/ui/tokens/tailwind/index.d.ts.map +1 -0
  242. package/dist/ui/tokens/themes/dark.d.ts +308 -0
  243. package/dist/ui/tokens/themes/dark.d.ts.map +1 -0
  244. package/dist/ui/tokens/themes/index.d.ts +9 -0
  245. package/dist/ui/tokens/themes/index.d.ts.map +1 -0
  246. package/dist/ui/tokens/themes/light.d.ts +308 -0
  247. package/dist/ui/tokens/themes/light.d.ts.map +1 -0
  248. package/dist/ui/tokens/utils/cssVariables.d.ts +26 -0
  249. package/dist/ui/tokens/utils/cssVariables.d.ts.map +1 -0
  250. package/dist/ui/tokens/utils/hooks.d.ts +773 -0
  251. package/dist/ui/tokens/utils/hooks.d.ts.map +1 -0
  252. package/dist/ui/tokens/utils/index.d.ts +7 -0
  253. package/dist/ui/tokens/utils/index.d.ts.map +1 -0
  254. package/dist/ui/types/ui.d.ts +42 -1
  255. package/dist/ui/types/ui.d.ts.map +1 -1
  256. package/package.json +20 -7
  257. package/public/logo/Logo.svg +9 -0
  258. package/src/tokens/README.md +199 -0
  259. package/src/tokens/core/breakpoints.ts +25 -0
  260. package/src/tokens/core/colors.ts +200 -0
  261. package/src/tokens/core/index.ts +20 -0
  262. package/src/tokens/core/spacing.ts +114 -0
  263. package/src/tokens/core/typography.ts +58 -0
  264. package/src/tokens/css/variables-dark.css +480 -0
  265. package/src/tokens/css/variables-light.css +480 -0
  266. package/src/tokens/index.ts +163 -0
  267. package/src/tokens/js/tokens.ts +486 -0
  268. package/src/tokens/semantic/colors.ts +383 -0
  269. package/src/tokens/semantic/effects.ts +69 -0
  270. package/src/tokens/semantic/index.ts +18 -0
  271. package/src/tokens/semantic/typography.ts +284 -0
  272. package/src/tokens/tailwind/config.ts +188 -0
  273. package/src/tokens/tailwind/index.ts +7 -0
  274. package/src/tokens/themes/dark.ts +311 -0
  275. package/src/tokens/themes/index.ts +10 -0
  276. package/src/tokens/themes/light.ts +17 -0
  277. package/src/tokens/utils/cssVariables.ts +88 -0
  278. package/src/tokens/utils/hooks.ts +192 -0
  279. package/src/tokens/utils/index.ts +7 -0
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import n,{useRef as o,useState as l,useEffect as r,useCallback as i,useMemo as s,createContext as c,useContext as d}from"react";import*as u from"d3";import{Breadcrumb as m,ConfigProvider as h,Pagination as p,Table as g}from"antd";import{useSensors as f,useSensor as _,PointerSensor as v,KeyboardSensor as b,DndContext as w,closestCenter as C}from"@dnd-kit/core";import{sortableKeyboardCoordinates as y,SortableContext as x,verticalListSortingStrategy as k,arrayMove as P,useSortable as N}from"@dnd-kit/sortable";import{CSS as S}from"@dnd-kit/utilities";const I={width:800,height:400,margin:{top:20,right:30,bottom:60,left:80},colors:{gradient:{start:"#8B5CF6",end:"#6B46C1"}},showGrid:!0,animate:!0,responsive:!0,showTooltip:!0,cornerRadius:5,barPadding:.6,tickCount:5,formatValue:e=>0===e?"0":e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}k`:e.toString()},A=n=>{const i={...I,...n},{data:s,title:c,titleStyle:d,titleClassName:m,width:h,height:p,margin:g,colors:f,showGrid:_,animate:v,responsive:b,formatValue:w,className:C,style:y,onBarClick:x,onBarHover:k,showTooltip:P,tooltipStyle:N,tooltipClassName:S,tooltipContent:A,showLegend:L=!0,legendPosition:B="bottom",legendStyle:D,legendClassName:z,legendTitle:$,showYAxis:T=!0,showYAxisLine:R=!1,showYAxisTicks:F=!1,yAxisStyle:W,yAxisClassName:U,yAxisLabelStyle:E,yAxisLabelClassName:M,cornerRadius:H,barPadding:V,tickCount:q}=i,O=o(null),G=o(null),Y=o(null),[j,X]=l({width:h||800,height:p||400}),[Z,K]=l(!1);r(()=>{if(K(!0),!b)return;const e=()=>{if(G.current){const e=G.current.getBoundingClientRect().width,t=Math.max(300,e),a=Math.max(300,.5*t);X({width:t,height:a})}};let t;G.current&&(t=new ResizeObserver(e),t.observe(G.current)),window.addEventListener("resize",e);const a=setTimeout(e,0);return()=>{t&&t.disconnect(),window.removeEventListener("resize",e),clearTimeout(a)}},[b]),r(()=>{if(!Z||!s||0===s.length)return;const e=u.select(O.current);e.selectAll("*").remove();const t=j.width-(g?.left||0)-(g?.right||0),a=j.height-(g?.top||0)-(g?.bottom||0),n=e.attr("width",j.width).attr("height",j.height).append("g").attr("transform",`translate(${g?.left||0},${g?.top||0})`);if(f?.gradient){const t=e.append("defs").append("linearGradient").attr("id","barGradient").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");t.append("stop").attr("offset","0%").attr("stop-color",f.gradient.start),t.append("stop").attr("offset","100%").attr("stop-color",f.gradient.end)}const o=u.scaleBand().domain(s.map(e=>e.category)).range([0,t]).padding(V||.6),l=u.max(s,e=>e.value)||0,r=u.scaleLinear().domain([0,1.1*l]).range([a,0]);if(_){const e=u.axisLeft(r).tickSize(-t).tickFormat(()=>"").ticks(q||5);n.append("g").attr("class","grid").style("stroke-dasharray","3,3").style("opacity",.3).call(e)}if(T){const e=u.axisLeft(r).ticks(q||5).tickFormat(e=>{const t="number"==typeof e?e:Number(e);return w?w(t):0===t?"0":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(0)}k`:t.toString()}),t=n.append("g").attr("class","y-axis").style("color","#7D7D7D").style("font-size","0.875rem").call(e);if(W){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=W[e];void 0!==a&&t.style(e,a.toString())})}if(R||t.selectAll("path").style("display","none"),F||t.selectAll("line").style("display","none"),t.selectAll("text").attr("class",`y-axis-label ${M||""}`).style("font-weight","500").style("fill","#7D7D7D").style("font-size","0.875rem").style("font-family","Inter, system-ui, sans-serif").style("dominant-baseline","middle").style("text-anchor","end").attr("dx","-8px"),E){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=E[e];void 0!==a&&t.selectAll("text").style(e,a.toString())})}}const i=u.axisBottom(o),c=n.append("g").attr("class","x-axis").attr("transform",`translate(0,${a})`).style("color","#718096").style("font-size","0.875rem").call(i);c.selectAll("path").style("display","none"),c.selectAll("line").style("display","none"),t<600&&c.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-45)");const d=n.selectAll(".bar").data(s).enter().append("rect").attr("class","bar").attr("x",e=>o(e.category)||0).attr("width",o.bandwidth()).attr("y",a).attr("height",0).attr("rx",H||5).attr("ry",H||5).style("fill",e=>e.color?e.color:f?.gradient?"url(#barGradient)":f?.solid?f.solid:"#8B5CF6").style("cursor",x?"pointer":"default");v?d.transition().duration(800).ease(u.easeBackOut.overshoot(1.1)).attr("y",e=>r(e.value)).attr("height",e=>a-r(e.value)):d.attr("y",e=>r(e.value)).attr("height",e=>a-r(e.value)),(x||k||P)&&d.on("click",(e,t)=>{if(x){const e=s.indexOf(t);x(t,e)}}).on("mouseover",(e,t)=>{if(k){const e=s.indexOf(t);k(t,e)}if(P&&Y.current&&G.current){const a=u.select(Y.current),n=G.current.getBoundingClientRect(),o=e.currentTarget.getBoundingClientRect(),l=o.left-n.left+o.width/2,r=o.top-n.top-15;a.style("opacity",1).style("left",`${l}px`).style("top",`${r}px`).style("transform","translateX(-50%)").html(`\n <div class="font-semibold text-white">${t.category}</div>\n <div class="text-sm text-gray-200 mt-1">${w?w(t.value):t.value.toString()}</div>\n `)}u.select(e.currentTarget).transition().duration(200).style("opacity",.8).style("filter","brightness(1.1)")}).on("mouseout",e=>{P&&Y.current&&u.select(Y.current).style("opacity",0),u.select(e.currentTarget).transition().duration(200).style("opacity",1).style("filter","brightness(1)")}).on("mousemove",(e,t)=>{if(P&&Y.current&&G.current){const t=u.select(Y.current),a=G.current.getBoundingClientRect(),n=e.clientX-a.left,o=e.clientY-a.top;t.style("left",`${n}px`).style("top",o-15+"px").style("transform","translateX(-50%)")}})},[Z,s,j,g,f,_,v,w,x,k,P,H,V,q,T,R,F,W,U,E,M]);const Q=()=>{if(!L||!s||0===s.length)return null;const a=s.map((a,n)=>e("div",{className:"flex items-center space-x-2 cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>x?.(a,n),onMouseEnter:()=>k?.(a,n),children:[t("div",{className:"w-4 h-4 rounded-sm",style:{backgroundColor:a.color||(f?.gradient?"url(#barGradient)":f?.solid||"#8B5CF6")}}),t("span",{className:"text-sm font-medium text-gray-700",children:a.category}),e("span",{className:"text-xs text-gray-500",children:["(",w?w(a.value):a.value.toString(),")"]})]},a.category));return e("div",{className:`${{top:"flex flex-wrap justify-center gap-4 mb-4",bottom:"flex flex-wrap justify-center gap-4 mt-4",left:"flex flex-col space-y-2 mr-4",right:"flex flex-col space-y-2 ml-4"}[B]} ${z||""}`,style:D,children:[$&&t("div",{className:"w-full text-center mb-2",children:t("span",{className:"text-sm font-semibold text-gray-600",children:$})}),a]})};return e("div",{ref:G,className:`bg-white p-6 rounded-xl ${C||""}`,style:y,children:[c&&t("h2",{className:`text-xl font-semibold text-[#18044E] mb-6 ${m||""}`,style:d,children:c}),L&&"top"===B&&Q(),e("div",{className:"relative",children:[t("svg",{ref:O,className:"w-full h-auto"}),P&&t("div",{ref:Y,className:`absolute pointer-events-none bg-gradient-to-r from-gray-800 to-gray-900 text-white rounded-xl px-4 py-3 shadow-2xl opacity-0 transition-all duration-300 z-50 whitespace-nowrap border border-gray-600 ${S||""}`,style:{fontSize:"0.9rem",minWidth:"120px",textAlign:"center",backdropFilter:"blur(10px)",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05)",...N},children:A?A(s[0]):e(a,{children:[t("div",{className:"font-semibold text-white",children:s[0]?.category}),t("div",{className:"text-sm text-gray-200 mt-1",children:w?w(s[0]?.value||0):(s[0]?.value||0).toString()})]})})]}),L&&"bottom"===B&&Q()]})},L=({data:a,title:n="Policy Effect",titleStyle:i={},containerStyle:s={},chartSize:c=320,showLegend:d=!0,legendStyle:m={}})=>{const h=o(null),[p,g]=l({visible:!1,x:0,y:0,content:"",label:"",value:"",percentage:""}),f=a||[{label:"Allow",value:35,color:"#4A148C"},{label:"Block",value:30,color:"#7B1FA2"},{label:"Isolate",value:20,color:"#BA68C8"},{label:"Tag",value:15,color:"#E1BEE7"}],_=u.sum(f,e=>e.value);r(()=>{if(!h.current)return;const e=u.select(h.current);e.selectAll("*").remove();const t=c,a=c,n=Math.min(t,a)/2-30,o=e.attr("width",t).attr("height",a).append("g").attr("transform",`translate(${t/2}, ${a/2})`),l=u.pie().value(e=>e.value).sort(null).padAngle(0),r=u.arc().innerRadius(0).outerRadius(n),i=u.arc().innerRadius(0).outerRadius(n+8);o.selectAll("arc").data(l(f)).enter().append("g").attr("class","arc").append("path").attr("d",r).attr("fill",e=>e.data.color||"#4A148C").style("cursor","pointer").style("transition","all 0.3s ease").on("mouseover",function(e,t){const a=(t.data.value/_*100).toFixed(1);u.select(this).transition().duration(200).attr("d",i(t)).style("filter","brightness(1.1)"),g({visible:!0,x:e.clientX,y:e.clientY,content:`${t.data.label??""}: ${t.data.value} (${a}%)`,label:t.data.label??"",value:t.data.value.toString(),percentage:a})}).on("mousemove",function(e){g(t=>({...t,x:e.clientX,y:e.clientY}))}).on("mouseout",function(e,t){u.select(this).transition().duration(200).attr("d",r(t)).style("filter","brightness(1)"),g(e=>({...e,visible:!1}))})},[0,f,c]);const v={fontSize:"1.5rem",fontWeight:"600",marginBottom:"1rem",color:"#374151",textAlign:"center",...i},b={display:"flex",flexDirection:"column",alignItems:"center",padding:"1.5rem",backgroundColor:"white",borderRadius:"0.5rem",position:"relative",...s},w={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"0.5rem",...m};return e("div",{style:b,children:[t("h2",{style:v,children:n}),t("div",{className:"relative",children:t("svg",{ref:h})}),d&&t("div",{style:w,children:f.map((a,n)=>((a.value/_*100).toFixed(1),e("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",children:[t("div",{className:"w-[10px] h-[10px] rounded-full",style:{backgroundColor:a.color}}),t("div",{className:"text-sm",children:t("div",{className:"font-medium text-[#454545]",children:a.label})})]},n)))}),p.visible&&e("div",{className:"fixed z-50 bg-gray-900 text-white px-4 py-3 rounded-lg pointer-events-none border border-gray-700",style:{left:p.x+15,top:p.y-60,minWidth:"150px"},children:[t("div",{className:"text-sm font-semibold text-blue-300",children:p.label}),e("div",{className:"text-base",children:[p.value," items"]}),e("div",{className:"text-sm text-gray-300",children:[p.percentage,"% of total"]}),t("div",{className:"absolute -bottom-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45 border-r border-b border-gray-700"})]})]})},B=({data:a,width:n=1200,height:l=600,margin:i={top:80,right:50,bottom:50,left:50},backgroundColor:s="linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%)",showTimeFilter:c=!0,timeFilters:d=["1W","1M","3M","1Y","ALL"],activeFilter:m="3M",onFilterChange:h=()=>{},filterButtonColor:p="#6366f1",filterButtonInactive:g="rgba(255, 255, 255, 0.1)",useCustomFlowWidth:f=!1,customFlowWidth:_=10,minFlowWidth:v=4,maxFlowWidth:b=20,flowWidthMultiplier:w=1,showStatistics:C=!1,statistics:y={trendGoods:204,shoppingViews:65540,storeDynamics:325}})=>{const x=o(null),k=o(),P=o();r(()=>{if(!x.current)return;const e=u.select(x.current);e.selectAll("*").remove(),e.attr("width",n).attr("height",l).style("background",s),e.append("text").attr("x",n/2).attr("y",40).attr("text-anchor","middle").style("font-size","48px").style("font-weight","bold").style("fill","rgba(255,255,255,0.1)").text("Data visualisation");const t=e.append("g").attr("class","zoom-group"),o=t.append("g").attr("transform",`translate(${i.left}, ${i.top})`);P.current&&P.current.remove();const r=u.select("body").append("div").attr("class","tooltip").style("position","absolute").style("background","rgba(0,0,0,0.7)").style("color","white").style("padding","8px").style("border-radius","4px").style("pointer-events","none").style("opacity",0);P.current=r;const c=u.zoom().scaleExtent([.5,3]).on("zoom",e=>{t.attr("transform",e.transform.toString())});e.call(c),k.current=c;const d=180,m=80,h=120,p="drop-shadow(0 8px 16px rgba(0,0,0,0.3))",g="white",A=(l-i.top-i.bottom)/2,L=(n-i.left-i.right)/2-90,B=n-i.left-i.right-d-80,D=a.nodes.filter(e=>"source"===e.type),z=a.nodes.filter(e=>"middle"===e.type),$=a.nodes.filter(e=>"target"===e.type);D.forEach(e=>{e.x=80,e.y=A-40}),z.forEach((e,t)=>{const a=(z.length-1)*h,n=A-a/2;e.x=L,e.y=n+t*h}),$.forEach((e,t)=>{const a=($.length-1)*h,n=A-a/2;e.x=B,e.y=n+t*h});const T=u.drag().on("start",e=>{e.sourceEvent.stopPropagation()}).on("drag",function(e,t){t.x=e.x,t.y=e.y,u.select(this).attr("transform",`translate(${t.x}, ${t.y})`),o.selectAll("path.sankey-link").remove(),W()}),R=e.append("defs"),F=Math.max(...a.links.map(e=>e.value)),W=()=>{R.selectAll("linearGradient.link-gradient").remove(),a.links.forEach((e,t)=>{const n=a.nodes.find(t=>t.id===e.source),l=a.nodes.find(t=>t.id===e.target);if(!n||!l)return;const i=`gradient-${t}`,s=R.append("linearGradient").attr("id",i).attr("class","link-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",n.x+d).attr("y1",n.y+40).attr("x2",l.x).attr("y2",l.y+40);s.append("stop").attr("offset","0%").attr("stop-color",n.color).attr("stop-opacity",.8),s.append("stop").attr("offset","100%").attr("stop-color",l.color).attr("stop-opacity",.8);const c=n.x+d,m=n.y+40,h=l.x,g=l.y+40,C=(y=e.value,f?_:(y/F*b+v)*w);var y;o.append("path").attr("class","sankey-link").attr("d",`M${c},${m} C${(c+h)/2},${m} ${(c+h)/2},${g} ${h},${g}`).attr("fill","none").attr("stroke",`url(#${i})`).attr("stroke-width",C).attr("stroke-opacity",.7).style("filter",p).on("mouseover",t=>{r.transition().duration(200).style("opacity",1),r.html(`Flow: ${e.value}<br/>Width: ${C.toFixed(1)}px`).style("left",t.pageX+10+"px").style("top",t.pageY-28+"px"),u.select(t.target).attr("stroke-opacity",1)}).on("mouseout",e=>{r.transition().duration(300).style("opacity",0),u.select(e.target).attr("stroke-opacity",.7)}).on("click",()=>{})})};a.nodes.forEach((e,t)=>{const a=`node-gradient-${t}`,n=R.append("linearGradient").attr("id",a).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","100%");n.append("stop").attr("offset","0%").attr("stop-color",e.color),n.append("stop").attr("offset","100%").attr("stop-color",u.color(e.color)?.darker(.5)?.toString()||e.color);const l=o.append("g").datum(e).attr("transform",`translate(${e.x}, ${e.y})`).style("cursor","pointer").call(T).on("click",(e,t)=>{});l.append("rect").attr("width",d).attr("height",m).attr("rx",16).style("fill",`url(#${a})`).style("stroke",u.color(e.color)?.darker(.5)?.toString()||e.color).style("stroke-width",2).style("filter",p).on("mouseover",function(){u.select(this).style("filter","drop-shadow(0 12px 24px rgba(0,0,0,0.5))")}).on("mouseout",function(){u.select(this).style("filter",p)}).on("click",(e,t)=>{}),l.append("text").attr("x",20).attr("y",30).style("fill",g).style("font-size","18px").style("font-weight","600").text(e.name),l.append("text").attr("x",20).attr("y",55).style("fill",g).style("font-size","24px").style("font-weight","bold").text(`$${e.value.toLocaleString()}`)}),W();const U=e.append("g").attr("class","zoom-controls"),E=n-100-20;if([{text:"Zoom In",action:"zoomIn"},{text:"Zoom Out",action:"zoomOut"},{text:"Reset Zoom",action:"resetZoom"}].forEach((e,t)=>{const a=20+44*t;U.append("rect").attr("x",E).attr("y",a).attr("width",100).attr("height",36).attr("rx",6).attr("fill","rgba(255, 255, 255, 0.9)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1).style("cursor","pointer").on("mouseover",function(){u.select(this).attr("fill","rgba(255, 255, 255, 1)")}).on("mouseout",function(){u.select(this).attr("fill","rgba(255, 255, 255, 0.9)")}).on("click",()=>{switch(e.action){case"zoomIn":N();break;case"zoomOut":S();break;case"resetZoom":I()}}),U.append("text").attr("x",E+50).attr("y",a+18+4).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","#1a1a3e").style("pointer-events","none").text(e.text)}),e.selectAll(".stats-panel").remove(),!0===C){const t=e.append("g").attr("class","stats-panel"),a=800,o=120,r=(n-a)/2,i=l-o-20;t.append("rect").attr("x",r).attr("y",i).attr("width",a).attr("height",o).attr("rx",12).attr("fill","rgba(15, 15, 35, 1)").attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",1);const s=[{title:"TREND GOODS",value:y.trendGoods.toLocaleString(),icon:"▶",color:"#6366f1"},{title:"SHOPPING VIEWS",value:y.shoppingViews.toLocaleString(),icon:"👁",color:"#8b5cf6"},{title:"STORE DYNAMICS",value:y.storeDynamics.toLocaleString(),icon:"⏱",color:"#a855f7"}],c=a/3;s.forEach((e,a)=>{const n=r+a*c+c/2;t.append("rect").attr("x",n-25).attr("y",i+15).attr("width",50).attr("height",50).attr("rx",8).attr("fill","rgba(255, 255, 255, 0.1)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1),t.append("text").attr("x",n).attr("y",i+45).attr("text-anchor","middle").style("font-size","24px").style("fill",e.color).text(e.icon),t.append("text").attr("x",n).attr("y",i+85).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","rgba(255, 255, 255, 0.7)").style("letter-spacing","1px").text(e.title),t.append("text").attr("x",n).attr("y",i+105).attr("text-anchor","middle").style("font-size","28px").style("font-weight","bold").style("fill","white").text(e.value)})}return()=>{P.current&&P.current.remove()}},[a,n,l,i,s,f,_,v,b,w,C,y]);const N=()=>{x.current&&k.current&&u.select(x.current).transition().duration(300).call(k.current.scaleBy,1.2)},S=()=>{x.current&&k.current&&u.select(x.current).transition().duration(300).call(k.current.scaleBy,.8)},I=()=>{x.current&&k.current&&u.select(x.current).transition().duration(500).call(k.current.transform,u.zoomIdentity)};return e("div",{className:"relative w-full h-screen bg-gray-900 flex flex-col items-center justify-center space-y-4",children:[c&&t("div",{className:"absolute top-6 right-6 flex space-x-2 z-10",children:d.map(e=>t("button",{onClick:()=>h(e),className:"px-4 py-1.5 rounded-full text-white text-sm font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:m===e?p:g},children:e},e))}),t("svg",{ref:x,className:"max-w-full max-h-full"})]})},D={desktop:{width:900,height:650,margin:{top:120,right:180,bottom:60,left:180},fontSize:{title:26,subtitle:14,label:14,value:16},nodeHeight:45,flowScaleFactor:.35},tablet:{width:700,height:550,margin:{top:100,right:140,bottom:50,left:140},fontSize:{title:22,subtitle:14,label:14,value:18},nodeHeight:40,flowScaleFactor:.3},mobile:{width:350,height:400,margin:{top:80,right:80,bottom:40,left:80},fontSize:{title:16,subtitle:12,label:11,value:14},nodeHeight:30,flowScaleFactor:.2}},z={mobile:640,tablet:1024,desktop:1024},$=({flows:a=[],hoverColor:n="#FF6B6B",title:s="Clipboard Copy Source to Paste Diagram",subtitle:c="Explore the user's Sensitive Data Copy Paste behavior, detection history, and risk exposure.",showHeaders:d=!0,showTitle:m=!0,showSubtitle:h=!0,showDebug:p=!1,sourceHeader:g="Copying Sources",targetHeader:f="Pasting Targets",labelColor:_="#374151",valueColor:v="#111827",headerColor:b="#454545",titleColor:w="#111827",subtitleColor:C="#6B7280",headerUnderlineColor:y="#D4C4FF",flowOpacity:x=.7,hoverOpacity:k=.9,curvature:P=.4,valueFormatter:N,labelFormatter:S,tooltipRenderer:I,gradientStops:A,responsive:L=!0,width:B,height:$,margin:T,nodeHeight:R,flowScaleFactor:F,fontSize:W,responsiveConfig:U=D,breakpoints:E=z})=>{const M=o(null),H=o(null),[V,q]=l({width:0,height:0}),[O,G]=l(U.desktop),[Y,j]=l(!1),X=i(()=>{if("undefined"==typeof window)return U.desktop;const e=window.innerWidth;return e<E.mobile?U.mobile:e<E.tablet?U.tablet:(E.desktop,U.desktop)},[U,E]);return r(()=>{const e=()=>{const e=X(),t={...e,margin:T??e.margin,nodeHeight:R??e.nodeHeight,flowScaleFactor:F??e.flowScaleFactor,fontSize:W??e.fontSize,width:B??e.width,height:$??e.height};G(t);const a=window.innerWidth-128;let n=t.width;L&&(n=e===U.desktop?a>=t.width?t.width:Math.max(a,600):Math.max(a,t.width)),q({width:n,height:t.height}),Y||j(!0)},t=setTimeout(e,100);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[X,Y,L,B,$,T,R,F,W,U]),r(()=>{if(!(a.length&&V.width&&V.height&&Y))return;const e=u.select(M.current);e.selectAll("*").remove();const{width:t,height:o}=V,{margin:l,fontSize:r,nodeHeight:i,flowScaleFactor:p}=O,L=new Map,B=new Map,D=new Map,z=new Map;a.forEach(e=>{D.has(e.source)||D.set(e.source,[]),D.get(e.source).push(e),z.has(e.target)||z.set(e.target,[]),z.get(e.target).push(e),L.set(e.source,e.sourceValue),B.set(e.target,e.targetValue)});const $=Array.from(L.entries()),T=Array.from(B.entries()),R=o-l.top-l.bottom,F=R/($.length+1),W=R/(T.length+1),U=$.map(([e,t],a)=>({name:e,value:t,y:l.top+F*(a+1),height:i})),E=T.map(([e,t],a)=>({name:e,value:t,y:l.top+W*(a+1),height:i})),H=l.left,q=t-l.right;e.attr("width",t).attr("height",o);const G=e.append("defs");a.forEach((e,t)=>{const a=G.append("linearGradient").attr("id",`gradient-${t}`).attr("gradientUnits","userSpaceOnUse").attr("x1",H+80).attr("x2",q-80);(A&&A.length>0?A:[{offset:"0%",color:"#8B5CF6",opacity:.8},{offset:"50%",color:"#3B82F6",opacity:.7},{offset:"100%",color:"#06B6D4",opacity:.8}]).forEach(e=>{a.append("stop").attr("offset","number"==typeof e.offset?`${e.offset}%`:e.offset).attr("stop-color",e.color).attr("stop-opacity",e.opacity??.8)})});let j=u.select("body").select(".sankey-tooltip");j.empty()&&(j=u.select("body").append("div").attr("class","sankey-tooltip").style("position","absolute").style("background","rgba(0, 0, 0, 0.9)").style("color","white").style("padding","12px 16px").style("border-radius","8px").style("font-size","13px").style("font-family","system-ui, sans-serif").style("pointer-events","none").style("opacity",0).style("z-index",1e3).style("box-shadow","0 4px 12px rgba(0,0,0,0.3)").style("max-width","250px"));const X=new Map;U.forEach(e=>{const t=D.get(e.name)||[];let a=e.y-e.height/2;X.set(e.name,new Map),t.forEach(t=>{const n=E.find(e=>e.name===t.target);if(!n)return;const o=n.value,l=i,r=t.thickness/o*l*p;X.get(e.name).set(t.target,{startY:a,endY:a+r,centerY:a+r/2}),a+=r})});const Z=new Map;if(E.forEach(e=>{const t=z.get(e.name)||[];let a=e.y-e.height/2;Z.set(e.name,new Map),t.forEach(t=>{const n=i,o=t.thickness/e.value*n*p;Z.get(e.name).set(t.source,{startY:a,endY:a+o,centerY:a+o/2}),a+=o})}),a.forEach((t,a)=>{const o=U.find(e=>e.name===t.source),l=E.find(e=>e.name===t.target);if(o&&l){const o=X.get(t.source).get(t.target),l=Z.get(t.target).get(t.source),r=o.startY,i=o.endY,s=l.startY,c=l.endY,d=P,m=u.interpolateNumber(H,q),h=m(d),p=m(1-d),g=`M${H},${r}\n C${h},${r} ${p},${s} ${q},${s}\n L${q},${c}\n C${p},${c} ${h},${i} ${H},${i}\n Z`;e.append("path").attr("d",g).attr("fill",`url(#gradient-${a})`).attr("opacity",x).style("cursor","pointer").on("mouseover",function(e){u.select(this).attr("fill",n).attr("opacity",k),"function"==typeof I?j.style("opacity",1).html(I(t)):j.style("opacity",1).html(`\n <div style="font-weight: 600; margin-bottom: 8px;">Flow Details</div>\n <div><strong>From:</strong> ${t.source}</div>\n <div><strong>To:</strong> ${t.target}</div>\n <div><strong>Value:</strong> ${t.thickness}</div>\n <div><strong>Source Total:</strong> ${t.sourceValue}</div>\n <div><strong>Target Total:</strong> ${t.targetValue}</div>\n `)}).on("mousemove",function(e){j.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){u.select(this).attr("fill",`url(#gradient-${a})`).attr("opacity",x),j.style("opacity",0)})}}),d){const t=e.append("text").attr("x",H-15).attr("y",l.top-10).attr("text-anchor","end").attr("fill",b).attr("font-size",`${r.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(g).node();if(t){const a=t.getBBox();e.append("line").attr("x1",a.x).attr("y1",l.top).attr("x2",a.x+a.width).attr("y2",l.top).attr("stroke",y).attr("stroke-width","1").attr("opacity","1")}const a=e.append("text").attr("x",q+15).attr("y",l.top-10).attr("text-anchor","start").attr("fill",b).attr("font-size",`${r.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(f).node();if(a){const t=a.getBBox();e.append("line").attr("x1",t.x).attr("y1",l.top).attr("x2",t.x+t.width).attr("y2",l.top).attr("stroke",y).attr("stroke-width","1").attr("opacity","1")}}return U.forEach(t=>{e.append("text").attr("x",H-15).attr("y",t.y-8).attr("text-anchor","end").attr("fill",_).attr("font-size",`${r.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(S?S(t.name):t.name),e.append("text").attr("x",H-15).attr("y",t.y+12).attr("text-anchor","end").attr("fill",v).attr("font-size",`${r.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(N?N(t.value):t.value)}),E.forEach(t=>{e.append("text").attr("x",q+15).attr("y",t.y-8).attr("text-anchor","start").attr("fill",_).attr("font-size",`${r.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(S?S(t.name):t.name),e.append("text").attr("x",q+15).attr("y",t.y+12).attr("text-anchor","start").attr("fill",v).attr("font-size",`${r.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(N?N(t.value):t.value)}),m&&e.append("text").attr("x",40).attr("y",35).attr("text-anchor","start").attr("fill",w).attr("font-size",`${r.title}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(s),h&&e.append("text").attr("x",40).attr("y",60).attr("text-anchor","start").attr("fill",C).attr("font-size",`${r.subtitle}px`).attr("font-weight","400").attr("font-family","system-ui, sans-serif").text(c),()=>{u.select("body").selectAll(".sankey-tooltip").remove()}},[a,n,s,c,V,O,A,_,v,b,w,C,y,x,k,P,N,S,I,d,m,h,p]),t("div",{className:"w-full max-w-7xl mx-auto p-4 md:p-6",children:e("div",{className:"bg-white rounded-xl shadow-lg p-4 md:p-8",children:[p&&e("div",{className:"text-xs text-gray-500 mb-2",children:["Screen: ","undefined"!=typeof window?window.innerWidth:"SSR","px | Config: ",O===U.desktop?"Desktop":O===U.tablet?"Tablet":"Mobile"," | Chart: ",V.width,"x",V.height," | Available: ","undefined"!=typeof window?window.innerWidth-128:"SSR","px | Initialized: ",Y?"Yes":"No",t("button",{onClick:()=>{const e=X();G(e);const t=window.innerWidth-128;let a=e.width;a=e===U.desktop?t>=e.width?e.width:Math.max(t,600):Math.max(t,e.width),q({width:a,height:e.height})},className:"ml-4 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:"Refresh"})]}),t("div",{ref:H,className:"w-full overflow-x-auto",children:t("div",{className:"flex justify-center min-w-max",children:t("svg",{ref:M,style:{width:V.width||O.width,height:V.height||O.height,minWidth:O.width,minHeight:O.height}})})})]})})},T=75,R=16,F=1500,W=20,U=e=>`${e.label}: ${e.value.toLocaleString()} (${(100*e.percentage).toFixed(1)}%)`,E=({segments:a,title:n})=>{const c=o(null),{segmentData:d,total:u}=(e=>{const t=e.reduce((e,t)=>e+t.value,0);return{segmentData:e.map(e=>({...e,percentage:e.value/t,arcLength:75*Math.PI*(e.value/t)})),total:t}})(a),{count:m,animationProgress:h}=(e=>{const[t,a]=l(0),[n,o]=l(0);return r(()=>{let t=0;const n=1/(F/W),l=setInterval(()=>{t+=n,t>=1&&(t=1,clearInterval(l)),a(Math.floor(e*t)),o(t)},W);return()=>{clearInterval(l)}},[e]),{count:t,animationProgress:n}})(u),{tooltip:p,showTooltip:g,updateTooltip:f,hideTooltip:_}=(e=>{const[t,a]=l({show:!1,content:"",x:0,y:0,type:""}),n=i((t,n,o)=>{if(!e.current)return;const l=e.current.getBoundingClientRect(),r=t.clientX-l.left,i=t.clientY-l.top;a({show:!0,content:n,type:o,x:r,y:i-70})},[e]),o=i((n,o,l)=>{if(!t.show||!e.current)return;const r=e.current.getBoundingClientRect(),i=n.clientX-r.left,s=n.clientY-r.top;a(e=>({...e,x:i,y:s-70}))},[t.show,e]),r=i(()=>{a(e=>({...e,show:!1}))},[]);return{tooltip:t,showTooltip:n,updateTooltip:o,hideTooltip:r}})(c),v=T,b=R,w=Math.PI*v,C=s(()=>({width:2*v+b,height:v+b+20,viewBox:`0 0 ${2*v+b} ${v+b+20}`}),[v,b]),y=s(()=>((e,t)=>`M ${t/2},${e+10} \n A ${e},${e} 0 0 1 ${2*e+t/2},${e+10}`)(v,b),[v,b]),x=s(()=>d.map((e,t)=>({currentArc:e.arcLength*h,previousArcsLength:d.slice(0,t).reduce((e,t)=>e+t.arcLength*h,0)})),[d,h]);return e("div",{ref:c,className:"flex flex-col items-center justify-center bg-white rounded-xl p-8 w-96 mx-auto relative shadow-[0px_4px_40px_0px_#7090B01F]",children:[t("div",{className:"flex justify-center mb-4",children:e("svg",{width:C.width,height:C.height,viewBox:C.viewBox,className:"relative",children:[t("path",{d:y,fill:"transparent",stroke:"#E5E7EB",strokeWidth:b,strokeLinecap:"round"}),d.map((e,a)=>{const{currentArc:n,previousArcsLength:o}=x[a];return t("path",{d:y,fill:"transparent",stroke:e.color,strokeWidth:b,strokeDasharray:`${n} ${w}`,strokeDashoffset:-o,strokeLinecap:"round"},`visual-${a}`)}),d.map((e,a)=>{const{currentArc:n,previousArcsLength:o}=x[a];return t("path",{d:y,fill:"transparent",stroke:"transparent",strokeWidth:b+4,strokeDasharray:`${n} ${w}`,strokeDashoffset:-o,strokeLinecap:"round",onMouseEnter:t=>g(t,U(e),e.label),onMouseMove:t=>f(t,U(e),e.label),onMouseLeave:_,className:"cursor-pointer",style:{pointerEvents:n>0?"stroke":"none"}},`hit-${a}`)}),t("text",{x:v+b/2,y:v+10-15,textAnchor:"middle",className:"text-base font-bold fill-[#29064D]",children:m.toLocaleString()}),t("text",{x:v+b/2,y:v+10+20,textAnchor:"middle",className:"text-sm fill-[#454545]",children:n})]})}),t("div",{className:"flex flex-wrap gap-4 mt-4 w-full max-w-xs justify-center",children:d.map((a,n)=>e("div",{className:"flex items-center justify-center gap-1",children:[t("div",{className:"w-[10px] h-[10px] rounded-full shadow-sm",style:{backgroundColor:a.color}}),t("span",{className:"text-sm font-medium text-[#454545]",children:a.label})]},`legend-${n}`))}),p.show&&t("div",{className:"absolute z-50 pointer-events-none",style:{left:`${p.x}px`,top:`${p.y}px`,transform:"translateX(-50%)"},children:e("div",{className:"px-3 py-2 rounded-lg text-gray-700 text-sm font-medium bg-white shadow-lg text-center min-w-[120px]",children:[p.content,t("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-l-transparent border-r-transparent border-t-white"})]})})]})},M="#7E22CE",H="#7C3AED",V="#DDD6FE",q="#F3F4F6",O="#B4AAFF",G="#8B5FBF",Y="#A78BFA",j="#642CFD",X="#131313",Z="#5B5B5B",K="#6B7280",Q="#059669",J="#7090B0",ee=(e,t=40)=>0===e?0:e>=1e4?t/1:e>5e3?t/2:e<5e3?t/3:t,te={width:1100,height:650,viewBox:"-30 0 1100 700",scale:1,fontSize:14,cardWidth:259,cardHeight:115,nodeWidth:5,main:{source:{x:430,y:320,width:300},target:{x:833,y:236,width:10,spacing:28}},source:{source:{x:75,y:50,width:40,spacing:50},target:{x:430,y:185,width:28,spacing:31}},cards:{cardX:830,cardY1:30,cardY2:160,padding:{top:24,right:20,bottom:24,left:20},gap:16,fontSize:{title:16,value:24,subtitle:14}},specialFlows:{flow5:{target:{x:833,y:384,width:5}}}},ae={width:800,height:600,viewBox:"-25 0 800 600",scale:.7,fontSize:12,cardWidth:220,cardHeight:90,nodeWidth:3.5,main:{source:{x:215,y:224,width:210},target:{x:583,y:165,width:7,spacing:20}},source:{source:{x:52,y:35,width:28,spacing:35},target:{x:215,y:129,width:20,spacing:22}},cards:{cardX:600,cardY1:25,cardY2:140,padding:{top:18,right:15,bottom:18,left:15},gap:12,fontSize:{title:14,value:20,subtitle:12}},specialFlows:{flow5:{target:{x:600,y:280,width:4}}}},ne={width:400,height:500,viewBox:"-20 0 400 500",scale:.4,fontSize:10,cardWidth:200,cardHeight:80,nodeWidth:2,main:{source:{x:120,y:160,width:150},target:{x:300,y:118,width:5,spacing:14}},source:{source:{x:30,y:25,width:20,spacing:25},target:{x:120,y:92,width:14,spacing:15}},cards:{cardX:250,cardY1:20,cardY2:120,padding:{top:12,right:10,bottom:12,left:10},gap:8,fontSize:{title:12,value:16,subtitle:10}},specialFlows:{flow5:{target:{x:280,y:200,width:3}}}},oe={borderRadius:12,shadowOpacity:.12,defaultOpacity:.8,hoverOpacity:1,strokeWidth:.5,hoverStrokeWidth:2,transitionDuration:300,tooltipOffset:10};(e=>{const t=e.filter(e=>"main"===e.type),a=e.filter(e=>"source"===e.type),n=[];t.forEach((e,a)=>{const o=(t.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});o&&n.push({...e,source:o.source,target:o.target})}),a.forEach((e,t)=>{const o=(a.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});o&&n.push({...e,source:o.source,target:o.target})})})([{id:"flow1",type:"main",color:M,gradientColors:{start:O,end:M}},{id:"flow2",type:"main",color:H,gradientColors:{start:O,end:H}},{id:"flow3",type:"main",color:"#A78BFA",gradientColors:{start:O,end:M}},{id:"flow4",type:"main",color:V,gradientColors:{start:O,end:V}},{id:"flow5",type:"main",color:q,gradientColors:{start:O,end:q}},{id:"source1",type:"source",sourceLabel:"Source 1",sourceValue:15e3,color:G,gradientColors:{start:O,end:G}},{id:"source2",type:"source",sourceLabel:"Source 2",sourceValue:12e3,color:H,gradientColors:{start:O,end:H}},{id:"source3",type:"source",sourceLabel:"Source 3",sourceValue:8e3,color:Y,gradientColors:{start:O,end:Y}},{id:"source4",type:"source",sourceLabel:"Source 4",sourceValue:5e3,color:V,gradientColors:{start:O,end:V}},{id:"source5",type:"source",sourceLabel:"Source 5",sourceValue:2e3,color:q,gradientColors:{start:O,end:q}}]);const le=({flows:e,curvature:a=.5,windowSize:n={width:0,height:0},breakpoints:l={mobile:768,tablet:1024},layoutOverrides:i={},totalDetectionsIcon:s={}})=>{const c=o(null);return r(()=>{if("undefined"==typeof window||!e||!Array.isArray(e)||0===e.length||!c.current)return;const t=u.select(c.current);t.selectAll("*").remove();const n=(e,t={})=>({dimensions:{...e.dimensions,...t.dimensions},nodePlacement:{...e.nodePlacement,...t.nodePlacement},specialFlows:t.specialFlows||e.specialFlows,cardConfig:{...e.cardConfig,...t.cardConfig}}),o="undefined"!=typeof window?window.innerWidth:1200,r=e=>{let t;switch(e){case"mobile":t=ne;break;case"tablet":t=ae;break;default:t=te}return{dimensions:{width:(()=>{switch(e){case"mobile":return Math.min(o-40,t.width);case"tablet":return Math.min(o-60,t.width);default:return t.width}})(),height:t.height,viewBox:t.viewBox,scale:t.scale,fontSize:t.fontSize,cardWidth:t.cardWidth,cardHeight:t.cardHeight},nodePlacement:{main:t.main,source:t.source},specialFlows:t.specialFlows,cardConfig:{cardX:t.cards.cardX,cardY1:t.cards.cardY1,cardY2:t.cards.cardY2,padding:t.cards.padding,gap:t.cards.gap,fontSize:t.cards.fontSize}}},{dimensions:d,nodePlacement:m,specialFlows:h,cardConfig:p}=(()=>{if("undefined"==typeof window){const e=r("desktop");return n(e,i.desktop)}const e=window.innerWidth,{mobile:t=768,tablet:a=1024}=l;let o,s={};e<=t?(o="mobile",s=i.mobile||{}):e<=a?(o="tablet",s=i.tablet||{}):(o="desktop",s=i.desktop||{});const c=r(o);return n(c,s)})(),{width:g,height:f,viewBox:_,scale:v,fontSize:b,cardWidth:w,cardHeight:C}=d,y=te.nodeWidth*v;t.attr("width",g).attr("height",f).attr("viewBox",_);const x=t.append("defs");x.append("filter").attr("id","cardShadow").attr("x","-50%").attr("y","-50%").attr("width","200%").attr("height","200%").append("feDropShadow").attr("dx",0).attr("dy",4).attr("stdDeviation",20).attr("flood-color",J).attr("flood-opacity",oe.shadowOpacity);let k=u.select("body").select(".sankey-tooltip");k.empty()&&(k=u.select("body").append("div").attr("class","sankey-tooltip absolute bg-black bg-opacity-80 text-white px-3 py-2 rounded-md text-xs pointer-events-none z-50 shadow-lg border border-white border-opacity-20").style("opacity",0));const P=e.filter(e=>"main"===e.type).map((e,t)=>{const a=h[e.id];if(a)return{...e,source:{x:m.main.source.x,y:m.main.source.y,width:m.main.source.width},target:a.target};{const a=m.main;return{...e,source:{x:a.source.x,y:a.source.y,width:a.source.width},target:{x:a.target.x,y:a.target.y+t*a.target.spacing,width:a.target.width}}}}),N=e.filter(e=>"source"===e.type).map((e,t)=>{const a=m.source,n=(()=>{if("undefined"==typeof window)return[185,216,280,248,310,340,370,400,216,430,280,460];const e=window.innerWidth;return e<=768?[92,107,122,137,152,167,182,197,107,212,122,227]:e<=1024?[129,151,173,195,217,239,261,283,151,305,173,327]:[185,216,280,248,310,340,370,400,216,430,280,460]})(),o=ee(e.sourceValue||0,a.source.width),l=ee(e.sourceValue||0,a.target.width);return{...e,source:{x:a.source.x,y:a.source.y+t*a.source.spacing,width:o},target:{x:a.target.x,y:n[t]||a.target.y+t*a.target.spacing,width:l}}});P.forEach(e=>{const t=x.append("linearGradient").attr("id",`gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.gradientColors?.start||e.color;const a=e.gradientColors?.end||e.color||"#b6abff";t.append("stop").attr("offset","0%").attr("stop-color",O).attr("stop-opacity",1),t.append("stop").attr("offset","40%").attr("stop-color",O).attr("stop-opacity",1.8),t.append("stop").attr("offset","45%").attr("stop-color",O).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",a).attr("stop-opacity",1)}),N.forEach(e=>{const t=x.append("linearGradient").attr("id",`source-gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",O).attr("stop-opacity",1),t.append("stop").attr("offset","80%").attr("stop-color",O).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color","#BEE4FF").attr("stop-opacity",1)});const S=e=>{if(!e||!e.source||!e.target)return"";const{source:t,target:n}=e,o=a,l=n.x-t.x,r=t.x+l*o,i=n.x-l*o;return`\n M ${t.x} ${t.y-t.width/2}\n C ${r} ${t.y-t.width/2}, \n ${i} ${n.y-n.width/2}, \n ${n.x} ${n.y-n.width/2}\n `+`\n L ${n.x} ${n.y+n.width/2}\n C ${i} ${n.y+n.width/2}, \n ${r} ${t.y+t.width/2}, \n ${t.x} ${t.y+t.width/2}\n Z\n `};P.slice().reverse().forEach(e=>{e&&e.source&&e.target&&t.append("path").attr("d",S(e)).attr("fill",`url(#gradient-${e.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",oe.strokeWidth).style("opacity","0.6").style("transition",`opacity ${oe.transitionDuration}ms, stroke ${oe.transitionDuration}ms`).style("cursor","pointer").attr("data-flow-id",e.id).style("opacity",oe.defaultOpacity).on("mouseover",function(a,n){const o=P.find(t=>t.id===e.id);o&&(k.transition().duration(200).style("opacity",1),k.html(`\n <strong>Flow ${e.id}</strong><br/>\n Source: (${o.source.x}, ${o.source.y})<br/>\n Source Width: ${o.source.width}px<br/>\n Target: (${o.target.x}, ${o.target.y})<br/>\n Target Width: ${o.target.width}px<br/>\n Color: ${o.color}\n `).style("left",a.pageX+10+"px").style("top",a.pageY-10+"px"),t.selectAll("path[data-flow-id]").style("opacity",.3),u.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){k.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){k.transition().duration(500).style("opacity",0),t.selectAll("path[data-flow-id]").style("opacity",.8),u.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),N.forEach(e=>{e&&e.source&&e.target&&t.append("path").attr("d",S(e)).attr("fill",`url(#source-gradient-${e.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width","0.5").style("opacity","0.6").style("transition","opacity 0.3s, stroke 0.3s").style("cursor","pointer").attr("data-flow-id",e.id).style("opacity",.6).style("mix-blend-mode","multiply").on("mouseover",function(a,n){const o=N.find(t=>t.id===e.id);o&&(k.transition().duration(200).style("opacity",1),k.html(`\n <strong>${o.sourceLabel}</strong><br/>\n Value: ${o.sourceValue}<br/>\n Source: (${o.source.x}, ${o.source.y})<br/>\n Source Width: ${o.source.width}px<br/>\n Target: (${o.target.x}, ${o.target.y})<br/>\n Target Width: ${o.target.width}px\n `).style("left",a.pageX+10+"px").style("top",a.pageY-10+"px"),t.selectAll("path[data-flow-id]").style("opacity",.3),u.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){k.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){k.transition().duration(500).style("opacity",0),t.selectAll("path[data-flow-id]").style("opacity",.8),u.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),P.slice().reverse().forEach((e,a)=>{e&&e.source&&e.target&&t.append("rect").attr("x",e.target.x-y/2).attr("y",e.target.y-e.target.width/2).attr("width",y).attr("height",e.target.width).style("fill",j).style("rx","3").style("ry","3")}),N.forEach((e,a)=>{if(!e||!e.source||!e.target)return;const n=(()=>{if("undefined"==typeof window)return 65;const e=window.innerWidth;return e<=768?25:e<=1024?45:65})();t.append("text").attr("x",n).attr("y",e.source.y-10).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","12px").style("fill",Z).style("font-weight","500").style("font-size",`${b}px`).text(e.sourceLabel||""),t.append("text").attr("x",n).attr("y",e.source.y+8).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","11px").style("fill","black").style("font-weight","600").style("font-size",b-2+"px").text(void 0!==e.sourceValue?e.sourceValue:""),t.append("rect").attr("x",e.target.x-y/2).attr("y",e.target.y-e.target.width/2).attr("width",y-3).attr("height",e.target.width).style("fill",j).style("rx","3").style("ry","3")});const{cardX:I,cardY1:A,cardY2:L,padding:B,gap:D,fontSize:z}=p;t.append("rect").attr("x",I).attr("y",A).attr("width",w).attr("height",C).attr("rx",12*v).attr("ry",12*v).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),t.append("text").attr("x",I+B.left).attr("y",A+B.top+8).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").style("font-size",`${z.title}px`).style("font-weight","500").text("Total Detections");const $=(()=>{const e=s.alignment||"left",t=s.position?.y||A+B.top+8;if(void 0!==s.position?.x)return{x:s.position.x,y:t};switch(e){case"left":const e=((e,t)=>e.length*t*.55)("Total Detections",z.title);return{x:I+B.left+e+15,y:t};case"center":return{x:I+w/2,y:t};default:return{x:I+w-B.right-16,y:t}}})(),T={icon:s.icon||"↗",color:s.color||"#8B5FBF",size:s.size||14,x:$.x,y:$.y,alignment:s.alignment||"right"},R=t.append("text").attr("x",T.x).attr("y",T.y).attr("text-anchor",(e=>{switch(e){case"left":return"start";case"center":return"middle";default:return"end"}})(T.alignment)).attr("dominant-baseline","middle").style("font-size",`${T.size}px`).style("fill",T.color).style("font-weight","600").style("cursor",s.onClick?"pointer":"default").text(T.icon);s.onClick&&R.on("click",s.onClick).on("mouseover",function(){u.select(this).style("opacity",.7)}).on("mouseout",function(){u.select(this).style("opacity",1)}),t.append("text").attr("x",I+B.left).attr("y",A+B.top+8+D+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").style("font-size","24px").style("font-weight","700").style("fill",X).text("9100"),t.append("text").attr("x",I+B.left+70).attr("y",A+B.top+8+D+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","12px").style("fill",Q).style("font-weight","500").style("font-size","14px").style("font-weight","500").style("fill",Q).text("▲ +10%"),t.append("text").attr("x",I+B.left).attr("y",A+B.top+8+D+16+D+12).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","11px").style("fill",K).style("font-weight","400").style("font-size","14px").style("font-weight","400").style("fill",K).text("In last 7 days"),t.append("rect").attr("x",I).attr("y",L).attr("width",259).attr("height",307).attr("rx",12).attr("ry",12).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),t.append("text").attr("x",I+B.left).attr("y",L+B.top+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("Mitigated Threats"),t.append("text").attr("x",I+259-B.right).attr("y",L+B.top+16).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("9000");[{label:"Critical",value:60,color:"#4C1D95"},{label:"High",value:300,color:"#7C3AED"},{label:"Medium",value:860,color:"#A78BFA"},{label:"Low",value:100,color:"#DDD6FE"}].forEach((e,a)=>{const n=L+B.top+16+D+20+28*a;t.append("text").attr("x",I+B.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",Z).style("font-weight","500").text(e.label),t.append("text").attr("x",I+259-B.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",Z).style("font-weight","500").text(e.value)});const F=L+B.top+16+D+20+112+D+20;t.append("text").attr("x",I+B.left).attr("y",F).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("Unmitigated Threats"),t.append("text").attr("x",I+259-B.right).attr("y",F).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("100");return[{label:"Informational",value:100,color:"#F3F4F6"}].forEach((e,a)=>{const n=F+D+16+28*a;t.append("text").attr("x",I+B.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",Z).style("font-weight","500").text(e.label),t.append("text").attr("x",I+259-B.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",Z).style("font-weight","500").text(e.value)}),()=>{"undefined"!=typeof window&&u.select("body").selectAll(".sankey-tooltip").remove()}},[e,a,c]),t("div",{className:"flex justify-center w-full",children:t("svg",{id:"sankey-chart",ref:c,className:"block mx-auto",style:{display:"block",margin:"0 auto"}})})};function re(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=re(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function ie(){for(var e,t,a=0,n="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=re(e))&&(n&&(n+=" "),n+=t);return n}var se={button:"Button-module_button__hvJpb",label:"Button-module_label__zSB3D",icon:"Button-module_icon__pfoz5",loaderIcon:"Button-module_loaderIcon__4WG9k",spin:"Button-module_spin__6Uwop",size_medium:"Button-module_size_medium__TGkrI",size_small:"Button-module_size_small__-vQKB",style_primary:"Button-module_style_primary__GfCKd",state_default:"Button-module_state_default__KGxJA",state_hover:"Button-module_state_hover__NNaw2",state_focus:"Button-module_state_focus__xudCD",state_disabled:"Button-module_state_disabled__6SakQ",state_loading:"Button-module_state_loading__ZhHO9",style_secondary:"Button-module_style_secondary__9kVUP",style_neutral:"Button-module_style_neutral__ZoLsO",style_subtle:"Button-module_style_subtle__oOeBv"},ce={icon:"Icon-module_icon__hJi-x",variant_default:"Icon-module_variant_default__4khrG",variant_hover:"Icon-module_variant_hover__Z-Zt4",variant_active:"Icon-module_variant_active__B7W-7",variant_disabled:"Icon-module_variant_disabled__u8BHu",variant_white:"Icon-module_variant_white__LRbrT"};const de=[{name:"app-window",label:"App Window",filePath:"icon/AppWindow.svg",variantCount:1},{name:"arrow-arc-left",label:"Arrow Arc Left",filePath:"icon/ArrowArcLeft.svg",variantCount:1},{name:"arrow-arc-right",label:"Arrow Arc Right",filePath:"icon/ArrowArcRight.svg",variantCount:1},{name:"arrow-bend-double-up-left",label:"Arrow Bend Double Up Left",filePath:"icon/ArrowBendDoubleUpLeft.svg",variantCount:1},{name:"arrow-bend-double-up-right",label:"Arrow Bend Double Up Right",filePath:"icon/ArrowBendDoubleUpRight.svg",variantCount:1},{name:"arrow-bend-down-left",label:"Arrow Bend Down Left",filePath:"icon/ArrowBendDownLeft.svg",variantCount:1},{name:"arrow-bend-down-right",label:"Arrow Bend Down Right",filePath:"icon/ArrowBendDownRight.svg",variantCount:1},{name:"arrow-bend-left-down",label:"Arrow Bend Left Down",filePath:"icon/ArrowBendLeftDown.svg",variantCount:1},{name:"arrow-bend-right-down",label:"Arrow Bend Right Down",filePath:"icon/ArrowBendRightDown.svg",variantCount:1},{name:"arrow-bend-right-up",label:"Arrow Bend Right Up",filePath:"icon/ArrowBendRightUp.svg",variantCount:1},{name:"arrow-bend-up-left",label:"Arrow Bend Up Left",filePath:"icon/ArrowBendUpLeft.svg",variantCount:1},{name:"arrow-bend-up-right",label:"Arrow Bend Up Right",filePath:"icon/ArrowBendUpRight.svg",variantCount:1},{name:"arrow-circle-down",label:"Arrow Circle Down",filePath:"icon/ArrowCircleDown.svg",variantCount:1},{name:"arrow-circle-down-left",label:"Arrow Circle Down Left",filePath:"icon/ArrowCircleDownLeft.svg",variantCount:1},{name:"arrow-circle-down-right",label:"Arrow Circle Down Right",filePath:"icon/ArrowCircleDownRight.svg",variantCount:1},{name:"arrow-circle-left",label:"Arrow Circle Left",filePath:"icon/ArrowCircleLeft.svg",variantCount:1},{name:"arrow-circle-right",label:"Arrow Circle Right",filePath:"icon/ArrowCircleRight.svg",variantCount:1},{name:"arrow-circle-up",label:"Arrow Circle Up",filePath:"icon/ArrowCircleUp.svg",variantCount:1},{name:"arrow-circle-up-left",label:"Arrow Circle Up Left",filePath:"icon/ArrowCircleUpLeft.svg",variantCount:1},{name:"arrow-circle-up-right",label:"Arrow Circle Up Right",filePath:"icon/ArrowCircleUpRight.svg",variantCount:1},{name:"arrow-clockwise",label:"Arrow Clockwise",filePath:"icon/ArrowClockwise.svg",variantCount:1},{name:"arrow-counter-clockwise",label:"Arrow Counter Clockwise",filePath:"icon/ArrowCounterClockwise.svg",variantCount:1},{name:"arrow-down",label:"Arrow Down",filePath:"icon/ArrowDown.svg",variantCount:1},{name:"arrow-down-left",label:"Arrow Down Left",filePath:"icon/ArrowDownLeft.svg",variantCount:1},{name:"arrow-down-right",label:"Arrow Down Right",filePath:"icon/ArrowDownRight.svg",variantCount:1},{name:"arrow-elbow-down-left",label:"Arrow Elbow Down Left",filePath:"icon/ArrowElbowDownLeft.svg",variantCount:1},{name:"arrow-elbow-down-right",label:"Arrow Elbow Down Right",filePath:"icon/ArrowElbowDownRight.svg",variantCount:1},{name:"arrow-elbow-left",label:"Arrow Elbow Left",filePath:"icon/ArrowElbowLeft.svg",variantCount:1},{name:"arrow-elbow-left-down",label:"Arrow Elbow Left Down",filePath:"icon/ArrowElbowLeftDown.svg",variantCount:1},{name:"arrow-elbow-left-up",label:"Arrow Elbow Left Up",filePath:"icon/ArrowElbowLeftUp.svg",variantCount:1},{name:"arrow-elbow-right",label:"Arrow Elbow Right",filePath:"icon/ArrowElbowRight.svg",variantCount:1},{name:"arrow-elbow-right-down",label:"Arrow Elbow Right Down",filePath:"icon/ArrowElbowRightDown.svg",variantCount:1},{name:"arrow-elbow-right-up",label:"Arrow Elbow Right Up",filePath:"icon/ArrowElbowRightUp.svg",variantCount:1},{name:"arrow-elbow-up-left",label:"Arrow Elbow Up Left",filePath:"icon/ArrowElbowUpLeft.svg",variantCount:1},{name:"arrow-elbow-up-right",label:"Arrow Elbow Up Right",filePath:"icon/ArrowElbowUpRight.svg",variantCount:1},{name:"arrow-left",label:"Arrow Left",filePath:"icon/ArrowLeft.svg",variantCount:1},{name:"arrow-line-down",label:"Arrow Line Down",filePath:"icon/ArrowLineDown.svg",variantCount:1},{name:"arrow-line-down-left",label:"Arrow Line Down Left",filePath:"icon/ArrowLineDownLeft.svg",variantCount:1},{name:"arrow-line-down-right",label:"Arrow Line Down Right",filePath:"icon/ArrowLineDownRight.svg",variantCount:1},{name:"arrow-line-left",label:"Arrow Line Left",filePath:"icon/ArrowLineLeft.svg",variantCount:1},{name:"arrow-line-right",label:"Arrow Line Right",filePath:"icon/ArrowLineRight.svg",variantCount:1},{name:"arrow-line-up",label:"Arrow Line Up",filePath:"icon/ArrowLineUp.svg",variantCount:1},{name:"arrow-line-up-left",label:"Arrow Line Up Left",filePath:"icon/ArrowLineUpLeft.svg",variantCount:1},{name:"arrow-line-up-right",label:"Arrow Line Up Right",filePath:"icon/ArrowLineUpRight.svg",variantCount:1},{name:"arrow-right",label:"Arrow Right",filePath:"icon/ArrowRight.svg",variantCount:1},{name:"arrow-square-down",label:"Arrow Square Down",filePath:"icon/ArrowSquareDown.svg",variantCount:1},{name:"arrow-square-down-left",label:"Arrow Square Down Left",filePath:"icon/ArrowSquareDownLeft.svg",variantCount:1},{name:"arrow-square-down-right",label:"Arrow Square Down Right",filePath:"icon/ArrowSquareDownRight.svg",variantCount:1},{name:"arrow-square-left",label:"Arrow Square Left",filePath:"icon/ArrowSquareLeft.svg",variantCount:1},{name:"arrow-square-right",label:"Arrow Square Right",filePath:"icon/ArrowSquareRight.svg",variantCount:1},{name:"arrow-square-up",label:"Arrow Square Up",filePath:"icon/ArrowSquareUp.svg",variantCount:1},{name:"arrow-square-up-left",label:"Arrow Square Up Left",filePath:"icon/ArrowSquareUpLeft.svg",variantCount:1},{name:"arrow-square-up-right",label:"Arrow Square Up Right",filePath:"icon/ArrowSquareUpRight.svg",variantCount:1},{name:"arrow-up",label:"Arrow Up",filePath:"icon/ArrowUp.svg",variantCount:1},{name:"arrow-up-left",label:"Arrow Up Left",filePath:"icon/ArrowUpLeft.svg",variantCount:1},{name:"arrow-up-right",label:"Arrow Up Right",filePath:"icon/ArrowUpRight.svg",variantCount:1},{name:"arrows-clockwise",label:"Arrows Clockwise",filePath:"icon/ArrowsClockwise.svg",variantCount:1},{name:"arrows-counter-clockwise",label:"Arrows Counter Clockwise",filePath:"icon/ArrowsCounterClockwise.svg",variantCount:1},{name:"arrows-down-up",label:"Arrows Down Up",filePath:"icon/ArrowsDownUp.svg",variantCount:1},{name:"arrows-horizontal",label:"Arrows Horizontal",filePath:"icon/ArrowsHorizontal.svg",variantCount:1},{name:"arrows-in",label:"Arrows In",filePath:"icon/ArrowsIn.svg",variantCount:1},{name:"arrows-in-cardinal",label:"Arrows In Cardinal",filePath:"icon/ArrowsInCardinal.svg",variantCount:1},{name:"arrows-in-line-horizontal",label:"Arrows In Line Horizontal",filePath:"icon/ArrowsInLineHorizontal.svg",variantCount:1},{name:"arrows-in-line-vertical",label:"Arrows In Line Vertical",filePath:"icon/ArrowsInLineVertical.svg",variantCount:1},{name:"arrows-in-simple",label:"Arrows In Simple",filePath:"icon/ArrowsInSimple.svg",variantCount:1},{name:"arrows-left-right",label:"Arrows Left Right",filePath:"icon/ArrowsLeftRight.svg",variantCount:1},{name:"arrows-out",label:"Arrows Out",filePath:"icon/ArrowsOut.svg",variantCount:1},{name:"arrows-out-cardinal",label:"Arrows Out Cardinal",filePath:"icon/ArrowsOutCardinal.svg",variantCount:1},{name:"arrows-out-line-horizontal",label:"Arrows Out Line Horizontal",filePath:"icon/ArrowsOutLineHorizontal.svg",variantCount:1},{name:"arrows-out-line-vertical",label:"Arrows Out Line Vertical",filePath:"icon/ArrowsOutLineVertical.svg",variantCount:1},{name:"arrows-out-simple",label:"Arrows Out Simple",filePath:"icon/ArrowsOutSimple.svg",variantCount:1},{name:"arrows-vertical",label:"Arrows Vertical",filePath:"icon/ArrowsVertical.svg",variantCount:1},{name:"article",label:"Article",filePath:"icon/Article.svg",variantCount:1},{name:"bell",label:"Bell",filePath:"icon/Bell.svg",variantCount:1},{name:"bell-ringing",label:"Bell Ringing",filePath:"icon/BellRinging.svg",variantCount:1},{name:"bell-simple",label:"Bell Simple",filePath:"icon/BellSimple.svg",variantCount:1},{name:"bell-simple-ringing",label:"Bell Simple Ringing",filePath:"icon/BellSimpleRinging.svg",variantCount:1},{name:"bell-simple-slash",label:"Bell Simple Slash",filePath:"icon/BellSimpleSlash.svg",variantCount:1},{name:"binoculars",label:"Binoculars",filePath:"icon/Binoculars.svg",variantCount:1},{name:"book",label:"Book",filePath:"icon/Book.svg",variantCount:1},{name:"book-open",label:"Book Open",filePath:"icon/BookOpen.svg",variantCount:1},{name:"book-open-text",label:"Book Open Text",filePath:"icon/BookOpenText.svg",variantCount:1},{name:"box-arrow-down",label:"Box Arrow Down",filePath:"icon/BoxArrowDown.svg",variantCount:1},{name:"box-arrow-up",label:"Box Arrow Up",filePath:"icon/BoxArrowUp.svg",variantCount:1},{name:"brackets-angle",label:"Brackets Angle",filePath:"icon/BracketsAngle.svg",variantCount:1},{name:"brackets-curly",label:"Brackets Curly",filePath:"icon/BracketsCurly.svg",variantCount:1},{name:"brackets-round",label:"Brackets Round",filePath:"icon/BracketsRound.svg",variantCount:1},{name:"brackets-square",label:"Brackets Square",filePath:"icon/BracketsSquare.svg",variantCount:1},{name:"browser",label:"Browser",filePath:"icon/Browser.svg",variantCount:1},{name:"browsers",label:"Browsers",filePath:"icon/Browsers.svg",variantCount:1},{name:"bug",label:"Bug",filePath:"icon/Bug.svg",variantCount:1},{name:"calendar-blank",label:"Calendar Blank",filePath:"icon/CalendarBlank.svg",variantCount:1},{name:"calendar-dots",label:"Calendar Dots",filePath:"icon/CalendarDots.svg",variantCount:1},{name:"cards",label:"Cards",filePath:"icon/Cards.svg",variantCount:1},{name:"cards-three",label:"Cards Three",filePath:"icon/CardsThree.svg",variantCount:1},{name:"caret-circle-double-down",label:"Caret Circle Double Down",filePath:"icon/CaretCircleDoubleDown.svg",variantCount:1},{name:"caret-circle-double-left",label:"Caret Circle Double Left",filePath:"icon/CaretCircleDoubleLeft.svg",variantCount:1},{name:"caret-circle-double-right",label:"Caret Circle Double Right",filePath:"icon/CaretCircleDoubleRight.svg",variantCount:1},{name:"caret-circle-double-up",label:"Caret Circle Double Up",filePath:"icon/CaretCircleDoubleUp.svg",variantCount:1},{name:"caret-circle-down",label:"Caret Circle Down",filePath:"icon/CaretCircleDown.svg",variantCount:1},{name:"caret-circle-left",label:"Caret Circle Left",filePath:"icon/CaretCircleLeft.svg",variantCount:1},{name:"caret-circle-right",label:"Caret Circle Right",filePath:"icon/CaretCircleRight.svg",variantCount:1},{name:"caret-circle-up",label:"Caret Circle Up",filePath:"icon/CaretCircleUp.svg",variantCount:1},{name:"caret-circle-up-down",label:"Caret Circle Up Down",filePath:"icon/CaretCircleUpDown.svg",variantCount:1},{name:"caret-down",label:"Caret Down",filePath:"icon/CaretDown.svg",variantCount:1},{name:"caret-left",label:"Caret Left",filePath:"icon/CaretLeft.svg",variantCount:1},{name:"caret-line-down",label:"Caret Line Down",filePath:"icon/CaretLineDown.svg",variantCount:1},{name:"caret-line-left",label:"Caret Line Left",filePath:"icon/CaretLineLeft.svg",variantCount:1},{name:"caret-line-right",label:"Caret Line Right",filePath:"icon/CaretLineRight.svg",variantCount:1},{name:"caret-line-up",label:"Caret Line Up",filePath:"icon/CaretLineUp.svg",variantCount:1},{name:"caret-right",label:"Caret Right",filePath:"icon/CaretRight.svg",variantCount:1},{name:"caret-up",label:"Caret Up",filePath:"icon/CaretUp.svg",variantCount:1},{name:"caret-up-down",label:"Caret Up Down",filePath:"icon/CaretUpDown.svg",variantCount:1},{name:"check",label:"Check",filePath:"icon/Check.svg",variantCount:1},{name:"check-circle",label:"Check Circle",filePath:"icon/CheckCircle.svg",variantCount:1},{name:"check-square",label:"Check Square",filePath:"icon/CheckSquare.svg",variantCount:1},{name:"check-square-offset",label:"Check Square Offset",filePath:"icon/CheckSquareOffset.svg",variantCount:1},{name:"checks",label:"Checks",filePath:"icon/Checks.svg",variantCount:1},{name:"circles-four",label:"Circles Four",filePath:"icon/CirclesFour.svg",variantCount:1},{name:"clipboard",label:"Clipboard",filePath:"icon/Clipboard.svg",variantCount:1},{name:"clipboard-text",label:"Clipboard Text",filePath:"icon/ClipboardText.svg",variantCount:1},{name:"cloud-arrow-down",label:"Cloud Arrow Down",filePath:"icon/CloudArrowDown.svg",variantCount:1},{name:"cloud-arrow-up",label:"Cloud Arrow Up",filePath:"icon/CloudArrowUp.svg",variantCount:1},{name:"cloud-check",label:"Cloud Check",filePath:"icon/CloudCheck.svg",variantCount:1},{name:"cloud-slash",label:"Cloud Slash",filePath:"icon/CloudSlash.svg",variantCount:1},{name:"cloud-warning",label:"Cloud Warning",filePath:"icon/CloudWarning.svg",variantCount:1},{name:"cloud-x",label:"Cloud X",filePath:"icon/CloudX.svg",variantCount:1},{name:"code",label:"Code",filePath:"icon/Code.svg",variantCount:1},{name:"code-block",label:"Code Block",filePath:"icon/CodeBlock.svg",variantCount:1},{name:"code-simple",label:"Code Simple",filePath:"icon/CodeSimple.svg",variantCount:1},{name:"columns",label:"Columns",filePath:"icon/Columns.svg",variantCount:1},{name:"columns-plus-left",label:"Columns Plus Left",filePath:"icon/ColumnsPlusLeft.svg",variantCount:1},{name:"columns-plus-right",label:"Columns Plus Right",filePath:"icon/ColumnsPlusRight.svg",variantCount:1},{name:"copy",label:"Copy",filePath:"icon/Copy.svg",variantCount:1},{name:"copy-simple",label:"Copy Simple",filePath:"icon/CopySimple.svg",variantCount:1},{name:"cpu",label:"Cpu",filePath:"icon/Cpu.svg",variantCount:1},{name:"credit-card",label:"Credit Card",filePath:"icon/CreditCard.svg",variantCount:1},{name:"cube",label:"Cube",filePath:"icon/Cube.svg",variantCount:1},{name:"cube-transparent",label:"Cube Transparent",filePath:"icon/CubeTransparent.svg",variantCount:1},{name:"database",label:"Database",filePath:"icon/Database.svg",variantCount:1},{name:"desktop",label:"Desktop",filePath:"icon/Desktop.svg",variantCount:1},{name:"desktop-tower",label:"Desktop Tower",filePath:"icon/DesktopTower.svg",variantCount:1},{name:"detective",label:"Detective",filePath:"icon/Detective.svg",variantCount:1},{name:"device-mobile-camera",label:"Device Mobile Camera",filePath:"icon/DeviceMobileCamera.svg",variantCount:1},{name:"device-tablet-camera",label:"Device Tablet Camera",filePath:"icon/DeviceTabletCamera.svg",variantCount:1},{name:"devices",label:"Devices",filePath:"icon/Devices.svg",variantCount:1},{name:"diamonds-four",label:"Diamonds Four",filePath:"icon/DiamondsFour.svg",variantCount:1},{name:"dot",label:"Dot",filePath:"icon/Dot.svg",variantCount:1},{name:"dot-outline",label:"Dot Outline",filePath:"icon/DotOutline.svg",variantCount:1},{name:"dots-nine",label:"Dots Nine",filePath:"icon/DotsNine.svg",variantCount:1},{name:"dots-six",label:"Dots Six",filePath:"icon/DotsSix.svg",variantCount:1},{name:"dots-six-vertical",label:"Dots Six Vertical",filePath:"icon/DotsSixVertical.svg",variantCount:1},{name:"dots-three",label:"Dots Three",filePath:"icon/DotsThree.svg",variantCount:1},{name:"dots-three-circle",label:"Dots Three Circle",filePath:"icon/DotsThreeCircle.svg",variantCount:1},{name:"dots-three-circle-vertical",label:"Dots Three Circle Vertical",filePath:"icon/DotsThreeCircleVertical.svg",variantCount:1},{name:"dots-three-outline",label:"Dots Three Outline",filePath:"icon/DotsThreeOutline.svg",variantCount:1},{name:"dots-three-outline-vertical",label:"Dots Three Outline Vertical",filePath:"icon/DotsThreeOutlineVertical.svg",variantCount:1},{name:"dots-three-vertical",label:"Dots Three Vertical",filePath:"icon/DotsThreeVertical.svg",variantCount:1},{name:"download-simple",label:"Download Simple",filePath:"icon/DownloadSimple.svg",variantCount:1},{name:"envelope",label:"Envelope",filePath:"icon/Envelope.svg",variantCount:1},{name:"envelope-simple",label:"Envelope Simple",filePath:"icon/EnvelopeSimple.svg",variantCount:1},{name:"exclamation-mark",label:"Exclamation Mark",filePath:"icon/ExclamationMark.svg",variantCount:1},{name:"export",label:"Export",filePath:"icon/Export.svg",variantCount:1},{name:"eye",label:"Eye",filePath:"icon/Eye.svg",variantCount:1},{name:"eye-closed",label:"Eye Closed",filePath:"icon/EyeClosed.svg",variantCount:1},{name:"eye-slash",label:"Eye Slash",filePath:"icon/EyeSlash.svg",variantCount:1},{name:"faders",label:"Faders",filePath:"icon/Faders.svg",variantCount:1},{name:"faders-horizontal",label:"Faders Horizontal",filePath:"icon/FadersHorizontal.svg",variantCount:1},{name:"file",label:"File",filePath:"icon/File.svg",variantCount:1},{name:"file-archive",label:"File Archive",filePath:"icon/FileArchive.svg",variantCount:1},{name:"file-arrow-down",label:"File Arrow Down",filePath:"icon/FileArrowDown.svg",variantCount:1},{name:"file-arrow-up",label:"File Arrow Up",filePath:"icon/FileArrowUp.svg",variantCount:1},{name:"file-dashed",label:"File Dashed",filePath:"icon/FileDashed.svg",variantCount:1},{name:"file-text",label:"File Text",filePath:"icon/FileText.svg",variantCount:1},{name:"files",label:"Files",filePath:"icon/Files.svg",variantCount:1},{name:"fingerprint",label:"Fingerprint",filePath:"icon/Fingerprint.svg",variantCount:1},{name:"fingerprint-simple",label:"Fingerprint Simple",filePath:"icon/FingerprintSimple.svg",variantCount:1},{name:"flag",label:"Flag",filePath:"icon/Flag.svg",variantCount:1},{name:"flag-pennant",label:"Flag Pennant",filePath:"icon/FlagPennant.svg",variantCount:1},{name:"floppy-disk",label:"Floppy Disk",filePath:"icon/FloppyDisk.svg",variantCount:1},{name:"folder",label:"Folder",filePath:"icon/Folder.svg",variantCount:1},{name:"folder-dashed",label:"Folder Dashed",filePath:"icon/FolderDashed.svg",variantCount:1},{name:"folder-open",label:"Folder Open",filePath:"icon/FolderOpen.svg",variantCount:1},{name:"folder-simple",label:"Folder Simple",filePath:"icon/FolderSimple.svg",variantCount:1},{name:"folder-simple-dashed",label:"Folder Simple Dashed",filePath:"icon/FolderSimpleDashed.svg",variantCount:1},{name:"folders",label:"Folders",filePath:"icon/Folders.svg",variantCount:1},{name:"funnel",label:"Funnel",filePath:"icon/Funnel.svg",variantCount:1},{name:"funnel-simple",label:"Funnel Simple",filePath:"icon/FunnelSimple.svg",variantCount:1},{name:"gear",label:"Gear",filePath:"icon/Gear.svg",variantCount:1},{name:"gear-six",label:"Gear Six",filePath:"icon/GearSix.svg",variantCount:1},{name:"git-branch",label:"Git Branch",filePath:"icon/GitBranch.svg",variantCount:1},{name:"git-merge",label:"Git Merge",filePath:"icon/GitMerge.svg",variantCount:1},{name:"git-pull-request",label:"Git Pull Request",filePath:"icon/GitPullRequest.svg",variantCount:1},{name:"globe",label:"Globe",filePath:"icon/Globe.svg",variantCount:1},{name:"globe-simple",label:"Globe Simple",filePath:"icon/GlobeSimple.svg",variantCount:1},{name:"green-tick",label:"Green Tick",filePath:"icon/GreenTick.svg",variantCount:1},{name:"grid-four",label:"Grid Four",filePath:"icon/GridFour.svg",variantCount:1},{name:"hammer",label:"Hammer",filePath:"icon/Hammer.svg",variantCount:1},{name:"hand",label:"Hand",filePath:"icon/Hand.svg",variantCount:1},{name:"hand-palm",label:"Hand Palm",filePath:"icon/HandPalm.svg",variantCount:1},{name:"hand-pointing",label:"Hand Pointing",filePath:"icon/HandPointing.svg",variantCount:1},{name:"house",label:"House",filePath:"icon/House.svg",variantCount:1},{name:"identification-badge",label:"Identification Badge",filePath:"icon/IdentificationBadge.svg",variantCount:1},{name:"identification-card",label:"Identification Card",filePath:"icon/IdentificationCard.svg",variantCount:1},{name:"info",label:"Info",filePath:"icon/Info.svg",variantCount:1},{name:"key",label:"Key",filePath:"icon/Key.svg",variantCount:1},{name:"ladder-simple",label:"Ladder Simple",filePath:"icon/LadderSimple.svg",variantCount:1},{name:"layout",label:"Layout",filePath:"icon/Layout.svg",variantCount:1},{name:"lifebuoy",label:"Lifebuoy",filePath:"icon/Lifebuoy.svg",variantCount:1},{name:"lightbulb",label:"Lightbulb",filePath:"icon/Lightbulb.svg",variantCount:1},{name:"lightning",label:"Lightning",filePath:"icon/Lightning.svg",variantCount:1},{name:"link",label:"Link",filePath:"icon/Link.svg",variantCount:1},{name:"link-break",label:"Link Break",filePath:"icon/LinkBreak.svg",variantCount:1},{name:"link-simple",label:"Link Simple",filePath:"icon/LinkSimple.svg",variantCount:1},{name:"link-simple-break",label:"Link Simple Break",filePath:"icon/LinkSimpleBreak.svg",variantCount:1},{name:"link-simple-horizontal",label:"Link Simple Horizontal",filePath:"icon/LinkSimpleHorizontal.svg",variantCount:1},{name:"link-simple-horizontal-break",label:"Link Simple Horizontal Break",filePath:"icon/LinkSimpleHorizontalBreak.svg",variantCount:1},{name:"list",label:"List",filePath:"icon/List.svg",variantCount:1},{name:"list-bullets",label:"List Bullets",filePath:"icon/ListBullets.svg",variantCount:1},{name:"list-checks",label:"List Checks",filePath:"icon/ListChecks.svg",variantCount:1},{name:"list-dashes",label:"List Dashes",filePath:"icon/ListDashes.svg",variantCount:1},{name:"list-heart",label:"List Heart",filePath:"icon/ListHeart.svg",variantCount:1},{name:"list-magnifying-glass",label:"List Magnifying Glass",filePath:"icon/ListMagnifyingGlass.svg",variantCount:1},{name:"list-numbers",label:"List Numbers",filePath:"icon/ListNumbers.svg",variantCount:1},{name:"list-plus",label:"List Plus",filePath:"icon/ListPlus.svg",variantCount:1},{name:"list-star",label:"List Star",filePath:"icon/ListStar.svg",variantCount:1},{name:"lock",label:"Lock",filePath:"icon/Lock.svg",variantCount:1},{name:"lock-key",label:"Lock Key",filePath:"icon/LockKey.svg",variantCount:1},{name:"lock-key-open",label:"Lock Key Open",filePath:"icon/LockKeyOpen.svg",variantCount:1},{name:"lock-open",label:"Lock Open",filePath:"icon/LockOpen.svg",variantCount:1},{name:"lock-simple",label:"Lock Simple",filePath:"icon/LockSimple.svg",variantCount:1},{name:"lock-simple-open",label:"Lock Simple Open",filePath:"icon/LockSimpleOpen.svg",variantCount:1},{name:"magnifying-glass",label:"Magnifying Glass",filePath:"icon/MagnifyingGlass.svg",variantCount:1},{name:"magnifying-glass-minus",label:"Magnifying Glass Minus",filePath:"icon/MagnifyingGlassMinus.svg",variantCount:1},{name:"magnifying-glass-plus",label:"Magnifying Glass Plus",filePath:"icon/MagnifyingGlassPlus.svg",variantCount:1},{name:"megaphone",label:"Megaphone",filePath:"icon/Megaphone.svg",variantCount:1},{name:"megaphone-simple",label:"Megaphone Simple",filePath:"icon/MegaphoneSimple.svg",variantCount:1},{name:"microphone",label:"Microphone",filePath:"icon/Microphone.svg",variantCount:1},{name:"navigation-arrow",label:"Navigation Arrow",filePath:"icon/NavigationArrow.svg",variantCount:1},{name:"network",label:"Network",filePath:"icon/Network.svg",variantCount:1},{name:"network-slash",label:"Network Slash",filePath:"icon/NetworkSlash.svg",variantCount:1},{name:"network-x",label:"Network X",filePath:"icon/NetworkX.svg",variantCount:1},{name:"newspaper",label:"Newspaper",filePath:"icon/Newspaper.svg",variantCount:1},{name:"newspaper-clipping",label:"Newspaper Clipping",filePath:"icon/NewspaperClipping.svg",variantCount:1},{name:"notches",label:"Notches",filePath:"icon/Notches.svg",variantCount:1},{name:"note",label:"Note",filePath:"icon/Note.svg",variantCount:1},{name:"note-blank",label:"Note Blank",filePath:"icon/NoteBlank.svg",variantCount:1},{name:"note-pencil",label:"Note Pencil",filePath:"icon/NotePencil.svg",variantCount:1},{name:"notification",label:"Notification",filePath:"icon/Notification.svg",variantCount:1},{name:"nut",label:"Nut",filePath:"icon/Nut.svg",variantCount:1},{name:"paperclip",label:"Paperclip",filePath:"icon/Paperclip.svg",variantCount:1},{name:"paperclip-horizontal",label:"Paperclip Horizontal",filePath:"icon/PaperclipHorizontal.svg",variantCount:1},{name:"password",label:"Password",filePath:"icon/Password.svg",variantCount:1},{name:"pencil-simple",label:"Pencil Simple",filePath:"icon/PencilSimple.svg",variantCount:1},{name:"pencil-simple-line",label:"Pencil Simple Line",filePath:"icon/PencilSimpleLine.svg",variantCount:1},{name:"person",label:"Person",filePath:"icon/Person.svg",variantCount:1},{name:"person-arms-spread",label:"Person Arms Spread",filePath:"icon/PersonArmsSpread.svg",variantCount:1},{name:"person-simple",label:"Person Simple",filePath:"icon/PersonSimple.svg",variantCount:1},{name:"placeholder",label:"Placeholder",filePath:"icon/Placeholder.svg",variantCount:1},{name:"plus",label:"Plus",filePath:"icon/Plus.svg",variantCount:1},{name:"plus-circle",label:"Plus Circle",filePath:"icon/PlusCircle.svg",variantCount:1},{name:"plus-square",label:"Plus Square",filePath:"icon/PlusSquare.svg",variantCount:1},{name:"prohibit",label:"Prohibit",filePath:"icon/Prohibit.svg",variantCount:1},{name:"prohibit-inset",label:"Prohibit Inset",filePath:"icon/ProhibitInset.svg",variantCount:1},{name:"pulse",label:"Pulse",filePath:"icon/Pulse.svg",variantCount:1},{name:"push-pin",label:"Push Pin",filePath:"icon/PushPin.svg",variantCount:1},{name:"push-pin-simple",label:"Push Pin Simple",filePath:"icon/PushPinSimple.svg",variantCount:1},{name:"push-pin-simple-slash",label:"Push Pin Simple Slash",filePath:"icon/PushPinSimpleSlash.svg",variantCount:1},{name:"push-pin-slash",label:"Push Pin Slash",filePath:"icon/PushPinSlash.svg",variantCount:1},{name:"puzzle-piece",label:"Puzzle Piece",filePath:"icon/PuzzlePiece.svg",variantCount:1},{name:"question",label:"Question",filePath:"icon/Question.svg",variantCount:1},{name:"question-mark",label:"Question Mark",filePath:"icon/QuestionMark.svg",variantCount:1},{name:"receipt",label:"Receipt",filePath:"icon/Receipt.svg",variantCount:1},{name:"receipt-x",label:"Receipt X",filePath:"icon/ReceiptX.svg",variantCount:1},{name:"rows-plus-bottom",label:"Rows Plus Bottom",filePath:"icon/RowsPlusBottom.svg",variantCount:1},{name:"rows-plus-top",label:"Rows Plus Top",filePath:"icon/RowsPlusTop.svg",variantCount:1},{name:"scroll",label:"Scroll",filePath:"icon/Scroll.svg",variantCount:1},{name:"seal",label:"Seal",filePath:"icon/Seal.svg",variantCount:1},{name:"seal-check",label:"Seal Check",filePath:"icon/SealCheck.svg",variantCount:1},{name:"share",label:"Share",filePath:"icon/Share.svg",variantCount:1},{name:"share-fat",label:"Share Fat",filePath:"icon/ShareFat.svg",variantCount:1},{name:"share-network",label:"Share Network",filePath:"icon/ShareNetwork.svg",variantCount:1},{name:"shield",label:"Shield",filePath:"icon/Shield.svg",variantCount:1},{name:"shield-check",label:"Shield Check",filePath:"icon/ShieldCheck.svg",variantCount:1},{name:"shield-checkered",label:"Shield Checkered",filePath:"icon/ShieldCheckered.svg",variantCount:1},{name:"shield-chevron",label:"Shield Chevron",filePath:"icon/ShieldChevron.svg",variantCount:1},{name:"shield-plus",label:"Shield Plus",filePath:"icon/ShieldPlus.svg",variantCount:1},{name:"shield-slash",label:"Shield Slash",filePath:"icon/ShieldSlash.svg",variantCount:1},{name:"shield-star",label:"Shield Star",filePath:"icon/ShieldStar.svg",variantCount:1},{name:"shield-warning",label:"Shield Warning",filePath:"icon/ShieldWarning.svg",variantCount:1},{name:"sidebar",label:"Sidebar",filePath:"icon/Sidebar.svg",variantCount:1},{name:"sidebar-simple",label:"Sidebar Simple",filePath:"icon/SidebarSimple.svg",variantCount:1},{name:"sign-in",label:"Sign In",filePath:"icon/SignIn.svg",variantCount:1},{name:"sign-out",label:"Sign Out",filePath:"icon/SignOut.svg",variantCount:1},{name:"siren",label:"Siren",filePath:"icon/Siren.svg",variantCount:1},{name:"sliders",label:"Sliders",filePath:"icon/Sliders.svg",variantCount:1},{name:"sliders-horizontal",label:"Sliders Horizontal",filePath:"icon/SlidersHorizontal.svg",variantCount:1},{name:"sort-ascending",label:"Sort Ascending",filePath:"icon/SortAscending.svg",variantCount:1},{name:"sort-descending",label:"Sort Descending",filePath:"icon/SortDescending.svg",variantCount:1},{name:"spinner",label:"Spinner",filePath:"icon/Spinner.svg",variantCount:1},{name:"spinner-gap",label:"Spinner Gap",filePath:"icon/SpinnerGap.svg",variantCount:1},{name:"split-horizontal",label:"Split Horizontal",filePath:"icon/SplitHorizontal.svg",variantCount:1},{name:"split-vertical",label:"Split Vertical",filePath:"icon/SplitVertical.svg",variantCount:1},{name:"square-half",label:"Square Half",filePath:"icon/SquareHalf.svg",variantCount:1},{name:"square-half-bottom",label:"Square Half Bottom",filePath:"icon/SquareHalfBottom.svg",variantCount:1},{name:"square-split-horizontal",label:"Square Split Horizontal",filePath:"icon/SquareSplitHorizontal.svg",variantCount:1},{name:"square-split-vertical",label:"Square Split Vertical",filePath:"icon/SquareSplitVertical.svg",variantCount:1},{name:"squares-four",label:"Squares Four",filePath:"icon/SquaresFour.svg",variantCount:1},{name:"stack",label:"Stack",filePath:"icon/Stack.svg",variantCount:1},{name:"stack-minus",label:"Stack Minus",filePath:"icon/StackMinus.svg",variantCount:1},{name:"stack-plus",label:"Stack Plus",filePath:"icon/StackPlus.svg",variantCount:1},{name:"stack-simple",label:"Stack Simple",filePath:"icon/StackSimple.svg",variantCount:1},{name:"star",label:"Star",filePath:"icon/Star.svg",variantCount:1},{name:"table",label:"Table",filePath:"icon/Table.svg",variantCount:1},{name:"tag",label:"Tag",filePath:"icon/Tag.svg",variantCount:1},{name:"tag-chevron",label:"Tag Chevron",filePath:"icon/TagChevron.svg",variantCount:1},{name:"tag-simple",label:"Tag Simple",filePath:"icon/TagSimple.svg",variantCount:1},{name:"target",label:"Target",filePath:"icon/Target.svg",variantCount:1},{name:"terminal",label:"Terminal",filePath:"icon/Terminal.svg",variantCount:1},{name:"terminal-window",label:"Terminal Window",filePath:"icon/TerminalWindow.svg",variantCount:1},{name:"text-columns",label:"Text Columns",filePath:"icon/TextColumns.svg",variantCount:1},{name:"ticket",label:"Ticket",filePath:"icon/Ticket.svg",variantCount:1},{name:"trash",label:"Trash",filePath:"icon/Trash.svg",variantCount:1},{name:"trash-simple",label:"Trash Simple",filePath:"icon/TrashSimple.svg",variantCount:1},{name:"tray",label:"Tray",filePath:"icon/Tray.svg",variantCount:1},{name:"tray-arrow-down",label:"Tray Arrow Down",filePath:"icon/TrayArrowDown.svg",variantCount:1},{name:"tray-arrow-up",label:"Tray Arrow Up",filePath:"icon/TrayArrowUp.svg",variantCount:1},{name:"tree-structure",label:"Tree Structure",filePath:"icon/TreeStructure.svg",variantCount:1},{name:"upload-simple",label:"Upload Simple",filePath:"icon/UploadSimple.svg",variantCount:1},{name:"user",label:"User",filePath:"icon/User.svg",variantCount:1},{name:"user-check",label:"User Check",filePath:"icon/UserCheck.svg",variantCount:1},{name:"user-circle",label:"User Circle",filePath:"icon/UserCircle.svg",variantCount:1},{name:"user-circle-check",label:"User Circle Check",filePath:"icon/UserCircleCheck.svg",variantCount:1},{name:"user-circle-dashed",label:"User Circle Dashed",filePath:"icon/UserCircleDashed.svg",variantCount:1},{name:"user-circle-gear",label:"User Circle Gear",filePath:"icon/UserCircleGear.svg",variantCount:1},{name:"user-circle-minus",label:"User Circle Minus",filePath:"icon/UserCircleMinus.svg",variantCount:1},{name:"user-circle-plus",label:"User Circle Plus",filePath:"icon/UserCirclePlus.svg",variantCount:1},{name:"user-focus",label:"User Focus",filePath:"icon/UserFocus.svg",variantCount:1},{name:"user-gear",label:"User Gear",filePath:"icon/UserGear.svg",variantCount:1},{name:"user-list",label:"User List",filePath:"icon/UserList.svg",variantCount:1},{name:"user-minus",label:"User Minus",filePath:"icon/UserMinus.svg",variantCount:1},{name:"user-plus",label:"User Plus",filePath:"icon/UserPlus.svg",variantCount:1},{name:"user-rectangle",label:"User Rectangle",filePath:"icon/UserRectangle.svg",variantCount:1},{name:"user-sound",label:"User Sound",filePath:"icon/UserSound.svg",variantCount:1},{name:"user-square",label:"User Square",filePath:"icon/UserSquare.svg",variantCount:1},{name:"user-switch",label:"User Switch",filePath:"icon/UserSwitch.svg",variantCount:1},{name:"users",label:"Users",filePath:"icon/Users.svg",variantCount:1},{name:"users-four",label:"Users Four",filePath:"icon/UsersFour.svg",variantCount:1},{name:"users-three",label:"Users Three",filePath:"icon/UsersThree.svg",variantCount:1},{name:"vault",label:"Vault",filePath:"icon/Vault.svg",variantCount:1},{name:"warning",label:"Warning",filePath:"icon/Warning.svg",variantCount:1},{name:"warning-circle",label:"Warning Circle",filePath:"icon/WarningCircle.svg",variantCount:1},{name:"warning-diamond",label:"Warning Diamond",filePath:"icon/WarningDiamond.svg",variantCount:1},{name:"warning-octagon",label:"Warning Octagon",filePath:"icon/WarningOctagon.svg",variantCount:1},{name:"wrench",label:"Wrench",filePath:"icon/Wrench.svg",variantCount:1},{name:"x",label:"X",filePath:"icon/X.svg",variantCount:1},{name:"xcircle",label:"XCircle",filePath:"icon/XCircle.svg",variantCount:1},{name:"xsquare",label:"XSquare",filePath:"icon/XSquare.svg",variantCount:1},{name:"calendar",label:"Calendar",filePath:"icon/calendar.svg",variantCount:1}],ue=({name:e,size:a="medium",variant:n="default",className:o="",style:l={},alt:r="",...i})=>{const s=e?.replace(/\.svg$/,"").toLowerCase(),c=(()=>{if("number"==typeof a)return`${a}px`;const e={small:"12px",medium:"16px",large:"24px"};return e[a]||e.medium})(),d=(()=>{const t=de.find(t=>t.name===s||t.name===e);return`https://cdn.jsdelivr.net/npm/squarex-ui-component-lib@latest/public/icon/${t?t.filePath.split("/").pop():`${e}.svg`}`})(),u=r||`${s} icon`,m=[ce.icon,ce[`variant_${n}`],o].filter(Boolean).join(" "),h={width:c,height:c,...l};return t("img",{src:d,alt:u,className:m,style:h,...i})},me=({className:e})=>t("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:t("path",{d:"M7.00033 1.16699L8.80283 4.81866L12.8337 5.40783L9.91699 8.24866L10.6053 12.262L7.00033 10.3662L3.39533 12.262L4.08366 8.24866L1.16699 5.40783L5.19783 4.81866L7.00033 1.16699Z",stroke:"#36204C",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}),he=({className:a})=>e("svg",{className:a,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),pe=({label:a="Button",showLeadingIcon:n=!0,showTrailingIcon:o=!1,leadingIcon:l,trailingIcon:r,leftIcon:i,rightIcon:s,variant:c,buttonStyle:d="primary",state:u="default",size:m="medium",onClick:h,disabled:p,loading:g,className:f="",children:_,...v})=>{const b=g?"loading":p?"disabled":u,w=p||g||"disabled"===b,C=ie(se.button,se[`style_${c||d||"primary"}`],se[`state_${b}`],se[`size_${"md"===m?"medium":"sm"===m?"small":m}`],f),y="Button"===a&&_?_:a;return e("button",{className:C,onClick:h,disabled:w,"aria-disabled":w,...v,children:[(()=>{if(!n)return null;const e=l||i;return e?"string"==typeof e?t(ue,{name:e,className:se.icon}):e:"loading"===b?t(he,{className:se.loaderIcon}):t(me,{className:se.icon})})(),t("span",{className:se.label,children:y}),(()=>{if(!o)return null;const e=r||s;return e?"string"==typeof e?t(ue,{name:e,className:se.icon}):e:t(me,{className:se.icon})})()]})};var ge={button:"ButtonDanger-module_button__AOtwP",label:"ButtonDanger-module_label__b5KXy",icon:"ButtonDanger-module_icon__cFsc0",loaderIcon:"ButtonDanger-module_loaderIcon__0Grd9",spin:"ButtonDanger-module_spin__dWDkA",size_medium:"ButtonDanger-module_size_medium__rSyZy",size_small:"ButtonDanger-module_size_small__uAFGW",style_primary:"ButtonDanger-module_style_primary__iUyC1",state_default:"ButtonDanger-module_state_default__Y5C0B",state_hover:"ButtonDanger-module_state_hover__sATSe",state_focus:"ButtonDanger-module_state_focus__gFvzD",state_disabled:"ButtonDanger-module_state_disabled__UT767",state_loading:"ButtonDanger-module_state_loading__-C8Aq",style_neutral:"ButtonDanger-module_style_neutral__VZ0rO",style_subtle:"ButtonDanger-module_style_subtle__PTOK-"};const fe=({label:a="Button",showLeadingIcon:n=!0,showTrailingIcon:o=!1,leadingIcon:l,trailingIcon:r,style:i="primary",state:s="default",size:c="medium",onClick:d,disabled:u,loading:m,className:h="",...p})=>{const g=m?"loading":u?"disabled":s,f=u||m||"disabled"===g,_=[ge.button,ge[`style_${i}`],ge[`state_${g}`],ge[`size_${c}`],h].filter(Boolean).join(" ");return e("button",{className:_,onClick:d,disabled:f,"aria-disabled":f,...p,children:[n?l||t(ue,"loading"===g?{name:"spinner",size:16,className:ge.loaderIcon}:{name:"star",size:14,className:ge.icon}):null,t("span",{className:ge.label,children:a}),o?r||t(ue,{name:"star",size:14,className:ge.icon}):null]})};var _e={avatar:"Avatar-module_avatar__iHwNB",size_large:"Avatar-module_size_large__lysYk",size_medium:"Avatar-module_size_medium__JL1rC",size_small:"Avatar-module_size_small__F3gWo",shape_circle:"Avatar-module_shape_circle__YEmYW",shape_square:"Avatar-module_shape_square__nLoa1",initialsBg:"Avatar-module_initialsBg__54pKJ",image:"Avatar-module_image__-oxFc",initials:"Avatar-module_initials__DzwqM"};const ve=({src:e,initials:a,alt:n,size:o="medium",shape:l="circle",className:r="",...i})=>{const s=[_e.avatar,_e[`size_${o}`],_e[`shape_${l}`],!e&&a?_e.initialsBg:"",r].filter(Boolean).join(" ");return t("div",{className:s,...i,children:e?t("img",{src:e,alt:n||a||"avatar",className:_e.image}):t("span",{className:_e.initials,children:a})})};var be="BackgroundGradient-module_container__h-ECQ",we="BackgroundGradient-module_gradientBlobsImage__HSoZE";const Ce=({className:e="",mode:a="Light Mode BG",...n})=>t("div",{className:`${be} ${e}`,"data-mode":a,...n,children:t("img",{className:we,src:`/bg/Mode=${a}.svg`,alt:`${a} Blobs`})});var ye={badge:"Badge-module_badge__IxlOE",size_small:"Badge-module_size_small__blSq3",size_medium:"Badge-module_size_medium__hlh0Y",size_large:"Badge-module_size_large__EzYlM",type_active:"Badge-module_type_active__CPh-H",type_inactive:"Badge-module_type_inactive__xwWXA",type_default:"Badge-module_type_default__5N9w7"};const xe=({label:e="Badge",type:a="default",size:n="medium",className:o="",children:l,...r})=>{const i=(e=>{if(!e)return"default";const t=e.toLowerCase();return"active"===t?"active":"inactive"===t?"inactive":"default"})(a),s=(e=>{if(!e)return"medium";const t=e.toString().toLowerCase();return"small"===t||"sm"===t?"small":"medium"===t||"md"===t?"medium":"large"===t||"lg"===t?"large":"medium"})(n),c=[ye.badge,ye[`type_${i}`],ye[`size_${s}`],o].filter(Boolean).join(" ");return t("span",{className:c,...r,children:l||e})};var ke={breadcrumbContainer:"Breadcrumb-module_breadcrumbContainer__uBvx5",itemContent:"Breadcrumb-module_itemContent__EuvYW",itemIcon:"Breadcrumb-module_itemIcon__mJSYP",itemTitle:"Breadcrumb-module_itemTitle__g8smt",separator:"Breadcrumb-module_separator__VeZVd"};const Pe=({items:a=[],separator:n="/",className:o="",...l})=>{const r=a.map(a=>({...a,title:e("span",{className:ke.itemContent,children:[a.icon&&t(ue,{name:a.icon,size:14,className:ke.itemIcon}),t("span",{className:ke.itemTitle,children:a.title})]})}));return t("div",{className:`${ke.breadcrumbContainer} ${o}`,children:t(m,{items:r,separator:t("span",{className:ke.separator,children:n}),className:ke.antBreadcrumb,...l})})};var Ne={container:"Categories-module_container__U5Jrk",searchSection:"Categories-module_searchSection__OtRY7",searchInput:"Categories-module_searchInput__er5yT",searchIcon:"Categories-module_searchIcon__z6tia",searchIconImage:"Categories-module_searchIconImage__pGeZj",searchPlaceholder:"Categories-module_searchPlaceholder__ZmolO",searchValue:"Categories-module_searchValue__21-r9",realSearchInput:"Categories-module_realSearchInput__w4p-O",chipListContainer:"Categories-module_chipListContainer__pacAl",chipListRow:"Categories-module_chipListRow__h7kfy",chip:"Categories-module_chip__QYPTC",chipLabel:"Categories-module_chipLabel__TA2tB",chipRemove:"Categories-module_chipRemove__AZnYD",chipIcon:"Categories-module_chipIcon__jI19r",listsContainer:"Categories-module_listsContainer__qLgWk",categoryList:"Categories-module_categoryList__-hGax",categoryTitle:"Categories-module_categoryTitle__IojeE",categoryTitleText:"Categories-module_categoryTitleText__THhiO",chevronIcon:"Categories-module_chevronIcon__WSZAt",chevronImg:"Categories-module_chevronImg__u0z0y",chevronUp:"Categories-module_chevronUp__3IMMr",categoryItems:"Categories-module_categoryItems__rkjFa",categoryItemWrapper:"Categories-module_categoryItemWrapper__nSWPf",actionsContainer:"Categories-module_actionsContainer__E-9bc",cancelButton:"Categories-module_cancelButton__qSB8B",cancelButtonText:"Categories-module_cancelButtonText__iKhcE",applyButton:"Categories-module_applyButton__f9weo",applyButtonText:"Categories-module_applyButtonText__p7k-s",variant_single:"Categories-module_variant_single__nJbFl",variant_multiple:"Categories-module_variant_multiple__oR0nB"},Se={itemRow:"ItemRow-module_itemRow__rSDeO",infoIcon:"ItemRow-module_infoIcon__Ipwr-",infoIconImg:"ItemRow-module_infoIconImg__70lMY",content:"ItemRow-module_content__Jpfhn",iconWrapper:"ItemRow-module_iconWrapper__tyWxd",fileIconImg:"ItemRow-module_fileIconImg__UtL3V",starIconImg:"ItemRow-module_starIconImg__N5DF0",text:"ItemRow-module_text__2UBMv",label:"ItemRow-module_label__tf9KQ",body:"ItemRow-module_body__nwnZc",checkboxField:"ItemRow-module_checkboxField__fBewb",radioField:"ItemRow-module_radioField__opyC6",type_default:"ItemRow-module_type_default__bHpMa",type_hover:"ItemRow-module_type_hover__96wT9",type_selected:"ItemRow-module_type_selected__Pr3sl",type_disabled:"ItemRow-module_type_disabled__RLuUQ",type_danger:"ItemRow-module_type_danger__4i7oG"},Ie={checkboxContainer:"Checkbox-module_checkboxContainer__t5ToR",checkboxWrapper:"Checkbox-module_checkboxWrapper__MQ4h7",checkboxInput:"Checkbox-module_checkboxInput__6emi6",checkbox:"Checkbox-module_checkbox__u-vF9",size_small:"Checkbox-module_size_small__y2One",size_medium:"Checkbox-module_size_medium__tyI8A",size_large:"Checkbox-module_size_large__Dxd5a",checkboxChecked:"Checkbox-module_checkboxChecked__9S3nh",checkboxCheck:"Checkbox-module_checkboxCheck__eC-aU",checkboxIndeterminateState:"Checkbox-module_checkboxIndeterminateState__KlYdz",checkboxIndeterminate:"Checkbox-module_checkboxIndeterminate__KWSZX",indeterminateBar:"Checkbox-module_indeterminateBar__ubEie",checkIconWrapper:"Checkbox-module_checkIconWrapper__5zoMJ",checkIconInner:"Checkbox-module_checkIconInner__-31sZ",checkIcon:"Checkbox-module_checkIcon__ZZUJy",state_default:"Checkbox-module_state_default__07N9s",checkboxDisabled:"Checkbox-module_checkboxDisabled__JuvUf",state_hover:"Checkbox-module_state_hover__-aNwA",state_focus:"Checkbox-module_state_focus__iyLdL",state_pressed:"Checkbox-module_state_pressed__IXWhV",label:"Checkbox-module_label__riL34"};const Ae=({checked:a=!1,indeterminate:n=!1,disabled:o=!1,state:l="default",size:r="medium",label:i="",onChange:s,className:c="",id:d,name:u,value:m,...h})=>{const p=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(l),g="number"==typeof r,f=g?"custom":r.toLowerCase(),_=o||"disabled"===l,v=[Ie.checkboxContainer,c].filter(Boolean).join(" "),b=[Ie.checkbox,Ie[`size_${f}`],a&&Ie.checkboxChecked,!a&&n&&Ie.checkboxIndeterminateState,_&&Ie.checkboxDisabled,!_&&Ie[`state_${p}`]].filter(Boolean).join(" "),w=d||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:v,children:[e("div",{className:Ie.checkboxWrapper,children:[t("input",{type:"checkbox",id:w,name:u,value:m,checked:a,disabled:_,onChange:e=>{!_&&s&&s(e)},className:Ie.checkboxInput,"aria-checked":n?"mixed":a,"aria-disabled":_,...h}),e("label",{htmlFor:w,className:b,style:g?{width:`${r}px`,height:`${r}px`}:{},children:[a&&t("div",{className:Ie.checkboxCheck,children:t("div",{className:Ie.checkIconWrapper,children:t("div",{className:Ie.checkIconInner,children:t(ue,{name:"Check",size:12,className:Ie.checkIcon})})})}),!a&&n&&t("div",{className:Ie.checkboxIndeterminate,children:t("div",{className:Ie.indeterminateBar})})]})]}),i&&t("label",{htmlFor:w,className:Ie.label,children:i})]})};var Le={radioContainer:"Radio-module_radioContainer__nD7Aj",radioWrapper:"Radio-module_radioWrapper__8nQVu",radioInput:"Radio-module_radioInput__GtQt3",radio:"Radio-module_radio__fnkSK",size_small:"Radio-module_size_small__k7iT3",size_medium:"Radio-module_size_medium__KpT8h",size_large:"Radio-module_size_large__81Vmf",radioChecked:"Radio-module_radioChecked__BaL8g",radioDot:"Radio-module_radioDot__RilTO",state_default:"Radio-module_state_default__zFRxN",radioDisabled:"Radio-module_radioDisabled__i08xK",state_hover:"Radio-module_state_hover__h6W-X",state_focus:"Radio-module_state_focus__8UGb9",state_pressed:"Radio-module_state_pressed__k6gEW",label:"Radio-module_label__rS27E"};const Be=({checked:a=!1,disabled:n=!1,state:o="default",size:l="medium",label:r="",name:i,value:s,onChange:c,className:d="",id:u,...m})=>{const h=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(o),p="number"==typeof l,g=p?"custom":l.toLowerCase(),f=n||"disabled"===o,_=[Le.radioContainer,d].filter(Boolean).join(" "),v=[Le.radio,Le[`size_${g}`],a&&Le.radioChecked,f&&Le.radioDisabled,!f&&Le[`state_${h}`]].filter(Boolean).join(" "),b=u||`radio-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:_,children:[e("div",{className:Le.radioWrapper,children:[t("input",{type:"radio",id:b,name:i,value:s,checked:a,disabled:f,onChange:e=>{!f&&c&&c(e)},className:Le.radioInput,"aria-checked":a,"aria-disabled":f,...m}),t("label",{htmlFor:b,className:v,style:p?{width:`${l}px`,height:`${l}px`}:{},children:a&&t("div",{className:Le.radioDot})})]}),r&&t("label",{htmlFor:b,className:Le.label,children:r})]})},De=({showLeftIcon:a=!0,hasCheckbox:n=!1,hasRadio:o=!1,checked:l=!1,chooseLeftIcon:r=null,label:i="Item",showBody:s=!1,body:c="Body",showInfo:d=!1,showRightIcon:u=!1,chooseRightIcon:m=null,type:h="Default",onClick:p,className:g="",...f})=>{const _=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"disabled"===t?"disabled":"selected"===t?"selected":"danger"===t?"danger":"default"})(h),v="disabled"===_,b=v?"div":"button",w=[Se.itemRow,Se[`type_${_}`],g].filter(Boolean).join(" "),C=l||"selected"===_;return e(b,{className:w,onClick:p,disabled:v,type:"button"===b?"button":void 0,...f,children:[d&&t("div",{className:Se.infoIcon,children:t(ue,{name:"Info",size:14,className:Se.infoIconImg})}),e("div",{className:Se.content,children:[a&&t("div",{className:Se.iconWrapper,children:r||t(ue,{name:"File",size:14,className:Se.fileIconImg})}),e("div",{className:Se.text,children:[t("p",{className:Se.label,children:i}),s&&t("p",{className:Se.body,children:c})]}),u&&t("div",{className:Se.iconWrapper,children:m||t(ue,{name:"Star",size:14,className:Se.starIconImg})})]}),n&&t("div",{className:Se.checkboxField,children:t(Ae,{checked:C,disabled:v,size:16,readOnly:!p})}),o&&t("div",{className:Se.radioField,children:t(Be,{checked:C,disabled:v,size:16,readOnly:!p})})]})},ze=({variant:a="single",chips:n=[],categories:o=[],onChipRemove:i,onCategoryToggle:c,onItemClick:d,onCancel:u,onApply:m,cancelLabel:h="Cancel",applyLabel:p="Apply",className:g="",...f})=>{const[_,v]=l(""),[b,w]=l(o.reduce((e,t,a)=>(e[a]=void 0===t.expanded||t.expanded,e),{})),C=s(()=>{if(!_)return o;const e=_.toLowerCase();return o.map(t=>{if((t.title||"").toLowerCase().includes(e))return t;const a=(t.items||[]).filter(t=>(t.label||"").toLowerCase().includes(e));return a.length>0?{...t,items:a}:null}).filter(e=>null!==e)},[o,_]);r(()=>{if(_){const e=C.reduce((e,t,a)=>(e[a]=!0,e),{});w(e)}},[_,C.length]);const y=(n,o)=>{const l=!!_||!1!==b[o];return e("div",{className:Ne.categoryList,children:[e("button",{type:"button",className:Ne.categoryTitle,onClick:()=>{return e=o,w(t=>({...t,[e]:!t[e]})),void(c&&c(e,!b[e]));var e},children:[t("p",{className:Ne.categoryTitleText,children:n.title||"Category"}),t("div",{className:Ne.chevronIcon,children:t(ue,{name:"CaretDown",size:14,className:`${Ne.chevronImg} ${l?Ne.chevronUp:""}`})})]}),l&&t("div",{className:Ne.categoryItems,children:(n.items||[]).map((e,n)=>t("div",{className:Ne.categoryItemWrapper,children:t(De,{label:e.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===a,hasRadio:"multiple"!==a,checked:e.checked||!1,type:e.type||"default",onClick:()=>{d&&d(e,o)}})},e.id||n))})]},o)},x=[Ne.container,Ne[`variant_${a}`],g].filter(Boolean).join(" ");return e("div",{className:x,...f,children:[e("div",{className:Ne.searchSection,children:[e("div",{className:Ne.searchInput,children:[t("div",{className:Ne.searchIcon,children:t(ue,{name:"MagnifyingGlass",size:16,className:Ne.searchIconImage})}),t("input",{type:"text",className:Ne.realSearchInput,placeholder:"Search",value:_,onChange:e=>{v(e.target.value)}})]}),(()=>{if(!n||0===n.length)return null;const a=n.slice(0,5),o=n.length-5;let l=null;return o>0&&(l={isMore:!0,label:`+${o}`}),e("div",{className:Ne.chipListContainer,children:[a.map((a,n)=>e("div",{className:Ne.chip,children:[t("p",{className:Ne.chipLabel,children:a.label||"Label"}),t("button",{type:"button",className:Ne.chipRemove,onClick:e=>{e.stopPropagation(),i&&i(a)},"aria-label":"Remove chip",children:t(ue,{name:"X",size:14,className:Ne.chipIcon})})]},n)),l&&t("div",{className:Ne.chip,children:t("p",{className:Ne.chipLabel,children:l.label})})]})})()]}),t("div",{className:Ne.listsContainer,children:C.map((e,t)=>y(e,t))}),e("div",{className:Ne.actionsContainer,children:[t("button",{type:"button",className:Ne.cancelButton,onClick:u,children:t("p",{className:Ne.cancelButtonText,children:h})}),t("button",{type:"button",className:Ne.applyButton,onClick:m,children:t("p",{className:Ne.applyButtonText,children:p})})]})]})};var $e={cell:"Cell-module_cell__wdOpC",label:"Cell-module_label__1JEFV",defaultContent:"Cell-module_defaultContent__Vv8Xy",leadingIcon:"Cell-module_leadingIcon__zmwIZ",trailingIcon:"Cell-module_trailingIcon__6DTXX",avatarContent:"Cell-module_avatarContent__moY52",avatar:"Cell-module_avatar__gUaMQ",avatarPlaceholder:"Cell-module_avatarPlaceholder__RK0QA",statusContent:"Cell-module_statusContent__izq8j",statusDot:"Cell-module_statusDot__5-hPy",status_active:"Cell-module_status_active__yHLS8",status_online:"Cell-module_status_online__oCYlx",status_inactive:"Cell-module_status_inactive__6Jdoj",status_offline:"Cell-module_status_offline__ls8W2",status_pending:"Cell-module_status_pending__ID-H1",socialContent:"Cell-module_socialContent__YuoLv",socialIcon:"Cell-module_socialIcon__ME-Dx",actionsContent:"Cell-module_actionsContent__V-4Lc",actionButton:"Cell-module_actionButton__AJYz-",checkboxContent:"Cell-module_checkboxContent__F2jOW",toggleContent:"Cell-module_toggleContent__0JbeA",userCountContent:"Cell-module_userCountContent__lehFs",userIconWrapper:"Cell-module_userIconWrapper__qqZpf",count:"Cell-module_count__N1yFG",badge:"Cell-module_badge__7KrfZ"},Te={toggleContainer:"Toggle-module_toggleContainer__lTsof",toggleWrapper:"Toggle-module_toggleWrapper__jWaBk",toggleInput:"Toggle-module_toggleInput__srGOt",toggle:"Toggle-module_toggle__zjgHl",toggleThumb:"Toggle-module_toggleThumb__hjTqE",size_small:"Toggle-module_size_small__xxt4m",size_medium:"Toggle-module_size_medium__mZRV2",size_large:"Toggle-module_size_large__dYf3X",toggleChecked:"Toggle-module_toggleChecked__ZM7BJ",state_default:"Toggle-module_state_default__Sk1P2",toggleDisabled:"Toggle-module_toggleDisabled__I8Z63",state_hover:"Toggle-module_state_hover__-Hx6l",state_focus:"Toggle-module_state_focus__E5i0q",state_pressed:"Toggle-module_state_pressed__U2veO",label:"Toggle-module_label__CzLo8"};const Re=({checked:a=!1,disabled:n=!1,state:o="default",size:l="medium",label:r="",onChange:i,className:s="",id:c,name:d,value:u,...m})=>{const h=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(o),p=l.toLowerCase(),g=n||"disabled"===o,f=[Te.toggleContainer,s].filter(Boolean).join(" "),_=[Te.toggle,Te[`size_${p}`],a&&Te.toggleChecked,g&&Te.toggleDisabled,!g&&Te[`state_${h}`]].filter(Boolean).join(" "),v=c||`toggle-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:f,children:[e("div",{className:Te.toggleWrapper,children:[t("input",{type:"checkbox",id:v,name:d,value:u,checked:a,disabled:g,onChange:e=>{!g&&i&&i(e)},className:Te.toggleInput,"aria-checked":a,"aria-disabled":g,role:"switch",...m}),t("label",{htmlFor:v,className:_,children:t("span",{className:Te.toggleThumb})})]}),r&&t("label",{htmlFor:v,className:Te.label,children:r})]})},Fe=({variant:a="default",label:n="",icon:o=null,badge:l=null,avatar:r=null,status:i=null,checked:s=!1,onChange:c,count:d=null,actions:u=[],className:m="",...h})=>t("div",{className:`${$e.cell} ${$e[`variant_${a}`]} ${m}`,...h,children:(()=>{switch(a){case"avatar":return e("div",{className:$e.avatarContent,children:[r?t("img",{src:r,alt:n,className:$e.avatar}):t("div",{className:$e.avatarPlaceholder,children:t(ue,{name:"User",size:16})}),t("span",{className:$e.label,children:n})]});case"status":return e("div",{className:$e.statusContent,children:[t("div",{className:`${$e.statusDot} ${$e[`status_${i?.toLowerCase()}`]}`}),t("span",{className:$e.label,children:n}),l&&t("span",{className:$e.badge,children:l})]});case"social":return e("div",{className:$e.socialContent,children:[o&&t(ue,{name:o,size:16,className:$e.socialIcon}),t("span",{className:$e.label,children:n})]});case"actions":return t("div",{className:$e.actionsContent,children:u.map((e,a)=>t("button",{className:$e.actionButton,onClick:e.onClick,title:e.label,type:"button",children:t(ue,{name:e.icon,size:14})},a))});case"checkbox":return e("div",{className:$e.checkboxContent,children:[t(Ae,{checked:s,onChange:c,size:"small"}),t("span",{className:$e.label,children:n})]});case"toggle":return t("div",{className:$e.toggleContent,children:t(Re,{checked:s,onChange:c,size:"small"})});case"userCount":return t("div",{className:$e.userCountContent,children:e("div",{className:$e.userIconWrapper,children:[t(ue,{name:"User",size:14}),t("span",{className:$e.count,children:d})]})});default:return e("div",{className:$e.defaultContent,children:[o&&t(ue,{name:o,size:16,className:$e.leadingIcon}),t("span",{className:$e.label,children:n}),l&&t("span",{className:$e.badge,children:l}),t(ue,{name:"Globe",size:14,className:$e.trailingIcon})]})}})()});var We="CellHeader-module_cellHeader__9mlaW",Ue="CellHeader-module_sortable__bpx5y",Ee="CellHeader-module_content__6-yV0",Me="CellHeader-module_checkboxWrapper__ah1PJ",He="CellHeader-module_sortIcon__6rgJk",Ve="CellHeader-module_label__nRBcj";const qe=({label:a="",sortable:n=!1,sortOrder:o=null,hasCheckbox:l=!1,checked:r=!1,onSort:i,onCheckboxChange:s,className:c="",...d})=>t("div",{className:`${We} ${n?Ue:""} ${c}`,onClick:n?i:void 0,...d,children:e("div",{className:Ee,children:[l&&t("div",{className:Me,onClick:e=>e.stopPropagation(),children:t(Ae,{checked:r,onChange:s,size:"small"})}),n&&t("div",{className:He,"aria-label":`Sort ${o||"none"}`,children:t(ue,{name:"asc"===o?"SortAscending":"desc"===o?"SortDescending":"CaretUpDown",size:14})}),t("span",{className:Ve,children:a})]})}),Oe=({children:a,variant:n="default",padding:o="md",hover:l=!1,clickable:r=!1,header:i,footer:s,onClick:c,className:d,style:u,animate:m=!0,animationDuration:h=300,animationDelay:p=0,animationEasing:g="ease-in-out",...f})=>{const _=ie("bg-white rounded-lg transition-all duration-200",{default:"shadow-sm border border-gray-200",elevated:"shadow-lg border border-gray-100",outlined:"border-2 border-gray-200",filled:"bg-gray-50 border border-gray-200"}[n],{xs:"p-2",sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[o],l&&"hover:shadow-md hover:-translate-y-0.5",r&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",m&&"animate-fade-in",d),v={...u,...m&&{animationDuration:`${h}ms`,animationDelay:`${p}ms`,animationTimingFunction:g}};return e("div",{className:_,style:v,onClick:e=>{r&&c&&c(e)},...f,children:[i&&t("div",{className:"mb-4 pb-4 border-b border-gray-200",children:i}),t("div",{className:"flex-1",children:a}),s&&t("div",{className:"mt-4 pt-4 border-t border-gray-200",children:s})]})};var Ge={chip:"Chip-module_chip__QDbLV",label:"Chip-module_label__jkrIf",iconWrapper:"Chip-module_iconWrapper__NWuWA",icon:"Chip-module_icon__Tkzl1",size_small:"Chip-module_size_small__FfLgY",size_medium:"Chip-module_size_medium__lOEvU",state_default:"Chip-module_state_default__Qcr59",state_hover:"Chip-module_state_hover__Fh-CV",state_pressed:"Chip-module_state_pressed__icmBU",state_active:"Chip-module_state_active__JenYe"};const Ye=({label:a="Label",showRightIcon:n=!0,showLeftIcon:o=!0,chooseLeftIcon:l=null,chooseRightIcon:r=null,state:i="default",size:s="medium",onRemove:c,onClick:d,className:u="",...m})=>{const h=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"default"})(i),p=(s||"medium").toLowerCase(),g="small"===p?12:14,f=[Ge.chip,Ge[`size_${p}`],Ge[`state_${h}`],u].filter(Boolean).join(" ");return e(d?"button":"div",{className:f,onClick:d,type:d?"button":void 0,...m,children:[o?l||t("div",{className:Ge.iconWrapper,children:t(ue,{name:"x",size:g,className:Ge.icon,variant:"active"===h?"white":"default"})}):null,t("span",{className:Ge.label,children:a}),n?r||t("div",{className:Ge.iconWrapper,children:t(ue,{name:"x",size:g,className:Ge.icon,variant:"active"===h?"white":"default",onClick:e=>{e.stopPropagation(),c&&c()}})}):null]})};var je={container:"ChipList-module_container__3H1e7",row:"ChipList-module_row__961Z3",layout_single:"ChipList-module_layout_single__t5ANI",layout_double:"ChipList-module_layout_double__5ihDG",layout_doublerow:"ChipList-module_layout_doublerow__qSwD-"};const Xe=({chips:e=[],layout:a="single",onChipRemove:n,className:o="",...l})=>{const r=e.length>0?e:[{label:"Label",id:"1"},{label:"Label",id:"2"},{label:"Label",id:"3"}],i=a.toLowerCase(),s=(()=>{if("double"===i||"doublerow"===i){const e=Math.ceil(r.length/2);return[r.slice(0,e),r.slice(e)]}return[r]})(),c=[je.container,je[`layout_${i}`],o].filter(Boolean).join(" ");return t("div",{className:c,...l,children:s.map((e,a)=>t("div",{className:je.row,children:e.map(e=>t(Ye,{label:e.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{n&&n(e)}},e.id||e.label))},a))})};var Ze={container:"Dropdown-module_container__ErjTf",type_medium:"Dropdown-module_type_medium__-9PP9",type_small:"Dropdown-module_type_small__RBIcw",label:"Dropdown-module_label__r-lFx",description:"Dropdown-module_description__o8wRo",dropdownWrapper:"Dropdown-module_dropdownWrapper__UL4uW",fieldWrapper:"Dropdown-module_fieldWrapper__tDsIq",dropdownWrapper_type_medium:"Dropdown-module_dropdownWrapper_type_medium__fvECq",dropdownWrapper_type_small:"Dropdown-module_dropdownWrapper_type_small__Giu8S",dropdownInner:"Dropdown-module_dropdownInner__-VN-B",placeholder:"Dropdown-module_placeholder__ZqFux",value:"Dropdown-module_value__pqCLT",chevronWrapper:"Dropdown-module_chevronWrapper__zvdRH",chevronIcon:"Dropdown-module_chevronIcon__iBeCV",chipList:"Dropdown-module_chipList__s1lVm",chip:"Dropdown-module_chip__7rR17",chipLabel:"Dropdown-module_chipLabel__-ksTf",chipRemove:"Dropdown-module_chipRemove__yQ6wd",chipIcon:"Dropdown-module_chipIcon__SMMHv",error:"Dropdown-module_error__5Ptsm",dropdownWrapper_type_medium_state_default:"Dropdown-module_dropdownWrapper_type_medium_state_default__5bpre",dropdownWrapper_type_small_state_default:"Dropdown-module_dropdownWrapper_type_small_state_default__skJVV",dropdownWrapper_type_medium_state_hover:"Dropdown-module_dropdownWrapper_type_medium_state_hover__44jce",dropdownWrapper_type_small_state_hover:"Dropdown-module_dropdownWrapper_type_small_state_hover__7hn5F",dropdownWrapper_type_medium_state_selected:"Dropdown-module_dropdownWrapper_type_medium_state_selected__OC89t",dropdownWrapper_type_small_state_selected:"Dropdown-module_dropdownWrapper_type_small_state_selected__BIPst",dropdownWrapper_type_medium_state_focused:"Dropdown-module_dropdownWrapper_type_medium_state_focused__9BNJD",dropdownWrapper_type_small_state_focused:"Dropdown-module_dropdownWrapper_type_small_state_focused__Eq0nK",dropdownWrapper_type_medium_state_error:"Dropdown-module_dropdownWrapper_type_medium_state_error__YgZfn",dropdownWrapper_type_small_state_error:"Dropdown-module_dropdownWrapper_type_small_state_error__40JGM",dropdownWrapper_type_medium_state_disabled:"Dropdown-module_dropdownWrapper_type_medium_state_disabled__hibT2",dropdownWrapper_type_small_state_disabled:"Dropdown-module_dropdownWrapper_type_small_state_disabled__siGnC"};const Ke=({value:a="",description:n="",label:l="",error:i="",hasLabel:s=!0,hasDescription:c=!0,hasError:d=!1,hasChips:u=!1,state:m="default",type:h="medium",placeholder:p="Value",chips:g=[],onChange:f,onFocus:_,onBlur:v,onClick:b,onOutsideClick:w,disabled:C,className:y="",children:x,...k})=>{const P=o(null);r(()=>{if(!w)return;const e=e=>{P.current&&!P.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[w]);const N=(h||"medium").toLowerCase(),S=C?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"selected"===t?"selected":"focused"===t?"focused":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(m),I=[Ze.container,Ze[`type_${N}`],y].filter(Boolean).join(" "),A=[Ze.dropdownWrapper,Ze[`dropdownWrapper_type_${N}`],Ze[`dropdownWrapper_state_${S}`],Ze[`dropdownWrapper_type_${N}_state_${S}`]].filter(Boolean).join(" "),L=C||"disabled"===S,B=e("div",{className:Ze.fieldWrapper,children:[t("button",{type:"button",className:A,onClick:b||_,disabled:L,"aria-disabled":L,...k,children:e("div",{className:Ze.dropdownInner,children:[u&&0!==g.length?t("div",{className:Ze.chipList,children:g.map((a,n)=>e("div",{className:Ze.chip,children:[t("span",{className:Ze.chipLabel,children:a.label||"Label"}),a.onRemove&&t("button",{type:"button",className:Ze.chipRemove,onClick:e=>{e.stopPropagation(),a.onRemove&&a.onRemove()},"aria-label":"Remove chip",children:t(ue,{name:"x",size:10,className:Ze.chipIcon})})]},n))}):null,t("span",a?{className:Ze.value,children:a}:{className:Ze.placeholder,children:p}),t("div",{className:Ze.chevronWrapper,children:t(ue,{name:x?"caret-up":"caret-down",size:12,className:Ze.chevronIcon})})]})}),x]});return e("div",{className:I,ref:P,children:[s&&l&&t("p",{className:Ze.label,children:l}),c&&n&&t("p",{className:Ze.description,children:n}),B,d&&i&&t("p",{className:Ze.error,children:i})]})};var Qe={dropdownNestedColumn:"DropdownNestedColumn-module_dropdownNestedColumn__-cag7",titleFrame:"DropdownNestedColumn-module_titleFrame__-offj",titleAndCta:"DropdownNestedColumn-module_titleAndCta__4y7z4",titleText:"DropdownNestedColumn-module_titleText__G5mny",clearAllButton:"DropdownNestedColumn-module_clearAllButton__jEO-i",clearAllText:"DropdownNestedColumn-module_clearAllText__WR6Lj",chevronButton:"DropdownNestedColumn-module_chevronButton__pJED1",chevronContainer:"DropdownNestedColumn-module_chevronContainer__KBjay",chevronIcon:"DropdownNestedColumn-module_chevronIcon__B-Vxx",dropdownWithSearch:"DropdownNestedColumn-module_dropdownWithSearch__pLH5k",dropdownContent:"DropdownNestedColumn-module_dropdownContent__yxwX7",chipListSection:"DropdownNestedColumn-module_chipListSection__hz0gx",chipGrid:"DropdownNestedColumn-module_chipGrid__7wFEN",noChips:"DropdownNestedColumn-module_noChips__wktQg",moreChipsChip:"DropdownNestedColumn-module_moreChipsChip__SVtTL",searchInputSection:"DropdownNestedColumn-module_searchInputSection__QRUBF",searchInput:"DropdownNestedColumn-module_searchInput__xvb2F",searchIcon:"DropdownNestedColumn-module_searchIcon__aASpj",searchField:"DropdownNestedColumn-module_searchField__UP-pl",itemsList:"DropdownNestedColumn-module_itemsList__V41r6",itemsContainer:"DropdownNestedColumn-module_itemsContainer__2IXay",noItems:"DropdownNestedColumn-module_noItems__oiWmw"};const Je=({title:a="Title",expanded:n=!0,chips:o=[],items:r=[],onClearAll:i,onChipRemove:s,onItemClick:c,className:d="",...u})=>{const[m,h]=l(n),[p,g]=l(""),f=[Qe.dropdownNestedColumn,d].filter(Boolean).join(" "),_=e("div",{className:Qe.titleAndCta,children:[t("p",{className:Qe.titleText,children:a}),t("button",{className:Qe.clearAllButton,onClick:e=>{e.stopPropagation(),i&&i()},type:"button",children:t("p",{className:Qe.clearAllText,children:"Clear all"})})]}),v=r.filter(e=>e.label.toLowerCase().includes(p.toLowerCase()));return e("div",{className:f,...u,children:[e("div",{className:Qe.titleFrame,children:[_,t("button",{className:Qe.chevronButton,onClick:()=>{h(!m)},type:"button",children:t("div",{className:Qe.chevronContainer,children:t("div",{className:Qe.chevronIcon,style:{transform:m?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:t(ue,{name:"caret-up",size:16})})})})]}),m&&t("div",{className:Qe.dropdownWithSearch,children:e("div",{className:Qe.dropdownContent,children:[t("div",{className:Qe.chipListSection,children:o.length>0?e("div",{className:Qe.chipGrid,children:[o.slice(0,5).map(e=>t(Ye,{label:e.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{s&&s(e)}},e.id||e.label)),o.length>5&&t(Ye,{label:"+"+(o.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:Qe.moreChipsChip})]}):t("div",{className:Qe.noChips,children:"No items selected"})}),t("div",{className:Qe.searchInputSection,children:e("div",{className:Qe.searchInput,children:[t(ue,{name:"magnifying-glass",size:16,className:Qe.searchIcon}),t("input",{type:"text",className:Qe.searchField,placeholder:"Search",value:p,onChange:e=>g(e.target.value)})]})}),t("div",{className:Qe.itemsList,children:t("div",{className:Qe.itemsContainer,children:v.length>0?v.map((e,a)=>t(De,{label:e.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:e.checked||!1,type:e.type||"Default",onClick:()=>{c&&c(e)}},e.id||a)):t("div",{className:Qe.noItems,children:"No items found"})})})]})})]})};var et={dropdownNested:"DropdownNested-module_dropdownNested__S7idI",columns:"DropdownNested-module_columns__VciGu",column:"DropdownNested-module_column__clf4o",ctas:"DropdownNested-module_ctas__MWS3w",cancelButton:"DropdownNested-module_cancelButton__c-8mc",applyButton:"DropdownNested-module_applyButton__AvCpG"};const tt=({leftColumn:a={title:"Select a Member",chips:[],items:[]},rightColumn:n={title:"Select a Group",chips:[],items:[]},onLeftClearAll:o,onRightClearAll:l,onLeftChipRemove:r,onRightChipRemove:i,onLeftItemClick:s,onRightItemClick:c,onCancel:d,onApply:u,className:m="",...h})=>{const p=a.chips,g=n.chips,f=a.items,_=n.items,v=[et.dropdownNested,m].filter(Boolean).join(" ");return e("div",{className:v,...h,children:[e("div",{className:et.columns,children:[t("div",{className:et.column,children:t(Je,{title:a.title,expanded:!0,chips:p,items:f,onClearAll:o,onChipRemove:r,onItemClick:s})}),t("div",{className:et.column,children:t(Je,{title:n.title,expanded:!0,chips:g,items:_,onClearAll:l,onChipRemove:i,onItemClick:c})})]}),e("div",{className:et.ctas,children:[t(fe,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:d,className:et.cancelButton}),t(pe,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:u,className:et.applyButton})]})]})};var at={iconButton:"IconButton-module_iconButton__RX7bN",icon:"IconButton-module_icon__1mvRD",loaderIcon:"IconButton-module_loaderIcon__AB3CY",spin:"IconButton-module_spin__dIR-z",size_medium:"IconButton-module_size_medium__vDKx5",size_small:"IconButton-module_size_small__6QIGb",style_primary:"IconButton-module_style_primary__iuggd",state_default:"IconButton-module_state_default__CRDoC",state_hover:"IconButton-module_state_hover__gREn9",state_focus:"IconButton-module_state_focus__rPK-E",state_disabled:"IconButton-module_state_disabled__LFZlJ",state_loading:"IconButton-module_state_loading__jB6U7",style_secondary:"IconButton-module_style_secondary__3em9O",style_neutral:"IconButton-module_style_neutral__hzeSD",style_subtle:"IconButton-module_style_subtle__QK4-l"};const nt=({icon:e,style:a="primary",state:n="default",size:o="medium",onClick:l,disabled:r,loading:i,className:s="",...c})=>{const d=i?"loading":r?"disabled":n,u=r||i||"disabled"===d,m=[at.iconButton,at[`style_${a}`],at[`state_${d}`],at[`size_${o}`],s].filter(Boolean).join(" ");return t("button",{className:m,onClick:l,disabled:u,"aria-disabled":u,...c,children:e?"string"==typeof e?t(ue,{name:e,className:at.icon,size:14}):e:t(ue,"loading"===d?{name:"spinner",className:at.loaderIcon,size:16}:{name:"star",className:at.icon,size:14})})};var ot={overlay:"Modal-module_overlay__-RqGQ",fadeIn:"Modal-module_fadeIn__bf4KI",modal:"Modal-module_modal__MUsZA",slideUp:"Modal-module_slideUp__ZdbV-",small:"Modal-module_small__tMzhZ",medium:"Modal-module_medium__ww1Z7",large:"Modal-module_large__J-zZn",closeButton:"Modal-module_closeButton__1Oslg",content:"Modal-module_content__1bCpv",iconWrapper:"Modal-module_iconWrapper__99kUR",textStack:"Modal-module_textStack__QbEZb",title:"Modal-module_title__TUIss",description:"Modal-module_description__o6Czk",actions:"Modal-module_actions__YzyOX"};const lt=({isOpen:a,onClose:n,title:o,description:l,icon:i,children:s,actions:c,size:d="medium",showCloseButton:u=!0,className:m="",...h})=>{if(r(()=>(document.body.style.overflow=a?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[a]),!a)return null;return t("div",{className:ot.overlay,onClick:e=>{e.target===e.currentTarget&&n&&n()},children:e("div",{className:`${ot.modal} ${ot[d]} ${m}`,role:"dialog","aria-modal":"true",...h,children:[u&&t("button",{className:ot.closeButton,onClick:n,"aria-label":"Close modal",children:t(ue,{name:"X"})}),e("div",{className:ot.content,children:[i&&t("div",{className:ot.iconWrapper,children:i}),s||e("div",{className:ot.textStack,children:[o&&t("h2",{className:ot.title,children:o}),l&&t("p",{className:ot.description,children:l})]}),c&&t("div",{className:ot.actions,children:c})]})]})})};var rt={notification:"Notification-module_notification__U2DR1",size_small:"Notification-module_size_small__kHQRv",size_medium:"Notification-module_size_medium__hJpV4",variant_primary:"Notification-module_variant_primary__OQM8e",variant_neutral:"Notification-module_variant_neutral__tmXIq",variant_subtle:"Notification-module_variant_subtle__uwELf",count:"Notification-module_count__XmK01",plus:"Notification-module_plus__oBCK6"};const it=({count:n=0,variant:o="primary",size:l="medium",maxCount:r=99,className:i="",...s})=>{const c=[rt.notification,rt[`variant_${o}`],rt[`size_${l}`],i].filter(Boolean).join(" ");return t("span",{className:c,...s,children:(()=>{if("number"==typeof n&&n>r)return e(a,{children:[t("span",{className:rt.count,children:r}),t("span",{className:rt.plus,children:"+"})]});if("string"==typeof n&&n.endsWith("+")){const o=n.slice(0,-1);return e(a,{children:[t("span",{className:rt.count,children:o}),t("span",{className:rt.plus,children:"+"})]})}return n})()})};var st={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};const ct=a=>t(h,{theme:{token:{colorPrimary:"#4432bf",borderRadius:8,fontFamily:"'Host Grotesk', sans-serif",colorText:"#2f353b",colorTextDescription:"#768494",motion:!1},components:{Pagination:{itemActiveBg:"#4432bf",itemActiveColor:"#F3EEF9",itemBg:"transparent",itemInputBg:"#ffffff",itemSize:36,itemSizeSM:32}}},children:t("div",{className:`${st.paginationWrapper} ${a.className||""}`,children:t(p,{itemRender:(n,o,l)=>"prev"===o?e("div",{className:`${st.navButtonCustom} ${a.disabled?st.disabled:""}`,children:[t("div",{className:st.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),t("span",{className:st.navText,children:"Previous"})]}):"next"===o?e("div",{className:`${st.navButtonCustom} ${a.disabled?st.disabled:""}`,children:[t("span",{className:st.navText,children:"Next"}),t("div",{className:st.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):l,...a})})});var dt={container:"Search-module_container__NslV2",input:"Search-module_input__-SRzW",inputInner:"Search-module_inputInner__BFwA4",searchIcon:"Search-module_searchIcon__kOb49",searchIconImage:"Search-module_searchIconImage__JG5O3",placeholder:"Search-module_placeholder__XGEtM",value:"Search-module_value__r-4hD",realInput:"Search-module_realInput__REpAG",inputInner_state_focused:"Search-module_inputInner_state_focused__Zl5a2",cursor:"Search-module_cursor__hsCJx",blink:"Search-module_blink__PSxpt",cursorTyping:"Search-module_cursorTyping__wAW5b",error:"Search-module_error__4NuH1",input_state_default:"Search-module_input_state_default__5QR0F",inputInner_state_default:"Search-module_inputInner_state_default__YpSHL",input_state_hover:"Search-module_input_state_hover__zvOhd",inputInner_state_hover:"Search-module_inputInner_state_hover__Gxcb9",input_state_focused:"Search-module_input_state_focused__TDgsA",input_state_typing:"Search-module_input_state_typing__GFivl",inputInner_state_typing:"Search-module_inputInner_state_typing__9zezH",input_state_filled:"Search-module_input_state_filled__3FE6u",inputInner_state_filled:"Search-module_inputInner_state_filled__qOdD4",input_state_filledHover:"Search-module_input_state_filledHover__kQu9I",inputInner_state_filledHover:"Search-module_inputInner_state_filledHover__2EMWM",input_state_error:"Search-module_input_state_error__F-GNS",inputInner_state_error:"Search-module_inputInner_state_error__zTv5f",input_state_disabled:"Search-module_input_state_disabled__F5cPc",inputInner_state_disabled:"Search-module_inputInner_state_disabled__gKmLt"};const ut=({value:a="",error:n="",hasError:o=!1,state:r="default",placeholder:i="Search",onChange:s,onFocus:c,onBlur:d,disabled:u,className:m="",title:h="",...p})=>{const[g,f]=l(!1),[_,v]=l(!1),b=(()=>{if(u)return"disabled";const e=(e=>{if(!e||"default"===e)return null;const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(r);return e||(o?"error":_?a?"typing":"focused":g?a?"filledHover":"hover":a?"filled":"default")})(),w=[dt.container,m].filter(Boolean).join(" "),C=[dt.input,dt[`input_state_${b}`]].filter(Boolean).join(" "),y=[dt.inputInner,dt[`inputInner_state_${b}`]].filter(Boolean).join(" "),x=u||"disabled"===b;return e("div",{className:w,title:h,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[t("div",{className:C,children:e("div",{className:y,children:[t("div",{className:dt.searchIcon,children:t(ue,{name:"magnifying-glass",className:dt.searchIconImage,size:16})}),t("input",{type:"search",className:dt.realInput,value:a,placeholder:i,onChange:s,onFocus:e=>{v(!0),c?.(e)},onBlur:e=>{v(!1),d?.(e)},disabled:x,...p}),("focused"===b||"typing"===b)&&!a&&t("span",{className:dt.cursor,children:"|"})]})}),o&&n&&t("p",{className:dt.error,children:n})]})};var mt={statusIndicator:"StatusIndicator-module_statusIndicator__dYsH-",indicator:"StatusIndicator-module_indicator__YQzs6",label:"StatusIndicator-module_label__WM5I3",size_medium:"StatusIndicator-module_size_medium__Fp-1x",state_default:"StatusIndicator-module_state_default__J4F1G",state_hover:"StatusIndicator-module_state_hover__Hmr-w",state_pressed:"StatusIndicator-module_state_pressed__Cz8o1",state_active:"StatusIndicator-module_state_active__nOiXv",state_disabled:"StatusIndicator-module_state_disabled__umvwX"};const ht=({label:a="Status",state:n="default",size:o="medium",color:l="green",onClick:r,className:i="",...s})=>{const c=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"disabled"===t?"disabled":"default"})(n),d=(e=>{if(!e)return"green";const t=e.toLowerCase();return"red"===t?"red":"yellow"===t?"yellow":"blue"===t?"blue":"green"})(l),u=o.toLowerCase(),m=[mt.statusIndicator,mt[`size_${u}`],mt[`state_${c}`],mt[`color_${d}`],i].filter(Boolean).join(" ");return e(r?"button":"div",{className:m,onClick:r,disabled:"disabled"===c,type:r?"button":void 0,...s,children:[(()=>{const e=(()=>{switch(d){case"red":return"var(--color-red-500)";case"yellow":return"var(--color-yellow-500)";case"blue":return"var(--color-violet-500)";default:return"var(--color-green-500)"}})();return t("div",{className:mt.indicator,style:{backgroundColor:e}})})(),t("span",{className:mt.label,children:a})]})};var pt={tab:"Tab-module_tab__SstW0",label:"Tab-module_label__3WQV-",active:"Tab-module_active__RQPjd",disabled:"Tab-module_disabled__m49K5",underline:"Tab-module_underline__IupnS",slideIn:"Tab-module_slideIn__owi-7"};const gt=({label:a,count:n,isActive:o=!1,disabled:l=!1,onClick:r,className:i="",...s})=>{const c=[pt.tab,o&&pt.active,l&&pt.disabled,i].filter(Boolean).join(" ");return e("button",{className:c,onClick:e=>{!l&&r&&r(e)},disabled:l,type:"button",role:"tab","aria-selected":o,...s,children:[t("span",{className:pt.label,children:a}),null!=n&&t(it,{count:n,variant:l?"subtle":o?"primary":"neutral",size:"small",className:pt.notification}),o&&t("div",{className:pt.underline})]})};var ft={tabList:"TabList-module_tabList__sSh3n"};const _t=({items:e,activeKey:a,onChange:n,className:o=""})=>{const l=[ft.tabList,o].filter(Boolean).join(" ");return t("div",{className:l,role:"tablist",children:e.map(e=>t(gt,{label:e.label,count:e.count,disabled:e.disabled,isActive:a===e.key,onClick:()=>!e.disabled&&n?.(e.key)},e.key))})};var vt={tableContainer:"Table-module_tableContainer__R0vmz",checkboxHeader:"Table-module_checkboxHeader__nB0jp",tableCell:"Table-module_tableCell__gaAKu",antTable:"Table-module_antTable__bZm6O",dragHandleHeader:"Table-module_dragHandleHeader__KczQT",dragHandleCell:"Table-module_dragHandleCell__3TeKk",dragHandle:"Table-module_dragHandle__gi396",rowDragging:"Table-module_rowDragging__OkG8Q","ant-table-tbody":"Table-module_ant-table-tbody__77qO2",sortIcon:"Table-module_sortIcon__1ordV",columnHeaderContent:"Table-module_columnHeaderContent__3qDkz","ant-table-column-title":"Table-module_ant-table-column-title__OGte0",columnHeaderLabel:"Table-module_columnHeaderLabel__s57EO",sortIconLeft:"Table-module_sortIconLeft__zL1i-","ant-table-thead":"Table-module_ant-table-thead__zf80i",resizeHandle:"Table-module_resizeHandle__2zwBq",resizeHandleLine:"Table-module_resizeHandleLine__i85s6",resizing:"Table-module_resizing__rV8oe","ant-table-column-sorters":"Table-module_ant-table-column-sorters__5YiWY"};const bt=c(null),wt=({children:e,id:a,rowKey:n,row:o})=>{const{attributes:l,listeners:r,setNodeRef:i,transform:s,transition:c,isDragging:d}=N({id:a}),u={transform:S.Transform.toString(s),transition:c,opacity:d?.5:1};return t(bt.Provider,{value:{attributes:l,listeners:r},children:t("tr",{ref:i,style:u,className:`${d?vt.rowDragging:""}`,children:e})})},Ct=()=>{const e=d(bt);if(!e)return null;const{attributes:a,listeners:n}=e;return t("td",{className:vt.dragHandleCell,children:t("div",{className:vt.dragHandle,...n,...a,children:t(ue,{name:"dots-six-vertical",size:12})})})},yt=({columnKey:e,onResizeStart:a,onResize:n,onResizeEnd:r})=>{const s=o(null),[c,d]=l(!1),u=i(t=>{t.preventDefault(),t.stopPropagation(),d(!0);const o=t.clientX,l=s.current?.parentElement?.offsetWidth||0,i=t=>{const a=t.clientX-o,r=Math.max(50,l+a);n&&n(e,r)},c=()=>{d(!1),r&&r(e),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect=""};a&&a(e),document.addEventListener("mousemove",i),document.addEventListener("mouseup",c),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[e,n,a,r]);return t("div",{ref:s,className:`${vt.resizeHandle} ${c?vt.resizing:""}`,onMouseDown:u,title:"Drag to resize column",children:t("div",{className:vt.resizeHandleLine})})};function xt({columns:a=[],data:o=[],rowKey:r="id",onRowReorder:c,onRowSelect:d,onSort:u,className:m="",...h}){const[p,N]=l([]),[S,I]=l({}),[A,L]=l(o),[B,D]=l({});n.useEffect(()=>{L(o)},[o]),n.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${vt.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-thead > tr > th").forEach(e=>{const t=window.getComputedStyle(e,"::before");if("none"!==t.content&&""!==t.content){const e="remove-table-separator";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`\n .${vt.tableContainer} .ant-table-thead > tr > th::before {\n display: none !important;\n content: none !important;\n width: 0 !important;\n height: 0 !important;\n background: none !important;\n opacity: 0 !important;\n visibility: hidden !important;\n }\n `,document.head.appendChild(t))}})};e();const t=[setTimeout(e,50),setTimeout(e,100),setTimeout(e,200)],a=new MutationObserver(e),n=document.querySelector(`.${vt.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),()=>{t.forEach(clearTimeout),a.disconnect();const e=document.getElementById("remove-table-separator");e&&e.remove()}},[A,a]),n.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${vt.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-column-sorter, .ant-table-column-sorter-full, .ant-table-column-sorter-inner").forEach(e=>{const t=e;t.closest(`.${vt.sortIconLeft}`)||(t.style.display="none",t.style.visibility="hidden",t.style.opacity="0",t.style.width="0",t.style.height="0",t.style.margin="0",t.style.padding="0")})};e();const t=setTimeout(e,100),a=new MutationObserver(e),n=document.querySelector(`.${vt.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(t),a.disconnect()}},[A,a,S]);const z=f(_(v),_(b,{coordinateGetter:y})),$=e=>{N(e),d&&d(e)},T=i((e,t)=>{D(a=>({...a,[e]:t}))},[]),R=i(e=>{},[]),F=i(e=>{},[]),W=s(()=>{const n={title:"",key:"drag-handle",width:40,fixed:"left",className:vt.dragHandleHeader,render:()=>t(Ct,{})},o=a.map(a=>{const n=B[a.key]||a.width||void 0,o=a.sortable&&S.columnKey===a.key&&S.order||null,l=a.sortable?t("span",{className:vt.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!a.sortable)return;let t;if(t=S.columnKey===a.key?"ascend"===S.order?"descend":"descend"===S.order?null:"ascend":"ascend",t){if(I({order:t,columnKey:a.key}),u){const e="ascend"===t?"asc":"desc";u(a.key,e)}}else I({}),u&&u(null,null)},title:"Click to sort",children:(r=o,t(ue,"ascend"===r?{name:"sort-ascending",size:14}:"descend"===r?{name:"sort-descending",size:14}:{name:"caret-up-down",size:14}))}):null;var r;return{title:e("div",{className:vt.columnHeaderContent,children:[l,t("span",{className:vt.columnHeaderLabel,children:a.label}),t(yt,{columnKey:a.key,onResizeStart:R,onResize:T,onResizeEnd:F})]}),dataIndex:a.key,key:a.key,width:n,sorter:!1,render:a.render||(e=>e),className:vt.tableCell,showSorterTooltip:!1}}),l=A.length,i=p.length,s=l>0&&i===l,c=!(0===i)&&!s;return[n,{title:t("div",{className:vt.checkboxHeader,children:t(Ae,{checked:s,indeterminate:c,onChange:e=>{if(c)$([]);else{const t=e.target.checked;$(t?A.map(e=>e[r]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${vt.tableCell} ${vt.checkboxColumn}`,render:(e,a)=>{const n=p.includes(a[r]);return t("div",{className:vt.checkboxCell,children:t(Ae,{checked:n,onChange:e=>{const t=e.target.checked?[...p,a[r]]:p.filter(e=>e!==a[r]);$(t)},size:"small"})})}},...o]},[a,S,B,p,A,r,u,R,T,F]),U=[vt.tableContainer,m].filter(Boolean).join(" "),E=s(()=>A.map(e=>e[r]),[A,r]),M={body:{row:e=>{let a=e["data-row-key"];if(!a&&e.children){const t=n.Children.toArray(e.children);for(const e of t){const t=e;if(t?.props?.record?.[r]){a=t.props.record[r];break}}}if(!a&&void 0!==e["data-row-index"]){const t=e["data-row-index"];A[t]&&A[t][r]&&(a=A[t][r])}return a?t(wt,{id:a,rowKey:r,row:e,children:e.children}):t("tr",{...e,children:e.children})}}};return t("div",{className:U,...h,children:t(w,{sensors:z,collisionDetection:C,onDragEnd:e=>{const{active:t,over:a}=e;a&&t.id!==a.id&&L(e=>{const n=e.findIndex(e=>e[r]===t.id),o=e.findIndex(e=>e[r]===a.id),l=P(e,n,o);return c&&c(l),l})},children:t(x,{items:E,strategy:k,children:t(g,{className:vt.antTable,columns:W,dataSource:A,rowKey:r,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:M})})})})}var kt={container:"TextArea-module_container__8G9wA",label:"TextArea-module_label__sMQAR",description:"TextArea-module_description__P-BRk",textareaWrapper:"TextArea-module_textareaWrapper__cnITK",textareaInner:"TextArea-module_textareaInner__yxET8",textContent:"TextArea-module_textContent__5-qwn",title:"TextArea-module_title__V-RBC",nativeTextarea:"TextArea-module_nativeTextarea__1fdWN",iconWrapper:"TextArea-module_iconWrapper__3-EUI",icon:"TextArea-module_icon__K1T5J",dragIcon:"TextArea-module_dragIcon__UGnz0",dragIconImage:"TextArea-module_dragIconImage__u8y7I",error:"TextArea-module_error__qIUbc",textareaWrapper_state_default:"TextArea-module_textareaWrapper_state_default__2mpPG",textareaWrapper_state_hover:"TextArea-module_textareaWrapper_state_hover__yNCVJ",textareaWrapper_state_disabled:"TextArea-module_textareaWrapper_state_disabled__Q2hqV",textareaWrapper_state_focused:"TextArea-module_textareaWrapper_state_focused__UfdMe",textareaWrapper_state_typing:"TextArea-module_textareaWrapper_state_typing__81iqx",textareaWrapper_state_filled:"TextArea-module_textareaWrapper_state_filled__XKopI",textareaWrapper_state_filledHover:"TextArea-module_textareaWrapper_state_filledHover__AQra1",textareaWrapper_state_error:"TextArea-module_textareaWrapper_state_error__iBcMB"};const Pt=({value:a,defaultValue:n,body:o,title:r="",description:i="",label:s="",error:c="",hasLabel:d=!0,hasDescription:u=!0,hasError:m=!1,showIcon:h=!1,chooseIcon:p=null,showTitle:g=!1,showDragIcon:f=!0,state:_="default",placeholder:v="Body",onChange:b,onFocus:w,onBlur:C,disabled:y,className:x="",rows:k=4,...P})=>{const[N,S]=l(!1);let I=y?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(_);"default"===I&&N&&(I="focused");const A=[kt.container,x].filter(Boolean).join(" "),L=[kt.textareaWrapper,kt[`textareaWrapper_state_${I}`],m?kt.textareaWrapper_state_error:""].filter(Boolean).join(" "),B=y||"disabled"===I,D=void 0!==a?a:o;return e("div",{className:A,children:[d&&s&&t("label",{className:kt.label,children:s}),u&&i&&t("p",{className:kt.description,children:i}),t("div",{className:L,children:e("div",{className:kt.textareaInner,children:[e("div",{className:kt.textContent,children:[g&&r&&t("p",{className:kt.title,children:r}),t("textarea",{className:kt.nativeTextarea,value:D,defaultValue:n,placeholder:v,onChange:b,onFocus:e=>{S(!0),w&&w(e)},onBlur:e=>{S(!1),C&&C(e)},disabled:B,rows:k,...P})]}),h?p||t("div",{className:kt.iconWrapper,children:t("img",{src:"/icons/Icon.svg",alt:"Icon",className:kt.icon})}):null,f?t("div",{className:kt.dragIcon,children:t("img",{src:"/icons/Vector.svg",alt:"Drag",className:kt.dragIconImage})}):null]})}),(m||"error"===I)&&c&&t("p",{className:kt.error,children:c})]})},Nt={light:{background:"#ffffff",text:"#333333",grid:"#e0e0e0",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#cccccc",shadow:"rgba(0, 0, 0, 0.1)"},dark:{background:"#1a1a1a",text:"#ffffff",grid:"#333333",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#444444",shadow:"rgba(255, 255, 255, 0.1)"}};function St(e){return{...Nt.light,...e}}const It={default:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#feca57","#ff9ff3"],vibrant:["#ff4757","#2ed573","#3742fa","#ffa502","#ff6348","#5352ed"],pastel:["#ffb3ba","#baffc9","#bae1ff","#ffffba","#ffb3d9","#d4b3ff"],monochrome:["#f8f9fa","#e9ecef","#dee2e6","#ced4da","#adb5bd","#6c757d"],warm:["#ff6b6b","#ff8e53","#ffa726","#ffcc02","#ffeb3b","#fff176"],cool:["#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a"]},At={fadeIn:{duration:300,easing:"ease-in-out",keyframes:[{opacity:0},{opacity:1}]},slideUp:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideDown:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(-10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideLeft:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},slideRight:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(-10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},scaleIn:{duration:200,easing:"ease-out",keyframes:[{transform:"scale(0.95)",opacity:0},{transform:"scale(1)",opacity:1}]},scaleOut:{duration:200,easing:"ease-in",keyframes:[{transform:"scale(1)",opacity:1},{transform:"scale(0.95)",opacity:0}]},bounce:{duration:600,easing:"ease-in-out",keyframes:[{transform:"translateY(0)"},{transform:"translateY(-5px)"},{transform:"translateY(0)"}]},pulse:{duration:1e3,easing:"ease-in-out",iterations:"infinite",keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}]},spin:{duration:1e3,easing:"linear",iterations:"infinite",keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}]}};function Lt(e,t,a){if(!e)return null;const n=At[t],o={duration:a?.duration||n.duration,delay:a?.delay||0,easing:a?.easing||n.easing,iterations:a?.iterations||1,direction:a?.direction||"normal",fillMode:a?.fillMode||"both"};return e.animate(n.keyframes,o)}function Bt(e,t,a){return e?e.animate(t,a):null}function Dt(e,t,a=100,n){return e.map((e,o)=>{const l={...n,delay:(n?.delay||0)+o*a};return Lt(e,t,l)}).filter(Boolean)}function zt(e,t,a=300,n="ease-in-out"){e&&(e.style.transition=t.map(e=>`${e} ${a}ms ${n}`).join(", "))}function $t(e){e&&(e.style.transition="")}const Tt={fadeIn:"animate-fade-in",slideUp:"animate-slide-up",bounce:"animate-bounce-gentle",pulse:"animate-pulse-slow",spin:"animate-spin"};function Rt(e,t){e&&e.classList.add(Tt[t])}function Ft(e,t){e&&e.classList.remove(Tt[t])}function Wt(e,t={}){const{minimumFractionDigits:a=0,maximumFractionDigits:n=2,useGrouping:o=!0,currency:l="USD",style:r="decimal"}=t;return new Intl.NumberFormat("en-US",{style:r,currency:l,minimumFractionDigits:a,maximumFractionDigits:n,useGrouping:o}).format(e)}function Ut(e){if(0===e)return"0";const t=Math.abs(e),a=e<0?"-":"";return t>=1e12?`${a}${(t/1e12).toFixed(1)}T`:t>=1e9?`${a}${(t/1e9).toFixed(1)}B`:t>=1e6?`${a}${(t/1e6).toFixed(1)}M`:t>=1e3?`${a}${(t/1e3).toFixed(1)}K`:e.toString()}function Et(e,t=1){return`${(100*e).toFixed(t)}%`}function Mt(e,t="USD",a=2){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:a,maximumFractionDigits:a}).format(e)}function Ht(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",...t};return new Intl.DateTimeFormat("en-US",n).format(a)}function Vt(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",...t};return new Intl.DateTimeFormat("en-US",n).format(a)}function qt(e,t=new Date){const a=new Date(e),n=Math.floor((t.getTime()-a.getTime())/1e3);if(n<60)return"just now";const o=Math.floor(n/60);if(o<60)return`${o} minute${o>1?"s":""} ago`;const l=Math.floor(o/60);if(l<24)return`${l} hour${l>1?"s":""} ago`;const r=Math.floor(l/24);if(r<30)return`${r} day${r>1?"s":""} ago`;const i=Math.floor(r/30);if(i<12)return`${i} month${i>1?"s":""} ago`;const s=Math.floor(i/12);return`${s} year${s>1?"s":""} ago`}function Ot(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,t)).toFixed(2))} ${["Bytes","KB","MB","GB","TB"][t]}`}function Gt(e){const t=Math.floor(e/3600),a=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${a}:${n.toString().padStart(2,"0")}`}function Yt(e){const t=e.replace(/\D/g,"");return 10===t.length?`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`:11===t.length&&"1"===t[0]?`+1 (${t.slice(1,4)}) ${t.slice(4,7)}-${t.slice(7)}`:e}function jt(e){return(e.replace(/\D/g,"").match(/.{1,4}/g)||[]).join(" ").trim()}function Xt(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function Zt(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())}function Kt(e,t,a="..."){return e.length<=t?e:e.slice(0,t-a.length)+a}function Qt(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Jt(e,t){return`${Xt(e)} ${t}`}function ea(e){return e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function ta(e){return e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{isValid:!0}:{isValid:!1,message:"Please enter a valid email address"}:{isValid:!1,message:"Email is required"}}function aa(e){return e?e.length<8?{isValid:!1,message:"Password must be at least 8 characters long"}:/(?=.*[a-z])/.test(e)?/(?=.*[A-Z])/.test(e)?/(?=.*\d)/.test(e)?/(?=.*[@$!%*?&])/.test(e)?{isValid:!0}:{isValid:!1,message:"Password must contain at least one special character"}:{isValid:!1,message:"Password must contain at least one number"}:{isValid:!1,message:"Password must contain at least one uppercase letter"}:{isValid:!1,message:"Password must contain at least one lowercase letter"}:{isValid:!1,message:"Password is required"}}function na(e){const t=e.replace(/\D/g,"");return e?t.length<10||t.length>15?{isValid:!1,message:"Please enter a valid phone number"}:/^[\+]?[1-9][\d]{0,15}$/.test(t)?{isValid:!0}:{isValid:!1,message:"Please enter a valid phone number"}:{isValid:!1,message:"Phone number is required"}}function oa(e){try{return new URL(e),{isValid:!0}}catch{return{isValid:!1,message:"Please enter a valid URL"}}}function la(e){const t=e.replace(/\D/g,"");if(!e)return{isValid:!1,message:"Credit card number is required"};if(t.length<13||t.length>19)return{isValid:!1,message:"Please enter a valid credit card number"};let a=0,n=!1;for(let e=t.length-1;e>=0;e--){let o=parseInt(t[e]);n&&(o*=2,o>9&&(o-=9)),a+=o,n=!n}return a%10!=0?{isValid:!1,message:"Please enter a valid credit card number"}:{isValid:!0}}function ra(e,t){if(t.required&&(!e||""===e.toString().trim()))return{isValid:!1,message:"This field is required"};if(!e||""===e.toString().trim())return{isValid:!0};const a=e.toString();if(t.minLength&&a.length<t.minLength)return{isValid:!1,message:`Must be at least ${t.minLength} characters long`};if(t.maxLength&&a.length>t.maxLength)return{isValid:!1,message:`Must be no more than ${t.maxLength} characters long`};const n=Number(e);if(!isNaN(n)){if(void 0!==t.min&&n<t.min)return{isValid:!1,message:`Must be at least ${t.min}`};if(void 0!==t.max&&n>t.max)return{isValid:!1,message:`Must be no more than ${t.max}`}}return t.pattern&&!t.pattern.test(a)?{isValid:!1,message:"Invalid format"}:t.custom?t.custom(e):{isValid:!0}}function ia(e,t){const a={};let n=!0;for(const[o,l]of Object.entries(t)){const t=ra(e[o],l);t.isValid||(a[o]=t.message||"Invalid value",n=!1)}return{isValid:n,errors:a}}const sa={email:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,phone:/^[\+]?[1-9][\d]{0,15}$/,url:/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,alphanumeric:/^[a-zA-Z0-9]+$/,alphabetic:/^[a-zA-Z\s]+$/,numeric:/^\d+$/,decimal:/^\d*\.?\d+$/,slug:/^[a-z0-9]+(?:-[a-z0-9]+)*$/,hexColor:/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ipAddress:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,uuid:/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i},ca={required:{required:!0},email:{required:!0,pattern:sa.email},password:{required:!0,minLength:8},phone:{required:!0,pattern:sa.phone},url:{required:!0,pattern:sa.url},alphanumeric:{pattern:sa.alphanumeric},numeric:{pattern:sa.numeric},decimal:{pattern:sa.decimal},slug:{pattern:sa.slug},hexColor:{pattern:sa.hexColor}};export{ve as Avatar,Ce as BackgroundGradient,xe as Badge,A as BarChart,Pe as Breadcrumb,pe as Button,fe as ButtonDanger,Oe as Card,ze as Categories,Fe as Cell,qe as CellHeader,Ae as Checkbox,Ye as Chip,Xe as ChipList,Ke as Dropdown,tt as DropdownNested,Je as DropdownNestedColumn,E as GaugeChart,ue as Icon,nt as IconButton,De as ItemRow,lt as Modal,it as Notification,ct as Pagination,L as PieChart,Be as Radio,B as Sankey,ut as Search,le as ShankeyPro,$ as ShankyFlow,ht as StatusIndicator,gt as Tab,_t as TabList,xt as Table,Pt as TextArea,Re as Toggle,Rt as addAnimationClass,de as allIcons,Bt as animateElement,Tt as animationClasses,Xt as capitalizeFirst,Zt as capitalizeWords,It as colorPalettes,ca as commonRules,Lt as createAnimation,St as createTheme,zt as createTransition,At as defaultAnimations,Nt as defaultThemes,Ut as formatCompactNumber,jt as formatCreditCard,Mt as formatCurrency,Ht as formatDate,Vt as formatDateTime,Gt as formatDuration,ea as formatFieldLabel,Ot as formatFileSize,Wt as formatNumber,Et as formatPercentage,Yt as formatPhoneNumber,qt as formatRelativeTime,Jt as formatValidationError,Ft as removeAnimationClass,$t as removeTransition,Qt as slugify,Dt as staggerAnimation,Kt as truncateText,la as validateCreditCard,ta as validateEmail,ra as validateField,ia as validateForm,aa as validatePassword,na as validatePhoneNumber,oa as validateURL,sa as validationPatterns};
1
+ import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import n,{useRef as r,useState as o,useEffect as l,useCallback as i,useMemo as s,createContext as c,useContext as d}from"react";import*as u from"d3";import{Breadcrumb as m,ConfigProvider as p,Pagination as h,Table as g}from"antd";import{useSensors as f,useSensor as _,PointerSensor as v,KeyboardSensor as b,DndContext as y,closestCenter as w}from"@dnd-kit/core";import{sortableKeyboardCoordinates as C,SortableContext as x,verticalListSortingStrategy as k,arrayMove as S,useSortable as P}from"@dnd-kit/sortable";import{CSS as N}from"@dnd-kit/utilities";const I={width:800,height:400,margin:{top:20,right:30,bottom:60,left:80},colors:{gradient:{start:"#8B5CF6",end:"#6B46C1"}},showGrid:!0,animate:!0,responsive:!0,showTooltip:!0,cornerRadius:5,barPadding:.6,tickCount:5,formatValue:e=>0===e?"0":e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}k`:e.toString()},L=n=>{const i={...I,...n},{data:s,title:c,titleStyle:d,titleClassName:m,width:p,height:h,margin:g,colors:f,showGrid:_,animate:v,responsive:b,formatValue:y,className:w,style:C,onBarClick:x,onBarHover:k,showTooltip:S,tooltipStyle:P,tooltipClassName:N,tooltipContent:L,showLegend:z=!0,legendPosition:A="bottom",legendStyle:B,legendClassName:D,legendTitle:$,showYAxis:T=!0,showYAxisLine:W=!1,showYAxisTicks:F=!1,yAxisStyle:R,yAxisClassName:H,yAxisLabelStyle:M,yAxisLabelClassName:E,cornerRadius:U,barPadding:O,tickCount:G}=i,V=r(null),q=r(null),j=r(null),[Y,X]=o({width:p||800,height:h||400}),[K,Z]=o(!1);l(()=>{if(Z(!0),!b)return;const e=()=>{if(q.current){const e=q.current.getBoundingClientRect().width,t=Math.max(300,e),a=Math.max(300,.5*t);X({width:t,height:a})}};let t;q.current&&(t=new ResizeObserver(e),t.observe(q.current)),window.addEventListener("resize",e);const a=setTimeout(e,0);return()=>{t&&t.disconnect(),window.removeEventListener("resize",e),clearTimeout(a)}},[b]),l(()=>{if(!K||!s||0===s.length)return;const e=u.select(V.current);e.selectAll("*").remove();const t=Y.width-(g?.left||0)-(g?.right||0),a=Y.height-(g?.top||0)-(g?.bottom||0),n=e.attr("width",Y.width).attr("height",Y.height).append("g").attr("transform",`translate(${g?.left||0},${g?.top||0})`);if(f?.gradient){const t=e.append("defs").append("linearGradient").attr("id","barGradient").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");t.append("stop").attr("offset","0%").attr("stop-color",f.gradient.start),t.append("stop").attr("offset","100%").attr("stop-color",f.gradient.end)}const r=u.scaleBand().domain(s.map(e=>e.category)).range([0,t]).padding(O||.6),o=u.max(s,e=>e.value)||0,l=u.scaleLinear().domain([0,1.1*o]).range([a,0]);if(_){const e=u.axisLeft(l).tickSize(-t).tickFormat(()=>"").ticks(G||5);n.append("g").attr("class","grid").style("stroke-dasharray","3,3").style("opacity",.3).call(e)}if(T){const e=u.axisLeft(l).ticks(G||5).tickFormat(e=>{const t="number"==typeof e?e:Number(e);return y?y(t):0===t?"0":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(0)}k`:t.toString()}),t=n.append("g").attr("class","y-axis").style("color","#7D7D7D").style("font-size","0.875rem").call(e);if(R){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=R[e];void 0!==a&&t.style(e,a.toString())})}if(W||t.selectAll("path").style("display","none"),F||t.selectAll("line").style("display","none"),t.selectAll("text").attr("class",`y-axis-label ${E||""}`).style("font-weight","500").style("fill","#7D7D7D").style("font-size","0.875rem").style("font-family","Inter, system-ui, sans-serif").style("dominant-baseline","middle").style("text-anchor","end").attr("dx","-8px"),M){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=M[e];void 0!==a&&t.selectAll("text").style(e,a.toString())})}}const i=u.axisBottom(r),c=n.append("g").attr("class","x-axis").attr("transform",`translate(0,${a})`).style("color","#718096").style("font-size","0.875rem").call(i);c.selectAll("path").style("display","none"),c.selectAll("line").style("display","none"),t<600&&c.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-45)");const d=n.selectAll(".bar").data(s).enter().append("rect").attr("class","bar").attr("x",e=>r(e.category)||0).attr("width",r.bandwidth()).attr("y",a).attr("height",0).attr("rx",U||5).attr("ry",U||5).style("fill",e=>e.color?e.color:f?.gradient?"url(#barGradient)":f?.solid?f.solid:"#8B5CF6").style("cursor",x?"pointer":"default");v?d.transition().duration(800).ease(u.easeBackOut.overshoot(1.1)).attr("y",e=>l(e.value)).attr("height",e=>a-l(e.value)):d.attr("y",e=>l(e.value)).attr("height",e=>a-l(e.value)),(x||k||S)&&d.on("click",(e,t)=>{if(x){const e=s.indexOf(t);x(t,e)}}).on("mouseover",(e,t)=>{if(k){const e=s.indexOf(t);k(t,e)}if(S&&j.current&&q.current){const a=u.select(j.current),n=q.current.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),o=r.left-n.left+r.width/2,l=r.top-n.top-15;a.style("opacity",1).style("left",`${o}px`).style("top",`${l}px`).style("transform","translateX(-50%)").html(`\n <div class="font-semibold text-white">${t.category}</div>\n <div class="text-sm text-gray-200 mt-1">${y?y(t.value):t.value.toString()}</div>\n `)}u.select(e.currentTarget).transition().duration(200).style("opacity",.8).style("filter","brightness(1.1)")}).on("mouseout",e=>{S&&j.current&&u.select(j.current).style("opacity",0),u.select(e.currentTarget).transition().duration(200).style("opacity",1).style("filter","brightness(1)")}).on("mousemove",(e,t)=>{if(S&&j.current&&q.current){const t=u.select(j.current),a=q.current.getBoundingClientRect(),n=e.clientX-a.left,r=e.clientY-a.top;t.style("left",`${n}px`).style("top",r-15+"px").style("transform","translateX(-50%)")}})},[K,s,Y,g,f,_,v,y,x,k,S,U,O,G,T,W,F,R,H,M,E]);const Q=()=>{if(!z||!s||0===s.length)return null;const a=s.map((a,n)=>e("div",{className:"flex items-center space-x-2 cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>x?.(a,n),onMouseEnter:()=>k?.(a,n),children:[t("div",{className:"w-4 h-4 rounded-sm",style:{backgroundColor:a.color||(f?.gradient?"url(#barGradient)":f?.solid||"#8B5CF6")}}),t("span",{className:"text-sm font-medium text-gray-700",children:a.category}),e("span",{className:"text-xs text-gray-500",children:["(",y?y(a.value):a.value.toString(),")"]})]},a.category));return e("div",{className:`${{top:"flex flex-wrap justify-center gap-4 mb-4",bottom:"flex flex-wrap justify-center gap-4 mt-4",left:"flex flex-col space-y-2 mr-4",right:"flex flex-col space-y-2 ml-4"}[A]} ${D||""}`,style:B,children:[$&&t("div",{className:"w-full text-center mb-2",children:t("span",{className:"text-sm font-semibold text-gray-600",children:$})}),a]})};return e("div",{ref:q,className:`bg-white p-6 rounded-xl ${w||""}`,style:C,children:[c&&t("h2",{className:`text-xl font-semibold text-[#18044E] mb-6 ${m||""}`,style:d,children:c}),z&&"top"===A&&Q(),e("div",{className:"relative",children:[t("svg",{ref:V,className:"w-full h-auto"}),S&&t("div",{ref:j,className:`absolute pointer-events-none bg-gradient-to-r from-gray-800 to-gray-900 text-white rounded-xl px-4 py-3 shadow-2xl opacity-0 transition-all duration-300 z-50 whitespace-nowrap border border-gray-600 ${N||""}`,style:{fontSize:"0.9rem",minWidth:"120px",textAlign:"center",backdropFilter:"blur(10px)",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05)",...P},children:L?L(s[0]):e(a,{children:[t("div",{className:"font-semibold text-white",children:s[0]?.category}),t("div",{className:"text-sm text-gray-200 mt-1",children:y?y(s[0]?.value||0):(s[0]?.value||0).toString()})]})})]}),z&&"bottom"===A&&Q()]})},z=({data:a,title:n="Policy Effect",titleStyle:i={},containerStyle:s={},chartSize:c=320,showLegend:d=!0,legendStyle:m={}})=>{const p=r(null),[h,g]=o({visible:!1,x:0,y:0,content:"",label:"",value:"",percentage:""}),f=a||[{label:"Allow",value:35,color:"#4A148C"},{label:"Block",value:30,color:"#7B1FA2"},{label:"Isolate",value:20,color:"#BA68C8"},{label:"Tag",value:15,color:"#E1BEE7"}],_=u.sum(f,e=>e.value);l(()=>{if(!p.current)return;const e=u.select(p.current);e.selectAll("*").remove();const t=c,a=c,n=Math.min(t,a)/2-30,r=e.attr("width",t).attr("height",a).append("g").attr("transform",`translate(${t/2}, ${a/2})`),o=u.pie().value(e=>e.value).sort(null).padAngle(0),l=u.arc().innerRadius(0).outerRadius(n),i=u.arc().innerRadius(0).outerRadius(n+8);r.selectAll("arc").data(o(f)).enter().append("g").attr("class","arc").append("path").attr("d",l).attr("fill",e=>e.data.color||"#4A148C").style("cursor","pointer").style("transition","all 0.3s ease").on("mouseover",function(e,t){const a=(t.data.value/_*100).toFixed(1);u.select(this).transition().duration(200).attr("d",i(t)).style("filter","brightness(1.1)"),g({visible:!0,x:e.clientX,y:e.clientY,content:`${t.data.label??""}: ${t.data.value} (${a}%)`,label:t.data.label??"",value:t.data.value.toString(),percentage:a})}).on("mousemove",function(e){g(t=>({...t,x:e.clientX,y:e.clientY}))}).on("mouseout",function(e,t){u.select(this).transition().duration(200).attr("d",l(t)).style("filter","brightness(1)"),g(e=>({...e,visible:!1}))})},[0,f,c]);const v={fontSize:"1.5rem",fontWeight:"600",marginBottom:"1rem",color:"#374151",textAlign:"center",...i},b={display:"flex",flexDirection:"column",alignItems:"center",padding:"1.5rem",backgroundColor:"white",borderRadius:"0.5rem",position:"relative",...s},y={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"0.5rem",...m};return e("div",{style:b,children:[t("h2",{style:v,children:n}),t("div",{className:"relative",children:t("svg",{ref:p})}),d&&t("div",{style:y,children:f.map((a,n)=>((a.value/_*100).toFixed(1),e("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",children:[t("div",{className:"w-[10px] h-[10px] rounded-full",style:{backgroundColor:a.color}}),t("div",{className:"text-sm",children:t("div",{className:"font-medium text-[#454545]",children:a.label})})]},n)))}),h.visible&&e("div",{className:"fixed z-50 bg-gray-900 text-white px-4 py-3 rounded-lg pointer-events-none border border-gray-700",style:{left:h.x+15,top:h.y-60,minWidth:"150px"},children:[t("div",{className:"text-sm font-semibold text-blue-300",children:h.label}),e("div",{className:"text-base",children:[h.value," items"]}),e("div",{className:"text-sm text-gray-300",children:[h.percentage,"% of total"]}),t("div",{className:"absolute -bottom-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45 border-r border-b border-gray-700"})]})]})},A=({data:a,width:n=1200,height:o=600,margin:i={top:80,right:50,bottom:50,left:50},backgroundColor:s="linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%)",showTimeFilter:c=!0,timeFilters:d=["1W","1M","3M","1Y","ALL"],activeFilter:m="3M",onFilterChange:p=()=>{},filterButtonColor:h="#6366f1",filterButtonInactive:g="rgba(255, 255, 255, 0.1)",useCustomFlowWidth:f=!1,customFlowWidth:_=10,minFlowWidth:v=4,maxFlowWidth:b=20,flowWidthMultiplier:y=1,showStatistics:w=!1,statistics:C={trendGoods:204,shoppingViews:65540,storeDynamics:325}})=>{const x=r(null),k=r(),S=r();l(()=>{if(!x.current)return;const e=u.select(x.current);e.selectAll("*").remove(),e.attr("width",n).attr("height",o).style("background",s),e.append("text").attr("x",n/2).attr("y",40).attr("text-anchor","middle").style("font-size","48px").style("font-weight","bold").style("fill","rgba(255,255,255,0.1)").text("Data visualisation");const t=e.append("g").attr("class","zoom-group"),r=t.append("g").attr("transform",`translate(${i.left}, ${i.top})`);S.current&&S.current.remove();const l=u.select("body").append("div").attr("class","tooltip").style("position","absolute").style("background","rgba(0,0,0,0.7)").style("color","white").style("padding","8px").style("border-radius","4px").style("pointer-events","none").style("opacity",0);S.current=l;const c=u.zoom().scaleExtent([.5,3]).on("zoom",e=>{t.attr("transform",e.transform.toString())});e.call(c),k.current=c;const d=180,m=80,p=120,h="drop-shadow(0 8px 16px rgba(0,0,0,0.3))",g="white",L=(o-i.top-i.bottom)/2,z=(n-i.left-i.right)/2-90,A=n-i.left-i.right-d-80,B=a.nodes.filter(e=>"source"===e.type),D=a.nodes.filter(e=>"middle"===e.type),$=a.nodes.filter(e=>"target"===e.type);B.forEach(e=>{e.x=80,e.y=L-40}),D.forEach((e,t)=>{const a=(D.length-1)*p,n=L-a/2;e.x=z,e.y=n+t*p}),$.forEach((e,t)=>{const a=($.length-1)*p,n=L-a/2;e.x=A,e.y=n+t*p});const T=u.drag().on("start",e=>{e.sourceEvent.stopPropagation()}).on("drag",function(e,t){t.x=e.x,t.y=e.y,u.select(this).attr("transform",`translate(${t.x}, ${t.y})`),r.selectAll("path.sankey-link").remove(),R()}),W=e.append("defs"),F=Math.max(...a.links.map(e=>e.value)),R=()=>{W.selectAll("linearGradient.link-gradient").remove(),a.links.forEach((e,t)=>{const n=a.nodes.find(t=>t.id===e.source),o=a.nodes.find(t=>t.id===e.target);if(!n||!o)return;const i=`gradient-${t}`,s=W.append("linearGradient").attr("id",i).attr("class","link-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",n.x+d).attr("y1",n.y+40).attr("x2",o.x).attr("y2",o.y+40);s.append("stop").attr("offset","0%").attr("stop-color",n.color).attr("stop-opacity",.8),s.append("stop").attr("offset","100%").attr("stop-color",o.color).attr("stop-opacity",.8);const c=n.x+d,m=n.y+40,p=o.x,g=o.y+40,w=(C=e.value,f?_:(C/F*b+v)*y);var C;r.append("path").attr("class","sankey-link").attr("d",`M${c},${m} C${(c+p)/2},${m} ${(c+p)/2},${g} ${p},${g}`).attr("fill","none").attr("stroke",`url(#${i})`).attr("stroke-width",w).attr("stroke-opacity",.7).style("filter",h).on("mouseover",t=>{l.transition().duration(200).style("opacity",1),l.html(`Flow: ${e.value}<br/>Width: ${w.toFixed(1)}px`).style("left",t.pageX+10+"px").style("top",t.pageY-28+"px"),u.select(t.target).attr("stroke-opacity",1)}).on("mouseout",e=>{l.transition().duration(300).style("opacity",0),u.select(e.target).attr("stroke-opacity",.7)}).on("click",()=>{})})};a.nodes.forEach((e,t)=>{const a=`node-gradient-${t}`,n=W.append("linearGradient").attr("id",a).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","100%");n.append("stop").attr("offset","0%").attr("stop-color",e.color),n.append("stop").attr("offset","100%").attr("stop-color",u.color(e.color)?.darker(.5)?.toString()||e.color);const o=r.append("g").datum(e).attr("transform",`translate(${e.x}, ${e.y})`).style("cursor","pointer").call(T).on("click",(e,t)=>{});o.append("rect").attr("width",d).attr("height",m).attr("rx",16).style("fill",`url(#${a})`).style("stroke",u.color(e.color)?.darker(.5)?.toString()||e.color).style("stroke-width",2).style("filter",h).on("mouseover",function(){u.select(this).style("filter","drop-shadow(0 12px 24px rgba(0,0,0,0.5))")}).on("mouseout",function(){u.select(this).style("filter",h)}).on("click",(e,t)=>{}),o.append("text").attr("x",20).attr("y",30).style("fill",g).style("font-size","18px").style("font-weight","600").text(e.name),o.append("text").attr("x",20).attr("y",55).style("fill",g).style("font-size","24px").style("font-weight","bold").text(`$${e.value.toLocaleString()}`)}),R();const H=e.append("g").attr("class","zoom-controls"),M=n-100-20;if([{text:"Zoom In",action:"zoomIn"},{text:"Zoom Out",action:"zoomOut"},{text:"Reset Zoom",action:"resetZoom"}].forEach((e,t)=>{const a=20+44*t;H.append("rect").attr("x",M).attr("y",a).attr("width",100).attr("height",36).attr("rx",6).attr("fill","rgba(255, 255, 255, 0.9)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1).style("cursor","pointer").on("mouseover",function(){u.select(this).attr("fill","rgba(255, 255, 255, 1)")}).on("mouseout",function(){u.select(this).attr("fill","rgba(255, 255, 255, 0.9)")}).on("click",()=>{switch(e.action){case"zoomIn":P();break;case"zoomOut":N();break;case"resetZoom":I()}}),H.append("text").attr("x",M+50).attr("y",a+18+4).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","#1a1a3e").style("pointer-events","none").text(e.text)}),e.selectAll(".stats-panel").remove(),!0===w){const t=e.append("g").attr("class","stats-panel"),a=800,r=120,l=(n-a)/2,i=o-r-20;t.append("rect").attr("x",l).attr("y",i).attr("width",a).attr("height",r).attr("rx",12).attr("fill","rgba(15, 15, 35, 1)").attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",1);const s=[{title:"TREND GOODS",value:C.trendGoods.toLocaleString(),icon:"▶",color:"#6366f1"},{title:"SHOPPING VIEWS",value:C.shoppingViews.toLocaleString(),icon:"👁",color:"#8b5cf6"},{title:"STORE DYNAMICS",value:C.storeDynamics.toLocaleString(),icon:"⏱",color:"#a855f7"}],c=a/3;s.forEach((e,a)=>{const n=l+a*c+c/2;t.append("rect").attr("x",n-25).attr("y",i+15).attr("width",50).attr("height",50).attr("rx",8).attr("fill","rgba(255, 255, 255, 0.1)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1),t.append("text").attr("x",n).attr("y",i+45).attr("text-anchor","middle").style("font-size","24px").style("fill",e.color).text(e.icon),t.append("text").attr("x",n).attr("y",i+85).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","rgba(255, 255, 255, 0.7)").style("letter-spacing","1px").text(e.title),t.append("text").attr("x",n).attr("y",i+105).attr("text-anchor","middle").style("font-size","28px").style("font-weight","bold").style("fill","white").text(e.value)})}return()=>{S.current&&S.current.remove()}},[a,n,o,i,s,f,_,v,b,y,w,C]);const P=()=>{x.current&&k.current&&u.select(x.current).transition().duration(300).call(k.current.scaleBy,1.2)},N=()=>{x.current&&k.current&&u.select(x.current).transition().duration(300).call(k.current.scaleBy,.8)},I=()=>{x.current&&k.current&&u.select(x.current).transition().duration(500).call(k.current.transform,u.zoomIdentity)};return e("div",{className:"relative w-full h-screen bg-gray-900 flex flex-col items-center justify-center space-y-4",children:[c&&t("div",{className:"absolute top-6 right-6 flex space-x-2 z-10",children:d.map(e=>t("button",{onClick:()=>p(e),className:"px-4 py-1.5 rounded-full text-white text-sm font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:m===e?h:g},children:e},e))}),t("svg",{ref:x,className:"max-w-full max-h-full"})]})},B={desktop:{width:900,height:650,margin:{top:120,right:180,bottom:60,left:180},fontSize:{title:26,subtitle:14,label:14,value:16},nodeHeight:45,flowScaleFactor:.35},tablet:{width:700,height:550,margin:{top:100,right:140,bottom:50,left:140},fontSize:{title:22,subtitle:14,label:14,value:18},nodeHeight:40,flowScaleFactor:.3},mobile:{width:350,height:400,margin:{top:80,right:80,bottom:40,left:80},fontSize:{title:16,subtitle:12,label:11,value:14},nodeHeight:30,flowScaleFactor:.2}},D={mobile:640,tablet:1024,desktop:1024},$=({flows:a=[],hoverColor:n="#FF6B6B",title:s="Clipboard Copy Source to Paste Diagram",subtitle:c="Explore the user's Sensitive Data Copy Paste behavior, detection history, and risk exposure.",showHeaders:d=!0,showTitle:m=!0,showSubtitle:p=!0,showDebug:h=!1,sourceHeader:g="Copying Sources",targetHeader:f="Pasting Targets",labelColor:_="#374151",valueColor:v="#111827",headerColor:b="#454545",titleColor:y="#111827",subtitleColor:w="#6B7280",headerUnderlineColor:C="#D4C4FF",flowOpacity:x=.7,hoverOpacity:k=.9,curvature:S=.4,valueFormatter:P,labelFormatter:N,tooltipRenderer:I,gradientStops:L,responsive:z=!0,width:A,height:$,margin:T,nodeHeight:W,flowScaleFactor:F,fontSize:R,responsiveConfig:H=B,breakpoints:M=D})=>{const E=r(null),U=r(null),[O,G]=o({width:0,height:0}),[V,q]=o(H.desktop),[j,Y]=o(!1),X=i(()=>{if("undefined"==typeof window)return H.desktop;const e=window.innerWidth;return e<M.mobile?H.mobile:e<M.tablet?H.tablet:(M.desktop,H.desktop)},[H,M]);return l(()=>{const e=()=>{const e=X(),t={...e,margin:T??e.margin,nodeHeight:W??e.nodeHeight,flowScaleFactor:F??e.flowScaleFactor,fontSize:R??e.fontSize,width:A??e.width,height:$??e.height};q(t);const a=window.innerWidth-128;let n=t.width;z&&(n=e===H.desktop?a>=t.width?t.width:Math.max(a,600):Math.max(a,t.width)),G({width:n,height:t.height}),j||Y(!0)},t=setTimeout(e,100);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[X,j,z,A,$,T,W,F,R,H]),l(()=>{if(!(a.length&&O.width&&O.height&&j))return;const e=u.select(E.current);e.selectAll("*").remove();const{width:t,height:r}=O,{margin:o,fontSize:l,nodeHeight:i,flowScaleFactor:h}=V,z=new Map,A=new Map,B=new Map,D=new Map;a.forEach(e=>{B.has(e.source)||B.set(e.source,[]),B.get(e.source).push(e),D.has(e.target)||D.set(e.target,[]),D.get(e.target).push(e),z.set(e.source,e.sourceValue),A.set(e.target,e.targetValue)});const $=Array.from(z.entries()),T=Array.from(A.entries()),W=r-o.top-o.bottom,F=W/($.length+1),R=W/(T.length+1),H=$.map(([e,t],a)=>({name:e,value:t,y:o.top+F*(a+1),height:i})),M=T.map(([e,t],a)=>({name:e,value:t,y:o.top+R*(a+1),height:i})),U=o.left,G=t-o.right;e.attr("width",t).attr("height",r);const q=e.append("defs");a.forEach((e,t)=>{const a=q.append("linearGradient").attr("id",`gradient-${t}`).attr("gradientUnits","userSpaceOnUse").attr("x1",U+80).attr("x2",G-80);(L&&L.length>0?L:[{offset:"0%",color:"#8B5CF6",opacity:.8},{offset:"50%",color:"#3B82F6",opacity:.7},{offset:"100%",color:"#06B6D4",opacity:.8}]).forEach(e=>{a.append("stop").attr("offset","number"==typeof e.offset?`${e.offset}%`:e.offset).attr("stop-color",e.color).attr("stop-opacity",e.opacity??.8)})});let Y=u.select("body").select(".sankey-tooltip");Y.empty()&&(Y=u.select("body").append("div").attr("class","sankey-tooltip").style("position","absolute").style("background","rgba(0, 0, 0, 0.9)").style("color","white").style("padding","12px 16px").style("border-radius","8px").style("font-size","13px").style("font-family","system-ui, sans-serif").style("pointer-events","none").style("opacity",0).style("z-index",1e3).style("box-shadow","0 4px 12px rgba(0,0,0,0.3)").style("max-width","250px"));const X=new Map;H.forEach(e=>{const t=B.get(e.name)||[];let a=e.y-e.height/2;X.set(e.name,new Map),t.forEach(t=>{const n=M.find(e=>e.name===t.target);if(!n)return;const r=n.value,o=i,l=t.thickness/r*o*h;X.get(e.name).set(t.target,{startY:a,endY:a+l,centerY:a+l/2}),a+=l})});const K=new Map;if(M.forEach(e=>{const t=D.get(e.name)||[];let a=e.y-e.height/2;K.set(e.name,new Map),t.forEach(t=>{const n=i,r=t.thickness/e.value*n*h;K.get(e.name).set(t.source,{startY:a,endY:a+r,centerY:a+r/2}),a+=r})}),a.forEach((t,a)=>{const r=H.find(e=>e.name===t.source),o=M.find(e=>e.name===t.target);if(r&&o){const r=X.get(t.source).get(t.target),o=K.get(t.target).get(t.source),l=r.startY,i=r.endY,s=o.startY,c=o.endY,d=S,m=u.interpolateNumber(U,G),p=m(d),h=m(1-d),g=`M${U},${l}\n C${p},${l} ${h},${s} ${G},${s}\n L${G},${c}\n C${h},${c} ${p},${i} ${U},${i}\n Z`;e.append("path").attr("d",g).attr("fill",`url(#gradient-${a})`).attr("opacity",x).style("cursor","pointer").on("mouseover",function(e){u.select(this).attr("fill",n).attr("opacity",k),"function"==typeof I?Y.style("opacity",1).html(I(t)):Y.style("opacity",1).html(`\n <div style="font-weight: 600; margin-bottom: 8px;">Flow Details</div>\n <div><strong>From:</strong> ${t.source}</div>\n <div><strong>To:</strong> ${t.target}</div>\n <div><strong>Value:</strong> ${t.thickness}</div>\n <div><strong>Source Total:</strong> ${t.sourceValue}</div>\n <div><strong>Target Total:</strong> ${t.targetValue}</div>\n `)}).on("mousemove",function(e){Y.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){u.select(this).attr("fill",`url(#gradient-${a})`).attr("opacity",x),Y.style("opacity",0)})}}),d){const t=e.append("text").attr("x",U-15).attr("y",o.top-10).attr("text-anchor","end").attr("fill",b).attr("font-size",`${l.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(g).node();if(t){const a=t.getBBox();e.append("line").attr("x1",a.x).attr("y1",o.top).attr("x2",a.x+a.width).attr("y2",o.top).attr("stroke",C).attr("stroke-width","1").attr("opacity","1")}const a=e.append("text").attr("x",G+15).attr("y",o.top-10).attr("text-anchor","start").attr("fill",b).attr("font-size",`${l.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(f).node();if(a){const t=a.getBBox();e.append("line").attr("x1",t.x).attr("y1",o.top).attr("x2",t.x+t.width).attr("y2",o.top).attr("stroke",C).attr("stroke-width","1").attr("opacity","1")}}return H.forEach(t=>{e.append("text").attr("x",U-15).attr("y",t.y-8).attr("text-anchor","end").attr("fill",_).attr("font-size",`${l.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(N?N(t.name):t.name),e.append("text").attr("x",U-15).attr("y",t.y+12).attr("text-anchor","end").attr("fill",v).attr("font-size",`${l.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(P?P(t.value):t.value)}),M.forEach(t=>{e.append("text").attr("x",G+15).attr("y",t.y-8).attr("text-anchor","start").attr("fill",_).attr("font-size",`${l.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(N?N(t.name):t.name),e.append("text").attr("x",G+15).attr("y",t.y+12).attr("text-anchor","start").attr("fill",v).attr("font-size",`${l.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(P?P(t.value):t.value)}),m&&e.append("text").attr("x",40).attr("y",35).attr("text-anchor","start").attr("fill",y).attr("font-size",`${l.title}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(s),p&&e.append("text").attr("x",40).attr("y",60).attr("text-anchor","start").attr("fill",w).attr("font-size",`${l.subtitle}px`).attr("font-weight","400").attr("font-family","system-ui, sans-serif").text(c),()=>{u.select("body").selectAll(".sankey-tooltip").remove()}},[a,n,s,c,O,V,L,_,v,b,y,w,C,x,k,S,P,N,I,d,m,p,h]),t("div",{className:"w-full max-w-7xl mx-auto p-4 md:p-6",children:e("div",{className:"bg-white rounded-xl shadow-lg p-4 md:p-8",children:[h&&e("div",{className:"text-xs text-gray-500 mb-2",children:["Screen: ","undefined"!=typeof window?window.innerWidth:"SSR","px | Config: ",V===H.desktop?"Desktop":V===H.tablet?"Tablet":"Mobile"," | Chart: ",O.width,"x",O.height," | Available: ","undefined"!=typeof window?window.innerWidth-128:"SSR","px | Initialized: ",j?"Yes":"No",t("button",{onClick:()=>{const e=X();q(e);const t=window.innerWidth-128;let a=e.width;a=e===H.desktop?t>=e.width?e.width:Math.max(t,600):Math.max(t,e.width),G({width:a,height:e.height})},className:"ml-4 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:"Refresh"})]}),t("div",{ref:U,className:"w-full overflow-x-auto",children:t("div",{className:"flex justify-center min-w-max",children:t("svg",{ref:E,style:{width:O.width||V.width,height:O.height||V.height,minWidth:V.width,minHeight:V.height}})})})]})})},T=75,W=16,F=1500,R=20,H=e=>`${e.label}: ${e.value.toLocaleString()} (${(100*e.percentage).toFixed(1)}%)`,M=({segments:a,title:n})=>{const c=r(null),{segmentData:d,total:u}=(e=>{const t=e.reduce((e,t)=>e+t.value,0);return{segmentData:e.map(e=>({...e,percentage:e.value/t,arcLength:75*Math.PI*(e.value/t)})),total:t}})(a),{count:m,animationProgress:p}=(e=>{const[t,a]=o(0),[n,r]=o(0);return l(()=>{let t=0;const n=1/(F/R),o=setInterval(()=>{t+=n,t>=1&&(t=1,clearInterval(o)),a(Math.floor(e*t)),r(t)},R);return()=>{clearInterval(o)}},[e]),{count:t,animationProgress:n}})(u),{tooltip:h,showTooltip:g,updateTooltip:f,hideTooltip:_}=(e=>{const[t,a]=o({show:!1,content:"",x:0,y:0,type:""}),n=i((t,n,r)=>{if(!e.current)return;const o=e.current.getBoundingClientRect(),l=t.clientX-o.left,i=t.clientY-o.top;a({show:!0,content:n,type:r,x:l,y:i-70})},[e]),r=i((n,r,o)=>{if(!t.show||!e.current)return;const l=e.current.getBoundingClientRect(),i=n.clientX-l.left,s=n.clientY-l.top;a(e=>({...e,x:i,y:s-70}))},[t.show,e]),l=i(()=>{a(e=>({...e,show:!1}))},[]);return{tooltip:t,showTooltip:n,updateTooltip:r,hideTooltip:l}})(c),v=T,b=W,y=Math.PI*v,w=s(()=>({width:2*v+b,height:v+b+20,viewBox:`0 0 ${2*v+b} ${v+b+20}`}),[v,b]),C=s(()=>((e,t)=>`M ${t/2},${e+10} \n A ${e},${e} 0 0 1 ${2*e+t/2},${e+10}`)(v,b),[v,b]),x=s(()=>d.map((e,t)=>({currentArc:e.arcLength*p,previousArcsLength:d.slice(0,t).reduce((e,t)=>e+t.arcLength*p,0)})),[d,p]);return e("div",{ref:c,className:"flex flex-col items-center justify-center bg-white rounded-xl p-8 w-96 mx-auto relative shadow-[0px_4px_40px_0px_#7090B01F]",children:[t("div",{className:"flex justify-center mb-4",children:e("svg",{width:w.width,height:w.height,viewBox:w.viewBox,className:"relative",children:[t("path",{d:C,fill:"transparent",stroke:"#E5E7EB",strokeWidth:b,strokeLinecap:"round"}),d.map((e,a)=>{const{currentArc:n,previousArcsLength:r}=x[a];return t("path",{d:C,fill:"transparent",stroke:e.color,strokeWidth:b,strokeDasharray:`${n} ${y}`,strokeDashoffset:-r,strokeLinecap:"round"},`visual-${a}`)}),d.map((e,a)=>{const{currentArc:n,previousArcsLength:r}=x[a];return t("path",{d:C,fill:"transparent",stroke:"transparent",strokeWidth:b+4,strokeDasharray:`${n} ${y}`,strokeDashoffset:-r,strokeLinecap:"round",onMouseEnter:t=>g(t,H(e),e.label),onMouseMove:t=>f(t,H(e),e.label),onMouseLeave:_,className:"cursor-pointer",style:{pointerEvents:n>0?"stroke":"none"}},`hit-${a}`)}),t("text",{x:v+b/2,y:v+10-15,textAnchor:"middle",className:"text-base font-bold fill-[#29064D]",children:m.toLocaleString()}),t("text",{x:v+b/2,y:v+10+20,textAnchor:"middle",className:"text-sm fill-[#454545]",children:n})]})}),t("div",{className:"flex flex-wrap gap-4 mt-4 w-full max-w-xs justify-center",children:d.map((a,n)=>e("div",{className:"flex items-center justify-center gap-1",children:[t("div",{className:"w-[10px] h-[10px] rounded-full shadow-sm",style:{backgroundColor:a.color}}),t("span",{className:"text-sm font-medium text-[#454545]",children:a.label})]},`legend-${n}`))}),h.show&&t("div",{className:"absolute z-50 pointer-events-none",style:{left:`${h.x}px`,top:`${h.y}px`,transform:"translateX(-50%)"},children:e("div",{className:"px-3 py-2 rounded-lg text-gray-700 text-sm font-medium bg-white shadow-lg text-center min-w-[120px]",children:[h.content,t("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-l-transparent border-r-transparent border-t-white"})]})})]})},E="#7E22CE",U="#7C3AED",O="#DDD6FE",G="#F3F4F6",V="#B4AAFF",q="#8B5FBF",j="#A78BFA",Y="#642CFD",X="#131313",K="#5B5B5B",Z="#6B7280",Q="#059669",J="#7090B0",ee=(e,t=40)=>0===e?0:e>=1e4?t/1:e>5e3?t/2:e<5e3?t/3:t,te={width:1100,height:650,viewBox:"-30 0 1100 700",scale:1,fontSize:14,cardWidth:259,cardHeight:115,nodeWidth:5,main:{source:{x:430,y:320,width:300},target:{x:833,y:236,width:10,spacing:28}},source:{source:{x:75,y:50,width:40,spacing:50},target:{x:430,y:185,width:28,spacing:31}},cards:{cardX:830,cardY1:30,cardY2:160,padding:{top:24,right:20,bottom:24,left:20},gap:16,fontSize:{title:16,value:24,subtitle:14}},specialFlows:{flow5:{target:{x:833,y:384,width:5}}}},ae={width:800,height:600,viewBox:"-25 0 800 600",scale:.7,fontSize:12,cardWidth:220,cardHeight:90,nodeWidth:3.5,main:{source:{x:215,y:224,width:210},target:{x:583,y:165,width:7,spacing:20}},source:{source:{x:52,y:35,width:28,spacing:35},target:{x:215,y:129,width:20,spacing:22}},cards:{cardX:600,cardY1:25,cardY2:140,padding:{top:18,right:15,bottom:18,left:15},gap:12,fontSize:{title:14,value:20,subtitle:12}},specialFlows:{flow5:{target:{x:600,y:280,width:4}}}},ne={width:400,height:500,viewBox:"-20 0 400 500",scale:.4,fontSize:10,cardWidth:200,cardHeight:80,nodeWidth:2,main:{source:{x:120,y:160,width:150},target:{x:300,y:118,width:5,spacing:14}},source:{source:{x:30,y:25,width:20,spacing:25},target:{x:120,y:92,width:14,spacing:15}},cards:{cardX:250,cardY1:20,cardY2:120,padding:{top:12,right:10,bottom:12,left:10},gap:8,fontSize:{title:12,value:16,subtitle:10}},specialFlows:{flow5:{target:{x:280,y:200,width:3}}}},re={borderRadius:12,shadowOpacity:.12,defaultOpacity:.8,hoverOpacity:1,strokeWidth:.5,hoverStrokeWidth:2,transitionDuration:300,tooltipOffset:10};(e=>{const t=e.filter(e=>"main"===e.type),a=e.filter(e=>"source"===e.type),n=[];t.forEach((e,a)=>{const r=(t.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});r&&n.push({...e,source:r.source,target:r.target})}),a.forEach((e,t)=>{const r=(a.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});r&&n.push({...e,source:r.source,target:r.target})})})([{id:"flow1",type:"main",color:E,gradientColors:{start:V,end:E}},{id:"flow2",type:"main",color:U,gradientColors:{start:V,end:U}},{id:"flow3",type:"main",color:"#A78BFA",gradientColors:{start:V,end:E}},{id:"flow4",type:"main",color:O,gradientColors:{start:V,end:O}},{id:"flow5",type:"main",color:G,gradientColors:{start:V,end:G}},{id:"source1",type:"source",sourceLabel:"Source 1",sourceValue:15e3,color:q,gradientColors:{start:V,end:q}},{id:"source2",type:"source",sourceLabel:"Source 2",sourceValue:12e3,color:U,gradientColors:{start:V,end:U}},{id:"source3",type:"source",sourceLabel:"Source 3",sourceValue:8e3,color:j,gradientColors:{start:V,end:j}},{id:"source4",type:"source",sourceLabel:"Source 4",sourceValue:5e3,color:O,gradientColors:{start:V,end:O}},{id:"source5",type:"source",sourceLabel:"Source 5",sourceValue:2e3,color:G,gradientColors:{start:V,end:G}}]);const oe=({flows:e,curvature:a=.5,windowSize:n={width:0,height:0},breakpoints:o={mobile:768,tablet:1024},layoutOverrides:i={},totalDetectionsIcon:s={}})=>{const c=r(null);return l(()=>{if("undefined"==typeof window||!e||!Array.isArray(e)||0===e.length||!c.current)return;const t=u.select(c.current);t.selectAll("*").remove();const n=(e,t={})=>({dimensions:{...e.dimensions,...t.dimensions},nodePlacement:{...e.nodePlacement,...t.nodePlacement},specialFlows:t.specialFlows||e.specialFlows,cardConfig:{...e.cardConfig,...t.cardConfig}}),r="undefined"!=typeof window?window.innerWidth:1200,l=e=>{let t;switch(e){case"mobile":t=ne;break;case"tablet":t=ae;break;default:t=te}return{dimensions:{width:(()=>{switch(e){case"mobile":return Math.min(r-40,t.width);case"tablet":return Math.min(r-60,t.width);default:return t.width}})(),height:t.height,viewBox:t.viewBox,scale:t.scale,fontSize:t.fontSize,cardWidth:t.cardWidth,cardHeight:t.cardHeight},nodePlacement:{main:t.main,source:t.source},specialFlows:t.specialFlows,cardConfig:{cardX:t.cards.cardX,cardY1:t.cards.cardY1,cardY2:t.cards.cardY2,padding:t.cards.padding,gap:t.cards.gap,fontSize:t.cards.fontSize}}},{dimensions:d,nodePlacement:m,specialFlows:p,cardConfig:h}=(()=>{if("undefined"==typeof window){const e=l("desktop");return n(e,i.desktop)}const e=window.innerWidth,{mobile:t=768,tablet:a=1024}=o;let r,s={};e<=t?(r="mobile",s=i.mobile||{}):e<=a?(r="tablet",s=i.tablet||{}):(r="desktop",s=i.desktop||{});const c=l(r);return n(c,s)})(),{width:g,height:f,viewBox:_,scale:v,fontSize:b,cardWidth:y,cardHeight:w}=d,C=te.nodeWidth*v;t.attr("width",g).attr("height",f).attr("viewBox",_);const x=t.append("defs");x.append("filter").attr("id","cardShadow").attr("x","-50%").attr("y","-50%").attr("width","200%").attr("height","200%").append("feDropShadow").attr("dx",0).attr("dy",4).attr("stdDeviation",20).attr("flood-color",J).attr("flood-opacity",re.shadowOpacity);let k=u.select("body").select(".sankey-tooltip");k.empty()&&(k=u.select("body").append("div").attr("class","sankey-tooltip absolute bg-black bg-opacity-80 text-white px-3 py-2 rounded-md text-xs pointer-events-none z-50 shadow-lg border border-white border-opacity-20").style("opacity",0));const S=e.filter(e=>"main"===e.type).map((e,t)=>{const a=p[e.id];if(a)return{...e,source:{x:m.main.source.x,y:m.main.source.y,width:m.main.source.width},target:a.target};{const a=m.main;return{...e,source:{x:a.source.x,y:a.source.y,width:a.source.width},target:{x:a.target.x,y:a.target.y+t*a.target.spacing,width:a.target.width}}}}),P=e.filter(e=>"source"===e.type).map((e,t)=>{const a=m.source,n=(()=>{if("undefined"==typeof window)return[185,216,280,248,310,340,370,400,216,430,280,460];const e=window.innerWidth;return e<=768?[92,107,122,137,152,167,182,197,107,212,122,227]:e<=1024?[129,151,173,195,217,239,261,283,151,305,173,327]:[185,216,280,248,310,340,370,400,216,430,280,460]})(),r=ee(e.sourceValue||0,a.source.width),o=ee(e.sourceValue||0,a.target.width);return{...e,source:{x:a.source.x,y:a.source.y+t*a.source.spacing,width:r},target:{x:a.target.x,y:n[t]||a.target.y+t*a.target.spacing,width:o}}});S.forEach(e=>{const t=x.append("linearGradient").attr("id",`gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.gradientColors?.start||e.color;const a=e.gradientColors?.end||e.color||"#b6abff";t.append("stop").attr("offset","0%").attr("stop-color",V).attr("stop-opacity",1),t.append("stop").attr("offset","40%").attr("stop-color",V).attr("stop-opacity",1.8),t.append("stop").attr("offset","45%").attr("stop-color",V).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",a).attr("stop-opacity",1)}),P.forEach(e=>{const t=x.append("linearGradient").attr("id",`source-gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",V).attr("stop-opacity",1),t.append("stop").attr("offset","80%").attr("stop-color",V).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color","#BEE4FF").attr("stop-opacity",1)});const N=e=>{if(!e||!e.source||!e.target)return"";const{source:t,target:n}=e,r=a,o=n.x-t.x,l=t.x+o*r,i=n.x-o*r;return`\n M ${t.x} ${t.y-t.width/2}\n C ${l} ${t.y-t.width/2}, \n ${i} ${n.y-n.width/2}, \n ${n.x} ${n.y-n.width/2}\n `+`\n L ${n.x} ${n.y+n.width/2}\n C ${i} ${n.y+n.width/2}, \n ${l} ${t.y+t.width/2}, \n ${t.x} ${t.y+t.width/2}\n Z\n `};S.slice().reverse().forEach(e=>{e&&e.source&&e.target&&t.append("path").attr("d",N(e)).attr("fill",`url(#gradient-${e.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",re.strokeWidth).style("opacity","0.6").style("transition",`opacity ${re.transitionDuration}ms, stroke ${re.transitionDuration}ms`).style("cursor","pointer").attr("data-flow-id",e.id).style("opacity",re.defaultOpacity).on("mouseover",function(a,n){const r=S.find(t=>t.id===e.id);r&&(k.transition().duration(200).style("opacity",1),k.html(`\n <strong>Flow ${e.id}</strong><br/>\n Source: (${r.source.x}, ${r.source.y})<br/>\n Source Width: ${r.source.width}px<br/>\n Target: (${r.target.x}, ${r.target.y})<br/>\n Target Width: ${r.target.width}px<br/>\n Color: ${r.color}\n `).style("left",a.pageX+10+"px").style("top",a.pageY-10+"px"),t.selectAll("path[data-flow-id]").style("opacity",.3),u.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){k.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){k.transition().duration(500).style("opacity",0),t.selectAll("path[data-flow-id]").style("opacity",.8),u.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),P.forEach(e=>{e&&e.source&&e.target&&t.append("path").attr("d",N(e)).attr("fill",`url(#source-gradient-${e.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width","0.5").style("opacity","0.6").style("transition","opacity 0.3s, stroke 0.3s").style("cursor","pointer").attr("data-flow-id",e.id).style("opacity",.6).style("mix-blend-mode","multiply").on("mouseover",function(a,n){const r=P.find(t=>t.id===e.id);r&&(k.transition().duration(200).style("opacity",1),k.html(`\n <strong>${r.sourceLabel}</strong><br/>\n Value: ${r.sourceValue}<br/>\n Source: (${r.source.x}, ${r.source.y})<br/>\n Source Width: ${r.source.width}px<br/>\n Target: (${r.target.x}, ${r.target.y})<br/>\n Target Width: ${r.target.width}px\n `).style("left",a.pageX+10+"px").style("top",a.pageY-10+"px"),t.selectAll("path[data-flow-id]").style("opacity",.3),u.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){k.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){k.transition().duration(500).style("opacity",0),t.selectAll("path[data-flow-id]").style("opacity",.8),u.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),S.slice().reverse().forEach((e,a)=>{e&&e.source&&e.target&&t.append("rect").attr("x",e.target.x-C/2).attr("y",e.target.y-e.target.width/2).attr("width",C).attr("height",e.target.width).style("fill",Y).style("rx","3").style("ry","3")}),P.forEach((e,a)=>{if(!e||!e.source||!e.target)return;const n=(()=>{if("undefined"==typeof window)return 65;const e=window.innerWidth;return e<=768?25:e<=1024?45:65})();t.append("text").attr("x",n).attr("y",e.source.y-10).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","12px").style("fill",K).style("font-weight","500").style("font-size",`${b}px`).text(e.sourceLabel||""),t.append("text").attr("x",n).attr("y",e.source.y+8).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","11px").style("fill","black").style("font-weight","600").style("font-size",b-2+"px").text(void 0!==e.sourceValue?e.sourceValue:""),t.append("rect").attr("x",e.target.x-C/2).attr("y",e.target.y-e.target.width/2).attr("width",C-3).attr("height",e.target.width).style("fill",Y).style("rx","3").style("ry","3")});const{cardX:I,cardY1:L,cardY2:z,padding:A,gap:B,fontSize:D}=h;t.append("rect").attr("x",I).attr("y",L).attr("width",y).attr("height",w).attr("rx",12*v).attr("ry",12*v).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),t.append("text").attr("x",I+A.left).attr("y",L+A.top+8).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").style("font-size",`${D.title}px`).style("font-weight","500").text("Total Detections");const $=(()=>{const e=s.alignment||"left",t=s.position?.y||L+A.top+8;if(void 0!==s.position?.x)return{x:s.position.x,y:t};switch(e){case"left":const e=((e,t)=>e.length*t*.55)("Total Detections",D.title);return{x:I+A.left+e+15,y:t};case"center":return{x:I+y/2,y:t};default:return{x:I+y-A.right-16,y:t}}})(),T={icon:s.icon||"↗",color:s.color||"#8B5FBF",size:s.size||14,x:$.x,y:$.y,alignment:s.alignment||"right"},W=t.append("text").attr("x",T.x).attr("y",T.y).attr("text-anchor",(e=>{switch(e){case"left":return"start";case"center":return"middle";default:return"end"}})(T.alignment)).attr("dominant-baseline","middle").style("font-size",`${T.size}px`).style("fill",T.color).style("font-weight","600").style("cursor",s.onClick?"pointer":"default").text(T.icon);s.onClick&&W.on("click",s.onClick).on("mouseover",function(){u.select(this).style("opacity",.7)}).on("mouseout",function(){u.select(this).style("opacity",1)}),t.append("text").attr("x",I+A.left).attr("y",L+A.top+8+B+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").style("font-size","24px").style("font-weight","700").style("fill",X).text("9100"),t.append("text").attr("x",I+A.left+70).attr("y",L+A.top+8+B+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","12px").style("fill",Q).style("font-weight","500").style("font-size","14px").style("font-weight","500").style("fill",Q).text("▲ +10%"),t.append("text").attr("x",I+A.left).attr("y",L+A.top+8+B+16+B+12).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","11px").style("fill",Z).style("font-weight","400").style("font-size","14px").style("font-weight","400").style("fill",Z).text("In last 7 days"),t.append("rect").attr("x",I).attr("y",z).attr("width",259).attr("height",307).attr("rx",12).attr("ry",12).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),t.append("text").attr("x",I+A.left).attr("y",z+A.top+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("Mitigated Threats"),t.append("text").attr("x",I+259-A.right).attr("y",z+A.top+16).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("9000");[{label:"Critical",value:60,color:"#4C1D95"},{label:"High",value:300,color:"#7C3AED"},{label:"Medium",value:860,color:"#A78BFA"},{label:"Low",value:100,color:"#DDD6FE"}].forEach((e,a)=>{const n=z+A.top+16+B+20+28*a;t.append("text").attr("x",I+A.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",K).style("font-weight","500").text(e.label),t.append("text").attr("x",I+259-A.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",K).style("font-weight","500").text(e.value)});const F=z+A.top+16+B+20+112+B+20;t.append("text").attr("x",I+A.left).attr("y",F).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("Unmitigated Threats"),t.append("text").attr("x",I+259-A.right).attr("y",F).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("100");return[{label:"Informational",value:100,color:"#F3F4F6"}].forEach((e,a)=>{const n=F+B+16+28*a;t.append("text").attr("x",I+A.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",K).style("font-weight","500").text(e.label),t.append("text").attr("x",I+259-A.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",K).style("font-weight","500").text(e.value)}),()=>{"undefined"!=typeof window&&u.select("body").selectAll(".sankey-tooltip").remove()}},[e,a,c]),t("div",{className:"flex justify-center w-full",children:t("svg",{id:"sankey-chart",ref:c,className:"block mx-auto",style:{display:"block",margin:"0 auto"}})})};function le(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=le(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function ie(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=le(e))&&(n&&(n+=" "),n+=t);return n}var se={button:"Button-module_button__hvJpb",label:"Button-module_label__zSB3D",icon:"Button-module_icon__pfoz5",loaderIcon:"Button-module_loaderIcon__4WG9k",spin:"Button-module_spin__6Uwop",size_medium:"Button-module_size_medium__TGkrI",size_small:"Button-module_size_small__-vQKB",style_primary:"Button-module_style_primary__GfCKd",state_default:"Button-module_state_default__KGxJA",state_hover:"Button-module_state_hover__NNaw2",state_focus:"Button-module_state_focus__xudCD",state_disabled:"Button-module_state_disabled__6SakQ",state_loading:"Button-module_state_loading__ZhHO9",style_secondary:"Button-module_style_secondary__9kVUP",style_neutral:"Button-module_style_neutral__ZoLsO",style_subtle:"Button-module_style_subtle__oOeBv"},ce={icon:"Icon-module_icon__hJi-x",variant_default:"Icon-module_variant_default__4khrG",variant_hover:"Icon-module_variant_hover__Z-Zt4",variant_active:"Icon-module_variant_active__B7W-7",variant_disabled:"Icon-module_variant_disabled__u8BHu",variant_white:"Icon-module_variant_white__LRbrT"};const de=[{name:"app-window",label:"App Window",filePath:"icon/AppWindow.svg",variantCount:1},{name:"arrow-arc-left",label:"Arrow Arc Left",filePath:"icon/ArrowArcLeft.svg",variantCount:1},{name:"arrow-arc-right",label:"Arrow Arc Right",filePath:"icon/ArrowArcRight.svg",variantCount:1},{name:"arrow-bend-double-up-left",label:"Arrow Bend Double Up Left",filePath:"icon/ArrowBendDoubleUpLeft.svg",variantCount:1},{name:"arrow-bend-double-up-right",label:"Arrow Bend Double Up Right",filePath:"icon/ArrowBendDoubleUpRight.svg",variantCount:1},{name:"arrow-bend-down-left",label:"Arrow Bend Down Left",filePath:"icon/ArrowBendDownLeft.svg",variantCount:1},{name:"arrow-bend-down-right",label:"Arrow Bend Down Right",filePath:"icon/ArrowBendDownRight.svg",variantCount:1},{name:"arrow-bend-left-down",label:"Arrow Bend Left Down",filePath:"icon/ArrowBendLeftDown.svg",variantCount:1},{name:"arrow-bend-right-down",label:"Arrow Bend Right Down",filePath:"icon/ArrowBendRightDown.svg",variantCount:1},{name:"arrow-bend-right-up",label:"Arrow Bend Right Up",filePath:"icon/ArrowBendRightUp.svg",variantCount:1},{name:"arrow-bend-up-left",label:"Arrow Bend Up Left",filePath:"icon/ArrowBendUpLeft.svg",variantCount:1},{name:"arrow-bend-up-right",label:"Arrow Bend Up Right",filePath:"icon/ArrowBendUpRight.svg",variantCount:1},{name:"arrow-circle-down",label:"Arrow Circle Down",filePath:"icon/ArrowCircleDown.svg",variantCount:1},{name:"arrow-circle-down-left",label:"Arrow Circle Down Left",filePath:"icon/ArrowCircleDownLeft.svg",variantCount:1},{name:"arrow-circle-down-right",label:"Arrow Circle Down Right",filePath:"icon/ArrowCircleDownRight.svg",variantCount:1},{name:"arrow-circle-left",label:"Arrow Circle Left",filePath:"icon/ArrowCircleLeft.svg",variantCount:1},{name:"arrow-circle-right",label:"Arrow Circle Right",filePath:"icon/ArrowCircleRight.svg",variantCount:1},{name:"arrow-circle-up",label:"Arrow Circle Up",filePath:"icon/ArrowCircleUp.svg",variantCount:1},{name:"arrow-circle-up-left",label:"Arrow Circle Up Left",filePath:"icon/ArrowCircleUpLeft.svg",variantCount:1},{name:"arrow-circle-up-right",label:"Arrow Circle Up Right",filePath:"icon/ArrowCircleUpRight.svg",variantCount:1},{name:"arrow-clockwise",label:"Arrow Clockwise",filePath:"icon/ArrowClockwise.svg",variantCount:1},{name:"arrow-counter-clockwise",label:"Arrow Counter Clockwise",filePath:"icon/ArrowCounterClockwise.svg",variantCount:1},{name:"arrow-down",label:"Arrow Down",filePath:"icon/ArrowDown.svg",variantCount:1},{name:"arrow-down-left",label:"Arrow Down Left",filePath:"icon/ArrowDownLeft.svg",variantCount:1},{name:"arrow-down-right",label:"Arrow Down Right",filePath:"icon/ArrowDownRight.svg",variantCount:1},{name:"arrow-elbow-down-left",label:"Arrow Elbow Down Left",filePath:"icon/ArrowElbowDownLeft.svg",variantCount:1},{name:"arrow-elbow-down-right",label:"Arrow Elbow Down Right",filePath:"icon/ArrowElbowDownRight.svg",variantCount:1},{name:"arrow-elbow-left",label:"Arrow Elbow Left",filePath:"icon/ArrowElbowLeft.svg",variantCount:1},{name:"arrow-elbow-left-down",label:"Arrow Elbow Left Down",filePath:"icon/ArrowElbowLeftDown.svg",variantCount:1},{name:"arrow-elbow-left-up",label:"Arrow Elbow Left Up",filePath:"icon/ArrowElbowLeftUp.svg",variantCount:1},{name:"arrow-elbow-right",label:"Arrow Elbow Right",filePath:"icon/ArrowElbowRight.svg",variantCount:1},{name:"arrow-elbow-right-down",label:"Arrow Elbow Right Down",filePath:"icon/ArrowElbowRightDown.svg",variantCount:1},{name:"arrow-elbow-right-up",label:"Arrow Elbow Right Up",filePath:"icon/ArrowElbowRightUp.svg",variantCount:1},{name:"arrow-elbow-up-left",label:"Arrow Elbow Up Left",filePath:"icon/ArrowElbowUpLeft.svg",variantCount:1},{name:"arrow-elbow-up-right",label:"Arrow Elbow Up Right",filePath:"icon/ArrowElbowUpRight.svg",variantCount:1},{name:"arrow-left",label:"Arrow Left",filePath:"icon/ArrowLeft.svg",variantCount:1},{name:"arrow-line-down",label:"Arrow Line Down",filePath:"icon/ArrowLineDown.svg",variantCount:1},{name:"arrow-line-down-left",label:"Arrow Line Down Left",filePath:"icon/ArrowLineDownLeft.svg",variantCount:1},{name:"arrow-line-down-right",label:"Arrow Line Down Right",filePath:"icon/ArrowLineDownRight.svg",variantCount:1},{name:"arrow-line-left",label:"Arrow Line Left",filePath:"icon/ArrowLineLeft.svg",variantCount:1},{name:"arrow-line-right",label:"Arrow Line Right",filePath:"icon/ArrowLineRight.svg",variantCount:1},{name:"arrow-line-up",label:"Arrow Line Up",filePath:"icon/ArrowLineUp.svg",variantCount:1},{name:"arrow-line-up-left",label:"Arrow Line Up Left",filePath:"icon/ArrowLineUpLeft.svg",variantCount:1},{name:"arrow-line-up-right",label:"Arrow Line Up Right",filePath:"icon/ArrowLineUpRight.svg",variantCount:1},{name:"arrow-right",label:"Arrow Right",filePath:"icon/ArrowRight.svg",variantCount:1},{name:"arrow-square-down",label:"Arrow Square Down",filePath:"icon/ArrowSquareDown.svg",variantCount:1},{name:"arrow-square-down-left",label:"Arrow Square Down Left",filePath:"icon/ArrowSquareDownLeft.svg",variantCount:1},{name:"arrow-square-down-right",label:"Arrow Square Down Right",filePath:"icon/ArrowSquareDownRight.svg",variantCount:1},{name:"arrow-square-left",label:"Arrow Square Left",filePath:"icon/ArrowSquareLeft.svg",variantCount:1},{name:"arrow-square-right",label:"Arrow Square Right",filePath:"icon/ArrowSquareRight.svg",variantCount:1},{name:"arrow-square-up",label:"Arrow Square Up",filePath:"icon/ArrowSquareUp.svg",variantCount:1},{name:"arrow-square-up-left",label:"Arrow Square Up Left",filePath:"icon/ArrowSquareUpLeft.svg",variantCount:1},{name:"arrow-square-up-right",label:"Arrow Square Up Right",filePath:"icon/ArrowSquareUpRight.svg",variantCount:1},{name:"arrow-up",label:"Arrow Up",filePath:"icon/ArrowUp.svg",variantCount:1},{name:"arrow-up-left",label:"Arrow Up Left",filePath:"icon/ArrowUpLeft.svg",variantCount:1},{name:"arrow-up-right",label:"Arrow Up Right",filePath:"icon/ArrowUpRight.svg",variantCount:1},{name:"arrows-clockwise",label:"Arrows Clockwise",filePath:"icon/ArrowsClockwise.svg",variantCount:1},{name:"arrows-counter-clockwise",label:"Arrows Counter Clockwise",filePath:"icon/ArrowsCounterClockwise.svg",variantCount:1},{name:"arrows-down-up",label:"Arrows Down Up",filePath:"icon/ArrowsDownUp.svg",variantCount:1},{name:"arrows-horizontal",label:"Arrows Horizontal",filePath:"icon/ArrowsHorizontal.svg",variantCount:1},{name:"arrows-in",label:"Arrows In",filePath:"icon/ArrowsIn.svg",variantCount:1},{name:"arrows-in-cardinal",label:"Arrows In Cardinal",filePath:"icon/ArrowsInCardinal.svg",variantCount:1},{name:"arrows-in-line-horizontal",label:"Arrows In Line Horizontal",filePath:"icon/ArrowsInLineHorizontal.svg",variantCount:1},{name:"arrows-in-line-vertical",label:"Arrows In Line Vertical",filePath:"icon/ArrowsInLineVertical.svg",variantCount:1},{name:"arrows-in-simple",label:"Arrows In Simple",filePath:"icon/ArrowsInSimple.svg",variantCount:1},{name:"arrows-left-right",label:"Arrows Left Right",filePath:"icon/ArrowsLeftRight.svg",variantCount:1},{name:"arrows-out",label:"Arrows Out",filePath:"icon/ArrowsOut.svg",variantCount:1},{name:"arrows-out-cardinal",label:"Arrows Out Cardinal",filePath:"icon/ArrowsOutCardinal.svg",variantCount:1},{name:"arrows-out-line-horizontal",label:"Arrows Out Line Horizontal",filePath:"icon/ArrowsOutLineHorizontal.svg",variantCount:1},{name:"arrows-out-line-vertical",label:"Arrows Out Line Vertical",filePath:"icon/ArrowsOutLineVertical.svg",variantCount:1},{name:"arrows-out-simple",label:"Arrows Out Simple",filePath:"icon/ArrowsOutSimple.svg",variantCount:1},{name:"arrows-vertical",label:"Arrows Vertical",filePath:"icon/ArrowsVertical.svg",variantCount:1},{name:"article",label:"Article",filePath:"icon/Article.svg",variantCount:1},{name:"bell",label:"Bell",filePath:"icon/Bell.svg",variantCount:1},{name:"bell-ringing",label:"Bell Ringing",filePath:"icon/BellRinging.svg",variantCount:1},{name:"bell-simple",label:"Bell Simple",filePath:"icon/BellSimple.svg",variantCount:1},{name:"bell-simple-ringing",label:"Bell Simple Ringing",filePath:"icon/BellSimpleRinging.svg",variantCount:1},{name:"bell-simple-slash",label:"Bell Simple Slash",filePath:"icon/BellSimpleSlash.svg",variantCount:1},{name:"binoculars",label:"Binoculars",filePath:"icon/Binoculars.svg",variantCount:1},{name:"book",label:"Book",filePath:"icon/Book.svg",variantCount:1},{name:"book-open",label:"Book Open",filePath:"icon/BookOpen.svg",variantCount:1},{name:"book-open-text",label:"Book Open Text",filePath:"icon/BookOpenText.svg",variantCount:1},{name:"box-arrow-down",label:"Box Arrow Down",filePath:"icon/BoxArrowDown.svg",variantCount:1},{name:"box-arrow-up",label:"Box Arrow Up",filePath:"icon/BoxArrowUp.svg",variantCount:1},{name:"brackets-angle",label:"Brackets Angle",filePath:"icon/BracketsAngle.svg",variantCount:1},{name:"brackets-curly",label:"Brackets Curly",filePath:"icon/BracketsCurly.svg",variantCount:1},{name:"brackets-round",label:"Brackets Round",filePath:"icon/BracketsRound.svg",variantCount:1},{name:"brackets-square",label:"Brackets Square",filePath:"icon/BracketsSquare.svg",variantCount:1},{name:"browser",label:"Browser",filePath:"icon/Browser.svg",variantCount:1},{name:"browsers",label:"Browsers",filePath:"icon/Browsers.svg",variantCount:1},{name:"bug",label:"Bug",filePath:"icon/Bug.svg",variantCount:1},{name:"calendar-blank",label:"Calendar Blank",filePath:"icon/CalendarBlank.svg",variantCount:1},{name:"calendar-dots",label:"Calendar Dots",filePath:"icon/CalendarDots.svg",variantCount:1},{name:"cards",label:"Cards",filePath:"icon/Cards.svg",variantCount:1},{name:"cards-three",label:"Cards Three",filePath:"icon/CardsThree.svg",variantCount:1},{name:"caret-circle-double-down",label:"Caret Circle Double Down",filePath:"icon/CaretCircleDoubleDown.svg",variantCount:1},{name:"caret-circle-double-left",label:"Caret Circle Double Left",filePath:"icon/CaretCircleDoubleLeft.svg",variantCount:1},{name:"caret-circle-double-right",label:"Caret Circle Double Right",filePath:"icon/CaretCircleDoubleRight.svg",variantCount:1},{name:"caret-circle-double-up",label:"Caret Circle Double Up",filePath:"icon/CaretCircleDoubleUp.svg",variantCount:1},{name:"caret-circle-down",label:"Caret Circle Down",filePath:"icon/CaretCircleDown.svg",variantCount:1},{name:"caret-circle-left",label:"Caret Circle Left",filePath:"icon/CaretCircleLeft.svg",variantCount:1},{name:"caret-circle-right",label:"Caret Circle Right",filePath:"icon/CaretCircleRight.svg",variantCount:1},{name:"caret-circle-up",label:"Caret Circle Up",filePath:"icon/CaretCircleUp.svg",variantCount:1},{name:"caret-circle-up-down",label:"Caret Circle Up Down",filePath:"icon/CaretCircleUpDown.svg",variantCount:1},{name:"caret-down",label:"Caret Down",filePath:"icon/CaretDown.svg",variantCount:1},{name:"caret-left",label:"Caret Left",filePath:"icon/CaretLeft.svg",variantCount:1},{name:"caret-line-down",label:"Caret Line Down",filePath:"icon/CaretLineDown.svg",variantCount:1},{name:"caret-line-left",label:"Caret Line Left",filePath:"icon/CaretLineLeft.svg",variantCount:1},{name:"caret-line-right",label:"Caret Line Right",filePath:"icon/CaretLineRight.svg",variantCount:1},{name:"caret-line-up",label:"Caret Line Up",filePath:"icon/CaretLineUp.svg",variantCount:1},{name:"caret-right",label:"Caret Right",filePath:"icon/CaretRight.svg",variantCount:1},{name:"caret-up",label:"Caret Up",filePath:"icon/CaretUp.svg",variantCount:1},{name:"caret-up-down",label:"Caret Up Down",filePath:"icon/CaretUpDown.svg",variantCount:1},{name:"check",label:"Check",filePath:"icon/Check.svg",variantCount:1},{name:"check-circle",label:"Check Circle",filePath:"icon/CheckCircle.svg",variantCount:1},{name:"check-square",label:"Check Square",filePath:"icon/CheckSquare.svg",variantCount:1},{name:"check-square-offset",label:"Check Square Offset",filePath:"icon/CheckSquareOffset.svg",variantCount:1},{name:"checks",label:"Checks",filePath:"icon/Checks.svg",variantCount:1},{name:"circles-four",label:"Circles Four",filePath:"icon/CirclesFour.svg",variantCount:1},{name:"clipboard",label:"Clipboard",filePath:"icon/Clipboard.svg",variantCount:1},{name:"clipboard-text",label:"Clipboard Text",filePath:"icon/ClipboardText.svg",variantCount:1},{name:"cloud-arrow-down",label:"Cloud Arrow Down",filePath:"icon/CloudArrowDown.svg",variantCount:1},{name:"cloud-arrow-up",label:"Cloud Arrow Up",filePath:"icon/CloudArrowUp.svg",variantCount:1},{name:"cloud-check",label:"Cloud Check",filePath:"icon/CloudCheck.svg",variantCount:1},{name:"cloud-slash",label:"Cloud Slash",filePath:"icon/CloudSlash.svg",variantCount:1},{name:"cloud-warning",label:"Cloud Warning",filePath:"icon/CloudWarning.svg",variantCount:1},{name:"cloud-x",label:"Cloud X",filePath:"icon/CloudX.svg",variantCount:1},{name:"code",label:"Code",filePath:"icon/Code.svg",variantCount:1},{name:"code-block",label:"Code Block",filePath:"icon/CodeBlock.svg",variantCount:1},{name:"code-simple",label:"Code Simple",filePath:"icon/CodeSimple.svg",variantCount:1},{name:"columns",label:"Columns",filePath:"icon/Columns.svg",variantCount:1},{name:"columns-plus-left",label:"Columns Plus Left",filePath:"icon/ColumnsPlusLeft.svg",variantCount:1},{name:"columns-plus-right",label:"Columns Plus Right",filePath:"icon/ColumnsPlusRight.svg",variantCount:1},{name:"copy",label:"Copy",filePath:"icon/Copy.svg",variantCount:1},{name:"copy-simple",label:"Copy Simple",filePath:"icon/CopySimple.svg",variantCount:1},{name:"cpu",label:"Cpu",filePath:"icon/Cpu.svg",variantCount:1},{name:"credit-card",label:"Credit Card",filePath:"icon/CreditCard.svg",variantCount:1},{name:"cube",label:"Cube",filePath:"icon/Cube.svg",variantCount:1},{name:"cube-transparent",label:"Cube Transparent",filePath:"icon/CubeTransparent.svg",variantCount:1},{name:"database",label:"Database",filePath:"icon/Database.svg",variantCount:1},{name:"desktop",label:"Desktop",filePath:"icon/Desktop.svg",variantCount:1},{name:"desktop-tower",label:"Desktop Tower",filePath:"icon/DesktopTower.svg",variantCount:1},{name:"detective",label:"Detective",filePath:"icon/Detective.svg",variantCount:1},{name:"device-mobile-camera",label:"Device Mobile Camera",filePath:"icon/DeviceMobileCamera.svg",variantCount:1},{name:"device-tablet-camera",label:"Device Tablet Camera",filePath:"icon/DeviceTabletCamera.svg",variantCount:1},{name:"devices",label:"Devices",filePath:"icon/Devices.svg",variantCount:1},{name:"diamonds-four",label:"Diamonds Four",filePath:"icon/DiamondsFour.svg",variantCount:1},{name:"dot",label:"Dot",filePath:"icon/Dot.svg",variantCount:1},{name:"dot-outline",label:"Dot Outline",filePath:"icon/DotOutline.svg",variantCount:1},{name:"dots-nine",label:"Dots Nine",filePath:"icon/DotsNine.svg",variantCount:1},{name:"dots-six",label:"Dots Six",filePath:"icon/DotsSix.svg",variantCount:1},{name:"dots-six-vertical",label:"Dots Six Vertical",filePath:"icon/DotsSixVertical.svg",variantCount:1},{name:"dots-three",label:"Dots Three",filePath:"icon/DotsThree.svg",variantCount:1},{name:"dots-three-circle",label:"Dots Three Circle",filePath:"icon/DotsThreeCircle.svg",variantCount:1},{name:"dots-three-circle-vertical",label:"Dots Three Circle Vertical",filePath:"icon/DotsThreeCircleVertical.svg",variantCount:1},{name:"dots-three-outline",label:"Dots Three Outline",filePath:"icon/DotsThreeOutline.svg",variantCount:1},{name:"dots-three-outline-vertical",label:"Dots Three Outline Vertical",filePath:"icon/DotsThreeOutlineVertical.svg",variantCount:1},{name:"dots-three-vertical",label:"Dots Three Vertical",filePath:"icon/DotsThreeVertical.svg",variantCount:1},{name:"download-simple",label:"Download Simple",filePath:"icon/DownloadSimple.svg",variantCount:1},{name:"envelope",label:"Envelope",filePath:"icon/Envelope.svg",variantCount:1},{name:"envelope-simple",label:"Envelope Simple",filePath:"icon/EnvelopeSimple.svg",variantCount:1},{name:"exclamation-mark",label:"Exclamation Mark",filePath:"icon/ExclamationMark.svg",variantCount:1},{name:"export",label:"Export",filePath:"icon/Export.svg",variantCount:1},{name:"eye",label:"Eye",filePath:"icon/Eye.svg",variantCount:1},{name:"eye-closed",label:"Eye Closed",filePath:"icon/EyeClosed.svg",variantCount:1},{name:"eye-slash",label:"Eye Slash",filePath:"icon/EyeSlash.svg",variantCount:1},{name:"faders",label:"Faders",filePath:"icon/Faders.svg",variantCount:1},{name:"faders-horizontal",label:"Faders Horizontal",filePath:"icon/FadersHorizontal.svg",variantCount:1},{name:"file",label:"File",filePath:"icon/File.svg",variantCount:1},{name:"file-archive",label:"File Archive",filePath:"icon/FileArchive.svg",variantCount:1},{name:"file-arrow-down",label:"File Arrow Down",filePath:"icon/FileArrowDown.svg",variantCount:1},{name:"file-arrow-up",label:"File Arrow Up",filePath:"icon/FileArrowUp.svg",variantCount:1},{name:"file-dashed",label:"File Dashed",filePath:"icon/FileDashed.svg",variantCount:1},{name:"file-text",label:"File Text",filePath:"icon/FileText.svg",variantCount:1},{name:"files",label:"Files",filePath:"icon/Files.svg",variantCount:1},{name:"fingerprint",label:"Fingerprint",filePath:"icon/Fingerprint.svg",variantCount:1},{name:"fingerprint-simple",label:"Fingerprint Simple",filePath:"icon/FingerprintSimple.svg",variantCount:1},{name:"flag",label:"Flag",filePath:"icon/Flag.svg",variantCount:1},{name:"flag-pennant",label:"Flag Pennant",filePath:"icon/FlagPennant.svg",variantCount:1},{name:"floppy-disk",label:"Floppy Disk",filePath:"icon/FloppyDisk.svg",variantCount:1},{name:"folder",label:"Folder",filePath:"icon/Folder.svg",variantCount:1},{name:"folder-dashed",label:"Folder Dashed",filePath:"icon/FolderDashed.svg",variantCount:1},{name:"folder-open",label:"Folder Open",filePath:"icon/FolderOpen.svg",variantCount:1},{name:"folder-simple",label:"Folder Simple",filePath:"icon/FolderSimple.svg",variantCount:1},{name:"folder-simple-dashed",label:"Folder Simple Dashed",filePath:"icon/FolderSimpleDashed.svg",variantCount:1},{name:"folders",label:"Folders",filePath:"icon/Folders.svg",variantCount:1},{name:"funnel",label:"Funnel",filePath:"icon/Funnel.svg",variantCount:1},{name:"funnel-simple",label:"Funnel Simple",filePath:"icon/FunnelSimple.svg",variantCount:1},{name:"gear",label:"Gear",filePath:"icon/Gear.svg",variantCount:1},{name:"gear-six",label:"Gear Six",filePath:"icon/GearSix.svg",variantCount:1},{name:"git-branch",label:"Git Branch",filePath:"icon/GitBranch.svg",variantCount:1},{name:"git-merge",label:"Git Merge",filePath:"icon/GitMerge.svg",variantCount:1},{name:"git-pull-request",label:"Git Pull Request",filePath:"icon/GitPullRequest.svg",variantCount:1},{name:"globe",label:"Globe",filePath:"icon/Globe.svg",variantCount:1},{name:"globe-simple",label:"Globe Simple",filePath:"icon/GlobeSimple.svg",variantCount:1},{name:"green-tick",label:"Green Tick",filePath:"icon/GreenTick.svg",variantCount:1},{name:"grid-four",label:"Grid Four",filePath:"icon/GridFour.svg",variantCount:1},{name:"hammer",label:"Hammer",filePath:"icon/Hammer.svg",variantCount:1},{name:"hand",label:"Hand",filePath:"icon/Hand.svg",variantCount:1},{name:"hand-palm",label:"Hand Palm",filePath:"icon/HandPalm.svg",variantCount:1},{name:"hand-pointing",label:"Hand Pointing",filePath:"icon/HandPointing.svg",variantCount:1},{name:"house",label:"House",filePath:"icon/House.svg",variantCount:1},{name:"identification-badge",label:"Identification Badge",filePath:"icon/IdentificationBadge.svg",variantCount:1},{name:"identification-card",label:"Identification Card",filePath:"icon/IdentificationCard.svg",variantCount:1},{name:"info",label:"Info",filePath:"icon/Info.svg",variantCount:1},{name:"key",label:"Key",filePath:"icon/Key.svg",variantCount:1},{name:"ladder-simple",label:"Ladder Simple",filePath:"icon/LadderSimple.svg",variantCount:1},{name:"layout",label:"Layout",filePath:"icon/Layout.svg",variantCount:1},{name:"lifebuoy",label:"Lifebuoy",filePath:"icon/Lifebuoy.svg",variantCount:1},{name:"lightbulb",label:"Lightbulb",filePath:"icon/Lightbulb.svg",variantCount:1},{name:"lightning",label:"Lightning",filePath:"icon/Lightning.svg",variantCount:1},{name:"link",label:"Link",filePath:"icon/Link.svg",variantCount:1},{name:"link-break",label:"Link Break",filePath:"icon/LinkBreak.svg",variantCount:1},{name:"link-simple",label:"Link Simple",filePath:"icon/LinkSimple.svg",variantCount:1},{name:"link-simple-break",label:"Link Simple Break",filePath:"icon/LinkSimpleBreak.svg",variantCount:1},{name:"link-simple-horizontal",label:"Link Simple Horizontal",filePath:"icon/LinkSimpleHorizontal.svg",variantCount:1},{name:"link-simple-horizontal-break",label:"Link Simple Horizontal Break",filePath:"icon/LinkSimpleHorizontalBreak.svg",variantCount:1},{name:"list",label:"List",filePath:"icon/List.svg",variantCount:1},{name:"list-bullets",label:"List Bullets",filePath:"icon/ListBullets.svg",variantCount:1},{name:"list-checks",label:"List Checks",filePath:"icon/ListChecks.svg",variantCount:1},{name:"list-dashes",label:"List Dashes",filePath:"icon/ListDashes.svg",variantCount:1},{name:"list-heart",label:"List Heart",filePath:"icon/ListHeart.svg",variantCount:1},{name:"list-magnifying-glass",label:"List Magnifying Glass",filePath:"icon/ListMagnifyingGlass.svg",variantCount:1},{name:"list-numbers",label:"List Numbers",filePath:"icon/ListNumbers.svg",variantCount:1},{name:"list-plus",label:"List Plus",filePath:"icon/ListPlus.svg",variantCount:1},{name:"list-star",label:"List Star",filePath:"icon/ListStar.svg",variantCount:1},{name:"lock",label:"Lock",filePath:"icon/Lock.svg",variantCount:1},{name:"lock-key",label:"Lock Key",filePath:"icon/LockKey.svg",variantCount:1},{name:"lock-key-open",label:"Lock Key Open",filePath:"icon/LockKeyOpen.svg",variantCount:1},{name:"lock-open",label:"Lock Open",filePath:"icon/LockOpen.svg",variantCount:1},{name:"lock-simple",label:"Lock Simple",filePath:"icon/LockSimple.svg",variantCount:1},{name:"lock-simple-open",label:"Lock Simple Open",filePath:"icon/LockSimpleOpen.svg",variantCount:1},{name:"magnifying-glass",label:"Magnifying Glass",filePath:"icon/MagnifyingGlass.svg",variantCount:1},{name:"magnifying-glass-minus",label:"Magnifying Glass Minus",filePath:"icon/MagnifyingGlassMinus.svg",variantCount:1},{name:"magnifying-glass-plus",label:"Magnifying Glass Plus",filePath:"icon/MagnifyingGlassPlus.svg",variantCount:1},{name:"megaphone",label:"Megaphone",filePath:"icon/Megaphone.svg",variantCount:1},{name:"megaphone-simple",label:"Megaphone Simple",filePath:"icon/MegaphoneSimple.svg",variantCount:1},{name:"microphone",label:"Microphone",filePath:"icon/Microphone.svg",variantCount:1},{name:"navigation-arrow",label:"Navigation Arrow",filePath:"icon/NavigationArrow.svg",variantCount:1},{name:"network",label:"Network",filePath:"icon/Network.svg",variantCount:1},{name:"network-slash",label:"Network Slash",filePath:"icon/NetworkSlash.svg",variantCount:1},{name:"network-x",label:"Network X",filePath:"icon/NetworkX.svg",variantCount:1},{name:"newspaper",label:"Newspaper",filePath:"icon/Newspaper.svg",variantCount:1},{name:"newspaper-clipping",label:"Newspaper Clipping",filePath:"icon/NewspaperClipping.svg",variantCount:1},{name:"notches",label:"Notches",filePath:"icon/Notches.svg",variantCount:1},{name:"note",label:"Note",filePath:"icon/Note.svg",variantCount:1},{name:"note-blank",label:"Note Blank",filePath:"icon/NoteBlank.svg",variantCount:1},{name:"note-pencil",label:"Note Pencil",filePath:"icon/NotePencil.svg",variantCount:1},{name:"notification",label:"Notification",filePath:"icon/Notification.svg",variantCount:1},{name:"nut",label:"Nut",filePath:"icon/Nut.svg",variantCount:1},{name:"paperclip",label:"Paperclip",filePath:"icon/Paperclip.svg",variantCount:1},{name:"paperclip-horizontal",label:"Paperclip Horizontal",filePath:"icon/PaperclipHorizontal.svg",variantCount:1},{name:"password",label:"Password",filePath:"icon/Password.svg",variantCount:1},{name:"pencil-simple",label:"Pencil Simple",filePath:"icon/PencilSimple.svg",variantCount:1},{name:"pencil-simple-line",label:"Pencil Simple Line",filePath:"icon/PencilSimpleLine.svg",variantCount:1},{name:"person",label:"Person",filePath:"icon/Person.svg",variantCount:1},{name:"person-arms-spread",label:"Person Arms Spread",filePath:"icon/PersonArmsSpread.svg",variantCount:1},{name:"person-simple",label:"Person Simple",filePath:"icon/PersonSimple.svg",variantCount:1},{name:"placeholder",label:"Placeholder",filePath:"icon/Placeholder.svg",variantCount:1},{name:"plus",label:"Plus",filePath:"icon/Plus.svg",variantCount:1},{name:"plus-circle",label:"Plus Circle",filePath:"icon/PlusCircle.svg",variantCount:1},{name:"plus-square",label:"Plus Square",filePath:"icon/PlusSquare.svg",variantCount:1},{name:"prohibit",label:"Prohibit",filePath:"icon/Prohibit.svg",variantCount:1},{name:"prohibit-inset",label:"Prohibit Inset",filePath:"icon/ProhibitInset.svg",variantCount:1},{name:"pulse",label:"Pulse",filePath:"icon/Pulse.svg",variantCount:1},{name:"push-pin",label:"Push Pin",filePath:"icon/PushPin.svg",variantCount:1},{name:"push-pin-simple",label:"Push Pin Simple",filePath:"icon/PushPinSimple.svg",variantCount:1},{name:"push-pin-simple-slash",label:"Push Pin Simple Slash",filePath:"icon/PushPinSimpleSlash.svg",variantCount:1},{name:"push-pin-slash",label:"Push Pin Slash",filePath:"icon/PushPinSlash.svg",variantCount:1},{name:"puzzle-piece",label:"Puzzle Piece",filePath:"icon/PuzzlePiece.svg",variantCount:1},{name:"question",label:"Question",filePath:"icon/Question.svg",variantCount:1},{name:"question-mark",label:"Question Mark",filePath:"icon/QuestionMark.svg",variantCount:1},{name:"receipt",label:"Receipt",filePath:"icon/Receipt.svg",variantCount:1},{name:"receipt-x",label:"Receipt X",filePath:"icon/ReceiptX.svg",variantCount:1},{name:"rows-plus-bottom",label:"Rows Plus Bottom",filePath:"icon/RowsPlusBottom.svg",variantCount:1},{name:"rows-plus-top",label:"Rows Plus Top",filePath:"icon/RowsPlusTop.svg",variantCount:1},{name:"scroll",label:"Scroll",filePath:"icon/Scroll.svg",variantCount:1},{name:"seal",label:"Seal",filePath:"icon/Seal.svg",variantCount:1},{name:"seal-check",label:"Seal Check",filePath:"icon/SealCheck.svg",variantCount:1},{name:"share",label:"Share",filePath:"icon/Share.svg",variantCount:1},{name:"share-fat",label:"Share Fat",filePath:"icon/ShareFat.svg",variantCount:1},{name:"share-network",label:"Share Network",filePath:"icon/ShareNetwork.svg",variantCount:1},{name:"shield",label:"Shield",filePath:"icon/Shield.svg",variantCount:1},{name:"shield-check",label:"Shield Check",filePath:"icon/ShieldCheck.svg",variantCount:1},{name:"shield-checkered",label:"Shield Checkered",filePath:"icon/ShieldCheckered.svg",variantCount:1},{name:"shield-chevron",label:"Shield Chevron",filePath:"icon/ShieldChevron.svg",variantCount:1},{name:"shield-plus",label:"Shield Plus",filePath:"icon/ShieldPlus.svg",variantCount:1},{name:"shield-slash",label:"Shield Slash",filePath:"icon/ShieldSlash.svg",variantCount:1},{name:"shield-star",label:"Shield Star",filePath:"icon/ShieldStar.svg",variantCount:1},{name:"shield-warning",label:"Shield Warning",filePath:"icon/ShieldWarning.svg",variantCount:1},{name:"sidebar",label:"Sidebar",filePath:"icon/Sidebar.svg",variantCount:1},{name:"sidebar-simple",label:"Sidebar Simple",filePath:"icon/SidebarSimple.svg",variantCount:1},{name:"sign-in",label:"Sign In",filePath:"icon/SignIn.svg",variantCount:1},{name:"sign-out",label:"Sign Out",filePath:"icon/SignOut.svg",variantCount:1},{name:"siren",label:"Siren",filePath:"icon/Siren.svg",variantCount:1},{name:"sliders",label:"Sliders",filePath:"icon/Sliders.svg",variantCount:1},{name:"sliders-horizontal",label:"Sliders Horizontal",filePath:"icon/SlidersHorizontal.svg",variantCount:1},{name:"sort-ascending",label:"Sort Ascending",filePath:"icon/SortAscending.svg",variantCount:1},{name:"sort-descending",label:"Sort Descending",filePath:"icon/SortDescending.svg",variantCount:1},{name:"spinner",label:"Spinner",filePath:"icon/Spinner.svg",variantCount:1},{name:"spinner-gap",label:"Spinner Gap",filePath:"icon/SpinnerGap.svg",variantCount:1},{name:"split-horizontal",label:"Split Horizontal",filePath:"icon/SplitHorizontal.svg",variantCount:1},{name:"split-vertical",label:"Split Vertical",filePath:"icon/SplitVertical.svg",variantCount:1},{name:"square-half",label:"Square Half",filePath:"icon/SquareHalf.svg",variantCount:1},{name:"square-half-bottom",label:"Square Half Bottom",filePath:"icon/SquareHalfBottom.svg",variantCount:1},{name:"square-split-horizontal",label:"Square Split Horizontal",filePath:"icon/SquareSplitHorizontal.svg",variantCount:1},{name:"square-split-vertical",label:"Square Split Vertical",filePath:"icon/SquareSplitVertical.svg",variantCount:1},{name:"squares-four",label:"Squares Four",filePath:"icon/SquaresFour.svg",variantCount:1},{name:"stack",label:"Stack",filePath:"icon/Stack.svg",variantCount:1},{name:"stack-minus",label:"Stack Minus",filePath:"icon/StackMinus.svg",variantCount:1},{name:"stack-plus",label:"Stack Plus",filePath:"icon/StackPlus.svg",variantCount:1},{name:"stack-simple",label:"Stack Simple",filePath:"icon/StackSimple.svg",variantCount:1},{name:"star",label:"Star",filePath:"icon/Star.svg",variantCount:1},{name:"table",label:"Table",filePath:"icon/Table.svg",variantCount:1},{name:"tag",label:"Tag",filePath:"icon/Tag.svg",variantCount:1},{name:"tag-chevron",label:"Tag Chevron",filePath:"icon/TagChevron.svg",variantCount:1},{name:"tag-simple",label:"Tag Simple",filePath:"icon/TagSimple.svg",variantCount:1},{name:"target",label:"Target",filePath:"icon/Target.svg",variantCount:1},{name:"terminal",label:"Terminal",filePath:"icon/Terminal.svg",variantCount:1},{name:"terminal-window",label:"Terminal Window",filePath:"icon/TerminalWindow.svg",variantCount:1},{name:"text-columns",label:"Text Columns",filePath:"icon/TextColumns.svg",variantCount:1},{name:"ticket",label:"Ticket",filePath:"icon/Ticket.svg",variantCount:1},{name:"trash",label:"Trash",filePath:"icon/Trash.svg",variantCount:1},{name:"trash-simple",label:"Trash Simple",filePath:"icon/TrashSimple.svg",variantCount:1},{name:"tray",label:"Tray",filePath:"icon/Tray.svg",variantCount:1},{name:"tray-arrow-down",label:"Tray Arrow Down",filePath:"icon/TrayArrowDown.svg",variantCount:1},{name:"tray-arrow-up",label:"Tray Arrow Up",filePath:"icon/TrayArrowUp.svg",variantCount:1},{name:"tree-structure",label:"Tree Structure",filePath:"icon/TreeStructure.svg",variantCount:1},{name:"upload-simple",label:"Upload Simple",filePath:"icon/UploadSimple.svg",variantCount:1},{name:"user",label:"User",filePath:"icon/User.svg",variantCount:1},{name:"user-check",label:"User Check",filePath:"icon/UserCheck.svg",variantCount:1},{name:"user-circle",label:"User Circle",filePath:"icon/UserCircle.svg",variantCount:1},{name:"user-circle-check",label:"User Circle Check",filePath:"icon/UserCircleCheck.svg",variantCount:1},{name:"user-circle-dashed",label:"User Circle Dashed",filePath:"icon/UserCircleDashed.svg",variantCount:1},{name:"user-circle-gear",label:"User Circle Gear",filePath:"icon/UserCircleGear.svg",variantCount:1},{name:"user-circle-minus",label:"User Circle Minus",filePath:"icon/UserCircleMinus.svg",variantCount:1},{name:"user-circle-plus",label:"User Circle Plus",filePath:"icon/UserCirclePlus.svg",variantCount:1},{name:"user-focus",label:"User Focus",filePath:"icon/UserFocus.svg",variantCount:1},{name:"user-gear",label:"User Gear",filePath:"icon/UserGear.svg",variantCount:1},{name:"user-list",label:"User List",filePath:"icon/UserList.svg",variantCount:1},{name:"user-minus",label:"User Minus",filePath:"icon/UserMinus.svg",variantCount:1},{name:"user-plus",label:"User Plus",filePath:"icon/UserPlus.svg",variantCount:1},{name:"user-rectangle",label:"User Rectangle",filePath:"icon/UserRectangle.svg",variantCount:1},{name:"user-sound",label:"User Sound",filePath:"icon/UserSound.svg",variantCount:1},{name:"user-square",label:"User Square",filePath:"icon/UserSquare.svg",variantCount:1},{name:"user-switch",label:"User Switch",filePath:"icon/UserSwitch.svg",variantCount:1},{name:"users",label:"Users",filePath:"icon/Users.svg",variantCount:1},{name:"users-four",label:"Users Four",filePath:"icon/UsersFour.svg",variantCount:1},{name:"users-three",label:"Users Three",filePath:"icon/UsersThree.svg",variantCount:1},{name:"vault",label:"Vault",filePath:"icon/Vault.svg",variantCount:1},{name:"warning",label:"Warning",filePath:"icon/Warning.svg",variantCount:1},{name:"warning-circle",label:"Warning Circle",filePath:"icon/WarningCircle.svg",variantCount:1},{name:"warning-diamond",label:"Warning Diamond",filePath:"icon/WarningDiamond.svg",variantCount:1},{name:"warning-octagon",label:"Warning Octagon",filePath:"icon/WarningOctagon.svg",variantCount:1},{name:"wrench",label:"Wrench",filePath:"icon/Wrench.svg",variantCount:1},{name:"x",label:"X",filePath:"icon/X.svg",variantCount:1},{name:"xcircle",label:"XCircle",filePath:"icon/XCircle.svg",variantCount:1},{name:"xsquare",label:"XSquare",filePath:"icon/XSquare.svg",variantCount:1},{name:"calendar",label:"Calendar",filePath:"icon/calendar.svg",variantCount:1}],ue=({name:e,size:a="medium",variant:n="default",className:r="",style:o={},alt:l="",...i})=>{const s=e?.replace(/\.svg$/,"").toLowerCase(),c=(()=>{if("number"==typeof a)return`${a}px`;const e={small:"12px",medium:"16px",large:"24px"};return e[a]||e.medium})(),d=(()=>{const t=de.find(t=>t.name===s||t.name===e);return`https://cdn.jsdelivr.net/npm/squarex-ui-component-lib@latest/public/icon/${t?t.filePath.split("/").pop():`${e}.svg`}`})(),u=l||`${s} icon`,m=[ce.icon,ce[`variant_${n}`],r].filter(Boolean).join(" "),p={width:c,height:c,...o};return t("img",{src:d,alt:u,className:m,style:p,...i})},me=({className:e})=>t("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:t("path",{d:"M7.00033 1.16699L8.80283 4.81866L12.8337 5.40783L9.91699 8.24866L10.6053 12.262L7.00033 10.3662L3.39533 12.262L4.08366 8.24866L1.16699 5.40783L5.19783 4.81866L7.00033 1.16699Z",stroke:"#36204C",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}),pe=({className:a})=>e("svg",{className:a,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),he=({label:a="Button",showLeadingIcon:n=!0,showTrailingIcon:r=!1,leadingIcon:o,trailingIcon:l,leftIcon:i,rightIcon:s,variant:c,buttonStyle:d="primary",state:u="default",size:m="medium",onClick:p,disabled:h,loading:g,className:f="",children:_,style:v,...b})=>{const y="object"==typeof v?v:void 0,w=g?"loading":h?"disabled":u,C=h||g||"disabled"===w,x=ie(se.button,se[`style_${c||("string"==typeof v?v:null)||d||"primary"}`],se[`state_${w}`],se[`size_${"md"===m?"medium":"sm"===m?"small":m}`],f),k="Button"===a&&_?_:a;return e("button",{className:x,onClick:p,disabled:C,"aria-disabled":C,style:y,...b,children:[(()=>{if(!n)return null;const e=o||i;return e?"string"==typeof e?t(ue,{name:e,className:se.icon}):e:"loading"===w?t(pe,{className:se.loaderIcon}):t(me,{className:se.icon})})(),t("span",{className:se.label,children:k}),(()=>{if(!r)return null;const e=l||s;return e?"string"==typeof e?t(ue,{name:e,className:se.icon}):e:t(me,{className:se.icon})})()]})};var ge={button:"ButtonDanger-module_button__AOtwP",label:"ButtonDanger-module_label__b5KXy",icon:"ButtonDanger-module_icon__cFsc0",loaderIcon:"ButtonDanger-module_loaderIcon__0Grd9",spin:"ButtonDanger-module_spin__dWDkA",size_medium:"ButtonDanger-module_size_medium__rSyZy",size_small:"ButtonDanger-module_size_small__uAFGW",style_primary:"ButtonDanger-module_style_primary__iUyC1",state_default:"ButtonDanger-module_state_default__Y5C0B",state_hover:"ButtonDanger-module_state_hover__sATSe",state_focus:"ButtonDanger-module_state_focus__gFvzD",state_disabled:"ButtonDanger-module_state_disabled__UT767",state_loading:"ButtonDanger-module_state_loading__-C8Aq",style_neutral:"ButtonDanger-module_style_neutral__VZ0rO",style_subtle:"ButtonDanger-module_style_subtle__PTOK-"};const fe=({label:a="Button",showLeadingIcon:n=!0,showTrailingIcon:r=!1,leadingIcon:o,trailingIcon:l,state:i="default",size:s="medium",onClick:c,disabled:d,loading:u,className:m="",style:p,...h})=>{const g="string"==typeof p?p:"primary",f="object"==typeof p?p:void 0,_=u?"loading":d?"disabled":i,v=d||u||"disabled"===_,b=[ge.button,ge[`style_${g}`],ge[`state_${_}`],ge[`size_${s}`],m].filter(Boolean).join(" ");return e("button",{className:b,onClick:c,disabled:v,"aria-disabled":v,style:f,...h,children:[n?o||t(ue,"loading"===_?{name:"spinner",size:16,className:ge.loaderIcon}:{name:"star",size:14,className:ge.icon}):null,t("span",{className:ge.label,children:a}),r?l||t(ue,{name:"star",size:14,className:ge.icon}):null]})};var _e={avatar:"Avatar-module_avatar__iHwNB",size_large:"Avatar-module_size_large__lysYk",size_medium:"Avatar-module_size_medium__JL1rC",size_small:"Avatar-module_size_small__F3gWo",shape_circle:"Avatar-module_shape_circle__YEmYW",shape_square:"Avatar-module_shape_square__nLoa1",initialsBg:"Avatar-module_initialsBg__54pKJ",image:"Avatar-module_image__-oxFc",initials:"Avatar-module_initials__DzwqM"};const ve=({src:e,initials:a,alt:n,size:r="medium",shape:o="circle",className:l="",...i})=>{const s=[_e.avatar,_e[`size_${r}`],_e[`shape_${o}`],!e&&a?_e.initialsBg:"",l].filter(Boolean).join(" ");return t("div",{className:s,...i,children:e?t("img",{src:e,alt:n||a||"avatar",className:_e.image}):t("span",{className:_e.initials,children:a})})};var be="AvatarBlock-module_block__z9pJK",ye="AvatarBlock-module_content__VJTSG",we="AvatarBlock-module_title__RHlA5",Ce="AvatarBlock-module_description__S5j8w";const xe=({avatarProps:a,title:n,description:r,className:o="",...l})=>e("div",{className:`${be} ${o}`,...l,children:[t(ve,{...a}),e("div",{className:ye,children:[t("div",{className:we,children:n}),r&&t("div",{className:Ce,children:r})]})]});var ke={group:"AvatarGroup-module_group__RHPlO",layout_spaced:"AvatarGroup-module_layout_spaced__W-Y0g",layout_overlap:"AvatarGroup-module_layout_overlap__HiXLw",groupItem:"AvatarGroup-module_groupItem__t9sWh"};const Se=({avatars:a=[],max:n=3,layout:r="overlap",size:o="medium",className:l="",style:i,...s})=>{const c=a.slice(0,n),d=a.length-n,u=[ke.group,ke[`layout_${r}`],l].filter(Boolean).join(" ");return e("div",{className:u,style:i,...s,children:[c.map((e,n)=>t(ve,{...e,size:o,className:ke.groupItem,style:{zIndex:a.length-n}},n)),d>0&&t(ve,{initials:`+${d}`,size:o,className:ke.groupItem,style:{zIndex:0}})]})};var Pe="BackgroundGradient-module_container__h-ECQ",Ne="BackgroundGradient-module_gradientBlobsImage__HSoZE";const Ie=({className:e="",mode:a="Light Mode BG",...n})=>t("div",{className:`${Pe} ${e}`,"data-mode":a,...n,children:t("img",{className:Ne,src:`/bg/Mode=${a}.svg`,alt:`${a} Blobs`})});var Le={badge:"Badge-module_badge__IxlOE",size_small:"Badge-module_size_small__blSq3",size_medium:"Badge-module_size_medium__hlh0Y",size_large:"Badge-module_size_large__EzYlM",type_active:"Badge-module_type_active__CPh-H",type_inactive:"Badge-module_type_inactive__xwWXA",type_default:"Badge-module_type_default__5N9w7"};const ze=({label:e="Badge",type:a="default",size:n="medium",className:r="",children:o,...l})=>{const i=(e=>{if(!e)return"default";const t=e.toLowerCase();return"active"===t?"active":"inactive"===t?"inactive":"default"})(a),s=(e=>{if(!e)return"medium";const t=e.toString().toLowerCase();return"small"===t||"sm"===t?"small":"medium"===t||"md"===t?"medium":"large"===t||"lg"===t?"large":"medium"})(n),c=[Le.badge,Le[`type_${i}`],Le[`size_${s}`],r].filter(Boolean).join(" ");return t("span",{className:c,...l,children:o||e})};var Ae={breadcrumbContainer:"Breadcrumb-module_breadcrumbContainer__uBvx5",itemContent:"Breadcrumb-module_itemContent__EuvYW",itemIcon:"Breadcrumb-module_itemIcon__mJSYP",itemTitle:"Breadcrumb-module_itemTitle__g8smt",separator:"Breadcrumb-module_separator__VeZVd",separatorIcon:"Breadcrumb-module_separatorIcon__y19QZ"};const Be=({items:a=[],separator:n,className:r="",...o})=>{const l=t("span",{className:Ae.separator,children:t(ue,{name:"caret-right",size:14,className:Ae.separatorIcon})}),i=void 0!==n?t("span",{className:Ae.separator,children:n}):l,s=a.map(a=>({...a,title:e("span",{className:Ae.itemContent,children:[a.icon&&t(ue,{name:a.icon,size:14,className:Ae.itemIcon}),t("span",{className:Ae.itemTitle,children:a.title})]})}));return t("div",{className:`${Ae.breadcrumbContainer} ${r}`,children:t(m,{items:s,separator:i,className:Ae.antBreadcrumb,...o})})};var De={container:"Categories-module_container__U5Jrk",searchSection:"Categories-module_searchSection__OtRY7",searchInput:"Categories-module_searchInput__er5yT",searchIcon:"Categories-module_searchIcon__z6tia",searchIconImage:"Categories-module_searchIconImage__pGeZj",searchPlaceholder:"Categories-module_searchPlaceholder__ZmolO",searchValue:"Categories-module_searchValue__21-r9",realSearchInput:"Categories-module_realSearchInput__w4p-O",chipListContainer:"Categories-module_chipListContainer__pacAl",chipListRow:"Categories-module_chipListRow__h7kfy",chip:"Categories-module_chip__QYPTC",chipLabel:"Categories-module_chipLabel__TA2tB",chipRemove:"Categories-module_chipRemove__AZnYD",chipIcon:"Categories-module_chipIcon__jI19r",listsContainer:"Categories-module_listsContainer__qLgWk",categoryList:"Categories-module_categoryList__-hGax",categoryTitle:"Categories-module_categoryTitle__IojeE",categoryTitleText:"Categories-module_categoryTitleText__THhiO",chevronIcon:"Categories-module_chevronIcon__WSZAt",chevronImg:"Categories-module_chevronImg__u0z0y",chevronUp:"Categories-module_chevronUp__3IMMr",categoryItems:"Categories-module_categoryItems__rkjFa",categoryItemWrapper:"Categories-module_categoryItemWrapper__nSWPf",actionsContainer:"Categories-module_actionsContainer__E-9bc",cancelButton:"Categories-module_cancelButton__qSB8B",cancelButtonText:"Categories-module_cancelButtonText__iKhcE",applyButton:"Categories-module_applyButton__f9weo",applyButtonText:"Categories-module_applyButtonText__p7k-s"},$e={itemRow:"ItemRow-module_itemRow__rSDeO",infoIcon:"ItemRow-module_infoIcon__Ipwr-",infoIconImg:"ItemRow-module_infoIconImg__70lMY",content:"ItemRow-module_content__Jpfhn",iconWrapper:"ItemRow-module_iconWrapper__tyWxd",fileIconImg:"ItemRow-module_fileIconImg__UtL3V",starIconImg:"ItemRow-module_starIconImg__N5DF0",text:"ItemRow-module_text__2UBMv",label:"ItemRow-module_label__tf9KQ",body:"ItemRow-module_body__nwnZc",checkboxField:"ItemRow-module_checkboxField__fBewb",radioField:"ItemRow-module_radioField__opyC6",type_default:"ItemRow-module_type_default__bHpMa",type_hover:"ItemRow-module_type_hover__96wT9",type_selected:"ItemRow-module_type_selected__Pr3sl",type_disabled:"ItemRow-module_type_disabled__RLuUQ",type_danger:"ItemRow-module_type_danger__4i7oG"},Te={checkboxContainer:"Checkbox-module_checkboxContainer__t5ToR",checkboxWrapper:"Checkbox-module_checkboxWrapper__MQ4h7",checkboxInput:"Checkbox-module_checkboxInput__6emi6",checkbox:"Checkbox-module_checkbox__u-vF9",size_small:"Checkbox-module_size_small__y2One",size_medium:"Checkbox-module_size_medium__tyI8A",size_large:"Checkbox-module_size_large__Dxd5a",checkboxChecked:"Checkbox-module_checkboxChecked__9S3nh",checkboxCheck:"Checkbox-module_checkboxCheck__eC-aU",checkboxIndeterminateState:"Checkbox-module_checkboxIndeterminateState__KlYdz",checkboxIndeterminate:"Checkbox-module_checkboxIndeterminate__KWSZX",indeterminateBar:"Checkbox-module_indeterminateBar__ubEie",checkIconWrapper:"Checkbox-module_checkIconWrapper__5zoMJ",checkIconInner:"Checkbox-module_checkIconInner__-31sZ",checkIcon:"Checkbox-module_checkIcon__ZZUJy",state_default:"Checkbox-module_state_default__07N9s",state_hover:"Checkbox-module_state_hover__-aNwA",state_focus:"Checkbox-module_state_focus__iyLdL",state_pressed:"Checkbox-module_state_pressed__IXWhV",checkboxDisabled:"Checkbox-module_checkboxDisabled__JuvUf",labelContainer:"Checkbox-module_labelContainer__nGOHI",label:"Checkbox-module_label__riL34",description:"Checkbox-module_description__G4kS0"};const We=({checked:a=!1,indeterminate:n=!1,disabled:r=!1,state:o="default",size:l="medium",label:i="",description:s="",onChange:c,className:d="",id:u,name:m,value:p,...h})=>{const g=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(o),f="number"==typeof l,_=f?"custom":l.toLowerCase(),v=r||"disabled"===o,b=[Te.checkboxContainer,d].filter(Boolean).join(" "),y=[Te.checkbox,Te[`size_${_}`],a&&Te.checkboxChecked,!a&&n&&Te.checkboxIndeterminateState,v&&Te.checkboxDisabled,!v&&Te[`state_${g}`]].filter(Boolean).join(" "),w=u||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:b,children:[e("div",{className:Te.checkboxWrapper,children:[t("input",{type:"checkbox",id:w,name:m,value:p,checked:a,disabled:v,onChange:e=>{!v&&c&&c(e)},className:Te.checkboxInput,"aria-checked":n?"mixed":a,"aria-disabled":v,...h}),e("label",{htmlFor:w,className:y,style:f?{width:`${l}px`,height:`${l}px`}:{},children:[a&&t("div",{className:Te.checkboxCheck,children:t("div",{className:Te.checkIconWrapper,children:t("div",{className:Te.checkIconInner,children:t(ue,{name:"Check",size:12,className:Te.checkIcon})})})}),!a&&n&&t("div",{className:Te.checkboxIndeterminate,children:t("div",{className:Te.indeterminateBar})})]})]}),(i||s)&&e("div",{className:Te.labelContainer,children:[i&&t("label",{htmlFor:w,className:Te.label,children:i}),s&&t("div",{className:Te.description,children:s})]})]})};var Fe={radioContainer:"Radio-module_radioContainer__nD7Aj",radioWrapper:"Radio-module_radioWrapper__8nQVu",radioInput:"Radio-module_radioInput__GtQt3",radio:"Radio-module_radio__fnkSK",size_small:"Radio-module_size_small__k7iT3",size_medium:"Radio-module_size_medium__KpT8h",size_large:"Radio-module_size_large__81Vmf",radioChecked:"Radio-module_radioChecked__BaL8g",radioDot:"Radio-module_radioDot__RilTO",state_default:"Radio-module_state_default__zFRxN",radioDisabled:"Radio-module_radioDisabled__i08xK",state_hover:"Radio-module_state_hover__h6W-X",state_focus:"Radio-module_state_focus__8UGb9",state_pressed:"Radio-module_state_pressed__k6gEW",label:"Radio-module_label__rS27E"};const Re=({checked:a=!1,disabled:n=!1,state:r="default",size:o="medium",label:l="",name:i,value:s,onChange:c,className:d="",id:u,...m})=>{const p=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(r),h="number"==typeof o,g=h?"custom":o.toLowerCase(),f=n||"disabled"===r,_=[Fe.radioContainer,d].filter(Boolean).join(" "),v=[Fe.radio,Fe[`size_${g}`],a&&Fe.radioChecked,f&&Fe.radioDisabled,!f&&Fe[`state_${p}`]].filter(Boolean).join(" "),b=u||`radio-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:_,children:[e("div",{className:Fe.radioWrapper,children:[t("input",{type:"radio",id:b,name:i,value:s,checked:a,disabled:f,onChange:e=>{!f&&c&&c(e)},className:Fe.radioInput,"aria-checked":a,"aria-disabled":f,...m}),t("label",{htmlFor:b,className:v,style:h?{width:`${o}px`,height:`${o}px`}:{},children:a&&t("div",{className:Fe.radioDot})})]}),l&&t("label",{htmlFor:b,className:Fe.label,children:l})]})},He=({showLeftIcon:a=!0,hasCheckbox:n=!1,hasRadio:r=!1,checked:o=!1,chooseLeftIcon:l=null,label:i="Item",showBody:s=!1,body:c="Body",showInfo:d=!1,showRightIcon:u=!1,chooseRightIcon:m=null,type:p="Default",onClick:h,className:g="",...f})=>{const _=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"disabled"===t?"disabled":"selected"===t?"selected":"danger"===t?"danger":"default"})(p),v="disabled"===_,b=v?"div":"button",y=[$e.itemRow,$e[`type_${_}`],g].filter(Boolean).join(" "),w=o||"selected"===_;return e(b,{className:y,onClick:h,disabled:v,type:"button"===b?"button":void 0,...f,children:[d&&t("div",{className:$e.infoIcon,children:t(ue,{name:"Info",size:14,className:$e.infoIconImg})}),e("div",{className:$e.content,children:[a&&t("div",{className:$e.iconWrapper,children:l||t(ue,{name:"File",size:14,className:$e.fileIconImg})}),e("div",{className:$e.text,children:[t("p",{className:$e.label,children:i}),s&&t("p",{className:$e.body,children:c})]}),u&&t("div",{className:$e.iconWrapper,children:m||t(ue,{name:"Star",size:14,className:$e.starIconImg})})]}),n&&t("div",{className:$e.checkboxField,children:t(We,{checked:w,disabled:v,size:16,readOnly:!h})}),r&&t("div",{className:$e.radioField,children:t(Re,{checked:w,disabled:v,size:16,readOnly:!h})})]})},Me=({variant:a="single",chips:n=[],categories:r=[],onChipRemove:i,onCategoryToggle:c,onItemClick:d,onCancel:u,onApply:m,cancelLabel:p="Cancel",applyLabel:h="Apply",className:g="",...f})=>{const[_,v]=o(""),[b,y]=o(r.reduce((e,t,a)=>(e[a]=void 0===t.expanded||t.expanded,e),{})),w=s(()=>{if(!_)return r;const e=_.toLowerCase();return r.map(t=>{if((t.title||"").toLowerCase().includes(e))return t;const a=(t.items||[]).filter(t=>(t.label||"").toLowerCase().includes(e));return a.length>0?{...t,items:a}:null}).filter(e=>null!==e)},[r,_]);l(()=>{if(_){const e=w.reduce((e,t,a)=>(e[a]=!0,e),{});y(e)}},[_,w.length]);const C=(n,r)=>{const o=!!_||!1!==b[r];return e("div",{className:De.categoryList,children:[e("button",{type:"button",className:De.categoryTitle,onClick:()=>{return e=r,y(t=>({...t,[e]:!t[e]})),void(c&&c(e,!b[e]));var e},children:[t("p",{className:De.categoryTitleText,children:n.title||"Category"}),t("div",{className:De.chevronIcon,children:t(ue,{name:"CaretDown",size:14,className:`${De.chevronImg} ${o?De.chevronUp:""}`})})]}),o&&t("div",{className:De.categoryItems,children:(n.items||[]).map((e,n)=>t("div",{className:De.categoryItemWrapper,children:t(He,{label:e.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===a,hasRadio:"multiple"!==a,checked:e.checked||!1,type:e.type||"default",onClick:()=>{d&&d(e,r)}})},e.id||n))})]},r)},x=[De.container,De[`variant_${a}`],g].filter(Boolean).join(" ");return e("div",{className:x,...f,children:[e("div",{className:De.searchSection,children:[e("div",{className:De.searchInput,children:[t("div",{className:De.searchIcon,children:t(ue,{name:"MagnifyingGlass",size:16,className:De.searchIconImage})}),t("input",{type:"text",className:De.realSearchInput,placeholder:"Search",value:_,onChange:e=>{v(e.target.value)}})]}),(()=>{if(!n||0===n.length)return null;const a=n.slice(0,5),r=n.length-5;let o=null;return r>0&&(o={isMore:!0,label:`+${r}`}),e("div",{className:De.chipListContainer,children:[a.map((a,n)=>e("div",{className:De.chip,children:[t("p",{className:De.chipLabel,children:a.label||"Label"}),t("button",{type:"button",className:De.chipRemove,onClick:e=>{e.stopPropagation(),i&&i(a)},"aria-label":"Remove chip",children:t(ue,{name:"X",size:14,className:De.chipIcon})})]},n)),o&&t("div",{className:De.chip,children:t("p",{className:De.chipLabel,children:o.label})})]})})()]}),t("div",{className:De.listsContainer,children:w.map((e,t)=>C(e,t))}),e("div",{className:De.actionsContainer,children:[t("button",{type:"button",className:De.cancelButton,onClick:u,children:t("p",{className:De.cancelButtonText,children:p})}),t("button",{type:"button",className:De.applyButton,onClick:m,children:t("p",{className:De.applyButtonText,children:h})})]})]})};var Ee={cell:"Cell-module_cell__wdOpC",label:"Cell-module_label__1JEFV",defaultContent:"Cell-module_defaultContent__Vv8Xy",leadingIcon:"Cell-module_leadingIcon__zmwIZ",trailingIcon:"Cell-module_trailingIcon__6DTXX",avatarContent:"Cell-module_avatarContent__moY52",avatar:"Cell-module_avatar__gUaMQ",avatarPlaceholder:"Cell-module_avatarPlaceholder__RK0QA",statusContent:"Cell-module_statusContent__izq8j",statusDot:"Cell-module_statusDot__5-hPy",status_active:"Cell-module_status_active__yHLS8",status_online:"Cell-module_status_online__oCYlx",status_inactive:"Cell-module_status_inactive__6Jdoj",status_offline:"Cell-module_status_offline__ls8W2",status_pending:"Cell-module_status_pending__ID-H1",socialContent:"Cell-module_socialContent__YuoLv",socialIcon:"Cell-module_socialIcon__ME-Dx",actionsContent:"Cell-module_actionsContent__V-4Lc",actionButton:"Cell-module_actionButton__AJYz-",checkboxContent:"Cell-module_checkboxContent__F2jOW",toggleContent:"Cell-module_toggleContent__0JbeA",userCountContent:"Cell-module_userCountContent__lehFs",userIconWrapper:"Cell-module_userIconWrapper__qqZpf",count:"Cell-module_count__N1yFG",badge:"Cell-module_badge__7KrfZ",chipWrapper:"Cell-module_chipWrapper__oM3Bp"},Ue={toggleContainer:"Toggle-module_toggleContainer__lTsof",toggleWrapper:"Toggle-module_toggleWrapper__jWaBk",toggleInput:"Toggle-module_toggleInput__srGOt",toggle:"Toggle-module_toggle__zjgHl",toggleThumb:"Toggle-module_toggleThumb__hjTqE",size_small:"Toggle-module_size_small__xxt4m",size_medium:"Toggle-module_size_medium__mZRV2",size_large:"Toggle-module_size_large__dYf3X",toggleChecked:"Toggle-module_toggleChecked__ZM7BJ",state_default:"Toggle-module_state_default__Sk1P2",toggleDisabled:"Toggle-module_toggleDisabled__I8Z63",state_hover:"Toggle-module_state_hover__-Hx6l",state_focus:"Toggle-module_state_focus__E5i0q",state_pressed:"Toggle-module_state_pressed__U2veO",label:"Toggle-module_label__CzLo8"};const Oe=({checked:a=!1,disabled:n=!1,state:r="default",size:o="medium",label:l="",onChange:i,className:s="",id:c,name:d,value:u,...m})=>{const p=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(r),h=o.toLowerCase(),g=n||"disabled"===r,f=[Ue.toggleContainer,s].filter(Boolean).join(" "),_=[Ue.toggle,Ue[`size_${h}`],a&&Ue.toggleChecked,g&&Ue.toggleDisabled,!g&&Ue[`state_${p}`]].filter(Boolean).join(" "),v=c||`toggle-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:f,children:[e("div",{className:Ue.toggleWrapper,children:[t("input",{type:"checkbox",id:v,name:d,value:u,checked:a,disabled:g,onChange:e=>{!g&&i&&i(e)},className:Ue.toggleInput,"aria-checked":a,"aria-disabled":g,role:"switch",...m}),t("label",{htmlFor:v,className:_,children:t("span",{className:Ue.toggleThumb})})]}),l&&t("label",{htmlFor:v,className:Ue.label,children:l})]})},Ge=({variant:n="default",label:r="",icon:o=null,badge:l=null,chip:i=null,statusIndicator:s=null,avatar:c=null,status:d=null,checked:u=!1,onChange:m,count:p=null,actions:h=[],className:g="",...f})=>t("div",{className:`${Ee.cell} ${Ee[`variant_${n}`]} ${g}`,...f,children:(()=>{switch(n){case"avatar":return e("div",{className:Ee.avatarContent,children:[c?t("img",{src:c,alt:r,className:Ee.avatar}):t("div",{className:Ee.avatarPlaceholder,children:t(ue,{name:"User",size:16})}),t("span",{className:Ee.label,children:r}),i?t("div",{className:Ee.chipWrapper,children:i}):l?t("span",{className:Ee.badge,children:l}):null]});case"status":return e("div",{className:Ee.statusContent,children:[s||t("div",{className:`${Ee.statusDot} ${Ee[`status_${d?.toLowerCase()}`]}`}),t("span",{className:Ee.label,children:r}),i?t("div",{className:Ee.chipWrapper,children:i}):l?t("span",{className:Ee.badge,children:l}):null]});case"social":return e("div",{className:Ee.socialContent,children:[o&&t(ue,{name:o,size:16,className:Ee.socialIcon}),t("span",{className:Ee.label,children:r})]});case"actions":return t("div",{className:Ee.actionsContent,children:h.map((e,a)=>t("button",{className:Ee.actionButton,onClick:e.onClick,title:e.label,type:"button",children:t(ue,{name:e.icon,size:14})},a))});case"checkbox":return e("div",{className:Ee.checkboxContent,children:[t(We,{checked:u,onChange:m,size:"medium"}),t("span",{className:Ee.label,children:r})]});case"toggle":return t("div",{className:Ee.toggleContent,children:t(Oe,{checked:u,onChange:m,size:"medium"})});case"userCount":return t("div",{className:Ee.userCountContent,children:e("div",{className:Ee.userIconWrapper,children:[t(ue,{name:"User",size:14}),t("span",{className:Ee.count,children:p})]})});default:return t("div",{className:Ee.defaultContent,children:!i||r||o?e(a,{children:[o&&t(ue,{name:o,size:16,className:Ee.leadingIcon}),t("span",{className:Ee.label,children:r}),i?t("div",{className:Ee.chipWrapper,children:i}):l?t("span",{className:Ee.badge,children:l}):null,!i&&t(ue,{name:"Globe",size:14,className:Ee.trailingIcon})]}):t("div",{className:Ee.chipWrapper,children:i})})}})()});var Ve="CellHeader-module_cellHeader__9mlaW",qe="CellHeader-module_sortable__bpx5y",je="CellHeader-module_content__6-yV0",Ye="CellHeader-module_checkboxWrapper__ah1PJ",Xe="CellHeader-module_sortIcon__6rgJk",Ke="CellHeader-module_label__nRBcj";const Ze=({label:a="",sortable:n=!1,sortOrder:r=null,hasCheckbox:o=!1,checked:l=!1,onSort:i,onCheckboxChange:s,className:c="",...d})=>t("div",{className:`${Ve} ${n?qe:""} ${c}`,onClick:n?i:void 0,...d,children:e("div",{className:je,children:[o&&t("div",{className:Ye,onClick:e=>e.stopPropagation(),children:t(We,{checked:l,onChange:s,size:"small"})}),n&&t("div",{className:Xe,"aria-label":`Sort ${r||"none"}`,children:t(ue,{name:"asc"===r?"SortAscending":"desc"===r?"SortDescending":"CaretUpDown",size:14})}),t("span",{className:Ke,children:a})]})}),Qe=({children:a,variant:n="default",padding:r="md",hover:o=!1,clickable:l=!1,header:i,footer:s,onClick:c,className:d,style:u,animate:m=!0,animationDuration:p=300,animationDelay:h=0,animationEasing:g="ease-in-out",...f})=>{const _=ie("bg-white rounded-lg transition-all duration-200",{default:"shadow-sm border border-gray-200",elevated:"shadow-lg border border-gray-100",outlined:"border-2 border-gray-200",filled:"bg-gray-50 border border-gray-200"}[n],{xs:"p-2",sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[r],o&&"hover:shadow-md hover:-translate-y-0.5",l&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",m&&"animate-fade-in",d),v={...u,...m&&{animationDuration:`${p}ms`,animationDelay:`${h}ms`,animationTimingFunction:g}};return e("div",{className:_,style:v,onClick:e=>{l&&c&&c(e)},...f,children:[i&&t("div",{className:"mb-4 pb-4 border-b border-gray-200",children:i}),t("div",{className:"flex-1",children:a}),s&&t("div",{className:"mt-4 pt-4 border-t border-gray-200",children:s})]})};var Je={chip:"Chip-module_chip__QDbLV",label:"Chip-module_label__jkrIf",iconWrapper:"Chip-module_iconWrapper__NWuWA",icon:"Chip-module_icon__Tkzl1",size_small:"Chip-module_size_small__FfLgY",size_medium:"Chip-module_size_medium__lOEvU",state_default:"Chip-module_state_default__Qcr59",state_hover:"Chip-module_state_hover__Fh-CV",state_pressed:"Chip-module_state_pressed__icmBU",state_active:"Chip-module_state_active__JenYe"};const et=({label:a="Label",showRightIcon:n=!0,showLeftIcon:r=!0,chooseLeftIcon:o=null,chooseRightIcon:l=null,state:i="default",size:s="medium",onRemove:c,onClick:d,className:u="",...m})=>{const p=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"default"})(i),h=(s||"medium").toLowerCase(),g="small"===h?12:14,f=[Je.chip,Je[`size_${h}`],Je[`state_${p}`],u].filter(Boolean).join(" ");return e(d?"button":"div",{className:f,onClick:d,type:d?"button":void 0,...m,children:[r?o||t("div",{className:Je.iconWrapper,children:t(ue,{name:"x",size:g,className:Je.icon,variant:"active"===p?"white":"default"})}):null,t("span",{className:Je.label,children:a}),n?l||t("div",{className:Je.iconWrapper,children:t(ue,{name:"x",size:g,className:Je.icon,variant:"active"===p?"white":"default",onClick:e=>{e.stopPropagation(),c&&c()}})}):null]})};var tt={container:"ChipList-module_container__3H1e7",row:"ChipList-module_row__961Z3",layout_single:"ChipList-module_layout_single__t5ANI",layout_double:"ChipList-module_layout_double__5ihDG",layout_doublerow:"ChipList-module_layout_doublerow__qSwD-"};const at=({chips:e=[],layout:a="single",onChipRemove:n,className:r="",...o})=>{const l=e.length>0?e:[{label:"Label",id:"1"},{label:"Label",id:"2"},{label:"Label",id:"3"}],i=a.toLowerCase(),s=(()=>{if("double"===i||"doublerow"===i){const e=Math.ceil(l.length/2);return[l.slice(0,e),l.slice(e)]}return[l]})(),c=[tt.container,tt[`layout_${i}`],r].filter(Boolean).join(" ");return t("div",{className:c,...o,children:s.map((e,a)=>t("div",{className:tt.row,children:e.map(e=>t(et,{label:e.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{n&&n(e)}},e.id||e.label))},a))})};var nt={container:"Dropdown-module_container__ErjTf",type_medium:"Dropdown-module_type_medium__-9PP9",type_small:"Dropdown-module_type_small__RBIcw",label:"Dropdown-module_label__r-lFx",description:"Dropdown-module_description__o8wRo",dropdownWrapper:"Dropdown-module_dropdownWrapper__UL4uW",fieldWrapper:"Dropdown-module_fieldWrapper__tDsIq",dropdownWrapper_type_medium:"Dropdown-module_dropdownWrapper_type_medium__fvECq",dropdownWrapper_type_small:"Dropdown-module_dropdownWrapper_type_small__Giu8S",dropdownInner:"Dropdown-module_dropdownInner__-VN-B",placeholder:"Dropdown-module_placeholder__ZqFux",value:"Dropdown-module_value__pqCLT",chevronWrapper:"Dropdown-module_chevronWrapper__zvdRH",chevronIcon:"Dropdown-module_chevronIcon__iBeCV",chipList:"Dropdown-module_chipList__s1lVm",chip:"Dropdown-module_chip__7rR17",chipLabel:"Dropdown-module_chipLabel__-ksTf",chipRemove:"Dropdown-module_chipRemove__yQ6wd",chipIcon:"Dropdown-module_chipIcon__SMMHv",error:"Dropdown-module_error__5Ptsm",dropdownWrapper_type_medium_state_default:"Dropdown-module_dropdownWrapper_type_medium_state_default__5bpre",dropdownWrapper_type_small_state_default:"Dropdown-module_dropdownWrapper_type_small_state_default__skJVV",dropdownWrapper_type_medium_state_hover:"Dropdown-module_dropdownWrapper_type_medium_state_hover__44jce",dropdownWrapper_type_small_state_hover:"Dropdown-module_dropdownWrapper_type_small_state_hover__7hn5F",dropdownWrapper_type_medium_state_selected:"Dropdown-module_dropdownWrapper_type_medium_state_selected__OC89t",dropdownWrapper_type_small_state_selected:"Dropdown-module_dropdownWrapper_type_small_state_selected__BIPst",dropdownWrapper_type_medium_state_focused:"Dropdown-module_dropdownWrapper_type_medium_state_focused__9BNJD",dropdownWrapper_type_small_state_focused:"Dropdown-module_dropdownWrapper_type_small_state_focused__Eq0nK",dropdownWrapper_type_medium_state_error:"Dropdown-module_dropdownWrapper_type_medium_state_error__YgZfn",dropdownWrapper_type_small_state_error:"Dropdown-module_dropdownWrapper_type_small_state_error__40JGM",dropdownWrapper_type_medium_state_disabled:"Dropdown-module_dropdownWrapper_type_medium_state_disabled__hibT2",dropdownWrapper_type_small_state_disabled:"Dropdown-module_dropdownWrapper_type_small_state_disabled__siGnC"};const rt=({value:a="",description:n="",label:o="",error:i="",hasLabel:s=!0,hasDescription:c=!0,hasError:d=!1,hasChips:u=!1,state:m="default",type:p="medium",placeholder:h="Value",chips:g=[],onChange:f,onFocus:_,onBlur:v,onClick:b,onOutsideClick:y,disabled:w,className:C="",children:x,...k})=>{const S=r(null);l(()=>{if(!y)return;const e=e=>{S.current&&!S.current.contains(e.target)&&y()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[y]);const P=(p||"medium").toLowerCase(),N=w?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"selected"===t?"selected":"focused"===t?"focused":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(m),I=[nt.container,nt[`type_${P}`],C].filter(Boolean).join(" "),L=[nt.dropdownWrapper,nt[`dropdownWrapper_type_${P}`],nt[`dropdownWrapper_state_${N}`],nt[`dropdownWrapper_type_${P}_state_${N}`]].filter(Boolean).join(" "),z=w||"disabled"===N,A=e("div",{className:nt.fieldWrapper,children:[t("button",{type:"button",className:L,onClick:b||_,disabled:z,"aria-disabled":z,...k,children:e("div",{className:nt.dropdownInner,children:[u&&0!==g.length?t("div",{className:nt.chipList,children:g.map((a,n)=>e("div",{className:nt.chip,children:[t("span",{className:nt.chipLabel,children:a.label||"Label"}),a.onRemove&&t("button",{type:"button",className:nt.chipRemove,onClick:e=>{e.stopPropagation(),a.onRemove&&a.onRemove()},"aria-label":"Remove chip",children:t(ue,{name:"x",size:10,className:nt.chipIcon})})]},n))}):null,t("span",a?{className:nt.value,children:a}:{className:nt.placeholder,children:h}),t("div",{className:nt.chevronWrapper,children:t(ue,{name:x?"caret-up":"caret-down",size:12,className:nt.chevronIcon})})]})}),x]});return e("div",{className:I,ref:S,children:[s&&o&&t("p",{className:nt.label,children:o}),c&&n&&t("p",{className:nt.description,children:n}),A,d&&i&&t("p",{className:nt.error,children:i})]})};var ot={dropdownNestedColumn:"DropdownNestedColumn-module_dropdownNestedColumn__-cag7",titleFrame:"DropdownNestedColumn-module_titleFrame__-offj",titleAndCta:"DropdownNestedColumn-module_titleAndCta__4y7z4",titleText:"DropdownNestedColumn-module_titleText__G5mny",clearAllButton:"DropdownNestedColumn-module_clearAllButton__jEO-i",clearAllText:"DropdownNestedColumn-module_clearAllText__WR6Lj",chevronButton:"DropdownNestedColumn-module_chevronButton__pJED1",chevronContainer:"DropdownNestedColumn-module_chevronContainer__KBjay",chevronIcon:"DropdownNestedColumn-module_chevronIcon__B-Vxx",dropdownWithSearch:"DropdownNestedColumn-module_dropdownWithSearch__pLH5k",dropdownContent:"DropdownNestedColumn-module_dropdownContent__yxwX7",chipListSection:"DropdownNestedColumn-module_chipListSection__hz0gx",chipGrid:"DropdownNestedColumn-module_chipGrid__7wFEN",noChips:"DropdownNestedColumn-module_noChips__wktQg",moreChipsChip:"DropdownNestedColumn-module_moreChipsChip__SVtTL",searchInputSection:"DropdownNestedColumn-module_searchInputSection__QRUBF",searchInput:"DropdownNestedColumn-module_searchInput__xvb2F",searchIcon:"DropdownNestedColumn-module_searchIcon__aASpj",searchField:"DropdownNestedColumn-module_searchField__UP-pl",itemsList:"DropdownNestedColumn-module_itemsList__V41r6",itemsContainer:"DropdownNestedColumn-module_itemsContainer__2IXay",noItems:"DropdownNestedColumn-module_noItems__oiWmw"};const lt=({title:a="Title",expanded:n=!0,chips:r=[],items:l=[],onClearAll:i,onChipRemove:s,onItemClick:c,className:d="",...u})=>{const[m,p]=o(n),[h,g]=o(""),f=[ot.dropdownNestedColumn,d].filter(Boolean).join(" "),_=e("div",{className:ot.titleAndCta,children:[t("p",{className:ot.titleText,children:a}),t("button",{className:ot.clearAllButton,onClick:e=>{e.stopPropagation(),i&&i()},type:"button",children:t("p",{className:ot.clearAllText,children:"Clear all"})})]}),v=l.filter(e=>e.label.toLowerCase().includes(h.toLowerCase()));return e("div",{className:f,...u,children:[e("div",{className:ot.titleFrame,children:[_,t("button",{className:ot.chevronButton,onClick:()=>{p(!m)},type:"button",children:t("div",{className:ot.chevronContainer,children:t("div",{className:ot.chevronIcon,style:{transform:m?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:t(ue,{name:"caret-up",size:16})})})})]}),m&&t("div",{className:ot.dropdownWithSearch,children:e("div",{className:ot.dropdownContent,children:[t("div",{className:ot.chipListSection,children:r.length>0?e("div",{className:ot.chipGrid,children:[r.slice(0,5).map(e=>t(et,{label:e.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{s&&s(e)}},e.id||e.label)),r.length>5&&t(et,{label:"+"+(r.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:ot.moreChipsChip})]}):t("div",{className:ot.noChips,children:"No items selected"})}),t("div",{className:ot.searchInputSection,children:e("div",{className:ot.searchInput,children:[t(ue,{name:"magnifying-glass",size:16,className:ot.searchIcon}),t("input",{type:"text",className:ot.searchField,placeholder:"Search",value:h,onChange:e=>g(e.target.value)})]})}),t("div",{className:ot.itemsList,children:t("div",{className:ot.itemsContainer,children:v.length>0?v.map((e,a)=>t(He,{label:e.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:e.checked||!1,type:e.type||"Default",onClick:()=>{c&&c(e)}},e.id||a)):t("div",{className:ot.noItems,children:"No items found"})})})]})})]})};var it={dropdownNested:"DropdownNested-module_dropdownNested__S7idI",columns:"DropdownNested-module_columns__VciGu",column:"DropdownNested-module_column__clf4o",ctas:"DropdownNested-module_ctas__MWS3w",cancelButton:"DropdownNested-module_cancelButton__c-8mc",applyButton:"DropdownNested-module_applyButton__AvCpG"};const st=({leftColumn:a={title:"Select a Member",chips:[],items:[]},rightColumn:n={title:"Select a Group",chips:[],items:[]},onLeftClearAll:r,onRightClearAll:o,onLeftChipRemove:l,onRightChipRemove:i,onLeftItemClick:s,onRightItemClick:c,onCancel:d,onApply:u,className:m="",...p})=>{const h=a.chips,g=n.chips,f=a.items,_=n.items,v=[it.dropdownNested,m].filter(Boolean).join(" ");return e("div",{className:v,...p,children:[e("div",{className:it.columns,children:[t("div",{className:it.column,children:t(lt,{title:a.title,expanded:!0,chips:h,items:f,onClearAll:r,onChipRemove:l,onItemClick:s})}),t("div",{className:it.column,children:t(lt,{title:n.title,expanded:!0,chips:g,items:_,onClearAll:o,onChipRemove:i,onItemClick:c})})]}),e("div",{className:it.ctas,children:[t(fe,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:d,className:it.cancelButton}),t(he,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:u,className:it.applyButton})]})]})};var ct={iconButton:"IconButton-module_iconButton__RX7bN",icon:"IconButton-module_icon__1mvRD",loaderIcon:"IconButton-module_loaderIcon__AB3CY",spin:"IconButton-module_spin__dIR-z",size_medium:"IconButton-module_size_medium__vDKx5",size_small:"IconButton-module_size_small__6QIGb",style_primary:"IconButton-module_style_primary__iuggd",state_default:"IconButton-module_state_default__CRDoC",state_hover:"IconButton-module_state_hover__gREn9",state_focus:"IconButton-module_state_focus__rPK-E",state_disabled:"IconButton-module_state_disabled__LFZlJ",state_loading:"IconButton-module_state_loading__jB6U7",style_secondary:"IconButton-module_style_secondary__3em9O",style_neutral:"IconButton-module_style_neutral__hzeSD",style_subtle:"IconButton-module_style_subtle__QK4-l"};const dt=({icon:e,state:a="default",size:n="medium",onClick:r,disabled:o,loading:l,className:i="",style:s,...c})=>{const d="string"==typeof s?s:"primary",u="object"==typeof s?s:void 0,m=l?"loading":o?"disabled":a,p=o||l||"disabled"===m,h=[ct.iconButton,ct[`style_${d}`],ct[`state_${m}`],ct[`size_${n}`],i].filter(Boolean).join(" ");return t("button",{className:h,onClick:r,disabled:p,"aria-disabled":p,style:u,...c,children:e?"string"==typeof e?t(ue,{name:e,className:ct.icon,size:14}):e:t(ue,"loading"===m?{name:"spinner",className:ct.loaderIcon,size:16}:{name:"star",className:ct.icon,size:14})})};var ut={container:"InputField-module_container__YBVq-",label:"InputField-module_label__tCfs4",description:"InputField-module_description__2ool6",inputWrapper:"InputField-module_inputWrapper__fFheW",inputInner:"InputField-module_inputInner__lrVlq",placeholder:"InputField-module_placeholder__sYV0q",value:"InputField-module_value__kkyaI",input:"InputField-module_input__0CiVP",cursor:"InputField-module_cursor__wYxH-",blink:"InputField-module_blink__9nrJt",iconWrapper:"InputField-module_iconWrapper__MvnUT",icon:"InputField-module_icon__kKszD",chipList:"InputField-module_chipList__6KBVj",chip:"InputField-module_chip__-BZp6",chipLabel:"InputField-module_chipLabel__IJyWs",chipRemove:"InputField-module_chipRemove__-3sq7",chipIcon:"InputField-module_chipIcon__jtgnb",error:"InputField-module_error__dqR5d",inputWrapper_state_default:"InputField-module_inputWrapper_state_default__VUT2A",inputWrapper_state_hover:"InputField-module_inputWrapper_state_hover__bLjjB",inputWrapper_state_focused:"InputField-module_inputWrapper_state_focused__DIMKO",inputWrapper_state_typing:"InputField-module_inputWrapper_state_typing__tpZTB",inputWrapper_state_filled:"InputField-module_inputWrapper_state_filled__60Ebj",inputWrapper_state_filledHover:"InputField-module_inputWrapper_state_filledHover__iMDJJ",inputWrapper_state_error:"InputField-module_inputWrapper_state_error__OUoqh",inputWrapper_state_disabled:"InputField-module_inputWrapper_state_disabled__BHozK"};const mt=({value:a,description:n="",label:r="",error:l="",hasLabel:i=!0,hasDescription:s=!0,hasError:c=!1,hasChips:d=!1,showIcon:u=!1,chooseIcon:m=null,state:p="default",placeholder:h="Value",chips:g=[],onChange:f,onFocus:_,onBlur:v,disabled:b,className:y="",id:w,...C})=>{const[x,k]=o(""),[S,P]=o(!1),N=void 0!==a?a:x,I=b?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(p),L=[ut.container,y].filter(Boolean).join(" "),z=[ut.input,ut[`state_${I}`]].filter(Boolean).join(" "),A=[ut.inputWrapper,ut[`inputWrapper_state_${I}`]].filter(Boolean).join(" "),B=b||"disabled"===I,D=w||`input-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:L,children:[i&&r&&t("label",{className:ut.label,htmlFor:D,children:r}),s&&n&&t("p",{className:ut.description,children:n}),t("div",{className:A,children:e("div",{className:ut.inputInner,children:[t("input",{type:"text",id:D,className:z,value:N,placeholder:h,onChange:e=>{b||(void 0===a&&k(e.target.value),f&&f(e))},onFocus:e=>{b||(P(!0),_&&_(e))},onBlur:e=>{b||(P(!1),v&&v(e))},disabled:B,"aria-invalid":c,"aria-describedby":c?`${D}-error`:void 0,...C}),u?m||t("div",{className:ut.iconWrapper,children:t("img",{src:"/icons/Icon.svg",alt:"Icon",className:ut.icon})}):null,d&&0!==g.length?t("div",{className:ut.chipList,children:g.map((a,n)=>e("div",{className:ut.chip,children:[t("span",{className:ut.chipLabel,children:a.label||"Label"}),a.onRemove&&t("button",{type:"button",className:ut.chipRemove,onClick:e=>{e.stopPropagation(),a.onRemove?.()},"aria-label":"Remove chip",children:t("img",{src:"/icons/Vector.svg",alt:"Remove",className:ut.chipIcon})})]},n))}):null]})}),c&&l&&t("p",{className:ut.error,id:`${D}-error`,children:l})]})};var pt={overlay:"Modal-module_overlay__-RqGQ",fadeIn:"Modal-module_fadeIn__bf4KI",modal:"Modal-module_modal__MUsZA",slideUp:"Modal-module_slideUp__ZdbV-",small:"Modal-module_small__tMzhZ",medium:"Modal-module_medium__ww1Z7",large:"Modal-module_large__J-zZn",closeButton:"Modal-module_closeButton__1Oslg",content:"Modal-module_content__1bCpv",iconWrapper:"Modal-module_iconWrapper__99kUR",textStack:"Modal-module_textStack__QbEZb",title:"Modal-module_title__TUIss",description:"Modal-module_description__o6Czk",actions:"Modal-module_actions__YzyOX"};const ht=({isOpen:a,onClose:n,title:r,description:o,icon:i,children:s,actions:c,size:d="medium",showCloseButton:u=!0,className:m="",...p})=>{if(l(()=>(document.body.style.overflow=a?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[a]),!a)return null;return t("div",{className:pt.overlay,onClick:e=>{e.target===e.currentTarget&&n&&n()},children:e("div",{className:`${pt.modal} ${pt[d]} ${m}`,role:"dialog","aria-modal":"true",...p,children:[u&&t("button",{className:pt.closeButton,onClick:n,"aria-label":"Close modal",children:t(ue,{name:"X"})}),e("div",{className:pt.content,children:[i&&t("div",{className:pt.iconWrapper,children:i}),s||e("div",{className:pt.textStack,children:[r&&t("h2",{className:pt.title,children:r}),o&&t("p",{className:pt.description,children:o})]}),c&&t("div",{className:pt.actions,children:c})]})]})})};var gt={notification:"Notification-module_notification__U2DR1",size_small:"Notification-module_size_small__kHQRv",size_medium:"Notification-module_size_medium__hJpV4",variant_primary:"Notification-module_variant_primary__OQM8e",variant_neutral:"Notification-module_variant_neutral__tmXIq",variant_subtle:"Notification-module_variant_subtle__uwELf",count:"Notification-module_count__XmK01",plus:"Notification-module_plus__oBCK6"};const ft=({count:n=0,variant:r="primary",size:o="medium",maxCount:l=99,className:i="",...s})=>{const c=[gt.notification,gt[`variant_${r}`],gt[`size_${o}`],i].filter(Boolean).join(" ");return t("span",{className:c,...s,children:(()=>{if("number"==typeof n&&n>l)return e(a,{children:[t("span",{className:gt.count,children:l}),t("span",{className:gt.plus,children:"+"})]});if("string"==typeof n&&n.endsWith("+")){const r=n.slice(0,-1);return e(a,{children:[t("span",{className:gt.count,children:r}),t("span",{className:gt.plus,children:"+"})]})}return n})()})};var _t={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};const vt=a=>t(p,{theme:{token:{colorPrimary:"#4432bf",borderRadius:8,fontFamily:"'Host Grotesk', sans-serif",colorText:"#2f353b",colorTextDescription:"#768494",motion:!1},components:{Pagination:{itemActiveBg:"#4432bf",itemActiveColor:"#F3EEF9",itemBg:"transparent",itemInputBg:"#ffffff",itemSize:36,itemSizeSM:32}}},children:t("div",{className:`${_t.paginationWrapper} ${a.className||""}`,children:t(h,{itemRender:(n,r,o)=>"prev"===r?e("div",{className:`${_t.navButtonCustom} ${a.disabled?_t.disabled:""}`,children:[t("div",{className:_t.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),t("span",{className:_t.navText,children:"Previous"})]}):"next"===r?e("div",{className:`${_t.navButtonCustom} ${a.disabled?_t.disabled:""}`,children:[t("span",{className:_t.navText,children:"Next"}),t("div",{className:_t.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):o,...a})})});var bt={container:"Search-module_container__NslV2",input:"Search-module_input__-SRzW",inputInner:"Search-module_inputInner__BFwA4",searchIcon:"Search-module_searchIcon__kOb49",searchIconImage:"Search-module_searchIconImage__JG5O3",placeholder:"Search-module_placeholder__XGEtM",value:"Search-module_value__r-4hD",realInput:"Search-module_realInput__REpAG",inputInner_state_focused:"Search-module_inputInner_state_focused__Zl5a2",cursor:"Search-module_cursor__hsCJx",blink:"Search-module_blink__PSxpt",cursorTyping:"Search-module_cursorTyping__wAW5b",error:"Search-module_error__4NuH1",input_state_default:"Search-module_input_state_default__5QR0F",inputInner_state_default:"Search-module_inputInner_state_default__YpSHL",input_state_hover:"Search-module_input_state_hover__zvOhd",inputInner_state_hover:"Search-module_inputInner_state_hover__Gxcb9",input_state_focused:"Search-module_input_state_focused__TDgsA",input_state_typing:"Search-module_input_state_typing__GFivl",inputInner_state_typing:"Search-module_inputInner_state_typing__9zezH",input_state_filled:"Search-module_input_state_filled__3FE6u",inputInner_state_filled:"Search-module_inputInner_state_filled__qOdD4",input_state_filledHover:"Search-module_input_state_filledHover__kQu9I",inputInner_state_filledHover:"Search-module_inputInner_state_filledHover__2EMWM",input_state_error:"Search-module_input_state_error__F-GNS",inputInner_state_error:"Search-module_inputInner_state_error__zTv5f",input_state_disabled:"Search-module_input_state_disabled__F5cPc",inputInner_state_disabled:"Search-module_inputInner_state_disabled__gKmLt"};const yt=({value:a="",error:n="",hasError:r=!1,state:l="default",placeholder:i="Search",onChange:s,onFocus:c,onBlur:d,disabled:u,className:m="",title:p="",...h})=>{const[g,f]=o(!1),[_,v]=o(!1),b=(()=>{if(u)return"disabled";const e=(e=>{if(!e||"default"===e)return null;const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(l);return e||(r?"error":_?a?"typing":"focused":g?a?"filledHover":"hover":a?"filled":"default")})(),y=[bt.container,m].filter(Boolean).join(" "),w=[bt.input,bt[`input_state_${b}`]].filter(Boolean).join(" "),C=[bt.inputInner,bt[`inputInner_state_${b}`]].filter(Boolean).join(" "),x=u||"disabled"===b;return e("div",{className:y,title:p,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[t("div",{className:w,children:e("div",{className:C,children:[t("div",{className:bt.searchIcon,children:t(ue,{name:"magnifying-glass",className:bt.searchIconImage,size:16})}),t("input",{type:"search",className:bt.realInput,value:a,placeholder:i,onChange:s,onFocus:e=>{v(!0),c?.(e)},onBlur:e=>{v(!1),d?.(e)},disabled:x,...h}),("focused"===b||"typing"===b)&&!a&&t("span",{className:bt.cursor,children:"|"})]})}),r&&n&&t("p",{className:bt.error,children:n})]})};var wt={container:"ListSearch-module_container__HL8el",input:"ListSearch-module_input__ezY35",inputInner:"ListSearch-module_inputInner__qdXKc",searchIcon:"ListSearch-module_searchIcon__ndZXx",searchIconImage:"ListSearch-module_searchIconImage__pmjns",placeholder:"ListSearch-module_placeholder__XUIb1",value:"ListSearch-module_value__CSjKl",realInput:"ListSearch-module_realInput__xVlan",inputInner_state_hover:"ListSearch-module_inputInner_state_hover__R2Zpc",cursor:"ListSearch-module_cursor__m1iCE",blink:"ListSearch-module_blink__jzTcf",cursorTyping:"ListSearch-module_cursorTyping__2AymQ",chipList:"ListSearch-module_chipList__WoeU5",container_type_type1:"ListSearch-module_container_type_type1__-NCWZ",chip:"ListSearch-module_chip__Tn6ze",chipLabel:"ListSearch-module_chipLabel__JPkXa",chipRemove:"ListSearch-module_chipRemove__Hjgzi",chipIcon:"ListSearch-module_chipIcon__wDf2o",input_state_default:"ListSearch-module_input_state_default__gNzz2",inputInner_state_default:"ListSearch-module_inputInner_state_default__TXHPJ",input_state_hover:"ListSearch-module_input_state_hover__EG-JY",input_state_focused:"ListSearch-module_input_state_focused__1nOkg",inputInner_state_focused:"ListSearch-module_inputInner_state_focused__1o0L8",input_state_typing:"ListSearch-module_input_state_typing__GQk65",inputInner_state_typing:"ListSearch-module_inputInner_state_typing__KHmwN",container_type_type2:"ListSearch-module_container_type_type2__Qi0u2"};const Ct=({label:a="Search",chipList:n=!0,state:r="default",type:l="type1",chips:i=[],onChipRemove:s,onChange:c,onFocus:d,onBlur:u,disabled:m,className:p="",title:h="",...g})=>{const[f,_]=o(!1),[v,b]=o(!1),y=(()=>{if(m)return"disabled";const e=(e=>{if(!e||"default"===e)return null;const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":t})(r);return e||(v?a&&"Search"!==a?"typing":"focused":f?"hover":"default")})(),w=(e=>{if(!e)return"type1";return"type2"===e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"")?"type2":"type1"})(l||"type1"),C=()=>n&&0!==i.length?t("div",{className:wt.chipList,children:i.map((a,n)=>e("div",{className:wt.chip,children:[t("span",{className:wt.chipLabel,children:a.label||"Label"}),t("button",{type:"button",className:wt.chipRemove,onClick:e=>{e.stopPropagation(),s&&s(n)},"aria-label":"Remove chip",children:t("img",{src:"/icons/X.svg",alt:"Remove",className:wt.chipIcon})})]},n))}):null,x=ie(wt.container,wt[`container_type_${w}`],p),k=ie(wt.input,wt[`input_state_${y}`],wt[`input_type_${w}`]),S=ie(wt.inputInner,wt[`inputInner_state_${y}`]),P=m||"disabled"===y;return e("div",{className:x,title:h,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:["type2"===w&&n&&i.length>0?C():null,t("div",{className:k,children:e("div",{className:S,children:[t("div",{className:wt.searchIcon,children:t("img",{src:"/icons/search.svg",alt:"Search",className:wt.searchIconImage})}),t("input",{type:"text",className:wt.realInput,value:"Search"===a?"":a,placeholder:"Search",onChange:c,onFocus:e=>{b(!0),d&&d(e)},onBlur:e=>{b(!1),u&&u(e)},disabled:P,...g}),("focused"===y||"typing"===y)&&!a&&t("span",{className:wt.cursor,children:"|"})]})}),"type1"===w&&n&&i.length>0?C():null]})};var xt={statusIndicator:"StatusIndicator-module_statusIndicator__dYsH-",indicator:"StatusIndicator-module_indicator__YQzs6",indicator_size_small:"StatusIndicator-module_indicator_size_small__5UNPW",indicator_size_medium:"StatusIndicator-module_indicator_size_medium__v7LFI",indicator_size_large:"StatusIndicator-module_indicator_size_large__UvANW",label:"StatusIndicator-module_label__WM5I3",size_small:"StatusIndicator-module_size_small__nCIL2",size_medium:"StatusIndicator-module_size_medium__Fp-1x",size_large:"StatusIndicator-module_size_large__BkKOG",state_default:"StatusIndicator-module_state_default__J4F1G",state_hover:"StatusIndicator-module_state_hover__Hmr-w",state_pressed:"StatusIndicator-module_state_pressed__Cz8o1",state_active:"StatusIndicator-module_state_active__nOiXv",state_disabled:"StatusIndicator-module_state_disabled__umvwX"};const kt=({label:a="Status",state:n="default",size:r="medium",color:o="green",onClick:l,className:i="",...s})=>{const c=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"disabled"===t?"disabled":"default"})(n),d=(e=>{if(!e)return"green";const t=e.toLowerCase();return"red"===t?"red":"yellow"===t?"yellow":"blue"===t?"blue":"green"})(o),u=r.toLowerCase(),m=[xt.statusIndicator,xt[`size_${u}`],xt[`state_${c}`],xt[`color_${d}`],i].filter(Boolean).join(" ");return e(l?"button":"div",{className:m,onClick:l,disabled:"disabled"===c,type:l?"button":void 0,...s,children:[(()=>{const e=(()=>{if("disabled"===c)return"#A6A6A6";switch(d){case"red":return"#EC221F";case"yellow":return"#FACA0A";case"blue":return"#0C8CF5";default:return"#14AE5C"}})(),a=[xt.indicator,xt[`indicator_size_${u}`]].filter(Boolean).join(" ");return t("div",{className:a,style:{backgroundColor:e}})})(),t("span",{className:xt.label,children:a})]})};var St={tab:"Tab-module_tab__SstW0",label:"Tab-module_label__3WQV-",active:"Tab-module_active__RQPjd",disabled:"Tab-module_disabled__m49K5",underline:"Tab-module_underline__IupnS",slideIn:"Tab-module_slideIn__owi-7"};const Pt=({label:a,count:n,isActive:r=!1,disabled:o=!1,onClick:l,className:i="",...s})=>{const c=[St.tab,r&&St.active,o&&St.disabled,i].filter(Boolean).join(" ");return e("button",{className:c,onClick:e=>{!o&&l&&l(e)},disabled:o,type:"button",role:"tab","aria-selected":r,...s,children:[t("span",{className:St.label,children:a}),null!=n&&t(ft,{count:n,variant:o?"subtle":r?"primary":"neutral",size:"small",className:St.notification}),r&&t("div",{className:St.underline})]})};var Nt={tabList:"TabList-module_tabList__sSh3n"};const It=({items:e,activeKey:a,onChange:n,className:r=""})=>{const o=[Nt.tabList,r].filter(Boolean).join(" ");return t("div",{className:o,role:"tablist",children:e.map(e=>t(Pt,{label:e.label,count:e.count,disabled:e.disabled,isActive:a===e.key,onClick:()=>!e.disabled&&n?.(e.key)},e.key))})};var Lt={tableContainer:"Table-module_tableContainer__R0vmz",checkboxHeader:"Table-module_checkboxHeader__nB0jp",tableCell:"Table-module_tableCell__gaAKu",antTable:"Table-module_antTable__bZm6O",dragHandleHeader:"Table-module_dragHandleHeader__KczQT",dragHandleCell:"Table-module_dragHandleCell__3TeKk",dragHandle:"Table-module_dragHandle__gi396",rowDragging:"Table-module_rowDragging__OkG8Q","ant-table-tbody":"Table-module_ant-table-tbody__77qO2",sortIcon:"Table-module_sortIcon__1ordV",columnHeaderContent:"Table-module_columnHeaderContent__3qDkz","ant-table-column-title":"Table-module_ant-table-column-title__OGte0",columnHeaderLabel:"Table-module_columnHeaderLabel__s57EO",sortIconLeft:"Table-module_sortIconLeft__zL1i-","ant-table-thead":"Table-module_ant-table-thead__zf80i",resizeHandle:"Table-module_resizeHandle__2zwBq",resizeHandleLine:"Table-module_resizeHandleLine__i85s6",resizing:"Table-module_resizing__rV8oe","ant-table-column-sorters":"Table-module_ant-table-column-sorters__5YiWY"};const zt=c(null),At=({children:e,id:a,rowKey:n,row:r})=>{const{attributes:o,listeners:l,setNodeRef:i,transform:s,transition:c,isDragging:d}=P({id:a}),u={transform:N.Transform.toString(s),transition:c,opacity:d?.5:1};return t(zt.Provider,{value:{attributes:o,listeners:l},children:t("tr",{ref:i,style:u,className:`${d?Lt.rowDragging:""}`,children:e})})},Bt=()=>{const e=d(zt);if(!e)return null;const{attributes:a,listeners:n}=e;return t("td",{className:Lt.dragHandleCell,children:t("div",{className:Lt.dragHandle,...n,...a,children:t(ue,{name:"dots-six-vertical",size:12})})})},Dt=({columnKey:e,onResizeStart:a,onResize:n,onResizeEnd:l})=>{const s=r(null),[c,d]=o(!1),u=i(t=>{t.preventDefault(),t.stopPropagation(),d(!0);const r=t.clientX,o=s.current?.parentElement?.offsetWidth||0,i=t=>{const a=t.clientX-r,l=Math.max(50,o+a);n&&n(e,l)},c=()=>{d(!1),l&&l(e),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect=""};a&&a(e),document.addEventListener("mousemove",i),document.addEventListener("mouseup",c),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[e,n,a,l]);return t("div",{ref:s,className:`${Lt.resizeHandle} ${c?Lt.resizing:""}`,onMouseDown:u,title:"Drag to resize column",children:t("div",{className:Lt.resizeHandleLine})})};function $t({columns:a=[],data:r=[],rowKey:l="id",onRowReorder:c,onRowSelect:d,onSort:u,className:m="",...p}){const[h,P]=o([]),[N,I]=o({}),[L,z]=o(r),[A,B]=o({});n.useEffect(()=>{z(r)},[r]),n.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${Lt.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-thead > tr > th").forEach(e=>{const t=window.getComputedStyle(e,"::before");if("none"!==t.content&&""!==t.content){const e="remove-table-separator";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`\n .${Lt.tableContainer} .ant-table-thead > tr > th::before {\n display: none !important;\n content: none !important;\n width: 0 !important;\n height: 0 !important;\n background: none !important;\n opacity: 0 !important;\n visibility: hidden !important;\n }\n `,document.head.appendChild(t))}})};e();const t=[setTimeout(e,50),setTimeout(e,100),setTimeout(e,200)],a=new MutationObserver(e),n=document.querySelector(`.${Lt.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),()=>{t.forEach(clearTimeout),a.disconnect();const e=document.getElementById("remove-table-separator");e&&e.remove()}},[L,a]),n.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${Lt.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-column-sorter, .ant-table-column-sorter-full, .ant-table-column-sorter-inner").forEach(e=>{const t=e;t.closest(`.${Lt.sortIconLeft}`)||(t.style.display="none",t.style.visibility="hidden",t.style.opacity="0",t.style.width="0",t.style.height="0",t.style.margin="0",t.style.padding="0")})};e();const t=setTimeout(e,100),a=new MutationObserver(e),n=document.querySelector(`.${Lt.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(t),a.disconnect()}},[L,a,N]);const D=f(_(v),_(b,{coordinateGetter:C})),$=e=>{P(e),d&&d(e)},T=i((e,t)=>{B(a=>({...a,[e]:t}))},[]),W=i(e=>{},[]),F=i(e=>{},[]),R=s(()=>{const n={title:"",key:"drag-handle",width:40,fixed:"left",className:Lt.dragHandleHeader,render:()=>t(Bt,{})},r=a.map(a=>{const n=A[a.key]||a.width||void 0,r=a.sortable&&N.columnKey===a.key&&N.order||null,o=a.sortable?t("span",{className:Lt.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!a.sortable)return;let t;if(t=N.columnKey===a.key?"ascend"===N.order?"descend":"descend"===N.order?null:"ascend":"ascend",t){if(I({order:t,columnKey:a.key}),u){const e="ascend"===t?"asc":"desc";u(a.key,e)}}else I({}),u&&u(null,null)},title:"Click to sort",children:(l=r,t(ue,"ascend"===l?{name:"sort-ascending",size:14}:"descend"===l?{name:"sort-descending",size:14}:{name:"caret-up-down",size:14}))}):null;var l;return{title:e("div",{className:Lt.columnHeaderContent,children:[o,t("span",{className:Lt.columnHeaderLabel,children:a.label}),t(Dt,{columnKey:a.key,onResizeStart:W,onResize:T,onResizeEnd:F})]}),dataIndex:a.key,key:a.key,width:n,sorter:!1,render:a.render||(e=>e),className:Lt.tableCell,showSorterTooltip:!1}}),o=L.length,i=h.length,s=o>0&&i===o,c=!(0===i)&&!s;return[n,{title:t("div",{className:Lt.checkboxHeader,children:t(We,{checked:s,indeterminate:c,onChange:e=>{if(c)$([]);else{const t=e.target.checked;$(t?L.map(e=>e[l]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${Lt.tableCell} ${Lt.checkboxColumn}`,render:(e,a)=>{const n=h.includes(a[l]);return t("div",{className:Lt.checkboxCell,children:t(We,{checked:n,onChange:e=>{const t=e.target.checked?[...h,a[l]]:h.filter(e=>e!==a[l]);$(t)},size:"small"})})}},...r]},[a,N,A,h,L,l,u,W,T,F]),H=[Lt.tableContainer,m].filter(Boolean).join(" "),M=s(()=>L.map(e=>e[l]),[L,l]),E={body:{row:e=>{let a=e["data-row-key"];if(!a&&e.children){const t=n.Children.toArray(e.children);for(const e of t){const t=e;if(t?.props?.record?.[l]){a=t.props.record[l];break}}}if(!a&&void 0!==e["data-row-index"]){const t=e["data-row-index"];L[t]&&L[t][l]&&(a=L[t][l])}return a?t(At,{id:a,rowKey:l,row:e,children:e.children}):t("tr",{...e,children:e.children})}}};return t("div",{className:H,...p,children:t(y,{sensors:D,collisionDetection:w,onDragEnd:e=>{const{active:t,over:a}=e;a&&t.id!==a.id&&z(e=>{const n=e.findIndex(e=>e[l]===t.id),r=e.findIndex(e=>e[l]===a.id),o=S(e,n,r);return c&&c(o),o})},children:t(x,{items:M,strategy:k,children:t(g,{className:Lt.antTable,columns:R,dataSource:L,rowKey:l,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:E})})})})}var Tt={container:"TextArea-module_container__8G9wA",label:"TextArea-module_label__sMQAR",description:"TextArea-module_description__P-BRk",textareaWrapper:"TextArea-module_textareaWrapper__cnITK",textareaInner:"TextArea-module_textareaInner__yxET8",textarea:"TextArea-module_textarea__1kfyQ",iconWrapper:"TextArea-module_iconWrapper__3-EUI",icon:"TextArea-module_icon__K1T5J",resizeHandle:"TextArea-module_resizeHandle__5qHHM",resizeIcon:"TextArea-module_resizeIcon__NkA24",error:"TextArea-module_error__qIUbc",textareaWrapper_state_default:"TextArea-module_textareaWrapper_state_default__2mpPG",textareaWrapper_state_hover:"TextArea-module_textareaWrapper_state_hover__yNCVJ",textareaWrapper_state_focused:"TextArea-module_textareaWrapper_state_focused__UfdMe",textareaWrapper_state_typing:"TextArea-module_textareaWrapper_state_typing__81iqx",textareaWrapper_state_filled:"TextArea-module_textareaWrapper_state_filled__XKopI",textareaWrapper_state_filledHover:"TextArea-module_textareaWrapper_state_filledHover__AQra1",textareaWrapper_state_error:"TextArea-module_textareaWrapper_state_error__iBcMB",textareaWrapper_state_disabled:"TextArea-module_textareaWrapper_state_disabled__Q2hqV"};const Wt=({value:a,description:n="",label:i="",error:s="",hasLabel:c=!0,hasDescription:d=!0,hasError:u=!1,showIcon:m=!1,chooseIcon:p=null,showDragIcon:h=!0,state:g="default",placeholder:f="Body",disabled:_,className:v="",id:b,onChange:y,onFocus:w,onBlur:C,rows:x=4,cols:k,...S})=>{const[P,N]=o(""),[I,L]=o(!1),[z,A]=o(!1),[B,D]=o({width:240,height:120}),$=r(null),T=r(null),W=r({x:0,y:0}),F=r({width:0,height:0}),R=void 0!==a?a:P,H=_?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(g);l(()=>{if($.current){const e=$.current.getBoundingClientRect();D({width:e.width,height:e.height})}},[]),l(()=>{const e=e=>{if(!z||!$.current)return;const t=e.clientX-W.current.x,a=e.clientY-W.current.y,n=Math.max(240,F.current.width+t),r=Math.max(80,F.current.height+a);D({width:n,height:r}),$.current.style.width=`${n}px`,$.current.style.height=`${r}px`},t=()=>{A(!1)};return z&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[z]);const M=[Tt.container,v].filter(Boolean).join(" "),E=[Tt.textarea,Tt[`state_${H}`]].filter(Boolean).join(" "),U=[Tt.textareaWrapper,Tt[`textareaWrapper_state_${H}`]].filter(Boolean).join(" "),O=_||"disabled"===H,G=b||`textarea-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:M,children:[c&&i&&t("label",{className:Tt.label,htmlFor:G,children:i}),d&&n&&t("p",{className:Tt.description,children:n}),t("div",{className:U,style:{width:B.width,height:B.height},children:e("div",{className:Tt.textareaInner,children:[t("textarea",{ref:$,id:G,className:E,value:R,placeholder:f,onChange:e=>{_||(void 0===a&&N(e.target.value),y&&y(e))},onFocus:e=>{_||(L(!0),w&&w(e))},onBlur:e=>{_||(L(!1),C&&C(e))},disabled:O,rows:x,cols:k,"aria-invalid":u,"aria-describedby":u?`${G}-error`:void 0,style:{width:"100%",height:"100%",resize:"none"},...S}),m?p||t("div",{className:Tt.iconWrapper,children:t("img",{src:"/icons/Icon.svg",alt:"Icon",className:Tt.icon})}):null,h&&!O&&t("div",{ref:T,className:Tt.resizeHandle,onMouseDown:e=>{if(_||!$.current)return;e.preventDefault(),A(!0);const t=$.current.getBoundingClientRect();W.current={x:e.clientX,y:e.clientY},F.current={width:t.width,height:t.height}},role:"button","aria-label":"Resize textarea",tabIndex:-1,children:t(ue,{name:"notches",size:12,className:Tt.resizeIcon,alt:"Resize handle"})})]})}),u&&s&&t("p",{className:Tt.error,id:`${G}-error`,children:s})]})};var Ft={toast:"Toast-module_toast__yU1Ao",slideIn:"Toast-module_slideIn__FVUo3",iconWrapper:"Toast-module_iconWrapper__U6N5G","icon-success":"Toast-module_icon-success__WHcrC","icon-warning":"Toast-module_icon-warning__NVyba","icon-danger":"Toast-module_icon-danger__9T9I4",content:"Toast-module_content__QGrax",title:"Toast-module_title__Fkg6u",message:"Toast-module_message__jFtTw",closeButton:"Toast-module_closeButton__o-wNg"};const Rt={success:t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M20 6L9 17L4 12",stroke:"#00B050",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),warning:t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M12 9V12M12 16H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"#B58500",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),danger:t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#D92D20",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Ht=({type:a="success",title:n,message:r,onClose:o,duration:i,className:s="",...c})=>(l(()=>{if(i&&o){const e=setTimeout(()=>{o()},i);return()=>clearTimeout(e)}},[i,o]),e("div",{className:`${Ft.toast} ${Ft[a]} ${s}`,role:"alert",...c,children:[t("div",{className:`${Ft.iconWrapper} ${Ft[`icon-${a}`]}`,children:Rt[a]}),e("div",{className:Ft.content,children:[n&&t("h4",{className:Ft.title,children:n}),r&&t("p",{className:Ft.message,children:r})]}),t("button",{className:Ft.closeButton,onClick:o,"aria-label":"Close notification",children:t("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#5F6D7E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})),Mt={gray:{50:"#f6f6f6",100:"#ededed",150:"#e4e4e4",200:"#dbdbdb",300:"#cacaca",400:"#b8b8b8",500:"#a6a6a6",600:"#858585",700:"#646464",800:"#424242",900:"#323232",950:"#212121",1e3:"#111111"},purple:{50:"#f3eef9",100:"#e7dcf2",150:"#dbcbec",200:"#cfb9e5",300:"#b897d9",400:"#a074cc",500:"#8851bf",600:"#6d4199",700:"#523173",800:"#36204c",900:"#291839",950:"#1b1026",1e3:"#0e0813"},violet:{50:"#eceaf9",100:"#dad6f2",150:"#c7c1ec",200:"#b4ade5",300:"#8f84d9",400:"#695bcc",500:"#4432bf",600:"#362899",700:"#291e73",800:"#1b144c",900:"#140f39",950:"#0e0a26",1e3:"#070513"},red:{50:"#fde9e9",100:"#fbd3d2",150:"#f9bdbc",200:"#f7a7a5",300:"#f47a79",400:"#f04e4c",500:"#ec221f",600:"#bd1b19",700:"#8e1413",800:"#5e0e0c",900:"#470a09",950:"#2f0706",1e3:"#180303"},green:{50:"#e7f7ef",100:"#d0efde",150:"#b8e7ce",200:"#a1dfbe",300:"#72ce9d",400:"#43be7d",500:"#14ae5c",600:"#108b4a",700:"#0c6837",800:"#084625",900:"#06341c",950:"#042312",1e3:"#021109"},yellow:{50:"#fefae6",100:"#fef4ce",150:"#fdefb5",200:"#fdea9d",300:"#fcdf6c",400:"#fbd53b",500:"#faca0a",600:"#c8a208",700:"#967906",800:"#645104",900:"#4b3d03",950:"#322802",1e3:"#191401"},blue:{50:"#e7f3fe",100:"#cee8fd",150:"#b6ddfc",200:"#9ed1fb",300:"#6dbaf9",400:"#3da3f7",500:"#0c8cf5",600:"#0a70c4",700:"#075493",800:"#053862",900:"#042a4a",950:"#021c31",1e3:"#010e19"},slate:{50:"#f1f3f4",100:"#e4e6ea",150:"#d6dadf",200:"#c8ced4",300:"#adb5bf",400:"#919da9",500:"#768494",600:"#5e6a76",700:"#474f59",800:"#2f353b",900:"#23282c",950:"#181a1e",1e3:"#0c0d0f"},white:"#ffffff",black:"#000000"},Et={white:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.08)",150:"rgba(255, 255, 255, 0.15)",200:"rgba(255, 255, 255, 0.20)",300:"rgba(255, 255, 255, 0.30)",350:"rgba(255, 255, 255, 0.35)",400:"rgba(255, 255, 255, 0.40)",500:"rgba(255, 255, 255, 0.50)",600:"rgba(255, 255, 255, 0.60)",700:"rgba(255, 255, 255, 0.70)",800:"rgba(255, 255, 255, 0.80)"},black:{100:"rgba(12, 12, 13, 0.05)",200:"rgba(12, 12, 13, 0.10)",300:"rgba(12, 12, 13, 0.20)",400:"rgba(12, 12, 13, 0.40)",500:"rgba(12, 12, 13, 0.70)",600:"rgba(12, 12, 13, 0.80)",700:"rgba(12, 12, 13, 0.85)",800:"rgba(12, 12, 13, 0.90)",900:"rgba(12, 12, 13, 0.95)",1e3:"rgba(12, 12, 13, 1.00)"},purple:{100:"rgba(136, 81, 191, 0.08)",200:"rgba(136, 81, 191, 0.16)"},violet:{100:"rgba(68, 50, 191, 0.08)",200:"rgba(68, 50, 191, 0.16)"},slate:{100:"rgba(118, 132, 148, 0.08)",200:"rgba(118, 132, 148, 0.16)"},green:{100:"rgba(20, 174, 92, 0.08)",200:"rgba(20, 174, 92, 0.16)"},red:{100:"rgba(236, 34, 31, 0.08)",200:"rgba(236, 34, 31, 0.16)"},yellow:{100:"rgba(229, 160, 0, 0.08)",200:"rgba(229, 160, 0, 0.16)"}},Ut={sans:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',mono:'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Ot={regular:400,medium:500,semibold:600,bold:700},Gt={normal:"normal",italic:"italic"},Vt={scale01:11,scale02:12,scale03:13,scale04:14,scale05:16,scale06:18,scale07:20,scale08:24,scale09:28,scale10:32,scale11:40},qt={tight:1.25,normal:1.5,relaxed:1.75},jt={tight:"-0.01em",normal:"0",wide:"0.01em"},Yt={0:0,50:2,100:4,150:6,200:8,300:12,400:16,500:20,600:24,800:32,1200:48,1600:64,2400:96,4e3:160,"-100":-4,"-200":-8,"-300":-12,"-400":-16,"-600":-24},Xt={none:0,sm:4,md:8,lg:12,xl:16,full:9999},Kt={none:0,thin:1,medium:1.5,thick:2},Zt={0:0,25:1,100:4,200:8,400:16,800:32,1200:48,"-25":-1,"-100":-4,"-200":-8,"-400":-16,"-800":-32,"-1200":-48},Qt={sm:24,md:32,lg:40},Jt={none:0,soft:2,light:4,medium:8,heavy:12,intense:24},ea={xs:1,sm:2,md:4,lg:8,xl:16},ta={mobile:375,tablet:768,desktop:1200,wide:1440},aa={mobile:`@media (min-width: ${ta.mobile}px)`,tablet:`@media (min-width: ${ta.tablet}px)`,desktop:`@media (min-width: ${ta.desktop}px)`,wide:`@media (min-width: ${ta.wide}px)`},na={brand:{default:Mt.purple[500],secondary:Mt.purple[300],tertiary:Mt.purple[150],hover:Mt.purple[600],secondaryHover:Mt.purple[400],tertiaryHover:Mt.purple[200],subtleLow:Et.purple[100],subtleMedium:Et.purple[100]},action:{default:Mt.violet[500],secondary:Mt.violet[300],tertiary:Mt.violet[100],hover:Mt.violet[400],secondaryHover:Mt.violet[400],tertiaryHover:Mt.violet[150],subtleLow:Et.violet[100],subtleMedium:Et.violet[100]},success:{default:Mt.green[500],secondary:Mt.green[200],tertiary:Mt.green[50],hover:Mt.green[600],secondaryHover:Mt.green[300],tertiaryHover:Mt.green[200],subtleLow:Mt.green[200],subtleMedium:Mt.green[200]},warning:{default:Mt.yellow[500],secondary:Mt.yellow[300],tertiary:Mt.yellow[150],hover:Mt.yellow[600],secondaryHover:Mt.yellow[400],tertiaryHover:Mt.yellow[200],subtleLow:Mt.yellow[200],subtleMedium:Mt.yellow[200]},danger:{default:Mt.red[400],secondary:Mt.red[200],tertiary:Mt.red[50],hover:Mt.red[600],secondaryHover:Mt.red[300],tertiaryHover:Mt.red[150],subtleLow:Et.red[100],subtleMedium:Et.red[100]},info:{default:Mt.blue[500],secondary:Mt.blue[300],tertiary:Mt.blue[100],hover:Mt.blue[600],secondaryHover:Mt.blue[400],tertiaryHover:Mt.blue[200],subtleLow:Mt.blue[200],subtleMedium:Mt.blue[200]},neutral:{default:Mt.slate[500],secondary:Mt.slate[300],tertiary:Mt.slate[100],hover:Mt.slate[600],secondaryHover:Mt.slate[400],tertiaryHover:Mt.slate[200],subtleLow:Et.slate[100],subtleMedium:Et.slate[200]},default:{default:Mt.slate[50],hover:Mt.slate[100],glass:Et.white[300],onGlass:Et.white[600],onGlassSecondary:Et.white[700],onGlassTertiary:Et.white[800],onGlassHover:Et.white[800]},disabled:{default:Mt.gray[200],secondary:Mt.gray[100]},utilities:{scrim:"rgba(255, 255, 255, 0.7)",overlay:"rgba(0, 0, 0, 0.5)",blanket:"rgba(0, 0, 0, 0.7)",bgOnGlass:"rgba(255, 255, 255, 0.45)",bgOnGlassOnGlass:"rgba(255, 255, 255, 0.6)",hoverOverlay:"rgba(0, 0, 0, 0.2)"}},ra={default:{default:Mt.slate[800],secondary:Mt.slate[500],tertiary:Mt.slate[300]},brand:{default:Mt.purple[500],secondary:Mt.purple[300],tertiary:Mt.purple[150],onBrand:Mt.purple[50],onBrandSecondary:Mt.purple[800],onBrandTertiary:Mt.purple[600]},action:{default:Mt.violet[500],secondary:Mt.violet[300],tertiary:Mt.violet[150],onAction:Mt.violet[50],onActionSecondary:Mt.violet[700],onActionTertiary:Mt.violet[600]},success:{default:Mt.green[800],secondary:Mt.green[600],tertiary:Mt.green[500],onSuccess:Mt.green[50],onSuccessSecondary:Mt.green[700],onSuccessTertiary:Mt.green[800]},warning:{default:Mt.yellow[900],secondary:Mt.yellow[700],tertiary:Mt.yellow[600],onWarning:Mt.yellow[900],onWarningSecondary:Mt.yellow[800],onWarningTertiary:Mt.yellow[700]},danger:{default:Mt.red[500],secondary:Mt.red[400],tertiary:Mt.red[300],onDanger:Mt.red[50],onDangerSecondary:Mt.red[800],onDangerTertiary:Mt.red[600]},info:{default:Mt.blue[500],secondary:Mt.blue[300],tertiary:Mt.blue[150],onInfo:Mt.blue[50],onInfoSecondary:Mt.blue[800],onInfoTertiary:Mt.blue[600]},neutral:{default:Mt.slate[800],secondary:Mt.slate[500],tertiary:Mt.slate[300],onNeutral:Mt.slate[50],onNeutralSecondary:Mt.slate[800],onNeutralTertiary:Mt.slate[600]},disabled:{default:Mt.gray[400],secondary:Mt.gray[300],onDisabled:Mt.gray[500],onDisabledSecondary:Mt.gray[300]},utilities:{onOverlay:Et.black[1e3]}},oa={default:{default:Mt.white,secondary:Mt.slate[150],tertiary:Mt.slate[500],subtleLow:Et.white[800],subtleMedium:Et.slate[200],subtleHigh:Et.white[400]},brand:{default:Mt.purple[200],secondary:Mt.purple[300],tertiary:Mt.purple[150],onBrand:Mt.purple[50],onBrandSecondary:Mt.purple[800],onBrandTertiary:Mt.purple[600]},action:{default:Mt.violet[500],secondary:Mt.violet[300],tertiary:Mt.violet[150],onAction:Mt.violet[50],onActionSecondary:Mt.violet[600],onActionTertiary:Mt.violet[800]},success:{default:Mt.green[800],secondary:Mt.green[600],tertiary:Mt.green[500]},warning:{default:Mt.yellow[800],secondary:Mt.yellow[600],tertiary:Mt.yellow[500]},danger:{default:Mt.red[500],secondary:Mt.red[300],tertiary:Mt.red[100],onDanger:Mt.red[600]},info:{default:Mt.blue[500],secondary:Mt.blue[300],tertiary:Mt.blue[150]},neutral:{default:Mt.slate[800],secondary:Mt.slate[500],tertiary:Mt.slate[200],onNeutral:Mt.slate[50],onNeutralSecondary:Mt.slate[700],onNeutralTertiary:Mt.slate[600]},disabled:{default:Mt.gray[400]},utilities:{swatch:"rgba(0, 0, 0, 0.24)"}},la={default:{default:Mt.slate[800],secondary:Mt.slate[500],tertiary:Mt.slate[300]},brand:{default:Mt.purple[800],secondary:Mt.purple[600],tertiary:Mt.purple[500],onBrand:Mt.purple[50],onBrandSecondary:Mt.purple[800],onBrandTertiary:Mt.purple[600]},action:{default:Mt.violet[500],secondary:Mt.violet[300],tertiary:Mt.violet[150],onAction:Mt.violet[50],onActionSecondary:Mt.violet[700],onActionTertiary:Mt.violet[600]},success:{default:Mt.green[500],secondary:Mt.green[200],tertiary:Mt.green[100],onSuccess:Mt.green[50],onSuccessSecondary:Mt.green[700],onSuccessTertiary:Mt.green[800]},warning:{default:Mt.yellow[500],secondary:Mt.yellow[300],tertiary:Mt.yellow[150],onWarning:Mt.yellow[1e3],onWarningSecondary:Mt.yellow[800],onWarningTertiary:Mt.yellow[900]},danger:{default:Mt.red[500],secondary:Mt.red[400],tertiary:Mt.red[300],onDanger:Mt.red[50],onDangerSecondary:Mt.red[700],onDangerTertiary:Mt.red[800]},info:{default:Mt.blue[500],secondary:Mt.blue[300],tertiary:Mt.blue[150],onInfo:Mt.blue[1e3],onInfoSecondary:Mt.blue[800],onInfoTertiary:Mt.blue[900]},neutral:{default:Mt.slate[800],secondary:Mt.slate[500],tertiary:Mt.slate[300],onNeutral:Mt.slate[50],onNeutralSecondary:Mt.slate[700],onNeutralTertiary:Mt.slate[600]},disabled:{default:Mt.gray[400],secondary:Mt.gray[300],onDisabled:Mt.gray[500],onDisabledSecondary:Mt.gray[300]},utilities:{onOverlay:Et.black[1e3]}},ia={heroTitle:{fontFamily:Ut.sans,fontSize:Vt.scale11,fontWeight:Ot.bold,lineHeight:qt.tight,letterSpacing:jt.tight},titlePage:{small:{fontFamily:Ut.sans,fontSize:Vt.scale07,fontWeight:Ot.bold,lineHeight:qt.tight,letterSpacing:jt.tight},base:{fontFamily:Ut.sans,fontSize:Vt.scale08,fontWeight:Ot.bold,lineHeight:qt.tight,letterSpacing:jt.tight},large:{fontFamily:Ut.sans,fontSize:Vt.scale09,fontWeight:Ot.bold,lineHeight:qt.tight,letterSpacing:jt.tight}},heading:{small:{fontFamily:Ut.sans,fontSize:Vt.scale05,fontWeight:Ot.medium,lineHeight:qt.normal,letterSpacing:jt.normal},base:{fontFamily:Ut.sans,fontSize:Vt.scale06,fontWeight:Ot.medium,lineHeight:qt.normal,letterSpacing:jt.normal},large:{fontFamily:Ut.sans,fontSize:Vt.scale07,fontWeight:Ot.medium,lineHeight:qt.normal,letterSpacing:jt.normal}},subheading:{small:{fontFamily:Ut.sans,fontSize:Vt.scale04,fontWeight:Ot.regular,lineHeight:qt.normal,letterSpacing:jt.normal},base:{fontFamily:Ut.sans,fontSize:Vt.scale05,fontWeight:Ot.regular,lineHeight:qt.normal,letterSpacing:jt.normal},large:{fontFamily:Ut.sans,fontSize:Vt.scale06,fontWeight:Ot.regular,lineHeight:qt.normal,letterSpacing:jt.normal}},subtitle:{small:{fontFamily:Ut.sans,fontSize:Vt.scale06,fontWeight:Ot.regular,lineHeight:qt.normal,letterSpacing:jt.normal},base:{fontFamily:Ut.sans,fontSize:Vt.scale07,fontWeight:Ot.regular,lineHeight:qt.normal,letterSpacing:jt.normal},large:{fontFamily:Ut.sans,fontSize:Vt.scale08,fontWeight:Ot.regular,lineHeight:qt.normal,letterSpacing:jt.normal}},body:{xs:{regular:{fontFamily:Ut.sans,fontSize:Vt.scale02,fontWeight:Ot.regular,lineHeight:qt.normal,letterSpacing:jt.normal},strong:{fontFamily:Ut.sans,fontSize:Vt.scale02,fontWeight:Ot.medium,lineHeight:qt.normal,letterSpacing:jt.normal}},s:{regular:{fontFamily:Ut.sans,fontSize:Vt.scale03,fontWeight:Ot.regular,lineHeight:qt.relaxed,letterSpacing:jt.normal},strong:{fontFamily:Ut.sans,fontSize:Vt.scale03,fontWeight:Ot.medium,lineHeight:qt.relaxed,letterSpacing:jt.normal}},m:{regular:{fontFamily:Ut.sans,fontSize:Vt.scale04,fontWeight:Ot.regular,lineHeight:qt.relaxed,letterSpacing:jt.normal},strong:{fontFamily:Ut.sans,fontSize:Vt.scale04,fontWeight:Ot.medium,lineHeight:qt.relaxed,letterSpacing:jt.normal}},l:{regular:{fontFamily:Ut.sans,fontSize:Vt.scale05,fontWeight:Ot.regular,lineHeight:qt.relaxed,letterSpacing:jt.normal},strong:{fontFamily:Ut.sans,fontSize:Vt.scale05,fontWeight:Ot.medium,lineHeight:qt.relaxed,letterSpacing:jt.normal}}},singleLine:{xxs:{regular:{fontFamily:Ut.sans,fontSize:Vt.scale01,fontWeight:Ot.regular,lineHeight:qt.tight,letterSpacing:jt.normal},strong:{fontFamily:Ut.sans,fontSize:Vt.scale01,fontWeight:Ot.medium,lineHeight:qt.tight,letterSpacing:jt.normal}},xs:{regular:{fontFamily:Ut.sans,fontSize:Vt.scale02,fontWeight:Ot.regular,lineHeight:qt.tight,letterSpacing:jt.normal},strong:{fontFamily:Ut.sans,fontSize:Vt.scale02,fontWeight:Ot.medium,lineHeight:qt.tight,letterSpacing:jt.normal}},s:{regular:{fontFamily:Ut.sans,fontSize:Vt.scale03,fontWeight:Ot.regular,lineHeight:qt.tight,letterSpacing:jt.normal},strong:{fontFamily:Ut.sans,fontSize:Vt.scale03,fontWeight:Ot.medium,lineHeight:qt.tight,letterSpacing:jt.normal}},m:{regular:{fontFamily:Ut.sans,fontSize:Vt.scale04,fontWeight:Ot.regular,lineHeight:qt.tight,letterSpacing:jt.normal},strong:{fontFamily:Ut.sans,fontSize:Vt.scale04,fontWeight:Ot.medium,lineHeight:qt.tight,letterSpacing:jt.normal}},l:{regular:{fontFamily:Ut.sans,fontSize:Vt.scale05,fontWeight:Ot.regular,lineHeight:qt.tight,letterSpacing:jt.normal},strong:{fontFamily:Ut.sans,fontSize:Vt.scale05,fontWeight:Ot.medium,lineHeight:qt.tight,letterSpacing:jt.normal}}},code:{fontFamily:Ut.mono,fontSize:Vt.scale03,fontWeight:Ot.regular,lineHeight:qt.relaxed,letterSpacing:jt.normal}},sa={xs:`0 ${ea.xs}px ${2*ea.xs}px rgba(0, 0, 0, 0.1)`,sm:`0 ${ea.sm}px ${2*ea.sm}px rgba(0, 0, 0, 0.12)`,md:`0 ${ea.md}px ${2*ea.md}px rgba(0, 0, 0, 0.15)`,lg:`0 ${ea.lg}px ${2*ea.lg}px rgba(0, 0, 0, 0.18)`,xl:`0 ${ea.xl}px ${2*ea.xl}px rgba(0, 0, 0, 0.20)`,none:"none"},ca={none:`blur(${Jt.none}px)`,soft:`blur(${Jt.soft}px)`,light:`blur(${Jt.light}px)`,medium:`blur(${Jt.medium}px)`,heavy:`blur(${Jt.heavy}px)`,intense:`blur(${Jt.intense}px)`},da={color:{background:na,text:ra,border:oa,icon:la}},ua={color:{background:{brand:{default:Mt.purple[400],secondary:Mt.purple[600],tertiary:Mt.purple[800],hover:Mt.purple[300],secondaryHover:Mt.purple[500],tertiaryHover:Mt.purple[700],subtleLow:Et.purple[100],subtleMedium:Et.purple[200]},action:{default:Mt.violet[400],secondary:Mt.violet[600],tertiary:Mt.violet[800],hover:Mt.violet[300],secondaryHover:Mt.violet[500],tertiaryHover:Mt.violet[700],subtleLow:Et.violet[100],subtleMedium:Et.violet[200]},success:{default:Mt.green[600],secondary:Mt.green[800],tertiary:Mt.green[950],hover:Mt.green[500],secondaryHover:Mt.green[700],tertiaryHover:Mt.green[800],subtleLow:Mt.green[900],subtleMedium:Mt.green[800]},warning:{default:Mt.yellow[600],secondary:Mt.yellow[800],tertiary:Mt.yellow[950],hover:Mt.yellow[500],secondaryHover:Mt.yellow[700],tertiaryHover:Mt.yellow[900],subtleLow:Mt.yellow[900],subtleMedium:Mt.yellow[800]},danger:{default:Mt.red[600],secondary:Mt.red[800],tertiary:Mt.red[950],hover:Mt.red[500],secondaryHover:Mt.red[700],tertiaryHover:Mt.red[900],subtleLow:Et.red[100],subtleMedium:Et.red[200]},info:{default:Mt.blue[600],secondary:Mt.blue[800],tertiary:Mt.blue[950],hover:Mt.blue[500],secondaryHover:Mt.blue[700],tertiaryHover:Mt.blue[900],subtleLow:Mt.blue[900],subtleMedium:Mt.blue[800]},neutral:{default:Mt.slate[600],secondary:Mt.slate[800],tertiary:Mt.slate[950],hover:Mt.slate[500],secondaryHover:Mt.slate[700],tertiaryHover:Mt.slate[900],subtleLow:Et.slate[100],subtleMedium:Et.slate[200]},default:{default:Mt.slate[950],hover:Mt.slate[900],glass:Et.black[300],onGlass:Et.black[600],onGlassSecondary:Et.black[700],onGlassTertiary:Et.black[800],onGlassHover:Et.black[800]},disabled:{default:Mt.gray[800],secondary:Mt.gray[900]},utilities:{scrim:"rgba(0, 0, 0, 0.7)",overlay:"rgba(255, 255, 255, 0.1)",blanket:"rgba(255, 255, 255, 0.15)",bgOnGlass:"rgba(0, 0, 0, 0.45)",bgOnGlassOnGlass:"rgba(0, 0, 0, 0.6)",hoverOverlay:"rgba(255, 255, 255, 0.1)"}},text:{default:{default:Mt.slate[50],secondary:Mt.slate[300],tertiary:Mt.slate[500]},brand:{default:Mt.purple[300],secondary:Mt.purple[400],tertiary:Mt.purple[600],onBrand:Mt.purple[950],onBrandSecondary:Mt.purple[200],onBrandTertiary:Mt.purple[300]},action:{default:Mt.violet[300],secondary:Mt.violet[400],tertiary:Mt.violet[600],onAction:Mt.violet[950],onActionSecondary:Mt.violet[200],onActionTertiary:Mt.violet[300]},success:{default:Mt.green[300],secondary:Mt.green[400],tertiary:Mt.green[500],onSuccess:Mt.green[950],onSuccessSecondary:Mt.green[200],onSuccessTertiary:Mt.green[300]},warning:{default:Mt.yellow[300],secondary:Mt.yellow[400],tertiary:Mt.yellow[500],onWarning:Mt.yellow[950],onWarningSecondary:Mt.yellow[200],onWarningTertiary:Mt.yellow[300]},danger:{default:Mt.red[400],secondary:Mt.red[500],tertiary:Mt.red[600],onDanger:Mt.red[950],onDangerSecondary:Mt.red[200],onDangerTertiary:Mt.red[300]},info:{default:Mt.blue[400],secondary:Mt.blue[500],tertiary:Mt.blue[600],onInfo:Mt.blue[950],onInfoSecondary:Mt.blue[200],onInfoTertiary:Mt.blue[300]},neutral:{default:Mt.slate[50],secondary:Mt.slate[300],tertiary:Mt.slate[500],onNeutral:Mt.slate[950],onNeutralSecondary:Mt.slate[200],onNeutralTertiary:Mt.slate[300]},disabled:{default:Mt.gray[600],secondary:Mt.gray[700],onDisabled:Mt.gray[400],onDisabledSecondary:Mt.gray[500]},utilities:{onOverlay:Et.white[800]}},border:{default:{default:Mt.slate[800],secondary:Mt.slate[700],tertiary:Mt.slate[500],subtleLow:Et.black[800],subtleMedium:Et.slate[200],subtleHigh:Et.black[400]},brand:{default:Mt.purple[700],secondary:Mt.purple[600],tertiary:Mt.purple[800],onBrand:Mt.purple[950],onBrandSecondary:Mt.purple[200],onBrandTertiary:Mt.purple[400]},action:{default:Mt.violet[600],secondary:Mt.violet[700],tertiary:Mt.violet[800],onAction:Mt.violet[950],onActionSecondary:Mt.violet[300],onActionTertiary:Mt.violet[200]},success:{default:Mt.green[300],secondary:Mt.green[400],tertiary:Mt.green[500]},warning:{default:Mt.yellow[300],secondary:Mt.yellow[400],tertiary:Mt.yellow[500]},danger:{default:Mt.red[500],secondary:Mt.red[600],tertiary:Mt.red[800],onDanger:Mt.red[400]},info:{default:Mt.blue[500],secondary:Mt.blue[600],tertiary:Mt.blue[800]},neutral:{default:Mt.slate[300],secondary:Mt.slate[500],tertiary:Mt.slate[700],onNeutral:Mt.slate[950],onNeutralSecondary:Mt.slate[200],onNeutralTertiary:Mt.slate[300]},disabled:{default:Mt.gray[700]},utilities:{swatch:"rgba(255, 255, 255, 0.24)"}},icon:{default:{default:Mt.slate[100],secondary:Mt.slate[400],tertiary:Mt.slate[600]},brand:{default:Mt.purple[300],secondary:Mt.purple[400],tertiary:Mt.purple[500],onBrand:Mt.purple[950],onBrandSecondary:Mt.purple[200],onBrandTertiary:Mt.purple[300]},action:{default:Mt.violet[400],secondary:Mt.violet[500],tertiary:Mt.violet[700],onAction:Mt.violet[950],onActionSecondary:Mt.violet[200],onActionTertiary:Mt.violet[300]},success:{default:Mt.green[400],secondary:Mt.green[600],tertiary:Mt.green[800],onSuccess:Mt.green[950],onSuccessSecondary:Mt.green[200],onSuccessTertiary:Mt.green[300]},warning:{default:Mt.yellow[400],secondary:Mt.yellow[600],tertiary:Mt.yellow[800],onWarning:Mt.yellow[950],onWarningSecondary:Mt.yellow[200],onWarningTertiary:Mt.yellow[300]},danger:{default:Mt.red[400],secondary:Mt.red[500],tertiary:Mt.red[600],onDanger:Mt.red[950],onDangerSecondary:Mt.red[200],onDangerTertiary:Mt.red[300]},info:{default:Mt.blue[400],secondary:Mt.blue[600],tertiary:Mt.blue[800],onInfo:Mt.blue[950],onInfoSecondary:Mt.blue[200],onInfoTertiary:Mt.blue[300]},neutral:{default:Mt.slate[100],secondary:Mt.slate[400],tertiary:Mt.slate[600],onNeutral:Mt.slate[950],onNeutralSecondary:Mt.slate[200],onNeutralTertiary:Mt.slate[300]},disabled:{default:Mt.gray[600],secondary:Mt.gray[700],onDisabled:Mt.gray[400],onDisabledSecondary:Mt.gray[500]},utilities:{onOverlay:Et.white[800]}}}},ma={color:{background:na,text:ra,border:oa,icon:la},typography:ia,spacing:Yt,radius:Xt,borderWidth:Kt,depth:Zt,iconSize:Qt,shadow:sa,blur:ca,transition:{fast:"150ms ease-in-out",base:"250ms ease-in-out",slow:"350ms ease-in-out",verySlow:"500ms ease-in-out"},duration:{instant:100,fast:150,base:250,slow:350,verySlow:500},easing:{linear:"linear",easeIn:"cubic-bezier(0.4, 0, 1, 1)",easeOut:"cubic-bezier(0, 0, 0.2, 1)",easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",spring:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},breakpoint:ta,media:aa,fontFamily:Ut,fontWeight:Ot,fontSize:Vt,lineHeight:qt,letterSpacing:jt,fontStyle:Gt},pa={colors:Mt,alphas:Et,space:Yt,radius:Xt,borderWidth:Kt,depth:Zt,iconSize:Qt,blur:Jt,elevation:ea,fontFamily:Ut,fontWeight:Ot,fontSize:Vt,lineHeight:qt,letterSpacing:jt,fontStyle:Gt,breakpoints:ta},ha={light:da,dark:ua};function ga(e,t="",a={}){for(const n in e){const r=e[n],o=t?`${t}-${fa(n)}`:fa(n);"object"!=typeof r||null===r||Array.isArray(r)?a[`--${o}`]=String(r):ga(r,o,a)}return a}function fa(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function _a(e){return ga(e)}const va="squarex-ui-theme";function ba(){return ma}function ya(e="light",t=!0){const[a,n]=o(()=>{if(t&&"undefined"!=typeof window){return localStorage.getItem(va)||e}return e}),r=s(()=>ha[a],[a]);l(()=>{if("undefined"==typeof window)return;const e=_a(r);!function(e,t){for(const[a,n]of Object.entries(t))e.style.setProperty(a,n)}(document.documentElement,e),document.documentElement.setAttribute("data-theme",a),t&&localStorage.setItem(va,a)},[r,a,t]);const c=i(e=>{n(e)},[]),d=i(()=>{n(e=>"light"===e?"dark":"light")},[]);return{theme:r,themeMode:a,setTheme:c,toggleTheme:d}}function wa(){const[e,t]=o(()=>"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").matches);return l(()=>{if("undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),a=e=>t(e.matches);return e.addEventListener?(e.addEventListener("change",a),()=>e.removeEventListener("change",a)):e.addListener?(e.addListener(a),()=>e.removeListener(a)):void 0},[]),e}function Ca(){const[e,t]=o(()=>{if("undefined"==typeof window)return{isMobile:!1,isTablet:!1,isDesktop:!1,isWide:!1,width:0};const e=window.innerWidth;return{isMobile:e>=ma.breakpoint.mobile&&e<ma.breakpoint.tablet,isTablet:e>=ma.breakpoint.tablet&&e<ma.breakpoint.desktop,isDesktop:e>=ma.breakpoint.desktop&&e<ma.breakpoint.wide,isWide:e>=ma.breakpoint.wide,width:e}});return l(()=>{if("undefined"==typeof window)return;const e=()=>{const e=window.innerWidth;t({isMobile:e>=ma.breakpoint.mobile&&e<ma.breakpoint.tablet,isTablet:e>=ma.breakpoint.tablet&&e<ma.breakpoint.desktop,isDesktop:e>=ma.breakpoint.desktop&&e<ma.breakpoint.wide,isWide:e>=ma.breakpoint.wide,width:e})};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}const xa={light:{background:"#ffffff",text:"#333333",grid:"#e0e0e0",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#cccccc",shadow:"rgba(0, 0, 0, 0.1)"},dark:{background:"#1a1a1a",text:"#ffffff",grid:"#333333",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#444444",shadow:"rgba(255, 255, 255, 0.1)"}};function ka(e){return{...xa.light,...e}}const Sa={default:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#feca57","#ff9ff3"],vibrant:["#ff4757","#2ed573","#3742fa","#ffa502","#ff6348","#5352ed"],pastel:["#ffb3ba","#baffc9","#bae1ff","#ffffba","#ffb3d9","#d4b3ff"],monochrome:["#f8f9fa","#e9ecef","#dee2e6","#ced4da","#adb5bd","#6c757d"],warm:["#ff6b6b","#ff8e53","#ffa726","#ffcc02","#ffeb3b","#fff176"],cool:["#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a"]},Pa={fadeIn:{duration:300,easing:"ease-in-out",keyframes:[{opacity:0},{opacity:1}]},slideUp:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideDown:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(-10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideLeft:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},slideRight:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(-10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},scaleIn:{duration:200,easing:"ease-out",keyframes:[{transform:"scale(0.95)",opacity:0},{transform:"scale(1)",opacity:1}]},scaleOut:{duration:200,easing:"ease-in",keyframes:[{transform:"scale(1)",opacity:1},{transform:"scale(0.95)",opacity:0}]},bounce:{duration:600,easing:"ease-in-out",keyframes:[{transform:"translateY(0)"},{transform:"translateY(-5px)"},{transform:"translateY(0)"}]},pulse:{duration:1e3,easing:"ease-in-out",iterations:"infinite",keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}]},spin:{duration:1e3,easing:"linear",iterations:"infinite",keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}]}};function Na(e,t,a){if(!e)return null;const n=Pa[t],r={duration:a?.duration||n.duration,delay:a?.delay||0,easing:a?.easing||n.easing,iterations:a?.iterations||1,direction:a?.direction||"normal",fillMode:a?.fillMode||"both"};return e.animate(n.keyframes,r)}function Ia(e,t,a){return e?e.animate(t,a):null}function La(e,t,a=100,n){return e.map((e,r)=>{const o={...n,delay:(n?.delay||0)+r*a};return Na(e,t,o)}).filter(Boolean)}function za(e,t,a=300,n="ease-in-out"){e&&(e.style.transition=t.map(e=>`${e} ${a}ms ${n}`).join(", "))}function Aa(e){e&&(e.style.transition="")}const Ba={fadeIn:"animate-fade-in",slideUp:"animate-slide-up",bounce:"animate-bounce-gentle",pulse:"animate-pulse-slow",spin:"animate-spin"};function Da(e,t){e&&e.classList.add(Ba[t])}function $a(e,t){e&&e.classList.remove(Ba[t])}function Ta(e,t={}){const{minimumFractionDigits:a=0,maximumFractionDigits:n=2,useGrouping:r=!0,currency:o="USD",style:l="decimal"}=t;return new Intl.NumberFormat("en-US",{style:l,currency:o,minimumFractionDigits:a,maximumFractionDigits:n,useGrouping:r}).format(e)}function Wa(e){if(0===e)return"0";const t=Math.abs(e),a=e<0?"-":"";return t>=1e12?`${a}${(t/1e12).toFixed(1)}T`:t>=1e9?`${a}${(t/1e9).toFixed(1)}B`:t>=1e6?`${a}${(t/1e6).toFixed(1)}M`:t>=1e3?`${a}${(t/1e3).toFixed(1)}K`:e.toString()}function Fa(e,t=1){return`${(100*e).toFixed(t)}%`}function Ra(e,t="USD",a=2){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:a,maximumFractionDigits:a}).format(e)}function Ha(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",...t};return new Intl.DateTimeFormat("en-US",n).format(a)}function Ma(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",...t};return new Intl.DateTimeFormat("en-US",n).format(a)}function Ea(e,t=new Date){const a=new Date(e),n=Math.floor((t.getTime()-a.getTime())/1e3);if(n<60)return"just now";const r=Math.floor(n/60);if(r<60)return`${r} minute${r>1?"s":""} ago`;const o=Math.floor(r/60);if(o<24)return`${o} hour${o>1?"s":""} ago`;const l=Math.floor(o/24);if(l<30)return`${l} day${l>1?"s":""} ago`;const i=Math.floor(l/30);if(i<12)return`${i} month${i>1?"s":""} ago`;const s=Math.floor(i/12);return`${s} year${s>1?"s":""} ago`}function Ua(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,t)).toFixed(2))} ${["Bytes","KB","MB","GB","TB"][t]}`}function Oa(e){const t=Math.floor(e/3600),a=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${a}:${n.toString().padStart(2,"0")}`}function Ga(e){const t=e.replace(/\D/g,"");return 10===t.length?`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`:11===t.length&&"1"===t[0]?`+1 (${t.slice(1,4)}) ${t.slice(4,7)}-${t.slice(7)}`:e}function Va(e){return(e.replace(/\D/g,"").match(/.{1,4}/g)||[]).join(" ").trim()}function qa(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function ja(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())}function Ya(e,t,a="..."){return e.length<=t?e:e.slice(0,t-a.length)+a}function Xa(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Ka(e,t){return`${qa(e)} ${t}`}function Za(e){return e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Qa(e){return e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{isValid:!0}:{isValid:!1,message:"Please enter a valid email address"}:{isValid:!1,message:"Email is required"}}function Ja(e){return e?e.length<8?{isValid:!1,message:"Password must be at least 8 characters long"}:/(?=.*[a-z])/.test(e)?/(?=.*[A-Z])/.test(e)?/(?=.*\d)/.test(e)?/(?=.*[@$!%*?&])/.test(e)?{isValid:!0}:{isValid:!1,message:"Password must contain at least one special character"}:{isValid:!1,message:"Password must contain at least one number"}:{isValid:!1,message:"Password must contain at least one uppercase letter"}:{isValid:!1,message:"Password must contain at least one lowercase letter"}:{isValid:!1,message:"Password is required"}}function en(e){const t=e.replace(/\D/g,"");return e?t.length<10||t.length>15?{isValid:!1,message:"Please enter a valid phone number"}:/^[\+]?[1-9][\d]{0,15}$/.test(t)?{isValid:!0}:{isValid:!1,message:"Please enter a valid phone number"}:{isValid:!1,message:"Phone number is required"}}function tn(e){try{return new URL(e),{isValid:!0}}catch{return{isValid:!1,message:"Please enter a valid URL"}}}function an(e){const t=e.replace(/\D/g,"");if(!e)return{isValid:!1,message:"Credit card number is required"};if(t.length<13||t.length>19)return{isValid:!1,message:"Please enter a valid credit card number"};let a=0,n=!1;for(let e=t.length-1;e>=0;e--){let r=parseInt(t[e]);n&&(r*=2,r>9&&(r-=9)),a+=r,n=!n}return a%10!=0?{isValid:!1,message:"Please enter a valid credit card number"}:{isValid:!0}}function nn(e,t){if(t.required&&(!e||""===e.toString().trim()))return{isValid:!1,message:"This field is required"};if(!e||""===e.toString().trim())return{isValid:!0};const a=e.toString();if(t.minLength&&a.length<t.minLength)return{isValid:!1,message:`Must be at least ${t.minLength} characters long`};if(t.maxLength&&a.length>t.maxLength)return{isValid:!1,message:`Must be no more than ${t.maxLength} characters long`};const n=Number(e);if(!isNaN(n)){if(void 0!==t.min&&n<t.min)return{isValid:!1,message:`Must be at least ${t.min}`};if(void 0!==t.max&&n>t.max)return{isValid:!1,message:`Must be no more than ${t.max}`}}return t.pattern&&!t.pattern.test(a)?{isValid:!1,message:"Invalid format"}:t.custom?t.custom(e):{isValid:!0}}function rn(e,t){const a={};let n=!0;for(const[r,o]of Object.entries(t)){const t=nn(e[r],o);t.isValid||(a[r]=t.message||"Invalid value",n=!1)}return{isValid:n,errors:a}}const on={email:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,phone:/^[\+]?[1-9][\d]{0,15}$/,url:/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,alphanumeric:/^[a-zA-Z0-9]+$/,alphabetic:/^[a-zA-Z\s]+$/,numeric:/^\d+$/,decimal:/^\d*\.?\d+$/,slug:/^[a-z0-9]+(?:-[a-z0-9]+)*$/,hexColor:/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ipAddress:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,uuid:/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i},ln={required:{required:!0},email:{required:!0,pattern:on.email},password:{required:!0,minLength:8},phone:{required:!0,pattern:on.phone},url:{required:!0,pattern:on.url},alphanumeric:{pattern:on.alphanumeric},numeric:{pattern:on.numeric},decimal:{pattern:on.decimal},slug:{pattern:on.slug},hexColor:{pattern:on.hexColor}};export{ve as Avatar,xe as AvatarBlock,Se as AvatarGroup,Ie as BackgroundGradient,ze as Badge,L as BarChart,Be as Breadcrumb,he as Button,fe as ButtonDanger,Qe as Card,Me as Categories,Ge as Cell,Ze as CellHeader,We as Checkbox,et as Chip,at as ChipList,rt as Dropdown,st as DropdownNested,lt as DropdownNestedColumn,M as GaugeChart,ue as Icon,dt as IconButton,mt as InputField,He as ItemRow,Ct as ListSearch,ht as Modal,ft as Notification,vt as Pagination,z as PieChart,Re as Radio,A as Sankey,yt as Search,oe as ShankeyPro,$ as ShankyFlow,kt as StatusIndicator,Pt as Tab,It as TabList,$t as Table,Wt as TextArea,Ht as Toast,Oe as Toggle,Da as addAnimationClass,de as allIcons,Ia as animateElement,Ba as animationClasses,qa as capitalizeFirst,ja as capitalizeWords,Sa as colorPalettes,ln as commonRules,Na as createAnimation,ka as createTheme,za as createTransition,Pa as defaultAnimations,xa as defaultThemes,Wa as formatCompactNumber,Va as formatCreditCard,Ra as formatCurrency,Ha as formatDate,Ma as formatDateTime,Oa as formatDuration,Za as formatFieldLabel,Ua as formatFileSize,Ta as formatNumber,Fa as formatPercentage,Ga as formatPhoneNumber,Ea as formatRelativeTime,Ka as formatValidationError,pa as primitives,$a as removeAnimationClass,Aa as removeTransition,Xa as slugify,La as staggerAnimation,ha as themes,ma as tokens,Ya as truncateText,Ca as useBreakpoint,wa as usePrefersDarkMode,ya as useTheme,ba as useTokens,an as validateCreditCard,Qa as validateEmail,nn as validateField,rn as validateForm,Ja as validatePassword,en as validatePhoneNumber,tn as validateURL,on as validationPatterns};
2
2
  //# sourceMappingURL=index.esm.js.map