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.
- package/dist/charts/components/ui/Avatar/Avatar.types.d.ts +1 -1
- package/dist/charts/components/ui/Avatar/Avatar.types.d.ts.map +1 -1
- package/dist/charts/components/ui/Avatar/AvatarBlock.d.ts +13 -0
- package/dist/charts/components/ui/Avatar/AvatarBlock.d.ts.map +1 -0
- package/dist/charts/components/ui/Avatar/AvatarGroup.d.ts +14 -0
- package/dist/charts/components/ui/Avatar/AvatarGroup.d.ts.map +1 -0
- package/dist/charts/components/ui/Avatar/index.d.ts +3 -1
- package/dist/charts/components/ui/Avatar/index.d.ts.map +1 -1
- package/dist/charts/components/ui/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/charts/components/ui/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/charts/components/ui/Button/Button.d.ts.map +1 -1
- package/dist/charts/components/ui/ButtonDanger/ButtonDanger.d.ts.map +1 -1
- package/dist/charts/components/ui/Cell/Cell.d.ts.map +1 -1
- package/dist/charts/components/ui/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/charts/components/ui/IconButton/IconButton.d.ts.map +1 -1
- package/dist/charts/components/ui/InputField/InputField.d.ts +5 -0
- package/dist/charts/components/ui/InputField/InputField.d.ts.map +1 -0
- package/dist/charts/components/ui/InputField/InputField.types.d.ts +27 -0
- package/dist/charts/components/ui/InputField/InputField.types.d.ts.map +1 -0
- package/dist/charts/components/ui/InputField/index.d.ts +3 -0
- package/dist/charts/components/ui/InputField/index.d.ts.map +1 -0
- package/dist/charts/components/ui/ListSearch/ListSearch.d.ts +5 -0
- package/dist/charts/components/ui/ListSearch/ListSearch.d.ts.map +1 -0
- package/dist/charts/components/ui/ListSearch/ListSearch.types.d.ts +2 -0
- package/dist/charts/components/ui/ListSearch/ListSearch.types.d.ts.map +1 -0
- package/dist/charts/components/ui/ListSearch/index.d.ts +3 -0
- package/dist/charts/components/ui/ListSearch/index.d.ts.map +1 -0
- package/dist/charts/components/ui/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/charts/components/ui/StatusIndicator/StatusIndicator.types.d.ts +1 -1
- package/dist/charts/components/ui/StatusIndicator/StatusIndicator.types.d.ts.map +1 -1
- package/dist/charts/components/ui/TextArea/TextArea.d.ts +0 -9
- package/dist/charts/components/ui/TextArea/TextArea.d.ts.map +1 -1
- package/dist/charts/components/ui/Toast/Toast.d.ts +11 -0
- package/dist/charts/components/ui/Toast/Toast.d.ts.map +1 -0
- package/dist/charts/components/ui/Toast/Toast.types.d.ts +2 -0
- package/dist/charts/components/ui/Toast/Toast.types.d.ts.map +1 -0
- package/dist/charts/components/ui/Toast/index.d.ts +3 -0
- package/dist/charts/components/ui/Toast/index.d.ts.map +1 -0
- package/dist/charts/components/ui/index.d.ts +8 -2
- package/dist/charts/components/ui/index.d.ts.map +1 -1
- package/dist/charts/index.d.ts +3 -0
- package/dist/charts/index.d.ts.map +1 -1
- package/dist/charts/tokens/core/breakpoints.d.ts +23 -0
- package/dist/charts/tokens/core/breakpoints.d.ts.map +1 -0
- package/dist/charts/tokens/core/colors.d.ts +186 -0
- package/dist/charts/tokens/core/colors.d.ts.map +1 -0
- package/dist/charts/tokens/core/index.d.ts +20 -0
- package/dist/charts/tokens/core/index.d.ts.map +1 -0
- package/dist/charts/tokens/core/spacing.d.ts +105 -0
- package/dist/charts/tokens/core/spacing.d.ts.map +1 -0
- package/dist/charts/tokens/core/typography.d.ts +52 -0
- package/dist/charts/tokens/core/typography.d.ts.map +1 -0
- package/dist/charts/tokens/index.d.ts +1646 -0
- package/dist/charts/tokens/index.d.ts.map +1 -0
- package/dist/charts/tokens/js/tokens.d.ts +482 -0
- package/dist/charts/tokens/js/tokens.d.ts.map +1 -0
- package/dist/charts/tokens/semantic/colors.d.ts +320 -0
- package/dist/charts/tokens/semantic/colors.d.ts.map +1 -0
- package/dist/charts/tokens/semantic/effects.d.ts +62 -0
- package/dist/charts/tokens/semantic/effects.d.ts.map +1 -0
- package/dist/charts/tokens/semantic/index.d.ts +18 -0
- package/dist/charts/tokens/semantic/index.d.ts.map +1 -0
- package/dist/charts/tokens/semantic/typography.d.ts +266 -0
- package/dist/charts/tokens/semantic/typography.d.ts.map +1 -0
- package/dist/charts/tokens/tailwind/config.d.ts +151 -0
- package/dist/charts/tokens/tailwind/config.d.ts.map +1 -0
- package/dist/charts/tokens/tailwind/index.d.ts +7 -0
- package/dist/charts/tokens/tailwind/index.d.ts.map +1 -0
- package/dist/charts/tokens/themes/dark.d.ts +308 -0
- package/dist/charts/tokens/themes/dark.d.ts.map +1 -0
- package/dist/charts/tokens/themes/index.d.ts +9 -0
- package/dist/charts/tokens/themes/index.d.ts.map +1 -0
- package/dist/charts/tokens/themes/light.d.ts +308 -0
- package/dist/charts/tokens/themes/light.d.ts.map +1 -0
- package/dist/charts/tokens/utils/cssVariables.d.ts +26 -0
- package/dist/charts/tokens/utils/cssVariables.d.ts.map +1 -0
- package/dist/charts/tokens/utils/hooks.d.ts +773 -0
- package/dist/charts/tokens/utils/hooks.d.ts.map +1 -0
- package/dist/charts/tokens/utils/index.d.ts +7 -0
- package/dist/charts/tokens/utils/index.d.ts.map +1 -0
- package/dist/charts/types/ui.d.ts +42 -1
- package/dist/charts/types/ui.d.ts.map +1 -1
- package/dist/components/ui/Avatar/Avatar.types.d.ts +1 -1
- package/dist/components/ui/Avatar/Avatar.types.d.ts.map +1 -1
- package/dist/components/ui/Avatar/AvatarBlock.d.ts +13 -0
- package/dist/components/ui/Avatar/AvatarBlock.d.ts.map +1 -0
- package/dist/components/ui/Avatar/AvatarGroup.d.ts +14 -0
- package/dist/components/ui/Avatar/AvatarGroup.d.ts.map +1 -0
- package/dist/components/ui/Avatar/index.d.ts +3 -1
- package/dist/components/ui/Avatar/index.d.ts.map +1 -1
- package/dist/components/ui/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/components/ui/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/Button/Button.d.ts.map +1 -1
- package/dist/components/ui/ButtonDanger/ButtonDanger.d.ts.map +1 -1
- package/dist/components/ui/Cell/Cell.d.ts.map +1 -1
- package/dist/components/ui/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/ui/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/ui/InputField/InputField.d.ts +5 -0
- package/dist/components/ui/InputField/InputField.d.ts.map +1 -0
- package/dist/components/ui/InputField/InputField.types.d.ts +27 -0
- package/dist/components/ui/InputField/InputField.types.d.ts.map +1 -0
- package/dist/components/ui/InputField/index.d.ts +3 -0
- package/dist/components/ui/InputField/index.d.ts.map +1 -0
- package/dist/components/ui/ListSearch/ListSearch.d.ts +5 -0
- package/dist/components/ui/ListSearch/ListSearch.d.ts.map +1 -0
- package/dist/components/ui/ListSearch/ListSearch.types.d.ts +2 -0
- package/dist/components/ui/ListSearch/ListSearch.types.d.ts.map +1 -0
- package/dist/components/ui/ListSearch/index.d.ts +3 -0
- package/dist/components/ui/ListSearch/index.d.ts.map +1 -0
- package/dist/components/ui/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/ui/StatusIndicator/StatusIndicator.types.d.ts +1 -1
- package/dist/components/ui/StatusIndicator/StatusIndicator.types.d.ts.map +1 -1
- package/dist/components/ui/TextArea/TextArea.d.ts +0 -9
- package/dist/components/ui/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/ui/Toast/Toast.d.ts +11 -0
- package/dist/components/ui/Toast/Toast.d.ts.map +1 -0
- package/dist/components/ui/Toast/Toast.types.d.ts +2 -0
- package/dist/components/ui/Toast/Toast.types.d.ts.map +1 -0
- package/dist/components/ui/Toast/index.d.ts +3 -0
- package/dist/components/ui/Toast/index.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +8 -2
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tokens/core/breakpoints.d.ts +23 -0
- package/dist/tokens/core/breakpoints.d.ts.map +1 -0
- package/dist/tokens/core/colors.d.ts +186 -0
- package/dist/tokens/core/colors.d.ts.map +1 -0
- package/dist/tokens/core/index.d.ts +20 -0
- package/dist/tokens/core/index.d.ts.map +1 -0
- package/dist/tokens/core/spacing.d.ts +105 -0
- package/dist/tokens/core/spacing.d.ts.map +1 -0
- package/dist/tokens/core/typography.d.ts +52 -0
- package/dist/tokens/core/typography.d.ts.map +1 -0
- package/dist/tokens/index.d.ts +1646 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/js/tokens.d.ts +482 -0
- package/dist/tokens/js/tokens.d.ts.map +1 -0
- package/dist/tokens/semantic/colors.d.ts +320 -0
- package/dist/tokens/semantic/colors.d.ts.map +1 -0
- package/dist/tokens/semantic/effects.d.ts +62 -0
- package/dist/tokens/semantic/effects.d.ts.map +1 -0
- package/dist/tokens/semantic/index.d.ts +18 -0
- package/dist/tokens/semantic/index.d.ts.map +1 -0
- package/dist/tokens/semantic/typography.d.ts +266 -0
- package/dist/tokens/semantic/typography.d.ts.map +1 -0
- package/dist/tokens/tailwind/config.d.ts +151 -0
- package/dist/tokens/tailwind/config.d.ts.map +1 -0
- package/dist/tokens/tailwind/index.d.ts +7 -0
- package/dist/tokens/tailwind/index.d.ts.map +1 -0
- package/dist/tokens/themes/dark.d.ts +308 -0
- package/dist/tokens/themes/dark.d.ts.map +1 -0
- package/dist/tokens/themes/index.d.ts +9 -0
- package/dist/tokens/themes/index.d.ts.map +1 -0
- package/dist/tokens/themes/light.d.ts +308 -0
- package/dist/tokens/themes/light.d.ts.map +1 -0
- package/dist/tokens/utils/cssVariables.d.ts +26 -0
- package/dist/tokens/utils/cssVariables.d.ts.map +1 -0
- package/dist/tokens/utils/hooks.d.ts +773 -0
- package/dist/tokens/utils/hooks.d.ts.map +1 -0
- package/dist/tokens/utils/index.d.ts +7 -0
- package/dist/tokens/utils/index.d.ts.map +1 -0
- package/dist/types/ui.d.ts +42 -1
- package/dist/types/ui.d.ts.map +1 -1
- package/dist/ui/components/ui/Avatar/Avatar.types.d.ts +1 -1
- package/dist/ui/components/ui/Avatar/Avatar.types.d.ts.map +1 -1
- package/dist/ui/components/ui/Avatar/AvatarBlock.d.ts +13 -0
- package/dist/ui/components/ui/Avatar/AvatarBlock.d.ts.map +1 -0
- package/dist/ui/components/ui/Avatar/AvatarGroup.d.ts +14 -0
- package/dist/ui/components/ui/Avatar/AvatarGroup.d.ts.map +1 -0
- package/dist/ui/components/ui/Avatar/index.d.ts +3 -1
- package/dist/ui/components/ui/Avatar/index.d.ts.map +1 -1
- package/dist/ui/components/ui/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/ui/components/ui/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/ui/components/ui/Button/Button.d.ts.map +1 -1
- package/dist/ui/components/ui/ButtonDanger/ButtonDanger.d.ts.map +1 -1
- package/dist/ui/components/ui/Cell/Cell.d.ts.map +1 -1
- package/dist/ui/components/ui/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/ui/components/ui/IconButton/IconButton.d.ts.map +1 -1
- package/dist/ui/components/ui/InputField/InputField.d.ts +5 -0
- package/dist/ui/components/ui/InputField/InputField.d.ts.map +1 -0
- package/dist/ui/components/ui/InputField/InputField.types.d.ts +27 -0
- package/dist/ui/components/ui/InputField/InputField.types.d.ts.map +1 -0
- package/dist/ui/components/ui/InputField/index.d.ts +3 -0
- package/dist/ui/components/ui/InputField/index.d.ts.map +1 -0
- package/dist/ui/components/ui/ListSearch/ListSearch.d.ts +5 -0
- package/dist/ui/components/ui/ListSearch/ListSearch.d.ts.map +1 -0
- package/dist/ui/components/ui/ListSearch/ListSearch.types.d.ts +2 -0
- package/dist/ui/components/ui/ListSearch/ListSearch.types.d.ts.map +1 -0
- package/dist/ui/components/ui/ListSearch/index.d.ts +3 -0
- package/dist/ui/components/ui/ListSearch/index.d.ts.map +1 -0
- package/dist/ui/components/ui/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/ui/components/ui/StatusIndicator/StatusIndicator.types.d.ts +1 -1
- package/dist/ui/components/ui/StatusIndicator/StatusIndicator.types.d.ts.map +1 -1
- package/dist/ui/components/ui/TextArea/TextArea.d.ts +0 -9
- package/dist/ui/components/ui/TextArea/TextArea.d.ts.map +1 -1
- package/dist/ui/components/ui/Toast/Toast.d.ts +11 -0
- package/dist/ui/components/ui/Toast/Toast.d.ts.map +1 -0
- package/dist/ui/components/ui/Toast/Toast.types.d.ts +2 -0
- package/dist/ui/components/ui/Toast/Toast.types.d.ts.map +1 -0
- package/dist/ui/components/ui/Toast/index.d.ts +3 -0
- package/dist/ui/components/ui/Toast/index.d.ts.map +1 -0
- package/dist/ui/components/ui/index.d.ts +8 -2
- package/dist/ui/components/ui/index.d.ts.map +1 -1
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.esm.css +1 -1
- package/dist/ui/index.esm.js +1 -1
- package/dist/ui/index.esm.js.map +1 -1
- package/dist/ui/tokens/core/breakpoints.d.ts +23 -0
- package/dist/ui/tokens/core/breakpoints.d.ts.map +1 -0
- package/dist/ui/tokens/core/colors.d.ts +186 -0
- package/dist/ui/tokens/core/colors.d.ts.map +1 -0
- package/dist/ui/tokens/core/index.d.ts +20 -0
- package/dist/ui/tokens/core/index.d.ts.map +1 -0
- package/dist/ui/tokens/core/spacing.d.ts +105 -0
- package/dist/ui/tokens/core/spacing.d.ts.map +1 -0
- package/dist/ui/tokens/core/typography.d.ts +52 -0
- package/dist/ui/tokens/core/typography.d.ts.map +1 -0
- package/dist/ui/tokens/index.d.ts +1646 -0
- package/dist/ui/tokens/index.d.ts.map +1 -0
- package/dist/ui/tokens/js/tokens.d.ts +482 -0
- package/dist/ui/tokens/js/tokens.d.ts.map +1 -0
- package/dist/ui/tokens/semantic/colors.d.ts +320 -0
- package/dist/ui/tokens/semantic/colors.d.ts.map +1 -0
- package/dist/ui/tokens/semantic/effects.d.ts +62 -0
- package/dist/ui/tokens/semantic/effects.d.ts.map +1 -0
- package/dist/ui/tokens/semantic/index.d.ts +18 -0
- package/dist/ui/tokens/semantic/index.d.ts.map +1 -0
- package/dist/ui/tokens/semantic/typography.d.ts +266 -0
- package/dist/ui/tokens/semantic/typography.d.ts.map +1 -0
- package/dist/ui/tokens/tailwind/config.d.ts +151 -0
- package/dist/ui/tokens/tailwind/config.d.ts.map +1 -0
- package/dist/ui/tokens/tailwind/index.d.ts +7 -0
- package/dist/ui/tokens/tailwind/index.d.ts.map +1 -0
- package/dist/ui/tokens/themes/dark.d.ts +308 -0
- package/dist/ui/tokens/themes/dark.d.ts.map +1 -0
- package/dist/ui/tokens/themes/index.d.ts +9 -0
- package/dist/ui/tokens/themes/index.d.ts.map +1 -0
- package/dist/ui/tokens/themes/light.d.ts +308 -0
- package/dist/ui/tokens/themes/light.d.ts.map +1 -0
- package/dist/ui/tokens/utils/cssVariables.d.ts +26 -0
- package/dist/ui/tokens/utils/cssVariables.d.ts.map +1 -0
- package/dist/ui/tokens/utils/hooks.d.ts +773 -0
- package/dist/ui/tokens/utils/hooks.d.ts.map +1 -0
- package/dist/ui/tokens/utils/index.d.ts +7 -0
- package/dist/ui/tokens/utils/index.d.ts.map +1 -0
- package/dist/ui/types/ui.d.ts +42 -1
- package/dist/ui/types/ui.d.ts.map +1 -1
- package/package.json +20 -7
- package/public/logo/Logo.svg +9 -0
- package/src/tokens/README.md +199 -0
- package/src/tokens/core/breakpoints.ts +25 -0
- package/src/tokens/core/colors.ts +200 -0
- package/src/tokens/core/index.ts +20 -0
- package/src/tokens/core/spacing.ts +114 -0
- package/src/tokens/core/typography.ts +58 -0
- package/src/tokens/css/variables-dark.css +480 -0
- package/src/tokens/css/variables-light.css +480 -0
- package/src/tokens/index.ts +163 -0
- package/src/tokens/js/tokens.ts +486 -0
- package/src/tokens/semantic/colors.ts +383 -0
- package/src/tokens/semantic/effects.ts +69 -0
- package/src/tokens/semantic/index.ts +18 -0
- package/src/tokens/semantic/typography.ts +284 -0
- package/src/tokens/tailwind/config.ts +188 -0
- package/src/tokens/tailwind/index.ts +7 -0
- package/src/tokens/themes/dark.ts +311 -0
- package/src/tokens/themes/index.ts +10 -0
- package/src/tokens/themes/light.ts +17 -0
- package/src/tokens/utils/cssVariables.ts +88 -0
- package/src/tokens/utils/hooks.ts +192 -0
- package/src/tokens/utils/index.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("d3"),n=require("antd"),o=require("@dnd-kit/core"),r=require("@dnd-kit/sortable"),l=require("@dnd-kit/utilities");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var c=i(t),d=s(a);const u={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()},m={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}},h={mobile:640,tablet:1024,desktop:1024},p=75,g=16,f=1500,_=20,v=e=>`${e.label}: ${e.value.toLocaleString()} (${(100*e.percentage).toFixed(1)}%)`,b="#7E22CE",x="#7C3AED",w="#DDD6FE",C="#F3F4F6",y="#B4AAFF",k="#8B5FBF",P="#A78BFA",S="#642CFD",N="#131313",j="#5B5B5B",I="#6B7280",A="#059669",L="#7090B0",D=(e,t=40)=>0===e?0:e>=1e4?t/1:e>5e3?t/2:e<5e3?t/3:t,B={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}}}},z={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}}}},$={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}}}},T={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:b,gradientColors:{start:y,end:b}},{id:"flow2",type:"main",color:x,gradientColors:{start:y,end:x}},{id:"flow3",type:"main",color:"#A78BFA",gradientColors:{start:y,end:b}},{id:"flow4",type:"main",color:w,gradientColors:{start:y,end:w}},{id:"flow5",type:"main",color:C,gradientColors:{start:y,end:C}},{id:"source1",type:"source",sourceLabel:"Source 1",sourceValue:15e3,color:k,gradientColors:{start:y,end:k}},{id:"source2",type:"source",sourceLabel:"Source 2",sourceValue:12e3,color:x,gradientColors:{start:y,end:x}},{id:"source3",type:"source",sourceLabel:"Source 3",sourceValue:8e3,color:P,gradientColors:{start:y,end:P}},{id:"source4",type:"source",sourceLabel:"Source 4",sourceValue:5e3,color:w,gradientColors:{start:y,end:w}},{id:"source5",type:"source",sourceLabel:"Source 5",sourceValue:2e3,color:C,gradientColors:{start:y,end:C}}]);function R(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=R(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function F(){for(var e,t,a=0,n="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=R(e))&&(n&&(n+=" "),n+=t);return n}var W={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"},E={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 M=[{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}],U=({name:t,size:a="medium",variant:n="default",className:o="",style:r={},alt:l="",...i})=>{const s=t?.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 e=M.find(e=>e.name===s||e.name===t);return`https://cdn.jsdelivr.net/npm/squarex-ui-component-lib@latest/public/icon/${e?e.filePath.split("/").pop():`${t}.svg`}`})(),u=l||`${s} icon`,m=[E.icon,E[`variant_${n}`],o].filter(Boolean).join(" "),h={width:c,height:c,...r};return e.jsx("img",{src:d,alt:u,className:m,style:h,...i})},H=({className:t})=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("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"})}),q=({className:t})=>e.jsxs("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("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"})]}),V=({label:t="Button",showLeadingIcon:a=!0,showTrailingIcon:n=!1,leadingIcon:o,trailingIcon:r,leftIcon:l,rightIcon:i,variant:s,buttonStyle:c="primary",state:d="default",size:u="medium",onClick:m,disabled:h,loading:p,className:g="",children:f,..._})=>{const v=p?"loading":h?"disabled":d,b=h||p||"disabled"===v,x=F(W.button,W[`style_${s||c||"primary"}`],W[`state_${v}`],W[`size_${"md"===u?"medium":"sm"===u?"small":u}`],g),w="Button"===t&&f?f:t;return e.jsxs("button",{className:x,onClick:m,disabled:b,"aria-disabled":b,..._,children:[(()=>{if(!a)return null;const t=o||l;return t?"string"==typeof t?e.jsx(U,{name:t,className:W.icon}):t:"loading"===v?e.jsx(q,{className:W.loaderIcon}):e.jsx(H,{className:W.icon})})(),e.jsx("span",{className:W.label,children:w}),(()=>{if(!n)return null;const t=r||i;return t?"string"==typeof t?e.jsx(U,{name:t,className:W.icon}):t:e.jsx(H,{className:W.icon})})()]})};var O={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 G=({label:t="Button",showLeadingIcon:a=!0,showTrailingIcon:n=!1,leadingIcon:o,trailingIcon:r,style:l="primary",state:i="default",size:s="medium",onClick:c,disabled:d,loading:u,className:m="",...h})=>{const p=u?"loading":d?"disabled":i,g=d||u||"disabled"===p,f=[O.button,O[`style_${l}`],O[`state_${p}`],O[`size_${s}`],m].filter(Boolean).join(" ");return e.jsxs("button",{className:f,onClick:c,disabled:g,"aria-disabled":g,...h,children:[a?o||("loading"===p?e.jsx(U,{name:"spinner",size:16,className:O.loaderIcon}):e.jsx(U,{name:"star",size:14,className:O.icon})):null,e.jsx("span",{className:O.label,children:t}),n?r||e.jsx(U,{name:"star",size:14,className:O.icon}):null]})};var Y={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"};var X="BackgroundGradient-module_container__h-ECQ",K="BackgroundGradient-module_gradientBlobsImage__HSoZE";var Z={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"};var Q={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"};var J={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"},ee={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",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:t=!1,indeterminate:a=!1,disabled:n=!1,state:o="default",size:r="medium",label:l="",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="number"==typeof r,g=p?"custom":r.toLowerCase(),f=n||"disabled"===o,_=[te.checkboxContainer,s].filter(Boolean).join(" "),v=[te.checkbox,te[`size_${g}`],t&&te.checkboxChecked,!t&&a&&te.checkboxIndeterminateState,f&&te.checkboxDisabled,!f&&te[`state_${h}`]].filter(Boolean).join(" "),b=c||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:_,children:[e.jsxs("div",{className:te.checkboxWrapper,children:[e.jsx("input",{type:"checkbox",id:b,name:d,value:u,checked:t,disabled:f,onChange:e=>{!f&&i&&i(e)},className:te.checkboxInput,"aria-checked":a?"mixed":t,"aria-disabled":f,...m}),e.jsxs("label",{htmlFor:b,className:v,style:p?{width:`${r}px`,height:`${r}px`}:{},children:[t&&e.jsx("div",{className:te.checkboxCheck,children:e.jsx("div",{className:te.checkIconWrapper,children:e.jsx("div",{className:te.checkIconInner,children:e.jsx(U,{name:"Check",size:12,className:te.checkIcon})})})}),!t&&a&&e.jsx("div",{className:te.checkboxIndeterminate,children:e.jsx("div",{className:te.indeterminateBar})})]})]}),l&&e.jsx("label",{htmlFor:b,className:te.label,children:l})]})};var ne={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 oe=({checked:t=!1,disabled:a=!1,state:n="default",size:o="medium",label:r="",name:l,value:i,onChange:s,className:c="",id:d,...u})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(n),h="number"==typeof o,p=h?"custom":o.toLowerCase(),g=a||"disabled"===n,f=[ne.radioContainer,c].filter(Boolean).join(" "),_=[ne.radio,ne[`size_${p}`],t&&ne.radioChecked,g&&ne.radioDisabled,!g&&ne[`state_${m}`]].filter(Boolean).join(" "),v=d||`radio-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:f,children:[e.jsxs("div",{className:ne.radioWrapper,children:[e.jsx("input",{type:"radio",id:v,name:l,value:i,checked:t,disabled:g,onChange:e=>{!g&&s&&s(e)},className:ne.radioInput,"aria-checked":t,"aria-disabled":g,...u}),e.jsx("label",{htmlFor:v,className:_,style:h?{width:`${o}px`,height:`${o}px`}:{},children:t&&e.jsx("div",{className:ne.radioDot})})]}),r&&e.jsx("label",{htmlFor:v,className:ne.label,children:r})]})},re=({showLeftIcon:t=!0,hasCheckbox:a=!1,hasRadio:n=!1,checked:o=!1,chooseLeftIcon:r=null,label:l="Item",showBody:i=!1,body:s="Body",showInfo:c=!1,showRightIcon:d=!1,chooseRightIcon:u=null,type:m="Default",onClick:h,className:p="",...g})=>{const f=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"disabled"===t?"disabled":"selected"===t?"selected":"danger"===t?"danger":"default"})(m),_="disabled"===f,v=_?"div":"button",b=[ee.itemRow,ee[`type_${f}`],p].filter(Boolean).join(" "),x=o||"selected"===f;return e.jsxs(v,{className:b,onClick:h,disabled:_,type:"button"===v?"button":void 0,...g,children:[c&&e.jsx("div",{className:ee.infoIcon,children:e.jsx(U,{name:"Info",size:14,className:ee.infoIconImg})}),e.jsxs("div",{className:ee.content,children:[t&&e.jsx("div",{className:ee.iconWrapper,children:r||e.jsx(U,{name:"File",size:14,className:ee.fileIconImg})}),e.jsxs("div",{className:ee.text,children:[e.jsx("p",{className:ee.label,children:l}),i&&e.jsx("p",{className:ee.body,children:s})]}),d&&e.jsx("div",{className:ee.iconWrapper,children:u||e.jsx(U,{name:"Star",size:14,className:ee.starIconImg})})]}),a&&e.jsx("div",{className:ee.checkboxField,children:e.jsx(ae,{checked:x,disabled:_,size:16,readOnly:!h})}),n&&e.jsx("div",{className:ee.radioField,children:e.jsx(oe,{checked:x,disabled:_,size:16,readOnly:!h})})]})};var le={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"},ie={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 se=({checked:t=!1,disabled:a=!1,state:n="default",size:o="medium",label:r="",onChange:l,className:i="",id:s,name:c,value:d,...u})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(n),h=o.toLowerCase(),p=a||"disabled"===n,g=[ie.toggleContainer,i].filter(Boolean).join(" "),f=[ie.toggle,ie[`size_${h}`],t&&ie.toggleChecked,p&&ie.toggleDisabled,!p&&ie[`state_${m}`]].filter(Boolean).join(" "),_=s||`toggle-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:g,children:[e.jsxs("div",{className:ie.toggleWrapper,children:[e.jsx("input",{type:"checkbox",id:_,name:c,value:d,checked:t,disabled:p,onChange:e=>{!p&&l&&l(e)},className:ie.toggleInput,"aria-checked":t,"aria-disabled":p,role:"switch",...u}),e.jsx("label",{htmlFor:_,className:f,children:e.jsx("span",{className:ie.toggleThumb})})]}),r&&e.jsx("label",{htmlFor:_,className:ie.label,children:r})]})};var ce="CellHeader-module_cellHeader__9mlaW",de="CellHeader-module_sortable__bpx5y",ue="CellHeader-module_content__6-yV0",me="CellHeader-module_checkboxWrapper__ah1PJ",he="CellHeader-module_sortIcon__6rgJk",pe="CellHeader-module_label__nRBcj";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 fe=({label:t="Label",showRightIcon:a=!0,showLeftIcon:n=!0,chooseLeftIcon:o=null,chooseRightIcon:r=null,state:l="default",size:i="medium",onRemove:s,onClick:c,className:d="",...u})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"default"})(l),h=(i||"medium").toLowerCase(),p="small"===h?12:14,g=[ge.chip,ge[`size_${h}`],ge[`state_${m}`],d].filter(Boolean).join(" "),f=c?"button":"div";return e.jsxs(f,{className:g,onClick:c,type:c?"button":void 0,...u,children:[n?o||e.jsx("div",{className:ge.iconWrapper,children:e.jsx(U,{name:"x",size:p,className:ge.icon,variant:"active"===m?"white":"default"})}):null,e.jsx("span",{className:ge.label,children:t}),a?r||e.jsx("div",{className:ge.iconWrapper,children:e.jsx(U,{name:"x",size:p,className:ge.icon,variant:"active"===m?"white":"default",onClick:e=>{e.stopPropagation(),s&&s()}})}):null]})};var _e={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-"};var ve={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"};var be={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 xe=({title:a="Title",expanded:n=!0,chips:o=[],items:r=[],onClearAll:l,onChipRemove:i,onItemClick:s,className:c="",...d})=>{const[u,m]=t.useState(n),[h,p]=t.useState(""),g=[be.dropdownNestedColumn,c].filter(Boolean).join(" "),f=e.jsxs("div",{className:be.titleAndCta,children:[e.jsx("p",{className:be.titleText,children:a}),e.jsx("button",{className:be.clearAllButton,onClick:e=>{e.stopPropagation(),l&&l()},type:"button",children:e.jsx("p",{className:be.clearAllText,children:"Clear all"})})]}),_=r.filter(e=>e.label.toLowerCase().includes(h.toLowerCase()));return e.jsxs("div",{className:g,...d,children:[e.jsxs("div",{className:be.titleFrame,children:[f,e.jsx("button",{className:be.chevronButton,onClick:()=>{m(!u)},type:"button",children:e.jsx("div",{className:be.chevronContainer,children:e.jsx("div",{className:be.chevronIcon,style:{transform:u?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:e.jsx(U,{name:"caret-up",size:16})})})})]}),u&&e.jsx("div",{className:be.dropdownWithSearch,children:e.jsxs("div",{className:be.dropdownContent,children:[e.jsx("div",{className:be.chipListSection,children:o.length>0?e.jsxs("div",{className:be.chipGrid,children:[o.slice(0,5).map(t=>e.jsx(fe,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{i&&i(t)}},t.id||t.label)),o.length>5&&e.jsx(fe,{label:"+"+(o.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:be.moreChipsChip})]}):e.jsx("div",{className:be.noChips,children:"No items selected"})}),e.jsx("div",{className:be.searchInputSection,children:e.jsxs("div",{className:be.searchInput,children:[e.jsx(U,{name:"magnifying-glass",size:16,className:be.searchIcon}),e.jsx("input",{type:"text",className:be.searchField,placeholder:"Search",value:h,onChange:e=>p(e.target.value)})]})}),e.jsx("div",{className:be.itemsList,children:e.jsx("div",{className:be.itemsContainer,children:_.length>0?_.map((t,a)=>e.jsx(re,{label:t.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:t.checked||!1,type:t.type||"Default",onClick:()=>{s&&s(t)}},t.id||a)):e.jsx("div",{className:be.noItems,children:"No items found"})})})]})})]})};var we={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"};var Ce={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"};var ye={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"};var ke={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 Pe=({count:t=0,variant:a="primary",size:n="medium",maxCount:o=99,className:r="",...l})=>{const i=[ke.notification,ke[`variant_${a}`],ke[`size_${n}`],r].filter(Boolean).join(" ");return e.jsx("span",{className:i,...l,children:(()=>{if("number"==typeof t&&t>o)return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:ke.count,children:o}),e.jsx("span",{className:ke.plus,children:"+"})]});if("string"==typeof t&&t.endsWith("+")){const a=t.slice(0,-1);return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:ke.count,children:a}),e.jsx("span",{className:ke.plus,children:"+"})]})}return t})()})};var Se={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};var Ne={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"};var je={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"};var Ie={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 Ae=({label:t,count:a,isActive:n=!1,disabled:o=!1,onClick:r,className:l="",...i})=>{const s=[Ie.tab,n&&Ie.active,o&&Ie.disabled,l].filter(Boolean).join(" ");return e.jsxs("button",{className:s,onClick:e=>{!o&&r&&r(e)},disabled:o,type:"button",role:"tab","aria-selected":n,...i,children:[e.jsx("span",{className:Ie.label,children:t}),null!=a&&e.jsx(Pe,{count:a,variant:o?"subtle":n?"primary":"neutral",size:"small",className:Ie.notification}),n&&e.jsx("div",{className:Ie.underline})]})};var Le={tabList:"TabList-module_tabList__sSh3n"};var De={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 Be=t.createContext(null),ze=({children:t,id:a,rowKey:n,row:o})=>{const{attributes:i,listeners:s,setNodeRef:c,transform:d,transition:u,isDragging:m}=r.useSortable({id:a}),h={transform:l.CSS.Transform.toString(d),transition:u,opacity:m?.5:1};return e.jsx(Be.Provider,{value:{attributes:i,listeners:s},children:e.jsx("tr",{ref:c,style:h,className:`${m?De.rowDragging:""}`,children:t})})},$e=()=>{const a=t.useContext(Be);if(!a)return null;const{attributes:n,listeners:o}=a;return e.jsx("td",{className:De.dragHandleCell,children:e.jsx("div",{className:De.dragHandle,...o,...n,children:e.jsx(U,{name:"dots-six-vertical",size:12})})})},Te=({columnKey:a,onResizeStart:n,onResize:o,onResizeEnd:r})=>{const l=t.useRef(null),[i,s]=t.useState(!1),c=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),s(!0);const t=e.clientX,i=l.current?.parentElement?.offsetWidth||0,c=e=>{const n=e.clientX-t,r=Math.max(50,i+n);o&&o(a,r)},d=()=>{s(!1),r&&r(a),document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect=""};n&&n(a),document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[a,o,n,r]);return e.jsx("div",{ref:l,className:`${De.resizeHandle} ${i?De.resizing:""}`,onMouseDown:c,title:"Drag to resize column",children:e.jsx("div",{className:De.resizeHandleLine})})};var Re={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 Fe={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)"}};const We={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 Ee(e,t,a){if(!e)return null;const n=We[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)}const Me={fadeIn:"animate-fade-in",slideUp:"animate-slide-up",bounce:"animate-bounce-gentle",pulse:"animate-pulse-slow",spin:"animate-spin"};function Ue(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function He(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}}const qe={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},Ve={required:{required:!0},email:{required:!0,pattern:qe.email},password:{required:!0,minLength:8},phone:{required:!0,pattern:qe.phone},url:{required:!0,pattern:qe.url},alphanumeric:{pattern:qe.alphanumeric},numeric:{pattern:qe.numeric},decimal:{pattern:qe.decimal},slug:{pattern:qe.slug},hexColor:{pattern:qe.hexColor}};exports.Avatar=({src:t,initials:a,alt:n,size:o="medium",shape:r="circle",className:l="",...i})=>{const s=[Y.avatar,Y[`size_${o}`],Y[`shape_${r}`],!t&&a?Y.initialsBg:"",l].filter(Boolean).join(" ");return e.jsx("div",{className:s,...i,children:t?e.jsx("img",{src:t,alt:n||a||"avatar",className:Y.image}):e.jsx("span",{className:Y.initials,children:a})})},exports.BackgroundGradient=({className:t="",mode:a="Light Mode BG",...n})=>e.jsx("div",{className:`${X} ${t}`,"data-mode":a,...n,children:e.jsx("img",{className:K,src:`/bg/Mode=${a}.svg`,alt:`${a} Blobs`})}),exports.Badge=({label:t="Badge",type:a="default",size:n="medium",className:o="",children:r,...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=[Z.badge,Z[`type_${i}`],Z[`size_${s}`],o].filter(Boolean).join(" ");return e.jsx("span",{className:c,...l,children:r||t})},exports.BarChart=a=>{const n={...u,...a},{data:o,title:r,titleStyle:l,titleClassName:i,width:s,height:c,margin:m,colors:h,showGrid:p,animate:g,responsive:f,formatValue:_,className:v,style:b,onBarClick:x,onBarHover:w,showTooltip:C,tooltipStyle:y,tooltipClassName:k,tooltipContent:P,showLegend:S=!0,legendPosition:N="bottom",legendStyle:j,legendClassName:I,legendTitle:A,showYAxis:L=!0,showYAxisLine:D=!1,showYAxisTicks:B=!1,yAxisStyle:z,yAxisClassName:$,yAxisLabelStyle:T,yAxisLabelClassName:R,cornerRadius:F,barPadding:W,tickCount:E}=n,M=t.useRef(null),U=t.useRef(null),H=t.useRef(null),[q,V]=t.useState({width:s||800,height:c||400}),[O,G]=t.useState(!1);t.useEffect(()=>{if(G(!0),!f)return;const e=()=>{if(U.current){const e=U.current.getBoundingClientRect().width,t=Math.max(300,e),a=Math.max(300,.5*t);V({width:t,height:a})}};let t;U.current&&(t=new ResizeObserver(e),t.observe(U.current)),window.addEventListener("resize",e);const a=setTimeout(e,0);return()=>{t&&t.disconnect(),window.removeEventListener("resize",e),clearTimeout(a)}},[f]),t.useEffect(()=>{if(!O||!o||0===o.length)return;const e=d.select(M.current);e.selectAll("*").remove();const t=q.width-(m?.left||0)-(m?.right||0),a=q.height-(m?.top||0)-(m?.bottom||0),n=e.attr("width",q.width).attr("height",q.height).append("g").attr("transform",`translate(${m?.left||0},${m?.top||0})`);if(h?.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",h.gradient.start),t.append("stop").attr("offset","100%").attr("stop-color",h.gradient.end)}const r=d.scaleBand().domain(o.map(e=>e.category)).range([0,t]).padding(W||.6),l=d.max(o,e=>e.value)||0,i=d.scaleLinear().domain([0,1.1*l]).range([a,0]);if(p){const e=d.axisLeft(i).tickSize(-t).tickFormat(()=>"").ticks(E||5);n.append("g").attr("class","grid").style("stroke-dasharray","3,3").style("opacity",.3).call(e)}if(L){const e=d.axisLeft(i).ticks(E||5).tickFormat(e=>{const t="number"==typeof e?e:Number(e);return _?_(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(z){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=z[e];void 0!==a&&t.style(e,a.toString())})}if(D||t.selectAll("path").style("display","none"),B||t.selectAll("line").style("display","none"),t.selectAll("text").attr("class",`y-axis-label ${R||""}`).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"),T){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=T[e];void 0!==a&&t.selectAll("text").style(e,a.toString())})}}const s=d.axisBottom(r),c=n.append("g").attr("class","x-axis").attr("transform",`translate(0,${a})`).style("color","#718096").style("font-size","0.875rem").call(s);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 u=n.selectAll(".bar").data(o).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",F||5).attr("ry",F||5).style("fill",e=>e.color?e.color:h?.gradient?"url(#barGradient)":h?.solid?h.solid:"#8B5CF6").style("cursor",x?"pointer":"default");g?u.transition().duration(800).ease(d.easeBackOut.overshoot(1.1)).attr("y",e=>i(e.value)).attr("height",e=>a-i(e.value)):u.attr("y",e=>i(e.value)).attr("height",e=>a-i(e.value)),(x||w||C)&&u.on("click",(e,t)=>{if(x){const e=o.indexOf(t);x(t,e)}}).on("mouseover",(e,t)=>{if(w){const e=o.indexOf(t);w(t,e)}if(C&&H.current&&U.current){const a=d.select(H.current),n=U.current.getBoundingClientRect(),o=e.currentTarget.getBoundingClientRect(),r=o.left-n.left+o.width/2,l=o.top-n.top-15;a.style("opacity",1).style("left",`${r}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">${_?_(t.value):t.value.toString()}</div>\n `)}d.select(e.currentTarget).transition().duration(200).style("opacity",.8).style("filter","brightness(1.1)")}).on("mouseout",e=>{C&&H.current&&d.select(H.current).style("opacity",0),d.select(e.currentTarget).transition().duration(200).style("opacity",1).style("filter","brightness(1)")}).on("mousemove",(e,t)=>{if(C&&H.current&&U.current){const t=d.select(H.current),a=U.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%)")}})},[O,o,q,m,h,p,g,_,x,w,C,F,W,E,L,D,B,z,$,T,R]);const Y=()=>{if(!S||!o||0===o.length)return null;const t=o.map((t,a)=>e.jsxs("div",{className:"flex items-center space-x-2 cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>x?.(t,a),onMouseEnter:()=>w?.(t,a),children:[e.jsx("div",{className:"w-4 h-4 rounded-sm",style:{backgroundColor:t.color||(h?.gradient?"url(#barGradient)":h?.solid||"#8B5CF6")}}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:t.category}),e.jsxs("span",{className:"text-xs text-gray-500",children:["(",_?_(t.value):t.value.toString(),")"]})]},t.category));return e.jsxs("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"}[N]} ${I||""}`,style:j,children:[A&&e.jsx("div",{className:"w-full text-center mb-2",children:e.jsx("span",{className:"text-sm font-semibold text-gray-600",children:A})}),t]})};return e.jsxs("div",{ref:U,className:`bg-white p-6 rounded-xl ${v||""}`,style:b,children:[r&&e.jsx("h2",{className:`text-xl font-semibold text-[#18044E] mb-6 ${i||""}`,style:l,children:r}),S&&"top"===N&&Y(),e.jsxs("div",{className:"relative",children:[e.jsx("svg",{ref:M,className:"w-full h-auto"}),C&&e.jsx("div",{ref:H,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 ${k||""}`,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)",...y},children:P?P(o[0]):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"font-semibold text-white",children:o[0]?.category}),e.jsx("div",{className:"text-sm text-gray-200 mt-1",children:_?_(o[0]?.value||0):(o[0]?.value||0).toString()})]})})]}),S&&"bottom"===N&&Y()]})},exports.Breadcrumb=({items:t=[],separator:a="/",className:o="",...r})=>{const l=t.map(t=>({...t,title:e.jsxs("span",{className:Q.itemContent,children:[t.icon&&e.jsx(U,{name:t.icon,size:14,className:Q.itemIcon}),e.jsx("span",{className:Q.itemTitle,children:t.title})]})}));return e.jsx("div",{className:`${Q.breadcrumbContainer} ${o}`,children:e.jsx(n.Breadcrumb,{items:l,separator:e.jsx("span",{className:Q.separator,children:a}),className:Q.antBreadcrumb,...r})})},exports.Button=V,exports.ButtonDanger=G,exports.Card=({children:t,variant:a="default",padding:n="md",hover:o=!1,clickable:r=!1,header:l,footer:i,onClick:s,className:c,style:d,animate:u=!0,animationDuration:m=300,animationDelay:h=0,animationEasing:p="ease-in-out",...g})=>{const f=F("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"}[a],{xs:"p-2",sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[n],o&&"hover:shadow-md hover:-translate-y-0.5",r&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",u&&"animate-fade-in",c),_={...d,...u&&{animationDuration:`${m}ms`,animationDelay:`${h}ms`,animationTimingFunction:p}};return e.jsxs("div",{className:f,style:_,onClick:e=>{r&&s&&s(e)},...g,children:[l&&e.jsx("div",{className:"mb-4 pb-4 border-b border-gray-200",children:l}),e.jsx("div",{className:"flex-1",children:t}),i&&e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:i})]})},exports.Categories=({variant:a="single",chips:n=[],categories:o=[],onChipRemove:r,onCategoryToggle:l,onItemClick:i,onCancel:s,onApply:c,cancelLabel:d="Cancel",applyLabel:u="Apply",className:m="",...h})=>{const[p,g]=t.useState(""),[f,_]=t.useState(o.reduce((e,t,a)=>(e[a]=void 0===t.expanded||t.expanded,e),{})),v=t.useMemo(()=>{if(!p)return o;const e=p.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,p]);t.useEffect(()=>{if(p){const e=v.reduce((e,t,a)=>(e[a]=!0,e),{});_(e)}},[p,v.length]);const b=(t,n)=>{const o=!!p||!1!==f[n];return e.jsxs("div",{className:J.categoryList,children:[e.jsxs("button",{type:"button",className:J.categoryTitle,onClick:()=>{return e=n,_(t=>({...t,[e]:!t[e]})),void(l&&l(e,!f[e]));var e},children:[e.jsx("p",{className:J.categoryTitleText,children:t.title||"Category"}),e.jsx("div",{className:J.chevronIcon,children:e.jsx(U,{name:"CaretDown",size:14,className:`${J.chevronImg} ${o?J.chevronUp:""}`})})]}),o&&e.jsx("div",{className:J.categoryItems,children:(t.items||[]).map((t,o)=>e.jsx("div",{className:J.categoryItemWrapper,children:e.jsx(re,{label:t.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===a,hasRadio:"multiple"!==a,checked:t.checked||!1,type:t.type||"default",onClick:()=>{i&&i(t,n)}})},t.id||o))})]},n)},x=[J.container,J[`variant_${a}`],m].filter(Boolean).join(" ");return e.jsxs("div",{className:x,...h,children:[e.jsxs("div",{className:J.searchSection,children:[e.jsxs("div",{className:J.searchInput,children:[e.jsx("div",{className:J.searchIcon,children:e.jsx(U,{name:"MagnifyingGlass",size:16,className:J.searchIconImage})}),e.jsx("input",{type:"text",className:J.realSearchInput,placeholder:"Search",value:p,onChange:e=>{g(e.target.value)}})]}),(()=>{if(!n||0===n.length)return null;const t=n.slice(0,5),a=n.length-5;let o=null;return a>0&&(o={isMore:!0,label:`+${a}`}),e.jsxs("div",{className:J.chipListContainer,children:[t.map((t,a)=>e.jsxs("div",{className:J.chip,children:[e.jsx("p",{className:J.chipLabel,children:t.label||"Label"}),e.jsx("button",{type:"button",className:J.chipRemove,onClick:e=>{e.stopPropagation(),r&&r(t)},"aria-label":"Remove chip",children:e.jsx(U,{name:"X",size:14,className:J.chipIcon})})]},a)),o&&e.jsx("div",{className:J.chip,children:e.jsx("p",{className:J.chipLabel,children:o.label})})]})})()]}),e.jsx("div",{className:J.listsContainer,children:v.map((e,t)=>b(e,t))}),e.jsxs("div",{className:J.actionsContainer,children:[e.jsx("button",{type:"button",className:J.cancelButton,onClick:s,children:e.jsx("p",{className:J.cancelButtonText,children:d})}),e.jsx("button",{type:"button",className:J.applyButton,onClick:c,children:e.jsx("p",{className:J.applyButtonText,children:u})})]})]})},exports.Cell=({variant:t="default",label:a="",icon:n=null,badge:o=null,avatar:r=null,status:l=null,checked:i=!1,onChange:s,count:c=null,actions:d=[],className:u="",...m})=>e.jsx("div",{className:`${le.cell} ${le[`variant_${t}`]} ${u}`,...m,children:(()=>{switch(t){case"avatar":return e.jsxs("div",{className:le.avatarContent,children:[r?e.jsx("img",{src:r,alt:a,className:le.avatar}):e.jsx("div",{className:le.avatarPlaceholder,children:e.jsx(U,{name:"User",size:16})}),e.jsx("span",{className:le.label,children:a})]});case"status":return e.jsxs("div",{className:le.statusContent,children:[e.jsx("div",{className:`${le.statusDot} ${le[`status_${l?.toLowerCase()}`]}`}),e.jsx("span",{className:le.label,children:a}),o&&e.jsx("span",{className:le.badge,children:o})]});case"social":return e.jsxs("div",{className:le.socialContent,children:[n&&e.jsx(U,{name:n,size:16,className:le.socialIcon}),e.jsx("span",{className:le.label,children:a})]});case"actions":return e.jsx("div",{className:le.actionsContent,children:d.map((t,a)=>e.jsx("button",{className:le.actionButton,onClick:t.onClick,title:t.label,type:"button",children:e.jsx(U,{name:t.icon,size:14})},a))});case"checkbox":return e.jsxs("div",{className:le.checkboxContent,children:[e.jsx(ae,{checked:i,onChange:s,size:"small"}),e.jsx("span",{className:le.label,children:a})]});case"toggle":return e.jsx("div",{className:le.toggleContent,children:e.jsx(se,{checked:i,onChange:s,size:"small"})});case"userCount":return e.jsx("div",{className:le.userCountContent,children:e.jsxs("div",{className:le.userIconWrapper,children:[e.jsx(U,{name:"User",size:14}),e.jsx("span",{className:le.count,children:c})]})});default:return e.jsxs("div",{className:le.defaultContent,children:[n&&e.jsx(U,{name:n,size:16,className:le.leadingIcon}),e.jsx("span",{className:le.label,children:a}),o&&e.jsx("span",{className:le.badge,children:o}),e.jsx(U,{name:"Globe",size:14,className:le.trailingIcon})]})}})()}),exports.CellHeader=({label:t="",sortable:a=!1,sortOrder:n=null,hasCheckbox:o=!1,checked:r=!1,onSort:l,onCheckboxChange:i,className:s="",...c})=>e.jsx("div",{className:`${ce} ${a?de:""} ${s}`,onClick:a?l:void 0,...c,children:e.jsxs("div",{className:ue,children:[o&&e.jsx("div",{className:me,onClick:e=>e.stopPropagation(),children:e.jsx(ae,{checked:r,onChange:i,size:"small"})}),a&&e.jsx("div",{className:he,"aria-label":`Sort ${n||"none"}`,children:e.jsx(U,{name:"asc"===n?"SortAscending":"desc"===n?"SortDescending":"CaretUpDown",size:14})}),e.jsx("span",{className:pe,children:t})]})}),exports.Checkbox=ae,exports.Chip=fe,exports.ChipList=({chips:t=[],layout:a="single",onChipRemove:n,className:o="",...r})=>{const l=t.length>0?t:[{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=[_e.container,_e[`layout_${i}`],o].filter(Boolean).join(" ");return e.jsx("div",{className:c,...r,children:s.map((t,a)=>e.jsx("div",{className:_e.row,children:t.map(t=>e.jsx(fe,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{n&&n(t)}},t.id||t.label))},a))})},exports.Dropdown=({value:a="",description:n="",label:o="",error:r="",hasLabel:l=!0,hasDescription:i=!0,hasError:s=!1,hasChips:c=!1,state:d="default",type:u="medium",placeholder:m="Value",chips:h=[],onChange:p,onFocus:g,onBlur:f,onClick:_,onOutsideClick:v,disabled:b,className:x="",children:w,...C})=>{const y=t.useRef(null);t.useEffect(()=>{if(!v)return;const e=e=>{y.current&&!y.current.contains(e.target)&&v()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[v]);const k=(u||"medium").toLowerCase(),P=b?"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})(d),S=[ve.container,ve[`type_${k}`],x].filter(Boolean).join(" "),N=[ve.dropdownWrapper,ve[`dropdownWrapper_type_${k}`],ve[`dropdownWrapper_state_${P}`],ve[`dropdownWrapper_type_${k}_state_${P}`]].filter(Boolean).join(" "),j=b||"disabled"===P,I=e.jsxs("div",{className:ve.fieldWrapper,children:[e.jsx("button",{type:"button",className:N,onClick:_||g,disabled:j,"aria-disabled":j,...C,children:e.jsxs("div",{className:ve.dropdownInner,children:[c&&0!==h.length?e.jsx("div",{className:ve.chipList,children:h.map((t,a)=>e.jsxs("div",{className:ve.chip,children:[e.jsx("span",{className:ve.chipLabel,children:t.label||"Label"}),t.onRemove&&e.jsx("button",{type:"button",className:ve.chipRemove,onClick:e=>{e.stopPropagation(),t.onRemove&&t.onRemove()},"aria-label":"Remove chip",children:e.jsx(U,{name:"x",size:10,className:ve.chipIcon})})]},a))}):null,a?e.jsx("span",{className:ve.value,children:a}):e.jsx("span",{className:ve.placeholder,children:m}),e.jsx("div",{className:ve.chevronWrapper,children:e.jsx(U,{name:w?"caret-up":"caret-down",size:12,className:ve.chevronIcon})})]})}),w]});return e.jsxs("div",{className:S,ref:y,children:[l&&o&&e.jsx("p",{className:ve.label,children:o}),i&&n&&e.jsx("p",{className:ve.description,children:n}),I,s&&r&&e.jsx("p",{className:ve.error,children:r})]})},exports.DropdownNested=({leftColumn:t={title:"Select a Member",chips:[],items:[]},rightColumn:a={title:"Select a Group",chips:[],items:[]},onLeftClearAll:n,onRightClearAll:o,onLeftChipRemove:r,onRightChipRemove:l,onLeftItemClick:i,onRightItemClick:s,onCancel:c,onApply:d,className:u="",...m})=>{const h=t.chips,p=a.chips,g=t.items,f=a.items,_=[we.dropdownNested,u].filter(Boolean).join(" ");return e.jsxs("div",{className:_,...m,children:[e.jsxs("div",{className:we.columns,children:[e.jsx("div",{className:we.column,children:e.jsx(xe,{title:t.title,expanded:!0,chips:h,items:g,onClearAll:n,onChipRemove:r,onItemClick:i})}),e.jsx("div",{className:we.column,children:e.jsx(xe,{title:a.title,expanded:!0,chips:p,items:f,onClearAll:o,onChipRemove:l,onItemClick:s})})]}),e.jsxs("div",{className:we.ctas,children:[e.jsx(G,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:c,className:we.cancelButton}),e.jsx(V,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:d,className:we.applyButton})]})]})},exports.DropdownNestedColumn=xe,exports.GaugeChart=({segments:a,title:n})=>{const o=t.useRef(null),{segmentData:r,total:l}=(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:i,animationProgress:s}=(e=>{const[a,n]=t.useState(0),[o,r]=t.useState(0);return t.useEffect(()=>{let t=0;const a=1/(f/_),o=setInterval(()=>{t+=a,t>=1&&(t=1,clearInterval(o)),n(Math.floor(e*t)),r(t)},_);return()=>{clearInterval(o)}},[e]),{count:a,animationProgress:o}})(l),{tooltip:c,showTooltip:d,updateTooltip:u,hideTooltip:m}=(e=>{const[a,n]=t.useState({show:!1,content:"",x:0,y:0,type:""}),o=t.useCallback((t,a,o)=>{if(!e.current)return;const r=e.current.getBoundingClientRect(),l=t.clientX-r.left,i=t.clientY-r.top;n({show:!0,content:a,type:o,x:l,y:i-70})},[e]),r=t.useCallback((t,o,r)=>{if(!a.show||!e.current)return;const l=e.current.getBoundingClientRect(),i=t.clientX-l.left,s=t.clientY-l.top;n(e=>({...e,x:i,y:s-70}))},[a.show,e]),l=t.useCallback(()=>{n(e=>({...e,show:!1}))},[]);return{tooltip:a,showTooltip:o,updateTooltip:r,hideTooltip:l}})(o),h=p,b=g,x=Math.PI*h,w=t.useMemo(()=>({width:2*h+b,height:h+b+20,viewBox:`0 0 ${2*h+b} ${h+b+20}`}),[h,b]),C=t.useMemo(()=>((e,t)=>`M ${t/2},${e+10} \n A ${e},${e} 0 0 1 ${2*e+t/2},${e+10}`)(h,b),[h,b]),y=t.useMemo(()=>r.map((e,t)=>({currentArc:e.arcLength*s,previousArcsLength:r.slice(0,t).reduce((e,t)=>e+t.arcLength*s,0)})),[r,s]);return e.jsxs("div",{ref:o,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:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsxs("svg",{width:w.width,height:w.height,viewBox:w.viewBox,className:"relative",children:[e.jsx("path",{d:C,fill:"transparent",stroke:"#E5E7EB",strokeWidth:b,strokeLinecap:"round"}),r.map((t,a)=>{const{currentArc:n,previousArcsLength:o}=y[a];return e.jsx("path",{d:C,fill:"transparent",stroke:t.color,strokeWidth:b,strokeDasharray:`${n} ${x}`,strokeDashoffset:-o,strokeLinecap:"round"},`visual-${a}`)}),r.map((t,a)=>{const{currentArc:n,previousArcsLength:o}=y[a];return e.jsx("path",{d:C,fill:"transparent",stroke:"transparent",strokeWidth:b+4,strokeDasharray:`${n} ${x}`,strokeDashoffset:-o,strokeLinecap:"round",onMouseEnter:e=>d(e,v(t),t.label),onMouseMove:e=>u(e,v(t),t.label),onMouseLeave:m,className:"cursor-pointer",style:{pointerEvents:n>0?"stroke":"none"}},`hit-${a}`)}),e.jsx("text",{x:h+b/2,y:h+10-15,textAnchor:"middle",className:"text-base font-bold fill-[#29064D]",children:i.toLocaleString()}),e.jsx("text",{x:h+b/2,y:h+10+20,textAnchor:"middle",className:"text-sm fill-[#454545]",children:n})]})}),e.jsx("div",{className:"flex flex-wrap gap-4 mt-4 w-full max-w-xs justify-center",children:r.map((t,a)=>e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsx("div",{className:"w-[10px] h-[10px] rounded-full shadow-sm",style:{backgroundColor:t.color}}),e.jsx("span",{className:"text-sm font-medium text-[#454545]",children:t.label})]},`legend-${a}`))}),c.show&&e.jsx("div",{className:"absolute z-50 pointer-events-none",style:{left:`${c.x}px`,top:`${c.y}px`,transform:"translateX(-50%)"},children:e.jsxs("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:[c.content,e.jsx("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"})]})})]})},exports.Icon=U,exports.IconButton=({icon:t,style:a="primary",state:n="default",size:o="medium",onClick:r,disabled:l,loading:i,className:s="",...c})=>{const d=i?"loading":l?"disabled":n,u=l||i||"disabled"===d,m=[Ce.iconButton,Ce[`style_${a}`],Ce[`state_${d}`],Ce[`size_${o}`],s].filter(Boolean).join(" ");return e.jsx("button",{className:m,onClick:r,disabled:u,"aria-disabled":u,...c,children:t?"string"==typeof t?e.jsx(U,{name:t,className:Ce.icon,size:14}):t:"loading"===d?e.jsx(U,{name:"spinner",className:Ce.loaderIcon,size:16}):e.jsx(U,{name:"star",className:Ce.icon,size:14})})},exports.ItemRow=re,exports.Modal=({isOpen:a,onClose:n,title:o,description:r,icon:l,children:i,actions:s,size:c="medium",showCloseButton:d=!0,className:u="",...m})=>{if(t.useEffect(()=>(document.body.style.overflow=a?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[a]),!a)return null;return e.jsx("div",{className:ye.overlay,onClick:e=>{e.target===e.currentTarget&&n&&n()},children:e.jsxs("div",{className:`${ye.modal} ${ye[c]} ${u}`,role:"dialog","aria-modal":"true",...m,children:[d&&e.jsx("button",{className:ye.closeButton,onClick:n,"aria-label":"Close modal",children:e.jsx(U,{name:"X"})}),e.jsxs("div",{className:ye.content,children:[l&&e.jsx("div",{className:ye.iconWrapper,children:l}),i||e.jsxs("div",{className:ye.textStack,children:[o&&e.jsx("h2",{className:ye.title,children:o}),r&&e.jsx("p",{className:ye.description,children:r})]}),s&&e.jsx("div",{className:ye.actions,children:s})]})]})})},exports.Notification=Pe,exports.Pagination=t=>e.jsx(n.ConfigProvider,{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:e.jsx("div",{className:`${Se.paginationWrapper} ${t.className||""}`,children:e.jsx(n.Pagination,{itemRender:(a,n,o)=>"prev"===n?e.jsxs("div",{className:`${Se.navButtonCustom} ${t.disabled?Se.disabled:""}`,children:[e.jsx("div",{className:Se.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),e.jsx("span",{className:Se.navText,children:"Previous"})]}):"next"===n?e.jsxs("div",{className:`${Se.navButtonCustom} ${t.disabled?Se.disabled:""}`,children:[e.jsx("span",{className:Se.navText,children:"Next"}),e.jsx("div",{className:Se.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):o,...t})})}),exports.PieChart=({data:a,title:n="Policy Effect",titleStyle:o={},containerStyle:r={},chartSize:l=320,showLegend:i=!0,legendStyle:s={}})=>{const c=t.useRef(null),[u,m]=t.useState({visible:!1,x:0,y:0,content:"",label:"",value:"",percentage:""}),h=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"}],p=d.sum(h,e=>e.value);t.useEffect(()=>{if(!c.current)return;const e=d.select(c.current);e.selectAll("*").remove();const t=l,a=l,n=Math.min(t,a)/2-30,o=e.attr("width",t).attr("height",a).append("g").attr("transform",`translate(${t/2}, ${a/2})`),r=d.pie().value(e=>e.value).sort(null).padAngle(0),i=d.arc().innerRadius(0).outerRadius(n),s=d.arc().innerRadius(0).outerRadius(n+8);o.selectAll("arc").data(r(h)).enter().append("g").attr("class","arc").append("path").attr("d",i).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/p*100).toFixed(1);d.select(this).transition().duration(200).attr("d",s(t)).style("filter","brightness(1.1)"),m({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){m(t=>({...t,x:e.clientX,y:e.clientY}))}).on("mouseout",function(e,t){d.select(this).transition().duration(200).attr("d",i(t)).style("filter","brightness(1)"),m(e=>({...e,visible:!1}))})},[0,h,l]);const g={fontSize:"1.5rem",fontWeight:"600",marginBottom:"1rem",color:"#374151",textAlign:"center",...o},f={display:"flex",flexDirection:"column",alignItems:"center",padding:"1.5rem",backgroundColor:"white",borderRadius:"0.5rem",position:"relative",...r},_={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"0.5rem",...s};return e.jsxs("div",{style:f,children:[e.jsx("h2",{style:g,children:n}),e.jsx("div",{className:"relative",children:e.jsx("svg",{ref:c})}),i&&e.jsx("div",{style:_,children:h.map((t,a)=>((t.value/p*100).toFixed(1),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",children:[e.jsx("div",{className:"w-[10px] h-[10px] rounded-full",style:{backgroundColor:t.color}}),e.jsx("div",{className:"text-sm",children:e.jsx("div",{className:"font-medium text-[#454545]",children:t.label})})]},a)))}),u.visible&&e.jsxs("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:u.x+15,top:u.y-60,minWidth:"150px"},children:[e.jsx("div",{className:"text-sm font-semibold text-blue-300",children:u.label}),e.jsxs("div",{className:"text-base",children:[u.value," items"]}),e.jsxs("div",{className:"text-sm text-gray-300",children:[u.percentage,"% of total"]}),e.jsx("div",{className:"absolute -bottom-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45 border-r border-b border-gray-700"})]})]})},exports.Radio=oe,exports.Sankey=({data:a,width:n=1200,height:o=600,margin:r={top:80,right:50,bottom:50,left:50},backgroundColor:l="linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%)",showTimeFilter:i=!0,timeFilters:s=["1W","1M","3M","1Y","ALL"],activeFilter:c="3M",onFilterChange:u=()=>{},filterButtonColor:m="#6366f1",filterButtonInactive:h="rgba(255, 255, 255, 0.1)",useCustomFlowWidth:p=!1,customFlowWidth:g=10,minFlowWidth:f=4,maxFlowWidth:_=20,flowWidthMultiplier:v=1,showStatistics:b=!1,statistics:x={trendGoods:204,shoppingViews:65540,storeDynamics:325}})=>{const w=t.useRef(null),C=t.useRef(),y=t.useRef();t.useEffect(()=>{if(!w.current)return;const e=d.select(w.current);e.selectAll("*").remove(),e.attr("width",n).attr("height",o).style("background",l),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"),i=t.append("g").attr("transform",`translate(${r.left}, ${r.top})`);y.current&&y.current.remove();const s=d.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);y.current=s;const c=d.zoom().scaleExtent([.5,3]).on("zoom",e=>{t.attr("transform",e.transform.toString())});e.call(c),C.current=c;const u=180,m=80,h=120,N="drop-shadow(0 8px 16px rgba(0,0,0,0.3))",j="white",I=(o-r.top-r.bottom)/2,A=(n-r.left-r.right)/2-90,L=n-r.left-r.right-u-80,D=a.nodes.filter(e=>"source"===e.type),B=a.nodes.filter(e=>"middle"===e.type),z=a.nodes.filter(e=>"target"===e.type);D.forEach(e=>{e.x=80,e.y=I-40}),B.forEach((e,t)=>{const a=(B.length-1)*h,n=I-a/2;e.x=A,e.y=n+t*h}),z.forEach((e,t)=>{const a=(z.length-1)*h,n=I-a/2;e.x=L,e.y=n+t*h});const $=d.drag().on("start",e=>{e.sourceEvent.stopPropagation()}).on("drag",function(e,t){t.x=e.x,t.y=e.y,d.select(this).attr("transform",`translate(${t.x}, ${t.y})`),i.selectAll("path.sankey-link").remove(),F()}),T=e.append("defs"),R=Math.max(...a.links.map(e=>e.value)),F=()=>{T.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 r=`gradient-${t}`,l=T.append("linearGradient").attr("id",r).attr("class","link-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",n.x+u).attr("y1",n.y+40).attr("x2",o.x).attr("y2",o.y+40);l.append("stop").attr("offset","0%").attr("stop-color",n.color).attr("stop-opacity",.8),l.append("stop").attr("offset","100%").attr("stop-color",o.color).attr("stop-opacity",.8);const c=n.x+u,m=n.y+40,h=o.x,b=o.y+40,x=(w=e.value,p?g:(w/R*_+f)*v);var w;i.append("path").attr("class","sankey-link").attr("d",`M${c},${m} C${(c+h)/2},${m} ${(c+h)/2},${b} ${h},${b}`).attr("fill","none").attr("stroke",`url(#${r})`).attr("stroke-width",x).attr("stroke-opacity",.7).style("filter",N).on("mouseover",t=>{s.transition().duration(200).style("opacity",1),s.html(`Flow: ${e.value}<br/>Width: ${x.toFixed(1)}px`).style("left",t.pageX+10+"px").style("top",t.pageY-28+"px"),d.select(t.target).attr("stroke-opacity",1)}).on("mouseout",e=>{s.transition().duration(300).style("opacity",0),d.select(e.target).attr("stroke-opacity",.7)}).on("click",()=>{})})};a.nodes.forEach((e,t)=>{const a=`node-gradient-${t}`,n=T.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",d.color(e.color)?.darker(.5)?.toString()||e.color);const o=i.append("g").datum(e).attr("transform",`translate(${e.x}, ${e.y})`).style("cursor","pointer").call($).on("click",(e,t)=>{});o.append("rect").attr("width",u).attr("height",m).attr("rx",16).style("fill",`url(#${a})`).style("stroke",d.color(e.color)?.darker(.5)?.toString()||e.color).style("stroke-width",2).style("filter",N).on("mouseover",function(){d.select(this).style("filter","drop-shadow(0 12px 24px rgba(0,0,0,0.5))")}).on("mouseout",function(){d.select(this).style("filter",N)}).on("click",(e,t)=>{}),o.append("text").attr("x",20).attr("y",30).style("fill",j).style("font-size","18px").style("font-weight","600").text(e.name),o.append("text").attr("x",20).attr("y",55).style("fill",j).style("font-size","24px").style("font-weight","bold").text(`$${e.value.toLocaleString()}`)}),F();const W=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;W.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(){d.select(this).attr("fill","rgba(255, 255, 255, 1)")}).on("mouseout",function(){d.select(this).attr("fill","rgba(255, 255, 255, 0.9)")}).on("click",()=>{switch(e.action){case"zoomIn":k();break;case"zoomOut":P();break;case"resetZoom":S()}}),W.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===b){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:x.trendGoods.toLocaleString(),icon:"▶",color:"#6366f1"},{title:"SHOPPING VIEWS",value:x.shoppingViews.toLocaleString(),icon:"👁",color:"#8b5cf6"},{title:"STORE DYNAMICS",value:x.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()=>{y.current&&y.current.remove()}},[a,n,o,r,l,p,g,f,_,v,b,x]);const k=()=>{w.current&&C.current&&d.select(w.current).transition().duration(300).call(C.current.scaleBy,1.2)},P=()=>{w.current&&C.current&&d.select(w.current).transition().duration(300).call(C.current.scaleBy,.8)},S=()=>{w.current&&C.current&&d.select(w.current).transition().duration(500).call(C.current.transform,d.zoomIdentity)};return e.jsxs("div",{className:"relative w-full h-screen bg-gray-900 flex flex-col items-center justify-center space-y-4",children:[i&&e.jsx("div",{className:"absolute top-6 right-6 flex space-x-2 z-10",children:s.map(t=>e.jsx("button",{onClick:()=>u(t),className:"px-4 py-1.5 rounded-full text-white text-sm font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:c===t?m:h},children:t},t))}),e.jsx("svg",{ref:w,className:"max-w-full max-h-full"})]})},exports.Search=({value:a="",error:n="",hasError:o=!1,state:r="default",placeholder:l="Search",onChange:i,onFocus:s,onBlur:c,disabled:d,className:u="",title:m="",...h})=>{const[p,g]=t.useState(!1),[f,_]=t.useState(!1),v=(()=>{if(d)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":f?a?"typing":"focused":p?a?"filledHover":"hover":a?"filled":"default")})(),b=[Ne.container,u].filter(Boolean).join(" "),x=[Ne.input,Ne[`input_state_${v}`]].filter(Boolean).join(" "),w=[Ne.inputInner,Ne[`inputInner_state_${v}`]].filter(Boolean).join(" "),C=d||"disabled"===v;return e.jsxs("div",{className:b,title:m,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[e.jsx("div",{className:x,children:e.jsxs("div",{className:w,children:[e.jsx("div",{className:Ne.searchIcon,children:e.jsx(U,{name:"magnifying-glass",className:Ne.searchIconImage,size:16})}),e.jsx("input",{type:"search",className:Ne.realInput,value:a,placeholder:l,onChange:i,onFocus:e=>{_(!0),s?.(e)},onBlur:e=>{_(!1),c?.(e)},disabled:C,...h}),("focused"===v||"typing"===v)&&!a&&e.jsx("span",{className:Ne.cursor,children:"|"})]})}),o&&n&&e.jsx("p",{className:Ne.error,children:n})]})},exports.ShankeyPro=({flows:a,curvature:n=.5,windowSize:o={width:0,height:0},breakpoints:r={mobile:768,tablet:1024},layoutOverrides:l={},totalDetectionsIcon:i={}})=>{const s=t.useRef(null);return t.useEffect(()=>{if("undefined"==typeof window||!a||!Array.isArray(a)||0===a.length||!s.current)return;const e=d.select(s.current);e.selectAll("*").remove();const t=(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,c=e=>{let t;switch(e){case"mobile":t=$;break;case"tablet":t=z;break;default:t=B}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:u,nodePlacement:m,specialFlows:h,cardConfig:p}=(()=>{if("undefined"==typeof window){const e=c("desktop");return t(e,l.desktop)}const e=window.innerWidth,{mobile:a=768,tablet:n=1024}=r;let o,i={};e<=a?(o="mobile",i=l.mobile||{}):e<=n?(o="tablet",i=l.tablet||{}):(o="desktop",i=l.desktop||{});const s=c(o);return t(s,i)})(),{width:g,height:f,viewBox:_,scale:v,fontSize:b,cardWidth:x,cardHeight:w}=u,C=B.nodeWidth*v;e.attr("width",g).attr("height",f).attr("viewBox",_);const k=e.append("defs");k.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",L).attr("flood-opacity",T.shadowOpacity);let P=d.select("body").select(".sankey-tooltip");P.empty()&&(P=d.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 R=a.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}}}}),F=a.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=D(e.sourceValue||0,a.source.width),r=D(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:r}}});R.forEach(e=>{const t=k.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",y).attr("stop-opacity",1),t.append("stop").attr("offset","40%").attr("stop-color",y).attr("stop-opacity",1.8),t.append("stop").attr("offset","45%").attr("stop-color",y).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",a).attr("stop-opacity",1)}),F.forEach(e=>{const t=k.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",y).attr("stop-opacity",1),t.append("stop").attr("offset","80%").attr("stop-color",y).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color","#BEE4FF").attr("stop-opacity",1)});const W=e=>{if(!e||!e.source||!e.target)return"";const{source:t,target:a}=e,o=n,r=a.x-t.x,l=t.x+r*o,i=a.x-r*o;return`\n M ${t.x} ${t.y-t.width/2}\n C ${l} ${t.y-t.width/2}, \n ${i} ${a.y-a.width/2}, \n ${a.x} ${a.y-a.width/2}\n `+`\n L ${a.x} ${a.y+a.width/2}\n C ${i} ${a.y+a.width/2}, \n ${l} ${t.y+t.width/2}, \n ${t.x} ${t.y+t.width/2}\n Z\n `};R.slice().reverse().forEach(t=>{t&&t.source&&t.target&&e.append("path").attr("d",W(t)).attr("fill",`url(#gradient-${t.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",T.strokeWidth).style("opacity","0.6").style("transition",`opacity ${T.transitionDuration}ms, stroke ${T.transitionDuration}ms`).style("cursor","pointer").attr("data-flow-id",t.id).style("opacity",T.defaultOpacity).on("mouseover",function(a,n){const o=R.find(e=>e.id===t.id);o&&(P.transition().duration(200).style("opacity",1),P.html(`\n <strong>Flow ${t.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"),e.selectAll("path[data-flow-id]").style("opacity",.3),d.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){P.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){P.transition().duration(500).style("opacity",0),e.selectAll("path[data-flow-id]").style("opacity",.8),d.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),F.forEach(t=>{t&&t.source&&t.target&&e.append("path").attr("d",W(t)).attr("fill",`url(#source-gradient-${t.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",t.id).style("opacity",.6).style("mix-blend-mode","multiply").on("mouseover",function(a,n){const o=F.find(e=>e.id===t.id);o&&(P.transition().duration(200).style("opacity",1),P.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"),e.selectAll("path[data-flow-id]").style("opacity",.3),d.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){P.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){P.transition().duration(500).style("opacity",0),e.selectAll("path[data-flow-id]").style("opacity",.8),d.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),R.slice().reverse().forEach((t,a)=>{t&&t.source&&t.target&&e.append("rect").attr("x",t.target.x-C/2).attr("y",t.target.y-t.target.width/2).attr("width",C).attr("height",t.target.width).style("fill",S).style("rx","3").style("ry","3")}),F.forEach((t,a)=>{if(!t||!t.source||!t.target)return;const n=(()=>{if("undefined"==typeof window)return 65;const e=window.innerWidth;return e<=768?25:e<=1024?45:65})();e.append("text").attr("x",n).attr("y",t.source.y-10).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","12px").style("fill",j).style("font-weight","500").style("font-size",`${b}px`).text(t.sourceLabel||""),e.append("text").attr("x",n).attr("y",t.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!==t.sourceValue?t.sourceValue:""),e.append("rect").attr("x",t.target.x-C/2).attr("y",t.target.y-t.target.width/2).attr("width",C-3).attr("height",t.target.width).style("fill",S).style("rx","3").style("ry","3")});const{cardX:E,cardY1:M,cardY2:U,padding:H,gap:q,fontSize:V}=p;e.append("rect").attr("x",E).attr("y",M).attr("width",x).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))"),e.append("text").attr("x",E+H.left).attr("y",M+H.top+8).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").style("font-size",`${V.title}px`).style("font-weight","500").text("Total Detections");const O=(()=>{const e=i.alignment||"left",t=i.position?.y||M+H.top+8;if(void 0!==i.position?.x)return{x:i.position.x,y:t};switch(e){case"left":const e=((e,t)=>e.length*t*.55)("Total Detections",V.title);return{x:E+H.left+e+15,y:t};case"center":return{x:E+x/2,y:t};default:return{x:E+x-H.right-16,y:t}}})(),G={icon:i.icon||"↗",color:i.color||"#8B5FBF",size:i.size||14,x:O.x,y:O.y,alignment:i.alignment||"right"},Y=e.append("text").attr("x",G.x).attr("y",G.y).attr("text-anchor",(e=>{switch(e){case"left":return"start";case"center":return"middle";default:return"end"}})(G.alignment)).attr("dominant-baseline","middle").style("font-size",`${G.size}px`).style("fill",G.color).style("font-weight","600").style("cursor",i.onClick?"pointer":"default").text(G.icon);i.onClick&&Y.on("click",i.onClick).on("mouseover",function(){d.select(this).style("opacity",.7)}).on("mouseout",function(){d.select(this).style("opacity",1)}),e.append("text").attr("x",E+H.left).attr("y",M+H.top+8+q+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").style("font-size","24px").style("font-weight","700").style("fill",N).text("9100"),e.append("text").attr("x",E+H.left+70).attr("y",M+H.top+8+q+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","12px").style("fill",A).style("font-weight","500").style("font-size","14px").style("font-weight","500").style("fill",A).text("▲ +10%"),e.append("text").attr("x",E+H.left).attr("y",M+H.top+8+q+16+q+12).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","11px").style("fill",I).style("font-weight","400").style("font-size","14px").style("font-weight","400").style("fill",I).text("In last 7 days"),e.append("rect").attr("x",E).attr("y",U).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))"),e.append("text").attr("x",E+H.left).attr("y",U+H.top+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("Mitigated Threats"),e.append("text").attr("x",E+259-H.right).attr("y",U+H.top+16).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).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((t,a)=>{const n=U+H.top+16+q+20+28*a;e.append("text").attr("x",E+H.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.label),e.append("text").attr("x",E+259-H.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.value)});const X=U+H.top+16+q+20+112+q+20;e.append("text").attr("x",E+H.left).attr("y",X).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("Unmitigated Threats"),e.append("text").attr("x",E+259-H.right).attr("y",X).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("100");return[{label:"Informational",value:100,color:"#F3F4F6"}].forEach((t,a)=>{const n=X+q+16+28*a;e.append("text").attr("x",E+H.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.label),e.append("text").attr("x",E+259-H.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.value)}),()=>{"undefined"!=typeof window&&d.select("body").selectAll(".sankey-tooltip").remove()}},[a,n,s]),e.jsx("div",{className:"flex justify-center w-full",children:e.jsx("svg",{id:"sankey-chart",ref:s,className:"block mx-auto",style:{display:"block",margin:"0 auto"}})})},exports.ShankyFlow=({flows:a=[],hoverColor:n="#FF6B6B",title:o="Clipboard Copy Source to Paste Diagram",subtitle:r="Explore the user's Sensitive Data Copy Paste behavior, detection history, and risk exposure.",showHeaders:l=!0,showTitle:i=!0,showSubtitle:s=!0,showDebug:c=!1,sourceHeader:u="Copying Sources",targetHeader:p="Pasting Targets",labelColor:g="#374151",valueColor:f="#111827",headerColor:_="#454545",titleColor:v="#111827",subtitleColor:b="#6B7280",headerUnderlineColor:x="#D4C4FF",flowOpacity:w=.7,hoverOpacity:C=.9,curvature:y=.4,valueFormatter:k,labelFormatter:P,tooltipRenderer:S,gradientStops:N,responsive:j=!0,width:I,height:A,margin:L,nodeHeight:D,flowScaleFactor:B,fontSize:z,responsiveConfig:$=m,breakpoints:T=h})=>{const R=t.useRef(null),F=t.useRef(null),[W,E]=t.useState({width:0,height:0}),[M,U]=t.useState($.desktop),[H,q]=t.useState(!1),V=t.useCallback(()=>{if("undefined"==typeof window)return $.desktop;const e=window.innerWidth;return e<T.mobile?$.mobile:e<T.tablet?$.tablet:(T.desktop,$.desktop)},[$,T]);return t.useEffect(()=>{const e=()=>{const e=V(),t={...e,margin:L??e.margin,nodeHeight:D??e.nodeHeight,flowScaleFactor:B??e.flowScaleFactor,fontSize:z??e.fontSize,width:I??e.width,height:A??e.height};U(t);const a=window.innerWidth-128;let n=t.width;j&&(n=e===$.desktop?a>=t.width?t.width:Math.max(a,600):Math.max(a,t.width)),E({width:n,height:t.height}),H||q(!0)},t=setTimeout(e,100);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[V,H,j,I,A,L,D,B,z,$]),t.useEffect(()=>{if(!(a.length&&W.width&&W.height&&H))return;const e=d.select(R.current);e.selectAll("*").remove();const{width:t,height:c}=W,{margin:m,fontSize:h,nodeHeight:j,flowScaleFactor:I}=M,A=new Map,L=new Map,D=new Map,B=new Map;a.forEach(e=>{D.has(e.source)||D.set(e.source,[]),D.get(e.source).push(e),B.has(e.target)||B.set(e.target,[]),B.get(e.target).push(e),A.set(e.source,e.sourceValue),L.set(e.target,e.targetValue)});const z=Array.from(A.entries()),$=Array.from(L.entries()),T=c-m.top-m.bottom,F=T/(z.length+1),E=T/($.length+1),U=z.map(([e,t],a)=>({name:e,value:t,y:m.top+F*(a+1),height:j})),q=$.map(([e,t],a)=>({name:e,value:t,y:m.top+E*(a+1),height:j})),V=m.left,O=t-m.right;e.attr("width",t).attr("height",c);const G=e.append("defs");a.forEach((e,t)=>{const a=G.append("linearGradient").attr("id",`gradient-${t}`).attr("gradientUnits","userSpaceOnUse").attr("x1",V+80).attr("x2",O-80);(N&&N.length>0?N:[{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=d.select("body").select(".sankey-tooltip");Y.empty()&&(Y=d.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=q.find(e=>e.name===t.target);if(!n)return;const o=n.value,r=j,l=t.thickness/o*r*I;X.get(e.name).set(t.target,{startY:a,endY:a+l,centerY:a+l/2}),a+=l})});const K=new Map;if(q.forEach(e=>{const t=B.get(e.name)||[];let a=e.y-e.height/2;K.set(e.name,new Map),t.forEach(t=>{const n=j,o=t.thickness/e.value*n*I;K.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),r=q.find(e=>e.name===t.target);if(o&&r){const o=X.get(t.source).get(t.target),r=K.get(t.target).get(t.source),l=o.startY,i=o.endY,s=r.startY,c=r.endY,u=y,m=d.interpolateNumber(V,O),h=m(u),p=m(1-u),g=`M${V},${l}\n C${h},${l} ${p},${s} ${O},${s}\n L${O},${c}\n C${p},${c} ${h},${i} ${V},${i}\n Z`;e.append("path").attr("d",g).attr("fill",`url(#gradient-${a})`).attr("opacity",w).style("cursor","pointer").on("mouseover",function(e){d.select(this).attr("fill",n).attr("opacity",C),"function"==typeof S?Y.style("opacity",1).html(S(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(){d.select(this).attr("fill",`url(#gradient-${a})`).attr("opacity",w),Y.style("opacity",0)})}}),l){const t=e.append("text").attr("x",V-15).attr("y",m.top-10).attr("text-anchor","end").attr("fill",_).attr("font-size",`${h.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(u).node();if(t){const a=t.getBBox();e.append("line").attr("x1",a.x).attr("y1",m.top).attr("x2",a.x+a.width).attr("y2",m.top).attr("stroke",x).attr("stroke-width","1").attr("opacity","1")}const a=e.append("text").attr("x",O+15).attr("y",m.top-10).attr("text-anchor","start").attr("fill",_).attr("font-size",`${h.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(p).node();if(a){const t=a.getBBox();e.append("line").attr("x1",t.x).attr("y1",m.top).attr("x2",t.x+t.width).attr("y2",m.top).attr("stroke",x).attr("stroke-width","1").attr("opacity","1")}}return U.forEach(t=>{e.append("text").attr("x",V-15).attr("y",t.y-8).attr("text-anchor","end").attr("fill",g).attr("font-size",`${h.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(P?P(t.name):t.name),e.append("text").attr("x",V-15).attr("y",t.y+12).attr("text-anchor","end").attr("fill",f).attr("font-size",`${h.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(k?k(t.value):t.value)}),q.forEach(t=>{e.append("text").attr("x",O+15).attr("y",t.y-8).attr("text-anchor","start").attr("fill",g).attr("font-size",`${h.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(P?P(t.name):t.name),e.append("text").attr("x",O+15).attr("y",t.y+12).attr("text-anchor","start").attr("fill",f).attr("font-size",`${h.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(k?k(t.value):t.value)}),i&&e.append("text").attr("x",40).attr("y",35).attr("text-anchor","start").attr("fill",v).attr("font-size",`${h.title}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(o),s&&e.append("text").attr("x",40).attr("y",60).attr("text-anchor","start").attr("fill",b).attr("font-size",`${h.subtitle}px`).attr("font-weight","400").attr("font-family","system-ui, sans-serif").text(r),()=>{d.select("body").selectAll(".sankey-tooltip").remove()}},[a,n,o,r,W,M,N,g,f,_,v,b,x,w,C,y,k,P,S,l,i,s,c]),e.jsx("div",{className:"w-full max-w-7xl mx-auto p-4 md:p-6",children:e.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-4 md:p-8",children:[c&&e.jsxs("div",{className:"text-xs text-gray-500 mb-2",children:["Screen: ","undefined"!=typeof window?window.innerWidth:"SSR","px | Config: ",M===$.desktop?"Desktop":M===$.tablet?"Tablet":"Mobile"," | Chart: ",W.width,"x",W.height," | Available: ","undefined"!=typeof window?window.innerWidth-128:"SSR","px | Initialized: ",H?"Yes":"No",e.jsx("button",{onClick:()=>{const e=V();U(e);const t=window.innerWidth-128;let a=e.width;a=e===$.desktop?t>=e.width?e.width:Math.max(t,600):Math.max(t,e.width),E({width:a,height:e.height})},className:"ml-4 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:"Refresh"})]}),e.jsx("div",{ref:F,className:"w-full overflow-x-auto",children:e.jsx("div",{className:"flex justify-center min-w-max",children:e.jsx("svg",{ref:R,style:{width:W.width||M.width,height:W.height||M.height,minWidth:M.width,minHeight:M.height}})})})]})})},exports.StatusIndicator=({label:t="Status",state:a="default",size:n="medium",color:o="green",onClick:r,className:l="",...i})=>{const s=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"disabled"===t?"disabled":"default"})(a),c=(e=>{if(!e)return"green";const t=e.toLowerCase();return"red"===t?"red":"yellow"===t?"yellow":"blue"===t?"blue":"green"})(o),d=n.toLowerCase(),u=[je.statusIndicator,je[`size_${d}`],je[`state_${s}`],je[`color_${c}`],l].filter(Boolean).join(" "),m=r?"button":"div";return e.jsxs(m,{className:u,onClick:r,disabled:"disabled"===s,type:r?"button":void 0,...i,children:[(()=>{const t=(()=>{switch(c){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 e.jsx("div",{className:je.indicator,style:{backgroundColor:t}})})(),e.jsx("span",{className:je.label,children:t})]})},exports.Tab=Ae,exports.TabList=({items:t,activeKey:a,onChange:n,className:o=""})=>{const r=[Le.tabList,o].filter(Boolean).join(" ");return e.jsx("div",{className:r,role:"tablist",children:t.map(t=>e.jsx(Ae,{label:t.label,count:t.count,disabled:t.disabled,isActive:a===t.key,onClick:()=>!t.disabled&&n?.(t.key)},t.key))})},exports.Table=function({columns:a=[],data:l=[],rowKey:i="id",onRowReorder:s,onRowSelect:d,onSort:u,className:m="",...h}){const[p,g]=t.useState([]),[f,_]=t.useState({}),[v,b]=t.useState(l),[x,w]=t.useState({});c.default.useEffect(()=>{b(l)},[l]),c.default.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${De.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 .${De.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(`.${De.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()}},[v,a]),c.default.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${De.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(`.${De.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(`.${De.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(t),a.disconnect()}},[v,a,f]);const C=o.useSensors(o.useSensor(o.PointerSensor),o.useSensor(o.KeyboardSensor,{coordinateGetter:r.sortableKeyboardCoordinates})),y=e=>{g(e),d&&d(e)},k=t.useCallback((e,t)=>{w(a=>({...a,[e]:t}))},[]),P=t.useCallback(e=>{},[]),S=t.useCallback(e=>{},[]),N=t.useMemo(()=>{const t={title:"",key:"drag-handle",width:40,fixed:"left",className:De.dragHandleHeader,render:()=>e.jsx($e,{})},n=a.map(t=>{const a=x[t.key]||t.width||void 0,n=t.sortable&&f.columnKey===t.key&&f.order||null,o=t.sortable?e.jsx("span",{className:De.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!t.sortable)return;let a;if(a=f.columnKey===t.key?"ascend"===f.order?"descend":"descend"===f.order?null:"ascend":"ascend",a){if(_({order:a,columnKey:t.key}),u){const e="ascend"===a?"asc":"desc";u(t.key,e)}}else _({}),u&&u(null,null)},title:"Click to sort",children:(r=n,"ascend"===r?e.jsx(U,{name:"sort-ascending",size:14}):"descend"===r?e.jsx(U,{name:"sort-descending",size:14}):e.jsx(U,{name:"caret-up-down",size:14}))}):null;var r;return{title:e.jsxs("div",{className:De.columnHeaderContent,children:[o,e.jsx("span",{className:De.columnHeaderLabel,children:t.label}),e.jsx(Te,{columnKey:t.key,onResizeStart:P,onResize:k,onResizeEnd:S})]}),dataIndex:t.key,key:t.key,width:a,sorter:!1,render:t.render||(e=>e),className:De.tableCell,showSorterTooltip:!1}}),o=v.length,r=p.length,l=o>0&&r===o,s=!(0===r)&&!l;return[t,{title:e.jsx("div",{className:De.checkboxHeader,children:e.jsx(ae,{checked:l,indeterminate:s,onChange:e=>{if(s)y([]);else{const t=e.target.checked;y(t?v.map(e=>e[i]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${De.tableCell} ${De.checkboxColumn}`,render:(t,a)=>{const n=p.includes(a[i]);return e.jsx("div",{className:De.checkboxCell,children:e.jsx(ae,{checked:n,onChange:e=>{const t=e.target.checked?[...p,a[i]]:p.filter(e=>e!==a[i]);y(t)},size:"small"})})}},...n]},[a,f,x,p,v,i,u,P,k,S]),j=[De.tableContainer,m].filter(Boolean).join(" "),I=t.useMemo(()=>v.map(e=>e[i]),[v,i]),A={body:{row:t=>{let a=t["data-row-key"];if(!a&&t.children){const e=c.default.Children.toArray(t.children);for(const t of e){const e=t;if(e?.props?.record?.[i]){a=e.props.record[i];break}}}if(!a&&void 0!==t["data-row-index"]){const e=t["data-row-index"];v[e]&&v[e][i]&&(a=v[e][i])}return a?e.jsx(ze,{id:a,rowKey:i,row:t,children:t.children}):e.jsx("tr",{...t,children:t.children})}}};return e.jsx("div",{className:j,...h,children:e.jsx(o.DndContext,{sensors:C,collisionDetection:o.closestCenter,onDragEnd:e=>{const{active:t,over:a}=e;a&&t.id!==a.id&&b(e=>{const n=e.findIndex(e=>e[i]===t.id),o=e.findIndex(e=>e[i]===a.id),l=r.arrayMove(e,n,o);return s&&s(l),l})},children:e.jsx(r.SortableContext,{items:I,strategy:r.verticalListSortingStrategy,children:e.jsx(n.Table,{className:De.antTable,columns:N,dataSource:v,rowKey:i,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:A})})})})},exports.TextArea=({value:a,defaultValue:n,body:o,title:r="",description:l="",label:i="",error:s="",hasLabel:c=!0,hasDescription:d=!0,hasError:u=!1,showIcon:m=!1,chooseIcon:h=null,showTitle:p=!1,showDragIcon:g=!0,state:f="default",placeholder:_="Body",onChange:v,onFocus:b,onBlur:x,disabled:w,className:C="",rows:y=4,...k})=>{const[P,S]=t.useState(!1);let N=w?"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})(f);"default"===N&&P&&(N="focused");const j=[Re.container,C].filter(Boolean).join(" "),I=[Re.textareaWrapper,Re[`textareaWrapper_state_${N}`],u?Re.textareaWrapper_state_error:""].filter(Boolean).join(" "),A=w||"disabled"===N,L=void 0!==a?a:o;return e.jsxs("div",{className:j,children:[c&&i&&e.jsx("label",{className:Re.label,children:i}),d&&l&&e.jsx("p",{className:Re.description,children:l}),e.jsx("div",{className:I,children:e.jsxs("div",{className:Re.textareaInner,children:[e.jsxs("div",{className:Re.textContent,children:[p&&r&&e.jsx("p",{className:Re.title,children:r}),e.jsx("textarea",{className:Re.nativeTextarea,value:L,defaultValue:n,placeholder:_,onChange:v,onFocus:e=>{S(!0),b&&b(e)},onBlur:e=>{S(!1),x&&x(e)},disabled:A,rows:y,...k})]}),m?h||e.jsx("div",{className:Re.iconWrapper,children:e.jsx("img",{src:"/icons/Icon.svg",alt:"Icon",className:Re.icon})}):null,g?e.jsx("div",{className:Re.dragIcon,children:e.jsx("img",{src:"/icons/Vector.svg",alt:"Drag",className:Re.dragIconImage})}):null]})}),(u||"error"===N)&&s&&e.jsx("p",{className:Re.error,children:s})]})},exports.Toggle=se,exports.addAnimationClass=function(e,t){e&&e.classList.add(Me[t])},exports.allIcons=M,exports.animateElement=function(e,t,a){return e?e.animate(t,a):null},exports.animationClasses=Me,exports.capitalizeFirst=Ue,exports.capitalizeWords=function(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())},exports.colorPalettes={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"]},exports.commonRules=Ve,exports.createAnimation=Ee,exports.createTheme=function(e){return{...Fe.light,...e}},exports.createTransition=function(e,t,a=300,n="ease-in-out"){e&&(e.style.transition=t.map(e=>`${e} ${a}ms ${n}`).join(", "))},exports.defaultAnimations=We,exports.defaultThemes=Fe,exports.formatCompactNumber=function(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()},exports.formatCreditCard=function(e){return(e.replace(/\D/g,"").match(/.{1,4}/g)||[]).join(" ").trim()},exports.formatCurrency=function(e,t="USD",a=2){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:a,maximumFractionDigits:a}).format(e)},exports.formatDate=function(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",...t};return new Intl.DateTimeFormat("en-US",n).format(a)},exports.formatDateTime=function(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)},exports.formatDuration=function(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")}`},exports.formatFieldLabel=function(e){return e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()},exports.formatFileSize=function(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]}`},exports.formatNumber=function(e,t={}){const{minimumFractionDigits:a=0,maximumFractionDigits:n=2,useGrouping:o=!0,currency:r="USD",style:l="decimal"}=t;return new Intl.NumberFormat("en-US",{style:l,currency:r,minimumFractionDigits:a,maximumFractionDigits:n,useGrouping:o}).format(e)},exports.formatPercentage=function(e,t=1){return`${(100*e).toFixed(t)}%`},exports.formatPhoneNumber=function(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},exports.formatRelativeTime=function(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 r=Math.floor(o/60);if(r<24)return`${r} hour${r>1?"s":""} ago`;const l=Math.floor(r/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`},exports.formatValidationError=function(e,t){return`${Ue(e)} ${t}`},exports.removeAnimationClass=function(e,t){e&&e.classList.remove(Me[t])},exports.removeTransition=function(e){e&&(e.style.transition="")},exports.slugify=function(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")},exports.staggerAnimation=function(e,t,a=100,n){return e.map((e,o)=>{const r={...n,delay:(n?.delay||0)+o*a};return Ee(e,t,r)}).filter(Boolean)},exports.truncateText=function(e,t,a="..."){return e.length<=t?e:e.slice(0,t-a.length)+a},exports.validateCreditCard=function(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}},exports.validateEmail=function(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"}},exports.validateField=He,exports.validateForm=function(e,t){const a={};let n=!0;for(const[o,r]of Object.entries(t)){const t=He(e[o],r);t.isValid||(a[o]=t.message||"Invalid value",n=!1)}return{isValid:n,errors:a}},exports.validatePassword=function(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"}},exports.validatePhoneNumber=function(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"}},exports.validateURL=function(e){try{return new URL(e),{isValid:!0}}catch{return{isValid:!1,message:"Please enter a valid URL"}}},exports.validationPatterns=qe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("d3"),n=require("antd"),r=require("@dnd-kit/core"),o=require("@dnd-kit/sortable"),l=require("@dnd-kit/utilities");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var c=i(t),d=s(a);const u={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()},m={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}},p={mobile:640,tablet:1024,desktop:1024},h=75,g=16,f=1500,_=20,b=e=>`${e.label}: ${e.value.toLocaleString()} (${(100*e.percentage).toFixed(1)}%)`,v="#7E22CE",y="#7C3AED",x="#DDD6FE",w="#F3F4F6",C="#B4AAFF",k="#8B5FBF",S="#A78BFA",P="#642CFD",N="#131313",j="#5B5B5B",I="#6B7280",L="#059669",A="#7090B0",B=(e,t=40)=>0===e?0:e>=1e4?t/1:e>5e3?t/2:e<5e3?t/3:t,z={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}}}},D={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}}}},$={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}}}},T={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:v,gradientColors:{start:C,end:v}},{id:"flow2",type:"main",color:y,gradientColors:{start:C,end:y}},{id:"flow3",type:"main",color:"#A78BFA",gradientColors:{start:C,end:v}},{id:"flow4",type:"main",color:x,gradientColors:{start:C,end:x}},{id:"flow5",type:"main",color:w,gradientColors:{start:C,end:w}},{id:"source1",type:"source",sourceLabel:"Source 1",sourceValue:15e3,color:k,gradientColors:{start:C,end:k}},{id:"source2",type:"source",sourceLabel:"Source 2",sourceValue:12e3,color:y,gradientColors:{start:C,end:y}},{id:"source3",type:"source",sourceLabel:"Source 3",sourceValue:8e3,color:S,gradientColors:{start:C,end:S}},{id:"source4",type:"source",sourceLabel:"Source 4",sourceValue:5e3,color:x,gradientColors:{start:C,end:x}},{id:"source5",type:"source",sourceLabel:"Source 5",sourceValue:2e3,color:w,gradientColors:{start:C,end:w}}]);function F(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=F(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function W(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=F(e))&&(n&&(n+=" "),n+=t);return n}var R={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"},M={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 H=[{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}],E=({name:t,size:a="medium",variant:n="default",className:r="",style:o={},alt:l="",...i})=>{const s=t?.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 e=H.find(e=>e.name===s||e.name===t);return`https://cdn.jsdelivr.net/npm/squarex-ui-component-lib@latest/public/icon/${e?e.filePath.split("/").pop():`${t}.svg`}`})(),u=l||`${s} icon`,m=[M.icon,M[`variant_${n}`],r].filter(Boolean).join(" "),p={width:c,height:c,...o};return e.jsx("img",{src:d,alt:u,className:m,style:p,...i})},U=({className:t})=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("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"})}),O=({className:t})=>e.jsxs("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("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"})]}),G=({label:t="Button",showLeadingIcon:a=!0,showTrailingIcon:n=!1,leadingIcon:r,trailingIcon:o,leftIcon:l,rightIcon:i,variant:s,buttonStyle:c="primary",state:d="default",size:u="medium",onClick:m,disabled:p,loading:h,className:g="",children:f,style:_,...b})=>{const v="object"==typeof _?_:void 0,y=h?"loading":p?"disabled":d,x=p||h||"disabled"===y,w=W(R.button,R[`style_${s||("string"==typeof _?_:null)||c||"primary"}`],R[`state_${y}`],R[`size_${"md"===u?"medium":"sm"===u?"small":u}`],g),C="Button"===t&&f?f:t;return e.jsxs("button",{className:w,onClick:m,disabled:x,"aria-disabled":x,style:v,...b,children:[(()=>{if(!a)return null;const t=r||l;return t?"string"==typeof t?e.jsx(E,{name:t,className:R.icon}):t:"loading"===y?e.jsx(O,{className:R.loaderIcon}):e.jsx(U,{className:R.icon})})(),e.jsx("span",{className:R.label,children:C}),(()=>{if(!n)return null;const t=o||i;return t?"string"==typeof t?e.jsx(E,{name:t,className:R.icon}):t:e.jsx(U,{className:R.icon})})()]})};var q={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 V=({label:t="Button",showLeadingIcon:a=!0,showTrailingIcon:n=!1,leadingIcon:r,trailingIcon:o,state:l="default",size:i="medium",onClick:s,disabled:c,loading:d,className:u="",style:m,...p})=>{const h="string"==typeof m?m:"primary",g="object"==typeof m?m:void 0,f=d?"loading":c?"disabled":l,_=c||d||"disabled"===f,b=[q.button,q[`style_${h}`],q[`state_${f}`],q[`size_${i}`],u].filter(Boolean).join(" ");return e.jsxs("button",{className:b,onClick:s,disabled:_,"aria-disabled":_,style:g,...p,children:[a?r||("loading"===f?e.jsx(E,{name:"spinner",size:16,className:q.loaderIcon}):e.jsx(E,{name:"star",size:14,className:q.icon})):null,e.jsx("span",{className:q.label,children:t}),n?o||e.jsx(E,{name:"star",size:14,className:q.icon}):null]})};var Y={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 X=({src:t,initials:a,alt:n,size:r="medium",shape:o="circle",className:l="",...i})=>{const s=[Y.avatar,Y[`size_${r}`],Y[`shape_${o}`],!t&&a?Y.initialsBg:"",l].filter(Boolean).join(" ");return e.jsx("div",{className:s,...i,children:t?e.jsx("img",{src:t,alt:n||a||"avatar",className:Y.image}):e.jsx("span",{className:Y.initials,children:a})})};var K="AvatarBlock-module_block__z9pJK",Z="AvatarBlock-module_content__VJTSG",Q="AvatarBlock-module_title__RHlA5",J="AvatarBlock-module_description__S5j8w";var ee={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"};var te="BackgroundGradient-module_container__h-ECQ",ae="BackgroundGradient-module_gradientBlobsImage__HSoZE";var ne={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"};var re={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"};var oe={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"},le={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",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 se=({checked:t=!1,indeterminate:a=!1,disabled:n=!1,state:r="default",size:o="medium",label:l="",description:i="",onChange:s,className:c="",id:d,name:u,value:m,...p})=>{const h=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(r),g="number"==typeof o,f=g?"custom":o.toLowerCase(),_=n||"disabled"===r,b=[ie.checkboxContainer,c].filter(Boolean).join(" "),v=[ie.checkbox,ie[`size_${f}`],t&&ie.checkboxChecked,!t&&a&&ie.checkboxIndeterminateState,_&&ie.checkboxDisabled,!_&&ie[`state_${h}`]].filter(Boolean).join(" "),y=d||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:b,children:[e.jsxs("div",{className:ie.checkboxWrapper,children:[e.jsx("input",{type:"checkbox",id:y,name:u,value:m,checked:t,disabled:_,onChange:e=>{!_&&s&&s(e)},className:ie.checkboxInput,"aria-checked":a?"mixed":t,"aria-disabled":_,...p}),e.jsxs("label",{htmlFor:y,className:v,style:g?{width:`${o}px`,height:`${o}px`}:{},children:[t&&e.jsx("div",{className:ie.checkboxCheck,children:e.jsx("div",{className:ie.checkIconWrapper,children:e.jsx("div",{className:ie.checkIconInner,children:e.jsx(E,{name:"Check",size:12,className:ie.checkIcon})})})}),!t&&a&&e.jsx("div",{className:ie.checkboxIndeterminate,children:e.jsx("div",{className:ie.indeterminateBar})})]})]}),(l||i)&&e.jsxs("div",{className:ie.labelContainer,children:[l&&e.jsx("label",{htmlFor:y,className:ie.label,children:l}),i&&e.jsx("div",{className:ie.description,children:i})]})]})};var ce={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 de=({checked:t=!1,disabled:a=!1,state:n="default",size:r="medium",label:o="",name:l,value:i,onChange:s,className:c="",id:d,...u})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(n),p="number"==typeof r,h=p?"custom":r.toLowerCase(),g=a||"disabled"===n,f=[ce.radioContainer,c].filter(Boolean).join(" "),_=[ce.radio,ce[`size_${h}`],t&&ce.radioChecked,g&&ce.radioDisabled,!g&&ce[`state_${m}`]].filter(Boolean).join(" "),b=d||`radio-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:f,children:[e.jsxs("div",{className:ce.radioWrapper,children:[e.jsx("input",{type:"radio",id:b,name:l,value:i,checked:t,disabled:g,onChange:e=>{!g&&s&&s(e)},className:ce.radioInput,"aria-checked":t,"aria-disabled":g,...u}),e.jsx("label",{htmlFor:b,className:_,style:p?{width:`${r}px`,height:`${r}px`}:{},children:t&&e.jsx("div",{className:ce.radioDot})})]}),o&&e.jsx("label",{htmlFor:b,className:ce.label,children:o})]})},ue=({showLeftIcon:t=!0,hasCheckbox:a=!1,hasRadio:n=!1,checked:r=!1,chooseLeftIcon:o=null,label:l="Item",showBody:i=!1,body:s="Body",showInfo:c=!1,showRightIcon:d=!1,chooseRightIcon:u=null,type:m="Default",onClick:p,className:h="",...g})=>{const f=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"disabled"===t?"disabled":"selected"===t?"selected":"danger"===t?"danger":"default"})(m),_="disabled"===f,b=_?"div":"button",v=[le.itemRow,le[`type_${f}`],h].filter(Boolean).join(" "),y=r||"selected"===f;return e.jsxs(b,{className:v,onClick:p,disabled:_,type:"button"===b?"button":void 0,...g,children:[c&&e.jsx("div",{className:le.infoIcon,children:e.jsx(E,{name:"Info",size:14,className:le.infoIconImg})}),e.jsxs("div",{className:le.content,children:[t&&e.jsx("div",{className:le.iconWrapper,children:o||e.jsx(E,{name:"File",size:14,className:le.fileIconImg})}),e.jsxs("div",{className:le.text,children:[e.jsx("p",{className:le.label,children:l}),i&&e.jsx("p",{className:le.body,children:s})]}),d&&e.jsx("div",{className:le.iconWrapper,children:u||e.jsx(E,{name:"Star",size:14,className:le.starIconImg})})]}),a&&e.jsx("div",{className:le.checkboxField,children:e.jsx(se,{checked:y,disabled:_,size:16,readOnly:!p})}),n&&e.jsx("div",{className:le.radioField,children:e.jsx(de,{checked:y,disabled:_,size:16,readOnly:!p})})]})};var me={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"},pe={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 he=({checked:t=!1,disabled:a=!1,state:n="default",size:r="medium",label:o="",onChange:l,className:i="",id:s,name:c,value:d,...u})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(n),p=r.toLowerCase(),h=a||"disabled"===n,g=[pe.toggleContainer,i].filter(Boolean).join(" "),f=[pe.toggle,pe[`size_${p}`],t&&pe.toggleChecked,h&&pe.toggleDisabled,!h&&pe[`state_${m}`]].filter(Boolean).join(" "),_=s||`toggle-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:g,children:[e.jsxs("div",{className:pe.toggleWrapper,children:[e.jsx("input",{type:"checkbox",id:_,name:c,value:d,checked:t,disabled:h,onChange:e=>{!h&&l&&l(e)},className:pe.toggleInput,"aria-checked":t,"aria-disabled":h,role:"switch",...u}),e.jsx("label",{htmlFor:_,className:f,children:e.jsx("span",{className:pe.toggleThumb})})]}),o&&e.jsx("label",{htmlFor:_,className:pe.label,children:o})]})};var ge="CellHeader-module_cellHeader__9mlaW",fe="CellHeader-module_sortable__bpx5y",_e="CellHeader-module_content__6-yV0",be="CellHeader-module_checkboxWrapper__ah1PJ",ve="CellHeader-module_sortIcon__6rgJk",ye="CellHeader-module_label__nRBcj";var xe={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 we=({label:t="Label",showRightIcon:a=!0,showLeftIcon:n=!0,chooseLeftIcon:r=null,chooseRightIcon:o=null,state:l="default",size:i="medium",onRemove:s,onClick:c,className:d="",...u})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"default"})(l),p=(i||"medium").toLowerCase(),h="small"===p?12:14,g=[xe.chip,xe[`size_${p}`],xe[`state_${m}`],d].filter(Boolean).join(" "),f=c?"button":"div";return e.jsxs(f,{className:g,onClick:c,type:c?"button":void 0,...u,children:[n?r||e.jsx("div",{className:xe.iconWrapper,children:e.jsx(E,{name:"x",size:h,className:xe.icon,variant:"active"===m?"white":"default"})}):null,e.jsx("span",{className:xe.label,children:t}),a?o||e.jsx("div",{className:xe.iconWrapper,children:e.jsx(E,{name:"x",size:h,className:xe.icon,variant:"active"===m?"white":"default",onClick:e=>{e.stopPropagation(),s&&s()}})}):null]})};var Ce={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-"};var ke={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"};var Se={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 Pe=({title:a="Title",expanded:n=!0,chips:r=[],items:o=[],onClearAll:l,onChipRemove:i,onItemClick:s,className:c="",...d})=>{const[u,m]=t.useState(n),[p,h]=t.useState(""),g=[Se.dropdownNestedColumn,c].filter(Boolean).join(" "),f=e.jsxs("div",{className:Se.titleAndCta,children:[e.jsx("p",{className:Se.titleText,children:a}),e.jsx("button",{className:Se.clearAllButton,onClick:e=>{e.stopPropagation(),l&&l()},type:"button",children:e.jsx("p",{className:Se.clearAllText,children:"Clear all"})})]}),_=o.filter(e=>e.label.toLowerCase().includes(p.toLowerCase()));return e.jsxs("div",{className:g,...d,children:[e.jsxs("div",{className:Se.titleFrame,children:[f,e.jsx("button",{className:Se.chevronButton,onClick:()=>{m(!u)},type:"button",children:e.jsx("div",{className:Se.chevronContainer,children:e.jsx("div",{className:Se.chevronIcon,style:{transform:u?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:e.jsx(E,{name:"caret-up",size:16})})})})]}),u&&e.jsx("div",{className:Se.dropdownWithSearch,children:e.jsxs("div",{className:Se.dropdownContent,children:[e.jsx("div",{className:Se.chipListSection,children:r.length>0?e.jsxs("div",{className:Se.chipGrid,children:[r.slice(0,5).map(t=>e.jsx(we,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{i&&i(t)}},t.id||t.label)),r.length>5&&e.jsx(we,{label:"+"+(r.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:Se.moreChipsChip})]}):e.jsx("div",{className:Se.noChips,children:"No items selected"})}),e.jsx("div",{className:Se.searchInputSection,children:e.jsxs("div",{className:Se.searchInput,children:[e.jsx(E,{name:"magnifying-glass",size:16,className:Se.searchIcon}),e.jsx("input",{type:"text",className:Se.searchField,placeholder:"Search",value:p,onChange:e=>h(e.target.value)})]})}),e.jsx("div",{className:Se.itemsList,children:e.jsx("div",{className:Se.itemsContainer,children:_.length>0?_.map((t,a)=>e.jsx(ue,{label:t.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:t.checked||!1,type:t.type||"Default",onClick:()=>{s&&s(t)}},t.id||a)):e.jsx("div",{className:Se.noItems,children:"No items found"})})})]})})]})};var Ne={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"};var je={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"};var Ie={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"};var Le={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"};var Ae={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 Be=({count:t=0,variant:a="primary",size:n="medium",maxCount:r=99,className:o="",...l})=>{const i=[Ae.notification,Ae[`variant_${a}`],Ae[`size_${n}`],o].filter(Boolean).join(" ");return e.jsx("span",{className:i,...l,children:(()=>{if("number"==typeof t&&t>r)return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:Ae.count,children:r}),e.jsx("span",{className:Ae.plus,children:"+"})]});if("string"==typeof t&&t.endsWith("+")){const a=t.slice(0,-1);return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:Ae.count,children:a}),e.jsx("span",{className:Ae.plus,children:"+"})]})}return t})()})};var ze={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};var De={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"};var $e={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"};var Te={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"};var Fe={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 We=({label:t,count:a,isActive:n=!1,disabled:r=!1,onClick:o,className:l="",...i})=>{const s=[Fe.tab,n&&Fe.active,r&&Fe.disabled,l].filter(Boolean).join(" ");return e.jsxs("button",{className:s,onClick:e=>{!r&&o&&o(e)},disabled:r,type:"button",role:"tab","aria-selected":n,...i,children:[e.jsx("span",{className:Fe.label,children:t}),null!=a&&e.jsx(Be,{count:a,variant:r?"subtle":n?"primary":"neutral",size:"small",className:Fe.notification}),n&&e.jsx("div",{className:Fe.underline})]})};var Re={tabList:"TabList-module_tabList__sSh3n"};var Me={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 He=t.createContext(null),Ee=({children:t,id:a,rowKey:n,row:r})=>{const{attributes:i,listeners:s,setNodeRef:c,transform:d,transition:u,isDragging:m}=o.useSortable({id:a}),p={transform:l.CSS.Transform.toString(d),transition:u,opacity:m?.5:1};return e.jsx(He.Provider,{value:{attributes:i,listeners:s},children:e.jsx("tr",{ref:c,style:p,className:`${m?Me.rowDragging:""}`,children:t})})},Ue=()=>{const a=t.useContext(He);if(!a)return null;const{attributes:n,listeners:r}=a;return e.jsx("td",{className:Me.dragHandleCell,children:e.jsx("div",{className:Me.dragHandle,...r,...n,children:e.jsx(E,{name:"dots-six-vertical",size:12})})})},Oe=({columnKey:a,onResizeStart:n,onResize:r,onResizeEnd:o})=>{const l=t.useRef(null),[i,s]=t.useState(!1),c=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),s(!0);const t=e.clientX,i=l.current?.parentElement?.offsetWidth||0,c=e=>{const n=e.clientX-t,o=Math.max(50,i+n);r&&r(a,o)},d=()=>{s(!1),o&&o(a),document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect=""};n&&n(a),document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[a,r,n,o]);return e.jsx("div",{ref:l,className:`${Me.resizeHandle} ${i?Me.resizing:""}`,onMouseDown:c,title:"Drag to resize column",children:e.jsx("div",{className:Me.resizeHandleLine})})};var Ge={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"};var qe={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 Ve={success:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M20 6L9 17L4 12",stroke:"#00B050",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),warning:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("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:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#D92D20",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Ye={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"},Xe={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)"}},Ke={sans:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',mono:'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Ze={regular:400,medium:500,semibold:600,bold:700},Qe={normal:"normal",italic:"italic"},Je={scale01:11,scale02:12,scale03:13,scale04:14,scale05:16,scale06:18,scale07:20,scale08:24,scale09:28,scale10:32,scale11:40},et={tight:1.25,normal:1.5,relaxed:1.75},tt={tight:"-0.01em",normal:"0",wide:"0.01em"},at={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},nt={none:0,sm:4,md:8,lg:12,xl:16,full:9999},rt={none:0,thin:1,medium:1.5,thick:2},ot={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},lt={sm:24,md:32,lg:40},it={none:0,soft:2,light:4,medium:8,heavy:12,intense:24},st={xs:1,sm:2,md:4,lg:8,xl:16},ct={mobile:375,tablet:768,desktop:1200,wide:1440},dt={mobile:`@media (min-width: ${ct.mobile}px)`,tablet:`@media (min-width: ${ct.tablet}px)`,desktop:`@media (min-width: ${ct.desktop}px)`,wide:`@media (min-width: ${ct.wide}px)`},ut={brand:{default:Ye.purple[500],secondary:Ye.purple[300],tertiary:Ye.purple[150],hover:Ye.purple[600],secondaryHover:Ye.purple[400],tertiaryHover:Ye.purple[200],subtleLow:Xe.purple[100],subtleMedium:Xe.purple[100]},action:{default:Ye.violet[500],secondary:Ye.violet[300],tertiary:Ye.violet[100],hover:Ye.violet[400],secondaryHover:Ye.violet[400],tertiaryHover:Ye.violet[150],subtleLow:Xe.violet[100],subtleMedium:Xe.violet[100]},success:{default:Ye.green[500],secondary:Ye.green[200],tertiary:Ye.green[50],hover:Ye.green[600],secondaryHover:Ye.green[300],tertiaryHover:Ye.green[200],subtleLow:Ye.green[200],subtleMedium:Ye.green[200]},warning:{default:Ye.yellow[500],secondary:Ye.yellow[300],tertiary:Ye.yellow[150],hover:Ye.yellow[600],secondaryHover:Ye.yellow[400],tertiaryHover:Ye.yellow[200],subtleLow:Ye.yellow[200],subtleMedium:Ye.yellow[200]},danger:{default:Ye.red[400],secondary:Ye.red[200],tertiary:Ye.red[50],hover:Ye.red[600],secondaryHover:Ye.red[300],tertiaryHover:Ye.red[150],subtleLow:Xe.red[100],subtleMedium:Xe.red[100]},info:{default:Ye.blue[500],secondary:Ye.blue[300],tertiary:Ye.blue[100],hover:Ye.blue[600],secondaryHover:Ye.blue[400],tertiaryHover:Ye.blue[200],subtleLow:Ye.blue[200],subtleMedium:Ye.blue[200]},neutral:{default:Ye.slate[500],secondary:Ye.slate[300],tertiary:Ye.slate[100],hover:Ye.slate[600],secondaryHover:Ye.slate[400],tertiaryHover:Ye.slate[200],subtleLow:Xe.slate[100],subtleMedium:Xe.slate[200]},default:{default:Ye.slate[50],hover:Ye.slate[100],glass:Xe.white[300],onGlass:Xe.white[600],onGlassSecondary:Xe.white[700],onGlassTertiary:Xe.white[800],onGlassHover:Xe.white[800]},disabled:{default:Ye.gray[200],secondary:Ye.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)"}},mt={default:{default:Ye.slate[800],secondary:Ye.slate[500],tertiary:Ye.slate[300]},brand:{default:Ye.purple[500],secondary:Ye.purple[300],tertiary:Ye.purple[150],onBrand:Ye.purple[50],onBrandSecondary:Ye.purple[800],onBrandTertiary:Ye.purple[600]},action:{default:Ye.violet[500],secondary:Ye.violet[300],tertiary:Ye.violet[150],onAction:Ye.violet[50],onActionSecondary:Ye.violet[700],onActionTertiary:Ye.violet[600]},success:{default:Ye.green[800],secondary:Ye.green[600],tertiary:Ye.green[500],onSuccess:Ye.green[50],onSuccessSecondary:Ye.green[700],onSuccessTertiary:Ye.green[800]},warning:{default:Ye.yellow[900],secondary:Ye.yellow[700],tertiary:Ye.yellow[600],onWarning:Ye.yellow[900],onWarningSecondary:Ye.yellow[800],onWarningTertiary:Ye.yellow[700]},danger:{default:Ye.red[500],secondary:Ye.red[400],tertiary:Ye.red[300],onDanger:Ye.red[50],onDangerSecondary:Ye.red[800],onDangerTertiary:Ye.red[600]},info:{default:Ye.blue[500],secondary:Ye.blue[300],tertiary:Ye.blue[150],onInfo:Ye.blue[50],onInfoSecondary:Ye.blue[800],onInfoTertiary:Ye.blue[600]},neutral:{default:Ye.slate[800],secondary:Ye.slate[500],tertiary:Ye.slate[300],onNeutral:Ye.slate[50],onNeutralSecondary:Ye.slate[800],onNeutralTertiary:Ye.slate[600]},disabled:{default:Ye.gray[400],secondary:Ye.gray[300],onDisabled:Ye.gray[500],onDisabledSecondary:Ye.gray[300]},utilities:{onOverlay:Xe.black[1e3]}},pt={default:{default:Ye.white,secondary:Ye.slate[150],tertiary:Ye.slate[500],subtleLow:Xe.white[800],subtleMedium:Xe.slate[200],subtleHigh:Xe.white[400]},brand:{default:Ye.purple[200],secondary:Ye.purple[300],tertiary:Ye.purple[150],onBrand:Ye.purple[50],onBrandSecondary:Ye.purple[800],onBrandTertiary:Ye.purple[600]},action:{default:Ye.violet[500],secondary:Ye.violet[300],tertiary:Ye.violet[150],onAction:Ye.violet[50],onActionSecondary:Ye.violet[600],onActionTertiary:Ye.violet[800]},success:{default:Ye.green[800],secondary:Ye.green[600],tertiary:Ye.green[500]},warning:{default:Ye.yellow[800],secondary:Ye.yellow[600],tertiary:Ye.yellow[500]},danger:{default:Ye.red[500],secondary:Ye.red[300],tertiary:Ye.red[100],onDanger:Ye.red[600]},info:{default:Ye.blue[500],secondary:Ye.blue[300],tertiary:Ye.blue[150]},neutral:{default:Ye.slate[800],secondary:Ye.slate[500],tertiary:Ye.slate[200],onNeutral:Ye.slate[50],onNeutralSecondary:Ye.slate[700],onNeutralTertiary:Ye.slate[600]},disabled:{default:Ye.gray[400]},utilities:{swatch:"rgba(0, 0, 0, 0.24)"}},ht={default:{default:Ye.slate[800],secondary:Ye.slate[500],tertiary:Ye.slate[300]},brand:{default:Ye.purple[800],secondary:Ye.purple[600],tertiary:Ye.purple[500],onBrand:Ye.purple[50],onBrandSecondary:Ye.purple[800],onBrandTertiary:Ye.purple[600]},action:{default:Ye.violet[500],secondary:Ye.violet[300],tertiary:Ye.violet[150],onAction:Ye.violet[50],onActionSecondary:Ye.violet[700],onActionTertiary:Ye.violet[600]},success:{default:Ye.green[500],secondary:Ye.green[200],tertiary:Ye.green[100],onSuccess:Ye.green[50],onSuccessSecondary:Ye.green[700],onSuccessTertiary:Ye.green[800]},warning:{default:Ye.yellow[500],secondary:Ye.yellow[300],tertiary:Ye.yellow[150],onWarning:Ye.yellow[1e3],onWarningSecondary:Ye.yellow[800],onWarningTertiary:Ye.yellow[900]},danger:{default:Ye.red[500],secondary:Ye.red[400],tertiary:Ye.red[300],onDanger:Ye.red[50],onDangerSecondary:Ye.red[700],onDangerTertiary:Ye.red[800]},info:{default:Ye.blue[500],secondary:Ye.blue[300],tertiary:Ye.blue[150],onInfo:Ye.blue[1e3],onInfoSecondary:Ye.blue[800],onInfoTertiary:Ye.blue[900]},neutral:{default:Ye.slate[800],secondary:Ye.slate[500],tertiary:Ye.slate[300],onNeutral:Ye.slate[50],onNeutralSecondary:Ye.slate[700],onNeutralTertiary:Ye.slate[600]},disabled:{default:Ye.gray[400],secondary:Ye.gray[300],onDisabled:Ye.gray[500],onDisabledSecondary:Ye.gray[300]},utilities:{onOverlay:Xe.black[1e3]}},gt={heroTitle:{fontFamily:Ke.sans,fontSize:Je.scale11,fontWeight:Ze.bold,lineHeight:et.tight,letterSpacing:tt.tight},titlePage:{small:{fontFamily:Ke.sans,fontSize:Je.scale07,fontWeight:Ze.bold,lineHeight:et.tight,letterSpacing:tt.tight},base:{fontFamily:Ke.sans,fontSize:Je.scale08,fontWeight:Ze.bold,lineHeight:et.tight,letterSpacing:tt.tight},large:{fontFamily:Ke.sans,fontSize:Je.scale09,fontWeight:Ze.bold,lineHeight:et.tight,letterSpacing:tt.tight}},heading:{small:{fontFamily:Ke.sans,fontSize:Je.scale05,fontWeight:Ze.medium,lineHeight:et.normal,letterSpacing:tt.normal},base:{fontFamily:Ke.sans,fontSize:Je.scale06,fontWeight:Ze.medium,lineHeight:et.normal,letterSpacing:tt.normal},large:{fontFamily:Ke.sans,fontSize:Je.scale07,fontWeight:Ze.medium,lineHeight:et.normal,letterSpacing:tt.normal}},subheading:{small:{fontFamily:Ke.sans,fontSize:Je.scale04,fontWeight:Ze.regular,lineHeight:et.normal,letterSpacing:tt.normal},base:{fontFamily:Ke.sans,fontSize:Je.scale05,fontWeight:Ze.regular,lineHeight:et.normal,letterSpacing:tt.normal},large:{fontFamily:Ke.sans,fontSize:Je.scale06,fontWeight:Ze.regular,lineHeight:et.normal,letterSpacing:tt.normal}},subtitle:{small:{fontFamily:Ke.sans,fontSize:Je.scale06,fontWeight:Ze.regular,lineHeight:et.normal,letterSpacing:tt.normal},base:{fontFamily:Ke.sans,fontSize:Je.scale07,fontWeight:Ze.regular,lineHeight:et.normal,letterSpacing:tt.normal},large:{fontFamily:Ke.sans,fontSize:Je.scale08,fontWeight:Ze.regular,lineHeight:et.normal,letterSpacing:tt.normal}},body:{xs:{regular:{fontFamily:Ke.sans,fontSize:Je.scale02,fontWeight:Ze.regular,lineHeight:et.normal,letterSpacing:tt.normal},strong:{fontFamily:Ke.sans,fontSize:Je.scale02,fontWeight:Ze.medium,lineHeight:et.normal,letterSpacing:tt.normal}},s:{regular:{fontFamily:Ke.sans,fontSize:Je.scale03,fontWeight:Ze.regular,lineHeight:et.relaxed,letterSpacing:tt.normal},strong:{fontFamily:Ke.sans,fontSize:Je.scale03,fontWeight:Ze.medium,lineHeight:et.relaxed,letterSpacing:tt.normal}},m:{regular:{fontFamily:Ke.sans,fontSize:Je.scale04,fontWeight:Ze.regular,lineHeight:et.relaxed,letterSpacing:tt.normal},strong:{fontFamily:Ke.sans,fontSize:Je.scale04,fontWeight:Ze.medium,lineHeight:et.relaxed,letterSpacing:tt.normal}},l:{regular:{fontFamily:Ke.sans,fontSize:Je.scale05,fontWeight:Ze.regular,lineHeight:et.relaxed,letterSpacing:tt.normal},strong:{fontFamily:Ke.sans,fontSize:Je.scale05,fontWeight:Ze.medium,lineHeight:et.relaxed,letterSpacing:tt.normal}}},singleLine:{xxs:{regular:{fontFamily:Ke.sans,fontSize:Je.scale01,fontWeight:Ze.regular,lineHeight:et.tight,letterSpacing:tt.normal},strong:{fontFamily:Ke.sans,fontSize:Je.scale01,fontWeight:Ze.medium,lineHeight:et.tight,letterSpacing:tt.normal}},xs:{regular:{fontFamily:Ke.sans,fontSize:Je.scale02,fontWeight:Ze.regular,lineHeight:et.tight,letterSpacing:tt.normal},strong:{fontFamily:Ke.sans,fontSize:Je.scale02,fontWeight:Ze.medium,lineHeight:et.tight,letterSpacing:tt.normal}},s:{regular:{fontFamily:Ke.sans,fontSize:Je.scale03,fontWeight:Ze.regular,lineHeight:et.tight,letterSpacing:tt.normal},strong:{fontFamily:Ke.sans,fontSize:Je.scale03,fontWeight:Ze.medium,lineHeight:et.tight,letterSpacing:tt.normal}},m:{regular:{fontFamily:Ke.sans,fontSize:Je.scale04,fontWeight:Ze.regular,lineHeight:et.tight,letterSpacing:tt.normal},strong:{fontFamily:Ke.sans,fontSize:Je.scale04,fontWeight:Ze.medium,lineHeight:et.tight,letterSpacing:tt.normal}},l:{regular:{fontFamily:Ke.sans,fontSize:Je.scale05,fontWeight:Ze.regular,lineHeight:et.tight,letterSpacing:tt.normal},strong:{fontFamily:Ke.sans,fontSize:Je.scale05,fontWeight:Ze.medium,lineHeight:et.tight,letterSpacing:tt.normal}}},code:{fontFamily:Ke.mono,fontSize:Je.scale03,fontWeight:Ze.regular,lineHeight:et.relaxed,letterSpacing:tt.normal}},ft={xs:`0 ${st.xs}px ${2*st.xs}px rgba(0, 0, 0, 0.1)`,sm:`0 ${st.sm}px ${2*st.sm}px rgba(0, 0, 0, 0.12)`,md:`0 ${st.md}px ${2*st.md}px rgba(0, 0, 0, 0.15)`,lg:`0 ${st.lg}px ${2*st.lg}px rgba(0, 0, 0, 0.18)`,xl:`0 ${st.xl}px ${2*st.xl}px rgba(0, 0, 0, 0.20)`,none:"none"},_t={none:`blur(${it.none}px)`,soft:`blur(${it.soft}px)`,light:`blur(${it.light}px)`,medium:`blur(${it.medium}px)`,heavy:`blur(${it.heavy}px)`,intense:`blur(${it.intense}px)`},bt={color:{background:ut,text:mt,border:pt,icon:ht}},vt={color:{background:{brand:{default:Ye.purple[400],secondary:Ye.purple[600],tertiary:Ye.purple[800],hover:Ye.purple[300],secondaryHover:Ye.purple[500],tertiaryHover:Ye.purple[700],subtleLow:Xe.purple[100],subtleMedium:Xe.purple[200]},action:{default:Ye.violet[400],secondary:Ye.violet[600],tertiary:Ye.violet[800],hover:Ye.violet[300],secondaryHover:Ye.violet[500],tertiaryHover:Ye.violet[700],subtleLow:Xe.violet[100],subtleMedium:Xe.violet[200]},success:{default:Ye.green[600],secondary:Ye.green[800],tertiary:Ye.green[950],hover:Ye.green[500],secondaryHover:Ye.green[700],tertiaryHover:Ye.green[800],subtleLow:Ye.green[900],subtleMedium:Ye.green[800]},warning:{default:Ye.yellow[600],secondary:Ye.yellow[800],tertiary:Ye.yellow[950],hover:Ye.yellow[500],secondaryHover:Ye.yellow[700],tertiaryHover:Ye.yellow[900],subtleLow:Ye.yellow[900],subtleMedium:Ye.yellow[800]},danger:{default:Ye.red[600],secondary:Ye.red[800],tertiary:Ye.red[950],hover:Ye.red[500],secondaryHover:Ye.red[700],tertiaryHover:Ye.red[900],subtleLow:Xe.red[100],subtleMedium:Xe.red[200]},info:{default:Ye.blue[600],secondary:Ye.blue[800],tertiary:Ye.blue[950],hover:Ye.blue[500],secondaryHover:Ye.blue[700],tertiaryHover:Ye.blue[900],subtleLow:Ye.blue[900],subtleMedium:Ye.blue[800]},neutral:{default:Ye.slate[600],secondary:Ye.slate[800],tertiary:Ye.slate[950],hover:Ye.slate[500],secondaryHover:Ye.slate[700],tertiaryHover:Ye.slate[900],subtleLow:Xe.slate[100],subtleMedium:Xe.slate[200]},default:{default:Ye.slate[950],hover:Ye.slate[900],glass:Xe.black[300],onGlass:Xe.black[600],onGlassSecondary:Xe.black[700],onGlassTertiary:Xe.black[800],onGlassHover:Xe.black[800]},disabled:{default:Ye.gray[800],secondary:Ye.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:Ye.slate[50],secondary:Ye.slate[300],tertiary:Ye.slate[500]},brand:{default:Ye.purple[300],secondary:Ye.purple[400],tertiary:Ye.purple[600],onBrand:Ye.purple[950],onBrandSecondary:Ye.purple[200],onBrandTertiary:Ye.purple[300]},action:{default:Ye.violet[300],secondary:Ye.violet[400],tertiary:Ye.violet[600],onAction:Ye.violet[950],onActionSecondary:Ye.violet[200],onActionTertiary:Ye.violet[300]},success:{default:Ye.green[300],secondary:Ye.green[400],tertiary:Ye.green[500],onSuccess:Ye.green[950],onSuccessSecondary:Ye.green[200],onSuccessTertiary:Ye.green[300]},warning:{default:Ye.yellow[300],secondary:Ye.yellow[400],tertiary:Ye.yellow[500],onWarning:Ye.yellow[950],onWarningSecondary:Ye.yellow[200],onWarningTertiary:Ye.yellow[300]},danger:{default:Ye.red[400],secondary:Ye.red[500],tertiary:Ye.red[600],onDanger:Ye.red[950],onDangerSecondary:Ye.red[200],onDangerTertiary:Ye.red[300]},info:{default:Ye.blue[400],secondary:Ye.blue[500],tertiary:Ye.blue[600],onInfo:Ye.blue[950],onInfoSecondary:Ye.blue[200],onInfoTertiary:Ye.blue[300]},neutral:{default:Ye.slate[50],secondary:Ye.slate[300],tertiary:Ye.slate[500],onNeutral:Ye.slate[950],onNeutralSecondary:Ye.slate[200],onNeutralTertiary:Ye.slate[300]},disabled:{default:Ye.gray[600],secondary:Ye.gray[700],onDisabled:Ye.gray[400],onDisabledSecondary:Ye.gray[500]},utilities:{onOverlay:Xe.white[800]}},border:{default:{default:Ye.slate[800],secondary:Ye.slate[700],tertiary:Ye.slate[500],subtleLow:Xe.black[800],subtleMedium:Xe.slate[200],subtleHigh:Xe.black[400]},brand:{default:Ye.purple[700],secondary:Ye.purple[600],tertiary:Ye.purple[800],onBrand:Ye.purple[950],onBrandSecondary:Ye.purple[200],onBrandTertiary:Ye.purple[400]},action:{default:Ye.violet[600],secondary:Ye.violet[700],tertiary:Ye.violet[800],onAction:Ye.violet[950],onActionSecondary:Ye.violet[300],onActionTertiary:Ye.violet[200]},success:{default:Ye.green[300],secondary:Ye.green[400],tertiary:Ye.green[500]},warning:{default:Ye.yellow[300],secondary:Ye.yellow[400],tertiary:Ye.yellow[500]},danger:{default:Ye.red[500],secondary:Ye.red[600],tertiary:Ye.red[800],onDanger:Ye.red[400]},info:{default:Ye.blue[500],secondary:Ye.blue[600],tertiary:Ye.blue[800]},neutral:{default:Ye.slate[300],secondary:Ye.slate[500],tertiary:Ye.slate[700],onNeutral:Ye.slate[950],onNeutralSecondary:Ye.slate[200],onNeutralTertiary:Ye.slate[300]},disabled:{default:Ye.gray[700]},utilities:{swatch:"rgba(255, 255, 255, 0.24)"}},icon:{default:{default:Ye.slate[100],secondary:Ye.slate[400],tertiary:Ye.slate[600]},brand:{default:Ye.purple[300],secondary:Ye.purple[400],tertiary:Ye.purple[500],onBrand:Ye.purple[950],onBrandSecondary:Ye.purple[200],onBrandTertiary:Ye.purple[300]},action:{default:Ye.violet[400],secondary:Ye.violet[500],tertiary:Ye.violet[700],onAction:Ye.violet[950],onActionSecondary:Ye.violet[200],onActionTertiary:Ye.violet[300]},success:{default:Ye.green[400],secondary:Ye.green[600],tertiary:Ye.green[800],onSuccess:Ye.green[950],onSuccessSecondary:Ye.green[200],onSuccessTertiary:Ye.green[300]},warning:{default:Ye.yellow[400],secondary:Ye.yellow[600],tertiary:Ye.yellow[800],onWarning:Ye.yellow[950],onWarningSecondary:Ye.yellow[200],onWarningTertiary:Ye.yellow[300]},danger:{default:Ye.red[400],secondary:Ye.red[500],tertiary:Ye.red[600],onDanger:Ye.red[950],onDangerSecondary:Ye.red[200],onDangerTertiary:Ye.red[300]},info:{default:Ye.blue[400],secondary:Ye.blue[600],tertiary:Ye.blue[800],onInfo:Ye.blue[950],onInfoSecondary:Ye.blue[200],onInfoTertiary:Ye.blue[300]},neutral:{default:Ye.slate[100],secondary:Ye.slate[400],tertiary:Ye.slate[600],onNeutral:Ye.slate[950],onNeutralSecondary:Ye.slate[200],onNeutralTertiary:Ye.slate[300]},disabled:{default:Ye.gray[600],secondary:Ye.gray[700],onDisabled:Ye.gray[400],onDisabledSecondary:Ye.gray[500]},utilities:{onOverlay:Xe.white[800]}}}},yt={color:{background:ut,text:mt,border:pt,icon:ht},typography:gt,spacing:at,radius:nt,borderWidth:rt,depth:ot,iconSize:lt,shadow:ft,blur:_t,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:ct,media:dt,fontFamily:Ke,fontWeight:Ze,fontSize:Je,lineHeight:et,letterSpacing:tt,fontStyle:Qe},xt={colors:Ye,alphas:Xe,space:at,radius:nt,borderWidth:rt,depth:ot,iconSize:lt,blur:it,elevation:st,fontFamily:Ke,fontWeight:Ze,fontSize:Je,lineHeight:et,letterSpacing:tt,fontStyle:Qe,breakpoints:ct},wt={light:bt,dark:vt};function Ct(e,t="",a={}){for(const n in e){const r=e[n],o=t?`${t}-${kt(n)}`:kt(n);"object"!=typeof r||null===r||Array.isArray(r)?a[`--${o}`]=String(r):Ct(r,o,a)}return a}function kt(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function St(e){return Ct(e)}const Pt="squarex-ui-theme";const 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)"}};const jt={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 It(e,t,a){if(!e)return null;const n=jt[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)}const Lt={fadeIn:"animate-fade-in",slideUp:"animate-slide-up",bounce:"animate-bounce-gentle",pulse:"animate-pulse-slow",spin:"animate-spin"};function At(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function Bt(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}}const zt={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},Dt={required:{required:!0},email:{required:!0,pattern:zt.email},password:{required:!0,minLength:8},phone:{required:!0,pattern:zt.phone},url:{required:!0,pattern:zt.url},alphanumeric:{pattern:zt.alphanumeric},numeric:{pattern:zt.numeric},decimal:{pattern:zt.decimal},slug:{pattern:zt.slug},hexColor:{pattern:zt.hexColor}};exports.Avatar=X,exports.AvatarBlock=({avatarProps:t,title:a,description:n,className:r="",...o})=>e.jsxs("div",{className:`${K} ${r}`,...o,children:[e.jsx(X,{...t}),e.jsxs("div",{className:Z,children:[e.jsx("div",{className:Q,children:a}),n&&e.jsx("div",{className:J,children:n})]})]}),exports.AvatarGroup=({avatars:t=[],max:a=3,layout:n="overlap",size:r="medium",className:o="",style:l,...i})=>{const s=t.slice(0,a),c=t.length-a,d=[ee.group,ee[`layout_${n}`],o].filter(Boolean).join(" ");return e.jsxs("div",{className:d,style:l,...i,children:[s.map((a,n)=>e.jsx(X,{...a,size:r,className:ee.groupItem,style:{zIndex:t.length-n}},n)),c>0&&e.jsx(X,{initials:`+${c}`,size:r,className:ee.groupItem,style:{zIndex:0}})]})},exports.BackgroundGradient=({className:t="",mode:a="Light Mode BG",...n})=>e.jsx("div",{className:`${te} ${t}`,"data-mode":a,...n,children:e.jsx("img",{className:ae,src:`/bg/Mode=${a}.svg`,alt:`${a} Blobs`})}),exports.Badge=({label:t="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=[ne.badge,ne[`type_${i}`],ne[`size_${s}`],r].filter(Boolean).join(" ");return e.jsx("span",{className:c,...l,children:o||t})},exports.BarChart=a=>{const n={...u,...a},{data:r,title:o,titleStyle:l,titleClassName:i,width:s,height:c,margin:m,colors:p,showGrid:h,animate:g,responsive:f,formatValue:_,className:b,style:v,onBarClick:y,onBarHover:x,showTooltip:w,tooltipStyle:C,tooltipClassName:k,tooltipContent:S,showLegend:P=!0,legendPosition:N="bottom",legendStyle:j,legendClassName:I,legendTitle:L,showYAxis:A=!0,showYAxisLine:B=!1,showYAxisTicks:z=!1,yAxisStyle:D,yAxisClassName:$,yAxisLabelStyle:T,yAxisLabelClassName:F,cornerRadius:W,barPadding:R,tickCount:M}=n,H=t.useRef(null),E=t.useRef(null),U=t.useRef(null),[O,G]=t.useState({width:s||800,height:c||400}),[q,V]=t.useState(!1);t.useEffect(()=>{if(V(!0),!f)return;const e=()=>{if(E.current){const e=E.current.getBoundingClientRect().width,t=Math.max(300,e),a=Math.max(300,.5*t);G({width:t,height:a})}};let t;E.current&&(t=new ResizeObserver(e),t.observe(E.current)),window.addEventListener("resize",e);const a=setTimeout(e,0);return()=>{t&&t.disconnect(),window.removeEventListener("resize",e),clearTimeout(a)}},[f]),t.useEffect(()=>{if(!q||!r||0===r.length)return;const e=d.select(H.current);e.selectAll("*").remove();const t=O.width-(m?.left||0)-(m?.right||0),a=O.height-(m?.top||0)-(m?.bottom||0),n=e.attr("width",O.width).attr("height",O.height).append("g").attr("transform",`translate(${m?.left||0},${m?.top||0})`);if(p?.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",p.gradient.start),t.append("stop").attr("offset","100%").attr("stop-color",p.gradient.end)}const o=d.scaleBand().domain(r.map(e=>e.category)).range([0,t]).padding(R||.6),l=d.max(r,e=>e.value)||0,i=d.scaleLinear().domain([0,1.1*l]).range([a,0]);if(h){const e=d.axisLeft(i).tickSize(-t).tickFormat(()=>"").ticks(M||5);n.append("g").attr("class","grid").style("stroke-dasharray","3,3").style("opacity",.3).call(e)}if(A){const e=d.axisLeft(i).ticks(M||5).tickFormat(e=>{const t="number"==typeof e?e:Number(e);return _?_(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(D){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=D[e];void 0!==a&&t.style(e,a.toString())})}if(B||t.selectAll("path").style("display","none"),z||t.selectAll("line").style("display","none"),t.selectAll("text").attr("class",`y-axis-label ${F||""}`).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"),T){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=T[e];void 0!==a&&t.selectAll("text").style(e,a.toString())})}}const s=d.axisBottom(o),c=n.append("g").attr("class","x-axis").attr("transform",`translate(0,${a})`).style("color","#718096").style("font-size","0.875rem").call(s);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 u=n.selectAll(".bar").data(r).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",W||5).attr("ry",W||5).style("fill",e=>e.color?e.color:p?.gradient?"url(#barGradient)":p?.solid?p.solid:"#8B5CF6").style("cursor",y?"pointer":"default");g?u.transition().duration(800).ease(d.easeBackOut.overshoot(1.1)).attr("y",e=>i(e.value)).attr("height",e=>a-i(e.value)):u.attr("y",e=>i(e.value)).attr("height",e=>a-i(e.value)),(y||x||w)&&u.on("click",(e,t)=>{if(y){const e=r.indexOf(t);y(t,e)}}).on("mouseover",(e,t)=>{if(x){const e=r.indexOf(t);x(t,e)}if(w&&U.current&&E.current){const a=d.select(U.current),n=E.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">${_?_(t.value):t.value.toString()}</div>\n `)}d.select(e.currentTarget).transition().duration(200).style("opacity",.8).style("filter","brightness(1.1)")}).on("mouseout",e=>{w&&U.current&&d.select(U.current).style("opacity",0),d.select(e.currentTarget).transition().duration(200).style("opacity",1).style("filter","brightness(1)")}).on("mousemove",(e,t)=>{if(w&&U.current&&E.current){const t=d.select(U.current),a=E.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%)")}})},[q,r,O,m,p,h,g,_,y,x,w,W,R,M,A,B,z,D,$,T,F]);const Y=()=>{if(!P||!r||0===r.length)return null;const t=r.map((t,a)=>e.jsxs("div",{className:"flex items-center space-x-2 cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>y?.(t,a),onMouseEnter:()=>x?.(t,a),children:[e.jsx("div",{className:"w-4 h-4 rounded-sm",style:{backgroundColor:t.color||(p?.gradient?"url(#barGradient)":p?.solid||"#8B5CF6")}}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:t.category}),e.jsxs("span",{className:"text-xs text-gray-500",children:["(",_?_(t.value):t.value.toString(),")"]})]},t.category));return e.jsxs("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"}[N]} ${I||""}`,style:j,children:[L&&e.jsx("div",{className:"w-full text-center mb-2",children:e.jsx("span",{className:"text-sm font-semibold text-gray-600",children:L})}),t]})};return e.jsxs("div",{ref:E,className:`bg-white p-6 rounded-xl ${b||""}`,style:v,children:[o&&e.jsx("h2",{className:`text-xl font-semibold text-[#18044E] mb-6 ${i||""}`,style:l,children:o}),P&&"top"===N&&Y(),e.jsxs("div",{className:"relative",children:[e.jsx("svg",{ref:H,className:"w-full h-auto"}),w&&e.jsx("div",{ref:U,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 ${k||""}`,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)",...C},children:S?S(r[0]):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"font-semibold text-white",children:r[0]?.category}),e.jsx("div",{className:"text-sm text-gray-200 mt-1",children:_?_(r[0]?.value||0):(r[0]?.value||0).toString()})]})})]}),P&&"bottom"===N&&Y()]})},exports.Breadcrumb=({items:t=[],separator:a,className:r="",...o})=>{const l=e.jsx("span",{className:re.separator,children:e.jsx(E,{name:"caret-right",size:14,className:re.separatorIcon})}),i=void 0!==a?e.jsx("span",{className:re.separator,children:a}):l,s=t.map(t=>({...t,title:e.jsxs("span",{className:re.itemContent,children:[t.icon&&e.jsx(E,{name:t.icon,size:14,className:re.itemIcon}),e.jsx("span",{className:re.itemTitle,children:t.title})]})}));return e.jsx("div",{className:`${re.breadcrumbContainer} ${r}`,children:e.jsx(n.Breadcrumb,{items:s,separator:i,className:re.antBreadcrumb,...o})})},exports.Button=G,exports.ButtonDanger=V,exports.Card=({children:t,variant:a="default",padding:n="md",hover:r=!1,clickable:o=!1,header:l,footer:i,onClick:s,className:c,style:d,animate:u=!0,animationDuration:m=300,animationDelay:p=0,animationEasing:h="ease-in-out",...g})=>{const f=W("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"}[a],{xs:"p-2",sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[n],r&&"hover:shadow-md hover:-translate-y-0.5",o&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",u&&"animate-fade-in",c),_={...d,...u&&{animationDuration:`${m}ms`,animationDelay:`${p}ms`,animationTimingFunction:h}};return e.jsxs("div",{className:f,style:_,onClick:e=>{o&&s&&s(e)},...g,children:[l&&e.jsx("div",{className:"mb-4 pb-4 border-b border-gray-200",children:l}),e.jsx("div",{className:"flex-1",children:t}),i&&e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:i})]})},exports.Categories=({variant:a="single",chips:n=[],categories:r=[],onChipRemove:o,onCategoryToggle:l,onItemClick:i,onCancel:s,onApply:c,cancelLabel:d="Cancel",applyLabel:u="Apply",className:m="",...p})=>{const[h,g]=t.useState(""),[f,_]=t.useState(r.reduce((e,t,a)=>(e[a]=void 0===t.expanded||t.expanded,e),{})),b=t.useMemo(()=>{if(!h)return r;const e=h.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,h]);t.useEffect(()=>{if(h){const e=b.reduce((e,t,a)=>(e[a]=!0,e),{});_(e)}},[h,b.length]);const v=(t,n)=>{const r=!!h||!1!==f[n];return e.jsxs("div",{className:oe.categoryList,children:[e.jsxs("button",{type:"button",className:oe.categoryTitle,onClick:()=>{return e=n,_(t=>({...t,[e]:!t[e]})),void(l&&l(e,!f[e]));var e},children:[e.jsx("p",{className:oe.categoryTitleText,children:t.title||"Category"}),e.jsx("div",{className:oe.chevronIcon,children:e.jsx(E,{name:"CaretDown",size:14,className:`${oe.chevronImg} ${r?oe.chevronUp:""}`})})]}),r&&e.jsx("div",{className:oe.categoryItems,children:(t.items||[]).map((t,r)=>e.jsx("div",{className:oe.categoryItemWrapper,children:e.jsx(ue,{label:t.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===a,hasRadio:"multiple"!==a,checked:t.checked||!1,type:t.type||"default",onClick:()=>{i&&i(t,n)}})},t.id||r))})]},n)},y=[oe.container,oe[`variant_${a}`],m].filter(Boolean).join(" ");return e.jsxs("div",{className:y,...p,children:[e.jsxs("div",{className:oe.searchSection,children:[e.jsxs("div",{className:oe.searchInput,children:[e.jsx("div",{className:oe.searchIcon,children:e.jsx(E,{name:"MagnifyingGlass",size:16,className:oe.searchIconImage})}),e.jsx("input",{type:"text",className:oe.realSearchInput,placeholder:"Search",value:h,onChange:e=>{g(e.target.value)}})]}),(()=>{if(!n||0===n.length)return null;const t=n.slice(0,5),a=n.length-5;let r=null;return a>0&&(r={isMore:!0,label:`+${a}`}),e.jsxs("div",{className:oe.chipListContainer,children:[t.map((t,a)=>e.jsxs("div",{className:oe.chip,children:[e.jsx("p",{className:oe.chipLabel,children:t.label||"Label"}),e.jsx("button",{type:"button",className:oe.chipRemove,onClick:e=>{e.stopPropagation(),o&&o(t)},"aria-label":"Remove chip",children:e.jsx(E,{name:"X",size:14,className:oe.chipIcon})})]},a)),r&&e.jsx("div",{className:oe.chip,children:e.jsx("p",{className:oe.chipLabel,children:r.label})})]})})()]}),e.jsx("div",{className:oe.listsContainer,children:b.map((e,t)=>v(e,t))}),e.jsxs("div",{className:oe.actionsContainer,children:[e.jsx("button",{type:"button",className:oe.cancelButton,onClick:s,children:e.jsx("p",{className:oe.cancelButtonText,children:d})}),e.jsx("button",{type:"button",className:oe.applyButton,onClick:c,children:e.jsx("p",{className:oe.applyButtonText,children:u})})]})]})},exports.Cell=({variant:t="default",label:a="",icon:n=null,badge:r=null,chip:o=null,statusIndicator:l=null,avatar:i=null,status:s=null,checked:c=!1,onChange:d,count:u=null,actions:m=[],className:p="",...h})=>e.jsx("div",{className:`${me.cell} ${me[`variant_${t}`]} ${p}`,...h,children:(()=>{switch(t){case"avatar":return e.jsxs("div",{className:me.avatarContent,children:[i?e.jsx("img",{src:i,alt:a,className:me.avatar}):e.jsx("div",{className:me.avatarPlaceholder,children:e.jsx(E,{name:"User",size:16})}),e.jsx("span",{className:me.label,children:a}),o?e.jsx("div",{className:me.chipWrapper,children:o}):r?e.jsx("span",{className:me.badge,children:r}):null]});case"status":return e.jsxs("div",{className:me.statusContent,children:[l||e.jsx("div",{className:`${me.statusDot} ${me[`status_${s?.toLowerCase()}`]}`}),e.jsx("span",{className:me.label,children:a}),o?e.jsx("div",{className:me.chipWrapper,children:o}):r?e.jsx("span",{className:me.badge,children:r}):null]});case"social":return e.jsxs("div",{className:me.socialContent,children:[n&&e.jsx(E,{name:n,size:16,className:me.socialIcon}),e.jsx("span",{className:me.label,children:a})]});case"actions":return e.jsx("div",{className:me.actionsContent,children:m.map((t,a)=>e.jsx("button",{className:me.actionButton,onClick:t.onClick,title:t.label,type:"button",children:e.jsx(E,{name:t.icon,size:14})},a))});case"checkbox":return e.jsxs("div",{className:me.checkboxContent,children:[e.jsx(se,{checked:c,onChange:d,size:"medium"}),e.jsx("span",{className:me.label,children:a})]});case"toggle":return e.jsx("div",{className:me.toggleContent,children:e.jsx(he,{checked:c,onChange:d,size:"medium"})});case"userCount":return e.jsx("div",{className:me.userCountContent,children:e.jsxs("div",{className:me.userIconWrapper,children:[e.jsx(E,{name:"User",size:14}),e.jsx("span",{className:me.count,children:u})]})});default:return e.jsx("div",{className:me.defaultContent,children:!o||a||n?e.jsxs(e.Fragment,{children:[n&&e.jsx(E,{name:n,size:16,className:me.leadingIcon}),e.jsx("span",{className:me.label,children:a}),o?e.jsx("div",{className:me.chipWrapper,children:o}):r?e.jsx("span",{className:me.badge,children:r}):null,!o&&e.jsx(E,{name:"Globe",size:14,className:me.trailingIcon})]}):e.jsx("div",{className:me.chipWrapper,children:o})})}})()}),exports.CellHeader=({label:t="",sortable:a=!1,sortOrder:n=null,hasCheckbox:r=!1,checked:o=!1,onSort:l,onCheckboxChange:i,className:s="",...c})=>e.jsx("div",{className:`${ge} ${a?fe:""} ${s}`,onClick:a?l:void 0,...c,children:e.jsxs("div",{className:_e,children:[r&&e.jsx("div",{className:be,onClick:e=>e.stopPropagation(),children:e.jsx(se,{checked:o,onChange:i,size:"small"})}),a&&e.jsx("div",{className:ve,"aria-label":`Sort ${n||"none"}`,children:e.jsx(E,{name:"asc"===n?"SortAscending":"desc"===n?"SortDescending":"CaretUpDown",size:14})}),e.jsx("span",{className:ye,children:t})]})}),exports.Checkbox=se,exports.Chip=we,exports.ChipList=({chips:t=[],layout:a="single",onChipRemove:n,className:r="",...o})=>{const l=t.length>0?t:[{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=[Ce.container,Ce[`layout_${i}`],r].filter(Boolean).join(" ");return e.jsx("div",{className:c,...o,children:s.map((t,a)=>e.jsx("div",{className:Ce.row,children:t.map(t=>e.jsx(we,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{n&&n(t)}},t.id||t.label))},a))})},exports.Dropdown=({value:a="",description:n="",label:r="",error:o="",hasLabel:l=!0,hasDescription:i=!0,hasError:s=!1,hasChips:c=!1,state:d="default",type:u="medium",placeholder:m="Value",chips:p=[],onChange:h,onFocus:g,onBlur:f,onClick:_,onOutsideClick:b,disabled:v,className:y="",children:x,...w})=>{const C=t.useRef(null);t.useEffect(()=>{if(!b)return;const e=e=>{C.current&&!C.current.contains(e.target)&&b()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[b]);const k=(u||"medium").toLowerCase(),S=v?"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})(d),P=[ke.container,ke[`type_${k}`],y].filter(Boolean).join(" "),N=[ke.dropdownWrapper,ke[`dropdownWrapper_type_${k}`],ke[`dropdownWrapper_state_${S}`],ke[`dropdownWrapper_type_${k}_state_${S}`]].filter(Boolean).join(" "),j=v||"disabled"===S,I=e.jsxs("div",{className:ke.fieldWrapper,children:[e.jsx("button",{type:"button",className:N,onClick:_||g,disabled:j,"aria-disabled":j,...w,children:e.jsxs("div",{className:ke.dropdownInner,children:[c&&0!==p.length?e.jsx("div",{className:ke.chipList,children:p.map((t,a)=>e.jsxs("div",{className:ke.chip,children:[e.jsx("span",{className:ke.chipLabel,children:t.label||"Label"}),t.onRemove&&e.jsx("button",{type:"button",className:ke.chipRemove,onClick:e=>{e.stopPropagation(),t.onRemove&&t.onRemove()},"aria-label":"Remove chip",children:e.jsx(E,{name:"x",size:10,className:ke.chipIcon})})]},a))}):null,a?e.jsx("span",{className:ke.value,children:a}):e.jsx("span",{className:ke.placeholder,children:m}),e.jsx("div",{className:ke.chevronWrapper,children:e.jsx(E,{name:x?"caret-up":"caret-down",size:12,className:ke.chevronIcon})})]})}),x]});return e.jsxs("div",{className:P,ref:C,children:[l&&r&&e.jsx("p",{className:ke.label,children:r}),i&&n&&e.jsx("p",{className:ke.description,children:n}),I,s&&o&&e.jsx("p",{className:ke.error,children:o})]})},exports.DropdownNested=({leftColumn:t={title:"Select a Member",chips:[],items:[]},rightColumn:a={title:"Select a Group",chips:[],items:[]},onLeftClearAll:n,onRightClearAll:r,onLeftChipRemove:o,onRightChipRemove:l,onLeftItemClick:i,onRightItemClick:s,onCancel:c,onApply:d,className:u="",...m})=>{const p=t.chips,h=a.chips,g=t.items,f=a.items,_=[Ne.dropdownNested,u].filter(Boolean).join(" ");return e.jsxs("div",{className:_,...m,children:[e.jsxs("div",{className:Ne.columns,children:[e.jsx("div",{className:Ne.column,children:e.jsx(Pe,{title:t.title,expanded:!0,chips:p,items:g,onClearAll:n,onChipRemove:o,onItemClick:i})}),e.jsx("div",{className:Ne.column,children:e.jsx(Pe,{title:a.title,expanded:!0,chips:h,items:f,onClearAll:r,onChipRemove:l,onItemClick:s})})]}),e.jsxs("div",{className:Ne.ctas,children:[e.jsx(V,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:c,className:Ne.cancelButton}),e.jsx(G,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:d,className:Ne.applyButton})]})]})},exports.DropdownNestedColumn=Pe,exports.GaugeChart=({segments:a,title:n})=>{const r=t.useRef(null),{segmentData:o,total:l}=(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:i,animationProgress:s}=(e=>{const[a,n]=t.useState(0),[r,o]=t.useState(0);return t.useEffect(()=>{let t=0;const a=1/(f/_),r=setInterval(()=>{t+=a,t>=1&&(t=1,clearInterval(r)),n(Math.floor(e*t)),o(t)},_);return()=>{clearInterval(r)}},[e]),{count:a,animationProgress:r}})(l),{tooltip:c,showTooltip:d,updateTooltip:u,hideTooltip:m}=(e=>{const[a,n]=t.useState({show:!1,content:"",x:0,y:0,type:""}),r=t.useCallback((t,a,r)=>{if(!e.current)return;const o=e.current.getBoundingClientRect(),l=t.clientX-o.left,i=t.clientY-o.top;n({show:!0,content:a,type:r,x:l,y:i-70})},[e]),o=t.useCallback((t,r,o)=>{if(!a.show||!e.current)return;const l=e.current.getBoundingClientRect(),i=t.clientX-l.left,s=t.clientY-l.top;n(e=>({...e,x:i,y:s-70}))},[a.show,e]),l=t.useCallback(()=>{n(e=>({...e,show:!1}))},[]);return{tooltip:a,showTooltip:r,updateTooltip:o,hideTooltip:l}})(r),p=h,v=g,y=Math.PI*p,x=t.useMemo(()=>({width:2*p+v,height:p+v+20,viewBox:`0 0 ${2*p+v} ${p+v+20}`}),[p,v]),w=t.useMemo(()=>((e,t)=>`M ${t/2},${e+10} \n A ${e},${e} 0 0 1 ${2*e+t/2},${e+10}`)(p,v),[p,v]),C=t.useMemo(()=>o.map((e,t)=>({currentArc:e.arcLength*s,previousArcsLength:o.slice(0,t).reduce((e,t)=>e+t.arcLength*s,0)})),[o,s]);return e.jsxs("div",{ref:r,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:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsxs("svg",{width:x.width,height:x.height,viewBox:x.viewBox,className:"relative",children:[e.jsx("path",{d:w,fill:"transparent",stroke:"#E5E7EB",strokeWidth:v,strokeLinecap:"round"}),o.map((t,a)=>{const{currentArc:n,previousArcsLength:r}=C[a];return e.jsx("path",{d:w,fill:"transparent",stroke:t.color,strokeWidth:v,strokeDasharray:`${n} ${y}`,strokeDashoffset:-r,strokeLinecap:"round"},`visual-${a}`)}),o.map((t,a)=>{const{currentArc:n,previousArcsLength:r}=C[a];return e.jsx("path",{d:w,fill:"transparent",stroke:"transparent",strokeWidth:v+4,strokeDasharray:`${n} ${y}`,strokeDashoffset:-r,strokeLinecap:"round",onMouseEnter:e=>d(e,b(t),t.label),onMouseMove:e=>u(e,b(t),t.label),onMouseLeave:m,className:"cursor-pointer",style:{pointerEvents:n>0?"stroke":"none"}},`hit-${a}`)}),e.jsx("text",{x:p+v/2,y:p+10-15,textAnchor:"middle",className:"text-base font-bold fill-[#29064D]",children:i.toLocaleString()}),e.jsx("text",{x:p+v/2,y:p+10+20,textAnchor:"middle",className:"text-sm fill-[#454545]",children:n})]})}),e.jsx("div",{className:"flex flex-wrap gap-4 mt-4 w-full max-w-xs justify-center",children:o.map((t,a)=>e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsx("div",{className:"w-[10px] h-[10px] rounded-full shadow-sm",style:{backgroundColor:t.color}}),e.jsx("span",{className:"text-sm font-medium text-[#454545]",children:t.label})]},`legend-${a}`))}),c.show&&e.jsx("div",{className:"absolute z-50 pointer-events-none",style:{left:`${c.x}px`,top:`${c.y}px`,transform:"translateX(-50%)"},children:e.jsxs("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:[c.content,e.jsx("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"})]})})]})},exports.Icon=E,exports.IconButton=({icon:t,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=[je.iconButton,je[`style_${d}`],je[`state_${m}`],je[`size_${n}`],i].filter(Boolean).join(" ");return e.jsx("button",{className:h,onClick:r,disabled:p,"aria-disabled":p,style:u,...c,children:t?"string"==typeof t?e.jsx(E,{name:t,className:je.icon,size:14}):t:"loading"===m?e.jsx(E,{name:"spinner",className:je.loaderIcon,size:16}):e.jsx(E,{name:"star",className:je.icon,size:14})})},exports.InputField=({value:a,description:n="",label:r="",error:o="",hasLabel:l=!0,hasDescription:i=!0,hasError:s=!1,hasChips:c=!1,showIcon:d=!1,chooseIcon:u=null,state:m="default",placeholder:p="Value",chips:h=[],onChange:g,onFocus:f,onBlur:_,disabled:b,className:v="",id:y,...x})=>{const[w,C]=t.useState(""),[k,S]=t.useState(!1),P=void 0!==a?a:w,N=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})(m),j=[Ie.container,v].filter(Boolean).join(" "),I=[Ie.input,Ie[`state_${N}`]].filter(Boolean).join(" "),L=[Ie.inputWrapper,Ie[`inputWrapper_state_${N}`]].filter(Boolean).join(" "),A=b||"disabled"===N,B=y||`input-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:j,children:[l&&r&&e.jsx("label",{className:Ie.label,htmlFor:B,children:r}),i&&n&&e.jsx("p",{className:Ie.description,children:n}),e.jsx("div",{className:L,children:e.jsxs("div",{className:Ie.inputInner,children:[e.jsx("input",{type:"text",id:B,className:I,value:P,placeholder:p,onChange:e=>{b||(void 0===a&&C(e.target.value),g&&g(e))},onFocus:e=>{b||(S(!0),f&&f(e))},onBlur:e=>{b||(S(!1),_&&_(e))},disabled:A,"aria-invalid":s,"aria-describedby":s?`${B}-error`:void 0,...x}),d?u||e.jsx("div",{className:Ie.iconWrapper,children:e.jsx("img",{src:"/icons/Icon.svg",alt:"Icon",className:Ie.icon})}):null,c&&0!==h.length?e.jsx("div",{className:Ie.chipList,children:h.map((t,a)=>e.jsxs("div",{className:Ie.chip,children:[e.jsx("span",{className:Ie.chipLabel,children:t.label||"Label"}),t.onRemove&&e.jsx("button",{type:"button",className:Ie.chipRemove,onClick:e=>{e.stopPropagation(),t.onRemove?.()},"aria-label":"Remove chip",children:e.jsx("img",{src:"/icons/Vector.svg",alt:"Remove",className:Ie.chipIcon})})]},a))}):null]})}),s&&o&&e.jsx("p",{className:Ie.error,id:`${B}-error`,children:o})]})},exports.ItemRow=ue,exports.ListSearch=({label:a="Search",chipList:n=!0,state:r="default",type:o="type1",chips:l=[],onChipRemove:i,onChange:s,onFocus:c,onBlur:d,disabled:u,className:m="",title:p="",...h})=>{const[g,f]=t.useState(!1),[_,b]=t.useState(!1),v=(()=>{if(u)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||(_?a&&"Search"!==a?"typing":"focused":g?"hover":"default")})(),y=(e=>{if(!e)return"type1";return"type2"===e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"")?"type2":"type1"})(o||"type1"),x=()=>n&&0!==l.length?e.jsx("div",{className:$e.chipList,children:l.map((t,a)=>e.jsxs("div",{className:$e.chip,children:[e.jsx("span",{className:$e.chipLabel,children:t.label||"Label"}),e.jsx("button",{type:"button",className:$e.chipRemove,onClick:e=>{e.stopPropagation(),i&&i(a)},"aria-label":"Remove chip",children:e.jsx("img",{src:"/icons/X.svg",alt:"Remove",className:$e.chipIcon})})]},a))}):null,w=W($e.container,$e[`container_type_${y}`],m),C=W($e.input,$e[`input_state_${v}`],$e[`input_type_${y}`]),k=W($e.inputInner,$e[`inputInner_state_${v}`]),S=u||"disabled"===v;return e.jsxs("div",{className:w,title:p,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:["type2"===y&&n&&l.length>0?x():null,e.jsx("div",{className:C,children:e.jsxs("div",{className:k,children:[e.jsx("div",{className:$e.searchIcon,children:e.jsx("img",{src:"/icons/search.svg",alt:"Search",className:$e.searchIconImage})}),e.jsx("input",{type:"text",className:$e.realInput,value:"Search"===a?"":a,placeholder:"Search",onChange:s,onFocus:e=>{b(!0),c&&c(e)},onBlur:e=>{b(!1),d&&d(e)},disabled:S,...h}),("focused"===v||"typing"===v)&&!a&&e.jsx("span",{className:$e.cursor,children:"|"})]})}),"type1"===y&&n&&l.length>0?x():null]})},exports.Modal=({isOpen:a,onClose:n,title:r,description:o,icon:l,children:i,actions:s,size:c="medium",showCloseButton:d=!0,className:u="",...m})=>{if(t.useEffect(()=>(document.body.style.overflow=a?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[a]),!a)return null;return e.jsx("div",{className:Le.overlay,onClick:e=>{e.target===e.currentTarget&&n&&n()},children:e.jsxs("div",{className:`${Le.modal} ${Le[c]} ${u}`,role:"dialog","aria-modal":"true",...m,children:[d&&e.jsx("button",{className:Le.closeButton,onClick:n,"aria-label":"Close modal",children:e.jsx(E,{name:"X"})}),e.jsxs("div",{className:Le.content,children:[l&&e.jsx("div",{className:Le.iconWrapper,children:l}),i||e.jsxs("div",{className:Le.textStack,children:[r&&e.jsx("h2",{className:Le.title,children:r}),o&&e.jsx("p",{className:Le.description,children:o})]}),s&&e.jsx("div",{className:Le.actions,children:s})]})]})})},exports.Notification=Be,exports.Pagination=t=>e.jsx(n.ConfigProvider,{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:e.jsx("div",{className:`${ze.paginationWrapper} ${t.className||""}`,children:e.jsx(n.Pagination,{itemRender:(a,n,r)=>"prev"===n?e.jsxs("div",{className:`${ze.navButtonCustom} ${t.disabled?ze.disabled:""}`,children:[e.jsx("div",{className:ze.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),e.jsx("span",{className:ze.navText,children:"Previous"})]}):"next"===n?e.jsxs("div",{className:`${ze.navButtonCustom} ${t.disabled?ze.disabled:""}`,children:[e.jsx("span",{className:ze.navText,children:"Next"}),e.jsx("div",{className:ze.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):r,...t})})}),exports.PieChart=({data:a,title:n="Policy Effect",titleStyle:r={},containerStyle:o={},chartSize:l=320,showLegend:i=!0,legendStyle:s={}})=>{const c=t.useRef(null),[u,m]=t.useState({visible:!1,x:0,y:0,content:"",label:"",value:"",percentage:""}),p=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"}],h=d.sum(p,e=>e.value);t.useEffect(()=>{if(!c.current)return;const e=d.select(c.current);e.selectAll("*").remove();const t=l,a=l,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=d.pie().value(e=>e.value).sort(null).padAngle(0),i=d.arc().innerRadius(0).outerRadius(n),s=d.arc().innerRadius(0).outerRadius(n+8);r.selectAll("arc").data(o(p)).enter().append("g").attr("class","arc").append("path").attr("d",i).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/h*100).toFixed(1);d.select(this).transition().duration(200).attr("d",s(t)).style("filter","brightness(1.1)"),m({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){m(t=>({...t,x:e.clientX,y:e.clientY}))}).on("mouseout",function(e,t){d.select(this).transition().duration(200).attr("d",i(t)).style("filter","brightness(1)"),m(e=>({...e,visible:!1}))})},[0,p,l]);const g={fontSize:"1.5rem",fontWeight:"600",marginBottom:"1rem",color:"#374151",textAlign:"center",...r},f={display:"flex",flexDirection:"column",alignItems:"center",padding:"1.5rem",backgroundColor:"white",borderRadius:"0.5rem",position:"relative",...o},_={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"0.5rem",...s};return e.jsxs("div",{style:f,children:[e.jsx("h2",{style:g,children:n}),e.jsx("div",{className:"relative",children:e.jsx("svg",{ref:c})}),i&&e.jsx("div",{style:_,children:p.map((t,a)=>((t.value/h*100).toFixed(1),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",children:[e.jsx("div",{className:"w-[10px] h-[10px] rounded-full",style:{backgroundColor:t.color}}),e.jsx("div",{className:"text-sm",children:e.jsx("div",{className:"font-medium text-[#454545]",children:t.label})})]},a)))}),u.visible&&e.jsxs("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:u.x+15,top:u.y-60,minWidth:"150px"},children:[e.jsx("div",{className:"text-sm font-semibold text-blue-300",children:u.label}),e.jsxs("div",{className:"text-base",children:[u.value," items"]}),e.jsxs("div",{className:"text-sm text-gray-300",children:[u.percentage,"% of total"]}),e.jsx("div",{className:"absolute -bottom-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45 border-r border-b border-gray-700"})]})]})},exports.Radio=de,exports.Sankey=({data:a,width:n=1200,height:r=600,margin:o={top:80,right:50,bottom:50,left:50},backgroundColor:l="linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%)",showTimeFilter:i=!0,timeFilters:s=["1W","1M","3M","1Y","ALL"],activeFilter:c="3M",onFilterChange:u=()=>{},filterButtonColor:m="#6366f1",filterButtonInactive:p="rgba(255, 255, 255, 0.1)",useCustomFlowWidth:h=!1,customFlowWidth:g=10,minFlowWidth:f=4,maxFlowWidth:_=20,flowWidthMultiplier:b=1,showStatistics:v=!1,statistics:y={trendGoods:204,shoppingViews:65540,storeDynamics:325}})=>{const x=t.useRef(null),w=t.useRef(),C=t.useRef();t.useEffect(()=>{if(!x.current)return;const e=d.select(x.current);e.selectAll("*").remove(),e.attr("width",n).attr("height",r).style("background",l),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"),i=t.append("g").attr("transform",`translate(${o.left}, ${o.top})`);C.current&&C.current.remove();const s=d.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);C.current=s;const c=d.zoom().scaleExtent([.5,3]).on("zoom",e=>{t.attr("transform",e.transform.toString())});e.call(c),w.current=c;const u=180,m=80,p=120,N="drop-shadow(0 8px 16px rgba(0,0,0,0.3))",j="white",I=(r-o.top-o.bottom)/2,L=(n-o.left-o.right)/2-90,A=n-o.left-o.right-u-80,B=a.nodes.filter(e=>"source"===e.type),z=a.nodes.filter(e=>"middle"===e.type),D=a.nodes.filter(e=>"target"===e.type);B.forEach(e=>{e.x=80,e.y=I-40}),z.forEach((e,t)=>{const a=(z.length-1)*p,n=I-a/2;e.x=L,e.y=n+t*p}),D.forEach((e,t)=>{const a=(D.length-1)*p,n=I-a/2;e.x=A,e.y=n+t*p});const $=d.drag().on("start",e=>{e.sourceEvent.stopPropagation()}).on("drag",function(e,t){t.x=e.x,t.y=e.y,d.select(this).attr("transform",`translate(${t.x}, ${t.y})`),i.selectAll("path.sankey-link").remove(),W()}),T=e.append("defs"),F=Math.max(...a.links.map(e=>e.value)),W=()=>{T.selectAll("linearGradient.link-gradient").remove(),a.links.forEach((e,t)=>{const n=a.nodes.find(t=>t.id===e.source),r=a.nodes.find(t=>t.id===e.target);if(!n||!r)return;const o=`gradient-${t}`,l=T.append("linearGradient").attr("id",o).attr("class","link-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",n.x+u).attr("y1",n.y+40).attr("x2",r.x).attr("y2",r.y+40);l.append("stop").attr("offset","0%").attr("stop-color",n.color).attr("stop-opacity",.8),l.append("stop").attr("offset","100%").attr("stop-color",r.color).attr("stop-opacity",.8);const c=n.x+u,m=n.y+40,p=r.x,v=r.y+40,y=(x=e.value,h?g:(x/F*_+f)*b);var x;i.append("path").attr("class","sankey-link").attr("d",`M${c},${m} C${(c+p)/2},${m} ${(c+p)/2},${v} ${p},${v}`).attr("fill","none").attr("stroke",`url(#${o})`).attr("stroke-width",y).attr("stroke-opacity",.7).style("filter",N).on("mouseover",t=>{s.transition().duration(200).style("opacity",1),s.html(`Flow: ${e.value}<br/>Width: ${y.toFixed(1)}px`).style("left",t.pageX+10+"px").style("top",t.pageY-28+"px"),d.select(t.target).attr("stroke-opacity",1)}).on("mouseout",e=>{s.transition().duration(300).style("opacity",0),d.select(e.target).attr("stroke-opacity",.7)}).on("click",()=>{})})};a.nodes.forEach((e,t)=>{const a=`node-gradient-${t}`,n=T.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",d.color(e.color)?.darker(.5)?.toString()||e.color);const r=i.append("g").datum(e).attr("transform",`translate(${e.x}, ${e.y})`).style("cursor","pointer").call($).on("click",(e,t)=>{});r.append("rect").attr("width",u).attr("height",m).attr("rx",16).style("fill",`url(#${a})`).style("stroke",d.color(e.color)?.darker(.5)?.toString()||e.color).style("stroke-width",2).style("filter",N).on("mouseover",function(){d.select(this).style("filter","drop-shadow(0 12px 24px rgba(0,0,0,0.5))")}).on("mouseout",function(){d.select(this).style("filter",N)}).on("click",(e,t)=>{}),r.append("text").attr("x",20).attr("y",30).style("fill",j).style("font-size","18px").style("font-weight","600").text(e.name),r.append("text").attr("x",20).attr("y",55).style("fill",j).style("font-size","24px").style("font-weight","bold").text(`$${e.value.toLocaleString()}`)}),W();const R=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;R.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(){d.select(this).attr("fill","rgba(255, 255, 255, 1)")}).on("mouseout",function(){d.select(this).attr("fill","rgba(255, 255, 255, 0.9)")}).on("click",()=>{switch(e.action){case"zoomIn":k();break;case"zoomOut":S();break;case"resetZoom":P()}}),R.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===v){const t=e.append("g").attr("class","stats-panel"),a=800,o=120,l=(n-a)/2,i=r-o-20;t.append("rect").attr("x",l).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=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()=>{C.current&&C.current.remove()}},[a,n,r,o,l,h,g,f,_,b,v,y]);const k=()=>{x.current&&w.current&&d.select(x.current).transition().duration(300).call(w.current.scaleBy,1.2)},S=()=>{x.current&&w.current&&d.select(x.current).transition().duration(300).call(w.current.scaleBy,.8)},P=()=>{x.current&&w.current&&d.select(x.current).transition().duration(500).call(w.current.transform,d.zoomIdentity)};return e.jsxs("div",{className:"relative w-full h-screen bg-gray-900 flex flex-col items-center justify-center space-y-4",children:[i&&e.jsx("div",{className:"absolute top-6 right-6 flex space-x-2 z-10",children:s.map(t=>e.jsx("button",{onClick:()=>u(t),className:"px-4 py-1.5 rounded-full text-white text-sm font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:c===t?m:p},children:t},t))}),e.jsx("svg",{ref:x,className:"max-w-full max-h-full"})]})},exports.Search=({value:a="",error:n="",hasError:r=!1,state:o="default",placeholder:l="Search",onChange:i,onFocus:s,onBlur:c,disabled:d,className:u="",title:m="",...p})=>{const[h,g]=t.useState(!1),[f,_]=t.useState(!1),b=(()=>{if(d)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})(o);return e||(r?"error":f?a?"typing":"focused":h?a?"filledHover":"hover":a?"filled":"default")})(),v=[De.container,u].filter(Boolean).join(" "),y=[De.input,De[`input_state_${b}`]].filter(Boolean).join(" "),x=[De.inputInner,De[`inputInner_state_${b}`]].filter(Boolean).join(" "),w=d||"disabled"===b;return e.jsxs("div",{className:v,title:m,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[e.jsx("div",{className:y,children:e.jsxs("div",{className:x,children:[e.jsx("div",{className:De.searchIcon,children:e.jsx(E,{name:"magnifying-glass",className:De.searchIconImage,size:16})}),e.jsx("input",{type:"search",className:De.realInput,value:a,placeholder:l,onChange:i,onFocus:e=>{_(!0),s?.(e)},onBlur:e=>{_(!1),c?.(e)},disabled:w,...p}),("focused"===b||"typing"===b)&&!a&&e.jsx("span",{className:De.cursor,children:"|"})]})}),r&&n&&e.jsx("p",{className:De.error,children:n})]})},exports.ShankeyPro=({flows:a,curvature:n=.5,windowSize:r={width:0,height:0},breakpoints:o={mobile:768,tablet:1024},layoutOverrides:l={},totalDetectionsIcon:i={}})=>{const s=t.useRef(null);return t.useEffect(()=>{if("undefined"==typeof window||!a||!Array.isArray(a)||0===a.length||!s.current)return;const e=d.select(s.current);e.selectAll("*").remove();const t=(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,c=e=>{let t;switch(e){case"mobile":t=$;break;case"tablet":t=D;break;default:t=z}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:u,nodePlacement:m,specialFlows:p,cardConfig:h}=(()=>{if("undefined"==typeof window){const e=c("desktop");return t(e,l.desktop)}const e=window.innerWidth,{mobile:a=768,tablet:n=1024}=o;let r,i={};e<=a?(r="mobile",i=l.mobile||{}):e<=n?(r="tablet",i=l.tablet||{}):(r="desktop",i=l.desktop||{});const s=c(r);return t(s,i)})(),{width:g,height:f,viewBox:_,scale:b,fontSize:v,cardWidth:y,cardHeight:x}=u,w=z.nodeWidth*b;e.attr("width",g).attr("height",f).attr("viewBox",_);const k=e.append("defs");k.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",A).attr("flood-opacity",T.shadowOpacity);let S=d.select("body").select(".sankey-tooltip");S.empty()&&(S=d.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 F=a.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}}}}),W=a.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=B(e.sourceValue||0,a.source.width),o=B(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}}});F.forEach(e=>{const t=k.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",C).attr("stop-opacity",1),t.append("stop").attr("offset","40%").attr("stop-color",C).attr("stop-opacity",1.8),t.append("stop").attr("offset","45%").attr("stop-color",C).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",a).attr("stop-opacity",1)}),W.forEach(e=>{const t=k.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",C).attr("stop-opacity",1),t.append("stop").attr("offset","80%").attr("stop-color",C).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color","#BEE4FF").attr("stop-opacity",1)});const R=e=>{if(!e||!e.source||!e.target)return"";const{source:t,target:a}=e,r=n,o=a.x-t.x,l=t.x+o*r,i=a.x-o*r;return`\n M ${t.x} ${t.y-t.width/2}\n C ${l} ${t.y-t.width/2}, \n ${i} ${a.y-a.width/2}, \n ${a.x} ${a.y-a.width/2}\n `+`\n L ${a.x} ${a.y+a.width/2}\n C ${i} ${a.y+a.width/2}, \n ${l} ${t.y+t.width/2}, \n ${t.x} ${t.y+t.width/2}\n Z\n `};F.slice().reverse().forEach(t=>{t&&t.source&&t.target&&e.append("path").attr("d",R(t)).attr("fill",`url(#gradient-${t.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",T.strokeWidth).style("opacity","0.6").style("transition",`opacity ${T.transitionDuration}ms, stroke ${T.transitionDuration}ms`).style("cursor","pointer").attr("data-flow-id",t.id).style("opacity",T.defaultOpacity).on("mouseover",function(a,n){const r=F.find(e=>e.id===t.id);r&&(S.transition().duration(200).style("opacity",1),S.html(`\n <strong>Flow ${t.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"),e.selectAll("path[data-flow-id]").style("opacity",.3),d.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){S.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){S.transition().duration(500).style("opacity",0),e.selectAll("path[data-flow-id]").style("opacity",.8),d.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),W.forEach(t=>{t&&t.source&&t.target&&e.append("path").attr("d",R(t)).attr("fill",`url(#source-gradient-${t.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",t.id).style("opacity",.6).style("mix-blend-mode","multiply").on("mouseover",function(a,n){const r=W.find(e=>e.id===t.id);r&&(S.transition().duration(200).style("opacity",1),S.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"),e.selectAll("path[data-flow-id]").style("opacity",.3),d.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){S.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){S.transition().duration(500).style("opacity",0),e.selectAll("path[data-flow-id]").style("opacity",.8),d.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),F.slice().reverse().forEach((t,a)=>{t&&t.source&&t.target&&e.append("rect").attr("x",t.target.x-w/2).attr("y",t.target.y-t.target.width/2).attr("width",w).attr("height",t.target.width).style("fill",P).style("rx","3").style("ry","3")}),W.forEach((t,a)=>{if(!t||!t.source||!t.target)return;const n=(()=>{if("undefined"==typeof window)return 65;const e=window.innerWidth;return e<=768?25:e<=1024?45:65})();e.append("text").attr("x",n).attr("y",t.source.y-10).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","12px").style("fill",j).style("font-weight","500").style("font-size",`${v}px`).text(t.sourceLabel||""),e.append("text").attr("x",n).attr("y",t.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",v-2+"px").text(void 0!==t.sourceValue?t.sourceValue:""),e.append("rect").attr("x",t.target.x-w/2).attr("y",t.target.y-t.target.width/2).attr("width",w-3).attr("height",t.target.width).style("fill",P).style("rx","3").style("ry","3")});const{cardX:M,cardY1:H,cardY2:E,padding:U,gap:O,fontSize:G}=h;e.append("rect").attr("x",M).attr("y",H).attr("width",y).attr("height",x).attr("rx",12*b).attr("ry",12*b).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))"),e.append("text").attr("x",M+U.left).attr("y",H+U.top+8).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").style("font-size",`${G.title}px`).style("font-weight","500").text("Total Detections");const q=(()=>{const e=i.alignment||"left",t=i.position?.y||H+U.top+8;if(void 0!==i.position?.x)return{x:i.position.x,y:t};switch(e){case"left":const e=((e,t)=>e.length*t*.55)("Total Detections",G.title);return{x:M+U.left+e+15,y:t};case"center":return{x:M+y/2,y:t};default:return{x:M+y-U.right-16,y:t}}})(),V={icon:i.icon||"↗",color:i.color||"#8B5FBF",size:i.size||14,x:q.x,y:q.y,alignment:i.alignment||"right"},Y=e.append("text").attr("x",V.x).attr("y",V.y).attr("text-anchor",(e=>{switch(e){case"left":return"start";case"center":return"middle";default:return"end"}})(V.alignment)).attr("dominant-baseline","middle").style("font-size",`${V.size}px`).style("fill",V.color).style("font-weight","600").style("cursor",i.onClick?"pointer":"default").text(V.icon);i.onClick&&Y.on("click",i.onClick).on("mouseover",function(){d.select(this).style("opacity",.7)}).on("mouseout",function(){d.select(this).style("opacity",1)}),e.append("text").attr("x",M+U.left).attr("y",H+U.top+8+O+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").style("font-size","24px").style("font-weight","700").style("fill",N).text("9100"),e.append("text").attr("x",M+U.left+70).attr("y",H+U.top+8+O+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","12px").style("fill",L).style("font-weight","500").style("font-size","14px").style("font-weight","500").style("fill",L).text("▲ +10%"),e.append("text").attr("x",M+U.left).attr("y",H+U.top+8+O+16+O+12).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","11px").style("fill",I).style("font-weight","400").style("font-size","14px").style("font-weight","400").style("fill",I).text("In last 7 days"),e.append("rect").attr("x",M).attr("y",E).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))"),e.append("text").attr("x",M+U.left).attr("y",E+U.top+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("Mitigated Threats"),e.append("text").attr("x",M+259-U.right).attr("y",E+U.top+16).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).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((t,a)=>{const n=E+U.top+16+O+20+28*a;e.append("text").attr("x",M+U.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.label),e.append("text").attr("x",M+259-U.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.value)});const X=E+U.top+16+O+20+112+O+20;e.append("text").attr("x",M+U.left).attr("y",X).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("Unmitigated Threats"),e.append("text").attr("x",M+259-U.right).attr("y",X).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("100");return[{label:"Informational",value:100,color:"#F3F4F6"}].forEach((t,a)=>{const n=X+O+16+28*a;e.append("text").attr("x",M+U.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.label),e.append("text").attr("x",M+259-U.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.value)}),()=>{"undefined"!=typeof window&&d.select("body").selectAll(".sankey-tooltip").remove()}},[a,n,s]),e.jsx("div",{className:"flex justify-center w-full",children:e.jsx("svg",{id:"sankey-chart",ref:s,className:"block mx-auto",style:{display:"block",margin:"0 auto"}})})},exports.ShankyFlow=({flows:a=[],hoverColor:n="#FF6B6B",title:r="Clipboard Copy Source to Paste Diagram",subtitle:o="Explore the user's Sensitive Data Copy Paste behavior, detection history, and risk exposure.",showHeaders:l=!0,showTitle:i=!0,showSubtitle:s=!0,showDebug:c=!1,sourceHeader:u="Copying Sources",targetHeader:h="Pasting Targets",labelColor:g="#374151",valueColor:f="#111827",headerColor:_="#454545",titleColor:b="#111827",subtitleColor:v="#6B7280",headerUnderlineColor:y="#D4C4FF",flowOpacity:x=.7,hoverOpacity:w=.9,curvature:C=.4,valueFormatter:k,labelFormatter:S,tooltipRenderer:P,gradientStops:N,responsive:j=!0,width:I,height:L,margin:A,nodeHeight:B,flowScaleFactor:z,fontSize:D,responsiveConfig:$=m,breakpoints:T=p})=>{const F=t.useRef(null),W=t.useRef(null),[R,M]=t.useState({width:0,height:0}),[H,E]=t.useState($.desktop),[U,O]=t.useState(!1),G=t.useCallback(()=>{if("undefined"==typeof window)return $.desktop;const e=window.innerWidth;return e<T.mobile?$.mobile:e<T.tablet?$.tablet:(T.desktop,$.desktop)},[$,T]);return t.useEffect(()=>{const e=()=>{const e=G(),t={...e,margin:A??e.margin,nodeHeight:B??e.nodeHeight,flowScaleFactor:z??e.flowScaleFactor,fontSize:D??e.fontSize,width:I??e.width,height:L??e.height};E(t);const a=window.innerWidth-128;let n=t.width;j&&(n=e===$.desktop?a>=t.width?t.width:Math.max(a,600):Math.max(a,t.width)),M({width:n,height:t.height}),U||O(!0)},t=setTimeout(e,100);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[G,U,j,I,L,A,B,z,D,$]),t.useEffect(()=>{if(!(a.length&&R.width&&R.height&&U))return;const e=d.select(F.current);e.selectAll("*").remove();const{width:t,height:c}=R,{margin:m,fontSize:p,nodeHeight:j,flowScaleFactor:I}=H,L=new Map,A=new Map,B=new Map,z=new Map;a.forEach(e=>{B.has(e.source)||B.set(e.source,[]),B.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),A.set(e.target,e.targetValue)});const D=Array.from(L.entries()),$=Array.from(A.entries()),T=c-m.top-m.bottom,W=T/(D.length+1),M=T/($.length+1),E=D.map(([e,t],a)=>({name:e,value:t,y:m.top+W*(a+1),height:j})),O=$.map(([e,t],a)=>({name:e,value:t,y:m.top+M*(a+1),height:j})),G=m.left,q=t-m.right;e.attr("width",t).attr("height",c);const V=e.append("defs");a.forEach((e,t)=>{const a=V.append("linearGradient").attr("id",`gradient-${t}`).attr("gradientUnits","userSpaceOnUse").attr("x1",G+80).attr("x2",q-80);(N&&N.length>0?N:[{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=d.select("body").select(".sankey-tooltip");Y.empty()&&(Y=d.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;E.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=O.find(e=>e.name===t.target);if(!n)return;const r=n.value,o=j,l=t.thickness/r*o*I;X.get(e.name).set(t.target,{startY:a,endY:a+l,centerY:a+l/2}),a+=l})});const K=new Map;if(O.forEach(e=>{const t=z.get(e.name)||[];let a=e.y-e.height/2;K.set(e.name,new Map),t.forEach(t=>{const n=j,r=t.thickness/e.value*n*I;K.get(e.name).set(t.source,{startY:a,endY:a+r,centerY:a+r/2}),a+=r})}),a.forEach((t,a)=>{const r=E.find(e=>e.name===t.source),o=O.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,u=C,m=d.interpolateNumber(G,q),p=m(u),h=m(1-u),g=`M${G},${l}\n C${p},${l} ${h},${s} ${q},${s}\n L${q},${c}\n C${h},${c} ${p},${i} ${G},${i}\n Z`;e.append("path").attr("d",g).attr("fill",`url(#gradient-${a})`).attr("opacity",x).style("cursor","pointer").on("mouseover",function(e){d.select(this).attr("fill",n).attr("opacity",w),"function"==typeof P?Y.style("opacity",1).html(P(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(){d.select(this).attr("fill",`url(#gradient-${a})`).attr("opacity",x),Y.style("opacity",0)})}}),l){const t=e.append("text").attr("x",G-15).attr("y",m.top-10).attr("text-anchor","end").attr("fill",_).attr("font-size",`${p.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(u).node();if(t){const a=t.getBBox();e.append("line").attr("x1",a.x).attr("y1",m.top).attr("x2",a.x+a.width).attr("y2",m.top).attr("stroke",y).attr("stroke-width","1").attr("opacity","1")}const a=e.append("text").attr("x",q+15).attr("y",m.top-10).attr("text-anchor","start").attr("fill",_).attr("font-size",`${p.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(h).node();if(a){const t=a.getBBox();e.append("line").attr("x1",t.x).attr("y1",m.top).attr("x2",t.x+t.width).attr("y2",m.top).attr("stroke",y).attr("stroke-width","1").attr("opacity","1")}}return E.forEach(t=>{e.append("text").attr("x",G-15).attr("y",t.y-8).attr("text-anchor","end").attr("fill",g).attr("font-size",`${p.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",G-15).attr("y",t.y+12).attr("text-anchor","end").attr("fill",f).attr("font-size",`${p.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(k?k(t.value):t.value)}),O.forEach(t=>{e.append("text").attr("x",q+15).attr("y",t.y-8).attr("text-anchor","start").attr("fill",g).attr("font-size",`${p.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",f).attr("font-size",`${p.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(k?k(t.value):t.value)}),i&&e.append("text").attr("x",40).attr("y",35).attr("text-anchor","start").attr("fill",b).attr("font-size",`${p.title}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(r),s&&e.append("text").attr("x",40).attr("y",60).attr("text-anchor","start").attr("fill",v).attr("font-size",`${p.subtitle}px`).attr("font-weight","400").attr("font-family","system-ui, sans-serif").text(o),()=>{d.select("body").selectAll(".sankey-tooltip").remove()}},[a,n,r,o,R,H,N,g,f,_,b,v,y,x,w,C,k,S,P,l,i,s,c]),e.jsx("div",{className:"w-full max-w-7xl mx-auto p-4 md:p-6",children:e.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-4 md:p-8",children:[c&&e.jsxs("div",{className:"text-xs text-gray-500 mb-2",children:["Screen: ","undefined"!=typeof window?window.innerWidth:"SSR","px | Config: ",H===$.desktop?"Desktop":H===$.tablet?"Tablet":"Mobile"," | Chart: ",R.width,"x",R.height," | Available: ","undefined"!=typeof window?window.innerWidth-128:"SSR","px | Initialized: ",U?"Yes":"No",e.jsx("button",{onClick:()=>{const e=G();E(e);const t=window.innerWidth-128;let a=e.width;a=e===$.desktop?t>=e.width?e.width:Math.max(t,600):Math.max(t,e.width),M({width:a,height:e.height})},className:"ml-4 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:"Refresh"})]}),e.jsx("div",{ref:W,className:"w-full overflow-x-auto",children:e.jsx("div",{className:"flex justify-center min-w-max",children:e.jsx("svg",{ref:F,style:{width:R.width||H.width,height:R.height||H.height,minWidth:H.width,minHeight:H.height}})})})]})})},exports.StatusIndicator=({label:t="Status",state:a="default",size:n="medium",color:r="green",onClick:o,className:l="",...i})=>{const s=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"disabled"===t?"disabled":"default"})(a),c=(e=>{if(!e)return"green";const t=e.toLowerCase();return"red"===t?"red":"yellow"===t?"yellow":"blue"===t?"blue":"green"})(r),d=n.toLowerCase(),u=[Te.statusIndicator,Te[`size_${d}`],Te[`state_${s}`],Te[`color_${c}`],l].filter(Boolean).join(" "),m=o?"button":"div";return e.jsxs(m,{className:u,onClick:o,disabled:"disabled"===s,type:o?"button":void 0,...i,children:[(()=>{const t=(()=>{if("disabled"===s)return"#A6A6A6";switch(c){case"red":return"#EC221F";case"yellow":return"#FACA0A";case"blue":return"#0C8CF5";default:return"#14AE5C"}})(),a=[Te.indicator,Te[`indicator_size_${d}`]].filter(Boolean).join(" ");return e.jsx("div",{className:a,style:{backgroundColor:t}})})(),e.jsx("span",{className:Te.label,children:t})]})},exports.Tab=We,exports.TabList=({items:t,activeKey:a,onChange:n,className:r=""})=>{const o=[Re.tabList,r].filter(Boolean).join(" ");return e.jsx("div",{className:o,role:"tablist",children:t.map(t=>e.jsx(We,{label:t.label,count:t.count,disabled:t.disabled,isActive:a===t.key,onClick:()=>!t.disabled&&n?.(t.key)},t.key))})},exports.Table=function({columns:a=[],data:l=[],rowKey:i="id",onRowReorder:s,onRowSelect:d,onSort:u,className:m="",...p}){const[h,g]=t.useState([]),[f,_]=t.useState({}),[b,v]=t.useState(l),[y,x]=t.useState({});c.default.useEffect(()=>{v(l)},[l]),c.default.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${Me.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 .${Me.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(`.${Me.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()}},[b,a]),c.default.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${Me.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(`.${Me.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(`.${Me.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(t),a.disconnect()}},[b,a,f]);const w=r.useSensors(r.useSensor(r.PointerSensor),r.useSensor(r.KeyboardSensor,{coordinateGetter:o.sortableKeyboardCoordinates})),C=e=>{g(e),d&&d(e)},k=t.useCallback((e,t)=>{x(a=>({...a,[e]:t}))},[]),S=t.useCallback(e=>{},[]),P=t.useCallback(e=>{},[]),N=t.useMemo(()=>{const t={title:"",key:"drag-handle",width:40,fixed:"left",className:Me.dragHandleHeader,render:()=>e.jsx(Ue,{})},n=a.map(t=>{const a=y[t.key]||t.width||void 0,n=t.sortable&&f.columnKey===t.key&&f.order||null,r=t.sortable?e.jsx("span",{className:Me.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!t.sortable)return;let a;if(a=f.columnKey===t.key?"ascend"===f.order?"descend":"descend"===f.order?null:"ascend":"ascend",a){if(_({order:a,columnKey:t.key}),u){const e="ascend"===a?"asc":"desc";u(t.key,e)}}else _({}),u&&u(null,null)},title:"Click to sort",children:(o=n,"ascend"===o?e.jsx(E,{name:"sort-ascending",size:14}):"descend"===o?e.jsx(E,{name:"sort-descending",size:14}):e.jsx(E,{name:"caret-up-down",size:14}))}):null;var o;return{title:e.jsxs("div",{className:Me.columnHeaderContent,children:[r,e.jsx("span",{className:Me.columnHeaderLabel,children:t.label}),e.jsx(Oe,{columnKey:t.key,onResizeStart:S,onResize:k,onResizeEnd:P})]}),dataIndex:t.key,key:t.key,width:a,sorter:!1,render:t.render||(e=>e),className:Me.tableCell,showSorterTooltip:!1}}),r=b.length,o=h.length,l=r>0&&o===r,s=!(0===o)&&!l;return[t,{title:e.jsx("div",{className:Me.checkboxHeader,children:e.jsx(se,{checked:l,indeterminate:s,onChange:e=>{if(s)C([]);else{const t=e.target.checked;C(t?b.map(e=>e[i]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${Me.tableCell} ${Me.checkboxColumn}`,render:(t,a)=>{const n=h.includes(a[i]);return e.jsx("div",{className:Me.checkboxCell,children:e.jsx(se,{checked:n,onChange:e=>{const t=e.target.checked?[...h,a[i]]:h.filter(e=>e!==a[i]);C(t)},size:"small"})})}},...n]},[a,f,y,h,b,i,u,S,k,P]),j=[Me.tableContainer,m].filter(Boolean).join(" "),I=t.useMemo(()=>b.map(e=>e[i]),[b,i]),L={body:{row:t=>{let a=t["data-row-key"];if(!a&&t.children){const e=c.default.Children.toArray(t.children);for(const t of e){const e=t;if(e?.props?.record?.[i]){a=e.props.record[i];break}}}if(!a&&void 0!==t["data-row-index"]){const e=t["data-row-index"];b[e]&&b[e][i]&&(a=b[e][i])}return a?e.jsx(Ee,{id:a,rowKey:i,row:t,children:t.children}):e.jsx("tr",{...t,children:t.children})}}};return e.jsx("div",{className:j,...p,children:e.jsx(r.DndContext,{sensors:w,collisionDetection:r.closestCenter,onDragEnd:e=>{const{active:t,over:a}=e;a&&t.id!==a.id&&v(e=>{const n=e.findIndex(e=>e[i]===t.id),r=e.findIndex(e=>e[i]===a.id),l=o.arrayMove(e,n,r);return s&&s(l),l})},children:e.jsx(o.SortableContext,{items:I,strategy:o.verticalListSortingStrategy,children:e.jsx(n.Table,{className:Me.antTable,columns:N,dataSource:b,rowKey:i,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:L})})})})},exports.TextArea=({value:a,description:n="",label:r="",error:o="",hasLabel:l=!0,hasDescription:i=!0,hasError:s=!1,showIcon:c=!1,chooseIcon:d=null,showDragIcon:u=!0,state:m="default",placeholder:p="Body",disabled:h,className:g="",id:f,onChange:_,onFocus:b,onBlur:v,rows:y=4,cols:x,...w})=>{const[C,k]=t.useState(""),[S,P]=t.useState(!1),[N,j]=t.useState(!1),[I,L]=t.useState({width:240,height:120}),A=t.useRef(null),B=t.useRef(null),z=t.useRef({x:0,y:0}),D=t.useRef({width:0,height:0}),$=void 0!==a?a:C,T=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})(m);t.useEffect(()=>{if(A.current){const e=A.current.getBoundingClientRect();L({width:e.width,height:e.height})}},[]),t.useEffect(()=>{const e=e=>{if(!N||!A.current)return;const t=e.clientX-z.current.x,a=e.clientY-z.current.y,n=Math.max(240,D.current.width+t),r=Math.max(80,D.current.height+a);L({width:n,height:r}),A.current.style.width=`${n}px`,A.current.style.height=`${r}px`},t=()=>{j(!1)};return N&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[N]);const F=[Ge.container,g].filter(Boolean).join(" "),W=[Ge.textarea,Ge[`state_${T}`]].filter(Boolean).join(" "),R=[Ge.textareaWrapper,Ge[`textareaWrapper_state_${T}`]].filter(Boolean).join(" "),M=h||"disabled"===T,H=f||`textarea-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:F,children:[l&&r&&e.jsx("label",{className:Ge.label,htmlFor:H,children:r}),i&&n&&e.jsx("p",{className:Ge.description,children:n}),e.jsx("div",{className:R,style:{width:I.width,height:I.height},children:e.jsxs("div",{className:Ge.textareaInner,children:[e.jsx("textarea",{ref:A,id:H,className:W,value:$,placeholder:p,onChange:e=>{h||(void 0===a&&k(e.target.value),_&&_(e))},onFocus:e=>{h||(P(!0),b&&b(e))},onBlur:e=>{h||(P(!1),v&&v(e))},disabled:M,rows:y,cols:x,"aria-invalid":s,"aria-describedby":s?`${H}-error`:void 0,style:{width:"100%",height:"100%",resize:"none"},...w}),c?d||e.jsx("div",{className:Ge.iconWrapper,children:e.jsx("img",{src:"/icons/Icon.svg",alt:"Icon",className:Ge.icon})}):null,u&&!M&&e.jsx("div",{ref:B,className:Ge.resizeHandle,onMouseDown:e=>{if(h||!A.current)return;e.preventDefault(),j(!0);const t=A.current.getBoundingClientRect();z.current={x:e.clientX,y:e.clientY},D.current={width:t.width,height:t.height}},role:"button","aria-label":"Resize textarea",tabIndex:-1,children:e.jsx(E,{name:"notches",size:12,className:Ge.resizeIcon,alt:"Resize handle"})})]})}),s&&o&&e.jsx("p",{className:Ge.error,id:`${H}-error`,children:o})]})},exports.Toast=({type:a="success",title:n,message:r,onClose:o,duration:l,className:i="",...s})=>(t.useEffect(()=>{if(l&&o){const e=setTimeout(()=>{o()},l);return()=>clearTimeout(e)}},[l,o]),e.jsxs("div",{className:`${qe.toast} ${qe[a]} ${i}`,role:"alert",...s,children:[e.jsx("div",{className:`${qe.iconWrapper} ${qe[`icon-${a}`]}`,children:Ve[a]}),e.jsxs("div",{className:qe.content,children:[n&&e.jsx("h4",{className:qe.title,children:n}),r&&e.jsx("p",{className:qe.message,children:r})]}),e.jsx("button",{className:qe.closeButton,onClick:o,"aria-label":"Close notification",children:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#5F6D7E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})),exports.Toggle=he,exports.addAnimationClass=function(e,t){e&&e.classList.add(Lt[t])},exports.allIcons=H,exports.animateElement=function(e,t,a){return e?e.animate(t,a):null},exports.animationClasses=Lt,exports.capitalizeFirst=At,exports.capitalizeWords=function(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())},exports.colorPalettes={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"]},exports.commonRules=Dt,exports.createAnimation=It,exports.createTheme=function(e){return{...Nt.light,...e}},exports.createTransition=function(e,t,a=300,n="ease-in-out"){e&&(e.style.transition=t.map(e=>`${e} ${a}ms ${n}`).join(", "))},exports.defaultAnimations=jt,exports.defaultThemes=Nt,exports.formatCompactNumber=function(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()},exports.formatCreditCard=function(e){return(e.replace(/\D/g,"").match(/.{1,4}/g)||[]).join(" ").trim()},exports.formatCurrency=function(e,t="USD",a=2){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:a,maximumFractionDigits:a}).format(e)},exports.formatDate=function(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",...t};return new Intl.DateTimeFormat("en-US",n).format(a)},exports.formatDateTime=function(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)},exports.formatDuration=function(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")}`},exports.formatFieldLabel=function(e){return e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()},exports.formatFileSize=function(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]}`},exports.formatNumber=function(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)},exports.formatPercentage=function(e,t=1){return`${(100*e).toFixed(t)}%`},exports.formatPhoneNumber=function(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},exports.formatRelativeTime=function(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`},exports.formatValidationError=function(e,t){return`${At(e)} ${t}`},exports.primitives=xt,exports.removeAnimationClass=function(e,t){e&&e.classList.remove(Lt[t])},exports.removeTransition=function(e){e&&(e.style.transition="")},exports.slugify=function(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")},exports.staggerAnimation=function(e,t,a=100,n){return e.map((e,r)=>{const o={...n,delay:(n?.delay||0)+r*a};return It(e,t,o)}).filter(Boolean)},exports.themes=wt,exports.tokens=yt,exports.truncateText=function(e,t,a="..."){return e.length<=t?e:e.slice(0,t-a.length)+a},exports.useBreakpoint=function(){const[e,a]=t.useState(()=>{if("undefined"==typeof window)return{isMobile:!1,isTablet:!1,isDesktop:!1,isWide:!1,width:0};const e=window.innerWidth;return{isMobile:e>=yt.breakpoint.mobile&&e<yt.breakpoint.tablet,isTablet:e>=yt.breakpoint.tablet&&e<yt.breakpoint.desktop,isDesktop:e>=yt.breakpoint.desktop&&e<yt.breakpoint.wide,isWide:e>=yt.breakpoint.wide,width:e}});return t.useEffect(()=>{if("undefined"==typeof window)return;const e=()=>{const e=window.innerWidth;a({isMobile:e>=yt.breakpoint.mobile&&e<yt.breakpoint.tablet,isTablet:e>=yt.breakpoint.tablet&&e<yt.breakpoint.desktop,isDesktop:e>=yt.breakpoint.desktop&&e<yt.breakpoint.wide,isWide:e>=yt.breakpoint.wide,width:e})};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e},exports.usePrefersDarkMode=function(){const[e,a]=t.useState(()=>"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").matches);return t.useEffect(()=>{if("undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>a(e.matches);return e.addEventListener?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):e.addListener?(e.addListener(t),()=>e.removeListener(t)):void 0},[]),e},exports.useTheme=function(e="light",a=!0){const[n,r]=t.useState(()=>{if(a&&"undefined"!=typeof window){return localStorage.getItem(Pt)||e}return e}),o=t.useMemo(()=>wt[n],[n]);t.useEffect(()=>{if("undefined"==typeof window)return;const e=St(o);!function(e,t){for(const[a,n]of Object.entries(t))e.style.setProperty(a,n)}(document.documentElement,e),document.documentElement.setAttribute("data-theme",n),a&&localStorage.setItem(Pt,n)},[o,n,a]);const l=t.useCallback(e=>{r(e)},[]),i=t.useCallback(()=>{r(e=>"light"===e?"dark":"light")},[]);return{theme:o,themeMode:n,setTheme:l,toggleTheme:i}},exports.useTokens=function(){return yt},exports.validateCreditCard=function(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}},exports.validateEmail=function(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"}},exports.validateField=Bt,exports.validateForm=function(e,t){const a={};let n=!0;for(const[r,o]of Object.entries(t)){const t=Bt(e[r],o);t.isValid||(a[r]=t.message||"Invalid value",n=!1)}return{isValid:n,errors:a}},exports.validatePassword=function(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"}},exports.validatePhoneNumber=function(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"}},exports.validateURL=function(e){try{return new URL(e),{isValid:!0}}catch{return{isValid:!1,message:"Please enter a valid URL"}}},exports.validationPatterns=zt;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|