@skalar-saas/design-system 0.1.86 → 0.1.88
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/index.js +21 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1928 -1942
- package/dist/index.mjs.map +1 -1
- package/dist/shared/ui/ColumnHandler/PanelHandle.d.ts +11 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),
|
|
2
|
-
M ${
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
L ${d} ${t}
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),O=require("@headlessui/react"),Y=require("framer-motion"),h=require("clsx"),W=require("tailwind-merge"),z=require("iconsax-react"),_r=require("@radix-ui/react-tooltip"),Bt=require("react-dom"),Gr=require("@radix-ui/react-toast"),Ur=require("react-day-picker"),oe=require("@tanstack/react-table"),qr=require("@tanstack/react-virtual"),Qr=t=>t&&t.__esModule?t:{default:t};function lt(t){if(t&&t.__esModule)return t;const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(s,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return s.default=t,Object.freeze(s)}const k=lt(j),Q=Qr(h),X=lt(_r),ee=lt(Gr),Kr={default:"max-w-container",narrow:"max-w-container-narrow",medium:"max-w-container-medium",wide:"max-w-container-wide",full:"max-w-none"},Jr={none:"",responsive:"px-container-mobile md:px-container-tablet lg:px-container-desktop",fixed:"px-container-desktop"},_t=k.default.forwardRef(({size:t="default",centered:s=!0,padding:r="responsive",as:a="div",className:n,children:l,...i},x)=>{const o=W.twMerge(h.clsx("w-full",Kr[t],s&&"mx-auto",Jr[r],n));return e.jsx(a,{ref:x,className:o,...i,children:l})});_t.displayName="Container";const Gt=k.default.forwardRef(({className:t,children:s,...r},a)=>e.jsx("div",{ref:a,className:W.twMerge(h.clsx("flex items-center justify-between","py-6 md:py-8",t)),...r,children:s}));Gt.displayName="Container.Header";const Ut=k.default.forwardRef(({className:t,children:s,...r},a)=>e.jsx("div",{ref:a,className:W.twMerge(h.clsx("flex-1",t)),...r,children:s}));Ut.displayName="Container.Content";const qt=k.default.forwardRef(({className:t,children:s,...r},a)=>e.jsx("div",{ref:a,className:W.twMerge(h.clsx("flex items-center justify-between","py-6 md:py-8","border-t border-surface-3",t)),...r,children:s}));qt.displayName="Container.Footer";const Ve=_t;Ve.Header=Gt;Ve.Content=Ut;Ve.Footer=qt;const Yr={none:"py-0",xs:"py-2 md:py-4",sm:"py-4 md:py-6",md:"py-6 md:py-8",lg:"py-8 md:py-10",xl:"py-10 md:py-12 lg:py-14","2xl":"py-12 md:py-14 lg:py-15"},Xr={transparent:"bg-transparent","surface-bg":"bg-surface-bg","surface-1":"bg-surface-1","surface-2":"bg-surface-2",white:"bg-white"},We=k.default.forwardRef(({spacing:t="lg",background:s="transparent",bordered:r=!1,as:a="section",className:n,children:l,...i},x)=>{const o=W.twMerge(h.clsx("w-full",Yr[t],Xr[s],r&&"border-b border-surface-3",n));return e.jsx(a,{ref:x,className:o,...i,children:l})});We.displayName="Section";const Qt=k.default.forwardRef(({spacing:t="2xl",...s},r)=>e.jsx(We,{ref:r,spacing:t,...s}));Qt.displayName="SectionHero";const Kt=k.default.forwardRef(({background:t="surface-1",...s},r)=>e.jsx(We,{ref:r,background:t,...s}));Kt.displayName="SectionFeatures";const Le={sm:640,md:768,lg:1024,xl:1280,"2xl":1400,"3xl":1600},Jt={default:1400,narrow:896,medium:1152,wide:1600},Yt={mobile:16,tablet:24,desktop:32,desktopLarge:48},Xt={width:280,collapsedWidth:64,navigationWidth:240},es={headerHeight:60,tabsHeight:48,totalHeight:108},ts={none:0,xs:8,sm:16,md:24,lg:32,xl:48,"2xl":64},ss={containerMaxWidth:"--layout-container-max-width",containerNarrow:"--layout-container-narrow",containerMedium:"--layout-container-medium",containerWide:"--layout-container-wide",containerPaddingMobile:"--layout-container-padding-mobile",containerPaddingTablet:"--layout-container-padding-tablet",containerPaddingDesktop:"--layout-container-padding-desktop",containerPaddingDesktopLg:"--layout-container-padding-desktop-lg",sidebarWidth:"--layout-sidebar-width",sidebarCollapsed:"--layout-sidebar-collapsed",sidebarNavigation:"--layout-sidebar-navigation",navbarHeaderHeight:"--layout-navbar-header-height",navbarTabsHeight:"--layout-navbar-tabs-height",navbarTotalHeight:"--layout-navbar-total-height"},en={breakpoints:Le,container:Jt,containerPadding:Yt,sidebar:Xt,navbar:es,spacing:ts,cssVariables:ss};function tn(t){return`${t/16}rem`}function sn(t){return`${t}px`}function rn(t,s="min"){const r=typeof t=="number"?t:Le[t],a=s==="max"?r-1:r;return`(${s}-width: ${a}px)`}function nn(t,s,r="gte"){const a=Le[s];return r==="gte"?t>=a:t<a}function an(t){const r=Object.entries(Le).sort((a,n)=>n[1]-a[1]);for(const[a,n]of r)if(t>=n)return a;return"sm"}const rs=j.createContext(null);function ln(){const t=j.useContext(rs);if(!t)throw new Error("usePanelContext must be used within a PanelLayout");return t}const q={minWidth:200,maxWidthPercent:50,minCentralWidth:150,minCentralPercent:10,closeZoneMin:10,closeZoneMax:15,snapMinWidth:15,exitAnimationDuration:100};function on(t){return t>=q.closeZoneMin&&t<=q.closeZoneMax}function Tt(t){return t<q.snapMinWidth?q.snapMinWidth:t}function Pe(t,s,r=0,a=q.minCentralWidth){const n=s-a-r,i=Math.min(t,n)/s*100;return Math.max(10,Math.min(i,q.maxWidthPercent))}function ns(t,s,r,a=0,n=q.minCentralWidth,l=0,i=0){const x=l/100*r;let o;t==="left"?o=s-x:o=r-s-x;const c=o/r*100,u=100-n/r*100-a-l;return Math.max(q.closeZoneMin,Math.min(c,u))}function Te(t){return t.filter(s=>s.open).reduce((s,r)=>s+r.width,0)}function as(t){return Te(t.left)+Te(t.right)}function se(t,s){const r=t.left.find(n=>n.id===s);if(r)return{panel:r,side:"left"};const a=t.right.find(n=>n.id===s);if(a)return{panel:a,side:"right"}}function cn(t){return 100-as(t)}function Xe(t,s=typeof window<"u"?window.innerWidth:1920){const r={left:[],right:[]};return t.forEach(a=>{const l=t.filter(o=>o.side===a.side&&o.id!==a.id).reduce((o,c)=>o+c.defaultWidth,0),i=Pe(a.defaultWidth,s,l),x={id:a.id,open:!0,width:i};r[a.side].push(x)}),r}const ls=k.default.memo(({children:t,panels:s,onPanelResize:r,onCloseZoneChange:a,onPanelClose:n,minCentralWidth:l=q.minCentralWidth,className:i})=>{const[x,o]=j.useState(null),c=j.useRef(null),d=j.useCallback(v=>{o(v)},[]),u=j.useCallback((v,y)=>{r(v,y)},[r]),m=j.useCallback((v,y)=>{o(null),y&&n&&n(v)},[n]),p=j.useCallback((v,y)=>{a&&a(v,y)},[a]),b=j.useCallback(v=>{const y=se(s,v);if(y)return{...y.panel,isResizing:x===v}},[s,x]),w=j.useMemo(()=>({panels:s,onResizeStart:d,onResize:u,onResizeEnd:m,onCloseZoneChange:p,getPanelState:b,minCentralWidth:l,containerRef:c}),[s,d,u,m,p,b,l]),{leftPanels:g,rightPanels:f,mainContent:C}=j.useMemo(()=>{const v=[],y=[];let M=null;return k.default.Children.forEach(t,I=>{if(k.default.isValidElement(I)){if(I.type&&I.type.displayName==="PanelMain"){M=I;return}if(I.type&&I.type.displayName==="Panel"){const R=I.props;R.side==="left"?v.push(I):R.side==="right"&&y.push(I)}}}),{leftPanels:v,rightPanels:y,mainContent:M}},[t]),N=x!==null;return e.jsx(rs.Provider,{value:w,children:e.jsxs("div",{ref:c,className:h.clsx("flex h-full w-full overflow-hidden","transition-all duration-100 ease-out",N&&"select-none",i),"data-panel-layout":!0,"data-resizing":N,children:[g,C,f]})})});ls.displayName="PanelLayout";const dn=({side:t="right",fillColor:s="var(--surface-1)",className:r})=>{const o=t==="right",c=o?0:9,d=o?9-.5:.5,u=o?`
|
|
2
|
+
M ${c} 0
|
|
3
|
+
Q ${c} 4, ${c+4} 4
|
|
4
|
+
L ${d-4} 4
|
|
5
|
+
Q ${d} 4, ${d} 8
|
|
6
|
+
L ${d} 40
|
|
7
|
+
Q ${d} 44, ${d-4} 44
|
|
8
|
+
L ${c+4} 44
|
|
9
|
+
Q ${c} 44, ${c} 48
|
|
10
|
+
Z
|
|
12
11
|
`:`
|
|
13
|
-
M ${
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
L ${d} ${t}
|
|
23
|
-
`,b=u?(d+m)/2:(m+d)/2,w=t/2;return e.jsxs("div",{className:h.clsx("relative cursor-col-resize",a),style:{width:9,height:t},children:[e.jsx("svg",{width:9,height:t,viewBox:`0 0 9 ${t}`,fill:"none",className:"absolute inset-0",children:e.jsx("path",{d:p,fill:r,stroke:"var(--surface-3)",strokeWidth:"1"})}),e.jsxs("div",{className:"absolute flex flex-col gap-[2px] items-center",style:{left:b,top:w,transform:"translate(-50%, -50%)"},children:[e.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-surface-4"}),e.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-surface-4"}),e.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-surface-4"})]})]})},os=k.default.memo(({id:t,side:s,children:r,resizable:a=!0,panelBg:n="var(--surface-1)",className:l})=>{const{panels:i,onResizeStart:x,onResize:o,onResizeEnd:c,onCloseZoneChange:u,getPanelState:d,minCentralWidth:m,containerRef:p}=dn(),b=d(t),w=j.useRef(!1),g=j.useRef(!1),f=j.useRef(null),C=j.useRef(!1),N=j.useRef(0),v=j.useRef(!1),y=j.useRef(null),[M,I]=j.useState(500),T=j.useRef({side:s,oppositeSideWidth:0,minCentralWidth:m,externalPanelsWidth:0,internalPanelsWidth:0,panelState:b}),H=Te(i[s==="left"?"right":"left"]),P=i[s],F=P.findIndex(G=>G.id===t),L=P.filter((G,U)=>G.open?s==="right"?U>F:U<F:!1).reduce((G,U)=>G+U.width,0),O=P.filter((G,U)=>!G.open||G.id===t?!1:s==="right"?U<F:U>F).reduce((G,U)=>G+U.width,0);T.current={side:s,oppositeSideWidth:H,minCentralWidth:m,externalPanelsWidth:L,internalPanelsWidth:O,panelState:b};const W=j.useRef(o),A=j.useRef(c),S=j.useRef(u);W.current=o,A.current=c,S.current=u;const B=j.useCallback(G=>{w.current&&(g.current=!0,!f.current&&(f.current=requestAnimationFrame(()=>{f.current=null;const U=p.current;if(!U)return;const ne=U.getBoundingClientRect(),E=ne.width,_=G.clientX-ne.left,{side:ze,oppositeSideWidth:Qe,minCentralWidth:Me,externalPanelsWidth:Gr,internalPanelsWidth:Ur}=T.current,Ke=as(ze,_,E,Qe,Me,Gr,Ur),Ye=Ke<N.current&&xn(Ke);Ye!==C.current&&(C.current=Ye,S.current(t,Ye)),W.current(t,Ke)})))},[t,p]),X=j.useCallback(()=>{if(!w.current)return;w.current=!1,document.body.style.userSelect="",document.body.style.cursor="";const G=g.current&&C.current,{panelState:U}=T.current;!G&&U&&U.width<Rt(U.width)&&W.current(t,Rt(U.width)),g.current=!1,C.current=!1,A.current(t,G),document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",X)},[t,B]),de=j.useCallback(()=>{w.current=!0,document.body.style.userSelect="none",document.body.style.cursor="col-resize";const{panelState:G}=T.current;N.current=G?.width??0,x(t),document.addEventListener("mousemove",B),document.addEventListener("mouseup",X)},[t,B,X,x]);if(j.useEffect(()=>()=>{f.current&&cancelAnimationFrame(f.current),document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",X)},[B,X]),j.useEffect(()=>{if(b?.open&&!b?.exiting){const G=setTimeout(()=>{v.current=!0},150);return()=>clearTimeout(G)}else b?.open||(v.current=!1)},[b?.open,b?.exiting]),j.useEffect(()=>{const G=y.current;if(!G)return;const U=()=>{const E=G.offsetHeight;E>0&&I(E)};U();const ne=new ResizeObserver(U);return ne.observe(G),()=>ne.disconnect()},[]),!b||!b.open&&!b.exiting)return null;const te=s==="left"?"right":"left",re=()=>b.exiting?s==="left"?"animate-panel-exit":"animate-panel-exit-right":v.current?"":s==="left"?"animate-panel-enter":"animate-panel-enter-right";return e.jsxs("div",{ref:y,className:h.clsx("h-full relative flex-shrink-0","transition-[width] duration-100 ease-out",b.isResizing&&"transition-none",l),style:{width:`${b.width}%`},"data-panel":t,"data-panel-side":s,"data-in-close-zone":b.inCloseZone,"data-exiting":b.exiting,children:[e.jsx("div",{className:h.clsx("absolute inset-0 overflow-hidden","transition-opacity duration-100",re(),b.inCloseZone?"opacity-50":"opacity-100"),style:{backgroundColor:n},children:r}),a&&!b.exiting&&e.jsx("div",{className:h.clsx("absolute top-0 z-50",te==="right"?"right-0 translate-x-full":"left-0 -translate-x-full"),onMouseDown:de,children:e.jsx(hn,{side:te,height:M,fillColor:n})}),!a&&e.jsx("div",{className:h.clsx("absolute top-0 bottom-0 w-px bg-surface-3",te==="right"?"right-0":"left-0")})]})});os.displayName="Panel";const cs=k.default.memo(({children:t,className:s})=>e.jsx("div",{className:h.clsx("flex-1 min-w-0 h-full overflow-hidden relative","transition-all duration-100 ease-out",s),"data-panel-main":!0,children:t}));cs.displayName="PanelMain";function Dt(t){if(!t||typeof t!="object")return!1;const s=t;return typeof s.id=="string"&&typeof s.open=="boolean"&&typeof s.width=="number"}function mn(t){if(!t||typeof t!="object")return!1;const s=t;return Array.isArray(s.left)&&Array.isArray(s.right)&&s.left.every(Dt)&&s.right.every(Dt)}function fn(t){const{config:s,persist:r=!1,persistKey:a="panel-state"}=t,n=j.useMemo(()=>{const g=new Map;return s.forEach(f=>g.set(f.id,f)),g},[s]),[l,i]=j.useState(()=>et(s,1920)),[x,o]=j.useState(!1);j.useEffect(()=>{if(r&&typeof window<"u")try{const g=localStorage.getItem(a);if(g){const f=JSON.parse(g);mn(f)&&i(f)}}catch{}o(!0)},[r,a]),j.useEffect(()=>{if(x&&r&&typeof window<"u")try{localStorage.setItem(a,JSON.stringify(l))}catch{}},[l,r,a,x]);const c=j.useCallback(g=>{i(f=>{const C=ae(f,g);if(!C)return f;const{side:N,panel:v}=C;if(v.open)return{...f,[N]:f[N].map(S=>S.id===g?{...S,open:!1}:S)};const y=N==="left"?"right":"left",M=n.get(g),I=typeof window<"u"?window.innerWidth:1920,T=M?Pe(M.defaultWidth,I):20,D=f[y].filter(S=>S.open).reduce((S,B)=>S+B.width,0),H=f[N].filter(S=>S.open&&S.id!==g),P=H.reduce((S,B)=>S+B.width,0),F=100-D-q.minCentralPercent;if(P+T<=F)return{...f,[N]:f[N].map(S=>S.id===g?{...S,open:!0,width:T}:S)};const L=H.length*q.snapMinWidth,O=F-L,W=Math.min(T,Math.max(q.snapMinWidth,O)),A=F-W;if(P>0&&A<P){const S=A/P;return{...f,[N]:f[N].map(B=>{if(B.id===g)return{...B,open:!0,width:W};if(B.open){const X=Math.max(q.snapMinWidth,B.width*S);return{...B,width:X}}return B})}}return{...f,[N]:f[N].map(S=>S.id===g?{...S,open:!0,width:W}:S)}})},[n]),u=j.useCallback((g,f)=>{i(C=>{const N=ae(C,g);if(!N)return C;const{side:v,panel:y}=N,I=C[v==="left"?"right":"left"].filter(L=>L.open).reduce((L,O)=>L+O.width,0),T=C[v].filter(L=>L.open&&L.id!==g),D=T.reduce((L,O)=>L+O.width,0),H=100-I-q.minCentralPercent,P=f+D;if(P<=H)return{...C,[v]:C[v].map(L=>L.id===g?{...L,width:f}:L)};if(f>y.width&&D>0){const L=P-H,O=Math.max(T.length*q.snapMinWidth,D-L),W=H-O,A=O/D;return{...C,[v]:C[v].map(S=>{if(S.id===g)return{...S,width:W};if(S.open){const B=Math.max(q.snapMinWidth,S.width*A);return{...S,width:B}}return S})}}return{...C,[v]:C[v].map(L=>L.id===g?{...L,width:Math.min(f,H-D)}:L)}})},[]),d=j.useCallback(g=>{i(f=>{const C=ae(f,g);if(!C||C.panel.open)return f;const{side:N}=C,v=N==="left"?"right":"left",y=n.get(g),M=typeof window<"u"?window.innerWidth:1920,I=y?Pe(y.defaultWidth,M):20,T=f[v].filter(A=>A.open).reduce((A,S)=>A+S.width,0),D=f[N].filter(A=>A.open&&A.id!==g),H=D.reduce((A,S)=>A+S.width,0),P=100-T-q.minCentralPercent;if(H+I<=P)return{...f,[N]:f[N].map(A=>A.id===g?{...A,open:!0,width:I}:A)};const F=D.length*q.snapMinWidth,L=P-F,O=Math.min(I,Math.max(q.snapMinWidth,L)),W=P-O;if(H>0&&W<H){const A=W/H;return{...f,[N]:f[N].map(S=>{if(S.id===g)return{...S,open:!0,width:O};if(S.open){const B=Math.max(q.snapMinWidth,S.width*A);return{...S,width:B}}return S})}}return{...f,[N]:f[N].map(A=>A.id===g?{...A,open:!0,width:O}:A)}})},[n]),m=j.useCallback(g=>{i(f=>{const C=ae(f,g);if(!C||!C.panel.open)return f;const{side:N}=C;return{...f,[N]:f[N].map(v=>v.id===g?{...v,open:!1,exiting:!1,inCloseZone:!1}:v)}})},[]),p=j.useCallback((g,f)=>{i(C=>{const N=ae(C,g);if(!N)return C;const{side:v}=N;return{...C,[v]:C[v].map(y=>y.id===g?{...y,inCloseZone:f}:y)}})},[]),b=j.useCallback(g=>{i(f=>{const C=ae(f,g);if(!C)return f;const{side:N}=C;return{...f,[N]:f[N].map(v=>v.id===g?{...v,exiting:!0,inCloseZone:!1}:v)}}),setTimeout(()=>{i(f=>{const C=ae(f,g);if(!C)return f;const{side:N}=C;return{...f,[N]:f[N].map(v=>v.id===g?{...v,open:!1,exiting:!1,width:q.snapMinWidth}:v)}})},q.exitAnimationDuration)},[]),w=j.useCallback(()=>{const g=typeof window<"u"?window.innerWidth:1920;i(et(s,g))},[s]);return j.useEffect(()=>{const g=[...l.left.filter(C=>C.exiting),...l.right.filter(C=>C.exiting)];if(g.length===0)return;const f=g.map(C=>setTimeout(()=>{i(N=>{const v=ae(N,C.id);if(!v)return N;const{side:y}=v;return{...N,[y]:N[y].map(M=>M.id===C.id&&M.exiting?{...M,open:!1,exiting:!1}:M)}})},q.exitAnimationDuration));return()=>{f.forEach(C=>clearTimeout(C))}},[l]),{panels:l,togglePanel:c,resizePanel:u,openPanel:d,closePanel:m,resetPanels:w,handleCloseZoneChange:p,handlePanelClose:b}}const ds=k.default.memo(({mainContent:t,sidePanel:s,isPanelOpen:r,onPanelExited:a,panelWidth:n=400,panelPosition:l="right",animationDuration:i=75,className:x,mainContentBg:o="bg-white",sidePanelBg:c})=>{const[u,d]=j.useState(!1),[m,p]=j.useState(r);j.useEffect(()=>{if(r)p(!0),d(!1);else if(m){d(!0);const f=setTimeout(()=>{p(!1),d(!1),a?.()},i);return()=>clearTimeout(f)}},[r,i,m,a]);const b=r?`calc(100% - ${n}px)`:"100%",w=l==="right"?"animate-slideInRight":"animate-slideInLeft",g=l==="right"?"animate-slideOutRight":"animate-slideOutLeft";return e.jsx("div",{className:h.clsx("w-full flex flex-col",x),style:{height:"100%",maxHeight:"100%",overflow:"hidden"},children:e.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[l==="left"&&e.jsx("div",{className:"h-full overflow-hidden transition-all ease-out",style:{width:r?`${n}px`:"0px",opacity:r?1:0,transitionDuration:`${i}ms`},children:m&&e.jsx("div",{className:h.clsx("h-full",c,u?g:w),children:s})}),e.jsx("div",{className:h.clsx("relative flex flex-col transition-all ease-out overflow-hidden",o),style:{width:b,transitionDuration:`${i}ms`},children:e.jsx("div",{className:"relative flex-1 overflow-hidden",children:t})}),l==="right"&&e.jsx("div",{className:"h-full overflow-hidden transition-all ease-out",style:{width:r?`${n}px`:"0px",opacity:r?1:0,transitionDuration:`${i}ms`},children:m&&e.jsx("div",{className:h.clsx("h-full",c,u?g:w),children:s})})]})})});ds.displayName="SplitPanelLayout";const le=t=>t!==void 0&&{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8"}[t]||"gap-4",xs=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("mask",{id:"mask0_1135_15829",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("path",{d:"M20 0H0V20H20V0Z",fill:"white"})}),e.jsxs("g",{mask:"url(#mask0_1135_15829)",children:[e.jsx("path",{d:"M9.99297 18.9587C5.0513 18.9587 1.04297 14.942 1.04297 10.0003C1.04297 5.05866 5.05964 1.04199 10.0013 1.04199C14.943 1.04199 18.9596 5.05866 18.9596 10.0003C18.9596 10.5003 18.918 11.0087 18.8346 11.5003C18.7763 11.842 18.4596 12.0753 18.1096 12.0087C17.768 11.9503 17.543 11.6253 17.6013 11.2837C17.6763 10.8587 17.7096 10.4253 17.7096 10.0003C17.7096 5.75033 14.2513 2.29199 10.0013 2.29199C5.7513 2.29199 2.29297 5.75033 2.29297 10.0003C2.29297 14.2503 5.7513 17.7087 10.0013 17.7087C10.6013 17.7087 11.193 17.642 11.768 17.5003C12.093 17.4253 12.443 17.6253 12.518 17.967C12.6013 18.3003 12.393 18.642 12.0513 18.717C11.3846 18.8753 10.693 18.9587 9.99297 18.9587Z",fill:"currentColor"}),e.jsx("path",{d:"M13.3346 10.625H6.66797C6.3263 10.625 6.04297 10.3417 6.04297 10C6.04297 9.65833 6.3263 9.375 6.66797 9.375H13.3346C13.6763 9.375 13.9596 9.65833 13.9596 10C13.9596 10.3417 13.6763 10.625 13.3346 10.625Z",fill:"currentColor"}),e.jsx("path",{d:"M10 13.9587C9.65833 13.9587 9.375 13.6753 9.375 13.3337V6.66699C9.375 6.32533 9.65833 6.04199 10 6.04199C10.3417 6.04199 10.625 6.32533 10.625 6.66699V13.3337C10.625 13.6753 10.3417 13.9587 10 13.9587Z",fill:"currentColor"}),e.jsx("path",{d:"M15.7085 18.7834C15.3585 18.7834 15.0669 18.5417 15.0002 18.2084L14.7752 17.2251C14.6669 16.7417 14.2835 16.3667 13.8085 16.2584L12.8085 16.0251C12.4752 15.9501 12.2419 15.6584 12.2502 15.3167C12.2585 14.9751 12.4919 14.6751 12.8252 14.6084L13.8085 14.3834C14.2835 14.2751 14.6669 13.8917 14.7752 13.4167L15.0085 12.4167C15.0835 12.0917 15.3752 11.8584 15.7169 11.8584C16.0669 11.8584 16.3585 12.1001 16.4252 12.4334L16.6502 13.4167C16.7585 13.8917 17.1419 14.2751 17.6169 14.3834L18.6169 14.6167C18.9419 14.6917 19.1835 14.9834 19.1752 15.3251C19.1752 15.6667 18.9419 15.9584 18.6085 16.0334L17.6169 16.2584C17.1335 16.3667 16.7585 16.7501 16.6502 17.2251L16.4169 18.2251C16.3419 18.5501 16.0502 18.7834 15.7085 18.7834ZM14.7835 15.3167C15.1669 15.5417 15.4835 15.8584 15.7085 16.2417C15.9335 15.8584 16.2502 15.5417 16.6335 15.3167C16.2502 15.0917 15.9335 14.7751 15.7085 14.3917C15.4835 14.7751 15.1669 15.0917 14.7835 15.3167Z",fill:"currentColor"})]})]}),us=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsxs("g",{clipPath:"url(#clip0_1314_55824)",children:[e.jsx("mask",{id:"mask0_1314_55824",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("path",{d:"M19.5 0.5V19.5H0.5V0.5H19.5Z",fill:"white",stroke:"white"})}),e.jsxs("g",{mask:"url(#mask0_1314_55824)",children:[e.jsx("path",{d:"M13.2839 19.4583C12.9339 19.4583 12.6422 19.225 12.5672 18.8833L12.3339 17.8667C12.2172 17.3667 11.8255 16.975 11.3339 16.8583L10.3089 16.625C9.98385 16.5583 9.74219 16.2583 9.74219 15.9167C9.74219 15.575 9.97552 15.275 10.3172 15.2L11.3255 14.9667C11.8255 14.85 12.2172 14.4583 12.3339 13.9667L12.5672 12.9417C12.6422 12.6083 12.9339 12.375 13.2755 12.375C13.6255 12.375 13.9172 12.6167 13.9839 12.95L14.2172 13.9583C14.3339 14.4583 14.7255 14.85 15.2172 14.9667L16.2422 15.2C16.5672 15.2667 16.8089 15.5667 16.8089 15.9083C16.8089 16.25 16.5755 16.55 16.2422 16.625L15.2255 16.8583C14.7255 16.975 14.3339 17.3667 14.2172 17.8583L13.9755 18.8833C13.9089 19.2083 13.6089 19.45 13.2672 19.45L13.2839 19.4583ZM12.3005 15.9333C12.7089 16.1667 13.0505 16.5083 13.2755 16.9167C13.5089 16.5083 13.8505 16.1667 14.2589 15.9417C13.8505 15.7083 13.5089 15.3667 13.2839 14.9583C13.0505 15.3667 12.7089 15.7083 12.3005 15.9333Z",fill:"currentColor"}),e.jsx("path",{d:"M8.88331 18.4586C8.88331 18.4586 8.82498 18.4586 8.79165 18.4586C7.94165 18.3419 7.11665 18.0919 6.33331 17.7169C6.20831 17.6586 5.95832 17.6253 5.84165 17.6503L5.65832 17.6919C5.09998 17.8253 4.28331 18.0253 3.59165 18.1919C3.02498 18.3336 2.49165 18.2086 2.14165 17.8586C1.79165 17.5086 1.66665 16.9753 1.80832 16.4003L2.34998 14.1503C2.37498 14.0419 2.34998 13.8003 2.28331 13.6669C1.53331 12.0919 1.28331 10.3253 1.56665 8.5586C2.14998 5.02525 5.02498 2.15025 8.55832 1.56692C11.35 1.11692 14.075 1.99192 16.0416 3.96692C18.0083 5.94192 18.875 8.66693 18.425 11.4419C18.2833 12.2919 18.025 13.1086 17.65 13.8669C17.5 14.1753 17.125 14.3003 16.8166 14.1503C16.5083 14.0003 16.3833 13.6253 16.5333 13.3169C16.85 12.6669 17.075 11.9669 17.1916 11.2419C17.5833 8.86693 16.8416 6.53359 15.1583 4.85025C13.475 3.16692 11.1416 2.41692 8.75832 2.80025C5.74998 3.30025 3.29998 5.75025 2.80831 8.76693C2.56665 10.2753 2.77498 11.7919 3.41665 13.1336C3.56665 13.4503 3.68332 14.0003 3.56665 14.4586L3.02498 16.7003C2.98331 16.8836 3.01665 16.9669 3.02498 16.9753C3.03332 16.9836 3.11665 17.0253 3.29998 16.9753C3.99998 16.8086 4.80832 16.6169 5.36665 16.4836L5.55832 16.4336C5.95832 16.3419 6.49998 16.4086 6.86665 16.5836C7.53332 16.9003 8.24165 17.1086 8.96665 17.2086C9.30832 17.2586 9.54165 17.5753 9.49998 17.9169C9.45831 18.2253 9.19165 18.4586 8.88331 18.4586Z",fill:"currentColor"}),e.jsx("path",{d:"M14.5246 8.92515C14.2746 8.92515 14.0329 8.76681 13.9413 8.51681C13.5246 7.3918 12.6413 6.50013 11.5163 6.0668C11.1913 5.9418 11.0329 5.58346 11.1579 5.25846C11.2829 4.93346 11.6496 4.77513 11.9663 4.90013C13.4163 5.4668 14.5663 6.62513 15.1079 8.08346C15.2329 8.40848 15.0663 8.76681 14.7413 8.89181C14.6663 8.91681 14.5996 8.92515 14.5246 8.92515Z",fill:"currentColor"})]})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1314_55824",children:e.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),pn=({size:t,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 1.5a.5.5 0 0 1 .5.5v6.793l2.146-2.147a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L5.5 8.793V2a.5.5 0 0 1 .5-.5Z",clipRule:"evenodd"})}),hs=j.forwardRef(pn),gn=({size:t,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.267 1h7.466c.264 0 .496 0 .678.016.174.016.413.053.607.213a1 1 0 0 1 .363.81c-.01.252-.142.455-.247.595a8.283 8.283 0 0 1-.44.516L7.826 6.356l-.074.084-.001.001v.002l-.001.113v2.693c0 .068.002.21-.047.344a.75.75 0 0 1-.199.293c-.105.095-.238.147-.302.172l-.018.007-1.714.685c-.08.032-.167.067-.245.09a.764.764 0 0 1-.378.025.75.75 0 0 1-.472-.32.764.764 0 0 1-.118-.36 3.036 3.036 0 0 1-.007-.26v-3.37l-.001-.112v-.002h-.001a3.066 3.066 0 0 0-.075-.085L1.32 3.166l-.015-.016c-.176-.197-.33-.37-.44-.516C.762 2.494.63 2.291.62 2.04a1 1 0 0 1 .362-.811c.194-.16.434-.197.608-.213C1.771 1 2.002 1 2.267 1Zm-.615 1.015.016.022c.078.106.202.244.398.463l2.853 3.189.015.017c.06.066.133.148.188.246a1 1 0 0 1 .104.272c.024.11.024.22.024.308v3.229l1.5-.6V6.532c0-.088 0-.199.024-.308a1 1 0 0 1 .104-.272c.055-.098.129-.18.187-.246l.016-.017L9.934 2.5a7.943 7.943 0 0 0 .414-.485l-.027-.003A7.924 7.924 0 0 0 9.711 2H2.289a7.925 7.925 0 0 0-.637.015Z",clipRule:"evenodd"})}),ms=j.forwardRef(gn),bn=({size:t,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:s.strokeWidth||1,d:"m18.67 18.67 2.22-1.11v-2.78m-6.67-5L12 10.89l2.22-1.11ZM12 10.89 9.78 9.78 12 10.89Zm0 0v2.78-2.78Zm8.89-4.45-2.22 1.11 2.22-1.11Zm0 0-2.22-1.11 2.22 1.11Zm0 0v2.78-2.78Zm-6.67-3.33L12 2 9.78 3.11h4.44ZM3.11 6.44l2.22-1.11-2.22 1.11Zm0 0 2.22 1.11-2.22-1.11Zm0 0v2.78-2.78ZM12 22l-2.22-1.11L12 22Zm0 0 2.22-1.11L12 22Zm0 0v-2.78V22Zm-6.67-3.33-2.22-1.11v-2.78l2.22 3.89Z"})}),jn=j.forwardRef(bn),vn=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 27 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{d:"M23.34 25.005L26.67 23.34V19.17M16.665 11.67L13.335 13.335M13.335 13.335L10.005 11.67M13.335 13.335V17.505M26.67 6.66L23.34 8.325M26.67 6.66L23.34 4.995M26.67 6.66V10.83M16.665 1.665L13.335 0L10.005 1.665H16.665ZM0 6.66L3.33 4.995M0 6.66L3.33 8.325M0 6.66V10.83M13.335 30L10.005 28.335M13.335 30L16.665 28.335M13.335 30V25.83M3.33 25.005L0 23.34V19.17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),wn=({size:t,...s},r)=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:t,height:t,fill:"none",ref:r,...s,children:[e.jsx("g",{clipPath:"url(#a)",children:e.jsx("path",{fill:"currontColor",fillRule:"evenodd",d:"M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM.665 8a7.333 7.333 0 1 1 14.667 0A7.333 7.333 0 0 1 .666 8Z",clipRule:"evenodd"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"a",children:e.jsx("path",{fill:"#fff",d:"M0 0h16v16H0z"})})})]}),Cn=j.forwardRef(wn),yn=({title:t,titleId:s,size:r,...a},n)=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:r,height:r,fill:"none",ref:n,"aria-labelledby":s,...a,children:[t?e.jsx("title",{id:s,children:t}):null,e.jsxs("g",{clipPath:"url(#a)",children:[e.jsx("mask",{id:"b",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",d:"M24 0H0v24h24V0Z"})}),e.jsxs("g",{fill:"#fff",mask:"url(#b)",children:[e.jsx("path",{d:"M11.99 22.75C6.06 22.75 1.25 17.93 1.25 12S6.07 1.25 12 1.25 22.75 6.07 22.75 12c0 .6-.05 1.21-.15 1.8-.07.41-.45.69-.87.61a.75.75 0 0 1-.61-.87c.09-.51.13-1.03.13-1.54 0-5.1-4.15-9.25-9.25-9.25S2.75 6.9 2.75 12 6.9 21.25 12 21.25c.72 0 1.43-.08 2.12-.25.39-.09.81.15.9.56.1.4-.15.81-.56.9-.8.19-1.63.29-2.47.29Z"}),e.jsx("path",{d:"M16 12.75H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75Z"}),e.jsx("path",{d:"M12 16.75c-.41 0-.75-.34-.75-.75V8c0-.41.34-.75.75-.75s.75.34.75.75v8c0 .41-.34.75-.75.75ZM18.85 22.54a.86.86 0 0 1-.85-.69l-.27-1.18c-.13-.58-.59-1.03-1.16-1.16l-1.2-.28a.848.848 0 0 1-.67-.85c.01-.41.29-.77.69-.85l1.18-.27c.57-.13 1.03-.59 1.16-1.16l.28-1.2c.09-.39.44-.67.85-.67.42 0 .77.29.85.69l.27 1.18c.13.57.59 1.03 1.16 1.16l1.2.28c.39.09.68.44.67.85 0 .41-.28.76-.68.85l-1.19.27c-.58.13-1.03.59-1.16 1.16l-.28 1.2c-.09.39-.44.67-.85.67Zm-1.11-4.16c.46.27.84.65 1.11 1.11.27-.46.65-.84 1.11-1.11-.46-.27-.84-.65-1.11-1.11-.27.46-.65.84-1.11 1.11Z"})]})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"a",children:e.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),Nn=j.forwardRef(yn),ce=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.74408 2.74408C3.06951 2.41864 3.59715 2.41864 3.92259 2.74408L10 8.82149L16.0774 2.74408C16.4028 2.41864 16.9305 2.41864 17.2559 2.74408C17.5814 3.06952 17.5814 3.59715 17.2559 3.92259L11.1785 10L17.2559 16.0774C17.5814 16.4028 17.5814 16.9305 17.2559 17.2559C16.9305 17.5814 16.4028 17.5814 16.0774 17.2559L10 11.1785L3.92259 17.2559C3.59715 17.5814 3.06951 17.5814 2.74408 17.2559C2.41864 16.9305 2.41864 16.4028 2.74408 16.0774L8.82149 10L2.74408 3.92259C2.41864 3.59715 2.41864 3.06951 2.74408 2.74408Z",fill:"currentColor"})}),fs=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 43 43",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsxs("g",{clipPath:"url(#clip0_50_31011)",children:[e.jsx("path",{d:"M33.9412 3.62061H14.6738V11.6106H38.0563V7.73402C38.0563 5.46567 36.2102 3.62061 33.9412 3.62061Z",fill:"#CED9F9"}),e.jsx("path",{d:"M23.0352 12.8403H0.5V5.42636C0.5 2.70972 2.71068 0.5 5.42828 0.5H12.6336C13.3497 0.5 14.0396 0.650925 14.6664 0.934509C15.5418 1.32896 16.2939 1.97913 16.8213 2.8286L23.0352 12.8403Z",fill:"#1640C1"}),e.jsx("path",{d:"M42.5 14.4999V38.3812C42.5 40.6525 40.6511 42.4998 38.3789 42.4998H4.62111C2.34891 42.4998 0.5 40.6525 0.5 38.3812V10.3804H38.3789C40.6511 10.3804 42.5 12.2283 42.5 14.4999Z",fill:"#2354E6"}),e.jsx("path",{d:"M42.5 14.4999V38.3812C42.5 40.6525 40.6511 42.4998 38.3789 42.4998H21.5V10.3804H38.3789C40.6511 10.3804 42.5 12.2283 42.5 14.4999Z",fill:"#1849D6"}),e.jsx("path",{d:"M32.5471 26.44C32.5471 32.5325 27.5909 37.4889 21.4991 37.4889C15.4073 37.4889 10.4512 32.5325 10.4512 26.44C10.4512 20.3486 15.4073 15.3921 21.4991 15.3921C27.5909 15.3921 32.5471 20.3486 32.5471 26.44Z",fill:"#E7ECFC"}),e.jsx("path",{d:"M32.5479 26.44C32.5479 32.5325 27.5918 37.4889 21.5 37.4889V15.3921C27.5918 15.3921 32.5479 20.3486 32.5479 26.44Z",fill:"#CED9F9"}),e.jsx("path",{d:"M25.0612 26.5753C24.8308 26.7704 24.5485 26.8656 24.2688 26.8656C23.9185 26.8656 23.5705 26.7173 23.327 26.4282L22.7307 25.7213V30.3494C22.7307 31.0287 22.1795 31.5799 21.5002 31.5799C20.8209 31.5799 20.2698 31.0287 20.2698 30.3494V25.7213L19.6734 26.4282C19.2344 26.9476 18.4587 27.014 17.9392 26.5753C17.4201 26.1373 17.3535 25.3612 17.7915 24.8418L20.2271 21.9543C20.5447 21.5788 21.008 21.3628 21.5002 21.3628C21.9924 21.3628 22.4558 21.5788 22.7733 21.9543L25.2089 24.8418C25.647 25.3612 25.5803 26.1373 25.0612 26.5753Z",fill:"#6C8DEF"}),e.jsx("path",{d:"M25.061 26.5753C24.8306 26.7704 24.5483 26.8656 24.2686 26.8656C23.9183 26.8656 23.5703 26.7173 23.3268 26.4282L22.7305 25.7213V30.3494C22.7305 31.0287 22.1793 31.5799 21.5 31.5799V21.3628C21.9922 21.3628 22.4555 21.5788 22.7731 21.9543L25.2087 24.8418C25.6467 25.3612 25.5801 26.1373 25.061 26.5753Z",fill:"#3B67E9"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_50_31011",children:e.jsx("rect",{width:"42",height:"42",fill:"white",transform:"translate(0.5 0.5)"})})})]}),ot=({size:t=16,className:s,...r})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:e.jsx("path",{d:"M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM7 7C6.58579 7 6.25 7.33579 6.25 7.75C6.25 8.16421 6.58579 8.5 7 8.5H7.25293C7.41287 8.5 7.53176 8.64856 7.49707 8.80469L7.03809 10.8701C6.79522 11.963 7.62751 13 8.74707 13H9C9.41421 13 9.75 12.6642 9.75 12.25C9.75 11.8358 9.41421 11.5 9 11.5H8.74707C8.58713 11.5 8.46824 11.3514 8.50293 11.1953L8.96191 9.12988C9.20478 8.03698 8.37249 7 7.25293 7H7ZM8 3C7.44771 3 7 3.44772 7 4C7 4.55228 7.44771 5 8 5C8.55228 5 9 4.55228 9 4C9 3.44772 8.55228 3 8 3Z",fill:"currentColor"})}),ps=({size:t=12,...s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 6C10.5 6.31066 10.2482 6.5625 9.9375 6.5625L3.42049 6.5625L5.83525 8.97725C6.05492 9.19692 6.05492 9.55308 5.83525 9.77275C5.61558 9.99242 5.25942 9.99242 5.03975 9.77275L1.66475 6.39775C1.44508 6.17808 1.44508 5.82192 1.66475 5.60225L5.03975 2.22725C5.25942 2.00758 5.61558 2.00758 5.83525 2.22725C6.05492 2.44692 6.05492 2.80308 5.83525 3.02275L3.4205 5.4375L9.9375 5.4375C10.2482 5.4375 10.5 5.68934 10.5 6Z",fill:"#22262E"})}),gs=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{d:"M11.4736 10.0004L15.451 13.9779L13.9779 15.451L10.0004 11.4736L6.02295 15.451L4.54981 13.9779L8.52728 10.0004L4.5498 6.02294L6.02294 4.5498L10.0004 8.52728L13.9779 4.5498L15.451 6.02294L11.4736 10.0004Z",className:"fill-med-em"})}),ge=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:t,className:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11 9V7H13V9H11ZM11 17V11H13V17H11Z",fill:"currentColor"})}),ct=({size:t=24,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M12.0002 13.4806V13.2249C12.0002 12.3967 12.5118 11.9583 13.0233 11.6051C13.5227 11.2641 14.0219 10.8256 14.0219 10.0218C14.0219 8.9013 13.1207 8 12.0002 8C10.8797 8 9.97852 8.9013 9.97852 10.0218",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11.9941 16.3909H12.0051",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),kn=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M18.3337 13.9498V3.8915C18.3337 2.8915 17.517 2.14983 16.5253 2.23317H16.4753C14.7253 2.38317 12.067 3.27483 10.5837 4.20817L10.442 4.29983C10.2003 4.44983 9.80033 4.44983 9.55866 4.29983L9.35033 4.17483C7.86699 3.24983 5.21699 2.3665 3.46699 2.22483C2.47533 2.1415 1.66699 2.8915 1.66699 3.88317V13.9498C1.66699 14.7498 2.31699 15.4998 3.11699 15.5998L3.35866 15.6332C5.16699 15.8748 7.95866 16.7915 9.55866 17.6665L9.59199 17.6832C9.81699 17.8082 10.1753 17.8082 10.392 17.6832C11.992 16.7998 14.792 15.8748 16.6087 15.6332L16.8837 15.5998C17.6837 15.4998 18.3337 14.7498 18.3337 13.9498Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 4.57495V17.075",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.45801 7.07495H4.58301",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7.08301 9.57495H4.58301",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Sn=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M7.08366 15.808H6.66699C3.33366 15.808 1.66699 14.9747 1.66699 10.808V6.64136C1.66699 3.30802 3.33366 1.64136 6.66699 1.64136H13.3337C16.667 1.64136 18.3337 3.30802 18.3337 6.64136V10.808C18.3337 14.1414 16.667 15.808 13.3337 15.808H12.917C12.6587 15.808 12.4087 15.933 12.2503 16.1414L11.0003 17.808C10.4503 18.5414 9.55032 18.5414 9.00032 17.808L7.75032 16.1414C7.61698 15.958 7.31699 15.808 7.08366 15.808Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66667 7.25L5 8.91667L6.66667 10.5833",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.333 7.25L14.9997 8.91667L13.333 10.5833",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10.8337 6.9751L9.16699 10.8585",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ln=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M18.3337 12.5001V7.50008C18.3337 3.33341 16.667 1.66675 12.5003 1.66675H7.50033C3.33366 1.66675 1.66699 3.33341 1.66699 7.50008V12.5001C1.66699 16.6667 3.33366 18.3334 7.50033 18.3334H12.5003C16.667 18.3334 18.3337 16.6667 18.3337 12.5001Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.09961 5.92529H17.8996",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7.09961 1.75854V5.80854",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M12.9004 1.75854V5.43354",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8.125 12.0416V11.0416C8.125 9.75827 9.03333 9.23327 10.1417 9.87493L11.0083 10.3749L11.875 10.8749C12.9833 11.5166 12.9833 12.5666 11.875 13.2083L11.0083 13.7083L10.1417 14.2083C9.03333 14.8499 8.125 14.3249 8.125 13.0416V12.0416V12.0416Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),zn=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M15.833 13.3333V5.41667C15.833 4.5 15.083 3.75 14.1663 3.75H9.58301",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11.667 1.66675L9.16699 3.75008L11.667 5.83341",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M15.833 18.3333C17.2137 18.3333 18.333 17.214 18.333 15.8333C18.333 14.4525 17.2137 13.3333 15.833 13.3333C14.4523 13.3333 13.333 14.4525 13.333 15.8333C13.333 17.214 14.4523 18.3333 15.833 18.3333Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.16699 6.66675V14.5834C4.16699 15.5001 4.91699 16.2501 5.83366 16.2501H10.417",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8.33301 18.3334L10.833 16.2501L8.33301 14.1667",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.16699 6.66675C5.5477 6.66675 6.66699 5.54746 6.66699 4.16675C6.66699 2.78604 5.5477 1.66675 4.16699 1.66675C2.78628 1.66675 1.66699 2.78604 1.66699 4.16675C1.66699 5.54746 2.78628 6.66675 4.16699 6.66675Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Mn=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M16.6667 11.6666C17.5871 11.6666 18.3333 10.9204 18.3333 9.99992C18.3333 9.07944 17.5871 8.33325 16.6667 8.33325C15.7462 8.33325 15 9.07944 15 9.99992C15 10.9204 15.7462 11.6666 16.6667 11.6666Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.6667 5.00008C17.5871 5.00008 18.3333 4.25389 18.3333 3.33341C18.3333 2.41294 17.5871 1.66675 16.6667 1.66675C15.7462 1.66675 15 2.41294 15 3.33341C15 4.25389 15.7462 5.00008 16.6667 5.00008Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.6667 18.3333C17.5871 18.3333 18.3333 17.5871 18.3333 16.6667C18.3333 15.7462 17.5871 15 16.6667 15C15.7462 15 15 15.7462 15 16.6667C15 17.5871 15.7462 18.3333 16.6667 18.3333Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3.33366 11.6666C4.25413 11.6666 5.00033 10.9204 5.00033 9.99992C5.00033 9.07944 4.25413 8.33325 3.33366 8.33325C2.41318 8.33325 1.66699 9.07944 1.66699 9.99992C1.66699 10.9204 2.41318 11.6666 3.33366 11.6666Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 10H15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M15.0003 3.33325H11.667C10.0003 3.33325 9.16699 4.16659 9.16699 5.83325V14.1666C9.16699 15.8333 10.0003 16.6666 11.667 16.6666H15.0003",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),bs=t=>e.jsxs("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsxs("g",{clipPath:"url(#clip0_1562_62901)",children:[e.jsx("mask",{id:"mask0_1562_62901",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:e.jsx("path",{d:"M20.418 0H0.417969V20H20.418V0Z",fill:"white"})}),e.jsxs("g",{mask:"url(#mask0_1562_62901)",children:[e.jsx("path",{d:"M14.3001 16.2424C13.9501 16.2424 13.6668 16.0091 13.5918 15.6758L13.3751 14.7341C13.2751 14.2841 12.9168 13.9341 12.4751 13.8258L11.5251 13.6008C11.2001 13.5341 10.9668 13.2424 10.9668 12.8924C10.9668 12.5424 11.2001 12.2591 11.5418 12.1841L12.4835 11.9674C12.9335 11.8674 13.2835 11.5091 13.3918 11.0674L13.6168 10.1091C13.6835 9.78411 13.9751 9.55078 14.3168 9.55078C14.6251 9.55078 14.9501 9.78411 15.0251 10.1174L15.2418 11.0674C15.3418 11.5174 15.7001 11.8674 16.1418 11.9758L17.1001 12.2008C17.4251 12.2674 17.6585 12.5591 17.6585 12.9091C17.6585 13.2591 17.4251 13.5424 17.1001 13.6174L16.1501 13.8341C15.7001 13.9341 15.3501 14.2924 15.2418 14.7341L15.0168 15.6841C14.9501 16.0091 14.6501 16.2424 14.3001 16.2424ZM13.4751 12.9091C13.8168 13.1174 14.1001 13.4008 14.3085 13.7424C14.5168 13.4008 14.8001 13.1174 15.1418 12.9174C14.8001 12.7091 14.5168 12.4258 14.3085 12.0841C14.1001 12.4258 13.8168 12.7091 13.4751 12.9174V12.9091Z",fill:"currentColor"}),e.jsx("path",{d:"M4.91727 18.1171C3.98394 18.1171 3.40061 17.8088 3.02561 17.4338C2.29227 16.7005 1.77561 15.1421 3.42561 11.8338L4.15061 10.3921C4.24227 10.2005 4.24227 9.80047 4.15061 9.6088L3.42561 8.15881C1.76727 4.85881 2.29227 3.29214 3.02561 2.55881C3.75894 1.82548 5.31727 1.30048 8.62561 2.95881L15.7589 6.52548C17.9589 7.62548 18.9423 9.3338 18.3173 10.9838C18.1923 11.3088 17.8339 11.4671 17.5089 11.3505C17.1839 11.2255 17.0256 10.8671 17.1423 10.5421C17.5256 9.52547 16.7923 8.44214 15.1923 7.64214L8.05894 4.07548C6.05894 3.07548 4.50894 2.84214 3.90061 3.44214C3.29227 4.04214 3.53394 5.60048 4.53394 7.59214L5.25894 9.04214C5.52561 9.5838 5.52561 10.4005 5.25894 10.9421L4.53394 12.3838C3.53394 14.3838 3.29227 15.9338 3.90061 16.5338C4.50061 17.1338 6.05894 16.9005 8.05894 15.9005L10.3923 14.7338C10.7006 14.5838 11.0756 14.7005 11.2339 15.0171C11.3923 15.3255 11.2589 15.7005 10.9506 15.8588L8.61727 17.0255C7.00894 17.8338 5.80894 18.1171 4.91727 18.1171Z",fill:"currentColor"}),e.jsx("path",{d:"M9.45117 10.625H4.95117C4.60951 10.625 4.32617 10.3417 4.32617 10C4.32617 9.65833 4.60951 9.375 4.95117 9.375H9.45117C9.79284 9.375 10.0762 9.65833 10.0762 10C10.0762 10.3417 9.79284 10.625 9.45117 10.625Z",fill:"currentColor"})]})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1562_62901",children:e.jsx("rect",{width:"20",height:"20",fill:"white",transform:"translate(0.417969)"})})})]}),In=({size:t,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",ref:r,...s,children:e.jsx("path",{fillRule:"evenodd",d:"M15.75 4.5a3 3 0 1 1 .825 2.066l-8.421 4.679a3.002 3.002 0 0 1 0 1.51l8.421 4.679a3 3 0 1 1-.729 1.31l-8.421-4.678a3 3 0 1 1 0-4.132l8.421-4.679a3 3 0 0 1-.096-.755Z",clipRule:"evenodd"})}),Pn=j.forwardRef(In),Tn=({size:t=36,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("defs",{children:e.jsxs("filter",{id:"filter0_dd_50_34857",x:"0",y:"0",width:"36",height:"36",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feMorphology",{radius:"2",operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_50_34857"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0392157 0 0 0 0 0.0496732 0 0 0 0 0.0705882 0 0 0 0.06 0"}),e.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_50_34857"}),e.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feMorphology",{radius:"2",operator:"erode",in:"SourceAlpha",result:"effect2_dropShadow_50_34857"}),e.jsx("feOffset",{dy:"4"}),e.jsx("feGaussianBlur",{stdDeviation:"4"}),e.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0392157 0 0 0 0 0.0496732 0 0 0 0 0.0705882 0 0 0 0.1 0"}),e.jsx("feBlend",{mode:"normal",in2:"effect1_dropShadow_50_34857",result:"effect2_dropShadow_50_34857"}),e.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_50_34857",result:"shape"})]})}),e.jsxs("g",{filter:"url(#filter0_dd_50_34857)",children:[e.jsx("circle",{cx:"18",cy:"18",r:"12",fill:"var(--slider-thumb-bg, #FFFFFF)"}),e.jsx("circle",{cx:"18",cy:"18",r:"11.5",stroke:"var(--slider-thumb-stroke, #000000)"})]})]}),Rn=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:Math.round(t*.35),viewBox:"0 0 20 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{d:"M5.7021 2.31723C7.41751 0.944899 8.27522 0.258733 9.24878 0.0725807C9.7451 -0.0223194 10.2549 -0.0223194 10.7512 0.0725807C11.7248 0.258733 12.5825 0.944898 14.2979 2.31723L20 6.87891H0L5.7021 2.31723Z",fill:"var(--slider-surface-bg, #F9F9FA)"})}),Dn=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:Math.round(t*.35),viewBox:"0 0 20 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{d:"M5.7021 4.56168C7.41751 5.93401 8.27522 6.62017 9.24878 6.80633C9.7451 6.90123 10.2549 6.90123 10.7512 6.80633C11.7248 6.62017 12.5825 5.93401 14.2979 4.56168L20 0H0L5.7021 4.56168Z",fill:"var(--slider-surface-bg, #F9F9FA)"})}),Re=({width:t=165,height:s=24,className:r})=>e.jsxs("svg",{width:t,height:s,viewBox:"0 0 165 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[e.jsx("path",{d:"M33.2926 22.0173C31.4874 20.7152 30.4812 18.7916 30.3333 16.2762H38.1162C38.2346 17.6079 38.8265 18.2885 39.8918 18.2885C40.2765 18.2885 40.6316 18.1998 40.898 18.0222C41.1643 17.8446 41.3123 17.5487 41.3123 17.1344C41.3123 16.5721 41.0164 16.1282 40.4245 15.8027C39.8326 15.4476 38.9152 15.0629 37.6427 14.619C36.1335 14.0863 34.9202 13.5832 33.9436 13.0801C32.967 12.5771 32.1384 11.8372 31.4282 10.8607C30.718 9.88409 30.3924 8.64118 30.3924 7.13193C30.3924 5.62269 30.7771 4.32059 31.5762 3.25524C32.3456 2.18989 33.4109 1.39088 34.7722 0.828607C36.1335 0.266338 37.6427 0 39.3295 0C42.2001 0 44.4492 0.651048 46.136 1.98274C47.8228 3.31443 48.7106 5.1492 48.7993 7.54624H40.9276C40.898 6.89519 40.75 6.4217 40.4245 6.12577C40.1286 5.82984 39.7439 5.71147 39.3 5.71147C39.004 5.71147 38.7377 5.82984 38.5305 6.03699C38.3234 6.24414 38.2346 6.54007 38.2346 6.92478C38.2346 7.45746 38.5305 7.90136 39.1224 8.22688C39.7143 8.582 40.6316 8.96671 41.9041 9.46979C43.3838 10.0321 44.5971 10.5351 45.5441 11.0382C46.4911 11.5413 47.3197 12.2515 48.0299 13.1393C48.7402 14.0271 49.0953 15.1813 49.0953 16.5425C49.0953 17.963 48.7402 19.2651 48.0299 20.3896C47.3197 21.5142 46.3135 22.402 44.9522 23.053C43.6205 23.7041 42.0225 24 40.1582 24C37.406 23.9704 35.1273 23.3194 33.2926 22.0173Z",fill:"currentColor"}),e.jsx("path",{d:"M65.7858 23.7633L58.9794 13.6424V23.7633H51.6995V0.41433H59.009V10.2392L65.697 0.41433H73.9831L65.9337 11.6005L74.5157 23.7633H65.7858Z",fill:"currentColor"}),e.jsx("path",{d:"M91.5613 20.2121H83.7783L82.6241 23.7633H74.9299L83.4823 0.41433H91.9164L100.41 23.7633H92.6858L91.5613 20.2121ZM89.7857 14.7078L87.6846 8.19731L85.5834 14.7078H89.7857Z",fill:"currentColor"}),e.jsx("path",{d:"M109.376 18.1998H116.419V23.7633H102.037V0.41433H109.347V18.1998H109.376Z",fill:"currentColor"}),e.jsx("path",{d:"M133.731 20.2121H125.948L124.794 23.7633H117.1L125.652 0.41433H134.087L142.58 23.7633H134.856L133.731 20.2121ZM131.956 14.7078L129.855 8.19731L127.754 14.7078H131.956Z",fill:"currentColor"}),e.jsx("path",{d:"M155.985 23.7633L151.605 15.3884H151.576V23.7633H144.266V0.41433H155.157C157.051 0.41433 158.649 0.739853 160.01 1.42049C161.342 2.10114 162.348 2.98893 163.028 4.14306C163.709 5.29719 164.035 6.59929 164.035 8.04935C164.035 9.61778 163.591 11.0087 162.732 12.1924C161.874 13.4057 160.602 14.2639 159.004 14.7966L164.035 23.7633H155.985ZM151.576 10.5056H154.476C155.186 10.5056 155.719 10.3576 156.044 10.0321C156.4 9.70656 156.577 9.20348 156.577 8.52284C156.577 7.90138 156.4 7.42789 156.044 7.07277C155.689 6.71766 155.157 6.5401 154.476 6.5401H151.576V10.5056Z",fill:"currentColor"}),e.jsx("path",{d:"M0.0593784 0.562271L0.0297852 9.32183L7.19131 9.35142L7.16172 16.5129L14.2345 16.5425L14.2049 23.7041L23.0828 23.7633L23.1716 0.65105L0.0593784 0.562271Z",fill:"currentColor"}),e.jsx("path",{d:"M7.13214 23.6745C3.16667 23.6745 -0.0293892 20.4488 0.00020386 16.4834L7.16173 16.513L7.13214 23.6745Z",fill:"currentColor"})]}),De=({width:t=26,height:s=25,className:r})=>e.jsxs("svg",{width:t,height:s,viewBox:"0 0 26 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[e.jsxs("g",{clipPath:"url(#clip0_2642_443540)",children:[e.jsx("path",{d:"M2.89524 2.84375L2.86914 10.5762L9.18445 10.6024L9.15835 16.9242L15.3954 16.9503L15.3693 23.2722L23.1982 23.3244L23.2765 2.92212L2.89524 2.84375Z",fill:"currentColor"}),e.jsx("path",{d:"M9.13314 23.2454C5.63624 23.2454 2.81783 20.398 2.84393 16.8975L9.15924 16.9236L9.13314 23.2454Z",fill:"currentColor"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_2642_443540",children:e.jsx("rect",{width:"25.7812",height:"25.0002",fill:"currentColor"})})})]}),dt=({size:t=12,...s})=>e.jsx("svg",{width:t,height:t,fill:"none",...s,viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.8125 2.625L9.1875 7L4.8125 11.375",stroke:"#5A606B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Hn=({size:t=20,className:s})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:s,viewBox:"0 0 24 24",fill:"none",children:[e.jsx("path",{d:"M6.29844 14.3999C6.29844 13.9028 6.70138 13.4999 7.19844 13.4999H7.21044C7.70749 13.4999 8.11044 13.9028 8.11044 14.3999V14.4119C8.11044 14.909 7.70749 15.3119 7.21044 15.3119H7.19844C6.70138 15.3119 6.29844 14.909 6.29844 14.4119V14.3999Z",fill:"#22262E"}),e.jsx("path",{d:"M7.19844 15.8999C6.70138 15.8999 6.29844 16.3028 6.29844 16.7999V16.8119C6.29844 17.309 6.70138 17.7119 7.19844 17.7119H7.21044C7.70749 17.7119 8.11044 17.309 8.11044 16.8119V16.7999C8.11044 16.3028 7.70749 15.8999 7.21044 15.8999H7.19844Z",fill:"#22262E"}),e.jsx("path",{d:"M8.69844 14.3999C8.69844 13.9028 9.10138 13.4999 9.59844 13.4999H9.61044C10.1075 13.4999 10.5104 13.9028 10.5104 14.3999V14.4119C10.5104 14.909 10.1075 15.3119 9.61044 15.3119H9.59844C9.10138 15.3119 8.69844 14.909 8.69844 14.4119V14.3999Z",fill:"#22262E"}),e.jsx("path",{d:"M9.59844 15.8999C9.10138 15.8999 8.69844 16.3028 8.69844 16.7999V16.8119C8.69844 17.309 9.10138 17.7119 9.59844 17.7119H9.61044C10.1075 17.7119 10.5104 17.309 10.5104 16.8119V16.7999C10.5104 16.3028 10.1075 15.8999 9.61044 15.8999H9.59844Z",fill:"#22262E"}),e.jsx("path",{d:"M11.0984 11.9999C11.0984 11.5028 11.5014 11.0999 11.9984 11.0999H12.0104C12.5075 11.0999 12.9104 11.5028 12.9104 11.9999V12.0119C12.9104 12.509 12.5075 12.9119 12.0104 12.9119H11.9984C11.5014 12.9119 11.0984 12.509 11.0984 12.0119V11.9999Z",fill:"#22262E"}),e.jsx("path",{d:"M11.9984 13.4999C11.5014 13.4999 11.0984 13.9028 11.0984 14.3999V14.4119C11.0984 14.909 11.5014 15.3119 11.9984 15.3119H12.0104C12.5075 15.3119 12.9104 14.909 12.9104 14.4119V14.3999C12.9104 13.9028 12.5075 13.4999 12.0104 13.4999H11.9984Z",fill:"#22262E"}),e.jsx("path",{d:"M11.0984 16.7999C11.0984 16.3028 11.5014 15.8999 11.9984 15.8999H12.0104C12.5075 15.8999 12.9104 16.3028 12.9104 16.7999V16.8119C12.9104 17.309 12.5075 17.7119 12.0104 17.7119H11.9984C11.5014 17.7119 11.0984 17.309 11.0984 16.8119V16.7999Z",fill:"#22262E"}),e.jsx("path",{d:"M14.3984 11.0999C13.9014 11.0999 13.4984 11.5028 13.4984 11.9999V12.0119C13.4984 12.509 13.9014 12.9119 14.3984 12.9119H14.4104C14.9075 12.9119 15.3104 12.509 15.3104 12.0119V11.9999C15.3104 11.5028 14.9075 11.0999 14.4104 11.0999H14.3984Z",fill:"#22262E"}),e.jsx("path",{d:"M13.4984 14.3999C13.4984 13.9028 13.9014 13.4999 14.3984 13.4999H14.4104C14.9075 13.4999 15.3104 13.9028 15.3104 14.3999V14.4119C15.3104 14.909 14.9075 15.3119 14.4104 15.3119H14.3984C13.9014 15.3119 13.4984 14.909 13.4984 14.4119V14.3999Z",fill:"#22262E"}),e.jsx("path",{d:"M14.3984 15.8999C13.9014 15.8999 13.4984 16.3028 13.4984 16.7999V16.8119C13.4984 17.309 13.9014 17.7119 14.3984 17.7119H14.4104C14.9075 17.7119 15.3104 17.309 15.3104 16.8119V16.7999C15.3104 16.3028 14.9075 15.8999 14.4104 15.8999H14.3984Z",fill:"#22262E"}),e.jsx("path",{d:"M15.8984 11.9999C15.8984 11.5028 16.3014 11.0999 16.7984 11.0999H16.8104C17.3075 11.0999 17.7104 11.5028 17.7104 11.9999V12.0119C17.7104 12.509 17.3075 12.9119 16.8104 12.9119H16.7984C16.3014 12.9119 15.8984 12.509 15.8984 12.0119V11.9999Z",fill:"#22262E"}),e.jsx("path",{d:"M16.7984 13.4999C16.3014 13.4999 15.8984 13.9028 15.8984 14.3999V14.4119C15.8984 14.909 16.3014 15.3119 16.7984 15.3119H16.8104C17.3075 15.3119 17.7104 14.909 17.7104 14.4119V14.3999C17.7104 13.9028 17.3075 13.4999 16.8104 13.4999H16.7984Z",fill:"#22262E"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.89844 2.3999C7.39549 2.3999 7.79844 2.80285 7.79844 3.2999V4.7999H16.1984V3.2999C16.1984 2.80285 16.6014 2.3999 17.0984 2.3999C17.5955 2.3999 17.9984 2.80285 17.9984 3.2999V4.7999H18.2984C20.121 4.7999 21.5984 6.27736 21.5984 8.0999V18.2999C21.5984 20.1224 20.121 21.5999 18.2984 21.5999H5.69844C3.8759 21.5999 2.39844 20.1224 2.39844 18.2999V8.0999C2.39844 6.27736 3.8759 4.7999 5.69844 4.7999H5.99844V3.2999C5.99844 2.80285 6.40138 2.3999 6.89844 2.3999ZM5.69844 8.9999C4.87001 8.9999 4.19844 9.67148 4.19844 10.4999V18.2999C4.19844 19.1283 4.87001 19.7999 5.69844 19.7999H18.2984C19.1269 19.7999 19.7984 19.1283 19.7984 18.2999V10.4999C19.7984 9.67148 19.1269 8.9999 18.2984 8.9999H5.69844Z",fill:"#22262E"})]}),js=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),vs=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24"}),e.jsx("path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"}),e.jsx("path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"}),e.jsx("line",{x1:"2",x2:"22",y1:"2",y2:"22"})]}),An=({size:t=13,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.4 12.8C9.93462 12.8 12.8 9.93462 12.8 6.4C12.8 2.86538 9.93462 0 6.4 0C2.86538 0 0 2.86538 0 6.4C0 9.93462 2.86538 12.8 6.4 12.8ZM7 3.8C7 3.46863 6.73137 3.2 6.4 3.2C6.06863 3.2 5.8 3.46863 5.8 3.8V5.8H3.8C3.46863 5.8 3.2 6.06863 3.2 6.4C3.2 6.73137 3.46863 7 3.8 7H5.8V9C5.8 9.33137 6.06863 9.6 6.4 9.6C6.73137 9.6 7 9.33137 7 9V7H9C9.33137 7 9.6 6.73137 9.6 6.4C9.6 6.06863 9.33137 5.8 9 5.8H7V3.8Z",fill:"currentColor"})}),En=j.forwardRef(An),Vn=({size:t=20,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{d:"M16.6004 7.4585L11.1671 12.8918C10.5254 13.5335 9.47539 13.5335 8.83372 12.8918L3.40039 7.4585",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),xt=j.forwardRef(Vn),Wn=({size:t=20,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",ref:r,fill:"none",...s,children:e.jsx("path",{d:"M19.9201 15.0496L13.4001 8.52965C12.6301 7.75965 11.3701 7.75965 10.6001 8.52965L4.08008 15.0496",stroke:"currentColor","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),ut=j.forwardRef(Wn),ws=({size:t=20,className:s,...r})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 11",fill:"currentColor",width:t,height:t,className:s,...r,children:e.jsx("path",{d:"M7.39952 1.875L0 9.27452L1.32583 10.6003L8.72543 3.20073V9.1875H10.6004V0H1.41293V1.875H7.39952Z",fill:"currentColor"})}),Cs=({size:t=16,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",width:t,height:t,className:s,...r,children:[e.jsx("path",{d:"M3.33333 6.6665C2.6 6.6665 2 7.2665 2 7.99984C2 8.73317 2.6 9.33317 3.33333 9.33317C4.06667 9.33317 4.66667 8.73317 4.66667 7.99984C4.66667 7.2665 4.06667 6.6665 3.33333 6.6665Z",stroke:"currentColor",strokeWidth:"1.2"}),e.jsx("path",{d:"M12.6668 6.6665C11.9335 6.6665 11.3335 7.2665 11.3335 7.99984C11.3335 8.73317 11.9335 9.33317 12.6668 9.33317C13.4002 9.33317 14.0002 8.73317 14.0002 7.99984C14.0002 7.2665 13.4002 6.6665 12.6668 6.6665Z",stroke:"currentColor",strokeWidth:"1.2"}),e.jsx("path",{d:"M7.99984 6.6665C7.2665 6.6665 6.6665 7.2665 6.6665 7.99984C6.6665 8.73317 7.2665 9.33317 7.99984 9.33317C8.73317 9.33317 9.33317 8.73317 9.33317 7.99984C9.33317 7.2665 8.73317 6.6665 7.99984 6.6665Z",stroke:"currentColor",strokeWidth:"1.2"})]}),ys=({size:t=16,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",width:t,height:t,className:s,...r,children:[e.jsx("path",{d:"M8.67318 1.94687L12.6065 3.69354C13.7399 4.19354 13.7399 5.02021 12.6065 5.52021L8.67318 7.26687C8.22652 7.46687 7.49318 7.46687 7.04652 7.26687L3.11318 5.52021C1.97985 5.02021 1.97985 4.19354 3.11318 3.69354L7.04652 1.94687C7.49318 1.74688 8.22652 1.74688 8.67318 1.94687Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2 7.3335C2 7.8935 2.42 8.54016 2.93333 8.76683L7.46 10.7802C7.80667 10.9335 8.2 10.9335 8.54 10.7802L13.0667 8.76683C13.58 8.54016 14 7.8935 14 7.3335",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2 10.6665C2 11.2865 2.36667 11.8465 2.93333 12.0998L7.46 14.1132C7.80667 14.2665 8.2 14.2665 8.54 14.1132L13.0667 12.0998C13.6333 11.8465 14 11.2865 14 10.6665",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ns=({size:t=16,className:s,...r})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",width:t,height:t,className:s,...r,children:e.jsx("path",{d:"M8.66667 1.3335L3.33333 9.3335H8L7.33333 14.6668L12.6667 6.66683H8L8.66667 1.3335Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),ks=({size:t=16,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",width:t,height:t,className:s,...r,children:[e.jsx("path",{d:"M5.3335 1.3335V3.3335",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10.6665 1.3335V3.3335",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.3335 6.06006H13.6668",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M14 5.66683V11.3335C14 13.3335 13 14.6668 10.6667 14.6668H5.33333C3 14.6668 2 13.3335 2 11.3335V5.66683C2 3.66683 3 2.3335 5.33333 2.3335H10.6667C13 2.3335 14 3.66683 14 5.66683Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7.99715 9.13314H8.00314",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.52938 9.13314H5.53537",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.52938 11.1331H5.53537",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ht=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M1 4.5V3.25C1 2.005 2.005 1 3.25 1H4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7.5 1H8.75C9.995 1 11 2.005 11 3.25V4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11 8V8.75C11 9.995 9.995 11 8.75 11H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.5 11H3.25C2.005 11 1 9.995 1 8.75V7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M9 6V5M3 6H6H9H3ZM3 6V5V6ZM3 6V7V6ZM9 6V7V6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6 3H7M6 9V3V9ZM6 9H7H6ZM6 9H5H6ZM6 3H5H6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ss=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M6.62968 1.80011L2.52468 6.14511C2.36968 6.31011 2.21968 6.63511 2.18968 6.86011L2.00468 8.48011C1.93968 9.06511 2.35968 9.46511 2.93968 9.36511L4.54968 9.09011C4.77468 9.05011 5.08968 8.88511 5.24468 8.71511L9.34968 4.37011C10.0597 3.62011 10.3797 2.76511 9.27468 1.72011C8.17468 0.685108 7.33968 1.05011 6.62968 1.80011Z",stroke:"currentColor",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.94531 2.5249C6.16031 3.9049 7.28031 4.9599 8.67031 5.0999",stroke:"currentColor",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M1.5 11H10.5",stroke:"currentColor",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),$e=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M8 6.45V8.55C8 10.3 7.3 11 5.55 11H3.45C1.7 11 1 10.3 1 8.55V6.45C1 4.7 1.7 4 3.45 4H5.55C7.3 4 8 4.7 8 6.45Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11 3.45V5.55C11 7.3 10.3 8 8.55 8H8V6.45C8 4.7 7.3 4 5.55 4H4V3.45C4 1.7 4.7 1 6.45 1H8.55C10.3 1 11 1.7 11 3.45Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),Fe=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M10.5 2.99023C8.835 2.82523 7.16 2.74023 5.49 2.74023C4.5 2.74023 3.51 2.79023 2.52 2.89023L1.5 2.99023",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.25 2.485L4.36 1.83C4.44 1.355 4.5 1 5.345 1H6.655C7.5 1 7.565 1.375 7.64 1.835L7.75 2.485",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M9.42422 4.56982L9.09922 9.60482C9.04422 10.3898 8.99922 10.9998 7.60422 10.9998H4.39422C2.99922 10.9998 2.95422 10.3898 2.89922 9.60482L2.57422 4.56982",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.16406 8.25H6.82906",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.75 6.25H7.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),$n=({size:t=19,...s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 10 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.53953 0.0881595C9.95118 0.293984 10.118 0.794545 9.91221 1.20619L1.57887 17.8729C1.37305 18.2845 0.872487 18.4514 0.460839 18.2455C0.0491898 18.0397 -0.117664 17.5392 0.0881606 17.1275L8.42149 0.460838C8.62732 0.0491888 9.12788 -0.117665 9.53953 0.0881595Z",fill:"currentColor"})}),R=k.default.forwardRef(({variant:t="brand",hierarchy:s="primary",size:r="xs",icons:a="none",leadingIcon:n,trailingIcon:l,children:i,disabled:x=!1,className:o,isToggled:c=!1,toggledLeadingIcon:u,toggledTrailingIcon:d,borderRadius:m,color:p,loading:b=!1,...w},g)=>{const f="group inline-flex items-center justify-center font-semibold rounded-6 transition-all duration-200 focus:outline-none disabled:cursor-not-allowed",C="disabled:bg-surface-3 disabled:!text-disabled",N={brand:{primary:"bg-brand-primary-main text-white-uniform hover:bg-brand-primary-accent-3 active:bg-brand-primary-accent-3 focus:ring focus:ring-low-em",secondary:"bg-brand-primary-main-special text-white-uniform hover:bg-brand-primary-accent-special active:bg-brand-primary-accent-special focus:ring focus:ring-low-em"},neutral:{primary:"bg-surface-2 text-high-em hover:bg-surface-3 active:bg-surface-3 focus:ring focus:ring-surface-4",secondary:"text-high-em bg-transparent hover:bg-surface-2 active:bg-surface-2 focus:ring focus:ring-surface-4",tertiary:"text-high-em bg-white border border-surface-3 hover:bg-surface-2 hover:border-surface-4 active:bg-surface-2 active:border-low-em ",quaternary:"text-high-em bg-transparent border border-disabled hover:border-low-em"},danger:{primary:"bg-danger-main text-white-uniform hover:bg-danger-accent-3 active:bg-danger-accent-3 focus:ring-2 focus:ring-danger-accent-2",secondary:"text-danger-main bg-danger-accent-1 hover:bg-danger-accent-2 active:bg-danger-accent-2 focus:ring focus:ring-danger-accent-3",tertiary:"bg-transparent text-danger-main border-1 border-danger-accent-2 hover:bg-danger-accent-1 active:bg-danger-accent-1 focus:border-danger-accent-3 disabled:border-none",quaternary:"text-danger-main hover:bg-danger-accent-1 active:bg-danger-accent-2 focus:ring focus:ring-danger-accent-2 disabled:bg-surface-bg"},success:{primary:"bg-success-main text-white-uniform hover:bg-success-accent-3 focus:ring focus:ring-success-accent-2",secondary:"text-success-em bg-success-accent-1 hover:bg-success-accent-2 focus:ring focus:ring-success-accent-3",tertiary:"bg-transparent text-success-em border-1 border-success-accent-2 hover:bg-success-accent-1 focus:border-success-accent-3",quaternary:"text-success-em hover:bg-success-accent-1 focus:ring focus:ring-success-accent-2"},secondary:{primary:"bg-brand-secondary-main text-white-uniform hover:bg-brand-secondary-accent-3 active:bg-brand-secondary-accent-3 focus:ring focus:ring-surface-4"}},v=i!=null,y={xs:`text-[10px] h-11 ${v&&a!=="only"?"px-6 py-3":"aspect-square"}`,sm:`text-xs h-[34px] ${v&&a!=="only"?"px-6 py-4":"aspect-square"}`,md:`text-sm h-[42px] ${v&&a!=="only"?"px-8 py-5":"aspect-square"}`,lg:`text-base h-14 ${v&&a!=="only"?"px-9 py-6":"aspect-square"}`},M={xs:12,sm:16,md:20,lg:24},I=M[r],T={xs:{leading:"mr-2",trailing:"ml-2"},sm:{leading:"mr-3",trailing:"ml-3"},md:{leading:"mr-4",trailing:"ml-4"},lg:{leading:"mr-5",trailing:"ml-5"}},D=c&&u?u:n,H=c&&d?d:l,P=D&&k.default.isValidElement(D)?k.default.cloneElement(D,{size:I,color:"currentColor"}):null,F=H&&k.default.isValidElement(H)?k.default.cloneElement(H,{size:I,color:"currentColor"}):null,L=N[t]?.[s]??N[t]?.primary??"",O=V.twMerge(h.clsx(f,b&&"relative",L,y[r],m&&`rounded-[${m}]`,p,C,o)),W=e.jsxs(e.Fragment,{children:[(a==="leading"||a==="both")&&P&&e.jsx("span",{className:`group-disabled:!text-disabled ${T[r].leading}`,children:P}),a!=="only"&&i,a==="only"&&P&&e.jsx("span",{className:"group-disabled:!text-disabled",children:P}),(a==="trailing"||a==="both")&&F&&e.jsx("span",{className:`group-disabled:!text-disabled ${T[r].trailing}`,children:F})]});return e.jsx("button",{ref:g,className:O,disabled:x||b,...w,children:b?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("span",{className:"animate-spin rounded-full border-2 border-current border-t-transparent",style:{width:M[r],height:M[r]}})}),e.jsx("span",{className:"invisible inline-flex items-center",children:W})]}):W})});R.displayName="Button";const Ls=j.createContext(void 0),Oe=()=>{const t=j.useContext(Ls);if(!t)throw new Error("useAlertContext must be used within an Alert provider");return t},Fn={success:{icon:ge,iconColor:"text-success-main",borderClass:"border border-success-accent-3"},warning:{icon:ge,iconColor:"text-warning-main",borderClass:"border border-warning-accent-3"},error:{icon:ge,iconColor:"text-danger-main",borderClass:"border border-danger-accent-3"},info:{icon:ge,iconColor:"text-info-main",borderClass:"border border-info-accent-3"},default:{icon:ge,iconColor:"text-high-em",borderClass:"border border-surface-3"}},Ht={success:"neutral",warning:"neutral",error:"danger",info:"neutral",default:"neutral"},zs=({children:t,type:s="default"})=>{const[r,a]=j.useState(!1);return e.jsx(Ls.Provider,{value:{open:r,setOpen:a,type:s},children:t})};zs.displayName="AlertDialog";const Ms=({children:t})=>{const{setOpen:s}=Oe();return k.default.cloneElement(t,{onClick:r=>{t.props.onClick?.(r),s(!0)}})};Ms.displayName="AlertDialogTrigger";const Is=j.forwardRef(({className:t,children:s,...r},a)=>{const{open:n,setOpen:l,type:i}=Oe(),x=Fn[i];return e.jsx(Z.Transition,{appear:!0,show:n,as:j.Fragment,children:e.jsxs(Z.Dialog,{as:"div",className:"relative z-50",onClose:()=>l(!1),children:[e.jsx(Z.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:e.jsx("div",{className:"fixed inset-0 bg-black-uniform/20","aria-hidden":"true"})}),e.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:e.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:e.jsx(Z.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95 translate-y-4",enterTo:"opacity-100 scale-100 translate-y-0",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100 translate-y-0",leaveTo:"opacity-0 scale-95 translate-y-4",children:e.jsx(Z.Dialog.Panel,{ref:a,className:h.clsx("relative bg-surface-bg rounded-[20px] max-w-[460px] w-full",x.borderClass,"shadow-xl",t),...r,children:e.jsx(J.motion.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10,transition:{duration:.2,ease:"easeIn"}},transition:{duration:.3,ease:"easeOut"},className:"w-full px-10 pt-10 pb-11 gap-8",children:e.jsxs("div",{className:"flex items-start gap-6",children:[e.jsx("div",{className:"p-2",children:e.jsx(ge,{size:24,className:h.clsx(x.iconColor),"aria-hidden":"true"})}),e.jsx("div",{className:"flex-1 min-w-0",children:s}),e.jsx("div",{className:"shrink-0",children:e.jsx(J.motion.button,{type:"button","aria-label":"Close",onClick:()=>l(!1),className:"p-1 rounded hover:bg-surface-1 transition",whileHover:{scale:1.1},whileTap:{scale:.9},children:e.jsx(gs,{size:20})})})]})})})})})})]})})});Is.displayName="AlertDialogContent";const Ps=({children:t,className:s})=>e.jsx("div",{className:h.clsx("flex items-start",s),children:t});Ps.displayName="AlertDialogHeader";const Ts=j.forwardRef(({className:t,...s},r)=>e.jsx(Z.Dialog.Title,{ref:r,as:"h3",className:h.clsx("font-bold text-base text-high-em",t),...s}));Ts.displayName="AlertDialogTitle";const Rs=j.forwardRef(({className:t,...s},r)=>e.jsx(Z.Dialog.Description,{ref:r,className:h.clsx("text-sm font-semibold leading-[22px] tracking-normal whitespace-pre-line text-med-em mt-2 mb-8",t),...s}));Rs.displayName="AlertDialogDescription";const Ds=({children:t,className:s})=>e.jsx("div",{className:h.clsx("mt-4 flex gap-4 mb-4",s),children:t});Ds.displayName="AlertDialogFooter";const Hs=({className:t,actionVariant:s,onClick:r,...a})=>{const{type:n,setOpen:l}=Oe(),i=s==="secondary",x=i?"neutral":Ht[n],o=Ht[n]==="danger"?"secondary":"tertiary";return e.jsx(R,{variant:x,hierarchy:o,size:"md",icons:i?void 0:"trailing",trailingIcon:e.jsx(z.ArrowRight,{}),onClick:c=>{r?.(c),l(!1)},className:h.clsx(t),...a})};Hs.displayName="AlertDialogAction";const As=j.forwardRef(({className:t,onClick:s,...r},a)=>{const{setOpen:n}=Oe();return e.jsx(R,{ref:a,variant:"neutral",hierarchy:"secondary",size:"md",className:h.clsx(t),onClick:l=>{s?.(l),n(!1)},...r})});As.displayName="AlertDialogCancel";const ue=({theme:t="surface",size:s="sm",variant:r="simple",children:a,className:n,statusState:l="success",statusSize:i="md"})=>{const x="inline-flex items-center justify-center font-medium rounded-full font-medium font-family-inter",o={surface:{simple:"bg-surface-2 text-med-em",outlined:"bg-surface-2 text-med-em border border-surface-4",status:""},warning:{simple:"bg-warning-accent-0 text-warning-em",outlined:"bg-warning-accent-0 text-warning-em border border-warning-accent-1",status:""},info:{simple:"bg-info-accent-1 text-info-em",outlined:"bg-info-accent-1 text-info-em border border-info-accent-2",status:""},success:{simple:"bg-success-accent-1 text-success-em",outlined:"bg-success-accent-1 text-success-em border border-success-accent-2",status:""},danger:{simple:"bg-danger-accent-1 text-danger-em",outlined:"bg-danger-accent-1 text-danger-em border border-danger-accent-2",status:""},disabled:{simple:"bg-surface-3 text-disabled",outlined:"bg-surface-3 text-disabled border border-text-disabled",status:""}},c={xs:"px-2 py-1 text-[10px] leading-[14px] gap-1.5 h-[22px]",sm:"px-4 py-2 text-[10px] leading-[16px] gap-1.5 h-[24px]",md:"px-5 py-2.5 text-[12px] leading-[18px] gap-2 h-[28px]",lg:"px-6 py-3 text-[12px] leading-[18px] gap-2 h-[30px]"},u={success:{bg:"bg-success-main",text:"text-white",border:"border-success-main"},disabled:{bg:"bg-surface-3",text:"text-disabled",border:"border-surface-3"},danger:{bg:"bg-danger-main",text:"text-white",border:"border-danger-main"},warning:{bg:"bg-warning-main",text:"text-white",border:"border-warning-main"}},d={xs:"size-3",sm:"size-4",md:"size-5",lg:"size-6",xl:"size-7"};if(r==="status"){const p=V.twMerge(h.clsx("rounded-full flex-shrink-0",d[i],u[l].bg,u[l].border&&`border ${u[l].border}`,n));return e.jsx("div",{className:p})}const m=V.twMerge(h.clsx(x,o[t][r],c[s],n));return e.jsx("div",{className:m,children:a&&e.jsx("span",{children:a})})},Ze=({size:t="md",imageUrl:s,initials:r,className:a,statusBadge:n,onClick:l})=>{const i={xs:"xs",sm:"xs",md:"sm",lg:"sm",xl:"md"},x={xs:"size-10 text-[10px]",sm:"size-12 text-xs",md:"size-13 text-sm",lg:"size-14 text-base",xl:"size-15 text-lg"},o=h.clsx("relative",a),c=h.clsx("rounded-full flex items-center justify-center font-bold overflow-hidden",x[t],!s&&"bg-brand-primary-main text-white-uniform",l&&"border-0 p-0 m-0 appearance-none cursor-pointer"),u={xs:"bottom-0.5 right-0.5",sm:"bottom-0.5 right-0.5",md:"bottom-1 right-1",lg:"bottom-1 right-1",xl:"bottom-2 right-2"},d=e.jsx(e.Fragment,{children:s?e.jsx("img",{src:s,alt:r||"Avatar",className:"w-full h-full object-cover"}):e.jsx("span",{children:r})});return e.jsxs("div",{className:o,children:[l?e.jsx("button",{onClick:l,type:"button",className:c,children:d}):e.jsx("div",{className:c,children:d}),n&&e.jsx("div",{className:h.clsx("absolute",u[t]),children:e.jsx(ue,{variant:"status",statusState:n.state||"success",statusSize:n.size||i[t]})})]})},Es=({avatars:t,size:s="md",max:r=4,className:a,counterClassName:n,...l})=>{const i=t.slice(0,r),x=t.length-r,o=x>0,c={xs:"-space-x-2",sm:"-space-x-3",md:"-space-x-4",lg:"-space-x-5",xl:"-space-x-6"},u={xs:"size-10 text-[10px] p-6",sm:"size-12 text-xs p-8",md:"size-13 text-sm p-9",lg:"size-14 text-base p-10",xl:"size-15 text-lg p-12"},d=h.clsx("flex items-center",c[s],a),m=h.clsx("relative rounded-full flex items-center justify-center font-bold border-2 border-white bg-brand-primary-main text-white-uniform hover:z-10 transition-colors",u[s],n);return e.jsxs("div",{className:d,...l,children:[i.map((p,b)=>e.jsx("div",{className:"relative rounded-full border-2 border-white",children:e.jsx(Ze,{...p,size:s,className:"border-0"})},b)),o&&e.jsxs("div",{className:m,children:["+",x]})]})};Es.displayName="AvatarGroup";function On({...t}){return e.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t})}function Zn({className:t,...s}){return e.jsx("ol",{"data-slot":"breadcrumb-list",className:Q.default(" flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",t),...s})}function Bn({className:t,...s}){return e.jsx("li",{"data-slot":"breadcrumb-item",className:Q.default("inline-flex items-center gap-1.5",t),...s})}function _n({asChild:t,className:s,...r}){if(t){const{children:a,...n}=r;if(!k.isValidElement(a))return null;const l=a,i={className:Q.default("transition-colors text-low-em font-semibold",s,l.props.className),...n};return k.cloneElement(l,i)}return e.jsx("a",{"data-slot":"breadcrumb-link",className:Q.default("transition-colors text-low-em font-semibold",s),...r})}function Gn({className:t,...s}){return e.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:Q.default("text-med-em font-semibold",t),...s})}function Un({children:t,className:s,...r}){return e.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:Q.default("[&>svg]:size-2.5 text-low-em",s),...r,children:t??e.jsx(dt,{color:"currentColor",size:12})})}function qn({className:t,...s}){return e.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:Q.default("flex size-9 items-center justify-center text-low-em",t),...s,children:["...",e.jsx("span",{className:"sr-only",children:"More"})]})}const Qn=({label:t,leadingIcon:s,trailingIcon:r,items:a,isActive:n=!1,className:l,dropdownClassName:i,placement:x="bottom-left",showBackdrop:o=!0})=>{const[c,u]=j.useState(!1),d=j.useRef(null),m=e.jsx("svg",{className:h.clsx("w-4 h-4 transition-transform duration-200",c&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),p=()=>{u(f=>!f)},b=f=>{f.disabled||(f.onClick(),u(!1))},w=()=>{u(!1)};j.useEffect(()=>{const f=C=>{d.current&&!d.current.contains(C.target)&&u(!1)};if(c)return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[c]);const g=()=>{switch(x){case"bottom-right":return"top-full right-0 mt-[6px]";case"top-left":return"bottom-full left-0 mb-[6px]";case"top-right":return"bottom-full right-0 mb-[6px]";case"bottom-left":default:return"top-full left-0 mt-[6px]"}};return e.jsxs("div",{ref:d,className:"relative",children:[e.jsx(R,{variant:"brand",hierarchy:"primary",size:"sm",icons:r||s?"both":"trailing",leadingIcon:s,trailingIcon:r||m,onClick:p,style:{outline:"none",boxShadow:"none"},className:h.clsx("transition-all duration-200","[&:focus]:outline-none [&:focus]:ring-0 [&:focus]:shadow-none","hover:text-gray-200",(n||c)&&["!bg-secondary-600","!text-white","hover:!bg-secondary-700","hover:!text-gray-100","active:!bg-secondary-600"],l),children:t}),c&&o&&e.jsx("div",{className:"fixed inset-0 z-10",onClick:w}),c&&e.jsx("div",{className:h.clsx("absolute z-20 w-[150px] bg-white border border-gray-100 rounded-[16px] shadow-lg overflow-hidden",g(),i),children:e.jsx("div",{children:a.map((f,C)=>e.jsxs(k.default.Fragment,{children:[C>0&&e.jsx("div",{className:"border-t border-gray-100"}),e.jsx("button",{onClick:()=>b(f),disabled:f.disabled,className:h.clsx("w-full text-left pl-5 py-3 transition-colors duration-150 group",f.disabled?"opacity-50 cursor-not-allowed":"hover:bg-gray-50 cursor-pointer"),children:e.jsxs("div",{className:"flex items-center gap-3",children:[f.icon&&e.jsx("div",{className:"flex-shrink-0 text-primary-900",children:f.icon}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("div",{className:"font-medium text-primary-900",style:{fontSize:"14px"},children:f.label})})]})})]},f.id))})})]})},he=({options:t,value:s,onChange:r,size:a="md",variant:n="neutral",className:l})=>{const i={xs:"h-[28px] px-[9.2px] text-[10px]",sm:"h-[34px] px-[10.6px] text-[12px]",md:"h-[42px] px-[13px] text-[14px]",lg:"h-[48px] px-[14.4px] text-[16px]"},x={xs:12,sm:16,md:20,lg:24},o={xs:{left:"rounded-l-[6px]",right:"rounded-r-[6px]"},sm:{left:"rounded-l-[8px]",right:"rounded-r-[8px]"},md:{left:"rounded-l-[10px]",right:"rounded-r-[10px]"},lg:{left:"rounded-l-[12px]",right:"rounded-r-[12px]"}},c={neutral:{base:"border border-surface-3 text-high-em bg-transparent",hover:"hover:bg-surface-2",active:"bg-surface-2 border-surface-4 z-10",disabled:"opacity-50 cursor-not-allowed"},brand:{base:"bg-brand-primary-main-special border-0 text-white-uniform",hover:"hover:bg-brand-primary-accent-special",active:"bg-brand-primary-accent-special",disabled:"bg-surface-3 text-disabled"},secondary:{base:"border border-surface-3 border-none rounded-none text-high-em bg-transparent",hover:"hover:bg-surface-2",active:"bg-surface-2 border-surface-4 z-10",disabled:"opacity-50 cursor-not-allowed"}};return e.jsx("div",{className:h.clsx("inline-flex items-center",l),children:t.map((u,d)=>{const m=u.value===s,p=u.icon&&k.default.isValidElement(u.icon)?k.default.cloneElement(u.icon,{size:x[a],color:"currentColor"}):null;return e.jsxs("button",{type:"button",onClick:()=>r(u.value),className:h.clsx("inline-flex items-center justify-center font-semibold whitespace-nowrap transition-colors duration-200",n==="neutral"&&d>0&&"-ml-px",i[a],d===0&&o[a].left,d===t.length-1&&o[a].right,c[n].base,!m&&c[n].hover,m&&c[n].active),children:[p&&e.jsx("span",{className:u.label?"mr-2":"",children:p}),u.label]},u.value)})})},Kn={small:{wrapper:"w-[16px] h-[16px] rounded-[4px]",icon:"w-[16px] h-[16px]"},medium:{wrapper:"w-[20px] h-[20px] rounded-[6px]",icon:"w-[20px] h-[20px]"},large:{wrapper:"w-[24px] h-[24px] rounded-[8px]",icon:"w-[24px] h-[24px]"}},Ne={unchecked:"bg-transparent border-low-em hover:bg-surface-1",checked:"bg-black border-low-em text-white",indeterminate:"bg-transparent border-low-em text-low-em",disabled:{unchecked:"bg-surface-3 border-surface-4",checked:"bg-surface-3 border-surface-4 text-surface-4"}},Yn=t=>e.jsx("svg",{fill:"none",viewBox:"0 0 24 24",strokeWidth:3,stroke:"currentColor",...t,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),Jn=t=>e.jsx("svg",{fill:"none",viewBox:"0 0 24 24",strokeWidth:3,stroke:"currentColor",...t,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"})}),fe=({size:t="medium",checked:s=!1,indeterminate:r=!1,disabled:a=!1,className:n,...l})=>{const i=Kn[t],x=j.useRef(null);return j.useEffect(()=>{x.current&&(x.current.indeterminate=r)},[r]),e.jsxs("label",{className:h.clsx("inline-flex items-center",a?"cursor-not-allowed":"cursor-pointer",n),children:[e.jsx("input",{ref:x,type:"checkbox",checked:s,disabled:a,className:"sr-only peer",...l}),e.jsxs("div",{className:h.clsx(i.wrapper,"inline-flex shrink-0 items-center justify-center border transition-colors duration-200",a?s||r?Ne.disabled.checked:Ne.disabled.unchecked:r?Ne.indeterminate:s?Ne.checked:Ne.unchecked,!a&&"peer-hover:border-low-em",!a&&"peer-focus-visible:ring-1 peer-focus-visible:ring-low-em peer-focus-visible:ring-offset-0"),children:[s&&!r&&e.jsx(Yn,{className:i.icon}),r&&e.jsx(Jn,{className:i.icon})]})]})},me=({variant:t="neutral",size:s="md",disabled:r=!1,leadingIcon:a,trailingIcon:n,showLeadingIcon:l=!0,showTrailingIcon:i=!0,trailingIconPosition:x="inline",disableUnderline:o=!1,children:c,className:u,...d})=>{const m={neutral:"text-med-wm hover:text-high-em hover:border-low-em",info:"text-info-main hover:text-info-wm hover:border-info-accent-3"},p="text-disabled pointer-events-none",b={xs:{text:"text-[10px]",leadingGap:"mr-[2px]",trailingGap:"ml-[2px]"},sm:{text:"text-[12px]",leadingGap:"mr-[2px]",trailingGap:"ml-[2px]"},md:{text:"text-[14px]",leadingGap:"mr-[4px]",trailingGap:"ml-[4px]"},lg:{text:"text-[16px]",leadingGap:"mr-[4px]",trailingGap:"ml-[4px]"}},w={xs:12,sm:12,md:16,lg:20},g=l&&a&&k.default.isValidElement(a)?k.default.cloneElement(a,{size:w[s],color:"currentColor"}):null,f=i&&n&&k.default.isValidElement(n)?k.default.cloneElement(n,{size:w[s],color:"currentColor"}):null;return e.jsxs("a",{className:h.clsx("inline-flex items-center font-semibold transition-colors duration-200",!o&&"border-b-2 border-transparent",!r&&!o&&m[t],!r&&o&&(t==="neutral"?"text-high-em":"text-info-accent-1"),b[s].text,{"w-full justify-between":x==="end"},r&&p,u),"aria-disabled":r,tabIndex:r?-1:void 0,...r&&{href:void 0},...d,children:[e.jsxs("span",{className:"inline-flex items-center",children:[g&&e.jsx("span",{className:b[s].leadingGap,children:g}),e.jsx("span",{children:c}),x==="inline"&&e.jsx("span",{className:b[s].trailingGap,children:f})]}),x==="end"&&e.jsx("span",{className:"shrink-0",children:f})]})},Xn=({icon:t,title:s,description:r,linkText:a="Link",linkHref:n="#",checked:l=!1,onCheckboxChange:i,onLinkClick:x,className:o,disabled:c=!1})=>{const u=m=>{i&&i(m.target.checked)},d=t?k.default.cloneElement(t,{size:32,color:"var(--dark-100)"}):null;return e.jsxs("div",{className:h.clsx("w-full min-h-40 bg-white border border-gray-400 rounded-xl py-8 flex flex-col",c&&"opacity-60 pointer-events-none",o),children:[e.jsxs("div",{className:"flex items-center justify-between mx-8 mb-3 shrink-0",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[d&&e.jsx("div",{className:"shrink-0",children:d}),e.jsx("h3",{className:"font-space-grotesk font-medium text-[20px] leading-tight text-[var(--dark-100)] truncate ml-2",style:{fontFamily:"var(--font-space-grotesk)"},children:s})]}),e.jsx("div",{className:"flex-shrink-0 mt-2",children:e.jsx(fe,{size:"large",checked:l,onChange:u,disabled:c})})]}),e.jsx("div",{className:"mx-8 mt-4 mb-3 flex-shrink-0",style:{minHeight:"50px"},children:e.jsx("p",{className:"font-inter text-[12px] leading-[1.4] text-[var(--dark-700)] line-clamp-3",style:{fontFamily:"var(--font-inter)"},children:r})}),e.jsx("div",{className:"flex-1"}),e.jsx("div",{className:"border-t border-gray-400 mb-3 flex-shrink-0"}),e.jsx("div",{className:"mx-8 mt-4 flex-shrink-0",children:e.jsx(me,{variant:"neutral",size:"md",href:n,onClick:x,disabled:c,trailingIconPosition:"end",disableUnderline:!0,children:a})})]})},Be=k.default.forwardRef(({title:t,children:s,isCollapsed:r,onToggle:a,onClose:n,defaultCollapsed:l=!1,className:i},x)=>{const[o,c]=j.useState(l),u=r??o,d=r!==void 0,m=()=>{const b=!u;d||c(b),a?.(b)},p=V.twMerge(h.clsx("bg-surface-2 rounded-t-3 overflow-hidden","w-[311px]",i));return e.jsxs("div",{ref:x,className:p,children:[e.jsxs("div",{className:"flex items-center justify-between px-5 h-[38px]",children:[e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:u?e.jsx(xt,{}):e.jsx(ut,{}),onClick:m,"aria-label":u?"Expand":"Collapse",className:"shrink-0"}),e.jsx("div",{className:"text-sm font-semibold text-med-em flex-1 text-center",children:t}),e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx(ce,{}),onClick:n,"aria-label":"Close",className:"shrink-0"})]}),e.jsx("div",{className:"h-px bg-surface-3"}),!u&&s]})});Be.displayName="ChatCollapsibleContainer";const mt=({progress:t,className:s,variant:r="none",...a})=>{const n=Math.min(100,Math.max(0,t)),i=h.clsx("w-full bg-surface-3 rounded-full relative overflow-visible flex-1 h-4",s),x="h-full rounded-full transition-all duration-300 ease-out bg-black",o=()=>{if(r==="none")return null;const c=`${n}%`;return r==="inline"?e.jsx("span",{className:"font-medium text-sm text-high-em shrink-0",children:c}):r==="below"?e.jsx("p",{className:"mt-2 font-medium text-sm text-high-em text-right",children:c}):null};return e.jsxs("div",{className:"flex flex-col gap-y-2 w-full",children:[e.jsxs("div",{className:"flex items-center w-full gap-x-5",children:[e.jsxs("div",{className:h.clsx(i,r==="tooltip"&&"group cursor-pointer"),role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":`Progress: ${n}%`,...a,children:[e.jsx("div",{className:x,style:{width:`${n}%`}}),r==="tooltip"&&e.jsxs("div",{className:"absolute bottom-full mb-4 opacity-100 visible transition-opacity duration-200 pointer-events-none",style:{left:`${n}%`,transform:"translateX(-50%)"},children:[e.jsxs("div",{className:"bg-surface-bg text-high-em p-6 border border-b-0 border-surface-3 text-xs font-medium rounded-xl shadow-lg whitespace-nowrap",children:[n,"%"]}),e.jsx("div",{className:"absolute left-1/2 top-full -translate-x-1/2 -mt-px",style:{width:22,height:0,borderLeft:"10px solid transparent",borderRight:"10px solid transparent",borderTop:"8px solid var(--surface-bg)"}})]})]}),r==="inline"&&o()]}),r==="below"&&o()]})},Vs=k.default.forwardRef(({title:t="Todo:",items:s,onItemChange:r,isCollapsed:a,onToggle:n,onClose:l,defaultCollapsed:i=!1,className:x},o)=>{const m=s.length>3?150:void 0,p=s.filter(C=>C.checked).length,b=s.length,w=b>0?Math.round(p/b*100):0,g=(C,N)=>{r?.(C,N)},f=e.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[e.jsxs("span",{className:"text-sm font-semibold text-med-em whitespace-nowrap",children:[typeof t=="string"?t:"Todo:"," ",p,"/",b]}),e.jsx(mt,{progress:w,variant:"none",className:"h-2"})]});return e.jsx(Be,{ref:o,title:f,isCollapsed:a,onToggle:n,onClose:l,defaultCollapsed:i,className:x,children:e.jsx("div",{className:"overflow-y-auto",style:m?{maxHeight:`${m}px`}:void 0,children:s.map((C,N)=>e.jsxs(k.default.Fragment,{children:[e.jsxs("label",{className:"flex items-center px-8 h-[50px] gap-6 cursor-pointer",children:[e.jsx(fe,{size:"medium",checked:C.checked,disabled:C.disabled,onChange:v=>g(C.id,v.target.checked)}),e.jsx("span",{className:h.clsx("text-xs font-semibold text-med-em flex-1",C.checked&&"line-through"),children:C.label})]}),N<s.length-1&&e.jsx("div",{className:"h-px bg-surface-3"})]},C.id))})})});Vs.displayName="ChatCollapsibleCheck";const Ws=k.default.forwardRef(({title:t,children:s,actions:r=[],isCollapsed:a,onToggle:n,onClose:l,defaultCollapsed:i=!1,className:x},o)=>e.jsxs(Be,{ref:o,title:t,isCollapsed:a,onToggle:n,onClose:l,defaultCollapsed:i,className:x,children:[e.jsx("div",{className:"p-8",children:e.jsx("div",{className:"text-xs font-semibold text-med-em",children:s})}),e.jsx("div",{className:"h-px bg-surface-3"}),r.length>0&&e.jsx("div",{className:"flex gap-2 p-5",children:r.map((c,u)=>e.jsx(R,{variant:c.variant||"neutral",hierarchy:c.hierarchy||"tertiary",size:"xs",onClick:c.onClick,className:"flex-1",children:c.label},u))})]}));Ws.displayName="ChatCollapsibleDialog";const ea={primary:"bg-brand-primary-main text-white-uniform hover:bg-primary-accent-3",secondary:"bg-surface-2 text-high-em hover:bg-surface-2",tertiary:"bg-transparent text-high-em border border-surface-3 hover:bg-surface-1 shadow-[0_1px_3px_-1px_rgba(0,0,0,0.16)]",quaternary:"bg-surface-2 text-med-em hover:bg-surface-3",success:"bg-success-accent-1 text-success-em hover:bg-success-accent-2",danger:"bg-danger-accent-1 text-danger-em hover:bg-danger-accent-2",warning:"bg-warning-accent-0 text-warning-em hover:bg-warning-accent-1",info:"bg-info-accent-1 text-info-em hover:bg-info-accent-2"},ta={xs:{container:"text-[10px] font-medium p-[4px] gap-[4px] h-[24px] rounded-[6px]",icon:12},sm:{container:"text-[12px] font-medium p-[8px] gap-[8px] h-[34px] rounded-[8px]",icon:16}},sa="bg-surface-3 text-disabled cursor-not-allowed",ye=({variant:t="primary",size:s="sm",leadingIcon:r=!0,trailingIcon:a=!0,onTrailingIconClick:n,children:l,className:i,disabled:x,...o})=>{const c=ta[s];let u=null;r===!0?u=e.jsx(z.Add,{}):k.default.isValidElement(r)&&(u=r);const d=u?k.default.cloneElement(u,{size:c.icon,color:"currentColor"}):null;let m=null;a===!0?m=e.jsx(z.ArrowDown2,{}):k.default.isValidElement(a)&&(m=a);const p=m?k.default.cloneElement(m,{size:c.icon,color:"currentColor"}):null,b=g=>{g.stopPropagation(),n&&n(g)},w=()=>{const g={xs:{left:"pl-4",right:"pr-4",both:"px-4"},sm:{left:"pl-6",right:"pr-6",both:"px-6"}},f=!!d,C=!!p;return!f&&!C?g[s].both:!f&&C?g[s].left:f&&!C?g[s].right:""};return e.jsxs("button",{disabled:x,className:h.clsx("inline-flex items-center justify-center shrink-0 font-medium transition-colors duration-200","focus:outline-none",x?sa:ea[t],c.container,w(),i),...o,children:[d&&e.jsx("span",{className:"mr-1",children:d}),e.jsx("span",{children:l}),p&&e.jsx("span",{className:"ml-1 p-0.5 rounded-full",role:"button",onClick:b,children:p})]})},ra={xs:{container:"h-13 min-w-21",sidePadding:"px-7",titleGap:"gap-2",title:"text-[11px] font-semibold",description:"text-[9px] font-medium",tagSize:"xs",buttonSize:"xs"},sm:{container:"h-[50px] min-w-22",sidePadding:"px-8",titleGap:"gap-2",title:"text-xs font-semibold",description:"text-[10px] font-medium",tagSize:"xs",buttonSize:"sm"},md:{container:"h-[56px] min-w-24",sidePadding:"px-9",titleGap:"gap-3",title:"text-sm font-semibold",description:"text-xs font-medium",tagSize:"sm",buttonSize:"sm"},lg:{container:"h-[70px] min-w-25",sidePadding:"px-9",titleGap:"gap-3",title:"text-base font-semibold",description:"text-sm font-medium",tagSize:"sm",buttonSize:"md"}},tt=t=>{const{variant:s,size:r="md",title:a,disabled:n=!1,className:l,onClick:i,...x}=t,o=ra[r],c=h.clsx("flex w-full transition-colors duration-200","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-secondary-main",o.container,o.sidePadding,n?"bg-surface-3 cursor-not-allowed":"bg-transparent hover:bg-surface-1 active:bg-surface-2 cursor-pointer",l);if(s==="type-1"){const{leadingTag:u,trailingButton:d}=t,m=p=>{p.stopPropagation(),d?.onClick?.(p)};return e.jsxs("button",{type:"button",disabled:n,onClick:i,className:h.clsx(c,"items-center"),...x,children:[u&&e.jsx(ye,{size:u.size||o.tagSize,variant:u.variant||"tertiary",disabled:n,leadingIcon:!1,trailingIcon:!1,children:u.content}),e.jsx("span",{className:h.clsx(o.title,n?"text-disabled":"text-med-em","truncate",u&&"ml-5"),children:a}),d&&e.jsx("div",{className:"ml-auto",children:e.jsx(R,{size:o.buttonSize,variant:d.variant||"neutral",hierarchy:d.hierarchy||"tertiary",icons:"only",leadingIcon:d.icon,onClick:m,disabled:n})})]})}if(s==="type-2"){const{tag:u,description:d}=t;return e.jsxs("button",{type:"button",disabled:n,onClick:i,className:h.clsx(c,"flex-col justify-center items-start"),...x,children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("span",{className:h.clsx(o.title,n?"text-disabled":"text-med-em","truncate"),children:a}),u&&e.jsx(ye,{size:u.size||o.tagSize,variant:u.variant||"tertiary",disabled:n,leadingIcon:!1,trailingIcon:!1,children:u.content})]}),d&&e.jsx("span",{className:h.clsx(o.description,n?"text-disabled":"text-low-em","truncate w-full text-left"),children:d})]})}return null},ke=({children:t,size:s="sm",className:r})=>{const a=s==="md"?"px-2 py-1 text-sm":"px-2 py-1 text-xs";return e.jsx("kbd",{className:h.clsx("bg-surface-1 rounded font-medium text-med-em",a,r),children:t})},na={xs:{borderRadius:"rounded-[8px]",headerHeight:"h-[38px]",headerPadding:"px-5",headerText:"text-[11px] font-semibold",footerHeight:"h-[32px]",footerText:"text-[9px] font-medium",iconSize:14,buttonSize:"xs",kbdSize:"sm"},sm:{borderRadius:"rounded-[12px]",headerHeight:"h-[38px]",headerPadding:"px-5",headerText:"text-[12px] font-semibold",footerHeight:"h-[40px]",footerText:"text-[10px] font-medium",iconSize:16,buttonSize:"sm",kbdSize:"sm"},md:{borderRadius:"rounded-[16px]",headerHeight:"h-[38px]",headerPadding:"px-5",headerText:"text-[14px] font-semibold",footerHeight:"h-[48px]",footerText:"text-[12px] font-medium",iconSize:18,buttonSize:"sm",kbdSize:"sm"},lg:{borderRadius:"rounded-[20px]",headerHeight:"h-[38px]",headerPadding:"px-5",headerText:"text-[16px] font-semibold",footerHeight:"h-[56px]",footerText:"text-[14px] font-medium",iconSize:20,buttonSize:"md",kbdSize:"sm"}},aa=({config:t})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:h.clsx("flex items-center",t.headerHeight,t.headerPadding,"bg-surface-bg"),children:e.jsx("span",{className:h.clsx(t.headerText,"text-med-em"),children:"Opciones"})}),e.jsx("div",{className:"border-t border-surface-3"})]}),la=({config:t,category:s,onBack:r})=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:h.clsx("flex items-center gap-3",t.headerHeight,t.headerPadding,"bg-surface-bg"),children:[e.jsx(R,{size:t.buttonSize,variant:"neutral",hierarchy:"secondary",icons:"only",leadingIcon:e.jsx(z.ArrowLeft2,{}),onClick:r}),e.jsx(ye,{size:"xs",variant:s.leadingTag.variant||"tertiary",leadingIcon:!1,trailingIcon:!1,children:s.leadingTag.content}),e.jsx("span",{className:h.clsx(t.headerText,"text-med-em"),children:s.title})]}),e.jsx("div",{className:"border-t border-surface-3"})]}),ia=({config:t})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"border-t border-surface-3"}),e.jsxs("div",{className:h.clsx("flex items-center justify-between",t.footerHeight,t.headerPadding,"bg-surface-bg"),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ke,{size:t.kbdSize,children:"↑"}),e.jsx(ke,{size:t.kbdSize,children:"↓"})]}),e.jsx("span",{className:h.clsx(t.footerText,"text-low-em"),children:"navegar"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ke,{size:t.kbdSize,children:"↩"}),e.jsx("span",{className:h.clsx(t.footerText,"text-low-em"),children:"seleccionar"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ke,{size:t.kbdSize,children:"esc"}),e.jsx("span",{className:h.clsx(t.footerText,"text-low-em"),children:"cerrar"})]})]})]}),oa=({categories:t=[],size:s="md",onCategorySelect:r,onItemSelect:a,onClose:n,floating:l=!1,className:i,...x})=>{const[o,c]=j.useState("categories"),[u,d]=j.useState(null),m=na[s],p=g=>{d(g),c("items"),r?.(g.id)},b=()=>{c("categories"),d(null)},w=g=>{u&&a?.(u.id,g.id)};return e.jsxs("div",{className:h.clsx("bg-surface-bg border border-surface-3 overflow-hidden","flex flex-col w-fit",m.borderRadius,l&&"absolute z-50",i),style:{boxShadow:"0px 8px 24px -4px rgba(0, 0, 0, 0.12)"},...x,children:[o==="categories"?e.jsx(aa,{config:m}):u?e.jsx(la,{config:m,category:u,onBack:b}):null,o==="categories"?t.map(g=>e.jsx(tt,{variant:"type-1",size:s,title:g.title,leadingTag:g.leadingTag,trailingButton:{icon:e.jsx(z.ArrowRight2,{}),onClick:()=>p(g),variant:"neutral",hierarchy:"secondary"},onClick:()=>p(g)},g.id)):u?u.items.map(g=>e.jsx(tt,{variant:"type-2",size:s,title:g.title,tag:g.tag,description:g.description,onClick:()=>w(g)},g.id)):null,e.jsx(ia,{config:m})]})},$s=({className:t,activeView:s="chat",onChatClick:r,onHistorialClick:a,onSettingsClick:n,onCloseClick:l,containerWidth:i=0})=>{const x=[{id:"chat",label:"Chat",icon:e.jsx(xs,{}),content:e.jsx("div",{})},{id:"historial",label:"Historial",icon:e.jsx(us,{}),content:e.jsx("div",{})}],o=x.findIndex(d=>d.id===s),c=d=>{const m=x[d];m.id==="chat"?r?.():m.id==="historial"&&a?.()},u=i<=350?"only-icon":"line-icons";return e.jsxs("div",{className:h.clsx("flex w-full items-baseline justify-between rounded-t-lg",t),children:[e.jsx("div",{className:"flex items-center",children:e.jsx(Mr,{variant:u,tabs:x,selectedIndex:o,onChange:c,contentSpacing:"none",showBorder:!1})}),e.jsxs("div",{className:"flex items-center gap-2 pr-8 self-center",children:[e.jsx(R,{variant:"neutral",hierarchy:"secondary",size:"sm",icons:"only",leadingIcon:e.jsx(z.Add,{}),onClick:n,"aria-label":"Add"}),e.jsx(R,{variant:"neutral",hierarchy:"secondary",size:"sm",icons:"only",leadingIcon:e.jsx(ce,{}),onClick:l,"aria-label":"Close"})]})]})},ca={xs:12,sm:16,"sm-md":20,md:24,"md-lg":28,lg:32,xl:36,"2xl":40},$=({size:t="md",children:s,color:r="currentColor",imageUrl:a,alt:n="Icon",className:l})=>{const[i,x]=j.useState(!1),o=typeof t=="number"?t:ca[t];if(a&&!i)return e.jsx("img",{src:a,alt:n,className:h.clsx("rounded-[12px]","object-cover",l),style:{width:o,height:o},onError:()=>x(!0)});if(k.default.isValidElement(s)){const c=s.props.className;return k.default.cloneElement(s,{size:o,color:r,className:h.clsx(l,typeof c=="string"?c:void 0)})}return e.jsx(z.InfoCircle,{size:o,color:r,className:l})},oe=({icon:t,label:s,gap:r=4,align:a="center",iconSize:n="md",labelSize:l,iconColorClass:i="text-low-em",labelColorClass:x="text-low-em",className:o,children:c,...u})=>{const d=`gap-${r}`,m={start:"items-start",center:"items-center",end:"items-end"}[a],p=l?`text-${l}`:"";return e.jsxs("div",{className:h.clsx("flex",m,d,o),...u,children:[t&&e.jsx("span",{className:i,children:e.jsx($,{size:n,children:t})}),s&&e.jsx("span",{className:h.clsx(p,x),children:s}),c]})},da={default:{wrapper:"bg-surface-2 border-transparent hover:bg-surface-3",hint:"text-med-em",placeholder:"placeholder-placeholder text-med-em",icon:"text-high-em"},outlined:{wrapper:"bg-white border-surface-4",hint:"text-med-em",placeholder:"placeholder-placeholder text-med-em",icon:"text-high-em"},danger:{wrapper:"bg-danger-accent-1 border-danger-accent-2 hover:border-accent-2 text-danger-em",hint:"text-danger-em",placeholder:"placeholder-danger-main text-danger-em",icon:"text-danger-em"},success:{wrapper:"bg-success-accent-1 border-success-accent-2 hover:border-success-accent-2",hint:"text-success-em",placeholder:"placeholder-success-main text-success-em",icon:"text-success-em"}},xa={sm:{inputPadding:"px-3",textareaPadding:"px-3 py-3",borderRadius:"rounded-[8px]",fontSize:"text-xs font-regular",iconSize:12,hintIconSize:12,height:"h-[32px]",leadingIconPosition:"left-4",trailingIconPosition:"right-4",inputPaddingLeftWithIcon:"pl-[32px]",inputPaddingRightWithIcon:"pr-10",labelFontSize:"text-[10px]",hintFontSize:"text-[10px]"},md:{inputPadding:"px-3.5",textareaPadding:"px-3.5 py-4",borderRadius:"rounded-[12px]",fontSize:"text-sm font-regular",iconSize:16,hintIconSize:12,height:"h-[38px]",leadingIconPosition:"left-6",trailingIconPosition:"right-6",inputPaddingLeftWithIcon:"pl-[36px]",inputPaddingRightWithIcon:"pr-12",labelFontSize:"text-xs",hintFontSize:"text-xs"},lg:{inputPadding:"px-4",textareaPadding:"px-4 py-5",borderRadius:"rounded-[12px]",fontSize:"text-base font-regular",iconSize:20,hintIconSize:14,height:"h-[48px]",leadingIconPosition:"left-8",trailingIconPosition:"right-8",inputPaddingLeftWithIcon:"pl-[44px]",inputPaddingRightWithIcon:"pr-14",labelFontSize:"text-sm",hintFontSize:"text-sm"}},Ie={wrapper:"bg-surface-3 pointer-events-none border-transparent",input:"disabled:text-disabled disabled:placeholder-disabled",hint:"text-disabled"},Y=j.forwardRef(({variant:t="default",size:s="md",label:r,hint:a,leadingIcon:n,trailingIcon:l,leadingIconColor:i,trailingIconColor:x,disabled:o,className:c,type:u,customBackground:d,placeholderColor:m,multiline:p,customFontWeight:b,fontSize:w,customFontSize:g,hintIconVariant:f,onInputClick:C,...N},v)=>{const y=da[t],M=xa[s],I=u==="password",[T,D]=j.useState(!1),H=I&&T?"text":u,P=g||w,F={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},L=P&&F[P]||void 0,O=P&&!F[P]?{fontSize:P}:void 0,W=te=>{const re=te.currentTarget;re.style.height="auto",re.style.height=`${re.scrollHeight}px`,N.onChange&&N.onChange(te)},A=d,S=A?/^[a-z]+-[a-z0-9-]+$/i.test(A)?`var(--${A})`:A:void 0,B=b||void 0,X=te=>{C&&(te.preventDefault(),C())},de=V.twMerge(h.clsx("w-full bg-transparent text-placeholder focus:outline-none",!p&&"h-full",p?M.textareaPadding:M.inputPadding,!b&&"font-medium",!P&&M.fontSize,y.placeholder,o&&Ie.input,m,L,n&&M.inputPaddingLeftWithIcon,(l||I&&!p)&&M.inputPaddingRightWithIcon,C&&"cursor-pointer pointer-events-none"));return e.jsxs("div",{className:V.twMerge(h.clsx("flex flex-col gap-1.5",C&&"cursor-pointer",c)),onClick:X,children:[r&&e.jsx("label",{htmlFor:N.id,className:V.twMerge(h.clsx("font-semibold text-med-em pl-[2px]",M.labelFontSize)),children:r}),e.jsxs("div",{className:V.twMerge(h.clsx("relative flex items-center border transition-colors duration-200",M.borderRadius,!p&&M.height,y.wrapper,o&&Ie.wrapper)),style:{backgroundColor:S},children:[n&&e.jsx($,{size:M.iconSize,className:V.twMerge(h.clsx("absolute top-1/2 -translate-y-1/2",M.leadingIconPosition,i||y.icon)),children:n}),p?e.jsx("textarea",{ref:v,disabled:o,className:V.twMerge(de,"resize-none overflow-hidden"),style:{fontWeight:B,...O},onInput:W,rows:1,...N}):e.jsx("input",{ref:v,disabled:o,type:H,className:de,style:{fontWeight:B,...O},...N}),!p&&I?e.jsx("button",{type:"button",onClick:()=>D(!T),className:V.twMerge(h.clsx("absolute top-1/2 -translate-y-1/2 text-placeholder hover:text-med focus:outline-none transition-colors",M.trailingIconPosition)),"aria-label":T?"Ocultar contraseña":"Mostrar contraseña",tabIndex:-1,children:T?e.jsx(vs,{size:M.iconSize}):e.jsx(js,{size:M.iconSize})}):l?e.jsx($,{size:M.iconSize,className:V.twMerge(h.clsx("absolute top-1/2 -translate-y-1/2",M.trailingIconPosition,x||y.icon)),children:l}):null]}),a&&e.jsx(oe,{icon:e.jsx(z.InfoCircle,{variant:f||"Bold"}),label:a,iconSize:M.hintIconSize,gap:1,iconColorClass:h.clsx(y.hint,o&&Ie.hint),labelColorClass:h.clsx(y.hint,o&&Ie.hint),className:V.twMerge(h.clsx(M.hintFontSize,"font-semibold"))})]})});Y.displayName="InputField";const ua={xs:{container:"h-[40px] min-w-[250px]",sidePadding:"pl-6 pr-7",checkboxMargin:"mr-5",middleGap:"gap-5",rightGap:"gap-5",checkbox:"small",leadingImage:"sm",leadingIcon:"xs",trailingIcon:"xs",title:"text-[11px] font-semibold",description:"text-[9px] font-medium",tag:"xs",trailingText:"text-[9px] font-medium"},sm:{container:"h-[50px] min-w-[290px]",sidePadding:"pl-7 pr-8",checkboxMargin:"mr-6",middleGap:"gap-6",rightGap:"gap-6",checkbox:"small",leadingImage:"md",leadingIcon:"sm",trailingIcon:"sm",title:"text-[12px] font-semibold",description:"text-[10px] font-medium",tag:"xs",trailingText:"text-[10px] font-medium"},md:{container:"h-[56px] min-w-[340px]",sidePadding:"pl-9 pr-9",checkboxMargin:"mr-6",middleGap:"gap-6",rightGap:"gap-6",checkbox:"medium",leadingImage:"lg",leadingIcon:"sm-md",trailingIcon:"sm-md",title:"text-[14px] font-semibold",description:"text-[12px] font-medium",tag:"xs",trailingText:"text-[12px] font-medium"},lg:{container:"h-[70px] min-w-[420px]",sidePadding:"pl-9 pr-9",checkboxMargin:"mr-6",middleGap:"gap-6",rightGap:"gap-6",checkbox:"large",leadingImage:"2xl",leadingIcon:"md",trailingIcon:"md",title:"text-[16px] font-semibold",description:"text-[14px] font-medium",tag:"sm",trailingText:"text-[14px] font-medium"}},He=({size:t="md",disabled:s=!1,showCheckbox:r=!0,showLeadingImage:a=!0,showLeadingIcon:n=!0,showDescription:l=!0,showTrailingIcon:i=!0,showTag:x=!0,showTrailingText:o=!0,title:c,description:u,customTitleColor:d,customBackgroundColor:m,customHoverColor:p,customLeadingIconColor:b,checked:w=!1,indeterminate:g=!1,onCheckboxChange:f,leadingImageUrl:C,leadingImageAlt:N="List item image",leadingIcon:v,trailingIcon:y,tagContent:M,tagVariant:I="tertiary",trailingText:T,className:D,middleContainerClassName:H,onClick:P,...F})=>{const L=ua[t],O=A=>{A.stopPropagation()},W=A=>{f?.(A.target.checked)};return e.jsxs("button",{type:"button",disabled:s,onClick:P,className:V.twMerge(h.clsx("flex items-center w-full transition-colors duration-200","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-secondary-main",L.container,L.sidePadding,m||(s?"bg-surface-3 cursor-not-allowed":"bg-transparent hover:bg-surface-1 active:bg-surface-2 cursor-pointer"),m&&(s?"cursor-not-allowed":"cursor-pointer"),p&&!s&&p),D),...F,children:[r&&e.jsx("div",{onClick:O,className:h.clsx("flex items-center",L.checkboxMargin),children:e.jsx(fe,{size:L.checkbox,checked:w,indeterminate:g,onChange:W,disabled:s})}),e.jsxs("div",{className:V.twMerge(h.clsx("flex items-center",L.middleGap),H),children:[a&&C&&e.jsx("div",{className:h.clsx("shrink-0",s&&"opacity-50"),children:e.jsx($,{size:L.leadingImage,imageUrl:C,alt:N})}),n&&e.jsx("div",{className:"shrink-0",children:e.jsx($,{size:L.leadingIcon,color:s?"var(--text-disabled)":b||"var(--med-em)",children:v||e.jsx(z.Element3,{})})}),e.jsxs("div",{className:"flex flex-col gap-0 justify-start items-start min-w-0 shrink mr-8",children:[e.jsx("span",{className:h.clsx(L.title,d||(s?"text-disabled":"text-med-em"),"truncate max-w-full"),children:c}),l&&u&&e.jsx("span",{className:h.clsx(L.description,s?"text-disabled":"text-low-em","truncate max-w-full"),children:u})]})]}),e.jsxs("div",{className:h.clsx("flex items-center ml-auto",L.rightGap),children:[i&&e.jsx($,{size:L.trailingIcon,color:s?"var(--text-disabled)":"var(--high-em)",children:y||e.jsx(z.ArrowRight2,{})}),x&&M&&e.jsx(ye,{size:L.tag,variant:I,disabled:s,leadingIcon:!1,trailingIcon:!1,children:M}),o&&T&&e.jsx("span",{className:h.clsx(L.trailingText,s?"text-disabled":"text-low-em"),children:T})]})]})},ha={xs:"rounded-[8px]",sm:"rounded-[12px]",md:"rounded-[16px]",lg:"rounded-[20px]"},Le=({items:t=[],header:s,headerSize:r="xs",size:a="md",selectedIds:n=[],onSelect:l,floating:i=!1,triggerRef:x,className:o,...c})=>{const u=ha[a],d=!!x,m=k.default.useRef(null),[p,b]=k.default.useState({position:"fixed",visibility:"hidden",top:0,left:0,zIndex:50});k.default.useLayoutEffect(()=>{if(!d)return;const g=()=>{if(!x?.current||!m.current)return;const f=x.current.getBoundingClientRect(),C=m.current.getBoundingClientRect(),N=f.bottom+C.height+8>window.innerHeight?f.top-C.height-8:f.bottom+8,v=f.left+C.width>window.innerWidth?f.right-C.width:f.left;b({position:"fixed",top:N,left:v,visibility:"visible",zIndex:50})};return g(),window.addEventListener("scroll",g,!0),window.addEventListener("resize",g),()=>{window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g)}},[x,d]);const w=e.jsxs("div",{ref:m,className:h.clsx("bg-surface-bg border border-surface-3 overflow-hidden","flex flex-col w-fit",u,!d&&i&&"absolute z-50",o),style:{boxShadow:"0px 8px 24px -4px rgba(0, 0, 0, 0.12)",...d?p:{}},...c,children:[s&&e.jsxs(e.Fragment,{children:[e.jsx(He,{size:r,title:s.title,showCheckbox:!1,showLeadingImage:!1,showLeadingIcon:!1,showDescription:!1,showTrailingIcon:!1,showTag:!1,showTrailingText:!1,className:"shrink-0 cursor-default hover:bg-transparent active:bg-transparent",customTitleColor:"text-low-em"}),e.jsx("div",{className:"border-t border-surface-3"})]}),t.map((g,f)=>{const{id:C,showDividerAfter:N,onClick:v,onSelect:y,customBackgroundColor:M,customHoverColor:I,...T}=g,D=C?n.includes(C):!1,H=f===t.length-1;return e.jsxs(k.default.Fragment,{children:[e.jsx(He,{size:a,onClick:P=>{y?.(),C&&l?.(C),v?.(P)},customBackgroundColor:M||"bg-surface-bg",customHoverColor:I||"hover:bg-surface-2",className:h.clsx("shrink-0",D&&"bg-surface-1",T.className),checked:D,...T}),N&&!H&&e.jsx("div",{className:"border-t border-surface-3"})]},C||f)})]});return d&&typeof document<"u"?_t.createPortal(w,document.body):w},Fs=({id:t,title:s,preview:r,onClick:a,menuItems:n,className:l})=>{const[i,x]=j.useState(!1),o=j.useRef(null),c=j.useRef(null);j.useEffect(()=>{const d=m=>{o.current&&!o.current.contains(m.target)&&c.current&&!c.current.contains(m.target)&&x(!1)};return i&&document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[i]);const u=n?.map((d,m)=>{const p=m===n.length-1;return{...d,showCheckbox:!1,showLeadingImage:!1,showLeadingIcon:!0,showDescription:!1,showTrailingIcon:!1,showTag:!1,showTrailingText:!1,showDividerAfter:m===n.length-2,className:h.clsx("!h-[34px]",d.className),...p&&{customTitleColor:"text-danger-em",customLeadingIconColor:"var(--danger-em)"}}})||[];return e.jsxs("div",{className:h.clsx("group flex items-start justify-between gap-3 px-8 py-4 hover:bg-surface-1 transition-colors cursor-pointer",l),onClick:a,children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-xs font-semibold text-med-em mb-1",children:s}),e.jsx("p",{className:"text-[10px] font-medium text-low-em",children:r})]}),n&&n.length>0&&e.jsxs("div",{className:"flex-shrink-0 relative",onClick:d=>d.stopPropagation(),children:[e.jsx(R,{ref:c,variant:"neutral",hierarchy:"secondary",size:"sm",icons:"only",leadingIcon:e.jsx(z.More,{variant:"Linear"}),"aria-label":"Más opciones",onClick:()=>x(!i)}),i&&e.jsx("div",{ref:o,className:"absolute right-0 top-full mt-1 z-50",children:e.jsx(Le,{items:u,size:"xs",className:"!w-[182px]",onSelect:d=>{const m=n.find(p=>p.id===d);m?.onClick&&m.onClick({}),x(!1)}})})]})]})},ma=t=>{const s=new Date,r=new Date(s.getFullYear(),s.getMonth(),s.getDate()),a=new Date(r.getTime()-10080*60*1e3),n=new Date(r.getTime()-720*60*60*1e3),l=new Date(r.getTime()-2160*60*60*1e3);return t.reduce((i,x)=>{const o=new Date(x.timestamp);return o>=r?i.today.push(x):o>=a?i.last7Days.push(x):o>=n?i.last30Days.push(x):o>=l&&i.last90Days.push(x),i},{today:[],last7Days:[],last30Days:[],last90Days:[]})},fa=(t,s)=>{if(!s.trim())return t;const r=s.toLowerCase();return t.filter(a=>a.title.toLowerCase().includes(r))},Os=({items:t,onItemClick:s,searchPlaceholder:r="Buscar en el historial...",className:a,onSearchChange:n,emptyState:l})=>{const[i,x]=j.useState(""),o=j.useMemo(()=>{const m=fa(t,i);return ma(m)},[t,i]),c=m=>{const p=m.target.value;x(p),n?.(p)},u=(m,p)=>p.length===0?null:e.jsxs("div",{children:[e.jsx("div",{className:"px-8 py-8",children:e.jsx("h3",{className:"text-xs font-semibold text-low-em",children:m})}),p.map((b,w)=>e.jsxs(k.default.Fragment,{children:[e.jsx(Fs,{id:b.id,title:b.title,preview:b.preview,menuItems:b.menuItems,onClick:()=>s?.(b)}),w<p.length-1&&e.jsx("div",{className:"border-b border-surface-2"})]},b.id))]},m),d=o.today.length===0&&o.last7Days.length===0&&o.last30Days.length===0&&o.last90Days.length===0;return e.jsxs("div",{className:h.clsx("flex flex-col",a),children:[e.jsx("div",{className:"px-8 pt-9",children:e.jsx(Y,{size:"md",variant:"default",placeholder:r,leadingIcon:e.jsx(z.SearchNormal,{size:20,variant:"Linear"}),value:i,onChange:c})}),d?i?e.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-8",children:e.jsxs("p",{className:"text-sm text-low-em text-center",children:['No se encontraron resultados para "',i,'"']})}):l??null:e.jsxs("div",{className:"flex flex-col",children:[u("Hoy",o.today),u("Últimos 7 días",o.last7Days),u("Últimos 30 días",o.last30Days),u("Últimos 90 días",o.last90Days)]})]})},pa=[{id:"conversation",label:"Conversación"},{id:"constructor",label:"Constructor"}],Zs=({inputValue:t,onInputChange:s,onSendClick:r,placeholder:a="Input Text",variant:n="default",className:l,minLines:i=2,maxLines:x=10})=>{const[o,c]=j.useState("conversation"),u=j.useRef(null),d=20,m=i*d,p=x*d;j.useEffect(()=>{const w=u.current?.querySelector("textarea");if(!w)return;w.style.height="0px",w.style.overflow="hidden";const g=w.scrollHeight,f=Math.max(m,Math.min(g,p));w.style.height=`${f}px`,w.style.overflow=g>p?"auto":"hidden"},[t,m,p]);const b=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),r?.())};return e.jsxs("div",{ref:u,className:h.clsx("flex flex-col gap-3 p-4 rounded-xl bg-surface-2 border border-surface-3",l),children:[e.jsx("div",{className:"mb-1",children:e.jsx(R,{variant:"neutral",hierarchy:"quaternary",size:"xs",icons:"only",leadingIcon:e.jsx(z.Hashtag,{}),"aria-label":"Add"})}),e.jsx(Pr,{variant:"default",placeholder:a,value:t,onChange:w=>s?.(w.target.value),onKeyDown:b,resize:"none",className:"[&_textarea]:!min-h-0"}),e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"flex items-center gap-4",children:e.jsx(R,{variant:"neutral",hierarchy:"quaternary",size:"md",borderRadius:"12px",icons:"only",leadingIcon:e.jsx(z.AddCircle,{}),"aria-label":"Add"})}),n==="default"&&e.jsx(br,{withBorder:!0,items:pa,value:o,onChange:c,size:"ai-chat"})]}),e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"md",icons:"only",borderRadius:"12px",leadingIcon:e.jsx(bs,{}),onClick:r,"aria-label":"Send"})]})]})},st=({variant:t,children:s,className:r})=>e.jsx("div",{className:h.clsx("chat-message-container",t==="sent"?"chat-message-sent":"chat-message-received",r),children:e.jsx("div",{className:h.clsx("chat-message-content",t==="sent"?"chat-message-sent-content":"chat-message-received-content"),children:s})}),rt=({className:t,onCopyClick:s,onLikeClick:r,onDislikeClick:a,onRefreshClick:n})=>{const[l,i]=j.useState(!1),[x,o]=j.useState(!1),c=()=>{i(!l),r?.()},u=()=>{o(!x),a?.()};return e.jsxs("div",{className:h.clsx("inline-flex items-center gap-4",t),children:[e.jsx("button",{onClick:s,className:"p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em","aria-label":"Copy message",children:e.jsx($,{size:"sm",children:e.jsx(z.Copy,{})})}),e.jsx("button",{onClick:c,className:"p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em","aria-label":"Like message",children:e.jsx($,{size:"sm",children:l?e.jsx(z.Like1,{variant:"Bold"}):e.jsx(z.Like1,{variant:"Outline"})})}),e.jsx("button",{onClick:u,className:"p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em","aria-label":"Dislike message",children:e.jsx($,{size:"sm",children:x?e.jsx(z.Dislike,{variant:"Bold"}):e.jsx(z.Dislike,{variant:"Outline"})})}),e.jsx("button",{onClick:n,className:"p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em","aria-label":"Refresh response",children:e.jsx($,{size:"sm",children:e.jsx(z.Refresh,{})})})]})},Bs=({fileName:t,fileSize:s,alignment:r="left",className:a,...n})=>e.jsx("a",{href:n.href||"#",download:!0,className:h.clsx("block w-full border border-surface-2 p-4 transition-colors hover:bg-surface-2","py-6 px-8 h-[68px]",{"rounded-tr-lg rounded-br-lg rounded-bl-lg":r==="left","rounded-tl-lg rounded-bl-lg rounded-br-lg":r==="right"},a),...n,children:e.jsxs("div",{className:"flex flex-col text-low-em",children:[e.jsx("span",{className:"font-medium text-sm",children:t}),e.jsx("span",{className:"font-normal text-sm",children:s})]})}),_s=({className:t})=>e.jsx("div",{className:h.clsx("w-full max-w-max self-start",t),children:e.jsx("div",{className:"flex items-center gap-1 px-4 py-3",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"w-3 h-3 bg-low-em rounded-full animate-typing-dot",style:{animationDelay:"0ms"}}),e.jsx("span",{className:"w-3 h-3 bg-surface-4 rounded-full animate-typing-dot",style:{animationDelay:"200ms"}}),e.jsx("span",{className:"w-3 h-3 bg-low-em rounded-full animate-typing-dot",style:{animationDelay:"400ms"}})]})})}),ga=k.default.lazy(()=>Promise.resolve().then(()=>require("./index-CVAu6nrM.cjs"))),At=({children:t})=>e.jsx(j.Suspense,{fallback:e.jsx("span",{children:t}),children:e.jsx(ga,{children:t})}),Gs=k.default.memo(({messages:t,showTypingIndicator:s=!1,children:r,className:a,borderSide:n="none",borderStyle:l="surface-3",showHeader:i=!1,headerHeight:x=56,activeView:o="chat",onChatClick:c,onHistorialClick:u,onSettingsClick:d,onCloseClick:m,containerWidth:p=0,historialItems:b=[],onHistorialItemClick:w,historialSearchPlaceholder:g,onHistorialSearchChange:f,historialEmptyState:C,showChatInput:N=!0,chatInputValue:v,onChatInputChange:y,onChatSendClick:M,chatInputPlaceholder:I="Input Text",chatInputVariant:T="default",chatInputMinLines:D=2,chatInputMaxLines:H=10,onMessageCopyClick:P,onMessageLikeClick:F,onMessageDislikeClick:L,onMessageRefreshClick:O})=>{const W=k.default.useMemo(()=>n==="none"?"":`${n==="left"?"border-l":"border-r"} ${l==="surface-3"?"border-surface-3":"border-surface-4"}`,[n,l]);return e.jsxs("div",{className:`h-full w-full flex flex-col bg-white ${W} ${a||""}`,children:[i&&e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{height:`${x}px`},children:e.jsx($s,{activeView:o,onChatClick:c,onHistorialClick:u,onSettingsClick:d,onCloseClick:m,containerWidth:p,className:"pl-8 items-end h-full"})}),e.jsx(K,{})]}),o==="historial"?e.jsx(Os,{items:b,onItemClick:w,searchPlaceholder:g,onSearchChange:f,emptyState:C,className:"flex-1 overflow-y-auto"}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex-1 overflow-y-auto",children:t?e.jsxs("div",{className:"flex flex-col gap-10 px-9 py-6",children:[t.map(S=>e.jsx(k.default.Fragment,{children:S.attachment?e.jsxs("div",{className:`flex flex-col gap-4 ${S.variant==="sent"?"items-end":"items-start"}`,children:[e.jsxs("div",{className:`flex flex-col gap-10 ${S.variant==="sent"?"items-end":"items-start"}`,children:[e.jsx(st,{variant:S.variant,children:typeof S.content=="string"?e.jsx(At,{children:S.content}):S.content}),e.jsx("div",{className:"w-auto max-w-[300px]",children:e.jsx(Bs,{fileName:S.attachment.fileName,fileSize:S.attachment.fileSize,alignment:S.variant==="sent"?"right":"left",href:S.attachment.href})})]}),S.variant==="received"&&e.jsx(rt,{onCopyClick:()=>P?.(S.id),onLikeClick:()=>F?.(S.id),onDislikeClick:()=>L?.(S.id),onRefreshClick:()=>O?.(S.id)})]}):e.jsxs("div",{className:`flex flex-col ${S.variant==="sent"?"items-end":"items-start"}`,children:[e.jsx(st,{variant:S.variant,children:typeof S.content=="string"?e.jsx(At,{children:S.content}):S.content}),S.variant==="received"&&e.jsx(rt,{onCopyClick:()=>P?.(S.id),onLikeClick:()=>F?.(S.id),onDislikeClick:()=>L?.(S.id),onRefreshClick:()=>O?.(S.id)})]})},S.id)),s&&e.jsx(_s,{})]}):r}),N&&e.jsx("div",{className:"p-4",children:e.jsx(Zs,{minLines:D,maxLines:H,inputValue:v,onInputChange:y,onSendClick:M,placeholder:I,variant:T,containerWidth:p})})]})]})});Gs.displayName="ChatPanel";const ba={sm:{container:"px-4 py-3 text-xs font-medium leading-[18px]",iconSize:16,gapValue:"6px"},md:{container:"px-5 py-4 text-sm font-semibold leading-[22px]",iconSize:16,gapValue:"6px"}},ja={drag:"cursor-grabbing shadow-[0_8px_14px_-4px_rgba(0,0,0,0.2)]",hover:"opacity-90 hover:scale-[1.02] transition-transform",default:"border border-surface-4"},va=(t,s)=>s==="disabled"?"bg-surface-3 border-none text-disabled":s==="hover"?t==="selected"?"bg-surface-2 border-surface-3 text-high-em":"bg-surface-2 border-surface-4 text-high-em":s==="focus"?t==="selected"?"bg-surface-2 border-2 border-surface-3 text-high-em":"bg-surface-2 border-2 border-surface-4 text-high-em":s==="drag"?t==="selected"?"bg-surface-2 border-surface-3 text-high-em":"bg-surface-2 border-surface-4 text-high-em":"",wa=({size:t="md",type:s="unselected",state:r="default",children:a,leftContent:n,rightContent:l,onClick:i,className:x,showLeftContent:o=!0,showRightContent:c=!0,showText:u=!0})=>{const d=T=>{if(!k.default.isValidElement(T))return T;const D=T,H=D.props.style||{},P={...D.props,style:{...H,width:"100%",height:"100%",display:"block"},size:void 0};return k.default.cloneElement(D,P)},m=!!i&&r!=="disabled",p=!!n&&o,b=!!l&&c,w=ba[t],g=ja[r],f=va(s,r),C=V.twMerge("inline-flex items-center border border-solid transition-all duration-150 rounded-full font-family-inter",g,w.container,f,m&&"cursor-pointer hover:opacity-90 active:opacity-100",r==="disabled"&&"cursor-not-allowed",r==="drag"&&"cursor-grabbing",x),N="flex-shrink-0 inline-flex items-center justify-center",v=w.iconSize,y=w.gapValue,M=e.jsx("div",{className:N,style:{marginRight:y,width:`${v}px`,height:`${v}px`},children:p?d(n):null}),I=e.jsx("div",{className:N,style:{marginLeft:y,width:`${v}px`,height:`${v}px`},children:b?d(l):null});return e.jsxs("div",{className:C,role:m?"button":"status",onClick:m?i:void 0,tabIndex:m?0:void 0,children:[M,u&&e.jsx("span",{className:"shrink-0",children:a}),I]})},Ca=["--black","--white","--black-uniform","--white-uniform","--surface-bg","--surface-1","--surface-2","--surface-3","--surface-4","--disabled","--placeholder","--low-em","--med-em","--high-em","--brand-primary-main","--brand-primary-main-special","--brand-primary-accent-special","--brand-primary-accent-3","--brand-secondary-main","--brand-secondary-accent-3","--warning-em","--warning-main","--warning-accent-3","--warning-accent-1","--warning-accent-0","--success-em","--success-main","--success-accent-3","--success-accent-2","--success-accent-1","--info-em","--info-main","--info-accent-3","--info-accent-2","--info-accent-1","--danger-em","--danger-main","--danger-accent-3","--danger-accent-2","--danger-accent-1"],ya=()=>{if(typeof document>"u")return[];const t=[],s=getComputedStyle(document.documentElement);return Ca.forEach(r=>{const a=s.getPropertyValue(r).trim();a&&t.push({name:r,value:a.toUpperCase()})}),t},Na=({colors:t})=>{const[s,r]=j.useState(t||[]),[a,n]=j.useState(0);return j.useEffect(()=>{if(t){r(t);return}r(ya())},[t,a]),j.useEffect(()=>{if(t)return;const l=new MutationObserver(i=>{i.forEach(x=>{x.type==="attributes"&&x.attributeName==="class"&&n(o=>o+1)})});return l.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>l.disconnect()},[t]),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:s.map(({name:l,value:i})=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",fontFamily:"monospace"},children:[e.jsx("div",{style:{width:"50px",height:"50px",backgroundColor:i,border:"1px solid #ccc",borderRadius:"4px"}}),e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:"bold"},children:l}),e.jsx("div",{children:i})]})]},l))})},ka=({disabled:t=!1,className:s,...r})=>e.jsxs("div",{className:V.twMerge(h.clsx("inline-flex flex-col items-center justify-center gap-[2px]","w-[17px] h-[80px] rounded-full border border-surface-3 bg-white","cursor-grab active:cursor-grabbing transition-opacity",t&&"opacity-50 cursor-not-allowed",s)),...r,children:[e.jsx("div",{className:"w-[2.6px] h-[3px] rounded-full bg-surface-3"}),e.jsx("div",{className:"w-[2.6px] h-[3px] rounded-full bg-surface-3"}),e.jsx("div",{className:"w-[2.6px] h-[3px] rounded-full bg-surface-3"})]}),Sa={text_icon:{showLeadingIcon:!0,showLeadingAvatar:!1,showInput:!0,showTrailingChevron:!0,showTrailingAddon:!1},text_image:{showLeadingIcon:!1,showLeadingAvatar:!0,showInput:!0,showTrailingChevron:!0,showTrailingAddon:!1},only_icon:{showLeadingIcon:!1,showLeadingAvatar:!1,showInput:!1,showTrailingChevron:!0,showTrailingAddon:!1},text_icon_text:{showLeadingIcon:!0,showLeadingAvatar:!1,showInput:!0,showTrailingChevron:!1,showTrailingAddon:!0}},La={default:{fill:{wrapper:"border-none bg-gray-100 focus-within:ring-gray-500 text-dark-300",hint:"text-primary-300",input:"text-primary-300 placeholder-gray-500"},outlined:{wrapper:"border-gray-500 bg-white focus-within:ring-gray-600 text-dark-300",hint:"text-gray-600",input:"text-dark-300 placeholder-gray-500"}},danger:{fill:{wrapper:"border-danger-200 bg-danger-50 focus-within:ring-danger-200 text-danger-600",hint:"text-danger-600",input:"text-danger-600 placeholder-danger-400"},outlined:{wrapper:"border-danger-300 bg-white text-danger-600 focus-within:ring-danger-200",hint:"text-danger-600",input:"text-danger-600 placeholder-danger-400"}},success:{fill:{wrapper:"border-success-300 bg-success-50 focus-within:ring-success-200 text-success-600",hint:"text-success-600",input:"text-success-900 placeholder-success-400"},outlined:{wrapper:"border-success-300 bg-white text-success-600 focus-within:ring-success-200",hint:"text-success-600",input:"text-success-900 placeholder-success-400"}}},za="opacity-50 bg-gray-100 cursor-not-allowed",Ma={sm:{wrapper:"h-[32px] text-[10px] px-4",icon:14,avatar:"w-[12px] h-[12px]"},md:{wrapper:"h-[38px] text-[14px] px-6",icon:16,avatar:"w-[16px] h-[16px]"},lg:{wrapper:"h-[48px] text-[16px] px-8",icon:20,avatar:"w-[20px] h-[20px]"}},Ia=({layout:t="text_icon",hierarchy:s="fill",variant:r="default",size:a="md",label:n,hint:l,disabled:i,leadingIcon:x,leadingAvatar:o,trailingAddon:c,options:u,value:d,onChange:m,placeholder:p,className:b,placeholderColor:w,inputTextColor:g,backgroundColor:f,chevronColor:C="currentColor",optionActiveColor:N="bg-primary-500",optionActiveTextColor:v="text-white",optionTextColor:y="text-gray-900",borderRadius:M="rounded-lg"})=>{const[I,T]=j.useState(""),D=La[r][s],H=Ma[a],P=Sa[t],F=I===""?u:u.filter(W=>W.label.toLowerCase().includes(I.toLowerCase())),L=V.twMerge(h.clsx("w-full flex-1 bg-transparent focus:outline-none",D.input,w,g)),O=V.twMerge(h.clsx("relative flex items-center gap-2 border transition-colors duration-200 focus-within:ring-2",M,H.wrapper,D.wrapper,i&&za,f));return e.jsxs("div",{className:h.clsx("flex flex-col gap-1.5",b),children:[n&&e.jsx("label",{className:"font-medium text-sm text-gray-800",children:n}),e.jsx(Z.Combobox,{value:d,onChange:m,disabled:i,children:e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:O,children:[P.showLeadingIcon&&x&&e.jsx("div",{children:k.default.cloneElement(x,{size:H.icon,color:"currentColor"})}),P.showLeadingAvatar&&o&&e.jsx("img",{src:o,alt:"avatar",className:h.clsx("rounded-full",H.avatar)}),P.showInput&&e.jsx(Z.Combobox.Input,{className:L,placeholder:p,onChange:W=>T(W.target.value),displayValue:W=>W?.label}),P.showTrailingChevron&&!c&&e.jsx(Z.Combobox.Button,{className:h.clsx("flex items-center",{"w-full h-full justify-center":t==="only_icon"}),children:e.jsx(z.ArrowDown2,{size:H.icon,color:C})}),P.showTrailingAddon&&c&&e.jsx("div",{className:"flex-shrink-0",children:c})]}),e.jsx(Z.Combobox.Options,{className:"absolute z-10 mt-1 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm",children:F.length===0&&I!==""?e.jsx("div",{className:"relative cursor-default select-none px-4 py-2 text-gray-700",children:"Nothing found."}):F.map(W=>e.jsx(Z.Combobox.Option,{value:W,className:({active:A})=>V.twMerge(h.clsx("relative cursor-default select-none py-2 pl-4 pr-4",A?`${N} ${v}`:y)),children:W.label},W.id))})]})}),l&&e.jsxs("div",{className:h.clsx("flex items-center gap-1.5 text-sm",D.hint),children:[e.jsx(z.InfoCircle,{size:16,color:"currentColor"}),e.jsx("span",{children:l})]})]})},Pa=({items:t,trigger:s,className:r,align:a="right",offset:n=8})=>{const[l,i]=j.useState(!1),x=j.useRef(null),o=j.useRef(null);j.useEffect(()=>{const u=d=>{x.current&&!x.current.contains(d.target)&&o.current&&!o.current.contains(d.target)&&i(!1)};if(l)return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[l]);const c=u=>{u.disabled||(u.onClick(),i(!1))};return e.jsxs("div",{className:h.clsx("relative inline-block",r),children:[e.jsx("div",{ref:o,onClick:()=>i(!l),className:"cursor-pointer",children:s}),l&&e.jsx("div",{ref:x,className:h.clsx("absolute z-50 mt-2 min-w-[200px] rounded-lg bg-white shadow-lg border border-gray-200",a==="right"?"right-0":"left-0"),style:{top:`calc(100% + ${n}px)`},children:e.jsx("div",{className:"py-2",children:t.map((u,d)=>e.jsxs("button",{onClick:()=>c(u),disabled:u.disabled,className:h.clsx("w-full px-4 py-2.5 text-left text-sm flex items-center gap-3 transition-colors relative","hover:bg-gray-50",u.destructive?"text-[var(--danger-main)]":"text-[var(--high-em)]",u.disabled&&"opacity-50 cursor-not-allowed",d<t.length-1&&"border-b border-gray-100",d===0&&"before:absolute before:inset-x-0 before:-top-2 before:h-2 before:bg-transparent hover:before:bg-gray-50",d===t.length-1&&"after:absolute after:inset-x-0 after:-bottom-2 after:h-2 after:bg-transparent hover:after:bg-gray-50"),children:[u.icon&&e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center relative z-10",children:u.icon}),e.jsx("span",{className:"flex-1 font-normal relative z-10",children:u.label})]},u.id))})})]})},ft=k.default.memo(({children:t,tooltipContent:s,icon:r,iconColor:a="text-disabled",leadingIcon:n,leadingIconColor:l="text-disabled",iconSize:i,className:x,labelClassName:o,fontSize:c="sm",fontWeight:u="semibold",textColor:d="",onClick:m,state:p="default"})=>{const b={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"},w={xs:12,sm:16,base:18,lg:20,xl:24},g={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},f=b[c]||void 0,C=b[c]?void 0:c,N=i??w[c]??20,v=!!m&&p!=="disabled",y=V.twMerge(h.clsx("flex border border-surface-3 w-full items-center px-6 h-14 text-left text-sm font-medium transition-colors rounded-xl",p==="disabled"&&"bg-surface-3 pointer-events-none",p==="hover"&&"bg-surface-1",p==="active"&&"bg-surface-2",p==="drag"&&"cursor-grabbing shadow-[0_8px_14px_-4px_rgba(0,0,0,0.2)] bg-surface-2",v&&p==="default"&&"cursor-pointer hover:bg-surface-1 active:bg-surface-2",p==="disabled"&&"cursor-not-allowed",x)),M=V.twMerge(h.clsx("flex-1 ml-6",f,g[u],p==="disabled"?"text-disabled":d||"text-med-em",o));return e.jsxs("div",{className:y,onClick:v?m:void 0,suppressHydrationWarning:!0,children:[n&&e.jsx("div",{className:"flex items-center shrink-0",children:e.jsx($,{size:N,className:l,children:n})}),e.jsx("span",{className:M,style:C?{fontSize:C}:void 0,children:t}),r&&s?e.jsxs(ee.Root,{children:[e.jsx(ee.Trigger,{asChild:!0,children:e.jsx("button",{className:h.clsx("flex items-center focus:outline-none focus-visible:ring-2 rounded-full shrink-0",a),onClick:I=>I.stopPropagation(),children:e.jsx($,{size:N,className:a,children:r})})}),e.jsx(ee.Portal,{children:e.jsxs(ee.Content,{sideOffset:5,className:h.clsx("z-50 max-w-xs overflow-hidden rounded-xl bg-surface-bg p-3 text-xs font-medium text-med-em shadow-lg","data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade","data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade"),children:[s,e.jsx(ee.Arrow,{className:"fill-white"})]})})]}):r?e.jsx("div",{className:h.clsx("flex items-center shrink-0",a),children:e.jsx($,{size:N,className:a,children:r})}):null]})});ft.displayName="DragAndDropListItem";const Ta={default:{wrapper:"bg-surface-2 border-transparent hover:bg-surface-3 hover:cursor-pointer",optionsPanel:"border-surface-4",label:"text-med-em",selectedValue:"text-med-em",placeholder:"text-placeholder",hint:"text-med-em"},danger:{wrapper:"bg-danger-accent-1 border-danger-accent-2",optionsPanel:"border-danger-accent-2",label:"text-high-em",selectedValue:"text-danger-em",placeholder:"text-danger-em",hint:"text-danger-em"},outlined:{wrapper:"bg-white border-surface-4",optionsPanel:"border-surface-4",label:"text-med-em",selectedValue:"text-med-em",placeholder:"text-placeholder",hint:"text-med-em"}},ve={wrapper:"bg-surface-3 text-disabled pointer-events-none border-transparent",label:"text-disabled",selectedValue:"text-disabled",placeholder:"text-disabled",hint:"text-disabled"},Ra={sm:{wrapper:"h-10 rounded-md",selectText:"text-xs",icon:14,labelFontSize:"text-[10px]",hintFontSize:"text-[10px]",hintIconSize:12},md:{wrapper:"h-[38px] rounded-6",selectText:"text-sm font-medium",icon:16,labelFontSize:"text-xs",hintFontSize:"text-xs",hintIconSize:12}},Ae=({variant:t="default",size:s="md",menuSize:r,label:a,hint:n,items:l,disabled:i,placeholder:x,className:o,value:c,onChange:u,id:d,customHeight:m,customRadius:p,customPlaceholderColor:b,customBackgroundColor:w,leadingIcon:g,showLeadingIcon:f=!0,hintIconVariant:C,menuMinHeight:N})=>{const v=Ta[t],y=Ra[s],M=r||s,I=j.useRef(null),T=j.useRef(null),[D,H]=j.useState(!1),[P,F]=j.useState(null),[L,O]=j.useState(!1),W=l.find(E=>E.id===c);j.useEffect(()=>{O(!0)},[]);const A=k.default.useCallback(()=>{if(I.current&&D){const E=I.current.getBoundingClientRect(),ze=window.innerHeight-E.bottom,Qe=E.top,Me=ze<200&&Qe>ze;F({top:Me?E.top-8:E.bottom+8,left:E.left,width:E.width,openUpwards:Me})}},[D]);j.useEffect(()=>{if(D){A();const E=_=>{T.current?.contains(_.target)||H(!1)};return window.addEventListener("scroll",E,!0),window.addEventListener("resize",A),()=>{window.removeEventListener("scroll",E,!0),window.removeEventListener("resize",A)}}},[D,A]),j.useEffect(()=>{if(!D)return;const E=_=>{I.current&&!I.current.contains(_.target)&&T.current&&!T.current.contains(_.target)&&H(!1)};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[D]);const S=()=>{i||H(!D)},B=E=>{u(E),H(!1)},X=m?{height:m}:void 0,de=()=>{if(p)return{borderRadius:p}},te=()=>{if(p)return{borderRadius:p}},re=b?.startsWith("var(")?{color:b}:void 0,G=b&&!b.startsWith("var(")?b:void 0,U=w&&!w.startsWith("#")&&!w.startsWith("rgb")?w:void 0,ne=w&&(w.startsWith("#")||w.startsWith("rgb"))?{backgroundColor:w}:void 0;return e.jsxs("div",{className:h.clsx("w-full flex flex-col gap-1.5",o),children:[a&&e.jsx("label",{htmlFor:d,className:h.clsx("font-semibold",y.labelFontSize,v.label,i&&ve.label),children:a}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{ref:I,id:d,onClick:S,disabled:i,className:h.clsx("relative w-full cursor-default border text-left transition-colors duration-200 focus:outline-none focus-visible:ring-2","flex items-center",!m&&y.wrapper,!w&&v.wrapper,U,i&&ve.wrapper,!p&&"rounded-xl"),style:{...X,...de(),...ne},children:[f&&e.jsx("span",{className:h.clsx("pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3.5",i?"text-disabled":W?v.selectedValue:v.placeholder),children:g?k.default.isValidElement(g)?k.default.cloneElement(g,{color:"currentColor"}):g:e.jsx(z.Category,{size:y.icon,color:"currentColor"})}),e.jsx("span",{className:h.clsx("flex-1 min-w-0 truncate",f?"pl-[36px]":"pl-3.5"),children:W?e.jsx("span",{className:h.clsx(y.selectText,i?ve.selectedValue:v.selectedValue),children:W.title}):e.jsx("span",{className:h.clsx(y.selectText,i?ve.placeholder:v.placeholder,G),style:re,children:x})}),e.jsx("span",{className:"pointer-events-none flex items-center pr-3.5 shrink-0",children:D?e.jsx(z.ArrowUp2,{size:y.icon,color:"currentColor"}):e.jsx(z.ArrowDown2,{size:y.icon,color:"currentColor"})})]}),L&&D&&P&&_t.createPortal(e.jsx("div",{ref:T,className:"fixed z-50",style:P.openUpwards?{bottom:`${window.innerHeight-P.top}px`,left:`${P.left}px`,width:`${P.width}px`}:{top:`${P.top}px`,left:`${P.left}px`,width:`${P.width}px`},children:e.jsx(Le,{items:l.map(({id:E,..._})=>({id:E,..._})),size:M,floating:!1,onSelect:B,selectedIds:c?[c]:[],className:h.clsx("w-full overflow-y-auto shadow-md border",!p&&"rounded-xl",v.optionsPanel,"bg-surface-bg"),style:{...te(),maxHeight:P.openUpwards?`min(300px, ${P.top-20}px)`:`min(300px, calc(100vh - ${P.top}px - 20px))`,minHeight:N}})}),document.body)]}),n&&e.jsx(oe,{icon:e.jsx(z.InfoCircle,{variant:C}),label:n,iconSize:y.hintIconSize,gap:1,iconColorClass:h.clsx(v.hint,i&&ve.hint),labelColorClass:h.clsx(v.hint,i&&ve.hint),className:h.clsx(y.hintFontSize,"font-semibold")})]})};function Da({children:t,...s}){return e.jsx(Z.Menu,{as:"div",className:"relative inline-block text-left",...s,children:t})}const Us=k.default.memo(({isOver:t=!1,activeHeight:s="56px",inactiveHeight:r="0px",transitionDuration:a=150,transitionTimingFunction:n="ease-out",className:l,style:i,dropRef:x,id:o})=>e.jsx("div",{ref:x,id:o,className:l,style:{height:t?s:r,transition:`height ${a}ms ${n}`,overflow:"hidden",...i}}));Us.displayName="DropZone";class Ha extends j.Component{constructor(s){super(s),this.state={hasError:!1,error:null}}static getDerivedStateFromError(s){return{hasError:!0,error:s}}componentDidCatch(s,r){const{componentName:a,onError:n}=this.props;console.error(`Error in ${a||"component"}:`,s,r),n&&n(s,r)}resetError=()=>{this.setState({hasError:!1,error:null})};render(){const{hasError:s,error:r}=this.state,{children:a,fallback:n,defaultTitle:l="Something went wrong",defaultMessage:i="An error occurred while rendering this component.",retryLabel:x="Try again"}=this.props;return s?n?k.default.isValidElement(n)?k.default.cloneElement(n,{error:r,onRetry:this.resetError}):n:e.jsx("div",{className:"flex items-center justify-center h-full p-8",children:e.jsxs("div",{className:"text-center flex flex-col gap-6 items-center",children:[e.jsx("h3",{className:"text-lg font-semibold text-danger-main",children:l}),e.jsx("p",{className:"text-sm text-med-em",children:i}),e.jsx(R,{onClick:this.resetError,size:"sm",variant:"secondary",hierarchy:"primary",children:x})]})}):a}}const qs=k.default.memo(({icon:t=e.jsx($,{className:"text-danger-main",size:"2xl",children:e.jsx(z.Danger,{})}),title:s="Something went wrong",message:r,error:a,onRetry:n,retryLabel:l="Retry",showDetailsInProduction:i=!1,className:x,centered:o=!0,maxWidth:c="max-w-sm"})=>{const u=i||process.env.NODE_ENV==="development";return e.jsx(It,{children:e.jsx("div",{className:h.clsx("flex flex-col p-8",o&&"items-center justify-center h-full",x),children:e.jsxs("div",{className:h.clsx("text-center flex justify-center items-center flex-col gap-6",c),children:[typeof t=="string"?e.jsx("div",{className:"text-5xl",children:t}):e.jsx("div",{className:"flex justify-center",children:t}),e.jsx("h3",{className:"text-lg font-semibold text-danger-main",children:s}),r&&e.jsx("p",{className:"text-sm text-med-em mb-4",children:r}),a&&u&&e.jsxs("details",{className:"text-left",children:[e.jsx("summary",{className:"text-xs text-med-em cursor-pointer",children:"Technical details"}),e.jsxs("pre",{className:"text-xs text-danger-main p-2 rounded overflow-auto max-h-32",children:[a.message,a.stack&&`
|
|
12
|
+
M ${c} 0
|
|
13
|
+
Q ${c} 4, ${c-4} 4
|
|
14
|
+
L ${d+4} 4
|
|
15
|
+
Q ${d} 4, ${d} 8
|
|
16
|
+
L ${d} 40
|
|
17
|
+
Q ${d} 44, ${d+4} 44
|
|
18
|
+
L ${c-4} 44
|
|
19
|
+
Q ${c} 44, ${c} 48
|
|
20
|
+
Z
|
|
21
|
+
`,m=o?(c+d)/2:(d+c)/2,p=48/2;return e.jsxs("div",{className:h.clsx("relative cursor-col-resize",r),style:{width:9,height:48},children:[e.jsx("svg",{width:9,height:48,viewBox:"0 0 9 48",fill:"none",className:"absolute inset-0",children:e.jsx("path",{d:u,fill:s,stroke:"var(--surface-3)",strokeWidth:"1"})}),e.jsxs("div",{className:"absolute flex flex-col gap-[2px] items-center",style:{left:m,top:p,transform:"translate(-50%, -50%)"},children:[e.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-surface-4"}),e.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-surface-4"}),e.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-surface-4"})]})]})},is=k.default.memo(({id:t,side:s,children:r,resizable:a=!0,panelBg:n="var(--surface-1)",className:l})=>{const{panels:i,onResizeStart:x,onResize:o,onResizeEnd:c,onCloseZoneChange:d,getPanelState:u,minCentralWidth:m,containerRef:p}=ln(),b=u(t),w=j.useRef(!1),g=j.useRef(!1),f=j.useRef(null),C=j.useRef(!1),N=j.useRef(0),v=j.useRef(!1),y=j.useRef({side:s,oppositeSideWidth:0,minCentralWidth:m,externalPanelsWidth:0,internalPanelsWidth:0,panelState:b}),I=Te(i[s==="left"?"right":"left"]),R=i[s],D=R.findIndex(G=>G.id===t),A=R.filter((G,U)=>G.open?s==="right"?U>D:U<D:!1).reduce((G,U)=>G+U.width,0),P=R.filter((G,U)=>!G.open||G.id===t?!1:s==="right"?U<D:U>D).reduce((G,U)=>G+U.width,0);y.current={side:s,oppositeSideWidth:I,minCentralWidth:m,externalPanelsWidth:A,internalPanelsWidth:P,panelState:b};const F=j.useRef(o),S=j.useRef(c),Z=j.useRef(d);F.current=o,S.current=c,Z.current=d;const V=j.useCallback(G=>{w.current&&(g.current=!0,!f.current&&(f.current=requestAnimationFrame(()=>{f.current=null;const U=p.current;if(!U)return;const te=U.getBoundingClientRect(),ye=te.width,Ne=G.clientX-te.left,{side:ge,oppositeSideWidth:E,minCentralWidth:B,externalPanelsWidth:Me,internalPanelsWidth:Qe}=y.current,be=ns(ge,Ne,ye,E,B,Me,Qe),Ke=be<N.current&&on(be);Ke!==C.current&&(C.current=Ke,Z.current(t,Ke)),F.current(t,be)})))},[t,p]),H=j.useCallback(()=>{if(!w.current)return;w.current=!1,document.body.style.userSelect="",document.body.style.cursor="";const G=g.current&&C.current,{panelState:U}=y.current;!G&&U&&U.width<Tt(U.width)&&F.current(t,Tt(U.width)),g.current=!1,C.current=!1,S.current(t,G),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",H)},[t,V]),L=j.useCallback(()=>{w.current=!0,document.body.style.userSelect="none",document.body.style.cursor="col-resize";const{panelState:G}=y.current;N.current=G?.width??0,x(t),document.addEventListener("mousemove",V),document.addEventListener("mouseup",H)},[t,V,H,x]);if(j.useEffect(()=>()=>{f.current&&cancelAnimationFrame(f.current),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",H)},[V,H]),j.useEffect(()=>{if(b?.open&&!b?.exiting){const G=setTimeout(()=>{v.current=!0},150);return()=>clearTimeout(G)}else b?.open||(v.current=!1)},[b?.open,b?.exiting]),!b||!b.open&&!b.exiting)return null;const _=s==="left"?"right":"left",ae=()=>b.exiting?s==="left"?"animate-panel-exit":"animate-panel-exit-right":v.current?"":s==="left"?"animate-panel-enter":"animate-panel-enter-right";return e.jsxs("div",{className:h.clsx("h-full relative flex-shrink-0","transition-[width] duration-100 ease-out",b.isResizing&&"transition-none",l),style:{width:`${b.width}%`},"data-panel":t,"data-panel-side":s,"data-in-close-zone":b.inCloseZone,"data-exiting":b.exiting,children:[e.jsx("div",{className:h.clsx("absolute inset-0 overflow-hidden","transition-opacity duration-100",ae(),b.inCloseZone?"opacity-50":"opacity-100"),style:{backgroundColor:n},children:r}),a&&!b.exiting&&e.jsx("div",{className:h.clsx("absolute top-1/2 -translate-y-1/2 z-50",_==="right"?"right-0 translate-x-full":"left-0 -translate-x-full"),onMouseDown:L,children:e.jsx(dn,{side:_,fillColor:n})}),!a&&e.jsx("div",{className:h.clsx("absolute top-0 bottom-0 w-px bg-surface-3",_==="right"?"right-0":"left-0")})]})});is.displayName="Panel";const os=k.default.memo(({children:t,className:s})=>e.jsx("div",{className:h.clsx("flex-1 min-w-0 h-full overflow-hidden relative","transition-all duration-100 ease-out",s),"data-panel-main":!0,children:t}));os.displayName="PanelMain";function Rt(t){if(!t||typeof t!="object")return!1;const s=t;return typeof s.id=="string"&&typeof s.open=="boolean"&&typeof s.width=="number"}function xn(t){if(!t||typeof t!="object")return!1;const s=t;return Array.isArray(s.left)&&Array.isArray(s.right)&&s.left.every(Rt)&&s.right.every(Rt)}function un(t){const{config:s,persist:r=!1,persistKey:a="panel-state"}=t,n=j.useMemo(()=>{const g=new Map;return s.forEach(f=>g.set(f.id,f)),g},[s]),[l,i]=j.useState(()=>Xe(s,1920)),[x,o]=j.useState(!1);j.useEffect(()=>{if(r&&typeof window<"u")try{const g=localStorage.getItem(a);if(g){const f=JSON.parse(g);xn(f)&&i(f)}}catch{}o(!0)},[r,a]),j.useEffect(()=>{if(x&&r&&typeof window<"u")try{localStorage.setItem(a,JSON.stringify(l))}catch{}},[l,r,a,x]);const c=j.useCallback(g=>{i(f=>{const C=se(f,g);if(!C)return f;const{side:N,panel:v}=C;if(v.open)return{...f,[N]:f[N].map(L=>L.id===g?{...L,open:!1}:L)};const y=N==="left"?"right":"left",M=n.get(g),I=typeof window<"u"?window.innerWidth:1920,R=M?Pe(M.defaultWidth,I):20,D=f[y].filter(L=>L.open).reduce((L,_)=>L+_.width,0),A=f[N].filter(L=>L.open&&L.id!==g),P=A.reduce((L,_)=>L+_.width,0),F=100-D-q.minCentralPercent;if(P+R<=F)return{...f,[N]:f[N].map(L=>L.id===g?{...L,open:!0,width:R}:L)};const S=A.length*q.snapMinWidth,Z=F-S,V=Math.min(R,Math.max(q.snapMinWidth,Z)),H=F-V;if(P>0&&H<P){const L=H/P;return{...f,[N]:f[N].map(_=>{if(_.id===g)return{..._,open:!0,width:V};if(_.open){const ae=Math.max(q.snapMinWidth,_.width*L);return{..._,width:ae}}return _})}}return{...f,[N]:f[N].map(L=>L.id===g?{...L,open:!0,width:V}:L)}})},[n]),d=j.useCallback((g,f)=>{i(C=>{const N=se(C,g);if(!N)return C;const{side:v,panel:y}=N,I=C[v==="left"?"right":"left"].filter(S=>S.open).reduce((S,Z)=>S+Z.width,0),R=C[v].filter(S=>S.open&&S.id!==g),D=R.reduce((S,Z)=>S+Z.width,0),A=100-I-q.minCentralPercent,P=f+D;if(P<=A)return{...C,[v]:C[v].map(S=>S.id===g?{...S,width:f}:S)};if(f>y.width&&D>0){const S=P-A,Z=Math.max(R.length*q.snapMinWidth,D-S),V=A-Z,H=Z/D;return{...C,[v]:C[v].map(L=>{if(L.id===g)return{...L,width:V};if(L.open){const _=Math.max(q.snapMinWidth,L.width*H);return{...L,width:_}}return L})}}return{...C,[v]:C[v].map(S=>S.id===g?{...S,width:Math.min(f,A-D)}:S)}})},[]),u=j.useCallback(g=>{i(f=>{const C=se(f,g);if(!C||C.panel.open)return f;const{side:N}=C,v=N==="left"?"right":"left",y=n.get(g),M=typeof window<"u"?window.innerWidth:1920,I=y?Pe(y.defaultWidth,M):20,R=f[v].filter(H=>H.open).reduce((H,L)=>H+L.width,0),D=f[N].filter(H=>H.open&&H.id!==g),A=D.reduce((H,L)=>H+L.width,0),P=100-R-q.minCentralPercent;if(A+I<=P)return{...f,[N]:f[N].map(H=>H.id===g?{...H,open:!0,width:I}:H)};const F=D.length*q.snapMinWidth,S=P-F,Z=Math.min(I,Math.max(q.snapMinWidth,S)),V=P-Z;if(A>0&&V<A){const H=V/A;return{...f,[N]:f[N].map(L=>{if(L.id===g)return{...L,open:!0,width:Z};if(L.open){const _=Math.max(q.snapMinWidth,L.width*H);return{...L,width:_}}return L})}}return{...f,[N]:f[N].map(H=>H.id===g?{...H,open:!0,width:Z}:H)}})},[n]),m=j.useCallback(g=>{i(f=>{const C=se(f,g);if(!C||!C.panel.open)return f;const{side:N}=C;return{...f,[N]:f[N].map(v=>v.id===g?{...v,open:!1,exiting:!1,inCloseZone:!1}:v)}})},[]),p=j.useCallback((g,f)=>{i(C=>{const N=se(C,g);if(!N)return C;const{side:v}=N;return{...C,[v]:C[v].map(y=>y.id===g?{...y,inCloseZone:f}:y)}})},[]),b=j.useCallback(g=>{i(f=>{const C=se(f,g);if(!C)return f;const{side:N}=C;return{...f,[N]:f[N].map(v=>v.id===g?{...v,exiting:!0,inCloseZone:!1}:v)}}),setTimeout(()=>{i(f=>{const C=se(f,g);if(!C)return f;const{side:N}=C;return{...f,[N]:f[N].map(v=>v.id===g?{...v,open:!1,exiting:!1,width:q.snapMinWidth}:v)}})},q.exitAnimationDuration)},[]),w=j.useCallback(()=>{const g=typeof window<"u"?window.innerWidth:1920;i(Xe(s,g))},[s]);return j.useEffect(()=>{const g=[...l.left.filter(C=>C.exiting),...l.right.filter(C=>C.exiting)];if(g.length===0)return;const f=g.map(C=>setTimeout(()=>{i(N=>{const v=se(N,C.id);if(!v)return N;const{side:y}=v;return{...N,[y]:N[y].map(M=>M.id===C.id&&M.exiting?{...M,open:!1,exiting:!1}:M)}})},q.exitAnimationDuration));return()=>{f.forEach(C=>clearTimeout(C))}},[l]),{panels:l,togglePanel:c,resizePanel:d,openPanel:u,closePanel:m,resetPanels:w,handleCloseZoneChange:p,handlePanelClose:b}}const cs=k.default.memo(({mainContent:t,sidePanel:s,isPanelOpen:r,onPanelExited:a,panelWidth:n=400,panelPosition:l="right",animationDuration:i=75,className:x,mainContentBg:o="bg-white",sidePanelBg:c})=>{const[d,u]=j.useState(!1),[m,p]=j.useState(r);j.useEffect(()=>{if(r)p(!0),u(!1);else if(m){u(!0);const f=setTimeout(()=>{p(!1),u(!1),a?.()},i);return()=>clearTimeout(f)}},[r,i,m,a]);const b=r?`calc(100% - ${n}px)`:"100%",w=l==="right"?"animate-slideInRight":"animate-slideInLeft",g=l==="right"?"animate-slideOutRight":"animate-slideOutLeft";return e.jsx("div",{className:h.clsx("w-full flex flex-col",x),style:{height:"100%",maxHeight:"100%",overflow:"hidden"},children:e.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[l==="left"&&e.jsx("div",{className:"h-full overflow-hidden transition-all ease-out",style:{width:r?`${n}px`:"0px",opacity:r?1:0,transitionDuration:`${i}ms`},children:m&&e.jsx("div",{className:h.clsx("h-full",c,d?g:w),children:s})}),e.jsx("div",{className:h.clsx("relative flex flex-col transition-all ease-out overflow-hidden",o),style:{width:b,transitionDuration:`${i}ms`},children:e.jsx("div",{className:"relative flex-1 overflow-hidden",children:t})}),l==="right"&&e.jsx("div",{className:"h-full overflow-hidden transition-all ease-out",style:{width:r?`${n}px`:"0px",opacity:r?1:0,transitionDuration:`${i}ms`},children:m&&e.jsx("div",{className:h.clsx("h-full",c,d?g:w),children:s})})]})})});cs.displayName="SplitPanelLayout";const re=t=>t!==void 0&&{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8"}[t]||"gap-4",ds=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("mask",{id:"mask0_1135_15829",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("path",{d:"M20 0H0V20H20V0Z",fill:"white"})}),e.jsxs("g",{mask:"url(#mask0_1135_15829)",children:[e.jsx("path",{d:"M9.99297 18.9587C5.0513 18.9587 1.04297 14.942 1.04297 10.0003C1.04297 5.05866 5.05964 1.04199 10.0013 1.04199C14.943 1.04199 18.9596 5.05866 18.9596 10.0003C18.9596 10.5003 18.918 11.0087 18.8346 11.5003C18.7763 11.842 18.4596 12.0753 18.1096 12.0087C17.768 11.9503 17.543 11.6253 17.6013 11.2837C17.6763 10.8587 17.7096 10.4253 17.7096 10.0003C17.7096 5.75033 14.2513 2.29199 10.0013 2.29199C5.7513 2.29199 2.29297 5.75033 2.29297 10.0003C2.29297 14.2503 5.7513 17.7087 10.0013 17.7087C10.6013 17.7087 11.193 17.642 11.768 17.5003C12.093 17.4253 12.443 17.6253 12.518 17.967C12.6013 18.3003 12.393 18.642 12.0513 18.717C11.3846 18.8753 10.693 18.9587 9.99297 18.9587Z",fill:"currentColor"}),e.jsx("path",{d:"M13.3346 10.625H6.66797C6.3263 10.625 6.04297 10.3417 6.04297 10C6.04297 9.65833 6.3263 9.375 6.66797 9.375H13.3346C13.6763 9.375 13.9596 9.65833 13.9596 10C13.9596 10.3417 13.6763 10.625 13.3346 10.625Z",fill:"currentColor"}),e.jsx("path",{d:"M10 13.9587C9.65833 13.9587 9.375 13.6753 9.375 13.3337V6.66699C9.375 6.32533 9.65833 6.04199 10 6.04199C10.3417 6.04199 10.625 6.32533 10.625 6.66699V13.3337C10.625 13.6753 10.3417 13.9587 10 13.9587Z",fill:"currentColor"}),e.jsx("path",{d:"M15.7085 18.7834C15.3585 18.7834 15.0669 18.5417 15.0002 18.2084L14.7752 17.2251C14.6669 16.7417 14.2835 16.3667 13.8085 16.2584L12.8085 16.0251C12.4752 15.9501 12.2419 15.6584 12.2502 15.3167C12.2585 14.9751 12.4919 14.6751 12.8252 14.6084L13.8085 14.3834C14.2835 14.2751 14.6669 13.8917 14.7752 13.4167L15.0085 12.4167C15.0835 12.0917 15.3752 11.8584 15.7169 11.8584C16.0669 11.8584 16.3585 12.1001 16.4252 12.4334L16.6502 13.4167C16.7585 13.8917 17.1419 14.2751 17.6169 14.3834L18.6169 14.6167C18.9419 14.6917 19.1835 14.9834 19.1752 15.3251C19.1752 15.6667 18.9419 15.9584 18.6085 16.0334L17.6169 16.2584C17.1335 16.3667 16.7585 16.7501 16.6502 17.2251L16.4169 18.2251C16.3419 18.5501 16.0502 18.7834 15.7085 18.7834ZM14.7835 15.3167C15.1669 15.5417 15.4835 15.8584 15.7085 16.2417C15.9335 15.8584 16.2502 15.5417 16.6335 15.3167C16.2502 15.0917 15.9335 14.7751 15.7085 14.3917C15.4835 14.7751 15.1669 15.0917 14.7835 15.3167Z",fill:"currentColor"})]})]}),xs=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsxs("g",{clipPath:"url(#clip0_1314_55824)",children:[e.jsx("mask",{id:"mask0_1314_55824",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("path",{d:"M19.5 0.5V19.5H0.5V0.5H19.5Z",fill:"white",stroke:"white"})}),e.jsxs("g",{mask:"url(#mask0_1314_55824)",children:[e.jsx("path",{d:"M13.2839 19.4583C12.9339 19.4583 12.6422 19.225 12.5672 18.8833L12.3339 17.8667C12.2172 17.3667 11.8255 16.975 11.3339 16.8583L10.3089 16.625C9.98385 16.5583 9.74219 16.2583 9.74219 15.9167C9.74219 15.575 9.97552 15.275 10.3172 15.2L11.3255 14.9667C11.8255 14.85 12.2172 14.4583 12.3339 13.9667L12.5672 12.9417C12.6422 12.6083 12.9339 12.375 13.2755 12.375C13.6255 12.375 13.9172 12.6167 13.9839 12.95L14.2172 13.9583C14.3339 14.4583 14.7255 14.85 15.2172 14.9667L16.2422 15.2C16.5672 15.2667 16.8089 15.5667 16.8089 15.9083C16.8089 16.25 16.5755 16.55 16.2422 16.625L15.2255 16.8583C14.7255 16.975 14.3339 17.3667 14.2172 17.8583L13.9755 18.8833C13.9089 19.2083 13.6089 19.45 13.2672 19.45L13.2839 19.4583ZM12.3005 15.9333C12.7089 16.1667 13.0505 16.5083 13.2755 16.9167C13.5089 16.5083 13.8505 16.1667 14.2589 15.9417C13.8505 15.7083 13.5089 15.3667 13.2839 14.9583C13.0505 15.3667 12.7089 15.7083 12.3005 15.9333Z",fill:"currentColor"}),e.jsx("path",{d:"M8.88331 18.4586C8.88331 18.4586 8.82498 18.4586 8.79165 18.4586C7.94165 18.3419 7.11665 18.0919 6.33331 17.7169C6.20831 17.6586 5.95832 17.6253 5.84165 17.6503L5.65832 17.6919C5.09998 17.8253 4.28331 18.0253 3.59165 18.1919C3.02498 18.3336 2.49165 18.2086 2.14165 17.8586C1.79165 17.5086 1.66665 16.9753 1.80832 16.4003L2.34998 14.1503C2.37498 14.0419 2.34998 13.8003 2.28331 13.6669C1.53331 12.0919 1.28331 10.3253 1.56665 8.5586C2.14998 5.02525 5.02498 2.15025 8.55832 1.56692C11.35 1.11692 14.075 1.99192 16.0416 3.96692C18.0083 5.94192 18.875 8.66693 18.425 11.4419C18.2833 12.2919 18.025 13.1086 17.65 13.8669C17.5 14.1753 17.125 14.3003 16.8166 14.1503C16.5083 14.0003 16.3833 13.6253 16.5333 13.3169C16.85 12.6669 17.075 11.9669 17.1916 11.2419C17.5833 8.86693 16.8416 6.53359 15.1583 4.85025C13.475 3.16692 11.1416 2.41692 8.75832 2.80025C5.74998 3.30025 3.29998 5.75025 2.80831 8.76693C2.56665 10.2753 2.77498 11.7919 3.41665 13.1336C3.56665 13.4503 3.68332 14.0003 3.56665 14.4586L3.02498 16.7003C2.98331 16.8836 3.01665 16.9669 3.02498 16.9753C3.03332 16.9836 3.11665 17.0253 3.29998 16.9753C3.99998 16.8086 4.80832 16.6169 5.36665 16.4836L5.55832 16.4336C5.95832 16.3419 6.49998 16.4086 6.86665 16.5836C7.53332 16.9003 8.24165 17.1086 8.96665 17.2086C9.30832 17.2586 9.54165 17.5753 9.49998 17.9169C9.45831 18.2253 9.19165 18.4586 8.88331 18.4586Z",fill:"currentColor"}),e.jsx("path",{d:"M14.5246 8.92515C14.2746 8.92515 14.0329 8.76681 13.9413 8.51681C13.5246 7.3918 12.6413 6.50013 11.5163 6.0668C11.1913 5.9418 11.0329 5.58346 11.1579 5.25846C11.2829 4.93346 11.6496 4.77513 11.9663 4.90013C13.4163 5.4668 14.5663 6.62513 15.1079 8.08346C15.2329 8.40848 15.0663 8.76681 14.7413 8.89181C14.6663 8.91681 14.5996 8.92515 14.5246 8.92515Z",fill:"currentColor"})]})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1314_55824",children:e.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),hn=({size:t,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 1.5a.5.5 0 0 1 .5.5v6.793l2.146-2.147a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L5.5 8.793V2a.5.5 0 0 1 .5-.5Z",clipRule:"evenodd"})}),us=j.forwardRef(hn),mn=({size:t,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.267 1h7.466c.264 0 .496 0 .678.016.174.016.413.053.607.213a1 1 0 0 1 .363.81c-.01.252-.142.455-.247.595a8.283 8.283 0 0 1-.44.516L7.826 6.356l-.074.084-.001.001v.002l-.001.113v2.693c0 .068.002.21-.047.344a.75.75 0 0 1-.199.293c-.105.095-.238.147-.302.172l-.018.007-1.714.685c-.08.032-.167.067-.245.09a.764.764 0 0 1-.378.025.75.75 0 0 1-.472-.32.764.764 0 0 1-.118-.36 3.036 3.036 0 0 1-.007-.26v-3.37l-.001-.112v-.002h-.001a3.066 3.066 0 0 0-.075-.085L1.32 3.166l-.015-.016c-.176-.197-.33-.37-.44-.516C.762 2.494.63 2.291.62 2.04a1 1 0 0 1 .362-.811c.194-.16.434-.197.608-.213C1.771 1 2.002 1 2.267 1Zm-.615 1.015.016.022c.078.106.202.244.398.463l2.853 3.189.015.017c.06.066.133.148.188.246a1 1 0 0 1 .104.272c.024.11.024.22.024.308v3.229l1.5-.6V6.532c0-.088 0-.199.024-.308a1 1 0 0 1 .104-.272c.055-.098.129-.18.187-.246l.016-.017L9.934 2.5a7.943 7.943 0 0 0 .414-.485l-.027-.003A7.924 7.924 0 0 0 9.711 2H2.289a7.925 7.925 0 0 0-.637.015Z",clipRule:"evenodd"})}),hs=j.forwardRef(mn),fn=({size:t,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:s.strokeWidth||1,d:"m18.67 18.67 2.22-1.11v-2.78m-6.67-5L12 10.89l2.22-1.11ZM12 10.89 9.78 9.78 12 10.89Zm0 0v2.78-2.78Zm8.89-4.45-2.22 1.11 2.22-1.11Zm0 0-2.22-1.11 2.22 1.11Zm0 0v2.78-2.78Zm-6.67-3.33L12 2 9.78 3.11h4.44ZM3.11 6.44l2.22-1.11-2.22 1.11Zm0 0 2.22 1.11-2.22-1.11Zm0 0v2.78-2.78ZM12 22l-2.22-1.11L12 22Zm0 0 2.22-1.11L12 22Zm0 0v-2.78V22Zm-6.67-3.33-2.22-1.11v-2.78l2.22 3.89Z"})}),pn=j.forwardRef(fn),gn=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 27 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{d:"M23.34 25.005L26.67 23.34V19.17M16.665 11.67L13.335 13.335M13.335 13.335L10.005 11.67M13.335 13.335V17.505M26.67 6.66L23.34 8.325M26.67 6.66L23.34 4.995M26.67 6.66V10.83M16.665 1.665L13.335 0L10.005 1.665H16.665ZM0 6.66L3.33 4.995M0 6.66L3.33 8.325M0 6.66V10.83M13.335 30L10.005 28.335M13.335 30L16.665 28.335M13.335 30V25.83M3.33 25.005L0 23.34V19.17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),bn=({size:t,...s},r)=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:t,height:t,fill:"none",ref:r,...s,children:[e.jsx("g",{clipPath:"url(#a)",children:e.jsx("path",{fill:"currontColor",fillRule:"evenodd",d:"M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM.665 8a7.333 7.333 0 1 1 14.667 0A7.333 7.333 0 0 1 .666 8Z",clipRule:"evenodd"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"a",children:e.jsx("path",{fill:"#fff",d:"M0 0h16v16H0z"})})})]}),jn=j.forwardRef(bn),vn=({title:t,titleId:s,size:r,...a},n)=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:r,height:r,fill:"none",ref:n,"aria-labelledby":s,...a,children:[t?e.jsx("title",{id:s,children:t}):null,e.jsxs("g",{clipPath:"url(#a)",children:[e.jsx("mask",{id:"b",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",d:"M24 0H0v24h24V0Z"})}),e.jsxs("g",{fill:"#fff",mask:"url(#b)",children:[e.jsx("path",{d:"M11.99 22.75C6.06 22.75 1.25 17.93 1.25 12S6.07 1.25 12 1.25 22.75 6.07 22.75 12c0 .6-.05 1.21-.15 1.8-.07.41-.45.69-.87.61a.75.75 0 0 1-.61-.87c.09-.51.13-1.03.13-1.54 0-5.1-4.15-9.25-9.25-9.25S2.75 6.9 2.75 12 6.9 21.25 12 21.25c.72 0 1.43-.08 2.12-.25.39-.09.81.15.9.56.1.4-.15.81-.56.9-.8.19-1.63.29-2.47.29Z"}),e.jsx("path",{d:"M16 12.75H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75Z"}),e.jsx("path",{d:"M12 16.75c-.41 0-.75-.34-.75-.75V8c0-.41.34-.75.75-.75s.75.34.75.75v8c0 .41-.34.75-.75.75ZM18.85 22.54a.86.86 0 0 1-.85-.69l-.27-1.18c-.13-.58-.59-1.03-1.16-1.16l-1.2-.28a.848.848 0 0 1-.67-.85c.01-.41.29-.77.69-.85l1.18-.27c.57-.13 1.03-.59 1.16-1.16l.28-1.2c.09-.39.44-.67.85-.67.42 0 .77.29.85.69l.27 1.18c.13.57.59 1.03 1.16 1.16l1.2.28c.39.09.68.44.67.85 0 .41-.28.76-.68.85l-1.19.27c-.58.13-1.03.59-1.16 1.16l-.28 1.2c-.09.39-.44.67-.85.67Zm-1.11-4.16c.46.27.84.65 1.11 1.11.27-.46.65-.84 1.11-1.11-.46-.27-.84-.65-1.11-1.11-.27.46-.65.84-1.11 1.11Z"})]})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"a",children:e.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),wn=j.forwardRef(vn),ie=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.74408 2.74408C3.06951 2.41864 3.59715 2.41864 3.92259 2.74408L10 8.82149L16.0774 2.74408C16.4028 2.41864 16.9305 2.41864 17.2559 2.74408C17.5814 3.06952 17.5814 3.59715 17.2559 3.92259L11.1785 10L17.2559 16.0774C17.5814 16.4028 17.5814 16.9305 17.2559 17.2559C16.9305 17.5814 16.4028 17.5814 16.0774 17.2559L10 11.1785L3.92259 17.2559C3.59715 17.5814 3.06951 17.5814 2.74408 17.2559C2.41864 16.9305 2.41864 16.4028 2.74408 16.0774L8.82149 10L2.74408 3.92259C2.41864 3.59715 2.41864 3.06951 2.74408 2.74408Z",fill:"currentColor"})}),ms=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 43 43",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsxs("g",{clipPath:"url(#clip0_50_31011)",children:[e.jsx("path",{d:"M33.9412 3.62061H14.6738V11.6106H38.0563V7.73402C38.0563 5.46567 36.2102 3.62061 33.9412 3.62061Z",fill:"#CED9F9"}),e.jsx("path",{d:"M23.0352 12.8403H0.5V5.42636C0.5 2.70972 2.71068 0.5 5.42828 0.5H12.6336C13.3497 0.5 14.0396 0.650925 14.6664 0.934509C15.5418 1.32896 16.2939 1.97913 16.8213 2.8286L23.0352 12.8403Z",fill:"#1640C1"}),e.jsx("path",{d:"M42.5 14.4999V38.3812C42.5 40.6525 40.6511 42.4998 38.3789 42.4998H4.62111C2.34891 42.4998 0.5 40.6525 0.5 38.3812V10.3804H38.3789C40.6511 10.3804 42.5 12.2283 42.5 14.4999Z",fill:"#2354E6"}),e.jsx("path",{d:"M42.5 14.4999V38.3812C42.5 40.6525 40.6511 42.4998 38.3789 42.4998H21.5V10.3804H38.3789C40.6511 10.3804 42.5 12.2283 42.5 14.4999Z",fill:"#1849D6"}),e.jsx("path",{d:"M32.5471 26.44C32.5471 32.5325 27.5909 37.4889 21.4991 37.4889C15.4073 37.4889 10.4512 32.5325 10.4512 26.44C10.4512 20.3486 15.4073 15.3921 21.4991 15.3921C27.5909 15.3921 32.5471 20.3486 32.5471 26.44Z",fill:"#E7ECFC"}),e.jsx("path",{d:"M32.5479 26.44C32.5479 32.5325 27.5918 37.4889 21.5 37.4889V15.3921C27.5918 15.3921 32.5479 20.3486 32.5479 26.44Z",fill:"#CED9F9"}),e.jsx("path",{d:"M25.0612 26.5753C24.8308 26.7704 24.5485 26.8656 24.2688 26.8656C23.9185 26.8656 23.5705 26.7173 23.327 26.4282L22.7307 25.7213V30.3494C22.7307 31.0287 22.1795 31.5799 21.5002 31.5799C20.8209 31.5799 20.2698 31.0287 20.2698 30.3494V25.7213L19.6734 26.4282C19.2344 26.9476 18.4587 27.014 17.9392 26.5753C17.4201 26.1373 17.3535 25.3612 17.7915 24.8418L20.2271 21.9543C20.5447 21.5788 21.008 21.3628 21.5002 21.3628C21.9924 21.3628 22.4558 21.5788 22.7733 21.9543L25.2089 24.8418C25.647 25.3612 25.5803 26.1373 25.0612 26.5753Z",fill:"#6C8DEF"}),e.jsx("path",{d:"M25.061 26.5753C24.8306 26.7704 24.5483 26.8656 24.2686 26.8656C23.9183 26.8656 23.5703 26.7173 23.3268 26.4282L22.7305 25.7213V30.3494C22.7305 31.0287 22.1793 31.5799 21.5 31.5799V21.3628C21.9922 21.3628 22.4555 21.5788 22.7731 21.9543L25.2087 24.8418C25.6467 25.3612 25.5801 26.1373 25.061 26.5753Z",fill:"#3B67E9"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_50_31011",children:e.jsx("rect",{width:"42",height:"42",fill:"white",transform:"translate(0.5 0.5)"})})})]}),it=({size:t=16,className:s,...r})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:e.jsx("path",{d:"M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM7 7C6.58579 7 6.25 7.33579 6.25 7.75C6.25 8.16421 6.58579 8.5 7 8.5H7.25293C7.41287 8.5 7.53176 8.64856 7.49707 8.80469L7.03809 10.8701C6.79522 11.963 7.62751 13 8.74707 13H9C9.41421 13 9.75 12.6642 9.75 12.25C9.75 11.8358 9.41421 11.5 9 11.5H8.74707C8.58713 11.5 8.46824 11.3514 8.50293 11.1953L8.96191 9.12988C9.20478 8.03698 8.37249 7 7.25293 7H7ZM8 3C7.44771 3 7 3.44772 7 4C7 4.55228 7.44771 5 8 5C8.55228 5 9 4.55228 9 4C9 3.44772 8.55228 3 8 3Z",fill:"currentColor"})}),fs=({size:t=12,...s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 6C10.5 6.31066 10.2482 6.5625 9.9375 6.5625L3.42049 6.5625L5.83525 8.97725C6.05492 9.19692 6.05492 9.55308 5.83525 9.77275C5.61558 9.99242 5.25942 9.99242 5.03975 9.77275L1.66475 6.39775C1.44508 6.17808 1.44508 5.82192 1.66475 5.60225L5.03975 2.22725C5.25942 2.00758 5.61558 2.00758 5.83525 2.22725C6.05492 2.44692 6.05492 2.80308 5.83525 3.02275L3.4205 5.4375L9.9375 5.4375C10.2482 5.4375 10.5 5.68934 10.5 6Z",fill:"#22262E"})}),ps=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{d:"M11.4736 10.0004L15.451 13.9779L13.9779 15.451L10.0004 11.4736L6.02295 15.451L4.54981 13.9779L8.52728 10.0004L4.5498 6.02294L6.02294 4.5498L10.0004 8.52728L13.9779 4.5498L15.451 6.02294L11.4736 10.0004Z",className:"fill-med-em"})}),me=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:t,className:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11 9V7H13V9H11ZM11 17V11H13V17H11Z",fill:"currentColor"})}),ot=({size:t=24,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M12.0002 13.4806V13.2249C12.0002 12.3967 12.5118 11.9583 13.0233 11.6051C13.5227 11.2641 14.0219 10.8256 14.0219 10.0218C14.0219 8.9013 13.1207 8 12.0002 8C10.8797 8 9.97852 8.9013 9.97852 10.0218",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11.9941 16.3909H12.0051",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Cn=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M18.3337 13.9498V3.8915C18.3337 2.8915 17.517 2.14983 16.5253 2.23317H16.4753C14.7253 2.38317 12.067 3.27483 10.5837 4.20817L10.442 4.29983C10.2003 4.44983 9.80033 4.44983 9.55866 4.29983L9.35033 4.17483C7.86699 3.24983 5.21699 2.3665 3.46699 2.22483C2.47533 2.1415 1.66699 2.8915 1.66699 3.88317V13.9498C1.66699 14.7498 2.31699 15.4998 3.11699 15.5998L3.35866 15.6332C5.16699 15.8748 7.95866 16.7915 9.55866 17.6665L9.59199 17.6832C9.81699 17.8082 10.1753 17.8082 10.392 17.6832C11.992 16.7998 14.792 15.8748 16.6087 15.6332L16.8837 15.5998C17.6837 15.4998 18.3337 14.7498 18.3337 13.9498Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 4.57495V17.075",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.45801 7.07495H4.58301",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7.08301 9.57495H4.58301",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),yn=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M7.08366 15.808H6.66699C3.33366 15.808 1.66699 14.9747 1.66699 10.808V6.64136C1.66699 3.30802 3.33366 1.64136 6.66699 1.64136H13.3337C16.667 1.64136 18.3337 3.30802 18.3337 6.64136V10.808C18.3337 14.1414 16.667 15.808 13.3337 15.808H12.917C12.6587 15.808 12.4087 15.933 12.2503 16.1414L11.0003 17.808C10.4503 18.5414 9.55032 18.5414 9.00032 17.808L7.75032 16.1414C7.61698 15.958 7.31699 15.808 7.08366 15.808Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66667 7.25L5 8.91667L6.66667 10.5833",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.333 7.25L14.9997 8.91667L13.333 10.5833",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10.8337 6.9751L9.16699 10.8585",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),Nn=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M18.3337 12.5001V7.50008C18.3337 3.33341 16.667 1.66675 12.5003 1.66675H7.50033C3.33366 1.66675 1.66699 3.33341 1.66699 7.50008V12.5001C1.66699 16.6667 3.33366 18.3334 7.50033 18.3334H12.5003C16.667 18.3334 18.3337 16.6667 18.3337 12.5001Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.09961 5.92529H17.8996",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7.09961 1.75854V5.80854",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M12.9004 1.75854V5.43354",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8.125 12.0416V11.0416C8.125 9.75827 9.03333 9.23327 10.1417 9.87493L11.0083 10.3749L11.875 10.8749C12.9833 11.5166 12.9833 12.5666 11.875 13.2083L11.0083 13.7083L10.1417 14.2083C9.03333 14.8499 8.125 14.3249 8.125 13.0416V12.0416V12.0416Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),kn=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M15.833 13.3333V5.41667C15.833 4.5 15.083 3.75 14.1663 3.75H9.58301",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11.667 1.66675L9.16699 3.75008L11.667 5.83341",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M15.833 18.3333C17.2137 18.3333 18.333 17.214 18.333 15.8333C18.333 14.4525 17.2137 13.3333 15.833 13.3333C14.4523 13.3333 13.333 14.4525 13.333 15.8333C13.333 17.214 14.4523 18.3333 15.833 18.3333Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.16699 6.66675V14.5834C4.16699 15.5001 4.91699 16.2501 5.83366 16.2501H10.417",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8.33301 18.3334L10.833 16.2501L8.33301 14.1667",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.16699 6.66675C5.5477 6.66675 6.66699 5.54746 6.66699 4.16675C6.66699 2.78604 5.5477 1.66675 4.16699 1.66675C2.78628 1.66675 1.66699 2.78604 1.66699 4.16675C1.66699 5.54746 2.78628 6.66675 4.16699 6.66675Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Sn=({size:t=20,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("path",{d:"M16.6667 11.6666C17.5871 11.6666 18.3333 10.9204 18.3333 9.99992C18.3333 9.07944 17.5871 8.33325 16.6667 8.33325C15.7462 8.33325 15 9.07944 15 9.99992C15 10.9204 15.7462 11.6666 16.6667 11.6666Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.6667 5.00008C17.5871 5.00008 18.3333 4.25389 18.3333 3.33341C18.3333 2.41294 17.5871 1.66675 16.6667 1.66675C15.7462 1.66675 15 2.41294 15 3.33341C15 4.25389 15.7462 5.00008 16.6667 5.00008Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.6667 18.3333C17.5871 18.3333 18.3333 17.5871 18.3333 16.6667C18.3333 15.7462 17.5871 15 16.6667 15C15.7462 15 15 15.7462 15 16.6667C15 17.5871 15.7462 18.3333 16.6667 18.3333Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3.33366 11.6666C4.25413 11.6666 5.00033 10.9204 5.00033 9.99992C5.00033 9.07944 4.25413 8.33325 3.33366 8.33325C2.41318 8.33325 1.66699 9.07944 1.66699 9.99992C1.66699 10.9204 2.41318 11.6666 3.33366 11.6666Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 10H15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M15.0003 3.33325H11.667C10.0003 3.33325 9.16699 4.16659 9.16699 5.83325V14.1666C9.16699 15.8333 10.0003 16.6666 11.667 16.6666H15.0003",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),gs=t=>e.jsxs("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsxs("g",{clipPath:"url(#clip0_1562_62901)",children:[e.jsx("mask",{id:"mask0_1562_62901",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:e.jsx("path",{d:"M20.418 0H0.417969V20H20.418V0Z",fill:"white"})}),e.jsxs("g",{mask:"url(#mask0_1562_62901)",children:[e.jsx("path",{d:"M14.3001 16.2424C13.9501 16.2424 13.6668 16.0091 13.5918 15.6758L13.3751 14.7341C13.2751 14.2841 12.9168 13.9341 12.4751 13.8258L11.5251 13.6008C11.2001 13.5341 10.9668 13.2424 10.9668 12.8924C10.9668 12.5424 11.2001 12.2591 11.5418 12.1841L12.4835 11.9674C12.9335 11.8674 13.2835 11.5091 13.3918 11.0674L13.6168 10.1091C13.6835 9.78411 13.9751 9.55078 14.3168 9.55078C14.6251 9.55078 14.9501 9.78411 15.0251 10.1174L15.2418 11.0674C15.3418 11.5174 15.7001 11.8674 16.1418 11.9758L17.1001 12.2008C17.4251 12.2674 17.6585 12.5591 17.6585 12.9091C17.6585 13.2591 17.4251 13.5424 17.1001 13.6174L16.1501 13.8341C15.7001 13.9341 15.3501 14.2924 15.2418 14.7341L15.0168 15.6841C14.9501 16.0091 14.6501 16.2424 14.3001 16.2424ZM13.4751 12.9091C13.8168 13.1174 14.1001 13.4008 14.3085 13.7424C14.5168 13.4008 14.8001 13.1174 15.1418 12.9174C14.8001 12.7091 14.5168 12.4258 14.3085 12.0841C14.1001 12.4258 13.8168 12.7091 13.4751 12.9174V12.9091Z",fill:"currentColor"}),e.jsx("path",{d:"M4.91727 18.1171C3.98394 18.1171 3.40061 17.8088 3.02561 17.4338C2.29227 16.7005 1.77561 15.1421 3.42561 11.8338L4.15061 10.3921C4.24227 10.2005 4.24227 9.80047 4.15061 9.6088L3.42561 8.15881C1.76727 4.85881 2.29227 3.29214 3.02561 2.55881C3.75894 1.82548 5.31727 1.30048 8.62561 2.95881L15.7589 6.52548C17.9589 7.62548 18.9423 9.3338 18.3173 10.9838C18.1923 11.3088 17.8339 11.4671 17.5089 11.3505C17.1839 11.2255 17.0256 10.8671 17.1423 10.5421C17.5256 9.52547 16.7923 8.44214 15.1923 7.64214L8.05894 4.07548C6.05894 3.07548 4.50894 2.84214 3.90061 3.44214C3.29227 4.04214 3.53394 5.60048 4.53394 7.59214L5.25894 9.04214C5.52561 9.5838 5.52561 10.4005 5.25894 10.9421L4.53394 12.3838C3.53394 14.3838 3.29227 15.9338 3.90061 16.5338C4.50061 17.1338 6.05894 16.9005 8.05894 15.9005L10.3923 14.7338C10.7006 14.5838 11.0756 14.7005 11.2339 15.0171C11.3923 15.3255 11.2589 15.7005 10.9506 15.8588L8.61727 17.0255C7.00894 17.8338 5.80894 18.1171 4.91727 18.1171Z",fill:"currentColor"}),e.jsx("path",{d:"M9.45117 10.625H4.95117C4.60951 10.625 4.32617 10.3417 4.32617 10C4.32617 9.65833 4.60951 9.375 4.95117 9.375H9.45117C9.79284 9.375 10.0762 9.65833 10.0762 10C10.0762 10.3417 9.79284 10.625 9.45117 10.625Z",fill:"currentColor"})]})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1562_62901",children:e.jsx("rect",{width:"20",height:"20",fill:"white",transform:"translate(0.417969)"})})})]}),Ln=({size:t,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",ref:r,...s,children:e.jsx("path",{fillRule:"evenodd",d:"M15.75 4.5a3 3 0 1 1 .825 2.066l-8.421 4.679a3.002 3.002 0 0 1 0 1.51l8.421 4.679a3 3 0 1 1-.729 1.31l-8.421-4.678a3 3 0 1 1 0-4.132l8.421-4.679a3 3 0 0 1-.096-.755Z",clipRule:"evenodd"})}),zn=j.forwardRef(Ln),Mn=({size:t=36,className:s})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("defs",{children:e.jsxs("filter",{id:"filter0_dd_50_34857",x:"0",y:"0",width:"36",height:"36",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feMorphology",{radius:"2",operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_50_34857"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0392157 0 0 0 0 0.0496732 0 0 0 0 0.0705882 0 0 0 0.06 0"}),e.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_50_34857"}),e.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feMorphology",{radius:"2",operator:"erode",in:"SourceAlpha",result:"effect2_dropShadow_50_34857"}),e.jsx("feOffset",{dy:"4"}),e.jsx("feGaussianBlur",{stdDeviation:"4"}),e.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0392157 0 0 0 0 0.0496732 0 0 0 0 0.0705882 0 0 0 0.1 0"}),e.jsx("feBlend",{mode:"normal",in2:"effect1_dropShadow_50_34857",result:"effect2_dropShadow_50_34857"}),e.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_50_34857",result:"shape"})]})}),e.jsxs("g",{filter:"url(#filter0_dd_50_34857)",children:[e.jsx("circle",{cx:"18",cy:"18",r:"12",fill:"var(--slider-thumb-bg, #FFFFFF)"}),e.jsx("circle",{cx:"18",cy:"18",r:"11.5",stroke:"var(--slider-thumb-stroke, #000000)"})]})]}),In=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:Math.round(t*.35),viewBox:"0 0 20 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{d:"M5.7021 2.31723C7.41751 0.944899 8.27522 0.258733 9.24878 0.0725807C9.7451 -0.0223194 10.2549 -0.0223194 10.7512 0.0725807C11.7248 0.258733 12.5825 0.944898 14.2979 2.31723L20 6.87891H0L5.7021 2.31723Z",fill:"var(--slider-surface-bg, #F9F9FA)"})}),Pn=({size:t=20,className:s})=>e.jsx("svg",{width:t,height:Math.round(t*.35),viewBox:"0 0 20 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{d:"M5.7021 4.56168C7.41751 5.93401 8.27522 6.62017 9.24878 6.80633C9.7451 6.90123 10.2549 6.90123 10.7512 6.80633C11.7248 6.62017 12.5825 5.93401 14.2979 4.56168L20 0H0L5.7021 4.56168Z",fill:"var(--slider-surface-bg, #F9F9FA)"})}),Re=({width:t=165,height:s=24,className:r})=>e.jsxs("svg",{width:t,height:s,viewBox:"0 0 165 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[e.jsx("path",{d:"M33.2926 22.0173C31.4874 20.7152 30.4812 18.7916 30.3333 16.2762H38.1162C38.2346 17.6079 38.8265 18.2885 39.8918 18.2885C40.2765 18.2885 40.6316 18.1998 40.898 18.0222C41.1643 17.8446 41.3123 17.5487 41.3123 17.1344C41.3123 16.5721 41.0164 16.1282 40.4245 15.8027C39.8326 15.4476 38.9152 15.0629 37.6427 14.619C36.1335 14.0863 34.9202 13.5832 33.9436 13.0801C32.967 12.5771 32.1384 11.8372 31.4282 10.8607C30.718 9.88409 30.3924 8.64118 30.3924 7.13193C30.3924 5.62269 30.7771 4.32059 31.5762 3.25524C32.3456 2.18989 33.4109 1.39088 34.7722 0.828607C36.1335 0.266338 37.6427 0 39.3295 0C42.2001 0 44.4492 0.651048 46.136 1.98274C47.8228 3.31443 48.7106 5.1492 48.7993 7.54624H40.9276C40.898 6.89519 40.75 6.4217 40.4245 6.12577C40.1286 5.82984 39.7439 5.71147 39.3 5.71147C39.004 5.71147 38.7377 5.82984 38.5305 6.03699C38.3234 6.24414 38.2346 6.54007 38.2346 6.92478C38.2346 7.45746 38.5305 7.90136 39.1224 8.22688C39.7143 8.582 40.6316 8.96671 41.9041 9.46979C43.3838 10.0321 44.5971 10.5351 45.5441 11.0382C46.4911 11.5413 47.3197 12.2515 48.0299 13.1393C48.7402 14.0271 49.0953 15.1813 49.0953 16.5425C49.0953 17.963 48.7402 19.2651 48.0299 20.3896C47.3197 21.5142 46.3135 22.402 44.9522 23.053C43.6205 23.7041 42.0225 24 40.1582 24C37.406 23.9704 35.1273 23.3194 33.2926 22.0173Z",fill:"currentColor"}),e.jsx("path",{d:"M65.7858 23.7633L58.9794 13.6424V23.7633H51.6995V0.41433H59.009V10.2392L65.697 0.41433H73.9831L65.9337 11.6005L74.5157 23.7633H65.7858Z",fill:"currentColor"}),e.jsx("path",{d:"M91.5613 20.2121H83.7783L82.6241 23.7633H74.9299L83.4823 0.41433H91.9164L100.41 23.7633H92.6858L91.5613 20.2121ZM89.7857 14.7078L87.6846 8.19731L85.5834 14.7078H89.7857Z",fill:"currentColor"}),e.jsx("path",{d:"M109.376 18.1998H116.419V23.7633H102.037V0.41433H109.347V18.1998H109.376Z",fill:"currentColor"}),e.jsx("path",{d:"M133.731 20.2121H125.948L124.794 23.7633H117.1L125.652 0.41433H134.087L142.58 23.7633H134.856L133.731 20.2121ZM131.956 14.7078L129.855 8.19731L127.754 14.7078H131.956Z",fill:"currentColor"}),e.jsx("path",{d:"M155.985 23.7633L151.605 15.3884H151.576V23.7633H144.266V0.41433H155.157C157.051 0.41433 158.649 0.739853 160.01 1.42049C161.342 2.10114 162.348 2.98893 163.028 4.14306C163.709 5.29719 164.035 6.59929 164.035 8.04935C164.035 9.61778 163.591 11.0087 162.732 12.1924C161.874 13.4057 160.602 14.2639 159.004 14.7966L164.035 23.7633H155.985ZM151.576 10.5056H154.476C155.186 10.5056 155.719 10.3576 156.044 10.0321C156.4 9.70656 156.577 9.20348 156.577 8.52284C156.577 7.90138 156.4 7.42789 156.044 7.07277C155.689 6.71766 155.157 6.5401 154.476 6.5401H151.576V10.5056Z",fill:"currentColor"}),e.jsx("path",{d:"M0.0593784 0.562271L0.0297852 9.32183L7.19131 9.35142L7.16172 16.5129L14.2345 16.5425L14.2049 23.7041L23.0828 23.7633L23.1716 0.65105L0.0593784 0.562271Z",fill:"currentColor"}),e.jsx("path",{d:"M7.13214 23.6745C3.16667 23.6745 -0.0293892 20.4488 0.00020386 16.4834L7.16173 16.513L7.13214 23.6745Z",fill:"currentColor"})]}),De=({width:t=26,height:s=25,className:r})=>e.jsxs("svg",{width:t,height:s,viewBox:"0 0 26 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[e.jsxs("g",{clipPath:"url(#clip0_2642_443540)",children:[e.jsx("path",{d:"M2.89524 2.84375L2.86914 10.5762L9.18445 10.6024L9.15835 16.9242L15.3954 16.9503L15.3693 23.2722L23.1982 23.3244L23.2765 2.92212L2.89524 2.84375Z",fill:"currentColor"}),e.jsx("path",{d:"M9.13314 23.2454C5.63624 23.2454 2.81783 20.398 2.84393 16.8975L9.15924 16.9236L9.13314 23.2454Z",fill:"currentColor"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_2642_443540",children:e.jsx("rect",{width:"25.7812",height:"25.0002",fill:"currentColor"})})})]}),ct=({size:t=12,...s})=>e.jsx("svg",{width:t,height:t,fill:"none",...s,viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.8125 2.625L9.1875 7L4.8125 11.375",stroke:"#5A606B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Tn=({size:t=20,className:s})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:s,viewBox:"0 0 24 24",fill:"none",children:[e.jsx("path",{d:"M6.29844 14.3999C6.29844 13.9028 6.70138 13.4999 7.19844 13.4999H7.21044C7.70749 13.4999 8.11044 13.9028 8.11044 14.3999V14.4119C8.11044 14.909 7.70749 15.3119 7.21044 15.3119H7.19844C6.70138 15.3119 6.29844 14.909 6.29844 14.4119V14.3999Z",fill:"#22262E"}),e.jsx("path",{d:"M7.19844 15.8999C6.70138 15.8999 6.29844 16.3028 6.29844 16.7999V16.8119C6.29844 17.309 6.70138 17.7119 7.19844 17.7119H7.21044C7.70749 17.7119 8.11044 17.309 8.11044 16.8119V16.7999C8.11044 16.3028 7.70749 15.8999 7.21044 15.8999H7.19844Z",fill:"#22262E"}),e.jsx("path",{d:"M8.69844 14.3999C8.69844 13.9028 9.10138 13.4999 9.59844 13.4999H9.61044C10.1075 13.4999 10.5104 13.9028 10.5104 14.3999V14.4119C10.5104 14.909 10.1075 15.3119 9.61044 15.3119H9.59844C9.10138 15.3119 8.69844 14.909 8.69844 14.4119V14.3999Z",fill:"#22262E"}),e.jsx("path",{d:"M9.59844 15.8999C9.10138 15.8999 8.69844 16.3028 8.69844 16.7999V16.8119C8.69844 17.309 9.10138 17.7119 9.59844 17.7119H9.61044C10.1075 17.7119 10.5104 17.309 10.5104 16.8119V16.7999C10.5104 16.3028 10.1075 15.8999 9.61044 15.8999H9.59844Z",fill:"#22262E"}),e.jsx("path",{d:"M11.0984 11.9999C11.0984 11.5028 11.5014 11.0999 11.9984 11.0999H12.0104C12.5075 11.0999 12.9104 11.5028 12.9104 11.9999V12.0119C12.9104 12.509 12.5075 12.9119 12.0104 12.9119H11.9984C11.5014 12.9119 11.0984 12.509 11.0984 12.0119V11.9999Z",fill:"#22262E"}),e.jsx("path",{d:"M11.9984 13.4999C11.5014 13.4999 11.0984 13.9028 11.0984 14.3999V14.4119C11.0984 14.909 11.5014 15.3119 11.9984 15.3119H12.0104C12.5075 15.3119 12.9104 14.909 12.9104 14.4119V14.3999C12.9104 13.9028 12.5075 13.4999 12.0104 13.4999H11.9984Z",fill:"#22262E"}),e.jsx("path",{d:"M11.0984 16.7999C11.0984 16.3028 11.5014 15.8999 11.9984 15.8999H12.0104C12.5075 15.8999 12.9104 16.3028 12.9104 16.7999V16.8119C12.9104 17.309 12.5075 17.7119 12.0104 17.7119H11.9984C11.5014 17.7119 11.0984 17.309 11.0984 16.8119V16.7999Z",fill:"#22262E"}),e.jsx("path",{d:"M14.3984 11.0999C13.9014 11.0999 13.4984 11.5028 13.4984 11.9999V12.0119C13.4984 12.509 13.9014 12.9119 14.3984 12.9119H14.4104C14.9075 12.9119 15.3104 12.509 15.3104 12.0119V11.9999C15.3104 11.5028 14.9075 11.0999 14.4104 11.0999H14.3984Z",fill:"#22262E"}),e.jsx("path",{d:"M13.4984 14.3999C13.4984 13.9028 13.9014 13.4999 14.3984 13.4999H14.4104C14.9075 13.4999 15.3104 13.9028 15.3104 14.3999V14.4119C15.3104 14.909 14.9075 15.3119 14.4104 15.3119H14.3984C13.9014 15.3119 13.4984 14.909 13.4984 14.4119V14.3999Z",fill:"#22262E"}),e.jsx("path",{d:"M14.3984 15.8999C13.9014 15.8999 13.4984 16.3028 13.4984 16.7999V16.8119C13.4984 17.309 13.9014 17.7119 14.3984 17.7119H14.4104C14.9075 17.7119 15.3104 17.309 15.3104 16.8119V16.7999C15.3104 16.3028 14.9075 15.8999 14.4104 15.8999H14.3984Z",fill:"#22262E"}),e.jsx("path",{d:"M15.8984 11.9999C15.8984 11.5028 16.3014 11.0999 16.7984 11.0999H16.8104C17.3075 11.0999 17.7104 11.5028 17.7104 11.9999V12.0119C17.7104 12.509 17.3075 12.9119 16.8104 12.9119H16.7984C16.3014 12.9119 15.8984 12.509 15.8984 12.0119V11.9999Z",fill:"#22262E"}),e.jsx("path",{d:"M16.7984 13.4999C16.3014 13.4999 15.8984 13.9028 15.8984 14.3999V14.4119C15.8984 14.909 16.3014 15.3119 16.7984 15.3119H16.8104C17.3075 15.3119 17.7104 14.909 17.7104 14.4119V14.3999C17.7104 13.9028 17.3075 13.4999 16.8104 13.4999H16.7984Z",fill:"#22262E"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.89844 2.3999C7.39549 2.3999 7.79844 2.80285 7.79844 3.2999V4.7999H16.1984V3.2999C16.1984 2.80285 16.6014 2.3999 17.0984 2.3999C17.5955 2.3999 17.9984 2.80285 17.9984 3.2999V4.7999H18.2984C20.121 4.7999 21.5984 6.27736 21.5984 8.0999V18.2999C21.5984 20.1224 20.121 21.5999 18.2984 21.5999H5.69844C3.8759 21.5999 2.39844 20.1224 2.39844 18.2999V8.0999C2.39844 6.27736 3.8759 4.7999 5.69844 4.7999H5.99844V3.2999C5.99844 2.80285 6.40138 2.3999 6.89844 2.3999ZM5.69844 8.9999C4.87001 8.9999 4.19844 9.67148 4.19844 10.4999V18.2999C4.19844 19.1283 4.87001 19.7999 5.69844 19.7999H18.2984C19.1269 19.7999 19.7984 19.1283 19.7984 18.2999V10.4999C19.7984 9.67148 19.1269 8.9999 18.2984 8.9999H5.69844Z",fill:"#22262E"})]}),bs=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),js=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24"}),e.jsx("path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"}),e.jsx("path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"}),e.jsx("line",{x1:"2",x2:"22",y1:"2",y2:"22"})]}),Rn=({size:t=13,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.4 12.8C9.93462 12.8 12.8 9.93462 12.8 6.4C12.8 2.86538 9.93462 0 6.4 0C2.86538 0 0 2.86538 0 6.4C0 9.93462 2.86538 12.8 6.4 12.8ZM7 3.8C7 3.46863 6.73137 3.2 6.4 3.2C6.06863 3.2 5.8 3.46863 5.8 3.8V5.8H3.8C3.46863 5.8 3.2 6.06863 3.2 6.4C3.2 6.73137 3.46863 7 3.8 7H5.8V9C5.8 9.33137 6.06863 9.6 6.4 9.6C6.73137 9.6 7 9.33137 7 9V7H9C9.33137 7 9.6 6.73137 9.6 6.4C9.6 6.06863 9.33137 5.8 9 5.8H7V3.8Z",fill:"currentColor"})}),Dn=j.forwardRef(Rn),Hn=({size:t=20,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:t,height:t,fill:"none",ref:r,...s,children:e.jsx("path",{d:"M16.6004 7.4585L11.1671 12.8918C10.5254 13.5335 9.47539 13.5335 8.83372 12.8918L3.40039 7.4585",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),dt=j.forwardRef(Hn),An=({size:t=20,...s},r)=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",ref:r,fill:"none",...s,children:e.jsx("path",{d:"M19.9201 15.0496L13.4001 8.52965C12.6301 7.75965 11.3701 7.75965 10.6001 8.52965L4.08008 15.0496",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),xt=j.forwardRef(An),vs=({size:t=20,className:s,...r})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 11",fill:"currentColor",width:t,height:t,className:s,...r,children:e.jsx("path",{d:"M7.39952 1.875L0 9.27452L1.32583 10.6003L8.72543 3.20073V9.1875H10.6004V0H1.41293V1.875H7.39952Z",fill:"currentColor"})}),ws=({size:t=16,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",width:t,height:t,className:s,...r,children:[e.jsx("path",{d:"M3.33333 6.6665C2.6 6.6665 2 7.2665 2 7.99984C2 8.73317 2.6 9.33317 3.33333 9.33317C4.06667 9.33317 4.66667 8.73317 4.66667 7.99984C4.66667 7.2665 4.06667 6.6665 3.33333 6.6665Z",stroke:"currentColor",strokeWidth:"1.2"}),e.jsx("path",{d:"M12.6668 6.6665C11.9335 6.6665 11.3335 7.2665 11.3335 7.99984C11.3335 8.73317 11.9335 9.33317 12.6668 9.33317C13.4002 9.33317 14.0002 8.73317 14.0002 7.99984C14.0002 7.2665 13.4002 6.6665 12.6668 6.6665Z",stroke:"currentColor",strokeWidth:"1.2"}),e.jsx("path",{d:"M7.99984 6.6665C7.2665 6.6665 6.6665 7.2665 6.6665 7.99984C6.6665 8.73317 7.2665 9.33317 7.99984 9.33317C8.73317 9.33317 9.33317 8.73317 9.33317 7.99984C9.33317 7.2665 8.73317 6.6665 7.99984 6.6665Z",stroke:"currentColor",strokeWidth:"1.2"})]}),Cs=({size:t=16,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",width:t,height:t,className:s,...r,children:[e.jsx("path",{d:"M8.67318 1.94687L12.6065 3.69354C13.7399 4.19354 13.7399 5.02021 12.6065 5.52021L8.67318 7.26687C8.22652 7.46687 7.49318 7.46687 7.04652 7.26687L3.11318 5.52021C1.97985 5.02021 1.97985 4.19354 3.11318 3.69354L7.04652 1.94687C7.49318 1.74688 8.22652 1.74688 8.67318 1.94687Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2 7.3335C2 7.8935 2.42 8.54016 2.93333 8.76683L7.46 10.7802C7.80667 10.9335 8.2 10.9335 8.54 10.7802L13.0667 8.76683C13.58 8.54016 14 7.8935 14 7.3335",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2 10.6665C2 11.2865 2.36667 11.8465 2.93333 12.0998L7.46 14.1132C7.80667 14.2665 8.2 14.2665 8.54 14.1132L13.0667 12.0998C13.6333 11.8465 14 11.2865 14 10.6665",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),ys=({size:t=16,className:s,...r})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",width:t,height:t,className:s,...r,children:e.jsx("path",{d:"M8.66667 1.3335L3.33333 9.3335H8L7.33333 14.6668L12.6667 6.66683H8L8.66667 1.3335Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ns=({size:t=16,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",width:t,height:t,className:s,...r,children:[e.jsx("path",{d:"M5.3335 1.3335V3.3335",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10.6665 1.3335V3.3335",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.3335 6.06006H13.6668",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M14 5.66683V11.3335C14 13.3335 13 14.6668 10.6667 14.6668H5.33333C3 14.6668 2 13.3335 2 11.3335V5.66683C2 3.66683 3 2.3335 5.33333 2.3335H10.6667C13 2.3335 14 3.66683 14 5.66683Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7.99715 9.13314H8.00314",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.52938 9.13314H5.53537",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.52938 11.1331H5.53537",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ut=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M1 4.5V3.25C1 2.005 2.005 1 3.25 1H4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7.5 1H8.75C9.995 1 11 2.005 11 3.25V4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11 8V8.75C11 9.995 9.995 11 8.75 11H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.5 11H3.25C2.005 11 1 9.995 1 8.75V7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M9 6V5M3 6H6H9H3ZM3 6V5V6ZM3 6V7V6ZM9 6V7V6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6 3H7M6 9V3V9ZM6 9H7H6ZM6 9H5H6ZM6 3H5H6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),ks=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M6.62968 1.80011L2.52468 6.14511C2.36968 6.31011 2.21968 6.63511 2.18968 6.86011L2.00468 8.48011C1.93968 9.06511 2.35968 9.46511 2.93968 9.36511L4.54968 9.09011C4.77468 9.05011 5.08968 8.88511 5.24468 8.71511L9.34968 4.37011C10.0597 3.62011 10.3797 2.76511 9.27468 1.72011C8.17468 0.685108 7.33968 1.05011 6.62968 1.80011Z",stroke:"currentColor",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.94531 2.5249C6.16031 3.9049 7.28031 4.9599 8.67031 5.0999",stroke:"currentColor",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M1.5 11H10.5",stroke:"currentColor",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),$e=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M8 6.45V8.55C8 10.3 7.3 11 5.55 11H3.45C1.7 11 1 10.3 1 8.55V6.45C1 4.7 1.7 4 3.45 4H5.55C7.3 4 8 4.7 8 6.45Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11 3.45V5.55C11 7.3 10.3 8 8.55 8H8V6.45C8 4.7 7.3 4 5.55 4H4V3.45C4 1.7 4.7 1 6.45 1H8.55C10.3 1 11 1.7 11 3.45Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),Fe=({size:t=20,className:s,...r})=>e.jsxs("svg",{width:t,height:t,viewBox:"0 0 12 12",fill:"none",className:s,xmlns:"http://www.w3.org/2000/svg",...r,children:[e.jsx("path",{d:"M10.5 2.99023C8.835 2.82523 7.16 2.74023 5.49 2.74023C4.5 2.74023 3.51 2.79023 2.52 2.89023L1.5 2.99023",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.25 2.485L4.36 1.83C4.44 1.355 4.5 1 5.345 1H6.655C7.5 1 7.565 1.375 7.64 1.835L7.75 2.485",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M9.42422 4.56982L9.09922 9.60482C9.04422 10.3898 8.99922 10.9998 7.60422 10.9998H4.39422C2.99922 10.9998 2.95422 10.3898 2.89922 9.60482L2.57422 4.56982",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.16406 8.25H6.82906",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.75 6.25H7.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),En=({size:t=19,...s})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 10 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.53953 0.0881595C9.95118 0.293984 10.118 0.794545 9.91221 1.20619L1.57887 17.8729C1.37305 18.2845 0.872487 18.4514 0.460839 18.2455C0.0491898 18.0397 -0.117664 17.5392 0.0881606 17.1275L8.42149 0.460838C8.62732 0.0491888 9.12788 -0.117665 9.53953 0.0881595Z",fill:"currentColor"})}),T=k.default.forwardRef(({variant:t="brand",hierarchy:s="primary",size:r="xs",icons:a="none",leadingIcon:n,trailingIcon:l,children:i,disabled:x=!1,className:o,isToggled:c=!1,toggledLeadingIcon:d,toggledTrailingIcon:u,borderRadius:m,color:p,loading:b=!1,...w},g)=>{const f="group inline-flex items-center justify-center font-semibold rounded-6 transition-all duration-200 focus:outline-none disabled:cursor-not-allowed",C="disabled:bg-surface-3 disabled:!text-disabled",N={brand:{primary:"bg-brand-primary-main text-white-uniform hover:bg-brand-primary-accent-3 active:bg-brand-primary-accent-3 focus:ring focus:ring-low-em",secondary:"bg-brand-primary-main-special text-white-uniform hover:bg-brand-primary-accent-special active:bg-brand-primary-accent-special focus:ring focus:ring-low-em"},neutral:{primary:"bg-surface-2 text-high-em hover:bg-surface-3 active:bg-surface-3 focus:ring focus:ring-surface-4",secondary:"text-high-em bg-transparent hover:bg-surface-2 active:bg-surface-2 focus:ring focus:ring-surface-4",tertiary:"text-high-em bg-white border border-surface-3 hover:bg-surface-2 hover:border-surface-4 active:bg-surface-2 active:border-low-em ",quaternary:"text-high-em bg-transparent border border-disabled hover:border-low-em"},danger:{primary:"bg-danger-main text-white-uniform hover:bg-danger-accent-3 active:bg-danger-accent-3 focus:ring-2 focus:ring-danger-accent-2",secondary:"text-danger-main bg-danger-accent-1 hover:bg-danger-accent-2 active:bg-danger-accent-2 focus:ring focus:ring-danger-accent-3",tertiary:"bg-transparent text-danger-main border-1 border-danger-accent-2 hover:bg-danger-accent-1 active:bg-danger-accent-1 focus:border-danger-accent-3 disabled:border-none",quaternary:"text-danger-main hover:bg-danger-accent-1 active:bg-danger-accent-2 focus:ring focus:ring-danger-accent-2 disabled:bg-surface-bg"},success:{primary:"bg-success-main text-white-uniform hover:bg-success-accent-3 focus:ring focus:ring-success-accent-2",secondary:"text-success-em bg-success-accent-1 hover:bg-success-accent-2 focus:ring focus:ring-success-accent-3",tertiary:"bg-transparent text-success-em border-1 border-success-accent-2 hover:bg-success-accent-1 focus:border-success-accent-3",quaternary:"text-success-em hover:bg-success-accent-1 focus:ring focus:ring-success-accent-2"},secondary:{primary:"bg-brand-secondary-main text-white-uniform hover:bg-brand-secondary-accent-3 active:bg-brand-secondary-accent-3 focus:ring focus:ring-surface-4"}},v=i!=null,y={xs:`text-[10px] h-11 ${v&&a!=="only"?"px-6 py-3":"aspect-square"}`,sm:`text-xs h-[34px] ${v&&a!=="only"?"px-6 py-4":"aspect-square"}`,md:`text-sm h-[42px] ${v&&a!=="only"?"px-8 py-5":"aspect-square"}`,lg:`text-base h-14 ${v&&a!=="only"?"px-9 py-6":"aspect-square"}`},M={xs:12,sm:16,md:20,lg:24},I=M[r],R={xs:{leading:"mr-2",trailing:"ml-2"},sm:{leading:"mr-3",trailing:"ml-3"},md:{leading:"mr-4",trailing:"ml-4"},lg:{leading:"mr-5",trailing:"ml-5"}},D=c&&d?d:n,A=c&&u?u:l,P=D&&k.default.isValidElement(D)?k.default.cloneElement(D,{size:I,color:"currentColor"}):null,F=A&&k.default.isValidElement(A)?k.default.cloneElement(A,{size:I,color:"currentColor"}):null,S=N[t]?.[s]??N[t]?.primary??"",Z=W.twMerge(h.clsx(f,b&&"relative",S,y[r],m&&`rounded-[${m}]`,p,C,o)),V=e.jsxs(e.Fragment,{children:[(a==="leading"||a==="both")&&P&&e.jsx("span",{className:`group-disabled:!text-disabled ${R[r].leading}`,children:P}),a!=="only"&&i,a==="only"&&P&&e.jsx("span",{className:"group-disabled:!text-disabled",children:P}),(a==="trailing"||a==="both")&&F&&e.jsx("span",{className:`group-disabled:!text-disabled ${R[r].trailing}`,children:F})]});return e.jsx("button",{ref:g,className:Z,disabled:x||b,...w,children:b?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("span",{className:"animate-spin rounded-full border-2 border-current border-t-transparent",style:{width:M[r],height:M[r]}})}),e.jsx("span",{className:"invisible inline-flex items-center",children:V})]}):V})});T.displayName="Button";const Ss=j.createContext(void 0),Ze=()=>{const t=j.useContext(Ss);if(!t)throw new Error("useAlertContext must be used within an Alert provider");return t},Vn={success:{icon:me,iconColor:"text-success-main",borderClass:"border border-success-accent-3"},warning:{icon:me,iconColor:"text-warning-main",borderClass:"border border-warning-accent-3"},error:{icon:me,iconColor:"text-danger-main",borderClass:"border border-danger-accent-3"},info:{icon:me,iconColor:"text-info-main",borderClass:"border border-info-accent-3"},default:{icon:me,iconColor:"text-high-em",borderClass:"border border-surface-3"}},Dt={success:"neutral",warning:"neutral",error:"danger",info:"neutral",default:"neutral"},Ls=({children:t,type:s="default"})=>{const[r,a]=j.useState(!1);return e.jsx(Ss.Provider,{value:{open:r,setOpen:a,type:s},children:t})};Ls.displayName="AlertDialog";const zs=({children:t})=>{const{setOpen:s}=Ze();return k.default.cloneElement(t,{onClick:r=>{t.props.onClick?.(r),s(!0)}})};zs.displayName="AlertDialogTrigger";const Ms=j.forwardRef(({className:t,children:s,...r},a)=>{const{open:n,setOpen:l,type:i}=Ze(),x=Vn[i];return e.jsx(O.Transition,{appear:!0,show:n,as:j.Fragment,children:e.jsxs(O.Dialog,{as:"div",className:"relative z-50",onClose:()=>l(!1),children:[e.jsx(O.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:e.jsx("div",{className:"fixed inset-0 bg-black-uniform/20","aria-hidden":"true"})}),e.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:e.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:e.jsx(O.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95 translate-y-4",enterTo:"opacity-100 scale-100 translate-y-0",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100 translate-y-0",leaveTo:"opacity-0 scale-95 translate-y-4",children:e.jsx(O.Dialog.Panel,{ref:a,className:h.clsx("relative bg-surface-bg rounded-[20px] max-w-[460px] w-full",x.borderClass,"shadow-xl",t),...r,children:e.jsx(Y.motion.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10,transition:{duration:.2,ease:"easeIn"}},transition:{duration:.3,ease:"easeOut"},className:"w-full px-10 pt-10 pb-11 gap-8",children:e.jsxs("div",{className:"flex items-start gap-6",children:[e.jsx("div",{className:"p-2",children:e.jsx(me,{size:24,className:h.clsx(x.iconColor),"aria-hidden":"true"})}),e.jsx("div",{className:"flex-1 min-w-0",children:s}),e.jsx("div",{className:"shrink-0",children:e.jsx(Y.motion.button,{type:"button","aria-label":"Close",onClick:()=>l(!1),className:"p-1 rounded hover:bg-surface-1 transition",whileHover:{scale:1.1},whileTap:{scale:.9},children:e.jsx(ps,{size:20})})})]})})})})})})]})})});Ms.displayName="AlertDialogContent";const Is=({children:t,className:s})=>e.jsx("div",{className:h.clsx("flex items-start",s),children:t});Is.displayName="AlertDialogHeader";const Ps=j.forwardRef(({className:t,...s},r)=>e.jsx(O.Dialog.Title,{ref:r,as:"h3",className:h.clsx("font-bold text-base text-high-em",t),...s}));Ps.displayName="AlertDialogTitle";const Ts=j.forwardRef(({className:t,...s},r)=>e.jsx(O.Dialog.Description,{ref:r,className:h.clsx("text-sm font-semibold leading-[22px] tracking-normal whitespace-pre-line text-med-em mt-2 mb-8",t),...s}));Ts.displayName="AlertDialogDescription";const Rs=({children:t,className:s})=>e.jsx("div",{className:h.clsx("mt-4 flex gap-4 mb-4",s),children:t});Rs.displayName="AlertDialogFooter";const Ds=({className:t,actionVariant:s,onClick:r,...a})=>{const{type:n,setOpen:l}=Ze(),i=s==="secondary",x=i?"neutral":Dt[n],o=Dt[n]==="danger"?"secondary":"tertiary";return e.jsx(T,{variant:x,hierarchy:o,size:"md",icons:i?void 0:"trailing",trailingIcon:e.jsx(z.ArrowRight,{}),onClick:c=>{r?.(c),l(!1)},className:h.clsx(t),...a})};Ds.displayName="AlertDialogAction";const Hs=j.forwardRef(({className:t,onClick:s,...r},a)=>{const{setOpen:n}=Ze();return e.jsx(T,{ref:a,variant:"neutral",hierarchy:"secondary",size:"md",className:h.clsx(t),onClick:l=>{s?.(l),n(!1)},...r})});Hs.displayName="AlertDialogCancel";const ce=({theme:t="surface",size:s="sm",variant:r="simple",children:a,className:n,statusState:l="success",statusSize:i="md"})=>{const x="inline-flex items-center justify-center font-medium rounded-full font-medium font-family-inter",o={surface:{simple:"bg-surface-2 text-med-em",outlined:"bg-surface-2 text-med-em border border-surface-4",status:""},warning:{simple:"bg-warning-accent-0 text-warning-em",outlined:"bg-warning-accent-0 text-warning-em border border-warning-accent-1",status:""},info:{simple:"bg-info-accent-1 text-info-em",outlined:"bg-info-accent-1 text-info-em border border-info-accent-2",status:""},success:{simple:"bg-success-accent-1 text-success-em",outlined:"bg-success-accent-1 text-success-em border border-success-accent-2",status:""},danger:{simple:"bg-danger-accent-1 text-danger-em",outlined:"bg-danger-accent-1 text-danger-em border border-danger-accent-2",status:""},disabled:{simple:"bg-surface-3 text-disabled",outlined:"bg-surface-3 text-disabled border border-text-disabled",status:""}},c={xs:"px-2 py-1 text-[10px] leading-[14px] gap-1.5 h-[22px]",sm:"px-4 py-2 text-[10px] leading-[16px] gap-1.5 h-[24px]",md:"px-5 py-2.5 text-[12px] leading-[18px] gap-2 h-[28px]",lg:"px-6 py-3 text-[12px] leading-[18px] gap-2 h-[30px]"},d={success:{bg:"bg-success-main",text:"text-white",border:"border-success-main"},disabled:{bg:"bg-surface-3",text:"text-disabled",border:"border-surface-3"},danger:{bg:"bg-danger-main",text:"text-white",border:"border-danger-main"},warning:{bg:"bg-warning-main",text:"text-white",border:"border-warning-main"}},u={xs:"size-3",sm:"size-4",md:"size-5",lg:"size-6",xl:"size-7"};if(r==="status"){const p=W.twMerge(h.clsx("rounded-full flex-shrink-0",u[i],d[l].bg,d[l].border&&`border ${d[l].border}`,n));return e.jsx("div",{className:p})}const m=W.twMerge(h.clsx(x,o[t][r],c[s],n));return e.jsx("div",{className:m,children:a&&e.jsx("span",{children:a})})},Oe=({size:t="md",imageUrl:s,initials:r,className:a,statusBadge:n,onClick:l})=>{const i={xs:"xs",sm:"xs",md:"sm",lg:"sm",xl:"md"},x={xs:"size-10 text-[10px]",sm:"size-12 text-xs",md:"size-13 text-sm",lg:"size-14 text-base",xl:"size-15 text-lg"},o=h.clsx("relative",a),c=h.clsx("rounded-full flex items-center justify-center font-bold overflow-hidden",x[t],!s&&"bg-brand-primary-main text-white-uniform",l&&"border-0 p-0 m-0 appearance-none cursor-pointer"),d={xs:"bottom-0.5 right-0.5",sm:"bottom-0.5 right-0.5",md:"bottom-1 right-1",lg:"bottom-1 right-1",xl:"bottom-2 right-2"},u=e.jsx(e.Fragment,{children:s?e.jsx("img",{src:s,alt:r||"Avatar",className:"w-full h-full object-cover"}):e.jsx("span",{children:r})});return e.jsxs("div",{className:o,children:[l?e.jsx("button",{onClick:l,type:"button",className:c,children:u}):e.jsx("div",{className:c,children:u}),n&&e.jsx("div",{className:h.clsx("absolute",d[t]),children:e.jsx(ce,{variant:"status",statusState:n.state||"success",statusSize:n.size||i[t]})})]})},As=({avatars:t,size:s="md",max:r=4,className:a,counterClassName:n,...l})=>{const i=t.slice(0,r),x=t.length-r,o=x>0,c={xs:"-space-x-2",sm:"-space-x-3",md:"-space-x-4",lg:"-space-x-5",xl:"-space-x-6"},d={xs:"size-10 text-[10px] p-6",sm:"size-12 text-xs p-8",md:"size-13 text-sm p-9",lg:"size-14 text-base p-10",xl:"size-15 text-lg p-12"},u=h.clsx("flex items-center",c[s],a),m=h.clsx("relative rounded-full flex items-center justify-center font-bold border-2 border-white bg-brand-primary-main text-white-uniform hover:z-10 transition-colors",d[s],n);return e.jsxs("div",{className:u,...l,children:[i.map((p,b)=>e.jsx("div",{className:"relative rounded-full border-2 border-white",children:e.jsx(Oe,{...p,size:s,className:"border-0"})},b)),o&&e.jsxs("div",{className:m,children:["+",x]})]})};As.displayName="AvatarGroup";function Wn({...t}){return e.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t})}function $n({className:t,...s}){return e.jsx("ol",{"data-slot":"breadcrumb-list",className:Q.default(" flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",t),...s})}function Fn({className:t,...s}){return e.jsx("li",{"data-slot":"breadcrumb-item",className:Q.default("inline-flex items-center gap-1.5",t),...s})}function Zn({asChild:t,className:s,...r}){if(t){const{children:a,...n}=r;if(!k.isValidElement(a))return null;const l=a,i={className:Q.default("transition-colors text-low-em font-semibold",s,l.props.className),...n};return k.cloneElement(l,i)}return e.jsx("a",{"data-slot":"breadcrumb-link",className:Q.default("transition-colors text-low-em font-semibold",s),...r})}function On({className:t,...s}){return e.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:Q.default("text-med-em font-semibold",t),...s})}function Bn({children:t,className:s,...r}){return e.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:Q.default("[&>svg]:size-2.5 text-low-em",s),...r,children:t??e.jsx(ct,{color:"currentColor",size:12})})}function _n({className:t,...s}){return e.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:Q.default("flex size-9 items-center justify-center text-low-em",t),...s,children:["...",e.jsx("span",{className:"sr-only",children:"More"})]})}const Gn=({label:t,leadingIcon:s,trailingIcon:r,items:a,isActive:n=!1,className:l,dropdownClassName:i,placement:x="bottom-left",showBackdrop:o=!0})=>{const[c,d]=j.useState(!1),u=j.useRef(null),m=e.jsx("svg",{className:h.clsx("w-4 h-4 transition-transform duration-200",c&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),p=()=>{d(f=>!f)},b=f=>{f.disabled||(f.onClick(),d(!1))},w=()=>{d(!1)};j.useEffect(()=>{const f=C=>{u.current&&!u.current.contains(C.target)&&d(!1)};if(c)return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[c]);const g=()=>{switch(x){case"bottom-right":return"top-full right-0 mt-[6px]";case"top-left":return"bottom-full left-0 mb-[6px]";case"top-right":return"bottom-full right-0 mb-[6px]";case"bottom-left":default:return"top-full left-0 mt-[6px]"}};return e.jsxs("div",{ref:u,className:"relative",children:[e.jsx(T,{variant:"brand",hierarchy:"primary",size:"sm",icons:r||s?"both":"trailing",leadingIcon:s,trailingIcon:r||m,onClick:p,style:{outline:"none",boxShadow:"none"},className:h.clsx("transition-all duration-200","[&:focus]:outline-none [&:focus]:ring-0 [&:focus]:shadow-none","hover:text-gray-200",(n||c)&&["!bg-secondary-600","!text-white","hover:!bg-secondary-700","hover:!text-gray-100","active:!bg-secondary-600"],l),children:t}),c&&o&&e.jsx("div",{className:"fixed inset-0 z-10",onClick:w}),c&&e.jsx("div",{className:h.clsx("absolute z-20 w-[150px] bg-white border border-gray-100 rounded-[16px] shadow-lg overflow-hidden",g(),i),children:e.jsx("div",{children:a.map((f,C)=>e.jsxs(k.default.Fragment,{children:[C>0&&e.jsx("div",{className:"border-t border-gray-100"}),e.jsx("button",{onClick:()=>b(f),disabled:f.disabled,className:h.clsx("w-full text-left pl-5 py-3 transition-colors duration-150 group",f.disabled?"opacity-50 cursor-not-allowed":"hover:bg-gray-50 cursor-pointer"),children:e.jsxs("div",{className:"flex items-center gap-3",children:[f.icon&&e.jsx("div",{className:"flex-shrink-0 text-primary-900",children:f.icon}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("div",{className:"font-medium text-primary-900",style:{fontSize:"14px"},children:f.label})})]})})]},f.id))})})]})},de=({options:t,value:s,onChange:r,size:a="md",variant:n="neutral",className:l})=>{const i={xs:"h-[28px] px-[9.2px] text-[10px]",sm:"h-[34px] px-[10.6px] text-[12px]",md:"h-[42px] px-[13px] text-[14px]",lg:"h-[48px] px-[14.4px] text-[16px]"},x={xs:12,sm:16,md:20,lg:24},o={xs:{left:"rounded-l-[6px]",right:"rounded-r-[6px]"},sm:{left:"rounded-l-[8px]",right:"rounded-r-[8px]"},md:{left:"rounded-l-[10px]",right:"rounded-r-[10px]"},lg:{left:"rounded-l-[12px]",right:"rounded-r-[12px]"}},c={neutral:{base:"border border-surface-3 text-high-em bg-transparent",hover:"hover:bg-surface-2",active:"bg-surface-2 border-surface-4 z-10",disabled:"opacity-50 cursor-not-allowed"},brand:{base:"bg-brand-primary-main-special border-0 text-white-uniform",hover:"hover:bg-brand-primary-accent-special",active:"bg-brand-primary-accent-special",disabled:"bg-surface-3 text-disabled"},secondary:{base:"border border-surface-3 border-none rounded-none text-high-em bg-transparent",hover:"hover:bg-surface-2",active:"bg-surface-2 border-surface-4 z-10",disabled:"opacity-50 cursor-not-allowed"}};return e.jsx("div",{className:h.clsx("inline-flex items-center",l),children:t.map((d,u)=>{const m=d.value===s,p=d.icon&&k.default.isValidElement(d.icon)?k.default.cloneElement(d.icon,{size:x[a],color:"currentColor"}):null;return e.jsxs("button",{type:"button",onClick:()=>r(d.value),className:h.clsx("inline-flex items-center justify-center font-semibold whitespace-nowrap transition-colors duration-200",n==="neutral"&&u>0&&"-ml-px",i[a],u===0&&o[a].left,u===t.length-1&&o[a].right,c[n].base,!m&&c[n].hover,m&&c[n].active),children:[p&&e.jsx("span",{className:d.label?"mr-2":"",children:p}),d.label]},d.value)})})},Un={small:{wrapper:"w-[16px] h-[16px] rounded-[4px]",icon:"w-[16px] h-[16px]"},medium:{wrapper:"w-[20px] h-[20px] rounded-[6px]",icon:"w-[20px] h-[20px]"},large:{wrapper:"w-[24px] h-[24px] rounded-[8px]",icon:"w-[24px] h-[24px]"}},ke={unchecked:"bg-transparent border-low-em hover:bg-surface-1",checked:"bg-black border-low-em text-white",indeterminate:"bg-transparent border-low-em text-low-em",disabled:{unchecked:"bg-surface-3 border-surface-4",checked:"bg-surface-3 border-surface-4 text-surface-4"}},qn=t=>e.jsx("svg",{fill:"none",viewBox:"0 0 24 24",strokeWidth:3,stroke:"currentColor",...t,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),Qn=t=>e.jsx("svg",{fill:"none",viewBox:"0 0 24 24",strokeWidth:3,stroke:"currentColor",...t,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"})}),ue=({size:t="medium",checked:s=!1,indeterminate:r=!1,disabled:a=!1,className:n,...l})=>{const i=Un[t],x=j.useRef(null);return j.useEffect(()=>{x.current&&(x.current.indeterminate=r)},[r]),e.jsxs("label",{className:h.clsx("inline-flex items-center",a?"cursor-not-allowed":"cursor-pointer",n),children:[e.jsx("input",{ref:x,type:"checkbox",checked:s,disabled:a,className:"sr-only peer",...l}),e.jsxs("div",{className:h.clsx(i.wrapper,"inline-flex shrink-0 items-center justify-center border transition-colors duration-200",a?s||r?ke.disabled.checked:ke.disabled.unchecked:r?ke.indeterminate:s?ke.checked:ke.unchecked,!a&&"peer-hover:border-low-em",!a&&"peer-focus-visible:ring-1 peer-focus-visible:ring-low-em peer-focus-visible:ring-offset-0"),children:[s&&!r&&e.jsx(qn,{className:i.icon}),r&&e.jsx(Qn,{className:i.icon})]})]})},xe=({variant:t="neutral",size:s="md",disabled:r=!1,leadingIcon:a,trailingIcon:n,showLeadingIcon:l=!0,showTrailingIcon:i=!0,trailingIconPosition:x="inline",disableUnderline:o=!1,children:c,className:d,...u})=>{const m={neutral:"text-med-wm hover:text-high-em hover:border-low-em",info:"text-info-main hover:text-info-wm hover:border-info-accent-3"},p="text-disabled pointer-events-none",b={xs:{text:"text-[10px]",leadingGap:"mr-[2px]",trailingGap:"ml-[2px]"},sm:{text:"text-[12px]",leadingGap:"mr-[2px]",trailingGap:"ml-[2px]"},md:{text:"text-[14px]",leadingGap:"mr-[4px]",trailingGap:"ml-[4px]"},lg:{text:"text-[16px]",leadingGap:"mr-[4px]",trailingGap:"ml-[4px]"}},w={xs:12,sm:12,md:16,lg:20},g=l&&a&&k.default.isValidElement(a)?k.default.cloneElement(a,{size:w[s],color:"currentColor"}):null,f=i&&n&&k.default.isValidElement(n)?k.default.cloneElement(n,{size:w[s],color:"currentColor"}):null;return e.jsxs("a",{className:h.clsx("inline-flex items-center font-semibold transition-colors duration-200",!o&&"border-b-2 border-transparent",!r&&!o&&m[t],!r&&o&&(t==="neutral"?"text-high-em":"text-info-accent-1"),b[s].text,{"w-full justify-between":x==="end"},r&&p,d),"aria-disabled":r,tabIndex:r?-1:void 0,...r&&{href:void 0},...u,children:[e.jsxs("span",{className:"inline-flex items-center",children:[g&&e.jsx("span",{className:b[s].leadingGap,children:g}),e.jsx("span",{children:c}),x==="inline"&&e.jsx("span",{className:b[s].trailingGap,children:f})]}),x==="end"&&e.jsx("span",{className:"shrink-0",children:f})]})},Kn=({icon:t,title:s,description:r,linkText:a="Link",linkHref:n="#",checked:l=!1,onCheckboxChange:i,onLinkClick:x,className:o,disabled:c=!1})=>{const d=m=>{i&&i(m.target.checked)},u=t?k.default.cloneElement(t,{size:32,color:"var(--dark-100)"}):null;return e.jsxs("div",{className:h.clsx("w-full min-h-40 bg-white border border-gray-400 rounded-xl py-8 flex flex-col",c&&"opacity-60 pointer-events-none",o),children:[e.jsxs("div",{className:"flex items-center justify-between mx-8 mb-3 shrink-0",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[u&&e.jsx("div",{className:"shrink-0",children:u}),e.jsx("h3",{className:"font-space-grotesk font-medium text-[20px] leading-tight text-[var(--dark-100)] truncate ml-2",style:{fontFamily:"var(--font-space-grotesk)"},children:s})]}),e.jsx("div",{className:"flex-shrink-0 mt-2",children:e.jsx(ue,{size:"large",checked:l,onChange:d,disabled:c})})]}),e.jsx("div",{className:"mx-8 mt-4 mb-3 flex-shrink-0",style:{minHeight:"50px"},children:e.jsx("p",{className:"font-inter text-[12px] leading-[1.4] text-[var(--dark-700)] line-clamp-3",style:{fontFamily:"var(--font-inter)"},children:r})}),e.jsx("div",{className:"flex-1"}),e.jsx("div",{className:"border-t border-gray-400 mb-3 flex-shrink-0"}),e.jsx("div",{className:"mx-8 mt-4 flex-shrink-0",children:e.jsx(xe,{variant:"neutral",size:"md",href:n,onClick:x,disabled:c,trailingIconPosition:"end",disableUnderline:!0,children:a})})]})},Be=k.default.forwardRef(({title:t,children:s,isCollapsed:r,onToggle:a,onClose:n,defaultCollapsed:l=!1,className:i},x)=>{const[o,c]=j.useState(l),d=r??o,u=r!==void 0,m=()=>{const b=!d;u||c(b),a?.(b)},p=W.twMerge(h.clsx("bg-surface-2 rounded-t-3 overflow-hidden","w-[311px]",i));return e.jsxs("div",{ref:x,className:p,children:[e.jsxs("div",{className:"flex items-center justify-between px-5 h-[38px]",children:[e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:d?e.jsx(dt,{}):e.jsx(xt,{}),onClick:m,"aria-label":d?"Expand":"Collapse",className:"shrink-0"}),e.jsx("div",{className:"text-sm font-semibold text-med-em flex-1 text-center",children:t}),e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx(ie,{}),onClick:n,"aria-label":"Close",className:"shrink-0"})]}),e.jsx("div",{className:"h-px bg-surface-3"}),!d&&s]})});Be.displayName="ChatCollapsibleContainer";const ht=({progress:t,className:s,variant:r="none",...a})=>{const n=Math.min(100,Math.max(0,t)),i=h.clsx("w-full bg-surface-3 rounded-full relative overflow-visible flex-1 h-4",s),x="h-full rounded-full transition-all duration-300 ease-out bg-black",o=()=>{if(r==="none")return null;const c=`${n}%`;return r==="inline"?e.jsx("span",{className:"font-medium text-sm text-high-em shrink-0",children:c}):r==="below"?e.jsx("p",{className:"mt-2 font-medium text-sm text-high-em text-right",children:c}):null};return e.jsxs("div",{className:"flex flex-col gap-y-2 w-full",children:[e.jsxs("div",{className:"flex items-center w-full gap-x-5",children:[e.jsxs("div",{className:h.clsx(i,r==="tooltip"&&"group cursor-pointer"),role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":`Progress: ${n}%`,...a,children:[e.jsx("div",{className:x,style:{width:`${n}%`}}),r==="tooltip"&&e.jsxs("div",{className:"absolute bottom-full mb-4 opacity-100 visible transition-opacity duration-200 pointer-events-none",style:{left:`${n}%`,transform:"translateX(-50%)"},children:[e.jsxs("div",{className:"bg-surface-bg text-high-em p-6 border border-b-0 border-surface-3 text-xs font-medium rounded-xl shadow-lg whitespace-nowrap",children:[n,"%"]}),e.jsx("div",{className:"absolute left-1/2 top-full -translate-x-1/2 -mt-px",style:{width:22,height:0,borderLeft:"10px solid transparent",borderRight:"10px solid transparent",borderTop:"8px solid var(--surface-bg)"}})]})]}),r==="inline"&&o()]}),r==="below"&&o()]})},Es=k.default.forwardRef(({title:t="Todo:",items:s,onItemChange:r,isCollapsed:a,onToggle:n,onClose:l,defaultCollapsed:i=!1,className:x},o)=>{const m=s.length>3?150:void 0,p=s.filter(C=>C.checked).length,b=s.length,w=b>0?Math.round(p/b*100):0,g=(C,N)=>{r?.(C,N)},f=e.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[e.jsxs("span",{className:"text-sm font-semibold text-med-em whitespace-nowrap",children:[typeof t=="string"?t:"Todo:"," ",p,"/",b]}),e.jsx(ht,{progress:w,variant:"none",className:"h-2"})]});return e.jsx(Be,{ref:o,title:f,isCollapsed:a,onToggle:n,onClose:l,defaultCollapsed:i,className:x,children:e.jsx("div",{className:"overflow-y-auto",style:m?{maxHeight:`${m}px`}:void 0,children:s.map((C,N)=>e.jsxs(k.default.Fragment,{children:[e.jsxs("label",{className:"flex items-center px-8 h-[50px] gap-6 cursor-pointer",children:[e.jsx(ue,{size:"medium",checked:C.checked,disabled:C.disabled,onChange:v=>g(C.id,v.target.checked)}),e.jsx("span",{className:h.clsx("text-xs font-semibold text-med-em flex-1",C.checked&&"line-through"),children:C.label})]}),N<s.length-1&&e.jsx("div",{className:"h-px bg-surface-3"})]},C.id))})})});Es.displayName="ChatCollapsibleCheck";const Vs=k.default.forwardRef(({title:t,children:s,actions:r=[],isCollapsed:a,onToggle:n,onClose:l,defaultCollapsed:i=!1,className:x},o)=>e.jsxs(Be,{ref:o,title:t,isCollapsed:a,onToggle:n,onClose:l,defaultCollapsed:i,className:x,children:[e.jsx("div",{className:"p-8",children:e.jsx("div",{className:"text-xs font-semibold text-med-em",children:s})}),e.jsx("div",{className:"h-px bg-surface-3"}),r.length>0&&e.jsx("div",{className:"flex gap-2 p-5",children:r.map((c,d)=>e.jsx(T,{variant:c.variant||"neutral",hierarchy:c.hierarchy||"tertiary",size:"xs",onClick:c.onClick,className:"flex-1",children:c.label},d))})]}));Vs.displayName="ChatCollapsibleDialog";const Jn={primary:"bg-brand-primary-main text-white-uniform hover:bg-primary-accent-3",secondary:"bg-surface-2 text-high-em hover:bg-surface-2",tertiary:"bg-transparent text-high-em border border-surface-3 hover:bg-surface-1 shadow-[0_1px_3px_-1px_rgba(0,0,0,0.16)]",quaternary:"bg-surface-2 text-med-em hover:bg-surface-3",success:"bg-success-accent-1 text-success-em hover:bg-success-accent-2",danger:"bg-danger-accent-1 text-danger-em hover:bg-danger-accent-2",warning:"bg-warning-accent-0 text-warning-em hover:bg-warning-accent-1",info:"bg-info-accent-1 text-info-em hover:bg-info-accent-2"},Yn={xs:{container:"text-[10px] font-medium p-[4px] gap-[4px] h-[24px] rounded-[6px]",icon:12},sm:{container:"text-[12px] font-medium p-[8px] gap-[8px] h-[34px] rounded-[8px]",icon:16}},Xn="bg-surface-3 text-disabled cursor-not-allowed",Ce=({variant:t="primary",size:s="sm",leadingIcon:r=!0,trailingIcon:a=!0,onTrailingIconClick:n,children:l,className:i,disabled:x,...o})=>{const c=Yn[s];let d=null;r===!0?d=e.jsx(z.Add,{}):k.default.isValidElement(r)&&(d=r);const u=d?k.default.cloneElement(d,{size:c.icon,color:"currentColor"}):null;let m=null;a===!0?m=e.jsx(z.ArrowDown2,{}):k.default.isValidElement(a)&&(m=a);const p=m?k.default.cloneElement(m,{size:c.icon,color:"currentColor"}):null,b=g=>{g.stopPropagation(),n&&n(g)},w=()=>{const g={xs:{left:"pl-4",right:"pr-4",both:"px-4"},sm:{left:"pl-6",right:"pr-6",both:"px-6"}},f=!!u,C=!!p;return!f&&!C?g[s].both:!f&&C?g[s].left:f&&!C?g[s].right:""};return e.jsxs("button",{disabled:x,className:h.clsx("inline-flex items-center justify-center shrink-0 font-medium transition-colors duration-200","focus:outline-none",x?Xn:Jn[t],c.container,w(),i),...o,children:[u&&e.jsx("span",{className:"mr-1",children:u}),e.jsx("span",{children:l}),p&&e.jsx("span",{className:"ml-1 p-0.5 rounded-full",role:"button",onClick:b,children:p})]})},ea={xs:{container:"h-13 min-w-21",sidePadding:"px-7",titleGap:"gap-2",title:"text-[11px] font-semibold",description:"text-[9px] font-medium",tagSize:"xs",buttonSize:"xs"},sm:{container:"h-[50px] min-w-22",sidePadding:"px-8",titleGap:"gap-2",title:"text-xs font-semibold",description:"text-[10px] font-medium",tagSize:"xs",buttonSize:"sm"},md:{container:"h-[56px] min-w-24",sidePadding:"px-9",titleGap:"gap-3",title:"text-sm font-semibold",description:"text-xs font-medium",tagSize:"sm",buttonSize:"sm"},lg:{container:"h-[70px] min-w-25",sidePadding:"px-9",titleGap:"gap-3",title:"text-base font-semibold",description:"text-sm font-medium",tagSize:"sm",buttonSize:"md"}},et=t=>{const{variant:s,size:r="md",title:a,disabled:n=!1,className:l,onClick:i,...x}=t,o=ea[r],c=h.clsx("flex w-full transition-colors duration-200","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-secondary-main",o.container,o.sidePadding,n?"bg-surface-3 cursor-not-allowed":"bg-transparent hover:bg-surface-1 active:bg-surface-2 cursor-pointer",l);if(s==="type-1"){const{leadingTag:d,trailingButton:u}=t,m=p=>{p.stopPropagation(),u?.onClick?.(p)};return e.jsxs("button",{type:"button",disabled:n,onClick:i,className:h.clsx(c,"items-center"),...x,children:[d&&e.jsx(Ce,{size:d.size||o.tagSize,variant:d.variant||"tertiary",disabled:n,leadingIcon:!1,trailingIcon:!1,children:d.content}),e.jsx("span",{className:h.clsx(o.title,n?"text-disabled":"text-med-em","truncate",d&&"ml-5"),children:a}),u&&e.jsx("div",{className:"ml-auto",children:e.jsx(T,{size:o.buttonSize,variant:u.variant||"neutral",hierarchy:u.hierarchy||"tertiary",icons:"only",leadingIcon:u.icon,onClick:m,disabled:n})})]})}if(s==="type-2"){const{tag:d,description:u}=t;return e.jsxs("button",{type:"button",disabled:n,onClick:i,className:h.clsx(c,"flex-col justify-center items-start"),...x,children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("span",{className:h.clsx(o.title,n?"text-disabled":"text-med-em","truncate"),children:a}),d&&e.jsx(Ce,{size:d.size||o.tagSize,variant:d.variant||"tertiary",disabled:n,leadingIcon:!1,trailingIcon:!1,children:d.content})]}),u&&e.jsx("span",{className:h.clsx(o.description,n?"text-disabled":"text-low-em","truncate w-full text-left"),children:u})]})}return null},Se=({children:t,size:s="sm",className:r})=>{const a=s==="md"?"px-2 py-1 text-sm":"px-2 py-1 text-xs";return e.jsx("kbd",{className:h.clsx("bg-surface-1 rounded font-medium text-med-em",a,r),children:t})},ta={xs:{borderRadius:"rounded-[8px]",headerHeight:"h-[38px]",headerPadding:"px-5",headerText:"text-[11px] font-semibold",footerHeight:"h-[32px]",footerText:"text-[9px] font-medium",iconSize:14,buttonSize:"xs",kbdSize:"sm"},sm:{borderRadius:"rounded-[12px]",headerHeight:"h-[38px]",headerPadding:"px-5",headerText:"text-[12px] font-semibold",footerHeight:"h-[40px]",footerText:"text-[10px] font-medium",iconSize:16,buttonSize:"sm",kbdSize:"sm"},md:{borderRadius:"rounded-[16px]",headerHeight:"h-[38px]",headerPadding:"px-5",headerText:"text-[14px] font-semibold",footerHeight:"h-[48px]",footerText:"text-[12px] font-medium",iconSize:18,buttonSize:"sm",kbdSize:"sm"},lg:{borderRadius:"rounded-[20px]",headerHeight:"h-[38px]",headerPadding:"px-5",headerText:"text-[16px] font-semibold",footerHeight:"h-[56px]",footerText:"text-[14px] font-medium",iconSize:20,buttonSize:"md",kbdSize:"sm"}},sa=({config:t})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:h.clsx("flex items-center",t.headerHeight,t.headerPadding,"bg-surface-bg"),children:e.jsx("span",{className:h.clsx(t.headerText,"text-med-em"),children:"Opciones"})}),e.jsx("div",{className:"border-t border-surface-3"})]}),ra=({config:t,category:s,onBack:r})=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:h.clsx("flex items-center gap-3",t.headerHeight,t.headerPadding,"bg-surface-bg"),children:[e.jsx(T,{size:t.buttonSize,variant:"neutral",hierarchy:"secondary",icons:"only",leadingIcon:e.jsx(z.ArrowLeft2,{}),onClick:r}),e.jsx(Ce,{size:"xs",variant:s.leadingTag.variant||"tertiary",leadingIcon:!1,trailingIcon:!1,children:s.leadingTag.content}),e.jsx("span",{className:h.clsx(t.headerText,"text-med-em"),children:s.title})]}),e.jsx("div",{className:"border-t border-surface-3"})]}),na=({config:t})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"border-t border-surface-3"}),e.jsxs("div",{className:h.clsx("flex items-center justify-between",t.footerHeight,t.headerPadding,"bg-surface-bg"),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Se,{size:t.kbdSize,children:"↑"}),e.jsx(Se,{size:t.kbdSize,children:"↓"})]}),e.jsx("span",{className:h.clsx(t.footerText,"text-low-em"),children:"navegar"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Se,{size:t.kbdSize,children:"↩"}),e.jsx("span",{className:h.clsx(t.footerText,"text-low-em"),children:"seleccionar"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Se,{size:t.kbdSize,children:"esc"}),e.jsx("span",{className:h.clsx(t.footerText,"text-low-em"),children:"cerrar"})]})]})]}),aa=({categories:t=[],size:s="md",onCategorySelect:r,onItemSelect:a,onClose:n,floating:l=!1,className:i,...x})=>{const[o,c]=j.useState("categories"),[d,u]=j.useState(null),m=ta[s],p=g=>{u(g),c("items"),r?.(g.id)},b=()=>{c("categories"),u(null)},w=g=>{d&&a?.(d.id,g.id)};return e.jsxs("div",{className:h.clsx("bg-surface-bg border border-surface-3 overflow-hidden","flex flex-col w-fit",m.borderRadius,l&&"absolute z-50",i),style:{boxShadow:"0px 8px 24px -4px rgba(0, 0, 0, 0.12)"},...x,children:[o==="categories"?e.jsx(sa,{config:m}):d?e.jsx(ra,{config:m,category:d,onBack:b}):null,o==="categories"?t.map(g=>e.jsx(et,{variant:"type-1",size:s,title:g.title,leadingTag:g.leadingTag,trailingButton:{icon:e.jsx(z.ArrowRight2,{}),onClick:()=>p(g),variant:"neutral",hierarchy:"secondary"},onClick:()=>p(g)},g.id)):d?d.items.map(g=>e.jsx(et,{variant:"type-2",size:s,title:g.title,tag:g.tag,description:g.description,onClick:()=>w(g)},g.id)):null,e.jsx(na,{config:m})]})},Ws=({className:t,activeView:s="chat",onChatClick:r,onHistorialClick:a,onSettingsClick:n,onCloseClick:l,containerWidth:i=0})=>{const x=[{id:"chat",label:"Chat",icon:e.jsx(ds,{}),content:e.jsx("div",{})},{id:"historial",label:"Historial",icon:e.jsx(xs,{}),content:e.jsx("div",{})}],o=x.findIndex(u=>u.id===s),c=u=>{const m=x[u];m.id==="chat"?r?.():m.id==="historial"&&a?.()},d=i<=350?"only-icon":"line-icons";return e.jsxs("div",{className:h.clsx("flex w-full items-baseline justify-between rounded-t-lg",t),children:[e.jsx("div",{className:"flex items-center",children:e.jsx(zr,{variant:d,tabs:x,selectedIndex:o,onChange:c,contentSpacing:"none",showBorder:!1})}),e.jsxs("div",{className:"flex items-center gap-2 pr-8 self-center",children:[e.jsx(T,{variant:"neutral",hierarchy:"secondary",size:"sm",icons:"only",leadingIcon:e.jsx(z.Add,{}),onClick:n,"aria-label":"Add"}),e.jsx(T,{variant:"neutral",hierarchy:"secondary",size:"sm",icons:"only",leadingIcon:e.jsx(ie,{}),onClick:l,"aria-label":"Close"})]})]})},la={xs:12,sm:16,"sm-md":20,md:24,"md-lg":28,lg:32,xl:36,"2xl":40},$=({size:t="md",children:s,color:r="currentColor",imageUrl:a,alt:n="Icon",className:l})=>{const[i,x]=j.useState(!1),o=typeof t=="number"?t:la[t];if(a&&!i)return e.jsx("img",{src:a,alt:n,className:h.clsx("rounded-[12px]","object-cover",l),style:{width:o,height:o},onError:()=>x(!0)});if(k.default.isValidElement(s)){const c=s.props.className;return k.default.cloneElement(s,{size:o,color:r,className:h.clsx(l,typeof c=="string"?c:void 0)})}return e.jsx(z.InfoCircle,{size:o,color:r,className:l})},le=({icon:t,label:s,gap:r=4,align:a="center",iconSize:n="md",labelSize:l,iconColorClass:i="text-low-em",labelColorClass:x="text-low-em",className:o,children:c,...d})=>{const u=`gap-${r}`,m={start:"items-start",center:"items-center",end:"items-end"}[a],p=l?`text-${l}`:"";return e.jsxs("div",{className:h.clsx("flex",m,u,o),...d,children:[t&&e.jsx("span",{className:i,children:e.jsx($,{size:n,children:t})}),s&&e.jsx("span",{className:h.clsx(p,x),children:s}),c]})},ia={default:{wrapper:"bg-surface-2 border-transparent hover:bg-surface-3",hint:"text-med-em",placeholder:"placeholder-placeholder text-med-em",icon:"text-high-em"},outlined:{wrapper:"bg-white border-surface-4",hint:"text-med-em",placeholder:"placeholder-placeholder text-med-em",icon:"text-high-em"},danger:{wrapper:"bg-danger-accent-1 border-danger-accent-2 hover:border-accent-2 text-danger-em",hint:"text-danger-em",placeholder:"placeholder-danger-main text-danger-em",icon:"text-danger-em"},success:{wrapper:"bg-success-accent-1 border-success-accent-2 hover:border-success-accent-2",hint:"text-success-em",placeholder:"placeholder-success-main text-success-em",icon:"text-success-em"}},oa={sm:{inputPadding:"px-3",textareaPadding:"px-3 py-3",borderRadius:"rounded-[8px]",fontSize:"text-xs font-regular",iconSize:12,hintIconSize:12,height:"h-[32px]",leadingIconPosition:"left-4",trailingIconPosition:"right-4",inputPaddingLeftWithIcon:"pl-[32px]",inputPaddingRightWithIcon:"pr-10",labelFontSize:"text-[10px]",hintFontSize:"text-[10px]"},md:{inputPadding:"px-3.5",textareaPadding:"px-3.5 py-4",borderRadius:"rounded-[12px]",fontSize:"text-sm font-regular",iconSize:16,hintIconSize:12,height:"h-[38px]",leadingIconPosition:"left-6",trailingIconPosition:"right-6",inputPaddingLeftWithIcon:"pl-[36px]",inputPaddingRightWithIcon:"pr-12",labelFontSize:"text-xs",hintFontSize:"text-xs"},lg:{inputPadding:"px-4",textareaPadding:"px-4 py-5",borderRadius:"rounded-[12px]",fontSize:"text-base font-regular",iconSize:20,hintIconSize:14,height:"h-[48px]",leadingIconPosition:"left-8",trailingIconPosition:"right-8",inputPaddingLeftWithIcon:"pl-[44px]",inputPaddingRightWithIcon:"pr-14",labelFontSize:"text-sm",hintFontSize:"text-sm"}},Ie={wrapper:"bg-surface-3 pointer-events-none border-transparent",input:"disabled:text-disabled disabled:placeholder-disabled",hint:"text-disabled"},J=j.forwardRef(({variant:t="default",size:s="md",label:r,hint:a,leadingIcon:n,trailingIcon:l,leadingIconColor:i,trailingIconColor:x,disabled:o,className:c,type:d,customBackground:u,placeholderColor:m,multiline:p,customFontWeight:b,fontSize:w,customFontSize:g,hintIconVariant:f,onInputClick:C,...N},v)=>{const y=ia[t],M=oa[s],I=d==="password",[R,D]=j.useState(!1),A=I&&R?"text":d,P=g||w,F={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},S=P&&F[P]||void 0,Z=P&&!F[P]?{fontSize:P}:void 0,V=U=>{const te=U.currentTarget;te.style.height="auto",te.style.height=`${te.scrollHeight}px`,N.onChange&&N.onChange(U)},H=u,L=H?/^[a-z]+-[a-z0-9-]+$/i.test(H)?`var(--${H})`:H:void 0,_=b||void 0,ae=U=>{C&&(U.preventDefault(),C())},G=W.twMerge(h.clsx("w-full bg-transparent text-placeholder focus:outline-none",!p&&"h-full",p?M.textareaPadding:M.inputPadding,!b&&"font-medium",!P&&M.fontSize,y.placeholder,o&&Ie.input,m,S,n&&M.inputPaddingLeftWithIcon,(l||I&&!p)&&M.inputPaddingRightWithIcon,C&&"cursor-pointer pointer-events-none"));return e.jsxs("div",{className:W.twMerge(h.clsx("flex flex-col gap-1.5",C&&"cursor-pointer",c)),onClick:ae,children:[r&&e.jsx("label",{htmlFor:N.id,className:W.twMerge(h.clsx("font-semibold text-med-em pl-[2px]",M.labelFontSize)),children:r}),e.jsxs("div",{className:W.twMerge(h.clsx("relative flex items-center border transition-colors duration-200",M.borderRadius,!p&&M.height,y.wrapper,o&&Ie.wrapper)),style:{backgroundColor:L},children:[n&&e.jsx($,{size:M.iconSize,className:W.twMerge(h.clsx("absolute top-1/2 -translate-y-1/2",M.leadingIconPosition,i||y.icon)),children:n}),p?e.jsx("textarea",{ref:v,disabled:o,className:W.twMerge(G,"resize-none overflow-hidden"),style:{fontWeight:_,...Z},onInput:V,rows:1,...N}):e.jsx("input",{ref:v,disabled:o,type:A,className:G,style:{fontWeight:_,...Z},...N}),!p&&I?e.jsx("button",{type:"button",onClick:()=>D(!R),className:W.twMerge(h.clsx("absolute top-1/2 -translate-y-1/2 text-placeholder hover:text-med focus:outline-none transition-colors",M.trailingIconPosition)),"aria-label":R?"Ocultar contraseña":"Mostrar contraseña",tabIndex:-1,children:R?e.jsx(js,{size:M.iconSize}):e.jsx(bs,{size:M.iconSize})}):l?e.jsx($,{size:M.iconSize,className:W.twMerge(h.clsx("absolute top-1/2 -translate-y-1/2",M.trailingIconPosition,x||y.icon)),children:l}):null]}),a&&e.jsx(le,{icon:e.jsx(z.InfoCircle,{variant:f||"Bold"}),label:a,iconSize:M.hintIconSize,gap:1,iconColorClass:h.clsx(y.hint,o&&Ie.hint),labelColorClass:h.clsx(y.hint,o&&Ie.hint),className:W.twMerge(h.clsx(M.hintFontSize,"font-semibold"))})]})});J.displayName="InputField";const ca={xs:{container:"h-[40px] min-w-[250px]",sidePadding:"pl-6 pr-7",checkboxMargin:"mr-5",middleGap:"gap-5",rightGap:"gap-5",checkbox:"small",leadingImage:"sm",leadingIcon:"xs",trailingIcon:"xs",title:"text-[11px] font-semibold",description:"text-[9px] font-medium",tag:"xs",trailingText:"text-[9px] font-medium"},sm:{container:"h-[50px] min-w-[290px]",sidePadding:"pl-7 pr-8",checkboxMargin:"mr-6",middleGap:"gap-6",rightGap:"gap-6",checkbox:"small",leadingImage:"md",leadingIcon:"sm",trailingIcon:"sm",title:"text-[12px] font-semibold",description:"text-[10px] font-medium",tag:"xs",trailingText:"text-[10px] font-medium"},md:{container:"h-[56px] min-w-[340px]",sidePadding:"pl-9 pr-9",checkboxMargin:"mr-6",middleGap:"gap-6",rightGap:"gap-6",checkbox:"medium",leadingImage:"lg",leadingIcon:"sm-md",trailingIcon:"sm-md",title:"text-[14px] font-semibold",description:"text-[12px] font-medium",tag:"xs",trailingText:"text-[12px] font-medium"},lg:{container:"h-[70px] min-w-[420px]",sidePadding:"pl-9 pr-9",checkboxMargin:"mr-6",middleGap:"gap-6",rightGap:"gap-6",checkbox:"large",leadingImage:"2xl",leadingIcon:"md",trailingIcon:"md",title:"text-[16px] font-semibold",description:"text-[14px] font-medium",tag:"sm",trailingText:"text-[14px] font-medium"}},He=({size:t="md",disabled:s=!1,showCheckbox:r=!0,showLeadingImage:a=!0,showLeadingIcon:n=!0,showDescription:l=!0,showTrailingIcon:i=!0,showTag:x=!0,showTrailingText:o=!0,title:c,description:d,customTitleColor:u,customBackgroundColor:m,customHoverColor:p,customLeadingIconColor:b,checked:w=!1,indeterminate:g=!1,onCheckboxChange:f,leadingImageUrl:C,leadingImageAlt:N="List item image",leadingIcon:v,trailingIcon:y,tagContent:M,tagVariant:I="tertiary",trailingText:R,className:D,middleContainerClassName:A,onClick:P,...F})=>{const S=ca[t],Z=H=>{H.stopPropagation()},V=H=>{f?.(H.target.checked)};return e.jsxs("button",{type:"button",disabled:s,onClick:P,className:W.twMerge(h.clsx("flex items-center w-full transition-colors duration-200","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-secondary-main",S.container,S.sidePadding,m||(s?"bg-surface-3 cursor-not-allowed":"bg-transparent hover:bg-surface-1 active:bg-surface-2 cursor-pointer"),m&&(s?"cursor-not-allowed":"cursor-pointer"),p&&!s&&p),D),...F,children:[r&&e.jsx("div",{onClick:Z,className:h.clsx("flex items-center",S.checkboxMargin),children:e.jsx(ue,{size:S.checkbox,checked:w,indeterminate:g,onChange:V,disabled:s})}),e.jsxs("div",{className:W.twMerge(h.clsx("flex items-center",S.middleGap),A),children:[a&&C&&e.jsx("div",{className:h.clsx("shrink-0",s&&"opacity-50"),children:e.jsx($,{size:S.leadingImage,imageUrl:C,alt:N})}),n&&e.jsx("div",{className:"shrink-0",children:e.jsx($,{size:S.leadingIcon,color:s?"var(--text-disabled)":b||"var(--med-em)",children:v||e.jsx(z.Element3,{})})}),e.jsxs("div",{className:"flex flex-col gap-0 justify-start items-start min-w-0 shrink mr-8",children:[e.jsx("span",{className:h.clsx(S.title,u||(s?"text-disabled":"text-med-em"),"truncate max-w-full"),children:c}),l&&d&&e.jsx("span",{className:h.clsx(S.description,s?"text-disabled":"text-low-em","truncate max-w-full"),children:d})]})]}),e.jsxs("div",{className:h.clsx("flex items-center ml-auto",S.rightGap),children:[i&&e.jsx($,{size:S.trailingIcon,color:s?"var(--text-disabled)":"var(--high-em)",children:y||e.jsx(z.ArrowRight2,{})}),x&&M&&e.jsx(Ce,{size:S.tag,variant:I,disabled:s,leadingIcon:!1,trailingIcon:!1,children:M}),o&&R&&e.jsx("span",{className:h.clsx(S.trailingText,s?"text-disabled":"text-low-em"),children:R})]})]})},da={xs:"rounded-[8px]",sm:"rounded-[12px]",md:"rounded-[16px]",lg:"rounded-[20px]"},ze=({items:t=[],header:s,headerSize:r="xs",size:a="md",selectedIds:n=[],onSelect:l,floating:i=!1,triggerRef:x,className:o,...c})=>{const d=da[a],u=!!x,m=k.default.useRef(null),[p,b]=k.default.useState({position:"fixed",visibility:"hidden",top:0,left:0,zIndex:50});k.default.useLayoutEffect(()=>{if(!u)return;const g=()=>{if(!x?.current||!m.current)return;const f=x.current.getBoundingClientRect(),C=m.current.getBoundingClientRect(),N=f.bottom+C.height+8>window.innerHeight?f.top-C.height-8:f.bottom+8,v=f.left+C.width>window.innerWidth?f.right-C.width:f.left;b({position:"fixed",top:N,left:v,visibility:"visible",zIndex:50})};return g(),window.addEventListener("scroll",g,!0),window.addEventListener("resize",g),()=>{window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g)}},[x,u]);const w=e.jsxs("div",{ref:m,className:h.clsx("bg-surface-bg border border-surface-3 overflow-hidden","flex flex-col w-fit",d,!u&&i&&"absolute z-50",o),style:{boxShadow:"0px 8px 24px -4px rgba(0, 0, 0, 0.12)",...u?p:{}},...c,children:[s&&e.jsxs(e.Fragment,{children:[e.jsx(He,{size:r,title:s.title,showCheckbox:!1,showLeadingImage:!1,showLeadingIcon:!1,showDescription:!1,showTrailingIcon:!1,showTag:!1,showTrailingText:!1,className:"shrink-0 cursor-default hover:bg-transparent active:bg-transparent",customTitleColor:"text-low-em"}),e.jsx("div",{className:"border-t border-surface-3"})]}),t.map((g,f)=>{const{id:C,showDividerAfter:N,onClick:v,onSelect:y,customBackgroundColor:M,customHoverColor:I,...R}=g,D=C?n.includes(C):!1,A=f===t.length-1;return e.jsxs(k.default.Fragment,{children:[e.jsx(He,{size:a,onClick:P=>{y?.(),C&&l?.(C),v?.(P)},customBackgroundColor:M||"bg-surface-bg",customHoverColor:I||"hover:bg-surface-2",className:h.clsx("shrink-0",D&&"bg-surface-1",R.className),checked:D,...R}),N&&!A&&e.jsx("div",{className:"border-t border-surface-3"})]},C||f)})]});return u&&typeof document<"u"?Bt.createPortal(w,document.body):w},$s=({id:t,title:s,preview:r,onClick:a,menuItems:n,className:l})=>{const[i,x]=j.useState(!1),o=j.useRef(null),c=j.useRef(null);j.useEffect(()=>{const u=m=>{o.current&&!o.current.contains(m.target)&&c.current&&!c.current.contains(m.target)&&x(!1)};return i&&document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[i]);const d=n?.map((u,m)=>{const p=m===n.length-1;return{...u,showCheckbox:!1,showLeadingImage:!1,showLeadingIcon:!0,showDescription:!1,showTrailingIcon:!1,showTag:!1,showTrailingText:!1,showDividerAfter:m===n.length-2,className:h.clsx("!h-[34px]",u.className),...p&&{customTitleColor:"text-danger-em",customLeadingIconColor:"var(--danger-em)"}}})||[];return e.jsxs("div",{className:h.clsx("group flex items-start justify-between gap-3 px-8 py-4 hover:bg-surface-1 transition-colors cursor-pointer",l),onClick:a,children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-xs font-semibold text-med-em mb-1",children:s}),e.jsx("p",{className:"text-[10px] font-medium text-low-em",children:r})]}),n&&n.length>0&&e.jsxs("div",{className:"flex-shrink-0 relative",onClick:u=>u.stopPropagation(),children:[e.jsx(T,{ref:c,variant:"neutral",hierarchy:"secondary",size:"sm",icons:"only",leadingIcon:e.jsx(z.More,{variant:"Linear"}),"aria-label":"Más opciones",onClick:()=>x(!i)}),i&&e.jsx("div",{ref:o,className:"absolute right-0 top-full mt-1 z-50",children:e.jsx(ze,{items:d,size:"xs",className:"!w-[182px]",onSelect:u=>{const m=n.find(p=>p.id===u);m?.onClick&&m.onClick({}),x(!1)}})})]})]})},xa=t=>{const s=new Date,r=new Date(s.getFullYear(),s.getMonth(),s.getDate()),a=new Date(r.getTime()-10080*60*1e3),n=new Date(r.getTime()-720*60*60*1e3),l=new Date(r.getTime()-2160*60*60*1e3);return t.reduce((i,x)=>{const o=new Date(x.timestamp);return o>=r?i.today.push(x):o>=a?i.last7Days.push(x):o>=n?i.last30Days.push(x):o>=l&&i.last90Days.push(x),i},{today:[],last7Days:[],last30Days:[],last90Days:[]})},ua=(t,s)=>{if(!s.trim())return t;const r=s.toLowerCase();return t.filter(a=>a.title.toLowerCase().includes(r))},Fs=({items:t,onItemClick:s,searchPlaceholder:r="Buscar en el historial...",className:a,onSearchChange:n,emptyState:l})=>{const[i,x]=j.useState(""),o=j.useMemo(()=>{const m=ua(t,i);return xa(m)},[t,i]),c=m=>{const p=m.target.value;x(p),n?.(p)},d=(m,p)=>p.length===0?null:e.jsxs("div",{children:[e.jsx("div",{className:"px-8 py-8",children:e.jsx("h3",{className:"text-xs font-semibold text-low-em",children:m})}),p.map((b,w)=>e.jsxs(k.default.Fragment,{children:[e.jsx($s,{id:b.id,title:b.title,preview:b.preview,menuItems:b.menuItems,onClick:()=>s?.(b)}),w<p.length-1&&e.jsx("div",{className:"border-b border-surface-2"})]},b.id))]},m),u=o.today.length===0&&o.last7Days.length===0&&o.last30Days.length===0&&o.last90Days.length===0;return e.jsxs("div",{className:h.clsx("flex flex-col",a),children:[e.jsx("div",{className:"px-8 pt-9",children:e.jsx(J,{size:"md",variant:"default",placeholder:r,leadingIcon:e.jsx(z.SearchNormal,{size:20,variant:"Linear"}),value:i,onChange:c})}),u?i?e.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-8",children:e.jsxs("p",{className:"text-sm text-low-em text-center",children:['No se encontraron resultados para "',i,'"']})}):l??null:e.jsxs("div",{className:"flex flex-col",children:[d("Hoy",o.today),d("Últimos 7 días",o.last7Days),d("Últimos 30 días",o.last30Days),d("Últimos 90 días",o.last90Days)]})]})},ha=[{id:"conversation",label:"Conversación"},{id:"constructor",label:"Constructor"}],Zs=({inputValue:t,onInputChange:s,onSendClick:r,placeholder:a="Input Text",variant:n="default",className:l,minLines:i=2,maxLines:x=10})=>{const[o,c]=j.useState("conversation"),d=j.useRef(null),u=20,m=i*u,p=x*u;j.useEffect(()=>{const w=d.current?.querySelector("textarea");if(!w)return;w.style.height="0px",w.style.overflow="hidden";const g=w.scrollHeight,f=Math.max(m,Math.min(g,p));w.style.height=`${f}px`,w.style.overflow=g>p?"auto":"hidden"},[t,m,p]);const b=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),r?.())};return e.jsxs("div",{ref:d,className:h.clsx("flex flex-col gap-3 p-4 rounded-xl bg-surface-2 border border-surface-3",l),children:[e.jsx("div",{className:"mb-1",children:e.jsx(T,{variant:"neutral",hierarchy:"quaternary",size:"xs",icons:"only",leadingIcon:e.jsx(z.Hashtag,{}),"aria-label":"Add"})}),e.jsx(Ir,{variant:"default",placeholder:a,value:t,onChange:w=>s?.(w.target.value),onKeyDown:b,resize:"none",className:"[&_textarea]:!min-h-0"}),e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"flex items-center gap-4",children:e.jsx(T,{variant:"neutral",hierarchy:"quaternary",size:"md",borderRadius:"12px",icons:"only",leadingIcon:e.jsx(z.AddCircle,{}),"aria-label":"Add"})}),n==="default"&&e.jsx(gr,{withBorder:!0,items:ha,value:o,onChange:c,size:"ai-chat"})]}),e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"md",icons:"only",borderRadius:"12px",leadingIcon:e.jsx(gs,{}),onClick:r,"aria-label":"Send"})]})]})},tt=({variant:t,children:s,className:r})=>e.jsx("div",{className:h.clsx("chat-message-container",t==="sent"?"chat-message-sent":"chat-message-received",r),children:e.jsx("div",{className:h.clsx("chat-message-content",t==="sent"?"chat-message-sent-content":"chat-message-received-content"),children:s})}),st=({className:t,onCopyClick:s,onLikeClick:r,onDislikeClick:a,onRefreshClick:n})=>{const[l,i]=j.useState(!1),[x,o]=j.useState(!1),c=()=>{i(!l),r?.()},d=()=>{o(!x),a?.()};return e.jsxs("div",{className:h.clsx("inline-flex items-center gap-4",t),children:[e.jsx("button",{onClick:s,className:"p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em","aria-label":"Copy message",children:e.jsx($,{size:"sm",children:e.jsx(z.Copy,{})})}),e.jsx("button",{onClick:c,className:"p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em","aria-label":"Like message",children:e.jsx($,{size:"sm",children:l?e.jsx(z.Like1,{variant:"Bold"}):e.jsx(z.Like1,{variant:"Outline"})})}),e.jsx("button",{onClick:d,className:"p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em","aria-label":"Dislike message",children:e.jsx($,{size:"sm",children:x?e.jsx(z.Dislike,{variant:"Bold"}):e.jsx(z.Dislike,{variant:"Outline"})})}),e.jsx("button",{onClick:n,className:"p-1 rounded hover:bg-surface-2 transition-colors cursor-pointer text-high-em","aria-label":"Refresh response",children:e.jsx($,{size:"sm",children:e.jsx(z.Refresh,{})})})]})},Os=({fileName:t,fileSize:s,alignment:r="left",className:a,...n})=>e.jsx("a",{href:n.href||"#",download:!0,className:h.clsx("block w-full border border-surface-2 p-4 transition-colors hover:bg-surface-2","py-6 px-8 h-[68px]",{"rounded-tr-lg rounded-br-lg rounded-bl-lg":r==="left","rounded-tl-lg rounded-bl-lg rounded-br-lg":r==="right"},a),...n,children:e.jsxs("div",{className:"flex flex-col text-low-em",children:[e.jsx("span",{className:"font-medium text-sm",children:t}),e.jsx("span",{className:"font-normal text-sm",children:s})]})}),Bs=({className:t})=>e.jsx("div",{className:h.clsx("w-full max-w-max self-start",t),children:e.jsx("div",{className:"flex items-center gap-1 px-4 py-3",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"w-3 h-3 bg-low-em rounded-full animate-typing-dot",style:{animationDelay:"0ms"}}),e.jsx("span",{className:"w-3 h-3 bg-surface-4 rounded-full animate-typing-dot",style:{animationDelay:"200ms"}}),e.jsx("span",{className:"w-3 h-3 bg-low-em rounded-full animate-typing-dot",style:{animationDelay:"400ms"}})]})})}),ma=k.default.lazy(()=>Promise.resolve().then(()=>require("./index-CVAu6nrM.cjs"))),Ht=({children:t})=>e.jsx(j.Suspense,{fallback:e.jsx("span",{children:t}),children:e.jsx(ma,{children:t})}),_s=k.default.memo(({messages:t,showTypingIndicator:s=!1,children:r,className:a,borderSide:n="none",borderStyle:l="surface-3",showHeader:i=!1,headerHeight:x=56,activeView:o="chat",onChatClick:c,onHistorialClick:d,onSettingsClick:u,onCloseClick:m,containerWidth:p=0,historialItems:b=[],onHistorialItemClick:w,historialSearchPlaceholder:g,onHistorialSearchChange:f,historialEmptyState:C,showChatInput:N=!0,chatInputValue:v,onChatInputChange:y,onChatSendClick:M,chatInputPlaceholder:I="Input Text",chatInputVariant:R="default",chatInputMinLines:D=2,chatInputMaxLines:A=10,onMessageCopyClick:P,onMessageLikeClick:F,onMessageDislikeClick:S,onMessageRefreshClick:Z})=>{const V=k.default.useMemo(()=>n==="none"?"":`${n==="left"?"border-l":"border-r"} ${l==="surface-3"?"border-surface-3":"border-surface-4"}`,[n,l]);return e.jsxs("div",{className:`h-full w-full flex flex-col bg-white ${V} ${a||""}`,children:[i&&e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{height:`${x}px`},children:e.jsx(Ws,{activeView:o,onChatClick:c,onHistorialClick:d,onSettingsClick:u,onCloseClick:m,containerWidth:p,className:"pl-8 items-end h-full"})}),e.jsx(K,{})]}),o==="historial"?e.jsx(Fs,{items:b,onItemClick:w,searchPlaceholder:g,onSearchChange:f,emptyState:C,className:"flex-1 overflow-y-auto"}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex-1 overflow-y-auto",children:t?e.jsxs("div",{className:"flex flex-col gap-10 px-9 py-6",children:[t.map(L=>e.jsx(k.default.Fragment,{children:L.attachment?e.jsxs("div",{className:`flex flex-col gap-4 ${L.variant==="sent"?"items-end":"items-start"}`,children:[e.jsxs("div",{className:`flex flex-col gap-10 ${L.variant==="sent"?"items-end":"items-start"}`,children:[e.jsx(tt,{variant:L.variant,children:typeof L.content=="string"?e.jsx(Ht,{children:L.content}):L.content}),e.jsx("div",{className:"w-auto max-w-[300px]",children:e.jsx(Os,{fileName:L.attachment.fileName,fileSize:L.attachment.fileSize,alignment:L.variant==="sent"?"right":"left",href:L.attachment.href})})]}),L.variant==="received"&&e.jsx(st,{onCopyClick:()=>P?.(L.id),onLikeClick:()=>F?.(L.id),onDislikeClick:()=>S?.(L.id),onRefreshClick:()=>Z?.(L.id)})]}):e.jsxs("div",{className:`flex flex-col ${L.variant==="sent"?"items-end":"items-start"}`,children:[e.jsx(tt,{variant:L.variant,children:typeof L.content=="string"?e.jsx(Ht,{children:L.content}):L.content}),L.variant==="received"&&e.jsx(st,{onCopyClick:()=>P?.(L.id),onLikeClick:()=>F?.(L.id),onDislikeClick:()=>S?.(L.id),onRefreshClick:()=>Z?.(L.id)})]})},L.id)),s&&e.jsx(Bs,{})]}):r}),N&&e.jsx("div",{className:"p-4",children:e.jsx(Zs,{minLines:D,maxLines:A,inputValue:v,onInputChange:y,onSendClick:M,placeholder:I,variant:R,containerWidth:p})})]})]})});_s.displayName="ChatPanel";const fa={sm:{container:"px-4 py-3 text-xs font-medium leading-[18px]",iconSize:16,gapValue:"6px"},md:{container:"px-5 py-4 text-sm font-semibold leading-[22px]",iconSize:16,gapValue:"6px"}},pa={drag:"cursor-grabbing shadow-[0_8px_14px_-4px_rgba(0,0,0,0.2)]",hover:"opacity-90 hover:scale-[1.02] transition-transform",default:"border border-surface-4"},ga=(t,s)=>s==="disabled"?"bg-surface-3 border-none text-disabled":s==="hover"?t==="selected"?"bg-surface-2 border-surface-3 text-high-em":"bg-surface-2 border-surface-4 text-high-em":s==="focus"?t==="selected"?"bg-surface-2 border-2 border-surface-3 text-high-em":"bg-surface-2 border-2 border-surface-4 text-high-em":s==="drag"?t==="selected"?"bg-surface-2 border-surface-3 text-high-em":"bg-surface-2 border-surface-4 text-high-em":"",ba=({size:t="md",type:s="unselected",state:r="default",children:a,leftContent:n,rightContent:l,onClick:i,className:x,showLeftContent:o=!0,showRightContent:c=!0,showText:d=!0})=>{const u=R=>{if(!k.default.isValidElement(R))return R;const D=R,A=D.props.style||{},P={...D.props,style:{...A,width:"100%",height:"100%",display:"block"},size:void 0};return k.default.cloneElement(D,P)},m=!!i&&r!=="disabled",p=!!n&&o,b=!!l&&c,w=fa[t],g=pa[r],f=ga(s,r),C=W.twMerge("inline-flex items-center border border-solid transition-all duration-150 rounded-full font-family-inter",g,w.container,f,m&&"cursor-pointer hover:opacity-90 active:opacity-100",r==="disabled"&&"cursor-not-allowed",r==="drag"&&"cursor-grabbing",x),N="flex-shrink-0 inline-flex items-center justify-center",v=w.iconSize,y=w.gapValue,M=e.jsx("div",{className:N,style:{marginRight:y,width:`${v}px`,height:`${v}px`},children:p?u(n):null}),I=e.jsx("div",{className:N,style:{marginLeft:y,width:`${v}px`,height:`${v}px`},children:b?u(l):null});return e.jsxs("div",{className:C,role:m?"button":"status",onClick:m?i:void 0,tabIndex:m?0:void 0,children:[M,d&&e.jsx("span",{className:"shrink-0",children:a}),I]})},ja=["--black","--white","--black-uniform","--white-uniform","--surface-bg","--surface-1","--surface-2","--surface-3","--surface-4","--disabled","--placeholder","--low-em","--med-em","--high-em","--brand-primary-main","--brand-primary-main-special","--brand-primary-accent-special","--brand-primary-accent-3","--brand-secondary-main","--brand-secondary-accent-3","--warning-em","--warning-main","--warning-accent-3","--warning-accent-1","--warning-accent-0","--success-em","--success-main","--success-accent-3","--success-accent-2","--success-accent-1","--info-em","--info-main","--info-accent-3","--info-accent-2","--info-accent-1","--danger-em","--danger-main","--danger-accent-3","--danger-accent-2","--danger-accent-1"],va=()=>{if(typeof document>"u")return[];const t=[],s=getComputedStyle(document.documentElement);return ja.forEach(r=>{const a=s.getPropertyValue(r).trim();a&&t.push({name:r,value:a.toUpperCase()})}),t},wa=({colors:t})=>{const[s,r]=j.useState(t||[]),[a,n]=j.useState(0);return j.useEffect(()=>{if(t){r(t);return}r(va())},[t,a]),j.useEffect(()=>{if(t)return;const l=new MutationObserver(i=>{i.forEach(x=>{x.type==="attributes"&&x.attributeName==="class"&&n(o=>o+1)})});return l.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>l.disconnect()},[t]),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:s.map(({name:l,value:i})=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",fontFamily:"monospace"},children:[e.jsx("div",{style:{width:"50px",height:"50px",backgroundColor:i,border:"1px solid #ccc",borderRadius:"4px"}}),e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:"bold"},children:l}),e.jsx("div",{children:i})]})]},l))})},Ca=({disabled:t=!1,className:s,...r})=>e.jsxs("div",{className:W.twMerge(h.clsx("inline-flex flex-col items-center justify-center gap-[2px]","w-[17px] h-[80px] rounded-full border border-surface-3 bg-white","cursor-grab active:cursor-grabbing transition-opacity",t&&"opacity-50 cursor-not-allowed",s)),...r,children:[e.jsx("div",{className:"w-[2.6px] h-[3px] rounded-full bg-surface-3"}),e.jsx("div",{className:"w-[2.6px] h-[3px] rounded-full bg-surface-3"}),e.jsx("div",{className:"w-[2.6px] h-[3px] rounded-full bg-surface-3"})]}),ya={text_icon:{showLeadingIcon:!0,showLeadingAvatar:!1,showInput:!0,showTrailingChevron:!0,showTrailingAddon:!1},text_image:{showLeadingIcon:!1,showLeadingAvatar:!0,showInput:!0,showTrailingChevron:!0,showTrailingAddon:!1},only_icon:{showLeadingIcon:!1,showLeadingAvatar:!1,showInput:!1,showTrailingChevron:!0,showTrailingAddon:!1},text_icon_text:{showLeadingIcon:!0,showLeadingAvatar:!1,showInput:!0,showTrailingChevron:!1,showTrailingAddon:!0}},Na={default:{fill:{wrapper:"border-none bg-gray-100 focus-within:ring-gray-500 text-dark-300",hint:"text-primary-300",input:"text-primary-300 placeholder-gray-500"},outlined:{wrapper:"border-gray-500 bg-white focus-within:ring-gray-600 text-dark-300",hint:"text-gray-600",input:"text-dark-300 placeholder-gray-500"}},danger:{fill:{wrapper:"border-danger-200 bg-danger-50 focus-within:ring-danger-200 text-danger-600",hint:"text-danger-600",input:"text-danger-600 placeholder-danger-400"},outlined:{wrapper:"border-danger-300 bg-white text-danger-600 focus-within:ring-danger-200",hint:"text-danger-600",input:"text-danger-600 placeholder-danger-400"}},success:{fill:{wrapper:"border-success-300 bg-success-50 focus-within:ring-success-200 text-success-600",hint:"text-success-600",input:"text-success-900 placeholder-success-400"},outlined:{wrapper:"border-success-300 bg-white text-success-600 focus-within:ring-success-200",hint:"text-success-600",input:"text-success-900 placeholder-success-400"}}},ka="opacity-50 bg-gray-100 cursor-not-allowed",Sa={sm:{wrapper:"h-[32px] text-[10px] px-4",icon:14,avatar:"w-[12px] h-[12px]"},md:{wrapper:"h-[38px] text-[14px] px-6",icon:16,avatar:"w-[16px] h-[16px]"},lg:{wrapper:"h-[48px] text-[16px] px-8",icon:20,avatar:"w-[20px] h-[20px]"}},La=({layout:t="text_icon",hierarchy:s="fill",variant:r="default",size:a="md",label:n,hint:l,disabled:i,leadingIcon:x,leadingAvatar:o,trailingAddon:c,options:d,value:u,onChange:m,placeholder:p,className:b,placeholderColor:w,inputTextColor:g,backgroundColor:f,chevronColor:C="currentColor",optionActiveColor:N="bg-primary-500",optionActiveTextColor:v="text-white",optionTextColor:y="text-gray-900",borderRadius:M="rounded-lg"})=>{const[I,R]=j.useState(""),D=Na[r][s],A=Sa[a],P=ya[t],F=I===""?d:d.filter(V=>V.label.toLowerCase().includes(I.toLowerCase())),S=W.twMerge(h.clsx("w-full flex-1 bg-transparent focus:outline-none",D.input,w,g)),Z=W.twMerge(h.clsx("relative flex items-center gap-2 border transition-colors duration-200 focus-within:ring-2",M,A.wrapper,D.wrapper,i&&ka,f));return e.jsxs("div",{className:h.clsx("flex flex-col gap-1.5",b),children:[n&&e.jsx("label",{className:"font-medium text-sm text-gray-800",children:n}),e.jsx(O.Combobox,{value:u,onChange:m,disabled:i,children:e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:Z,children:[P.showLeadingIcon&&x&&e.jsx("div",{children:k.default.cloneElement(x,{size:A.icon,color:"currentColor"})}),P.showLeadingAvatar&&o&&e.jsx("img",{src:o,alt:"avatar",className:h.clsx("rounded-full",A.avatar)}),P.showInput&&e.jsx(O.Combobox.Input,{className:S,placeholder:p,onChange:V=>R(V.target.value),displayValue:V=>V?.label}),P.showTrailingChevron&&!c&&e.jsx(O.Combobox.Button,{className:h.clsx("flex items-center",{"w-full h-full justify-center":t==="only_icon"}),children:e.jsx(z.ArrowDown2,{size:A.icon,color:C})}),P.showTrailingAddon&&c&&e.jsx("div",{className:"flex-shrink-0",children:c})]}),e.jsx(O.Combobox.Options,{className:"absolute z-10 mt-1 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm",children:F.length===0&&I!==""?e.jsx("div",{className:"relative cursor-default select-none px-4 py-2 text-gray-700",children:"Nothing found."}):F.map(V=>e.jsx(O.Combobox.Option,{value:V,className:({active:H})=>W.twMerge(h.clsx("relative cursor-default select-none py-2 pl-4 pr-4",H?`${N} ${v}`:y)),children:V.label},V.id))})]})}),l&&e.jsxs("div",{className:h.clsx("flex items-center gap-1.5 text-sm",D.hint),children:[e.jsx(z.InfoCircle,{size:16,color:"currentColor"}),e.jsx("span",{children:l})]})]})},za=({items:t,trigger:s,className:r,align:a="right",offset:n=8})=>{const[l,i]=j.useState(!1),x=j.useRef(null),o=j.useRef(null);j.useEffect(()=>{const d=u=>{x.current&&!x.current.contains(u.target)&&o.current&&!o.current.contains(u.target)&&i(!1)};if(l)return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[l]);const c=d=>{d.disabled||(d.onClick(),i(!1))};return e.jsxs("div",{className:h.clsx("relative inline-block",r),children:[e.jsx("div",{ref:o,onClick:()=>i(!l),className:"cursor-pointer",children:s}),l&&e.jsx("div",{ref:x,className:h.clsx("absolute z-50 mt-2 min-w-[200px] rounded-lg bg-white shadow-lg border border-gray-200",a==="right"?"right-0":"left-0"),style:{top:`calc(100% + ${n}px)`},children:e.jsx("div",{className:"py-2",children:t.map((d,u)=>e.jsxs("button",{onClick:()=>c(d),disabled:d.disabled,className:h.clsx("w-full px-4 py-2.5 text-left text-sm flex items-center gap-3 transition-colors relative","hover:bg-gray-50",d.destructive?"text-[var(--danger-main)]":"text-[var(--high-em)]",d.disabled&&"opacity-50 cursor-not-allowed",u<t.length-1&&"border-b border-gray-100",u===0&&"before:absolute before:inset-x-0 before:-top-2 before:h-2 before:bg-transparent hover:before:bg-gray-50",u===t.length-1&&"after:absolute after:inset-x-0 after:-bottom-2 after:h-2 after:bg-transparent hover:after:bg-gray-50"),children:[d.icon&&e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center relative z-10",children:d.icon}),e.jsx("span",{className:"flex-1 font-normal relative z-10",children:d.label})]},d.id))})})]})},mt=k.default.memo(({children:t,tooltipContent:s,icon:r,iconColor:a="text-disabled",leadingIcon:n,leadingIconColor:l="text-disabled",iconSize:i,className:x,labelClassName:o,fontSize:c="sm",fontWeight:d="semibold",textColor:u="",onClick:m,state:p="default"})=>{const b={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"},w={xs:12,sm:16,base:18,lg:20,xl:24},g={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},f=b[c]||void 0,C=b[c]?void 0:c,N=i??w[c]??20,v=!!m&&p!=="disabled",y=W.twMerge(h.clsx("flex border border-surface-3 w-full items-center px-6 h-14 text-left text-sm font-medium transition-colors rounded-xl",p==="disabled"&&"bg-surface-3 pointer-events-none",p==="hover"&&"bg-surface-1",p==="active"&&"bg-surface-2",p==="drag"&&"cursor-grabbing shadow-[0_8px_14px_-4px_rgba(0,0,0,0.2)] bg-surface-2",v&&p==="default"&&"cursor-pointer hover:bg-surface-1 active:bg-surface-2",p==="disabled"&&"cursor-not-allowed",x)),M=W.twMerge(h.clsx("flex-1 ml-6",f,g[d],p==="disabled"?"text-disabled":u||"text-med-em",o));return e.jsxs("div",{className:y,onClick:v?m:void 0,suppressHydrationWarning:!0,children:[n&&e.jsx("div",{className:"flex items-center shrink-0",children:e.jsx($,{size:N,className:l,children:n})}),e.jsx("span",{className:M,style:C?{fontSize:C}:void 0,children:t}),r&&s?e.jsxs(X.Root,{children:[e.jsx(X.Trigger,{asChild:!0,children:e.jsx("button",{className:h.clsx("flex items-center focus:outline-none focus-visible:ring-2 rounded-full shrink-0",a),onClick:I=>I.stopPropagation(),children:e.jsx($,{size:N,className:a,children:r})})}),e.jsx(X.Portal,{children:e.jsxs(X.Content,{sideOffset:5,className:h.clsx("z-50 max-w-xs overflow-hidden rounded-xl bg-surface-bg p-3 text-xs font-medium text-med-em shadow-lg","data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade","data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade"),children:[s,e.jsx(X.Arrow,{className:"fill-white"})]})})]}):r?e.jsx("div",{className:h.clsx("flex items-center shrink-0",a),children:e.jsx($,{size:N,className:a,children:r})}):null]})});mt.displayName="DragAndDropListItem";const Ma={default:{wrapper:"bg-surface-2 border-transparent hover:bg-surface-3 hover:cursor-pointer",optionsPanel:"border-surface-4",label:"text-med-em",selectedValue:"text-med-em",placeholder:"text-placeholder",hint:"text-med-em"},danger:{wrapper:"bg-danger-accent-1 border-danger-accent-2",optionsPanel:"border-danger-accent-2",label:"text-high-em",selectedValue:"text-danger-em",placeholder:"text-danger-em",hint:"text-danger-em"},outlined:{wrapper:"bg-white border-surface-4",optionsPanel:"border-surface-4",label:"text-med-em",selectedValue:"text-med-em",placeholder:"text-placeholder",hint:"text-med-em"}},je={wrapper:"bg-surface-3 text-disabled pointer-events-none border-transparent",label:"text-disabled",selectedValue:"text-disabled",placeholder:"text-disabled",hint:"text-disabled"},Ia={sm:{wrapper:"h-10 rounded-md",selectText:"text-xs",icon:14,labelFontSize:"text-[10px]",hintFontSize:"text-[10px]",hintIconSize:12},md:{wrapper:"h-[38px] rounded-6",selectText:"text-sm font-medium",icon:16,labelFontSize:"text-xs",hintFontSize:"text-xs",hintIconSize:12}},Ae=({variant:t="default",size:s="md",menuSize:r,label:a,hint:n,items:l,disabled:i,placeholder:x,className:o,value:c,onChange:d,id:u,customHeight:m,customRadius:p,customPlaceholderColor:b,customBackgroundColor:w,leadingIcon:g,showLeadingIcon:f=!0,hintIconVariant:C,menuMinHeight:N})=>{const v=Ma[t],y=Ia[s],M=r||s,I=j.useRef(null),R=j.useRef(null),[D,A]=j.useState(!1),[P,F]=j.useState(null),[S,Z]=j.useState(!1),V=l.find(E=>E.id===c);j.useEffect(()=>{Z(!0)},[]);const H=k.default.useCallback(()=>{if(I.current&&D){const E=I.current.getBoundingClientRect(),Me=window.innerHeight-E.bottom,Qe=E.top,be=Me<200&&Qe>Me;F({top:be?E.top-8:E.bottom+8,left:E.left,width:E.width,openUpwards:be})}},[D]);j.useEffect(()=>{if(D){H();const E=B=>{R.current?.contains(B.target)||A(!1)};return window.addEventListener("scroll",E,!0),window.addEventListener("resize",H),()=>{window.removeEventListener("scroll",E,!0),window.removeEventListener("resize",H)}}},[D,H]),j.useEffect(()=>{if(!D)return;const E=B=>{I.current&&!I.current.contains(B.target)&&R.current&&!R.current.contains(B.target)&&A(!1)};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[D]);const L=()=>{i||A(!D)},_=E=>{d(E),A(!1)},ae=m?{height:m}:void 0,G=()=>{if(p)return{borderRadius:p}},U=()=>{if(p)return{borderRadius:p}},te=b?.startsWith("var(")?{color:b}:void 0,ye=b&&!b.startsWith("var(")?b:void 0,Ne=w&&!w.startsWith("#")&&!w.startsWith("rgb")?w:void 0,ge=w&&(w.startsWith("#")||w.startsWith("rgb"))?{backgroundColor:w}:void 0;return e.jsxs("div",{className:h.clsx("w-full flex flex-col gap-1.5",o),children:[a&&e.jsx("label",{htmlFor:u,className:h.clsx("font-semibold",y.labelFontSize,v.label,i&&je.label),children:a}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{ref:I,id:u,onClick:L,disabled:i,className:h.clsx("relative w-full cursor-default border text-left transition-colors duration-200 focus:outline-none focus-visible:ring-2","flex items-center",!m&&y.wrapper,!w&&v.wrapper,Ne,i&&je.wrapper,!p&&"rounded-xl"),style:{...ae,...G(),...ge},children:[f&&e.jsx("span",{className:h.clsx("pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3.5",i?"text-disabled":V?v.selectedValue:v.placeholder),children:g?k.default.isValidElement(g)?k.default.cloneElement(g,{color:"currentColor"}):g:e.jsx(z.Category,{size:y.icon,color:"currentColor"})}),e.jsx("span",{className:h.clsx("flex-1 min-w-0 truncate",f?"pl-[36px]":"pl-3.5"),children:V?e.jsx("span",{className:h.clsx(y.selectText,i?je.selectedValue:v.selectedValue),children:V.title}):e.jsx("span",{className:h.clsx(y.selectText,i?je.placeholder:v.placeholder,ye),style:te,children:x})}),e.jsx("span",{className:"pointer-events-none flex items-center pr-3.5 shrink-0",children:D?e.jsx(z.ArrowUp2,{size:y.icon,color:"currentColor"}):e.jsx(z.ArrowDown2,{size:y.icon,color:"currentColor"})})]}),S&&D&&P&&Bt.createPortal(e.jsx("div",{ref:R,className:"fixed z-50",style:P.openUpwards?{bottom:`${window.innerHeight-P.top}px`,left:`${P.left}px`,width:`${P.width}px`}:{top:`${P.top}px`,left:`${P.left}px`,width:`${P.width}px`},children:e.jsx(ze,{items:l.map(({id:E,...B})=>({id:E,...B})),size:M,floating:!1,onSelect:_,selectedIds:c?[c]:[],className:h.clsx("w-full overflow-y-auto shadow-md border",!p&&"rounded-xl",v.optionsPanel,"bg-surface-bg"),style:{...U(),maxHeight:P.openUpwards?`min(300px, ${P.top-20}px)`:`min(300px, calc(100vh - ${P.top}px - 20px))`,minHeight:N}})}),document.body)]}),n&&e.jsx(le,{icon:e.jsx(z.InfoCircle,{variant:C}),label:n,iconSize:y.hintIconSize,gap:1,iconColorClass:h.clsx(v.hint,i&&je.hint),labelColorClass:h.clsx(v.hint,i&&je.hint),className:h.clsx(y.hintFontSize,"font-semibold")})]})};function Pa({children:t,...s}){return e.jsx(O.Menu,{as:"div",className:"relative inline-block text-left",...s,children:t})}const Gs=k.default.memo(({isOver:t=!1,activeHeight:s="56px",inactiveHeight:r="0px",transitionDuration:a=150,transitionTimingFunction:n="ease-out",className:l,style:i,dropRef:x,id:o})=>e.jsx("div",{ref:x,id:o,className:l,style:{height:t?s:r,transition:`height ${a}ms ${n}`,overflow:"hidden",...i}}));Gs.displayName="DropZone";class Ta extends j.Component{constructor(s){super(s),this.state={hasError:!1,error:null}}static getDerivedStateFromError(s){return{hasError:!0,error:s}}componentDidCatch(s,r){const{componentName:a,onError:n}=this.props;console.error(`Error in ${a||"component"}:`,s,r),n&&n(s,r)}resetError=()=>{this.setState({hasError:!1,error:null})};render(){const{hasError:s,error:r}=this.state,{children:a,fallback:n,defaultTitle:l="Something went wrong",defaultMessage:i="An error occurred while rendering this component.",retryLabel:x="Try again"}=this.props;return s?n?k.default.isValidElement(n)?k.default.cloneElement(n,{error:r,onRetry:this.resetError}):n:e.jsx("div",{className:"flex items-center justify-center h-full p-8",children:e.jsxs("div",{className:"text-center flex flex-col gap-6 items-center",children:[e.jsx("h3",{className:"text-lg font-semibold text-danger-main",children:l}),e.jsx("p",{className:"text-sm text-med-em",children:i}),e.jsx(T,{onClick:this.resetError,size:"sm",variant:"secondary",hierarchy:"primary",children:x})]})}):a}}const Us=k.default.memo(({icon:t=e.jsx($,{className:"text-danger-main",size:"2xl",children:e.jsx(z.Danger,{})}),title:s="Something went wrong",message:r,error:a,onRetry:n,retryLabel:l="Retry",showDetailsInProduction:i=!1,className:x,centered:o=!0,maxWidth:c="max-w-sm"})=>{const d=i||process.env.NODE_ENV==="development";return e.jsx(Mt,{children:e.jsx("div",{className:h.clsx("flex flex-col p-8",o&&"items-center justify-center h-full",x),children:e.jsxs("div",{className:h.clsx("text-center flex justify-center items-center flex-col gap-6",c),children:[typeof t=="string"?e.jsx("div",{className:"text-5xl",children:t}):e.jsx("div",{className:"flex justify-center",children:t}),e.jsx("h3",{className:"text-lg font-semibold text-danger-main",children:s}),r&&e.jsx("p",{className:"text-sm text-med-em mb-4",children:r}),a&&d&&e.jsxs("details",{className:"text-left",children:[e.jsx("summary",{className:"text-xs text-med-em cursor-pointer",children:"Technical details"}),e.jsxs("pre",{className:"text-xs text-danger-main p-2 rounded overflow-auto max-h-32",children:[a.message,a.stack&&`
|
|
24
22
|
|
|
25
|
-
${a.stack}`]})]}),n&&e.jsx(R,{onClick:n,variant:"secondary",hierarchy:"secondary",size:"sm",children:l})]})})})});qs.displayName="ErrorState";const pt=k.default.memo(({icon:t=e.jsx($,{size:56,children:e.jsx(z.Box2,{})}),description:s,actionLabel:r,onAction:a,flat:n=!1,className:l,iconClassName:i,descriptionClassName:x})=>e.jsx("div",{className:h.clsx("flex flex-col items-center justify-center w-full",n?"bg-surface-1 p-10":"rounded-6 bg-surface-1 p-10 border border-surface-2",l),children:e.jsxs("div",{className:"flex flex-col items-center gap-10 text-center",children:[e.jsx("span",{className:h.clsx("text-low-em",i),children:t}),s&&e.jsx("p",{className:h.clsx("text-lg font-medium text-low-em",x),children:s}),r&&e.jsx(R,{variant:"secondary",hierarchy:"primary",size:"md",icons:"leading",leadingIcon:e.jsx(z.Add,{}),onClick:a,children:r})]})}));pt.displayName="EmptyState";const Aa=({groups:t,className:s,width:r,height:a})=>{const n=h.clsx("flex","items-center","justify-center","p-1 bg-brand-primary-main-special rounded-lg border border-brand-primary-accent-special gap-2"),[l,i]=j.useState(null),x=j.useRef(null);j.useEffect(()=>{const c=u=>{x.current&&!x.current.contains(u.target)&&i(null)};if(l)return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[l]);const o={width:r,height:a};return e.jsx("div",{style:o,className:h.clsx("flex items-center gap-4 w-fit",s),children:t.map((c,u)=>e.jsx("div",{className:n,children:c.map(d=>e.jsx("div",{className:"relative",children:d.type==="dropdown"?e.jsxs("div",{ref:x,className:"relative gap-4",children:[e.jsx(R,{variant:d.variant||"brand",hierarchy:d.hierarchy||"secondary",size:d.size||"sm",icons:d.leadingIcon&&d.trailingIcon?"both":d.leadingIcon?"leading":d.trailingIcon?"trailing":void 0,leadingIcon:d.leadingIcon,trailingIcon:l===d.id?e.jsx(ut,{}):e.jsx(xt,{}),onClick:()=>i(l===d.id?null:d.id),disabled:d.disabled,style:{outline:"none",boxShadow:"none"},className:h.clsx(d.className,l===d.id&&"bg-brand-primary-accent-special"),children:d.label}),l===d.id&&e.jsx(Le,{floating:!0,size:d.dropMenuSize||"sm",items:d.items.map(m=>({id:m.id,title:m.label,leadingIcon:m.icon,showLeadingIcon:!!m.icon,showDescription:d.showDescription??!1,showTrailingIcon:d.showTrailingIcon??!1,showTrailingText:d.showTrailingText??!1,showTag:d.showTag??!1,showCheckbox:d.showCheckbox??!1,disabled:m.disabled,showDividerAfter:m.showDividerAfter,onClick:()=>{m.onClick(),i(null)},...m.destructive&&{customTitleColor:d.destructiveColor||"text-danger-em"}})),className:h.clsx("bottom-full mb-4",d.dropMenuClassName)})]}):e.jsx(R,{variant:d.variant||"brand",hierarchy:d.hierarchy||"secondary",size:d.size||"sm",icons:d.label?d.leadingIcon&&d.trailingIcon?"both":d.leadingIcon?"leading":d.trailingIcon?"trailing":void 0:"only",leadingIcon:d.leadingIcon,trailingIcon:d.trailingIcon,onClick:d.onClick,disabled:d.disabled,style:{outline:"none",boxShadow:"none"},className:h.clsx(d.className),children:d.label})},d.id))},u))})},Qs=({icon:t,text:s,onClick:r,className:a=""})=>{const n=()=>{r&&r()};return e.jsxs("div",{className:h.clsx("w-full h-[60px]","bg-surface-bg","border border-surface-3","rounded-lg","flex flex-col items-center justify-center","cursor-grab",r&&"hover:bg-surface-1 transition-colors",a),onClick:n,children:[t&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx($,{size:20,color:"var(--low-em)",children:t})}),s&&e.jsx("span",{className:"font-inter font-semibold text-[10px] text-low-em mt-1",children:s})]})},gt=t=>t?{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}[t]:"",bt=t=>t?{start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline",stretch:"items-stretch"}[t]:"",Ea={sm:"h-13",md:"h-14",lg:"h-[60px]"},Ks=({gap:t=4,justify:s,align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex",le(t),gt(s),bt(r),a),...l,children:n}),Ys=({gap:t=4,justify:s="center",align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex h-full",le(t),gt(s),bt(r),a),...l,children:n}),Js=({gap:t=5,justify:s="end",align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex",le(t),gt(s),bt(r),a),...l,children:n}),Va={always:"flex",desktop:"hidden lg:flex",none:"hidden"},_e=t=>{const{className:s,bordered:r=!0,size:a="lg",logoVariant:n="with-text",showLogo:l="always",children:i,logoSectionGap:x=6,leftWidth:o,centerWidth:c,rightWidth:u,centerFullHeight:d=!0,showCenterOnMobile:m=!1,...p}=t,b=k.default.Children.toArray(i).find(f=>k.default.isValidElement(f)&&f.type===Ks),w=k.default.Children.toArray(i).find(f=>k.default.isValidElement(f)&&f.type===Ys),g=k.default.Children.toArray(i).find(f=>k.default.isValidElement(f)&&f.type===Js);return e.jsx("header",{className:Q.default("relative w-full bg-white",r&&"border-b border-surface-4",s),...p,children:e.jsxs("div",{className:Q.default("flex items-center",o!==void 0||c!==void 0||u!==void 0?"lg:px-0":"justify-between lg:px-container-desktop","px-container-mobile md:px-container-tablet",Ea[a]),children:[e.jsxs("div",{className:Q.default("flex items-center",o!==void 0?"lg:pl-8!":"shrink-0",le(x)),style:o!==void 0?{width:`${o}%`}:void 0,children:[l!=="none"&&e.jsx("div",{className:Q.default("items-center",Va[l]),children:n==="with-text"?e.jsx(Re,{height:25,className:"text-black"}):e.jsx(De,{height:25,className:"text-black"})}),b]}),w&&e.jsx("div",{className:Q.default(m?"flex justify-center":"hidden lg:flex justify-center",d&&"h-full",c!==void 0?"":"flex-1"),style:c!==void 0?{width:`${c}%`}:void 0,children:w}),e.jsx("div",{className:Q.default("flex items-center",u!==void 0?"justify-end lg:pr-8!":"shrink-0 ml-auto"),style:u!==void 0?{width:`${u}%`}:void 0,children:g})]})})};_e.LeftContent=Ks;_e.Center=Ys;_e.Right=Js;function Wa(t,s=20){const r=100-2*s,a=t.left.filter(o=>o.open).reduce((o,c)=>o+c.width,0),n=t.right.filter(o=>o.open).reduce((o,c)=>o+c.width,0);if(a===0&&n===0)return{leftWidth:s,centerWidth:r,rightWidth:s};const l=a>0?a:s,i=n>0?n:s,x=100-l-i;return{leftWidth:l,centerWidth:x,rightWidth:i}}const Xs=t=>t?{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}[t]:"",er=t=>t?{start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline",stretch:"items-stretch"}[t]:"",$a={sm:"h-13",md:"h-14",lg:"h-[60px]"},tr=({gap:t=4,justify:s,align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex",le(t),Xs(s),er(r),a),...l,children:n}),sr=({gap:t=4,justify:s="end",align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex",le(t),Xs(s),er(r),a),...l,children:n}),Ge=t=>{const{className:s,bordered:r=!0,size:a="md",logoVariant:n="no-text",showLogo:l="always",children:i,logoSectionGap:x=6,leftWidth:o,rightWidth:c,...u}=t,d=k.default.Children.toArray(i).find(p=>k.default.isValidElement(p)&&p.type===tr),m=k.default.Children.toArray(i).find(p=>k.default.isValidElement(p)&&p.type===sr);return e.jsxs("footer",{className:Q.default("relative w-full bg-white",r&&"border-t border-surface-4",s),...u,children:[e.jsxs("div",{className:"flex flex-col gap-8 px-container-mobile py-8 lg:hidden",children:[l!=="none"&&e.jsx("div",{className:"flex items-center",children:n==="with-text"?e.jsx(Re,{height:22,className:"text-black"}):e.jsx(De,{height:22,className:"text-black"})}),d&&e.jsx("div",{className:"flex items-center",children:d}),m&&e.jsx("div",{className:"flex items-center gap-4 px-0",children:m})]}),e.jsxs("div",{className:Q.default("hidden lg:flex items-center justify-between lg:px-container-desktop",$a[a]),children:[e.jsxs("div",{className:Q.default("flex items-center shrink-0",le(x)),style:o!==void 0?{width:`${o}%`}:void 0,children:[l!=="none"&&e.jsx("div",{className:"flex items-center",children:n==="with-text"?e.jsx(Re,{height:22,className:"text-black"}):e.jsx(De,{height:22,className:"text-black"})}),d]}),e.jsx("div",{className:"flex items-center shrink-0 ml-auto",style:c!==void 0?{width:`${c}%`}:void 0,children:m})]})]})};Ge.Left=tr;Ge.Right=sr;Ge.displayName="Footer";const Fa={default:{container:"flex flex-col items-center justify-center",dropZone:"flex flex-col items-center justify-center space-y-2 transition-colors border-surface-3 border-[1px]",preview:"bg-surface-3 border-surface-4"}},Oa={sm:{container:"w-48 h-18 p-2 gap-2 rounded-lg",dropZone:"w-full h-18 rounded-md p-2",preview:"w-full h-18 rounded-md",iconSize:24},md:{container:"w-72 h-44 p-4 gap-3 rounded-xl",dropZone:"w-64 h-40 rounded-xl p-4",preview:"w-64 h-40 rounded-xl",iconSize:42},lg:{container:"w-96 h-52 p-4 gap-5 rounded-xl",dropZone:"w-full h-48 rounded-xl p-4",preview:"w-full h-48 rounded-xl",iconSize:48}},Et={container:"opacity-50 cursor-not-allowed pointer-events-none",dropZone:"cursor-not-allowed"},Za=({onImageSelected:t,variant:s="default",size:r="md",className:a,acceptedFileTypes:n="image/*",maxFileSize:l,disabled:i=!1,initialPreviewUrl:x})=>{const o=j.useRef(null),c=j.useRef(0),[u,d]=j.useState(!1),[m,p]=j.useState(x||null),[b,w]=j.useState(!1),[g,f]=j.useState(null),C=Fa[s],N=Oa[r],v=L=>{if(l&&L.size>l){const O=(l/1048576).toFixed(1);f(`File size must be less than ${O}MB`);return}if(!L.type.startsWith("image/")){f("Please select a valid image file");return}f(null),t(L),p(URL.createObjectURL(L))},y=L=>{L.target.files&&L.target.files[0]&&v(L.target.files[0])},M=L=>{L.preventDefault(),d(!1),L.dataTransfer.files&&L.dataTransfer.files[0]&&v(L.dataTransfer.files[0])},I=L=>{L.preventDefault(),i||d(!0)},T=L=>{L.preventDefault(),!i&&(c.current+=1,d(!0))},D=L=>{L.preventDefault(),c.current-=1,c.current<=0&&(d(!1),c.current=0)},H=L=>{L.stopPropagation(),o.current?.click()},P=()=>{i||w(!0)},F=()=>{w(!1)};return e.jsx("div",{className:h.clsx("flex flex-col",a),children:e.jsx("div",{className:h.clsx(C.container,N.container,i&&Et.container),children:e.jsxs("div",{className:h.clsx(C.dropZone,N.dropZone,"cursor-pointer relative",i&&Et.dropZone,u&&!m&&"bg-black/20"),onDrop:i?void 0:M,onDragOver:i?void 0:I,onDragEnter:i?void 0:T,onDragLeave:i?void 0:D,onClick:i?void 0:H,children:[m?e.jsxs("div",{className:h.clsx("absolute inset-0 overflow-hidden transition-all duration-200",N.preview),onMouseEnter:P,onMouseLeave:F,children:[e.jsx("img",{src:m,alt:"Preview",className:h.clsx("w-full h-full object-cover transition-all duration-200",b&&"brightness-90")}),b&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center transition-all duration-200",children:e.jsx(R,{onClick:H,variant:"neutral",size:"xs",disabled:i,children:"Change Image"})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:h.clsx("flex items-center justify-center rounded-lg overflow-hidden",m&&"border border-surface-4 bg-surface-2",`w-[${N.iconSize*2}px] h-[${N.iconSize*2}px]`),children:e.jsx(fs,{size:N.iconSize,className:h.clsx(i&&"text-disabled")})}),e.jsx("div",{className:h.clsx("text-center text-[11px] font-body font-medium leading-tight tracking-normal whitespace-normal break-words",i&&"text-disabled"),children:"Drag your image to start uploading"}),e.jsxs("div",{className:"my-2 w-full flex items-center justify-center",children:[e.jsx("span",{className:"border-t w-1/2 mx-2 border-low-em"}),e.jsx("span",{className:h.clsx("text-xs ml-2 mr-2",u?"text-med-em":"text-high-em",i&&"text-disabled"),children:"OR"}),e.jsx("span",{className:"border-t w-1/2 mx-2 border-low-em"})]})]}),!m&&e.jsx(R,{onClick:H,variant:"neutral",size:"xs",className:"mt-1",disabled:i,children:"Browse"}),e.jsx("input",{type:"file",accept:n,ref:o,className:"hidden",onChange:y,disabled:i})]})})})},Ba={default:{background:"bg-gray-200",iconColor:"text-[var(--dark-700)]",titleColor:"text-[var(--dark-700)]",descriptionColor:"text-[var(--dark-700)]"},danger:{background:"bg-[var(--danger-50)]",iconColor:"text-[var(--danger-600)]",titleColor:"text-[var(--danger-600)]",descriptionColor:"text-[var(--danger-600)]"},success:{background:"bg-[var(--success-50)]",iconColor:"text-[var(--success-600)]",titleColor:"text-[var(--success-600)]",descriptionColor:"text-[var(--success-600)]"}},_a=({variant:t="default",title:s,description:r,icon:a,className:n})=>{const l=Ba[t],x=(c=>{const u=c.match(/text-\[var\(--([^)]+)\)\]/);if(u)return`var(--${u[1]})`})(l.iconColor),o=()=>a&&k.default.isValidElement(a)?k.default.cloneElement(a,{color:x}):e.jsx(z.Warning2,{size:12,variant:"Outline",color:x});return e.jsxs("div",{className:h.clsx("flex flex-col gap-0.5 px-8 py-4 rounded-xl",l.background,n),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex-shrink-0",children:o()}),e.jsx("span",{className:h.clsx("text-[12px] font-semibold leading-tight",l.titleColor),children:s})]}),e.jsx("span",{className:h.clsx("text-[10px] font-medium leading-tight mt-2",l.descriptionColor),children:r})]})};function Ga(t,s){const[r,a]=j.useState(t);return j.useEffect(()=>{const n=setTimeout(()=>{a(t)},s);return()=>{clearTimeout(n)}},[t,s]),r}const rr=j.forwardRef(({onSearch:t,debounceMs:s=300,isLoading:r=!1,showClearButton:a=!0,errorMessage:n,suggestions:l=[],onSuggestionClick:i,placeholder:x="Search...",value:o,onChange:c,disabled:u=!1,id:d,name:m,autoComplete:p,maxLength:b,required:w,onBlur:g,onFocus:f,onInvalid:C,"aria-label":N="Search",className:v,size:y,...M},I)=>{const[T,D]=j.useState(""),[H,P]=j.useState(!1),[F,L]=j.useState(-1),O=j.useRef(null),W=o!==void 0,A=W?o:T,S=Ga(A,s);j.useEffect(()=>{S&&t&&t(S)},[S,t]),j.useEffect(()=>{const E=_=>{O.current&&!O.current.contains(_.target)&&P(!1)};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)}},[]);const B=E=>{const _=E.target.value;W||D(_),c&&c(E),_&&l.length>0?(P(!0),L(-1)):P(!1)},X=E=>{if(E.key==="Enter"){if(E.preventDefault(),H&&F>=0&&F<l.length){const _=l[F];re(_)}else t&&A&&t(A);P(!1)}else E.key==="ArrowDown"?(E.preventDefault(),H&&l.length>0&&L(_=>_<l.length-1?_+1:0)):E.key==="ArrowUp"?(E.preventDefault(),H&&l.length>0&&L(_=>_>0?_-1:l.length-1)):E.key==="Escape"&&(P(!1),L(-1))},de=E=>{A&&l.length>0&&P(!0),f&&f(E)},te=()=>{const E={target:{value:""}};W||D(""),c&&c(E),P(!1),L(-1)},re=E=>{const _={target:{value:E}};W||D(E),c&&c(_),i&&i(E),P(!1),L(-1)},G=n?"danger":"default",U=r?e.jsx(z.ArrowRotateRight,{color:"currentColor",size:16,className:"animate-spin text-primary-500"}):A&&a&&e.jsx("button",{type:"button",onClick:te,className:"text-gray-500 hover:text-gray-700 focus:outline-none transition-colors","aria-label":"Clear search",children:e.jsx(z.CloseCircle,{color:"currentColor",size:16})}),ne=l.filter(E=>E.toLowerCase().includes(A.toLowerCase()));return e.jsxs("div",{className:"relative w-full",ref:O,children:[e.jsx(Y,{ref:I,className:h.clsx("w-full text-placeholder",v),value:A,onChange:B,onKeyDown:X,onFocus:de,onBlur:g,onInvalid:C,variant:G,hint:n,leadingIcon:e.jsx(z.SearchNormal1,{color:"currentColor",size:16}),trailingIcon:U,placeholder:x,disabled:u,id:d,name:m,autoComplete:p,maxLength:b,required:w,"aria-label":N,...M}),H&&ne.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox",children:ne.map((E,_)=>e.jsx("div",{className:h.clsx("px-3 py-2 cursor-pointer text-sm",_===F?"bg-primary-100 text-primary-900":"text-gray-700 hover:bg-gray-100"),onClick:()=>re(E),role:"option","aria-selected":_===F,children:E},_))})]})});rr.displayName="InputSearch";const Ua=({icon:t,children:s,isActive:r=!1,className:a,customFontSize:n,customIconSize:l,...i})=>{const x={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},o=n&&x[n]||void 0,c=n&&!x[n]?{fontSize:n}:void 0,u=l||20;return e.jsxs("button",{className:h.clsx("border border-surface-3 flex w-full items-center px-6 h-14 text-left text-sm font-semibold transition-colors rounded-xl","focus:outline-none",{"gap-6 bg-surface-1 text-med-em":r,"gap-6 hover:bg-surface-3":!r},a),...i,children:[e.jsx("span",{style:{color:"var(--med-em)"},children:k.default.isValidElement(t)&&k.default.cloneElement(t,{size:u,color:"currentColor"})}),e.jsx("span",{className:h.clsx("text-med-em",o),style:c,children:s})]})},jt=({children:t,content:s,side:r="top",sideOffset:a=5,showArrow:n=!0,className:l,maxWidth:i="max-w-xs",delayDuration:x,disabled:o=!1,primaryButton:c,secondaryButton:u,customBackground:d,customTextColor:m,customFontSize:p})=>{if(o)return t;const b=c||u,w={};return d&&(w.backgroundColor=d),m&&(w.color=m),p&&(w.fontSize=p),e.jsxs(ee.Root,{delayDuration:x,children:[e.jsx(ee.Trigger,{asChild:!0,children:t}),e.jsx(ee.Portal,{children:e.jsxs(ee.Content,{side:r,sideOffset:a,className:h.clsx("z-50 overflow-hidden rounded-6 p-6 shadow-e2",!d&&"bg-surface-bg",!m&&"text-high-em",!p&&"text-xs","font-medium",i,"data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade","data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade","data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade","data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade",l),style:Object.keys(w).length>0?w:void 0,children:[e.jsxs("div",{className:h.clsx(b&&"flex flex-col gap-8"),children:[e.jsx("div",{children:s}),b&&e.jsxs("div",{className:"flex gap-4 items-center w-full",children:[c&&e.jsx(R,{variant:c.variant||"neutral",hierarchy:c.hierarchy||"secondary",size:c.size||"xs",onClick:c.onClick,disabled:c.disabled,className:"flex-1",children:c.text}),u&&e.jsx(R,{variant:u.variant||"neutral",hierarchy:u.hierarchy||"secondary",size:u.size||"xs",onClick:u.onClick,disabled:u.disabled,className:"flex-1",children:u.text})]})]}),n&&e.jsx(ee.Arrow,{className:d?void 0:"fill-surface-bg",style:d?{fill:d}:void 0})]})})]})},qa=e.jsx(ct,{}),nr=({children:t,tooltipContent:s,icon:r,iconColor:a="text-disabled",labelClassName:n,className:l,customFontSize:i,customIconSize:x})=>{const o={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},c=i&&o[i]||void 0,u=i&&!o[i]?{fontSize:i}:void 0,d=x||16,m=r??qa;return e.jsxs("div",{className:h.clsx("flex items-center gap-2",l),children:[e.jsx("span",{className:h.clsx(n,c),style:u,children:t}),e.jsx(jt,{content:s,children:e.jsx("button",{type:"button",className:h.clsx("bg-surface-bg flex items-center focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-primary-main rounded-full",a),children:k.default.cloneElement(m,{size:d,color:"currentColor"})})})]})},Qa={sm:"max-w-[300px] w-full",md:"w-[32rem]",lg:"w-[40rem]"},vt={sm:{header:"py-4 px-8",body:"p-6",footer:"py-6 px-8"},md:{header:"py-4 px-8",body:"p-8",footer:"py-6 px-8"},lg:{header:"py-4 px-8",body:"p-10",footer:"py-6 px-8"}},ar=j.createContext(void 0),be=()=>{const t=j.useContext(ar);if(!t)throw new Error("useModalContext must be used within a Modal provider");return t},wt=({children:t,size:s="md",padding:r})=>{const[a,n]=j.useState(!1);return e.jsx(ar.Provider,{value:{open:a,setOpen:n,size:s,padding:r??s},children:t})};wt.displayName="Modal";const Ct=({children:t})=>{const{setOpen:s}=be();return k.default.cloneElement(t,{onClick:r=>{t.props.onClick&&t.props.onClick(r),s(!0)}})};Ct.displayName="ModalTrigger";const yt=j.forwardRef(({children:t,className:s,...r},a)=>{const{open:n,setOpen:l,size:i}=be();return e.jsx(Z.Transition,{appear:!0,show:n,as:j.Fragment,children:e.jsxs(Z.Dialog,{as:"div",className:"relative z-50",onClose:()=>l(!1),children:[e.jsx(Z.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:e.jsx("div",{className:"fixed inset-0 bg-black-uniform/30","aria-hidden":"true"})}),e.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:e.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:e.jsx(Z.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:e.jsx(Z.Dialog.Panel,{ref:a,className:h.clsx("bg-white rounded-2xl shadow-xl flex flex-col border border-surface-3 text-left transform transition-all",Qa[i],s),...r,children:t})})})})]})})});yt.displayName="ModalContent";const Nt=({children:t,onBack:s,disabled:r=!1,className:a})=>{const{setOpen:n,padding:l}=be(),i=vt[l];return e.jsxs("header",{className:h.clsx("flex items-center border-b border-surface-3 shrink-0",i.header,a),children:[e.jsx(R,{variant:"neutral",hierarchy:"secondary",className:h.clsx("cursor-pointer",!s&&"invisible"),onClick:s,size:"sm",icons:"only",disabled:r||!s,leadingIcon:e.jsx(ps,{className:"text-high-em"})}),e.jsx("div",{className:"flex-1 flex justify-center items-center",children:t}),e.jsx(R,{className:"cursor-pointer",variant:"neutral",hierarchy:"secondary",size:"sm",icons:"only",leadingIcon:e.jsx(ce,{className:"text-high-em"}),onClick:()=>n(!1),disabled:r})]})};Nt.displayName="ModalHeader";const kt=j.forwardRef(({className:t,...s},r)=>e.jsx(Z.Dialog.Title,{ref:r,as:"h3",className:h.clsx("font-semibold text-base leading-tight text-center text-high-em",t),...s}));kt.displayName="ModalTitle";const St=j.forwardRef(({className:t,...s},r)=>e.jsx(Z.Dialog.Description,{ref:r,className:h.clsx("text-sm text-high-em",t),...s}));St.displayName="ModalDescription";const Lt=({children:t,className:s})=>{const{padding:r}=be(),a=vt[r];return e.jsx("main",{className:h.clsx(a.body,"flex-1 overflow-y-auto",s),children:t})};Lt.displayName="ModalBody";const Ue=({className:t,children:s,...r})=>{const{padding:a}=be(),n=vt[a];return e.jsx("footer",{className:h.clsx("flex items-center border-t border-surface-3 shrink-0",n.footer,t),...r,children:s})};Ue.displayName="ModalFooter";const lr=({backButton:t,cancelButton:s,acceptButton:r,className:a})=>{const{setOpen:n,size:l}=be(),i=l==="sm",x=(o,c)=>{o.onClick&&o.onClick(c),o.closeOnClick!==!1&&n(!1)};return e.jsxs(Ue,{className:h.clsx(i?"flex-row gap-8":"justify-between",a),children:[t&&!i&&e.jsx(R,{variant:t.variant||"neutral",hierarchy:t.hierarchy||"secondary",size:t.size||"md",...t,onClick:o=>x(t,o),children:t.label}),!t&&!i&&e.jsx("div",{}),e.jsxs("div",{className:h.clsx("flex",i?"flex-row gap-8 w-full":"gap-8"),children:[s&&e.jsx(R,{variant:s.variant||"neutral",hierarchy:s.hierarchy||"primary",size:s.size||"md",...s,className:V.twMerge(i?"w-full":"w-32",s.className),onClick:o=>x(s,o),children:s.label}),r&&e.jsx(R,{variant:r.variant||"secondary",hierarchy:r.hierarchy||"primary",size:r.size||"md",...r,className:V.twMerge(i?"w-full":"w-32",r.className),onClick:o=>x(r,o),children:r.label})]})]})};lr.displayName="ModalFooterActions";const zt=({children:t})=>{const{setOpen:s}=be();return k.default.cloneElement(t,{onClick:r=>{t.props.onClick&&t.props.onClick(r),s(!1)}})};zt.displayName="ModalClose";function Ka(t,s){return t.split(s).reduce((r,a,n,l)=>(r.push(e.jsx("span",{className:"font-normal",children:a},`part-${n}`)),n<l.length-1&&r.push(e.jsx("span",{className:"font-bold",children:s},`bold-${n}`)),r),[])}function ir({trigger:t,title:s,description:r,confirmationText:a,confirmationLabel:n,confirmButtonLabel:l,cancelButtonLabel:i="Cancel",onConfirm:x,loading:o=!1}){const[c,u]=j.useState(""),d=c.trim()===a,m=()=>u(""),p=k.default.isValidElement(t)?t:null;return e.jsxs(wt,{children:[p?e.jsx(Ct,{children:p}):null,e.jsxs(yt,{children:[e.jsx(Nt,{disabled:o,children:e.jsx(kt,{children:s})}),e.jsxs(Lt,{children:[e.jsx(St,{children:r}),e.jsx("div",{className:"mt-6",children:e.jsx(Y,{label:Ka(n,a),placeholder:a,value:c,onChange:b=>u(b.target.value),disabled:o,variant:"outlined",size:"md"})})]}),e.jsxs(Ue,{className:"justify-end gap-3",children:[e.jsx(zt,{children:e.jsx(R,{variant:"neutral",hierarchy:"secondary",size:"md",disabled:o,onClick:m,children:i})}),e.jsx(R,{variant:"danger",hierarchy:"primary",size:"md",onClick:()=>{d&&!o&&x()},disabled:!d,loading:o,children:l})]})]})]})}ir.displayName="DeleteConfirmationModal";const or=j.createContext(void 0),Mt=()=>{const t=j.useContext(or);if(!t)throw new Error("Drawer subcomponents must be used within <Drawer>");return t},Ya={sm:"w-64",md:"w-72",lg:"w-80",xl:"w-96"},Vt={right:"translate-x-full",left:"-translate-x-full"},Ja={right:"right-0",left:"left-0"},cr=({open:t,onOpenChange:s,side:r="right",children:a})=>e.jsx(or.Provider,{value:{onOpenChange:s,side:r},children:e.jsx(Z.Transition,{show:t,as:j.Fragment,children:e.jsx(Z.Dialog,{as:"div",className:"relative z-50",onClose:()=>s(!1),children:a})})});cr.displayName="Drawer";const dr=({className:t})=>{const{onOpenChange:s}=Mt();return e.jsx(Z.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:e.jsx("div",{className:V.twMerge(h.clsx("fixed inset-0 bg-black-uniform/30",t)),"aria-hidden":"true",onClick:()=>s(!1)})})};dr.displayName="DrawerOverlay";const xr=({width:t="md",className:s,children:r})=>{const{side:a}=Mt();return e.jsx(Z.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:Vt[a],enterTo:"translate-x-0",leave:"ease-in duration-200",leaveFrom:"translate-x-0",leaveTo:Vt[a],children:e.jsx(Z.Dialog.Panel,{className:V.twMerge(h.clsx("fixed top-0 bottom-0 h-full flex flex-col bg-white shadow-e2 transform",Ya[t],Ja[a],s)),children:r})})};xr.displayName="DrawerPanel";const ur=({children:t,className:s,height:r=60,title:a})=>e.jsxs("div",{style:{height:r},className:V.twMerge(h.clsx("flex items-center justify-between shrink-0 px-8 border-b border-surface-3",s)),children:[a&&e.jsx("span",{className:"text-sm font-semibold text-high-em",children:a}),t]});ur.displayName="DrawerHeader";const hr=({children:t,className:s})=>e.jsx("div",{className:V.twMerge(h.clsx("flex-1",s)),children:t});hr.displayName="DrawerContent";const mr=({children:t,className:s})=>t?e.jsx("div",{className:V.twMerge(h.clsx("shrink-0 border-t border-surface-3 py-6 px-8",s)),children:t}):null;mr.displayName="DrawerFooter";const fr=({children:t,size:s="sm"})=>{const{onOpenChange:r}=Mt();return t?k.default.cloneElement(t,{onClick:a=>{t.props.onClick?.(a),r(!1)}}):e.jsx(R,{className:"cursor-pointer",variant:"neutral",hierarchy:"secondary",size:s,icons:"only",leadingIcon:e.jsx(ce,{className:"text-high-em"}),onClick:()=>r(!1)})};fr.displayName="DrawerClose";const Xa=Object.assign(cr,{Overlay:dr,Panel:xr,Header:ur,Content:hr,Footer:mr,Close:fr});function pr({planName:t,price:s,billingPeriod:r="month",priceContent:a,description:n,ctaLabel:l="Switch Plan",onCtaClick:i,features:x,featuresTitle:o="Features",featuresSubtitle:c="Everything in our plan includes",isRecommended:u=!1,recommendedLabel:d="Recommended",recommendedIcon:m,loading:p=!1,ctaVariant:b="neutral",ctaHierarchy:w="primary",sectionColor:g="bg-white",sectionTextColor:f,className:C}){return e.jsxs("div",{className:V.twMerge(h.clsx("relative w-full flex flex-col",C)),children:[u&&e.jsx("div",{className:"absolute -top-9 left-1/2 -translate-x-1/2 z-10 whitespace-nowrap",children:e.jsx(ue,{size:"lg",theme:"surface",variant:"outlined",children:e.jsx(oe,{icon:m,label:d,iconSize:14,gap:3,iconColorClass:"text-med-em",labelColorClass:"text-med-em text-xs font-semibold"})})}),e.jsxs("div",{className:"bg-surface-2 border border-surface-3 rounded-8 overflow-hidden w-full flex flex-col flex-1",children:[e.jsxs("div",{className:h.clsx("flex items-start justify-between p-8 border-b border-surface-3",g),children:[e.jsx("span",{className:h.clsx("text-xl font-semibold",f??"text-high-em"),children:t}),e.jsx("div",{className:"flex items-baseline gap-4",children:a??e.jsxs(e.Fragment,{children:[e.jsx("span",{className:h.clsx("text-2xl font-bold leading-none",f??"text-high-em"),children:s}),r&&e.jsxs("span",{className:h.clsx("text-sm",f??"text-high-em"),children:["/ ",r]})]})})]}),e.jsxs("div",{className:h.clsx("flex flex-col gap-8 p-8 border-b border-surface-3",g),children:[e.jsx("p",{className:h.clsx("text-sm leading-relaxed",f??"text-high-em"),children:n}),e.jsx(R,{variant:b,hierarchy:w,size:"md",className:"w-full",onClick:i,loading:p,children:l})]}),e.jsxs("div",{className:"flex flex-col gap-8 p-8 bg-surface-bg flex-1",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xl font-bold text-high-em",children:o}),e.jsx("p",{className:"text-sm text-high-em",children:c})]}),e.jsx("ul",{className:"flex flex-col gap-8",children:x.map(N=>e.jsxs("li",{className:"flex items-center gap-8",children:[e.jsx("span",{className:"text-low-em shrink-0",children:e.jsx(z.TickCircle,{size:14,color:"currentColor"})}),e.jsx("span",{className:"text-sm text-low-em",children:N})]},N))})]})]})]})}pr.displayName="PlanPricingCard";const qe=({type:t="default",size:s="lg",variant:r="primary",children:a,className:n})=>{const l="inline-flex items-center justify-center transition-colors duration-200",i={lg:"w-[80px] h-[80px] rounded-[16px]",md:"w-[56px] h-[56px] rounded-[16px]",sm:"w-[40px] h-[40px] rounded-[8px]"},x={lg:32,md:24,sm:20},o={default:{primary:"bg-surface-4 text-white-uniform",secondary:"bg-surface-1 text-high-em",tertiary:"bg-transparent border-[2px] border-surface-3 text-high-em",quaternary:"bg-transparent text-high-em"},brand:{primary:"bg-brand-primary-main text-white-uniform",secondary:"bg-surface-3 text-primary-accent-3",tertiary:"bg-transparent border-[2px] border-surface-4 text-primary-accent-3",quaternary:"bg-transparent text-primary-accent-3"},danger:{primary:"bg-danger-main text-white-uniform",secondary:"bg-danger-accent-1 text-danger-main",tertiary:"bg-transparent border-[2px] border-danger-accent-2 text-danger-main",quaternary:"bg-transparent text-danger-main"},success:{primary:"bg-success-main text-white-uniform",secondary:"bg-success-accent-1 text-success-main",tertiary:"bg-transparent border-[2px] border-success-accent-2 text-success-main",quaternary:"bg-transparent text-success-main"}},c=k.default.isValidElement(a)?k.default.cloneElement(a,{size:x[s],color:"currentColor"}):null;return e.jsx("div",{className:h.clsx(l,i[s],o[t][r],n),children:c})},K=({direction:t="horizontal",width:s,height:r,className:a})=>{const n=t==="horizontal"?"100%":"0.5px",l=t==="horizontal"?"0.5px":"100%",i=h.clsx(a,"bg-surface-3 items-center"),x={width:s??n,height:r??l};return e.jsx("div",{className:i,style:x})},gr=k.default.forwardRef(({title:t,companyImage:s,badgeStatus:r,badgeStatusState:a,onButtonAction:n,actionButtonRef:l,stackLabel:i,powerLabel:x,calendarLabel:o,link1Label:c,link1Href:u,link2Label:d,link2Href:m,link2Status:p,onCardClick:b,className:w,...g},f)=>{const C=h.clsx("flex flex-col overflow-hidden transition-all duration-200 w-full min-w-0 p-4 gap-3 border rounded-2xl border-surface-3","bg-white","p-6 md:p-8 gap-6 md:gap-8"),N=V.twMerge(h.clsx(C,w)),v={success:"success",warning:"warning",danger:"danger",disabled:"disabled"};return e.jsxs("div",{ref:f,className:N,...g,children:[e.jsxs("div",{className:"flex-row flex justify-between",children:[e.jsx("div",{className:"flex",children:e.jsx($,{className:"!rounded-4",size:"2xl",imageUrl:s})}),e.jsx("div",{className:"flex w-fit",children:e.jsx(R,{ref:l,size:"sm",leadingIcon:e.jsx($,{children:e.jsx(Cs,{})}),icons:"only",hierarchy:"secondary",variant:"neutral",onClick:n})})]}),e.jsxs("div",{className:"flex-col flex justify-between gap-4",children:[e.jsxs("div",{className:"flex gap-5 items-center",children:[e.jsx("span",{className:"text-high-em font-semibold",children:t}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(ue,{variant:"simple",theme:v[a],children:r})})]}),e.jsxs("div",{className:"flex flex-row gap-4",children:[e.jsx(oe,{label:i,labelSize:"sm",iconSize:"sm",gap:4,icon:e.jsx(ys,{})}),e.jsx(oe,{label:x,labelSize:"sm",iconSize:"sm",gap:4,icon:e.jsx(Ns,{})}),e.jsx(oe,{label:o,labelSize:"sm",iconSize:"sm",gap:4,icon:e.jsx(ks,{})})]})]}),e.jsx(K,{direction:"horizontal"}),e.jsxs("div",{className:"flex-row flex justify-between gap-8",children:[e.jsxs("div",{className:"flex w-1/2 flex-col gap-2",children:[e.jsx("span",{className:"text-sm text-low-em",children:"Subdomain"}),e.jsx("div",{className:"flex-row flex center items-center gap-4",children:e.jsx(me,{href:u,className:"w-fit",variant:"neutral",children:c})})]}),e.jsxs("div",{className:"flex w-1/2 flex-col gap-2",children:[e.jsx("span",{className:"text-sm text-low-em",children:"Database"}),e.jsxs("div",{className:"flex-row flex center items-center gap-4",children:[e.jsx(ue,{variant:"status",statusState:p,statusSize:"xs"}),e.jsx(me,{href:m,trailingIcon:e.jsx(ws,{}),className:"w-fit",variant:"neutral",children:d})]})]})]})]})});gr.displayName="ProjectCard";const nt=({progress:t,description:s,className:r,...a})=>{const n=Math.min(100,Math.max(0,t)),l="w-full bg-surface-3 rounded-full h-1 relative overflow-hidden flex-1",i=h.clsx("size-[18px] rounded-full transition-all duration-300 grow-0 shrink-0 border-black",t>1?"border-5":t===0?"border-2 border-surface-3":"border-5"),x=h.clsx(l,r);return e.jsxs("div",{className:"flex flex-col gap-y-2 w-full",children:[e.jsxs("div",{className:"flex items-center w-full gap-x-5",children:[e.jsx("div",{className:i}),e.jsx("div",{className:x,role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":`Progress: ${n}%`,...a,children:e.jsx("div",{className:"h-full rounded-full transition-all duration-300 ease-out bg-black",style:{width:`${n}%`}})})]}),s&&e.jsx("p",{className:"mt-2 font-medium text-sm text-left text-low-em",children:s})]})},Je={xs:{size:144,container:"size-[144px]",strokeWidth:12,labelFontSize:"text-xs",fontSize:"text-[24px]",lineHeight:"leading-[36px]",halfCircle:"w-[144px] h-[80px]",labelSpace:"",halfCircleLabelPosition:"top-2/5"},sm:{size:180,container:"size-[180px]",strokeWidth:14,labelFontSize:"text-xs",fontSize:"text-[28px]",lineHeight:"leading-[42px]",halfCircle:"w-[180px] h-[95px]",labelSpace:"",halfCircleLabelPosition:"top-2/5"},md:{size:240,container:"size-[240px]",strokeWidth:16,labelFontSize:"text-sm",fontSize:"text-[38px]",lineHeight:"leading-[62px]",halfCircle:"w-[240px] h-[131px]",labelSpace:"",halfCircleLabelPosition:"top-2/5"},lg:{size:280,container:"size-[280px]",strokeWidth:18,labelFontSize:"text-md",fontSize:"text-[48px]",lineHeight:"leading-[72px]",halfCircle:"w-[280px] h-[154px]",labelSpace:"",halfCircleLabelPosition:"top-2/5"}},el={primary:{track:"text-surface-3",fill:"text-black",label:"text-low-em text-center",progressLabel:"text-high-em font-space-grotesk font-semibold",opacity:1}},at=({progress:t,size:s="md",variant:r="primary",shape:a="circle",showLabel:n=!0,label:l,className:i,ariaLabel:x,id:o,...c})=>{const u=Math.min(100,Math.max(0,t)),d=k.default.useId(),m=o||`progress-circle-${d}`,p=l?`${m}-label`:void 0,b=Je[s],w=el[r],g=()=>x||(l?`Progreso: ${l}, ${u}% completado`:`Progreso: ${u}% completado`),f=b.size,C=(f-b.strokeWidth)/2,N=2*Math.PI*C,v=N-u/100*N,y=()=>a==="circle"?Je[s].container:Je[s].halfCircle,M=()=>e.jsxs("svg",{width:f,height:f,className:"transform -rotate-90",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-label":g(),"aria-labelledby":p,"aria-live":"polite","aria-atomic":"true",children:[e.jsx("circle",{cx:f/2,cy:f/2,r:C,stroke:"currentColor",strokeWidth:b.strokeWidth,fill:"none",className:w.track,opacity:w.opacity}),e.jsx("circle",{cx:f/2,cy:f/2,r:C,stroke:"currentColor",strokeWidth:b.strokeWidth,fill:"none",className:w.fill,strokeDasharray:N,strokeDashoffset:v,strokeLinecap:"round",style:{transition:"stroke-dashoffset 0.3s ease-in-out"}})]}),I=()=>{const T=b.strokeWidth,D=f,H=f/2+T,P=(f-b.strokeWidth)/2,F=T/2,L=H-T/2,O=f-T/2,W=H-T/2,A=Math.PI*P*2,S=A-u/100*A;return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:`0 0 ${D} ${H}`,className:"size-full",fill:"none",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-label":g(),"aria-labelledby":p,"aria-live":"polite","aria-atomic":"true",children:[e.jsx("path",{d:`M${F},${L} A${P},${P} 0 1,1 ${O},${W}`,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:b.strokeWidth,stroke:"currentColor",className:w.track,opacity:w.opacity}),e.jsx("path",{d:`M${F},${L} A${P},${P} 0 1,1 ${O},${W}`,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:b.strokeWidth,stroke:"currentColor",className:w.fill,strokeDasharray:A,strokeDashoffset:S,style:{transition:"stroke-dashoffset 0.3s ease-in-out"}})]})};return e.jsxs("div",{className:h.clsx("relative inline-flex items-center justify-center",y(),i),id:m,...c,children:[a==="circle"?M():I(),n&&a==="circle"&&e.jsxs("div",{className:h.clsx("absolute inset-0 flex flex-col items-center justify-center","leading-none"),children:[l&&e.jsx("span",{id:p,className:h.clsx(b.labelFontSize,w.label),children:l}),e.jsx("span",{className:h.clsx(b.fontSize,b.lineHeight,w.progressLabel),style:{fontFamily:"var(--font-space-grotesk)"},children:`${u}%`})]}),n&&a==="half-circle"&&e.jsxs("div",{className:h.clsx("absolute left-0 right-0 flex flex-col items-center justify-center",l?b.halfCircleLabelPosition:"top-1/2",l&&b.labelSpace),children:[l&&e.jsx("span",{id:p,className:h.clsx(b.labelFontSize,w.label),children:l}),e.jsx("span",{className:h.clsx(b.fontSize,b.lineHeight,w.progressLabel),style:{fontFamily:"var(--font-space-grotesk)"},children:`${u}%`})]})]})},tl=({currentStep:t,totalSteps:s,currentStepProgress:r=0,stepDescriptions:a=[],title:n,subtitle:l,className:i,collapsed:x,onToggleCollapse:o,onClose:c,onlyProgressCircle:u=!1})=>{const[d,m]=k.default.useState(x??!0);k.default.useEffect(()=>{typeof x=="boolean"&&m(x)},[x]);const p=()=>{const g=!d;m(g),o&&o(g)},b=k.default.useMemo(()=>Array.from({length:s},(g,f)=>{const C=f+1;let N;return C<t?N=100:N=0,{progress:N,description:a[f]||`Step ${C}`}}),[t,s,a]),w=s>0?Math.round((t-1)/s*100+r/s):0;return u?e.jsx(at,{progress:w,size:"xs",showLabel:!0,ariaLabel:`Overall progress: ${w}%`,className:i}):e.jsxs(J.motion.div,{className:h.clsx("bg-white overflow-hidden",i),role:"region","aria-label":`Progress tracker${d?"":" - expanded"}`,layout:!0,animate:{height:d?61:130},transition:{duration:.3,ease:"easeInOut"},children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-2 gap-3",children:[e.jsx(J.motion.div,{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:p,layout:!0,children:e.jsx(J.AnimatePresence,{mode:"wait",children:d?e.jsx(J.motion.div,{className:"flex items-center gap-3 flex-1 min-w-0",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:b.map((g,f)=>e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(nt,{progress:g.progress})},f))},"collapsed-content"):e.jsxs(J.motion.div,{className:"flex flex-col flex-1",initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.2},children:[n&&e.jsx("h3",{className:"text-[16px] text-dark-100 font-semibold",children:n}),l&&e.jsx("p",{className:"text-sm text-dark-700",children:l})]},"expanded-title")})}),e.jsxs("div",{className:"flex items-center gap-9 py-4 px-6",children:[e.jsx(at,{progress:w,size:"xs",showLabel:!0,ariaLabel:`Overall progress: ${w}%`}),e.jsx(J.motion.button,{className:"rounded-full cursor-pointer flex items-center justify-center",onClick:p,whileHover:{scale:1.1},whileTap:{scale:.9},transition:{duration:.1},"aria-label":d?"Expand":"Collapse",children:e.jsx(J.motion.div,{style:{display:"inline-flex",alignItems:"center",justifyContent:"center"},animate:{rotate:d?0:180},transition:{duration:.2},children:e.jsx(z.ArrowDown2,{size:16,color:"black"})})}),e.jsx(J.motion.button,{className:"rounded-full cursor-pointer flex items-center justify-center w-6 h-6",onClick:c,whileHover:{scale:1.1},whileTap:{scale:.9},transition:{duration:.1},"aria-label":"Close",children:e.jsx(ce,{size:16})})]})]}),e.jsx(J.AnimatePresence,{children:!d&&e.jsx(J.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:e.jsx("div",{className:"pt-2 pb-4 px-8",children:e.jsx(J.motion.div,{className:"flex gap-3 w-full",initial:{opacity:0},animate:{opacity:1},transition:{delay:.1,duration:.2},children:b.map((g,f)=>{const N=f+1===t;return e.jsx(J.motion.div,{className:"w-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.15+f*.05,duration:.2,ease:"easeOut"},children:e.jsxs("div",{children:[e.jsx(nt,{progress:g.progress}),(g.progress!==0||N)&&g.description&&e.jsx("div",{className:"text-sm text-[#2F343C] mt-3 font-semibold",children:g.description}),g.progress===0&&!N&&g.description&&e.jsx("div",{className:"text-sm text-[#5A606B] mt-3 font-semibold",children:g.description})]})},f)})})})})})]})},sl={small:{wrapper:"w-[16px] h-[16px]",dot:"w-[6px] h-[6px]"},medium:{wrapper:"w-[20px] h-[20px]",dot:"w-[8px] h-[8px]"},large:{wrapper:"w-[24px] h-[24px]",dot:"w-[10px] h-[10px]"}},we={unchecked:"bg-transparent border-low-em hover:bg-surface-1",checked:"bg-transparent border-1 border-low-em hover:bg-surface-1",focus:"peer-focus-visible:ring-1 peer-focus-visible:ring-low-em",disabled:{unchecked:"bg-surface-3 border-surface-4",checked:"bg-surface-3 border-surface-4",dot:"bg-surface-4"}},rl=({size:t="medium",checked:s=!1,disabled:r=!1,className:a,...n})=>{const l=sl[t];return e.jsxs("label",{className:h.clsx("inline-flex items-center",r?"cursor-not-allowed":"cursor-pointer",a),children:[e.jsx("input",{type:"radio",checked:s,disabled:r,className:"sr-only peer",...n}),e.jsx("div",{className:h.clsx(l.wrapper,"rounded-full border transition-colors duration-200",s&&"inline-flex items-center justify-center",we.focus,r?s?we.disabled.checked:we.disabled.unchecked:s?we.checked:we.unchecked,!r&&"peer-hover:border-low-em"),children:s&&e.jsx("div",{className:h.clsx(l.dot,"rounded-full",r?we.disabled.dot:"bg-black")})})]})},nl={xs:{wrapper:"h-10 rounded-4",button:"px-4 text-[10px] rounded-3 h-9",activeButton:"rounded-3 px-4",gap:"gap-x-[5px]"},sm:{wrapper:"h-13 rounded-6 px-2",button:"px-4 text-xs rounded-4 h-12",activeButton:"rounded-4",gap:"gap-x-[5px]"},md:{wrapper:"h-14 rounded-6 px-2",button:"px-6 text-sm rounded-6 h-13",activeButton:"rounded-3",gap:"gap-x-[5px]"},lg:{wrapper:"h-[56px] rounded-8 px-2",button:"px-8 text-base rounded-6 h-14",activeButton:"rounded-4",gap:"gap-x-3"},"ai-chat":{wrapper:"h-[42px] rounded-6 px-[3px]",button:"px-4 text-sm rounded-5 h-[34px]",activeButton:"rounded-5 px-4",gap:"gap-x-[5px]"}},br=({items:t,value:s,onChange:r,size:a="md",withBorder:n=!1,className:l})=>{const i=nl[a];return e.jsx("div",{className:h.clsx("inline-flex items-center p-1 bg-surface-2",i.wrapper,i.gap,n&&"border border-surface-4",l),children:t.map(x=>{const o=x.id===s;return e.jsx("button",{onClick:()=>r(x.id),className:h.clsx("font-semibold transition-colors duration-200",i.button,o?h.clsx("bg-surface-bg shadow-sm text-high-em",i.activeButton):"text-high-em"),children:x.label},x.id)})})},jr=k.default.createContext(null),ie=()=>{const t=k.default.useContext(jr);if(!t)throw new Error("useTableContext must be used within a TableProvider");return t},vr=({children:t,value:s})=>k.default.createElement(jr.Provider,{value:s},t),al=48,ll=({columns:t,data:s,tableLayout:r={},children:a,...n})=>{const l=k.default.useRef(null),[i,x]=k.default.useState(()=>!n.sortBy||!n.sortDirection?[]:[{id:n.sortBy,desc:n.sortDirection==="desc"}]),[o,c]=k.default.useState(()=>{const v={};return n.selectedRows?.forEach(y=>{v[String(y)]=!0}),v}),[u,d]=k.default.useState(n.searchValue||""),[m,p]=k.default.useState(()=>({pageIndex:(n.currentPage||1)-1,pageSize:n.itemsPerPage||10})),[b,w]=k.default.useState({});k.default.useEffect(()=>{if(n.sortBy&&n.sortDirection){const v=[{id:n.sortBy,desc:n.sortDirection==="desc"}];JSON.stringify(v)!==JSON.stringify(i)&&x(v)}},[n.sortBy,n.sortDirection,i]),k.default.useEffect(()=>{if(n.selectedRows){const v={};n.selectedRows.forEach(y=>{v[String(y)]=!0}),JSON.stringify(v)!==JSON.stringify(o)&&c(v)}},[n.selectedRows,o]),k.default.useEffect(()=>{n.searchValue!==u&&d(n.searchValue||"")},[n.searchValue,u]),k.default.useEffect(()=>{if(n.currentPage){const v=n.currentPage-1;v!==m.pageIndex&&p(y=>({...y,pageIndex:v}))}},[n.currentPage,m.pageIndex]);const g=k.default.useMemo(()=>{const v=t.map(y=>{const M=y.id==="__select"||y.type==="select",I=n.selectColumnSize??al,T={id:y.id,header:y.header,accessorKey:y.id,enableSorting:y.sortable??!1,enableColumnFilter:y.filterable??!1,size:M?I:y.size,minSize:M?I:y.minSize,maxSize:M?I:y.maxSize,enableResizing:!0,meta:{align:y.align,hasExplicitSize:M||y.size!==void 0}};return y.component?T.cell=({row:D,getValue:H})=>{const P=y.component,F=y.accessor?y.accessor(D.original):H();return k.default.createElement(P,{value:F,row:D.original,rowIndex:D.index,...y.componentProps})}:y.cell?T.cell=({row:D})=>y.cell(D.original):y.accessor?T.cell=({row:D})=>y.accessor(D.original):T.cell=({getValue:D})=>D(),T});return n.selectable&&v.unshift({id:"__select",header:"",cell:({row:y})=>y.original,enableSorting:!1,enableColumnFilter:!1,size:48,minSize:48,maxSize:48}),v},[t,n.selectable]),f=xe.useReactTable({data:s,columns:g,state:{columnSizing:b,sorting:i,rowSelection:o,globalFilter:u,pagination:n.showPagination?m:void 0},enableColumnResizing:!0,columnResizeMode:"onChange",onColumnSizingChange:w,defaultColumn:{minSize:20,maxSize:Number.MAX_SAFE_INTEGER,size:150},onSortingChange:v=>{const y=typeof v=="function"?v(i):v;x(y);const M=y[0];M?n.onSortChange?.(M.id,M.desc?"desc":"asc"):n.onSortChange?.("",null)},onRowSelectionChange:v=>{const y=typeof v=="function"?v(o):v;c(y);const M=new Set;Object.keys(y).forEach(I=>{if(y[I]){const T=Number(I);M.add(isNaN(T)?I:T)}}),n.onSelectionChange?.(M)},onGlobalFilterChange:v=>{const y=typeof v=="function"?v(u):v;d(y),n.onSearchChange?.(y)},onPaginationChange:v=>{if(!n.showPagination)return;const y=typeof v=="function"?v(m):v;p(y),n.onPageChange?.(y.pageIndex+1)},getCoreRowModel:xe.getCoreRowModel(),getSortedRowModel:xe.getSortedRowModel(),getFilteredRowModel:xe.getFilteredRowModel(),getPaginationRowModel:n.showPagination?xe.getPaginationRowModel():void 0,manualPagination:!1,manualSorting:!1,getRowId:(v,y)=>String(n.getRowId?.(v,y)??y)}),C=k.default.useMemo(()=>({dense:!1,cellBorder:!1,rowBorder:!0,rowHeight:64,cellAlign:"center",headerBackground:!0,headerBorder:!0,virtualized:n.virtualized||!1,width:"auto",columnsVisibility:!1,columnsResizable:!0,...r}),[r,n.virtualized]),N=()=>{f.resetGlobalFilter(),f.resetColumnFilters(),n.showPagination&&f.setPageIndex(0)};return e.jsx(vr,{value:{table:f,tableLayout:C,parentRef:l,emptyStateTitle:n.emptyStateTitle,emptyStateDescription:n.emptyStateDescription,showClearFiltersButton:n.showClearFiltersButton??!0,resetAllFilters:N},children:e.jsx("div",{className:"w-full min-w-0",children:a})})},il=({children:t,className:s,noFooter:r=!1})=>{const{tableLayout:a,parentRef:n,table:l}=ie(),{virtualized:i,width:x}=a,o=l.getFilteredRowModel().rows.length===0;return i?e.jsx("div",{ref:n,className:h.clsx("bg-surface-0 border-x border-surface-4 overflow-auto w-full min-w-full table ds-scrollbar",s),style:{height:"400px"},children:e.jsx("table",{className:h.clsx("w-full",x==="fixed"&&"table-fixed",x==="auto"&&"table-auto"),children:t})}):e.jsx("div",{className:h.clsx("bg-surface-0 border-x border-surface-4 overflow-x-auto w-full ds-scrollbar",(r||o)&&"border-b rounded-b-2xl",s),children:e.jsxs("table",{className:h.clsx(!o&&x!=="fixed"&&"min-w-max","w-full",x==="fixed"&&"table-fixed",x==="auto"&&"table-auto"),"data-slot":"data-table",children:[x==="fixed"&&e.jsx("colgroup",{children:l.getAllLeafColumns().map(c=>e.jsx("col",{style:c.id==="__select"?{width:`${c.getSize()}px`,maxWidth:`${c.getSize()}px`}:void 0},c.id))}),t]})})},Ee=({children:t,className:s,style:r,isTBody:a=!0})=>{const{tableLayout:n}=ie(),{rowBorder:l,rowHeight:i}=n,x=i&&a?{...r,height:`${i}px`}:r;return e.jsx("tr",{className:h.clsx("bg-white hover:bg-surface-2 transition-colors",l&&"border-b border-surface-4 last:border-b-0",s),style:x,children:t})},wr=({header:t,className:s})=>{const{table:r,tableLayout:a}=ie(),{headerBackground:n,dense:l,cellBorder:i,columnsResizable:x,cellAlign:o,width:c}=a,u=t.column,d=t.column.getIsSorted(),m=d!==!1,p=u.getCanResize()&&x;if(u.id==="__select")return e.jsx("th",{className:h.clsx(l?"px-2 py-2":"px-3 py-3",n&&"bg-surface-1","align-middle relative",i&&"border-r border-surface-4 last:border-r-0",s),style:{width:`${t.getSize()}px`,minWidth:`${t.getSize()}px`,maxWidth:`${t.getSize()}px`,...o&&{textAlign:o}},children:e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(fe,{className:"",checked:r.getIsAllPageRowsSelected(),onChange:r.getToggleAllPageRowsSelectedHandler(),indeterminate:r.getIsSomePageRowsSelected(),size:"small"})})});const b=e.jsxs("th",{className:h.clsx(l?"px-4 py-2":"px-6 py-3",n&&"bg-surface-1","flex items-center justify-center flex-row gap-2 min-w-0 relative",u.getCanSort()&&"cursor-pointer hover:bg-surface-3 transition-colors",m&&"bg-surface-3",i&&"border-r border-surface-4 last:border-r-0",s),style:{...c!=="fixed"&&{width:`${t.getSize()}px`,minWidth:`${u.columnDef.minSize||20}px`,maxWidth:`${u.columnDef.maxSize||Number.MAX_SAFE_INTEGER}px`},textAlign:t.column.columnDef.meta?.align??o},onClick:u.getCanSort()?u.getToggleSortingHandler():void 0,children:[e.jsx("div",{className:"align-middle gap-2 min-w-0",children:e.jsx("span",{className:h.clsx("text-xs font-medium leading-[18px] truncate capitalize text-low-em",m&&"font-semibold"),children:xe.flexRender(t.column.columnDef.header,t.getContext())})}),d&&e.jsx("div",{className:"align-middle flex-shrink-0",children:e.jsx(Wt,{direction:d==="desc"?"desc":"asc"})}),u.getCanFilter()&&e.jsx("div",{className:"align-middle flex-shrink-0",children:e.jsx($t,{})})]});return p?e.jsxs("th",{className:h.clsx(l?"px-4 py-2":"px-6 py-3",n&&"bg-surface-1","align-middle min-w-0 relative group",u.getCanSort()&&"cursor-pointer hover:bg-surface-3 transition-colors",m&&"bg-surface-3",i&&"border-r border-surface-4 last:border-r-0",s),style:{...c!=="fixed"&&{width:`${t.getSize()}px`,minWidth:`${u.columnDef.minSize||20}px`,maxWidth:`${u.columnDef.maxSize||Number.MAX_SAFE_INTEGER}px`},...o&&{textAlign:o}},onClick:u.getCanSort()?u.getToggleSortingHandler():void 0,children:[e.jsxs("div",{className:"flex items-center justify-center flex-row gap-2",children:[e.jsx("div",{className:"align-middle gap-2 min-w-0",children:e.jsx("span",{className:h.clsx("text-xs font-medium leading-[18px] truncate capitalize text-low-em",m&&"font-semibold"),children:xe.flexRender(t.column.columnDef.header,t.getContext())})}),d&&e.jsx("div",{className:"align-middle flex-shrink-0",children:e.jsx(Wt,{direction:d==="desc"?"desc":"asc"})}),u.getCanFilter()&&e.jsx("div",{className:"align-middle flex-shrink-0",children:e.jsx($t,{})})]}),e.jsx("div",{onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:h.clsx("absolute top-0 right-0 w-1 h-full cursor-col-resize z-10","bg-transparent hover:bg-surface-4 opacity-0 group-hover:opacity-50")})]}):b},Wt=({direction:t})=>t?e.jsx(hs,{className:h.clsx("text-low-em",t==="asc"&&"rotate-180"),size:12}):null,$t=()=>e.jsx(ms,{className:"text-low-em",size:12}),ol=({className:t})=>{const{table:s,tableLayout:r}=ie(),{headerBackground:a,headerBorder:n}=r;return e.jsx("thead",{className:h.clsx(a&&"bg-surface-1",n&&"border-b border-surface-4",t),children:s.getHeaderGroups().map(l=>e.jsx(Ee,{isTBody:!1,children:l.headers.map(i=>e.jsx(wr,{header:i},i.id))},l.id))})},lt=({cell:t,className:s})=>{const{tableLayout:r}=ie(),{cellAlign:a}=r,n=t.row,l=n.getIsSelected();return t.column.id==="__select"?e.jsx("td",{className:h.clsx(r.dense?"px-2 py-2":"px-3 py-3","relative",l?"bg-surface-2":"",r.cellBorder&&"border-r border-surface-4 last:border-r-0",s),style:{width:`${t.column.getSize()}px`,minWidth:`${t.column.getSize()}px`,maxWidth:`${t.column.getSize()}px`},children:e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(fe,{checked:l,onChange:n.getToggleSelectedHandler(),size:"small"})})}):e.jsx("td",{className:h.clsx(r.dense?"px-4 py-2":"px-6 py-4","text-high-em text-sm font-medium leading-5 transition-colors min-w-0 truncate",l?"bg-surface-2":"",r.cellBorder&&"border-r border-surface-4 last:border-r-0",s),style:{textAlign:t.column.columnDef.meta?.align??a},children:xe.flexRender(t.column.columnDef.cell,t.getContext())})},Cr=({title:t="No data available.",className:s,colSpan:r=1})=>e.jsx("tr",{className:h.clsx("w-full",s),children:e.jsx("td",{colSpan:r,children:e.jsx(pt,{description:t,flat:!0,className:"rounded-b-2xl"})})}),cl=({className:t})=>{const{table:s,tableLayout:r,parentRef:a,emptyStateTitle:n,resetAllFilters:l}=ie(),{virtualized:i}=r;if(s.getFilteredRowModel().rows.length===0)return e.jsx("tbody",{className:h.clsx(r.rowBorder&&"divide-y divide-surface-4",r.dense&&"text-sm",t),children:e.jsx(Cr,{title:n,colSpan:s.getAllColumns().length})});if(!i)return e.jsx("tbody",{className:h.clsx(r.rowBorder&&"divide-y divide-surface-4",r.dense&&"text-sm",t),children:s.getRowModel().rows.map(d=>e.jsx(Ee,{children:d.getVisibleCells().map(m=>e.jsx(lt,{cell:m},m.id))},d.id))});const o=Yr.useVirtualizer({count:s.getRowModel().rows.length,getScrollElement:()=>a?.current||null,estimateSize:()=>r.rowHeight?r.rowHeight:r.dense?32:40,overscan:5}),c=o.getVirtualItems(),u=o.getTotalSize();return e.jsx("tbody",{className:h.clsx("relative",r.dense&&"text-sm",t),style:{height:`${u}px`},children:c.map(d=>{const m=s.getRowModel().rows[d.index];return e.jsx(Ee,{style:{position:"absolute",top:0,left:0,width:"100%",height:`${d.size}px`,transform:`translateY(${d.start}px)`},children:m.getVisibleCells().map(p=>e.jsx(lt,{cell:p},p.id))},d.key)})})},dl=(t,s)=>{const r=Number(t);if(isNaN(r)||!isFinite(r))return 1;const a=Math.floor(r),n=Math.max(1,Math.min(a,s));return s>0?n:1},yr=t=>({id:String(t),title:String(t),showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1,className:"!min-w-0 justify-center [&>div:last-child]:hidden",middleContainerClassName:"justify-center [&>div]:mr-0"}),xl=t=>t.map(s=>yr(s)),ul=(t,s,r,a)=>{const n=t*s+1,l=Math.min((t+1)*s,r||a);return{start:n,end:l,total:r||a}},hl=({showPagination:t=!0,totalItems:s,className:r,sizes:a=[10,20,50,100],footerBackground:n=!0,actions:l})=>{const{table:i}=ie(),x=i.getState().pagination,o=i.getPageCount(),c=i.getCanPreviousPage(),u=i.getCanNextPage(),d=N=>{const v=dl(N,o)-1;i.setPageIndex(v)},m=N=>{i.setPageSize(Number(N))},p=()=>i.previousPage(),b=()=>i.nextPage(),w=i.getFilteredRowModel().rows.length,{total:g}=ul(x.pageIndex,x.pageSize,s,w),f=xl(a),C=x.pageSize;return!t||w===0?null:e.jsxs("div",{className:h.clsx("w-full px-8 py-6 border border-surface-4 rounded-b-2xl flex flex-row justify-between items-center gap-4",n&&"bg-surface-1",r),children:[e.jsxs("div",{className:"hidden lg:flex items-center flex-row shrink-0 gap-4",children:[e.jsx("span",{className:"hidden lg:block text-low-em text-sm font-semibold",children:"Showing"}),e.jsx(Ae,{className:"!w-[68px]",size:"sm",variant:"outlined",value:String(C),items:f,onChange:m,showLeadingIcon:!1,customHeight:"28px",customRadius:"8px",menuSize:"sm"}),e.jsx("span",{className:"hidden lg:block text-med-em text-sm font-semibold",children:`/ ${String(g)}`})]}),e.jsxs("div",{className:"flex flex-row items-center w-full lg:w-auto justify-between lg:justify-end gap-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("span",{className:"hidden lg:block text-med-em text-sm font-semibold whitespace-nowrap",children:"Go To Page"}),e.jsx(Ae,{className:"!w-[68px]",size:"sm",variant:"outlined",value:String(x.pageIndex+1),items:Array.from({length:o||1},(N,v)=>yr(v+1)),onChange:d,showLeadingIcon:!1,customHeight:"28px",customRadius:"8px",menuSize:"sm"}),e.jsxs("span",{className:"text-med-em text-sm font-semibold whitespace-nowrap",children:["of ",o||1]})]}),e.jsx("div",{className:"px-4 flex items-center",children:e.jsx("span",{className:"w-0 border-l border-gray-300 h-[33px]"})}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(R,{onClick:p,disabled:!c,variant:"neutral",hierarchy:"tertiary",size:"sm",children:"Previous"}),e.jsx(R,{onClick:b,disabled:!u,variant:"brand",hierarchy:"primary",size:"sm",children:"Next"})]})]}),l&&e.jsx("div",{className:"flex items-center gap-x-4 flex-shrink-0",children:l})]})},ml=({title:t,search:s,actions:r,className:a})=>e.jsxs("div",{className:h.clsx("w-full px-8 py-6 bg-white border border-surface-4 rounded-t-2xl flex flex-row justify-between items-center gap-4",a),children:[t&&!s&&e.jsx("div",{className:"flex-shrink-0 text-xl font-semibold text-high-em leading-[30px]",children:t}),s&&e.jsx("div",{className:"flex-1",children:e.jsx(Y,{value:s.value??"",onChange:n=>s.onChange(n.target.value),placeholder:s.placeholder??"Search...",size:"md",leadingIcon:e.jsx(z.SearchNormal1,{size:16})})}),r&&e.jsx("div",{className:"flex items-center gap-x-4 flex-shrink-0",children:r})]}),fl=({columnId:t,className:s,options:r,title:a})=>{const{table:n}=ie(),l=n.getColumn(t),[i,x]=j.useState(l?.getFilterValue()||"");if(!l||!l.getCanFilter())return null;const o=l.columnDef,c=o.filterType||"text",u=a||o.header||l.id,d=p=>{x(p),l.setFilterValue(p||void 0)},m=()=>{switch(c){case"select":return e.jsxs("select",{value:i,onChange:p=>d(p.target.value),className:"w-full border border-gray-300 rounded px-2 py-1 text-sm",children:[e.jsx("option",{value:"",children:"All"}),r?.map((p,b)=>e.jsx("option",{value:String(p.value),children:p.label},b))]});case"number":return e.jsx("input",{type:"number",value:i,onChange:p=>d(p.target.value),placeholder:`Filter ${u}...`,className:"w-full border border-gray-300 rounded px-2 py-1 text-sm"});case"date":return e.jsx("input",{type:"date",value:i,onChange:p=>d(p.target.value),className:"w-full border border-gray-300 rounded px-2 py-1 text-sm"});case"boolean":return e.jsxs("select",{value:i,onChange:p=>d(p.target.value),className:"w-full border border-gray-300 rounded px-2 py-1 text-sm",children:[e.jsx("option",{value:"",children:"All"}),e.jsx("option",{value:"true",children:"Yes"}),e.jsx("option",{value:"false",children:"No"})]});case"text":default:return e.jsx("input",{type:"text",value:i,onChange:p=>d(p.target.value),placeholder:`Filter ${u}...`,className:"w-full border border-gray-300 rounded px-2 py-1 text-sm"})}};return e.jsxs("div",{className:h.clsx("p-2 border-t border-gray-200",s),children:[e.jsx("div",{className:"text-xs font-medium text-gray-700 mb-1",children:u}),m()]})},pl=({className:t,trigger:s,position:r="right"})=>{const{table:a}=ie(),[n,l]=j.useState(!1),i=a.getAllColumns().filter(m=>m.id!=="__select"&&m.getCanHide());if(i.length===0)return null;const x=m=>{i.forEach(p=>{p.getCanHide()&&p.toggleVisibility(m)})},o=i.every(m=>m.getIsVisible()),c=i.some(m=>m.getIsVisible()),u=e.jsxs(R,{variant:"neutral",hierarchy:"tertiary",size:"sm",className:"flex items-center gap-2",children:[e.jsx(z.Eye,{size:"16"}),"Columns",e.jsx(z.ArrowDown2,{size:"16"})]}),d=r==="right"?"right-0 origin-top-right":"left-0 origin-top-left";return e.jsxs("div",{className:h.clsx("relative inline-block text-left",t),children:[e.jsx("div",{onClick:()=>l(!n),children:s||u}),n&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>l(!1)}),e.jsx("div",{className:h.clsx("absolute z-20 mt-2 w-56 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",d),children:e.jsxs("div",{className:"py-1",children:[e.jsx("div",{className:"px-4 py-2 border-b border-gray-200",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900",children:"Column Visibility"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>x(!0),className:"text-xs text-blue-600 hover:text-blue-800",disabled:o,children:"All"}),e.jsx("span",{className:"text-gray-300",children:"|"}),e.jsx("button",{onClick:()=>x(!1),className:"text-xs text-blue-600 hover:text-blue-800",disabled:!c,children:"None"})]})]})}),e.jsx("div",{className:"max-h-60 overflow-y-auto",children:i.map(m=>{const p=m.getIsVisible(),b=typeof m.columnDef.header=="string"?m.columnDef.header:m.id;return e.jsxs("div",{className:"px-4 py-2 hover:bg-gray-50 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(fe,{checked:p,onChange:m.getToggleVisibilityHandler(),size:"small"}),e.jsx("label",{htmlFor:`column-${m.id}`,className:"ml-2 text-sm text-gray-700 cursor-pointer",onClick:w=>{w.stopPropagation(),m.toggleVisibility()},children:b})]}),e.jsx("button",{onClick:w=>{w.stopPropagation(),m.toggleVisibility()},className:"p-1 rounded hover:bg-gray-200",children:p?e.jsx(z.Eye,{size:"16",className:"text-gray-600"}):e.jsx(z.EyeSlash,{size:"16",className:"text-gray-400"})})]},m.id)})})]})})]})]})},gl=({value:t,config:s})=>{const r=s?.size||"sm";return e.jsx(Ze,{size:r,initials:String(t||"")})},bl=({value:t,config:s})=>{const r=s?.size||"xs",a=s?.variantMap||{},n=s?.variant||"secondary",l=String(t||"").toLowerCase(),i=a[l]||n;return e.jsx(ye,{variant:i,size:r,children:String(t||"")})},jl=({value:t})=>{const s=String(t||"");return e.jsx("a",{href:`mailto:${s}`,className:"text-primary-900 hover:underline",children:s})},Ft=({value:t})=>e.jsx("span",{children:String(t||"")}),vl=({value:t})=>{const s=typeof t=="number"?t:parseFloat(String(t||"0"));return e.jsx("span",{children:s.toLocaleString()})},wl=({value:t})=>{if(!t)return e.jsx("span",{children:"-"});const s=t instanceof Date?t:new Date(String(t));return e.jsx("span",{children:s.toLocaleDateString()})},Cl=({value:t})=>{const s=!!t;return e.jsx("span",{className:s?"text-success-600":"text-gray-400",children:s?"✓":"✗"})},yl={avatar:gl,tag:bl,email:jl,text:Ft,number:vl,date:wl,boolean:Cl,custom:Ft};function Nr(t){const s=yl[t.dataType];return{id:t.id,header:t.header,sortable:t.sortable,filterable:t.filterable,width:t.width,filterType:t.filterConfig?.type,filterOptions:t.filterConfig?.options,component:({value:r,row:a,rowIndex:n})=>s({value:r,row:a,rowIndex:n,config:t.componentProps}),accessor:r=>r[t.id]}}function Nl(t){return t.map(s=>Nr(s))}function kl(t){return[{id:"__select",header:"",type:"select",width:"w-16"},...t]}const kr={title:"User Management",columns:[{id:"avatar",header:"Avatar",dataType:"avatar",componentProps:{size:"sm"}},{id:"name",header:"Name",dataType:"text",sortable:!0,filterable:!0,filterConfig:{type:"text"}},{id:"email",header:"Email",dataType:"email",filterable:!0,filterConfig:{type:"text"}},{id:"status",header:"Status",dataType:"tag",filterable:!0,filterConfig:{type:"select",options:[{label:"Active",value:"active"},{label:"Inactive",value:"inactive"},{label:"Pending",value:"pending"}]},componentProps:{size:"xs",variantMap:{active:"success",inactive:"quaternary",pending:"info"}}},{id:"role",header:"Role",dataType:"text",filterable:!0,filterConfig:{type:"select",options:[{label:"Admin",value:"Admin"},{label:"User",value:"User"},{label:"Manager",value:"Manager"}]}},{id:"department",header:"Department",dataType:"text"},{id:"loginCount",header:"Logins",dataType:"number",sortable:!0},{id:"isVerified",header:"Verified",dataType:"boolean"},{id:"createdAt",header:"Created",dataType:"date",sortable:!0}],features:{selectable:!0,virtualized:!1,pagination:!0,sorting:!0,filtering:!0},pagination:{itemsPerPage:10,currentPage:1,totalPages:5,totalItems:50}},Sr=[{id:1,avatar:"JD",name:"John Doe",email:"john.doe@example.com",status:"active",role:"Admin",department:"Engineering",createdAt:"2024-01-15",loginCount:142,isVerified:!0},{id:2,avatar:"JS",name:"Jane Smith",email:"jane.smith@example.com",status:"active",role:"Manager",department:"Marketing",createdAt:"2024-02-20",loginCount:98,isVerified:!0},{id:3,avatar:"RJ",name:"Robert Johnson",email:"robert.j@example.com",status:"pending",role:"User",department:"Sales",createdAt:"2024-03-10",loginCount:5,isVerified:!1},{id:4,avatar:"MW",name:"Maria Williams",email:"maria.w@example.com",status:"active",role:"User",department:"HR",createdAt:"2024-01-25",loginCount:67,isVerified:!0},{id:5,avatar:"DB",name:"David Brown",email:"david.b@example.com",status:"inactive",role:"User",department:"Engineering",createdAt:"2023-12-05",loginCount:234,isVerified:!0}],Sl={config:kr,data:Sr},Lr={title:"Product Inventory",columns:[{id:"sku",header:"SKU",dataType:"text",sortable:!0},{id:"name",header:"Product Name",dataType:"text",sortable:!0,filterable:!0,filterConfig:{type:"text"}},{id:"category",header:"Category",dataType:"tag",filterable:!0,filterConfig:{type:"select",options:[{label:"Electronics",value:"Electronics"},{label:"Clothing",value:"Clothing"},{label:"Food",value:"Food"}]},componentProps:{size:"xs",variant:"secondary"}},{id:"price",header:"Price",dataType:"number",sortable:!0,filterConfig:{type:"number"}},{id:"stock",header:"Stock",dataType:"number",sortable:!0},{id:"isActive",header:"Active",dataType:"boolean",filterable:!0,filterConfig:{type:"boolean"}},{id:"lastUpdated",header:"Last Updated",dataType:"date",sortable:!0}],features:{selectable:!0,virtualized:!1,pagination:!0,sorting:!0,filtering:!0},pagination:{itemsPerPage:15,currentPage:1,totalPages:3,totalItems:45}},zr=[{id:1,sku:"ELEC-001",name:"Wireless Mouse",category:"Electronics",price:29.99,stock:150,isActive:!0,lastUpdated:"2024-03-15"},{id:2,sku:"CLTH-045",name:"Cotton T-Shirt",category:"Clothing",price:19.99,stock:300,isActive:!0,lastUpdated:"2024-03-14"},{id:3,sku:"FOOD-112",name:"Organic Coffee",category:"Food",price:12.5,stock:0,isActive:!1,lastUpdated:"2024-02-28"},{id:4,sku:"ELEC-089",name:"USB-C Cable",category:"Electronics",price:15.99,stock:500,isActive:!0,lastUpdated:"2024-03-16"},{id:5,sku:"CLTH-098",name:"Denim Jeans",category:"Clothing",price:59.99,stock:75,isActive:!0,lastUpdated:"2024-03-10"}],Ll={config:Lr,data:zr},Ot={line:{list:"flex gap-x-9 border-b border-surface-3",tab:"relative pb-8 px-2 font-medium text-[14px] transition-colors focus:outline-none",selected:"text-high-em after:absolute after:bottom-[-1px] after:left-0 after:right-0 after:h-1 after:bg-black",unselected:"text-low-em"},"line-full-width":{list:"flex border-b border-surface-3",tab:"flex flex-1 justify-center relative pb-8 px-2 font-medium text-sm transition-colors focus:outline-none",selected:"text-high-em after:absolute after:bottom-[-1px] after:left-0 after:right-0 after:h-1 after:bg-black",unselected:"text-low-em"},pill:{list:"flex gap-x-12",tab:"font-medium text-sm transition-colors focus:outline-none px-6 rounded-md",selected:"bg-surface-2 text-high-em py-4",unselected:"text-low-em px-3 py-2 hover:bg-surface-2/50"}},Xe={none:"",xs:"mt-2",sm:"mt-4",md:"mt-6",lg:"mt-8",xl:"mt-12"},Mr=({variant:t="line",tabs:s,className:r,selectedIndex:a,onChange:n,customPaddingBottom:l,contentSpacing:i="sm",fullHeight:x=!1,iconLabelGap:o=4,iconSize:c=16,showBorder:u=!0,headerHeight:d,tabPaddingX:m,tabListClassName:p})=>{const b=t==="line-icons"||t==="only-icon"?Ot.line:Ot[t],w=u?b.list:b.list.replace(/border-b\s+border-surface-3/g,"").trim(),g={};d&&(g.height=`${d}px`,g.alignItems="flex-end");const f=()=>typeof i=="number"?"":i in Xe?Xe[i]:Xe.sm,C=typeof i=="number"?{marginTop:`${i}px`}:{},N=x?{height:"100%",maxHeight:"100%",overflow:"hidden",display:"flex",flexDirection:"column"}:{},v=x?{height:"100%",maxHeight:"100%",flex:1}:{};return e.jsx("div",{className:h.clsx("w-full",r),style:N,children:e.jsxs(Z.Tab.Group,{selectedIndex:a,onChange:n,as:"div",className:x?"flex flex-col overflow-hidden":void 0,style:v,children:[e.jsx(Z.Tab.List,{className:h.clsx(w,p),style:g,children:s.map(y=>e.jsx(Z.Tab,{className:({selected:M})=>h.clsx(b.tab,M?b.selected:b.unselected),style:{...l?{paddingBottom:l}:{},...m!==void 0?{paddingLeft:`${m}px`,paddingRight:`${m}px`}:{}},children:({selected:M})=>{const I=M&&y.selectedIcon?y.selectedIcon:y.icon;return e.jsxs("div",{className:h.clsx("flex items-center",le(o)),children:[(t==="line-icons"||t==="only-icon")&&I&&k.default.isValidElement(I)&&k.default.cloneElement(I,{size:c,color:"currentColor"}),t!=="only-icon"&&y.label]})}},y.id))}),e.jsx(Z.Tab.Panels,{className:f(),style:x?{display:"flex",flexDirection:"column",flex:1,minHeight:0,overflow:"hidden",...C}:C,children:s.map(y=>e.jsx(Z.Tab.Panel,{style:x?{minHeight:0,flex:1,overflowY:"auto",maxHeight:"100%"}:void 0,children:y.content},y.id))})]})})},Ir=({tabs:t,className:s,selectedIndex:r,onChange:a,onAddTab:n,onArrowRightClick:l,onCloseTab:i,tabWidth:x,scrollDistance:o=300})=>{const c=j.useRef(null),[u,d]=j.useState(!1),[m,p]=j.useState(!1),b=()=>{if(!c.current)return;const{scrollLeft:f,scrollWidth:C,clientWidth:N}=c.current;d(f>0),p(f<C-N-1)};j.useEffect(()=>{b();const f=c.current;if(f){f.addEventListener("scroll",b);const C=new ResizeObserver(b);return C.observe(f),()=>{f.removeEventListener("scroll",b),C.disconnect()}}},[t]);const w=()=>{c.current&&c.current.scrollBy({left:-o,behavior:"smooth"})},g=()=>{c.current&&c.current.scrollBy({left:o,behavior:"smooth"})};return e.jsx("div",{className:h.clsx("w-full h-full",s),children:e.jsx(Z.Tab.Group,{className:"h-full w-full",selectedIndex:r,onChange:a,children:e.jsxs("div",{className:"relative flex items-center border-x border-surface-3 h-full w-full",children:[u&&e.jsx("button",{onClick:w,className:"h-full hover:bg-surface-bg cursor-pointer px-6 border-r border-surface-3 shrink-0","aria-label":"Scroll left",children:e.jsx($,{className:"text-med-em",size:"xs",children:e.jsx(z.ArrowLeft2,{})})}),e.jsx("div",{ref:c,className:"flex-1 h-full w-full overflow-x-auto [&::-webkit-scrollbar]:!hidden [-ms-overflow-style:none!important] [scrollbar-width:none!important]",children:e.jsx(Z.Tab.List,{className:"flex min-w-full h-full ",children:t.map((f,C)=>e.jsx(Z.Tab,{as:"div",className:({selected:N})=>h.clsx("relative py-3 font-medium border-r border-surface-3","whitespace-nowrap h-full flex items-center cursor-pointer","outline-none focus:outline-none focus-visible:outline-none focus:ring-0 active:outline-none",x?"":"flex-1",N?"text-high-em bg-white after:absolute border-b-2 border-b-black":"text-low-em bg-surface-bg hover:bg-surface-2"),style:x?{width:`${x}px`,minWidth:`${x}px`}:void 0,children:({selected:N})=>e.jsxs("div",{className:"flex items-center justify-between gap-8 p-8 w-full",children:[e.jsx("span",{className:`!truncate text-sm text-high-em font-medium ${N?"text-high-em":"text-low-em"}`,children:f.label}),f.closeable&&N&&i&&e.jsx(R,{onClick:v=>{v.stopPropagation(),i(C)},className:"cursor-pointer",leadingIcon:e.jsx($,{size:"xs",className:"text-med-em",children:e.jsx(ce,{})}),"aria-label":"Close tab",icons:"only",variant:"neutral",hierarchy:"secondary"})]})},f.id))})}),e.jsxs("div",{className:"flex items-center h-full",children:[m&&e.jsx("button",{onClick:l||g,className:"h-full hover:bg-surface-bg cursor-pointer px-6 border-x border-surface-3","aria-label":"Scroll right",children:e.jsx($,{className:"text-low-em",size:"xs",children:e.jsx(z.ArrowRight2,{})})}),n&&e.jsx("button",{onClick:n,className:`h-full hover:bg-surface-bg cursor-pointer px-6 ${m?"":"border-l border-surface-3"}`,"aria-label":"Add new tab",children:e.jsx($,{className:"text-low-em",size:12,children:e.jsx(z.Add,{})})})]})]})})})};Ir.displayName="HeaderTabs";const zl={default:{background:"bg-surface-2 hover:bg-surface-3",border:"border-transparent",hint:"text-med-em",placeholder:"placeholder-placeholder",text:"text-med-em"},danger:{background:"bg-danger-accent-1",border:"border-danger-accent-2",hint:"text-danger-em",placeholder:"placeholder-danger-em",text:"text-danger-em"}},Ml={sm:{fontSize:"text-xs",labelFontSize:"text-[10px]",hintFontSize:"text-[10px]",hintIconSize:12},md:{fontSize:"text-sm",labelFontSize:"text-xs",hintFontSize:"text-xs",hintIconSize:12},lg:{fontSize:"text-base",labelFontSize:"text-sm",hintFontSize:"text-sm",hintIconSize:14}},Ce={wrapper:"bg-surface-3 pointer-events-none border-transparent",label:"!text-disabled",hint:"!text-disabled",text:"disabled:text-disabled",placeholder:"disabled:placeholder-disabled"},Pr=({variant:t="default",size:s="md",label:r,hint:a,hintIconVariant:n,disabled:l,resize:i="vertical",className:x,customFontWeight:o,customBackground:c,...u})=>{const d=zl[t],m=Ml[s],p=o||void 0,b=c?/^[a-z]+-[a-z0-9-]+$/i.test(c)?`var(--${c})`:c:void 0,w={none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"};return e.jsxs("div",{className:h.clsx("flex flex-col gap-1.5",x),children:[r&&e.jsx("label",{htmlFor:u.id,className:h.clsx("font-semibold text-med-em",m.labelFontSize,l&&Ce.label),children:r}),e.jsx("div",{className:h.clsx("relative flex items-center border rounded-xl transition-colors duration-200 flex-1",!c&&d.background,d.border,l&&Ce.wrapper),style:{backgroundColor:b},children:e.jsx("textarea",{disabled:l,className:h.clsx("w-full h-full bg-transparent px-3.5 py-2.5 focus:outline-none min-h-[80px]",m.fontSize,!o&&"font-medium",d.text,d.placeholder,w[i],l&&Ce.text,l&&Ce.placeholder),style:{fontWeight:p},...u})}),a&&e.jsx(oe,{icon:e.jsx(z.InfoCircle,{variant:n}),label:a,iconSize:m.hintIconSize,gap:1,iconColorClass:h.clsx(d.hint,l&&Ce.hint),labelColorClass:h.clsx(d.hint,l&&Ce.hint),className:h.clsx(m.hintFontSize,"font-semibold")})]})};function Il({theme:t="light",onToggle:s,className:r}){return e.jsx("button",{onClick:s,className:r||"rounded-lg border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-dark-700 hover:bg-gray-50 dark:border-surface-3 dark:bg-surface-2 dark:text-low-em dark:hover:bg-surface-3","aria-label":"Toggle theme",children:t==="dark"?e.jsx("span",{children:"Light Mode"}):e.jsx("span",{children:"Dark Mode"})})}const Pl="bg-white rounded-[20px] shadow-xl py-6 px-10 flex items-center gap-6 max-w-md leading-10",Tl={default:"border border-surface-3",custom:"border border-surface-3",danger:"border border-danger-accent-3",success:"border border-success-accent-3",warning:"border border-warning-accent-3"},Tr=18,Rr="text-base font-bold text-high-em leading-10",Dr="text-sm text-high-em leading-9",Hr=(t,s)=>V.twMerge(Pl,Tl[t||"default"],s),Ar=j.forwardRef((t,s)=>{const{title:r,description:a,variant:n="default",action:l,onOpenChange:i,duration:x=5e3,children:o,icon:c,className:u,iconSize:d=Tr,...m}=t,p=n!=="custom"||c;return e.jsxs(se.Root,{ref:s,duration:x,onOpenChange:i,className:Hr(n,u),...m,children:[p&&e.jsx("div",{children:n==="custom"&&c?c:e.jsx(ot,{size:d})}),e.jsxs("div",{className:"flex-1",children:[r&&e.jsx(se.Title,{className:Rr,children:r}),a&&e.jsx(se.Description,{className:Dr,children:a})]}),l&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px h-8 bg-surface-3"}),e.jsx(se.Action,{asChild:!0,altText:l.label,onClick:l.onClick,children:e.jsx(R,{className:"cursor-pointer",variant:"neutral",hierarchy:"quaternary",size:"md",icons:"none",children:l.label})})]}),e.jsx(se.Close,{asChild:!0,className:"shrink-0 flex items-center justify-center",children:e.jsx(R,{className:"cursor-pointer",variant:"neutral",hierarchy:"secondary",size:"xs",icons:"only",leadingIcon:e.jsx(ce,{className:"text-high-em",size:8})})}),o]})});Ar.displayName="Toast";const Er=j.createContext(null),Rl=()=>{const t=j.useContext(Er);if(!t)throw new Error("useToast must be used within a ToastProvider");return t},Dl=({children:t})=>{const[s,r]=j.useState([]),a=j.useCallback(l=>{const{title:i,description:x,variant:o="default",action:c,duration:u=5e3}=l,d={id:Math.random().toString(36).substr(2,9),title:i,description:x,variant:o,action:c,duration:u};r(m=>[...m,d])},[]),n=j.useCallback((l,i)=>{l||r(x=>x.filter(o=>o.id!==i))},[]);return e.jsx(Er.Provider,{value:{toast:a},children:e.jsxs(se.Provider,{swipeDirection:"right",children:[t,e.jsx(se.Viewport,{className:"fixed top-5 right-5 z-[999] flex flex-col gap-4 w-full max-w-[400px]"}),s.map(l=>e.jsxs(se.Root,{duration:l.duration,onOpenChange:i=>n(i,l.id),className:Hr(l.variant),children:[l.variant!=="custom"&&e.jsx("div",{className:"shrink-0 w-10 h-12 flex items-center justify-center",children:e.jsx(ot,{size:Tr})}),e.jsxs("div",{className:"flex-1",children:[l.title&&e.jsx(se.Title,{className:Rr,children:l.title}),l.description&&e.jsx(se.Description,{className:Dr,children:l.description})]}),l.action&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px h-12 bg-surface-3"}),e.jsx(se.Action,{asChild:!0,altText:l.action.label,onClick:l.action.onClick,children:e.jsx(R,{className:"cursor-pointer",variant:"neutral",hierarchy:"quaternary",size:"md",icons:"none",children:l.action.label})})]}),e.jsx(se.Close,{asChild:!0,className:"shrink-0 flex items-center justify-center",children:e.jsx(R,{className:"cursor-pointer",variant:"neutral",hierarchy:"secondary",size:"xs",icons:"only",leadingIcon:e.jsx(ce,{className:"text-high-em",size:8})})})]},l.id))]})})},Hl={small:{wrapper:"w-[36px] h-[20px]",knob:"w-[16px] h-[16px]",knobOn:"translate-x-[16px]"},medium:{wrapper:"w-[44px] h-[24px]",knob:"w-[20px] h-[20px]",knobOn:"translate-x-[20px]"},large:{wrapper:"w-[52px] h-[28px]",knob:"w-[24px] h-[24px]",knobOn:"translate-x-[24px]"}},pe={bgOff:"bg-surface-1 hover:bg-surface-2",bgOn:"bg-black hover:bg-low-em",bgDisabled:"bg-surface-3",knob:"bg-white shadow-[0_1px_2px_0_rgba(10,13,18,0.06)]",knobDisabled:"bg-surface-4",focus:"peer-focus:ring-2 peer-focus:ring-low-em peer-active:ring-2 peer-active:ring-low-em",disabled:"cursor-not-allowed"},Vr=({size:t="medium",checked:s,disabled:r,className:a,...n})=>{const l=Hl[t];return e.jsxs("label",{className:h.clsx("relative inline-flex items-center",r?pe.disabled:"cursor-pointer",a),children:[e.jsx("input",{type:"checkbox",className:"sr-only peer",checked:s,disabled:r,...n}),e.jsx("div",{className:h.clsx(l.wrapper,"relative rounded-full transition-colors duration-200 ease-in-out","flex items-center",r?pe.bgDisabled:s?pe.bgOn:pe.bgOff,!r&&pe.focus),children:e.jsx("div",{className:h.clsx(l.knob,r?pe.knobDisabled:pe.knob,"absolute top-[2px] left-[2px] rounded-full transition-transform duration-200 ease-in-out",s&&l.knobOn)})})]})},It=k.default.memo(({children:t,className:s,borderSide:r="none",borderStyle:a="surface-3"})=>{const n=k.default.useMemo(()=>r==="none"?"":`${r==="left"?"border-l":"border-r"} ${a==="surface-3"?"border-surface-3":"border-surface-4"}`,[r,a]);return e.jsx("div",{className:`h-full w-full flex flex-col ${n} ${s||""}`,children:t})});It.displayName="TypesPanel";const Al=({categories:t=[],onItemClick:s,renderItem:r,className:a=""})=>{const n=l=>{s&&s(l)};return e.jsxs("div",{className:`px-6 py-8 flex-1 overflow-y-auto ${a}`,children:[t.map((l,i)=>e.jsxs("div",{className:"mb-8 last:mb-0",children:[e.jsx("h3",{className:"font-inter font-semibold text-sm text-med-em mb-8",children:l.title}),e.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(70px,1fr))] gap-6",children:l.items.map(x=>e.jsx(k.default.Fragment,{children:r?r(x,{onClick:()=>n(x.id)}):e.jsx(Qs,{icon:x.icon,text:x.label,onClick:()=>n(x.id)})},x.id))}),i<t.length-1&&e.jsx("div",{className:"mt-8",children:e.jsx(K,{})})]},l.id)),t.length===0&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-sm text-med-em",children:"No hay elementos en esta categoría"})})]})},El=({categories:t=[],onItemClick:s,renderItem:r,className:a=""})=>{const n=l=>{s&&s(l)};return e.jsx(ee.Provider,{delayDuration:300,children:e.jsxs("div",{className:`px-6 py-8 flex-1 overflow-y-auto ${a}`,children:[t.map((l,i)=>e.jsxs("div",{className:"mb-8 last:mb-0",children:[e.jsx("h3",{className:"font-inter font-semibold text-sm text-med-em mb-8",children:l.title}),e.jsx("div",{className:"flex flex-col gap-6",children:l.items.map(x=>e.jsx(k.default.Fragment,{children:r?r(x,{onClick:()=>n(x.id)}):e.jsx(ft,{leadingIcon:e.jsx(z.HambergerMenu,{size:20}),leadingIconColor:"text-disabled",icon:e.jsx(ct,{}),iconColor:"text-disabled",tooltipContent:`Add ${x.label} field type`,onClick:()=>n(x.id),children:x.label})},x.id))}),i<t.length-1&&e.jsx("div",{className:"mt-8",children:e.jsx(K,{})})]},l.id)),t.length===0&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-sm text-med-em",children:"No hay elementos en esta categoría"})})]})})},Vl=[{id:"todos",title:"Todos",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1},{id:"basicos",title:"Básicos",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1},{id:"avanzados",title:"Avanzados",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1},{id:"multimedia",title:"Multimedia",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1},{id:"relaciones",title:"Relaciones",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1}],Wl=[{value:"list",icon:e.jsx(z.Task,{})},{value:"grid",icon:e.jsx(z.Category,{})}],$l=({className:t="",selectedType:s,onTypeChange:r,selectedView:a,onViewChange:n,actions:l,categories:i,placeholder:x="All",showLabel:o=!0})=>{const[c,u]=j.useState("basicos"),[d,m]=j.useState("list"),p=s!==void 0?s:c,b=a!==void 0?a:d,w=f=>{r?r(f):u(f)},g=f=>{n?n(f):m(f)};return e.jsx(ee.Provider,{delayDuration:300,children:e.jsxs("div",{className:`flex flex-col ${t}`,children:[o&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-6 pt-9 pb-8 flex items-center justify-between",children:[e.jsx(nr,{tooltipContent:"Select and configure the type of data field you want to create",labelClassName:"font-inter font-semibold text-sm text-high-em",className:"flex items-center gap-1",children:"Types"}),l&&e.jsx("div",{children:l})]}),e.jsx(K,{})]}),e.jsxs("div",{className:"flex items-center justify-between gap-4 py-8 px-6",children:[e.jsx("div",{className:"flex-1",children:e.jsx(Ae,{items:i?i.map(f=>({id:f.id,title:f.title,showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1,className:"!h-[34px]"})):Vl.map(f=>({...f,showLeadingIcon:!1,className:"!h-[34px]"})),value:p,onChange:w,placeholder:x,size:"md",menuSize:"sm",leadingIcon:e.jsx(z.SearchNormal1,{size:16}),showLeadingIcon:!0})}),e.jsx(he,{options:Wl,value:b,onChange:g,size:"sm"})]}),e.jsx(K,{})]})})},Fl=({className:t="",searchQuery:s,onSearchChange:r,searchPlaceholder:a="Search...",selectedView:n,onViewChange:l,viewOptions:i=[],buttonGroupSize:x="sm"})=>{const[o,c]=j.useState(""),[u,d]=j.useState("list"),m=s!==void 0?s:o,p=n!==void 0?n:u,b=j.useCallback(g=>{const f=g.target.value;r?r(f):c(f)},[r]),w=g=>{l?l(g):d(g)};return e.jsxs("div",{className:`flex flex-col ${t}`,children:[e.jsx(K,{}),e.jsxs("div",{className:"flex items-center justify-between gap-4 py-8 px-6",children:[e.jsx("div",{className:"flex-1",children:e.jsx(Y,{type:"search",placeholder:a,value:m,onChange:b,trailingIcon:e.jsx(z.SearchNormal1,{size:16,color:"currentColor"})})}),e.jsx(he,{options:i,value:p,onChange:w,size:x})]}),e.jsx(K,{})]})},Wr=({title:t,backButton:s,actions:r,className:a})=>e.jsxs("div",{className:h.clsx("flex items-center gap-2","h-14 px-4","border-b border-surface-3",a),children:[s&&e.jsx("button",{type:"button",onClick:s.onClick,"aria-label":s["aria-label"]||"Go back",className:h.clsx("size-[42px]","flex items-center justify-center shrink-0","rounded-lg","hover:bg-surface-1 transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-secondary-main"),children:e.jsx(z.ArrowLeft2,{size:20,color:"currentColor",className:"text-high-em"})}),e.jsxs("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[e.jsx("h2",{className:h.clsx("text-sm font-semibold leading-[22px]","text-high-em","truncate"),children:t}),r&&e.jsx("div",{className:"flex items-center gap-2 shrink-0",children:r})]})]});Wr.displayName="PanelHeader";const Ol=({user:t,sections:s,align:r="right",offset:a=8,className:n,avatarSize:l="md"})=>{const[i,x]=j.useState(!1),o=j.useRef(null),c=j.useRef(null);j.useEffect(()=>{const m=p=>{o.current&&!o.current.contains(p.target)&&c.current&&!c.current.contains(p.target)&&x(!1)};if(i)return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[i]);const u=m=>{!m.disabled&&m.onClick&&(m.onClick(),x(!1))},d=(m,p)=>{m.switch?.onChange&&m.switch.onChange(p)};return e.jsxs("div",{className:h.clsx("relative inline-block",n),children:[e.jsx("div",{ref:c,onClick:()=>x(!i),className:"cursor-pointer",children:e.jsx(Ze,{size:l,imageUrl:t.avatar,initials:t.initials||t.name.charAt(0),statusBadge:t.statusBadge})}),i&&e.jsxs("div",{ref:o,className:h.clsx("absolute z-50 mt-2 min-w-[280px] rounded-lg bg-white shadow-lg border border-surface-3",r==="right"?"right-0":"left-0"),style:{top:`calc(100% + ${a}px)`},children:[e.jsxs("div",{className:"px-10 py-8 border-b border-surface-3",children:[e.jsx("p",{className:"text-sm font-semibold text-high-em",children:t.name}),t.email&&e.jsx("p",{className:"text-xs text-low-em mt-1",children:t.email})]}),e.jsx("div",{className:"py-3",children:s.map((m,p)=>e.jsxs(k.default.Fragment,{children:[m.map(b=>e.jsxs("button",{onClick:()=>u(b),disabled:b.disabled||!!b.switch,className:h.clsx("w-full px-10 py-4 text-left text-sm flex items-center gap-3 transition-colors",!b.switch&&"hover:bg-surface-1",b.destructive?"text-danger-main":"text-high-em",b.disabled&&"opacity-50 cursor-not-allowed"),children:[b.icon&&e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center text-current",children:b.icon}),e.jsx("span",{className:"flex-1 font-normal",children:b.label}),b.trailing&&e.jsx("span",{className:"flex-shrink-0",children:b.trailing}),!b.trailing&&b.badge&&e.jsx(ue,{theme:b.badge.theme||"success",size:"xs",variant:"simple",children:b.badge.label}),!b.trailing&&b.switch&&e.jsx(Vr,{size:"small",checked:b.switch.checked,onChange:w=>d(b,w.target.checked),onClick:w=>w.stopPropagation()})]},b.id)),p<s.length-1&&e.jsx("div",{className:"my-3 border-t border-surface-3"})]},p))})]})]})},Zl=({selected:t,onSelect:s,disabled:r=!1,onCancel:a,onAccept:n,extraMonth:l=!1,pickType:i="range",className:x="",cancelLabel:o="Cancel",acceptLabel:c="Accept"})=>{const[u,d]=j.useState(t);j.useEffect(()=>{d(t)},[t]);const m=u,p=f=>{d(f),s&&s(f)},b=()=>{d(void 0),a&&a()},w=()=>{n&&n(m)},g=i==="range"?{mode:"range",selected:m,onSelect:p}:{mode:"single",selected:m?.from,onSelect:f=>p(f?{from:f}:void 0)};return e.jsxs("div",{className:V.twMerge(h.clsx("font-family-inter bg-white border border-surface-3 rounded-[20px] w-fit",r&&"opacity-50 pointer-events-none",x)),children:[e.jsx(Kr.DayPicker,{...g,disabled:r,numberOfMonths:l?2:1,showOutsideDays:!0,className:"datepicker-calendar p-2.5",components:{Chevron:({orientation:f})=>f==="left"?e.jsx(z.ArrowLeft2,{size:16,color:"var(--high-em)"}):e.jsx(z.ArrowRight2,{size:16,color:"var(--high-em)"})}}),e.jsx("div",{className:"border-t border-surface-3 px-2.5 py-2.5 pl-5 self-end justify-end",children:e.jsxs("div",{className:"flex gap-2 self-end justify-end",children:[e.jsx(R,{className:"mr-8",variant:"neutral",size:"sm",hierarchy:"secondary",onClick:b,disabled:r,children:o}),e.jsx(R,{variant:"brand",size:"sm",hierarchy:"primary",onClick:w,disabled:r,children:c})]})})]})},Pt=({className:t,icon:s,label:r,description:a,actions:n,iconType:l="default",iconVariant:i="secondary",iconSize:x="sm",linkProps:o,badge:c,bottomContent:u,labelInlineContent:d,contentGap:m=2,classNameActions:p,...b})=>e.jsxs("div",{className:h.clsx("flex flex-row gap-8 items-center",t),...b,children:[s&&e.jsx(qe,{type:l,variant:i,size:x,children:s}),e.jsxs("div",{className:h.clsx("flex flex-1 flex-col",le(m)),children:[e.jsxs("div",{className:h.clsx("flex flex-row",c?"justify-between gap-2":""),children:[e.jsxs("div",{className:"flex flex-row gap-6 items-center",children:[o?e.jsx(me,{className:"w-fit",...o,children:r}):e.jsx("span",{className:"text-high-em text-md font-medium",children:r}),d&&e.jsx("div",{children:d})]}),c&&e.jsx("div",{children:c})]}),a&&e.jsx("span",{className:"text-med-em text-sm font-normal",children:a}),u&&e.jsx("div",{children:u})]}),n&&e.jsx("div",{className:h.clsx("flex gap-8",p),children:n})]}),Bl=({className:t,planLabel:s,priceLabel:r,timeLabel:a,nextPaymentLabel:n,dateLabel:l,items:i,buttonLabel1:x,onClickButton1:o,buttonLabel2:c,onClickButton2:u,...d})=>e.jsxs("div",{className:h.clsx("flex flex-col border border-surface-3 rounded-8 w-full",t),...d,children:[e.jsxs("div",{className:"flex flex-row px-10 py-8 border-b border-b-surface-3 gap-8",children:[e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[e.jsx("span",{className:"flex text-med-em font-medium text-sm",children:s}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[e.jsx("span",{className:"text-high-em font-semibold text-3xl font-family-space-grotesk",children:r}),e.jsxs("span",{className:"text-med-em text-sm font-normal",children:["/ ",a]})]})]}),e.jsxs("div",{className:"flex flex-col self-center ",children:[e.jsx("span",{className:"font-normal text-xs text-right text-med-em",children:n}),e.jsx("span",{className:"text-md text-right font-medium text-high-em",children:l})]})]}),e.jsxs("ul",{className:"flex flex-col p-10 gap-12",children:[e.jsx("div",{className:"flex flex-col gap-10",children:i.map((m,p)=>e.jsx(k.default.Fragment,{children:e.jsx("li",{children:e.jsx(Pt,{icon:m.icon,iconType:"default",iconVariant:"secondary",iconSize:"sm",label:m.itemLabel,badge:e.jsx(ue,{variant:"simple",theme:m.badgeTheme,children:m.badge}),bottomContent:e.jsx(mt,{progress:m.progress})})})},p))}),e.jsxs("div",{className:"flex flex-row gap-6",children:[e.jsx(R,{className:"w-1/2",size:"md",variant:"brand",hierarchy:"primary",onClick:o,children:x}),e.jsx(R,{className:"w-1/2",size:"md",variant:"neutral",hierarchy:"tertiary",onClick:u,children:c})]})]})]}),_l=({className:t,title:s,subtitle:r,actionButtonLabel:a,actionButtonLabelOnClick:n,extraComponent:l,items:i,...x})=>e.jsxs("div",{className:h.clsx("flex flex-col border border-surface-3 rounded-8 w-full",t),...x,children:[e.jsxs("div",{className:"flex flex-row px-10 py-8 border-b border-b-surface-3",children:[e.jsxs("div",{className:"flex flex-1 flex-col content-center",children:[e.jsx("h3",{className:"text-high-em font-semibold",children:s}),e.jsx("span",{className:"text-med-em text-sm font-normal",children:r})]}),a&&e.jsx("div",{className:"flex self-center",children:e.jsx(R,{size:"sm",variant:"neutral",hierarchy:"tertiary",onClick:n,children:a})})]}),e.jsxs("div",{className:"flex flex-col p-10 gap-10",children:[e.jsx("div",{className:"flex flex-col gap-6",children:i.map((o,c)=>e.jsxs(k.default.Fragment,{children:[c>0&&e.jsx(K,{}),e.jsx(Pt,{icon:o.icon,label:o.label,description:o.description,actions:(o.buttonLabel||o.buttonIcon)&&e.jsx(R,{size:"sm",onClick:o.buttonOnClick,...o.buttonLabel?{variant:"neutral",hierarchy:"tertiary"}:{icons:"only",variant:"neutral",hierarchy:"secondary",leadingIcon:o.buttonIcon||e.jsx(dt,{})},children:o.buttonLabel})})]},c))}),l&&e.jsx("div",{className:"flex flex-1",children:l})]})]}),Gl=({className:t,title:s,subtitle:r,buttonItems:a,...n})=>e.jsxs("div",{className:h.clsx("flex flex-col gap-8 p-8 bg-surface-1 rounded-8 w-full",t),...n,children:[e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx("h3",{className:"text-high-em font-semibold text-xl",children:s}),e.jsx("span",{className:"text-med-em text-sm font-normal",children:r})]}),e.jsx("div",{className:"flex flex-col gap-4",children:a.map((l,i)=>e.jsx(R,{children:l.label,leadingIcon:l.icon,size:"sm",icons:"leading",onClick:l.buttonOnClick,...l.variant||l.hierarchy?{variant:l.variant,hierarchy:l.hierarchy}:{variant:"brand",hierarchy:"primary"}},i))})]}),$r=({className:t,title:s,description:r,icon:a,onMaximize:n,onEdit:l,onCopy:i,onTrash:x,...o})=>{const[c,u]=j.useState("icon1"),d=p=>{switch(u(p),p){case"maximize":n?.();break;case"edit":l?.();break;case"copy":i?.();break;case"trash":x?.();break}},m=[{value:"maximize",icon:e.jsx(ht,{size:12})},{value:"text block",label:"Text Block"},{value:"edit",icon:e.jsx(Ss,{size:12})},{value:"copy",icon:e.jsx($e,{size:12})},{value:"trash",icon:e.jsx(Fe,{size:12})}];return e.jsxs("div",{className:h.clsx("group relative flex flex-col border border-surface-3 rounded-8 w-full",t),...o,children:[e.jsxs("div",{className:"flex flex-row p-4 gap-4",children:[e.jsx("div",{children:e.jsx(qe,{variant:"secondary",size:"sm",children:a})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-high-em font-semibold text-sm font-family-space-grotesk",children:s}),e.jsx("span",{className:"text-med-em text-xs font-normal",children:r})]})]}),e.jsx("div",{className:"absolute inset-0 m-auto hidden w-fit h-fit p-4 group-hover:block",children:e.jsx(he,{options:m,value:c,onChange:d,size:"xs",variant:"brand"})})]})},Ul=({className:t,title:s,subtitle:r,image:a,imageAlt:n="Project image",actionButtons:l=[],labelIcons:i=[],...x})=>{const[o,c]=k.default.useState(!1);return e.jsxs("div",{className:h.clsx("flex flex-col rounded-2xl w-full border border-surface-3 h-full",t),...x,children:[e.jsxs("div",{className:"relative w-full h-48 overflow-hidden rounded-t-2xl",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[e.jsx("img",{src:a,alt:n,className:"w-full h-full object-cover"}),l.length>0&&o&&e.jsx("div",{className:"absolute inset-0 transition-opacity duration-300",style:{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%)"}}),l.length>0&&e.jsx("div",{className:h.clsx("absolute inset-0 flex items-center justify-center cursor-pointer gap-6 transition-opacity duration-300",o?"opacity-100":"opacity-0"),children:l.map((u,d)=>e.jsx(R,{variant:"neutral",hierarchy:"tertiary",icons:"only",leadingIcon:u.icon,size:"md",onClick:u.onClick,"aria-label":u.ariaLabel,className:"z-10 cursor-pointer"},d))})]}),e.jsxs("div",{className:"flex flex-col py-6 px-8 gap-3 bg-white rounded-b-2xl flex-1",children:[e.jsx("span",{className:"font-semibold text-high-em text-md line-clamp-1",children:s}),e.jsx("span",{className:"text-low-em text-sm font-normal line-clamp-3",children:r}),i.length>0&&e.jsx("div",{className:"flex flex-row gap-8",children:i.map((u,d)=>e.jsx(oe,{gap:4,iconSize:"sm",labelSize:"sm",icon:u.icon,label:u.label},d))})]})]})},ql=({className:t,title:s,subtitle:r,icon:a,iconType:n="default",iconVariant:l="secondary",iconSize:i="sm",headerActions:x,children:o,footerText:c,footerActions:u,footerVariant:d="default",classNameHeader:m,classNameBody:p,classNameFooter:b,...w})=>{const g=s||r||x||a,f=c||u,C={default:"border-surface-3 ",danger:"bg-danger-accent-1 border-danger-accent-3",warning:"bg-warning-accent-1 border-warning-accent-3",success:"bg-success-accent-1 border-success-accent-3"};return e.jsxs("div",{className:h.clsx("flex flex-col bg-white border rounded-8 w-full",t,C[d]),...w,children:[g&&e.jsxs("div",{className:V.twMerge(h.clsx("flex flex-row gap-8 p-8 justify-between items-center",o&&"pb-0"),m),children:[e.jsxs("div",{className:"flex flex-row gap-8 items-center flex-1",children:[a&&e.jsx(qe,{type:n,variant:l,size:i,children:a}),(s||r)&&e.jsxs("div",{className:"flex flex-col gap-2",children:[s&&e.jsx("h3",{className:"text-high-em font-semibold text-md",children:s}),r&&e.jsx("span",{className:"text-med-em text-sm font-normal",children:r})]})]}),x&&e.jsx("div",{className:"flex items-center",children:x})]}),o&&e.jsx("div",{className:V.twMerge(h.clsx("p-8",g),p),children:o}),f&&e.jsxs("div",{className:V.twMerge(h.clsx("flex flex-row gap-10 p-8 items-center rounded-b-8",c&&u?"justify-between":u?"justify-end":"justify-start",(g||o)&&"border-t",C[d]),b),children:[c&&e.jsx("div",{className:"text-sm text-low-em",children:c}),u&&e.jsx("div",{children:u})]})]})},Ql=({title:t,columns:s,rows:r,onChange:a,className:n,...l})=>{const i=`1fr repeat(${s.length}, auto)`,x=(o,c,u)=>e.jsx(fe,{size:"small",checked:o.checked[u]??!1,disabled:o.disabled?.[u]??!1,onChange:d=>a(c,u,d.target.checked)});return e.jsxs("div",{className:V.twMerge("bg-white border border-surface-3 rounded-8 w-full overflow-hidden px-6",n),...l,children:[e.jsxs("div",{className:"hidden sm:grid gap-x-6",style:{gridTemplateColumns:i},children:[e.jsx("div",{className:"flex items-center py-6",children:t&&e.jsx("h3",{className:"text-base text-high-em font-normal",children:t})}),s.map(o=>e.jsx("div",{className:"flex items-center justify-center py-6 text-base text-med-em",children:o},o)),e.jsx("div",{className:"col-span-full",children:e.jsx(K,{})}),r.map((o,c)=>e.jsxs(k.default.Fragment,{children:[e.jsx("div",{className:"flex items-center py-5",children:e.jsx("span",{className:"text-sm text-high-em",children:o.label})}),s.map((u,d)=>e.jsx("div",{className:"flex items-center justify-center py-5",children:x(o,c,d)},d)),c<r.length-1&&e.jsx("div",{className:"col-span-full",children:e.jsx(K,{})})]},c))]}),e.jsxs("div",{className:"flex flex-col sm:hidden",children:[t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"py-6",children:e.jsx("h3",{className:"text-base text-high-em font-normal",children:t})}),e.jsx(K,{})]}),r.map((o,c)=>e.jsxs(k.default.Fragment,{children:[e.jsxs("div",{className:"flex flex-col gap-4 py-5",children:[e.jsx("span",{className:"text-sm text-high-em",children:o.label}),e.jsx("div",{className:"flex flex-col gap-3",children:s.map((u,d)=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-med-em",children:u}),x(o,c,d)]},d))})]}),c<r.length-1&&e.jsx(K,{})]},c))]})]})},Zt=({size:t=20,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:t,height:t,className:s,...r,children:[e.jsx("path",{fill:"currentColor",d:"M4 8H12",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{fill:"currentColor",d:"M8 12V4",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),Fr=({size:t=20,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",fill:"none",width:t,height:t,className:s,...r,children:[e.jsx("path",{d:"M4.5 11H7.5C10 11 11 10 11 7.5V4.5C11 2 10 1 7.5 1H4.5C2 1 1 2 1 4.5V7.5C1 10 2 11 4.5 11Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M6 1V11",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),Or=({className:t,onAction:s,children:r,...a})=>{const[n,l]=j.useState("maximize"),i=c=>{l(c),s?.(c)},x=[{value:"maximize",icon:e.jsx(ht,{size:12})},{value:"grid",icon:e.jsx(Fr,{size:12})},{value:"add",icon:e.jsx(Zt,{size:12})}],o=[{value:"copy",icon:e.jsx($e,{size:12})},{value:"trash",icon:e.jsx(Fe,{size:12})}];return e.jsxs("div",{className:h.clsx("relative flex flex-col border border-surface-3 w-full",t),...a,children:[e.jsxs("div",{className:"bg-surface-2 flex justify-between",children:[e.jsx(he,{options:x,value:n,onChange:i,size:"xs",variant:"secondary"}),e.jsx(he,{options:o,value:n,onChange:i,size:"xs",variant:"secondary"})]}),e.jsxs("div",{className:"flex flex-col p-4 gap-4",children:[e.jsx("div",{className:"flex flex-col gap-4",children:r}),e.jsx("div",{className:"flex justify-center",children:e.jsx(R,{size:"sm",variant:"neutral",hierarchy:"secondary",icons:"only",leadingIcon:e.jsx(Zt,{}),onClick:()=>s?.("addWidget")})})]})]})},Kl=({className:t,data:s,onAction:r,onWidgetReorder:a,onSectionReorder:n,onDataChange:l,...i})=>{const[x,o]=j.useState("add"),[c,u]=j.useState(s||{sections:[]}),[d,m]=j.useState(!1);j.useEffect(()=>{s&&u(s)},[s]);const p=v=>{o(v),v==="add"&&m(!d),r?.(v)},b=[{value:"grid",icon:e.jsx($,{size:12,children:e.jsx(Fr,{})})},{value:"add",icon:e.jsx($,{size:12,children:e.jsx(z.Add,{})})}],w=[{value:"copy",icon:e.jsx($,{size:12,children:e.jsx($e,{})})},{value:"trash",icon:e.jsx($,{size:12,children:e.jsx(Fe,{})})}],g=v=>{const y=N(v),M=Array.from({length:y}).map((D,H)=>({id:`${Date.now()}-col-${H}`,widgets:[]})),I={id:Date.now().toString(),layout:v,position:c.sections.length,columns:M},T={sections:[...c.sections,I]};u(T),l?.(T),m(!1)},f=v=>{switch(v){case"1":return"grid-cols-1";case"2":return"grid-cols-2";case"3":return"grid-cols-3";case"2-1":return"grid-cols-3";case"1-2":return"grid-cols-3";case"1-1":return"grid-cols-2";default:return"grid-cols-1"}},C=(v,y)=>v==="2-1"?y===0?"col-span-2":"col-span-1":v==="1-2"?y===0?"col-span-1":"col-span-2":"col-span-1",N=v=>v==="1"?1:v==="2"||v==="2-1"||v==="1-2"||v==="1-1"?2:v==="3"?3:1;return e.jsxs("div",{className:h.clsx("flex flex-col border border-surface-3 w-full",t),...i,children:[e.jsxs("div",{className:"bg-surface-bg flex justify-between",children:[e.jsx(he,{options:b,value:x,onChange:p,size:"xs",variant:"secondary"}),e.jsx(he,{options:w,value:x,onChange:p,size:"xs",variant:"secondary"})]}),e.jsxs("div",{className:"flex flex-col p-8",children:[c.sections.sort((v,y)=>v.position-y.position).map(v=>e.jsx("div",{className:h.clsx("grid",f(v.layout)),children:v.columns.map((y,M)=>e.jsx("div",{className:h.clsx(C(v.layout,M)),children:e.jsx(Or,{className:"h-full",onAction:v.onAction,children:y.widgets.sort((I,T)=>I.position-T.position).map(I=>e.jsx($r,{title:I.title,description:I.description,icon:I.icon||e.jsx($,{}),onMaximize:I.onMaximize,onEdit:I.onEdit,onCopy:I.onCopy,onTrash:I.onTrash},I.id))})},y.id))},v.id)),d&&e.jsx(Le,{size:"sm",className:"max-w-18",floating:!0,items:[{id:"1",title:"1 Column",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"2",title:"2 Columns",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"3",title:"3 Columns",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"1-1",title:"1-1 Layout",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"2-1",title:"2-1 Layout",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"1-2",title:"1-2 Layout",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1}],onSelect:v=>g(v)})]})]})},Yl={1:"w-[400px] h-[400px]","2h":"w-[825px] h-[400px]","2w":"w-[400px] h-[825px]",4:"w-[825px] h-[825px]"},je=({size:t="1",title:s,actions:r,children:a,className:n,classNameHeader:l,classNameBody:i})=>{const x=s||r;return e.jsxs("div",{className:V.twMerge(h.clsx("flex flex-col bg-white border border-surface-3 rounded-6",Yl[t]),n),children:[x&&e.jsxs("div",{className:V.twMerge(h.clsx("flex items-center justify-between p-8 border-b border-surface-3"),l),children:[s&&e.jsx("h3",{className:"text-med-em font-semibold text-xl",children:s}),r&&e.jsx("div",{className:"flex items-center gap-4",children:r})]}),e.jsx("div",{className:V.twMerge(h.clsx("flex-1 p-8 overflow-auto"),i),children:a})]})},Jl=({mode:t,title:s,actions:r,onSubmit:a,onSettings:n,className:l})=>{const[i,x]=j.useState(""),[o,c]=j.useState(""),[u,d]=j.useState(""),[m,p]=j.useState(""),[b,w]=j.useState(!1),[g,f]=j.useState(!1),C=t==="signup",N=v=>{v.preventDefault();const y={email:o,password:u,...C&&{name:i,confirmPassword:m}};a?.(y)};return e.jsx(je,{size:"1",className:l,title:s??(C?"Regístrarse":"Iniciar sesión"),actions:r===null?void 0:r??e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:n}),children:e.jsxs("form",{onSubmit:N,className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[!C&&e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("h2",{className:"text-high-em font-semibold text-2xl self-center",children:"¡Automatiza!"}),e.jsx("span",{className:"text-high-em text-md self-center",children:"Vende y gestiona con inteligencia"})]}),C&&e.jsx(Y,{type:"text",name:"name",autoComplete:"name",value:i,onChange:v=>x(v.target.value),placeholder:"Nombre",required:!0}),e.jsx(Y,{type:"email",name:"email",autoComplete:"email",value:o,onChange:v=>c(v.target.value),placeholder:"Correo",required:!0}),e.jsx(Y,{type:b?"text":"password",name:"password",autoComplete:C?"new-password":"current-password",value:u,onChange:v=>d(v.target.value),placeholder:C?"Nueva contraseña":"Contraseña",trailingIcon:e.jsx($,{children:b?e.jsx(z.Eye,{onClick:()=>w(!1),className:"cursor-pointer"}):e.jsx(z.EyeSlash,{onClick:()=>w(!0),className:"cursor-pointer"})}),required:!0}),C&&e.jsx(Y,{type:g?"text":"password",name:"confirmPassword",autoComplete:"new-password",value:m,onChange:v=>p(v.target.value),placeholder:"Confirmar contraseña",trailingIcon:e.jsx($,{children:g?e.jsx(z.Eye,{onClick:()=>f(!1),className:"cursor-pointer"}):e.jsx(z.EyeSlash,{onClick:()=>f(!0),className:"cursor-pointer"})}),required:!0}),e.jsx(R,{type:"submit",variant:"secondary",hierarchy:"primary",size:"lg",className:"w-full",children:"Continuar"})]})})},Xl=({title:t="Recuperación",actions:s,step:r,type:a="password",onSubmit:n,onBackToLogin:l,onSettings:i,className:x})=>{const[o,c]=j.useState(""),u=g=>{g.preventDefault(),n?.(o)},d=r==="email",p=d&&a==="account"?"Recuperar cuenta":"Recuperar contraseña",b=d?"Correo":"Código de verificación",w=d?"Un código será enviado a tu correo":"Ingresa el código enviado a tu correo";return e.jsx(je,{size:"1",className:x,title:t,actions:s===null?void 0:s??e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:i}),children:e.jsxs("form",{onSubmit:u,className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[e.jsx("h2",{className:"text-high-em font-semibold text-2xl self-center",children:p}),e.jsx(Y,{type:d?"email":"text",value:o,onChange:g=>c(g.target.value),placeholder:b,hint:w,required:!0}),e.jsx(R,{type:"submit",variant:"secondary",hierarchy:"primary",size:"lg",className:"w-full",children:"Continuar"}),e.jsxs("div",{className:"text-center text-sm gap-4",children:[e.jsx("span",{className:"text-med-em text-sm font-semibold",children:"¿Todo bien? "}),e.jsx(me,{onClick:l,size:"sm",variant:"info",className:"cursor-pointer font-semibold",children:"Iniciar sesión"})]})]})})},ei=({title:t="Recuperación",actions:s,onSubmit:r,onBackToLogin:a,onSettings:n,className:l})=>{const[i,x]=j.useState(""),[o,c]=j.useState(""),[u,d]=j.useState(!1),[m,p]=j.useState(!1),b=w=>{w.preventDefault(),r?.(i,o)};return e.jsx(je,{size:"1",className:l,title:t,actions:s===null?void 0:s??e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:n}),children:e.jsxs("form",{onSubmit:b,className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[e.jsx("h2",{className:"text-high-em font-semibold text-2xl self-center",children:"Cambiar contraseña"}),e.jsx(Y,{type:u?"text":"password",value:i,onChange:w=>x(w.target.value),placeholder:"Nueva contraseña",trailingIcon:e.jsx($,{children:u?e.jsx(z.Eye,{onClick:()=>d(!1),className:"cursor-pointer"}):e.jsx(z.EyeSlash,{onClick:()=>d(!0),className:"cursor-pointer"})}),required:!0}),e.jsx(Y,{type:m?"text":"password",value:o,onChange:w=>c(w.target.value),placeholder:"Confirmar contraseña",trailingIcon:e.jsx($,{children:m?e.jsx(z.Eye,{onClick:()=>p(!1),className:"cursor-pointer"}):e.jsx(z.EyeSlash,{onClick:()=>p(!0),className:"cursor-pointer"})}),required:!0}),e.jsx(R,{type:"submit",variant:"secondary",hierarchy:"primary",size:"lg",className:"w-full",children:"Continuar"}),e.jsxs("div",{className:"text-center text-sm gap-4",children:[e.jsx("span",{className:"text-med-em text-sm font-semibold",children:"¿Todo bien? "}),e.jsx(me,{onClick:a,size:"md",variant:"info",className:"cursor-pointer font-semibold",children:"Iniciar sesión"})]})]})})},ti=({title:t="Autenticación",actions:s,onRecover:r,onSettings:a,className:n})=>e.jsx(je,{size:"1",className:n,title:t,actions:s===null?void 0:s??e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:a}),children:e.jsxs("div",{className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[e.jsx("span",{className:"text-med-em text-md self-center font-semibold",children:"¿Olvidaste tu contraseña?"}),e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"lg",onClick:r,className:"w-full",children:"Recuperar"})]})}),si=({title:t="Autenticación",actions:s,onGoogleSignIn:r,onAppleSignIn:a,onAction:n,onSettings:l,actionPrompt:i="¿Ya tienes una cuenta?",actionLabel:x="Iniciar sesión",className:o})=>e.jsx(je,{size:"1",className:o,title:t,actions:s===null?void 0:s??e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:l}),children:e.jsxs("div",{className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"lg",icons:"leading",leadingIcon:e.jsx($,{children:e.jsx(z.Google,{})}),onClick:r,className:"w-full",children:"Continuar con Google"}),e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"lg",icons:"leading",leadingIcon:e.jsx($,{children:e.jsx(z.Apple,{})}),onClick:a,children:"Continuar con Apple"}),e.jsx(K,{}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("span",{className:"text-med-em text-md font-semibold text-center",children:i}),e.jsx(R,{variant:"secondary",hierarchy:"primary",size:"lg",onClick:n,className:"w-full",children:x})]})]})}),ri=({length:t=6,onComplete:s})=>{const[r,a]=j.useState(Array(t).fill("")),n=j.useRef([]),l=(o,c)=>{if(!/^\d*$/.test(c))return;const u=[...r];u[o]=c.slice(-1),a(u),c&&o<t-1&&n.current[o+1]?.focus();const d=u.join("");d.length===t&&!u.includes("")&&s?.(d)},i=(o,c)=>{c.key==="Backspace"&&!r[o]&&o>0&&n.current[o-1]?.focus()},x=o=>{o.preventDefault();const c=o.clipboardData.getData("text").replace(/\D/g,"").slice(0,t),u=[...r];c.split("").forEach((m,p)=>{u[p]=m}),a(u);const d=u.findIndex(m=>!m);n.current[d===-1?t-1:d]?.focus(),c.length===t&&s?.(c)};return e.jsx("div",{className:"flex gap-3 justify-center",children:r.map((o,c)=>e.jsx("input",{ref:u=>{n.current[c]=u},type:"text",inputMode:"numeric",maxLength:1,value:o,onChange:u=>l(c,u.target.value),onKeyDown:u=>i(c,u),onPaste:c===0?x:void 0,className:"w-14 h-14 text-center text-xl font-semibold border border-surface-3 rounded-lg focus:outline-none focus:border-info-main focus:ring-1 focus:ring-info-main bg-white text-high-em"},c))})},ni=({title:t="Confirmar Email",heading:s="Verificar Correo",description:r="Ingresa el código de 6 dígitos enviado a tu correo",length:a=6,actions:n,onComplete:l,onResend:i,onBackToLogin:x,onSettings:o,className:c})=>e.jsxs(je,{size:"1",className:c,classNameBody:"flex flex-col gap-8 h-full mx-auto justify-center max-w-90",title:t,actions:n===null?void 0:n??e.jsx(R,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:o}),children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("h2",{className:"text-high-em font-semibold text-2xl self-center",children:s}),e.jsx("span",{className:"text-high-em text-md self-center text-center",children:r})]}),e.jsx(ri,{length:a,onComplete:l}),e.jsx(R,{type:"button",variant:"secondary",hierarchy:"primary",size:"lg",className:"w-full",onClick:i,children:"Reenviar código"}),e.jsxs("div",{className:"text-center",children:[e.jsx("span",{className:"text-med-em text-sm font-semibold",children:"¿Todo bien? "}),e.jsx(me,{onClick:x,size:"md",variant:"info",className:"cursor-pointer font-semibold",children:"Iniciar sesión"})]})]}),Tt=({title:t="Module",onSettingsClick:s,className:r,showSettings:a=!0})=>e.jsx("div",{className:h.clsx("drag-handle px-6 py-4 border-b border-surface-3 bg-surface-1 cursor-move rounded-t-xl",r),children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex gap-5 items-center",children:[e.jsx(z.Grid5,{size:24,color:"var(--high-em)"}),e.jsx("h2",{className:"text-[16px] font-semibold text-med-em flex-1 text-center",children:t})]}),a&&e.jsx("div",{className:"flex items-center gap-3",children:e.jsx("button",{onClick:s,className:"p-1 hover:bg-surface-2 rounded transition-colors","aria-label":"Configure module",type:"button",children:e.jsx(z.Setting,{size:24,color:"var(--high-em)"})})})]})}),Zr=({title:t="Module",onSettingsClick:s,showSettings:r=!0,children:a,className:n,minWidth:l=300,maxWidth:i=300,emptyState:x})=>{const o=k.default.Children.count(a)>0;return e.jsxs("div",{className:h.clsx("bg-white rounded-xl border border-surface-3 overflow-hidden",n),style:{minWidth:`${l}px`,maxWidth:`${i}px`},children:[e.jsx(Tt,{title:t,onSettingsClick:s,showSettings:r}),e.jsx("div",{className:"overflow-hidden",style:{minHeight:"200px"},children:o?a:x})]})};Tt.displayName="ModuleCardHeader";Zr.displayName="ModuleCard";const Br=k.default.forwardRef(({type:t,label:s="New Field",description:r="Description",isSelected:a=!1,isLast:n=!1,onClick:l,onDelete:i,showActions:x=!0,className:o,dragHandleProps:c,innerRef:u,style:d},m)=>{const[p,b]=k.default.useState(!1),w=p&&x,g=u||m;return e.jsxs("div",{ref:g,style:d,className:h.clsx("relative",o),children:[e.jsx("div",{onClick:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),className:h.clsx("w-full text-left m-0 cursor-pointer overflow-hidden",a?"bg-surface-3":"hover:bg-surface-1"),children:e.jsx("div",{className:"px-6 py-2",children:e.jsxs("div",{className:"flex justify-between items-center overflow-hidden",children:[e.jsxs("div",{className:"flex justify-start items-center",children:[e.jsx("div",{className:"flex items-center overflow-hidden transition-all duration-200 ease-out",style:{width:w?"28px":"0px",opacity:w?1:0},children:e.jsxs("div",{onClick:f=>f.stopPropagation(),className:"flex flex-col shrink-0",children:[e.jsx("div",{...c,className:"cursor-grab active:cursor-grabbing touch-none p-1 rounded-md hover:bg-surface-2 transition-colors","aria-label":"Drag to reorder",children:e.jsx(z.HambergerMenu,{size:12,color:"var(--high-em)"})}),i&&e.jsx("button",{type:"button",onClick:f=>{f.stopPropagation(),i()},className:"p-1 rounded-md hover:bg-surface-2 transition-colors","aria-label":"Delete field",children:e.jsx(z.Trash,{size:12,color:"var(--high-em)",variant:"Linear"})})]})}),e.jsxs("div",{className:"transition-all duration-200 ease-out",children:[e.jsx("div",{className:"text-[16px] font-semibold text-med-em",children:t}),e.jsx("div",{className:"text-[10px] font-medium tracking-wide mb-1 text-low-em",children:r})]})]}),e.jsx("div",{className:"text-sm font-medium text-low-em truncate",children:s})]})})}),!n&&e.jsx("div",{className:"border-b border-surface-3"})]})});Br.displayName="ModuleFieldItem";const _r=({title:t="Módulos",items:s=[],className:r,onExportClick:a,minWidth:n=250,maxWidth:l=300,opacity:i=.7})=>e.jsxs("div",{className:h.clsx("bg-white rounded-xl border border-surface-3 overflow-hidden",r),style:{minWidth:`${n}px`,maxWidth:`${l}px`,opacity:i},children:[e.jsx("div",{className:"px-6 py-4 border-b border-surface-3 bg-surface-2 rounded-t-xl",children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex gap-5 items-center",children:[e.jsx(z.Grid5,{size:24,color:"var(--low-em)"}),e.jsx("h2",{className:"text-xl font-semibold text-low-em flex-1 text-center",children:t})]}),a&&e.jsx("button",{type:"button",onClick:a,className:"hover:bg-surface-3 rounded p-1 transition-colors","aria-label":"Export data",children:e.jsx(z.ExportSquare,{size:24,color:"var(--low-em)"})})]})}),e.jsxs("div",{className:"max-h-[600px] overflow-y-auto overflow-x-hidden",children:[s.map((x,o)=>{const c=o===s.length-1;return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"w-full text-left transition-all duration-200 m-0 cursor-not-allowed",children:e.jsx("div",{className:"my-6 mx-8",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex justify-start gap-5 items-center",children:[e.jsx(z.HambergerMenu,{size:20,color:"var(--low-em)"}),e.jsx(z.Component,{size:20,color:"var(--low-em)"}),e.jsx("div",{className:"text-xs font-semibold tracking-wide mb-1 text-low-em",children:x.type})]}),e.jsx("div",{className:"text-sm font-medium truncate text-low-em",children:x.label})]})})}),!c&&e.jsx("div",{className:"border-b border-surface-3"})]},x.id)}),s.length===0&&e.jsx("div",{className:"py-12 px-8 flex items-center justify-center",children:e.jsx("p",{className:"text-sm text-low-em text-center",children:"No related data"})})]})]});_r.displayName="RelatedDataCard";const ai=({widgetCount:t,visibleCount:s,icon:r,tooltipContent:a})=>e.jsx("div",{className:"border-b border-gray-200",children:e.jsxs("div",{className:"p-8 flex items-center justify-between",children:[e.jsxs("span",{className:" font-semibold text-sm text-dark-100",style:{fontFamily:"var(--font-space-grotesk)"},children:["Widgets (",t,")"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:h.clsx("text-sm font-semibold",s===0?"text-low-em":"text-success-main"),children:[s," visible"]}),r&&a&&e.jsx(jt,{content:a,side:"bottom",children:e.jsx("div",{children:r})}),r&&!a&&r]})]})}),li=({value:t,onChange:s,placeholder:r})=>e.jsx("div",{className:"p-8 flex flex-col gap-4 ",children:e.jsx(Y,{type:"search",placeholder:r||"Search",value:t,onChange:s,trailingIcon:e.jsx(z.SearchNormal1,{size:16,color:"currentColor"})})}),ii=({items:t,searchPlaceholder:s="Search",showSearch:r=!0,headerIcon:a,headerTooltip:n,onItemClick:l,className:i,itemClassName:x,backgroundColor:o="bg-white",borderStyle:c="border border-surface-3"})=>{const[u,d]=j.useState(""),m=t.filter(g=>g.title.toLowerCase().includes(u.toLowerCase())||g.description?.toLowerCase().includes(u.toLowerCase())),p=t.length,b=t.filter(g=>g.isVisible).length,w=g=>{l?.(g)};return e.jsx(ee.Provider,{delayDuration:200,children:e.jsxs("div",{className:h.clsx("h-full w-full flex flex-col",o,c,i),children:[e.jsx(ai,{widgetCount:p,visibleCount:b,icon:a,tooltipContent:n}),r&&e.jsx(li,{value:u,onChange:g=>d(g.target.value),placeholder:s}),e.jsx(K,{}),e.jsx("div",{className:"flex-1 overflow-y-auto p-8 flex flex-col gap-8",children:m.length>0?m.map(g=>e.jsx(He,{title:g.title,description:g.description,leadingIcon:e.jsx($,{className:`${g.isDisabled?"text-disabled":""}`,children:g.icon}),showCheckbox:!1,showLeadingImage:!1,showDescription:!!g.description,showTag:!1,size:"sm",showTrailingIcon:!1,showTrailingText:g.position!==void 0,trailingText:g.position!==void 0?String(g.position):void 0,disabled:g.isDisabled,customBackgroundColor:h.clsx(g.isSelected&&"bg-surface-2"),className:h.clsx("py-6 rounded-xl",g.isSelected&&"border border-surface-3",g.isVisible&&"border border-surface-3",x),onClick:()=>w(g)},g.id)):e.jsxs("div",{className:"flex flex-col items-center justify-center p-10 text-center gap-10",children:[e.jsx($,{size:"lg",children:e.jsx(z.Box2,{})}),e.jsx("p",{className:"text-sm font-medium text-low-em",children:t.length===0?"You don't have any Widgets created yet":"No widgets found"})]})})]})})},oi={paid:"success",pending:"warning",overdue:"danger",cancelled:"surface"},Bt=({label:t,value:s})=>e.jsxs("div",{className:"flex flex-row",children:[e.jsx("span",{className:"text-low-em text-base w-[110px] shrink-0",children:t}),e.jsx("span",{className:"text-high-em text-base font-bold",children:s})]}),ci=({title:t,status:s,fields:r,onMenuClick:a,className:n})=>{const l=s.charAt(0).toUpperCase()+s.slice(1),i=Math.ceil(r.length/2),x=r.slice(0,i),o=r.slice(i);return e.jsxs("div",{className:h.clsx("bg-white border border-surface-3 rounded-2xl p-10 flex flex-col gap-8",n),children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-8",children:[e.jsx("span",{className:"text-high-em font-semibold text-xl",children:t}),e.jsx(ue,{theme:oi[s],variant:"simple",size:"lg",children:l})]}),e.jsx(R,{variant:"neutral",hierarchy:"secondary",size:"md",icons:"only",leadingIcon:e.jsx(z.More,{variant:"Linear"}),onClick:a})]}),e.jsx("span",{className:"text-med-em text-sm -mt-2",children:"Summary"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[e.jsx("div",{className:"flex flex-col gap-8",children:x.map(c=>e.jsx(Bt,{...c},c.label))}),e.jsx("div",{className:"flex flex-col gap-8",children:o.map(c=>e.jsx(Bt,{...c},c.label))})]})]})};exports.AICommentaryIcon=us;exports.AIMessage=bs;exports.AddIcon=Nn;exports.AlertDialog=zs;exports.AlertDialogAction=Hs;exports.AlertDialogCancel=As;exports.AlertDialogContent=Is;exports.AlertDialogDescription=Rs;exports.AlertDialogFooter=Ds;exports.AlertDialogHeader=Ps;exports.AlertDialogTitle=Ts;exports.AlertDialogTrigger=Ms;exports.ArrowNarrowDownIcon=hs;exports.AttachmentMessage=Bs;exports.AuthActionWidget=ti;exports.AuthEmailVerificationWidget=ni;exports.AuthFormWidget=Jl;exports.AuthSocialOptionsWidget=si;exports.Avatar=Ze;exports.AvatarGroup=Es;exports.BREAKPOINTS=Se;exports.Badge=ue;exports.BookOutlined=kn;exports.Box2Icon=jn;exports.BoxIcon=vn;exports.Breadcrumb=On;exports.BreadcrumbEllipsis=qn;exports.BreadcrumbItem=Bn;exports.BreadcrumbLink=_n;exports.BreadcrumbList=Zn;exports.BreadcrumbPage=Gn;exports.BreadcrumbSeparator=Un;exports.Button=R;exports.ButtonDropdown=Qn;exports.ButtonGroup=he;exports.CONTAINER=Jt;exports.CONTAINER_PADDING=Xt;exports.CSS_VARIABLES=rs;exports.CalendarIcon=Hn;exports.CalendarIcon2=ks;exports.Card=Xn;exports.CardAction=Pt;exports.ChatCollapsibleCheck=Vs;exports.ChatCollapsibleContainer=Be;exports.ChatCollapsibleDialog=Ws;exports.ChatCommandList=oa;exports.ChatCommandListItem=tt;exports.ChatHeader=$s;exports.ChatHistorial=Os;exports.ChatHistorialItemComponent=Fs;exports.ChatIcon=xs;exports.ChatInputText=Zs;exports.ChatMessage=st;exports.ChatMessageOptions=rt;exports.ChatPanel=Gs;exports.ChatTypingIndicator=_s;exports.Checkbox=fe;exports.ChevronDownIcon=xt;exports.ChevronUpIcon=ut;exports.Chip=wa;exports.CircleIcon=Cn;exports.ColorPalette=Na;exports.ColumnHandler=ka;exports.ComboBox=Ia;exports.Container=Ve;exports.ContextualMenu=Pa;exports.CopyIcon=$e;exports.DataArrowsOutlined=Mn;exports.DateRangePicker=Zl;exports.DeleteConfirmationModal=ir;exports.Divider=K;exports.DragAndDropListItem=ft;exports.Drawer=Xa;exports.DropMenu=Le;exports.DropZone=Us;exports.Dropdown=Ae;exports.DropdownMenu=Da;exports.Edit2Icon=Ss;exports.EmptyState=pt;exports.ErrorBoundary=Ha;exports.ErrorState=qs;exports.EyeIcon=js;exports.EyeOffIcon=vs;exports.FilterFunnel02Icon=ms;exports.FlashIcon=Ns;exports.FloatingBar=Aa;exports.Footer=Ge;exports.FormFieldGroup=Or;exports.GridDraggableItem=Qs;exports.Header=_e;exports.HeaderTabs=Ir;exports.Icon=$;exports.ImageUploader=Za;exports.InfoIcon=ot;exports.InfoLabel=_a;exports.InputField=Y;exports.InputSearch=rr;exports.InvoiceCard=ci;exports.Kbd=ke;exports.LAYOUT=rn;exports.LAYOUT_SPACING=ss;exports.LabelIcon=oe;exports.LabelWithIcon=Ua;exports.LabelWithTooltip=nr;exports.LayerIcon=ys;exports.LeftArrowIcon=ps;exports.Link=me;exports.ListItem=He;exports.MaximizeIcon=ht;exports.MessageProgrammingOutlined=Sn;exports.Modal=wt;exports.ModalBody=Lt;exports.ModalClose=zt;exports.ModalContent=yt;exports.ModalDescription=St;exports.ModalFooter=Ue;exports.ModalFooterActions=lr;exports.ModalHeader=Nt;exports.ModalTitle=kt;exports.ModalTrigger=Ct;exports.ModuleCard=Zr;exports.ModuleCardHeader=Tt;exports.ModuleFieldItem=Br;exports.MoreIcon=Cs;exports.NAVBAR=ts;exports.PANEL_DEFAULTS=q;exports.Panel=os;exports.PanelHeader=Wr;exports.PanelLayout=is;exports.PanelMain=cs;exports.PasswordResetWidget=ei;exports.PlanPricingCard=pr;exports.PlusCircleIcon=En;exports.ProductIcon=qe;exports.ProgrammingArrowsOutlined=zn;exports.Progress=mt;exports.ProgressBar=nt;exports.ProgressCircle=at;exports.ProgressTracker=tl;exports.ProjectActionCard=Ul;exports.ProjectCard=gr;exports.ProjectCardPlan=Bl;exports.QuestionCircle=ct;exports.Radio=rl;exports.RecoveryWidget=Xl;exports.RelatedDataCard=_r;exports.RightArrowIcon=dt;exports.SIDEBAR=es;exports.Section=We;exports.SectionFeatures=Yt;exports.SectionHero=Kt;exports.SettingsCard=ql;exports.ShareIcon=Pn;exports.SkalarLogo=Re;exports.SkalarLogoNoText=De;exports.SlashIcon=$n;exports.SliderPointerDown=Dn;exports.SliderPointerUp=Rn;exports.SliderThumbIcon=Tn;exports.SplitPanelLayout=ds;exports.StraightInfoIcon=ge;exports.SupportCard=Gl;exports.Switcher=br;exports.Table=ll;exports.TableBody=cl;exports.TableCard=Ql;exports.TableCell=lt;exports.TableColumnFilter=fl;exports.TableColumnHeader=wr;exports.TableColumnVisibility=pl;exports.TableEmptyState=Cr;exports.TableHeader=ol;exports.TableHeading=ml;exports.TablePagination=hl;exports.TableProvider=vr;exports.TableRoot=il;exports.TableRow=Ee;exports.Tabs=Mr;exports.Tag=ye;exports.TextArea=Pr;exports.ThemeToggle=Il;exports.ToastComponent=Ar;exports.ToastProvider=Dl;exports.Toggle=Vr;exports.Tooltip=jt;exports.TrashIcon=Fe;exports.TypesPanel=It;exports.TypesPanelBodyGrid=Al;exports.TypesPanelBodyList=El;exports.TypesPanelHeader=$l;exports.TypesPanelHeaderSearch=Fl;exports.UnionIcon=ws;exports.UploadImageIcon=fs;exports.UserMenu=Ol;exports.VideoPlayOutlined=Ln;exports.VisualComposer=Kl;exports.WidgetBuilderItemHoverAction=$r;exports.WidgetContainer=je;exports.WidgetSidebar=ii;exports.WorkspaceSettings=_l;exports.XMark=ce;exports.XMarkAlert=gs;exports.addSelectionColumn=kl;exports.calculateDraggedPanelPercentage=as;exports.calculateHeaderWidths=Wa;exports.calculatePanelPercentage=Pe;exports.createMediaQuery=ln;exports.findPanelById=ae;exports.getCentralWidth=un;exports.getCurrentBreakpoint=cn;exports.getGapClass=le;exports.getTotalPanelsWidth=ls;exports.getTotalSideWidth=Te;exports.initializePanelsState=et;exports.matchesBreakpoint=on;exports.parseColumnConfig=Nr;exports.parseTableConfig=Nl;exports.productsApiResponse=Ll;exports.productsTableConfig=Lr;exports.productsTableData=zr;exports.pxToCss=an;exports.pxToRem=nn;exports.usePanelState=fn;exports.useTableContext=ie;exports.useToast=Rl;exports.usersApiResponse=Sl;exports.usersTableConfig=kr;exports.usersTableData=Sr;
|
|
23
|
+
${a.stack}`]})]}),n&&e.jsx(T,{onClick:n,variant:"secondary",hierarchy:"secondary",size:"sm",children:l})]})})})});Us.displayName="ErrorState";const ft=k.default.memo(({icon:t=e.jsx($,{size:56,children:e.jsx(z.Box2,{})}),description:s,actionLabel:r,onAction:a,flat:n=!1,className:l,iconClassName:i,descriptionClassName:x})=>e.jsx("div",{className:h.clsx("flex flex-col items-center justify-center w-full",n?"bg-surface-1 p-10":"rounded-6 bg-surface-1 p-10 border border-surface-2",l),children:e.jsxs("div",{className:"flex flex-col items-center gap-10 text-center",children:[e.jsx("span",{className:h.clsx("text-low-em",i),children:t}),s&&e.jsx("p",{className:h.clsx("text-lg font-medium text-low-em",x),children:s}),r&&e.jsx(T,{variant:"secondary",hierarchy:"primary",size:"md",icons:"leading",leadingIcon:e.jsx(z.Add,{}),onClick:a,children:r})]})}));ft.displayName="EmptyState";const Ra=({groups:t,className:s,width:r,height:a})=>{const n=h.clsx("flex","items-center","justify-center","p-1 bg-brand-primary-main-special rounded-lg border border-brand-primary-accent-special gap-2"),[l,i]=j.useState(null),x=j.useRef(null);j.useEffect(()=>{const c=d=>{x.current&&!x.current.contains(d.target)&&i(null)};if(l)return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[l]);const o={width:r,height:a};return e.jsx("div",{style:o,className:h.clsx("flex items-center gap-4 w-fit",s),children:t.map((c,d)=>e.jsx("div",{className:n,children:c.map(u=>e.jsx("div",{className:"relative",children:u.type==="dropdown"?e.jsxs("div",{ref:x,className:"relative gap-4",children:[e.jsx(T,{variant:u.variant||"brand",hierarchy:u.hierarchy||"secondary",size:u.size||"sm",icons:u.leadingIcon&&u.trailingIcon?"both":u.leadingIcon?"leading":u.trailingIcon?"trailing":void 0,leadingIcon:u.leadingIcon,trailingIcon:l===u.id?e.jsx(xt,{}):e.jsx(dt,{}),onClick:()=>i(l===u.id?null:u.id),disabled:u.disabled,style:{outline:"none",boxShadow:"none"},className:h.clsx(u.className,l===u.id&&"bg-brand-primary-accent-special"),children:u.label}),l===u.id&&e.jsx(ze,{floating:!0,size:u.dropMenuSize||"sm",items:u.items.map(m=>({id:m.id,title:m.label,leadingIcon:m.icon,showLeadingIcon:!!m.icon,showDescription:u.showDescription??!1,showTrailingIcon:u.showTrailingIcon??!1,showTrailingText:u.showTrailingText??!1,showTag:u.showTag??!1,showCheckbox:u.showCheckbox??!1,disabled:m.disabled,showDividerAfter:m.showDividerAfter,onClick:()=>{m.onClick(),i(null)},...m.destructive&&{customTitleColor:u.destructiveColor||"text-danger-em"}})),className:h.clsx("bottom-full mb-4",u.dropMenuClassName)})]}):e.jsx(T,{variant:u.variant||"brand",hierarchy:u.hierarchy||"secondary",size:u.size||"sm",icons:u.label?u.leadingIcon&&u.trailingIcon?"both":u.leadingIcon?"leading":u.trailingIcon?"trailing":void 0:"only",leadingIcon:u.leadingIcon,trailingIcon:u.trailingIcon,onClick:u.onClick,disabled:u.disabled,style:{outline:"none",boxShadow:"none"},className:h.clsx(u.className),children:u.label})},u.id))},d))})},qs=({icon:t,text:s,onClick:r,className:a=""})=>{const n=()=>{r&&r()};return e.jsxs("div",{className:h.clsx("w-full h-[60px]","bg-surface-bg","border border-surface-3","rounded-lg","flex flex-col items-center justify-center","cursor-grab",r&&"hover:bg-surface-1 transition-colors",a),onClick:n,children:[t&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx($,{size:20,color:"var(--low-em)",children:t})}),s&&e.jsx("span",{className:"font-inter font-semibold text-[10px] text-low-em mt-1",children:s})]})},pt=t=>t?{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}[t]:"",gt=t=>t?{start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline",stretch:"items-stretch"}[t]:"",Da={sm:"h-13",md:"h-14",lg:"h-[60px]"},Qs=({gap:t=4,justify:s,align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex",re(t),pt(s),gt(r),a),...l,children:n}),Ks=({gap:t=4,justify:s="center",align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex h-full",re(t),pt(s),gt(r),a),...l,children:n}),Js=({gap:t=5,justify:s="end",align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex",re(t),pt(s),gt(r),a),...l,children:n}),Ha={always:"flex",desktop:"hidden lg:flex",none:"hidden"},_e=t=>{const{className:s,bordered:r=!0,size:a="lg",logoVariant:n="with-text",showLogo:l="always",children:i,logoSectionGap:x=6,leftWidth:o,centerWidth:c,rightWidth:d,centerFullHeight:u=!0,showCenterOnMobile:m=!1,...p}=t,b=k.default.Children.toArray(i).find(f=>k.default.isValidElement(f)&&f.type===Qs),w=k.default.Children.toArray(i).find(f=>k.default.isValidElement(f)&&f.type===Ks),g=k.default.Children.toArray(i).find(f=>k.default.isValidElement(f)&&f.type===Js);return e.jsx("header",{className:Q.default("relative w-full bg-white",r&&"border-b border-surface-4",s),...p,children:e.jsxs("div",{className:Q.default("flex items-center",o!==void 0||c!==void 0||d!==void 0?"lg:px-0":"justify-between lg:px-container-desktop","px-container-mobile md:px-container-tablet",Da[a]),children:[e.jsxs("div",{className:Q.default("flex items-center",o!==void 0?"lg:pl-8!":"shrink-0",re(x)),style:o!==void 0?{width:`${o}%`}:void 0,children:[l!=="none"&&e.jsx("div",{className:Q.default("items-center",Ha[l]),children:n==="with-text"?e.jsx(Re,{height:25,className:"text-black"}):e.jsx(De,{height:25,className:"text-black"})}),b]}),w&&e.jsx("div",{className:Q.default(m?"flex justify-center":"hidden lg:flex justify-center",u&&"h-full",c!==void 0?"":"flex-1"),style:c!==void 0?{width:`${c}%`}:void 0,children:w}),e.jsx("div",{className:Q.default("flex items-center",d!==void 0?"justify-end lg:pr-8!":"shrink-0 ml-auto"),style:d!==void 0?{width:`${d}%`}:void 0,children:g})]})})};_e.LeftContent=Qs;_e.Center=Ks;_e.Right=Js;function Aa(t,s=20){const r=100-2*s,a=t.left.filter(o=>o.open).reduce((o,c)=>o+c.width,0),n=t.right.filter(o=>o.open).reduce((o,c)=>o+c.width,0);if(a===0&&n===0)return{leftWidth:s,centerWidth:r,rightWidth:s};const l=a>0?a:s,i=n>0?n:s,x=100-l-i;return{leftWidth:l,centerWidth:x,rightWidth:i}}const Ys=t=>t?{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}[t]:"",Xs=t=>t?{start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline",stretch:"items-stretch"}[t]:"",Ea={sm:"h-13",md:"h-14",lg:"h-[60px]"},er=({gap:t=4,justify:s,align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex",re(t),Ys(s),Xs(r),a),...l,children:n}),tr=({gap:t=4,justify:s="end",align:r="center",className:a,children:n,...l})=>e.jsx("div",{className:Q.default("flex",re(t),Ys(s),Xs(r),a),...l,children:n}),Ge=t=>{const{className:s,bordered:r=!0,size:a="md",logoVariant:n="no-text",showLogo:l="always",children:i,logoSectionGap:x=6,leftWidth:o,rightWidth:c,...d}=t,u=k.default.Children.toArray(i).find(p=>k.default.isValidElement(p)&&p.type===er),m=k.default.Children.toArray(i).find(p=>k.default.isValidElement(p)&&p.type===tr);return e.jsxs("footer",{className:Q.default("relative w-full bg-white",r&&"border-t border-surface-4",s),...d,children:[e.jsxs("div",{className:"flex flex-col gap-8 px-container-mobile py-8 lg:hidden",children:[l!=="none"&&e.jsx("div",{className:"flex items-center",children:n==="with-text"?e.jsx(Re,{height:22,className:"text-black"}):e.jsx(De,{height:22,className:"text-black"})}),u&&e.jsx("div",{className:"flex items-center",children:u}),m&&e.jsx("div",{className:"flex items-center gap-4 px-0",children:m})]}),e.jsxs("div",{className:Q.default("hidden lg:flex items-center justify-between lg:px-container-desktop",Ea[a]),children:[e.jsxs("div",{className:Q.default("flex items-center shrink-0",re(x)),style:o!==void 0?{width:`${o}%`}:void 0,children:[l!=="none"&&e.jsx("div",{className:"flex items-center",children:n==="with-text"?e.jsx(Re,{height:22,className:"text-black"}):e.jsx(De,{height:22,className:"text-black"})}),u]}),e.jsx("div",{className:"flex items-center shrink-0 ml-auto",style:c!==void 0?{width:`${c}%`}:void 0,children:m})]})]})};Ge.Left=er;Ge.Right=tr;Ge.displayName="Footer";const Va={default:{container:"flex flex-col items-center justify-center",dropZone:"flex flex-col items-center justify-center space-y-2 transition-colors border-surface-3 border-[1px]",preview:"bg-surface-3 border-surface-4"}},Wa={sm:{container:"w-48 h-18 p-2 gap-2 rounded-lg",dropZone:"w-full h-18 rounded-md p-2",preview:"w-full h-18 rounded-md",iconSize:24},md:{container:"w-72 h-44 p-4 gap-3 rounded-xl",dropZone:"w-64 h-40 rounded-xl p-4",preview:"w-64 h-40 rounded-xl",iconSize:42},lg:{container:"w-96 h-52 p-4 gap-5 rounded-xl",dropZone:"w-full h-48 rounded-xl p-4",preview:"w-full h-48 rounded-xl",iconSize:48}},At={container:"opacity-50 cursor-not-allowed pointer-events-none",dropZone:"cursor-not-allowed"},$a=({onImageSelected:t,variant:s="default",size:r="md",className:a,acceptedFileTypes:n="image/*",maxFileSize:l,disabled:i=!1,initialPreviewUrl:x})=>{const o=j.useRef(null),c=j.useRef(0),[d,u]=j.useState(!1),[m,p]=j.useState(x||null),[b,w]=j.useState(!1),[g,f]=j.useState(null),C=Va[s],N=Wa[r],v=S=>{if(l&&S.size>l){const Z=(l/1048576).toFixed(1);f(`File size must be less than ${Z}MB`);return}if(!S.type.startsWith("image/")){f("Please select a valid image file");return}f(null),t(S),p(URL.createObjectURL(S))},y=S=>{S.target.files&&S.target.files[0]&&v(S.target.files[0])},M=S=>{S.preventDefault(),u(!1),S.dataTransfer.files&&S.dataTransfer.files[0]&&v(S.dataTransfer.files[0])},I=S=>{S.preventDefault(),i||u(!0)},R=S=>{S.preventDefault(),!i&&(c.current+=1,u(!0))},D=S=>{S.preventDefault(),c.current-=1,c.current<=0&&(u(!1),c.current=0)},A=S=>{S.stopPropagation(),o.current?.click()},P=()=>{i||w(!0)},F=()=>{w(!1)};return e.jsx("div",{className:h.clsx("flex flex-col",a),children:e.jsx("div",{className:h.clsx(C.container,N.container,i&&At.container),children:e.jsxs("div",{className:h.clsx(C.dropZone,N.dropZone,"cursor-pointer relative",i&&At.dropZone,d&&!m&&"bg-black/20"),onDrop:i?void 0:M,onDragOver:i?void 0:I,onDragEnter:i?void 0:R,onDragLeave:i?void 0:D,onClick:i?void 0:A,children:[m?e.jsxs("div",{className:h.clsx("absolute inset-0 overflow-hidden transition-all duration-200",N.preview),onMouseEnter:P,onMouseLeave:F,children:[e.jsx("img",{src:m,alt:"Preview",className:h.clsx("w-full h-full object-cover transition-all duration-200",b&&"brightness-90")}),b&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center transition-all duration-200",children:e.jsx(T,{onClick:A,variant:"neutral",size:"xs",disabled:i,children:"Change Image"})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:h.clsx("flex items-center justify-center rounded-lg overflow-hidden",m&&"border border-surface-4 bg-surface-2",`w-[${N.iconSize*2}px] h-[${N.iconSize*2}px]`),children:e.jsx(ms,{size:N.iconSize,className:h.clsx(i&&"text-disabled")})}),e.jsx("div",{className:h.clsx("text-center text-[11px] font-body font-medium leading-tight tracking-normal whitespace-normal break-words",i&&"text-disabled"),children:"Drag your image to start uploading"}),e.jsxs("div",{className:"my-2 w-full flex items-center justify-center",children:[e.jsx("span",{className:"border-t w-1/2 mx-2 border-low-em"}),e.jsx("span",{className:h.clsx("text-xs ml-2 mr-2",d?"text-med-em":"text-high-em",i&&"text-disabled"),children:"OR"}),e.jsx("span",{className:"border-t w-1/2 mx-2 border-low-em"})]})]}),!m&&e.jsx(T,{onClick:A,variant:"neutral",size:"xs",className:"mt-1",disabled:i,children:"Browse"}),e.jsx("input",{type:"file",accept:n,ref:o,className:"hidden",onChange:y,disabled:i})]})})})},Fa={default:{background:"bg-gray-200",iconColor:"text-[var(--dark-700)]",titleColor:"text-[var(--dark-700)]",descriptionColor:"text-[var(--dark-700)]"},danger:{background:"bg-[var(--danger-50)]",iconColor:"text-[var(--danger-600)]",titleColor:"text-[var(--danger-600)]",descriptionColor:"text-[var(--danger-600)]"},success:{background:"bg-[var(--success-50)]",iconColor:"text-[var(--success-600)]",titleColor:"text-[var(--success-600)]",descriptionColor:"text-[var(--success-600)]"}},Za=({variant:t="default",title:s,description:r,icon:a,className:n})=>{const l=Fa[t],x=(c=>{const d=c.match(/text-\[var\(--([^)]+)\)\]/);if(d)return`var(--${d[1]})`})(l.iconColor),o=()=>a&&k.default.isValidElement(a)?k.default.cloneElement(a,{color:x}):e.jsx(z.Warning2,{size:12,variant:"Outline",color:x});return e.jsxs("div",{className:h.clsx("flex flex-col gap-0.5 px-8 py-4 rounded-xl",l.background,n),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex-shrink-0",children:o()}),e.jsx("span",{className:h.clsx("text-[12px] font-semibold leading-tight",l.titleColor),children:s})]}),e.jsx("span",{className:h.clsx("text-[10px] font-medium leading-tight mt-2",l.descriptionColor),children:r})]})};function Oa(t,s){const[r,a]=j.useState(t);return j.useEffect(()=>{const n=setTimeout(()=>{a(t)},s);return()=>{clearTimeout(n)}},[t,s]),r}const sr=j.forwardRef(({onSearch:t,debounceMs:s=300,isLoading:r=!1,showClearButton:a=!0,errorMessage:n,suggestions:l=[],onSuggestionClick:i,placeholder:x="Search...",value:o,onChange:c,disabled:d=!1,id:u,name:m,autoComplete:p,maxLength:b,required:w,onBlur:g,onFocus:f,onInvalid:C,"aria-label":N="Search",className:v,size:y,...M},I)=>{const[R,D]=j.useState(""),[A,P]=j.useState(!1),[F,S]=j.useState(-1),Z=j.useRef(null),V=o!==void 0,H=V?o:R,L=Oa(H,s);j.useEffect(()=>{L&&t&&t(L)},[L,t]),j.useEffect(()=>{const E=B=>{Z.current&&!Z.current.contains(B.target)&&P(!1)};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)}},[]);const _=E=>{const B=E.target.value;V||D(B),c&&c(E),B&&l.length>0?(P(!0),S(-1)):P(!1)},ae=E=>{if(E.key==="Enter"){if(E.preventDefault(),A&&F>=0&&F<l.length){const B=l[F];te(B)}else t&&H&&t(H);P(!1)}else E.key==="ArrowDown"?(E.preventDefault(),A&&l.length>0&&S(B=>B<l.length-1?B+1:0)):E.key==="ArrowUp"?(E.preventDefault(),A&&l.length>0&&S(B=>B>0?B-1:l.length-1)):E.key==="Escape"&&(P(!1),S(-1))},G=E=>{H&&l.length>0&&P(!0),f&&f(E)},U=()=>{const E={target:{value:""}};V||D(""),c&&c(E),P(!1),S(-1)},te=E=>{const B={target:{value:E}};V||D(E),c&&c(B),i&&i(E),P(!1),S(-1)},ye=n?"danger":"default",Ne=r?e.jsx(z.ArrowRotateRight,{color:"currentColor",size:16,className:"animate-spin text-primary-500"}):H&&a&&e.jsx("button",{type:"button",onClick:U,className:"text-gray-500 hover:text-gray-700 focus:outline-none transition-colors","aria-label":"Clear search",children:e.jsx(z.CloseCircle,{color:"currentColor",size:16})}),ge=l.filter(E=>E.toLowerCase().includes(H.toLowerCase()));return e.jsxs("div",{className:"relative w-full",ref:Z,children:[e.jsx(J,{ref:I,className:h.clsx("w-full text-placeholder",v),value:H,onChange:_,onKeyDown:ae,onFocus:G,onBlur:g,onInvalid:C,variant:ye,hint:n,leadingIcon:e.jsx(z.SearchNormal1,{color:"currentColor",size:16}),trailingIcon:Ne,placeholder:x,disabled:d,id:u,name:m,autoComplete:p,maxLength:b,required:w,"aria-label":N,...M}),A&&ge.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox",children:ge.map((E,B)=>e.jsx("div",{className:h.clsx("px-3 py-2 cursor-pointer text-sm",B===F?"bg-primary-100 text-primary-900":"text-gray-700 hover:bg-gray-100"),onClick:()=>te(E),role:"option","aria-selected":B===F,children:E},B))})]})});sr.displayName="InputSearch";const Ba=({icon:t,children:s,isActive:r=!1,className:a,customFontSize:n,customIconSize:l,...i})=>{const x={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},o=n&&x[n]||void 0,c=n&&!x[n]?{fontSize:n}:void 0,d=l||20;return e.jsxs("button",{className:h.clsx("border border-surface-3 flex w-full items-center px-6 h-14 text-left text-sm font-semibold transition-colors rounded-xl","focus:outline-none",{"gap-6 bg-surface-1 text-med-em":r,"gap-6 hover:bg-surface-3":!r},a),...i,children:[e.jsx("span",{style:{color:"var(--med-em)"},children:k.default.isValidElement(t)&&k.default.cloneElement(t,{size:d,color:"currentColor"})}),e.jsx("span",{className:h.clsx("text-med-em",o),style:c,children:s})]})},bt=({children:t,content:s,side:r="top",sideOffset:a=5,showArrow:n=!0,className:l,maxWidth:i="max-w-xs",delayDuration:x,disabled:o=!1,primaryButton:c,secondaryButton:d,customBackground:u,customTextColor:m,customFontSize:p})=>{if(o)return t;const b=c||d,w={};return u&&(w.backgroundColor=u),m&&(w.color=m),p&&(w.fontSize=p),e.jsxs(X.Root,{delayDuration:x,children:[e.jsx(X.Trigger,{asChild:!0,children:t}),e.jsx(X.Portal,{children:e.jsxs(X.Content,{side:r,sideOffset:a,className:h.clsx("z-50 overflow-hidden rounded-6 p-6 shadow-e2",!u&&"bg-surface-bg",!m&&"text-high-em",!p&&"text-xs","font-medium",i,"data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade","data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade","data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade","data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade",l),style:Object.keys(w).length>0?w:void 0,children:[e.jsxs("div",{className:h.clsx(b&&"flex flex-col gap-8"),children:[e.jsx("div",{children:s}),b&&e.jsxs("div",{className:"flex gap-4 items-center w-full",children:[c&&e.jsx(T,{variant:c.variant||"neutral",hierarchy:c.hierarchy||"secondary",size:c.size||"xs",onClick:c.onClick,disabled:c.disabled,className:"flex-1",children:c.text}),d&&e.jsx(T,{variant:d.variant||"neutral",hierarchy:d.hierarchy||"secondary",size:d.size||"xs",onClick:d.onClick,disabled:d.disabled,className:"flex-1",children:d.text})]})]}),n&&e.jsx(X.Arrow,{className:u?void 0:"fill-surface-bg",style:u?{fill:u}:void 0})]})})]})},_a=e.jsx(ot,{}),rr=({children:t,tooltipContent:s,icon:r,iconColor:a="text-disabled",labelClassName:n,className:l,customFontSize:i,customIconSize:x})=>{const o={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},c=i&&o[i]||void 0,d=i&&!o[i]?{fontSize:i}:void 0,u=x||16,m=r??_a;return e.jsxs("div",{className:h.clsx("flex items-center gap-2",l),children:[e.jsx("span",{className:h.clsx(n,c),style:d,children:t}),e.jsx(bt,{content:s,children:e.jsx("button",{type:"button",className:h.clsx("bg-surface-bg flex items-center focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-primary-main rounded-full",a),children:k.default.cloneElement(m,{size:u,color:"currentColor"})})})]})},Ga={sm:"max-w-[300px] w-full",md:"w-[32rem]",lg:"w-[40rem]"},jt={sm:{header:"py-4 px-8",body:"p-6",footer:"py-6 px-8"},md:{header:"py-4 px-8",body:"p-8",footer:"py-6 px-8"},lg:{header:"py-4 px-8",body:"p-10",footer:"py-6 px-8"}},nr=j.createContext(void 0),fe=()=>{const t=j.useContext(nr);if(!t)throw new Error("useModalContext must be used within a Modal provider");return t},vt=({children:t,size:s="md",padding:r})=>{const[a,n]=j.useState(!1);return e.jsx(nr.Provider,{value:{open:a,setOpen:n,size:s,padding:r??s},children:t})};vt.displayName="Modal";const wt=({children:t})=>{const{setOpen:s}=fe();return k.default.cloneElement(t,{onClick:r=>{t.props.onClick&&t.props.onClick(r),s(!0)}})};wt.displayName="ModalTrigger";const Ct=j.forwardRef(({children:t,className:s,...r},a)=>{const{open:n,setOpen:l,size:i}=fe();return e.jsx(O.Transition,{appear:!0,show:n,as:j.Fragment,children:e.jsxs(O.Dialog,{as:"div",className:"relative z-50",onClose:()=>l(!1),children:[e.jsx(O.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:e.jsx("div",{className:"fixed inset-0 bg-black-uniform/30","aria-hidden":"true"})}),e.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:e.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:e.jsx(O.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:e.jsx(O.Dialog.Panel,{ref:a,className:h.clsx("bg-white rounded-2xl shadow-xl flex flex-col border border-surface-3 text-left transform transition-all",Ga[i],s),...r,children:t})})})})]})})});Ct.displayName="ModalContent";const yt=({children:t,onBack:s,disabled:r=!1,className:a})=>{const{setOpen:n,padding:l}=fe(),i=jt[l];return e.jsxs("header",{className:h.clsx("flex items-center border-b border-surface-3 shrink-0",i.header,a),children:[e.jsx(T,{variant:"neutral",hierarchy:"secondary",className:h.clsx("cursor-pointer",!s&&"invisible"),onClick:s,size:"sm",icons:"only",disabled:r||!s,leadingIcon:e.jsx(fs,{className:"text-high-em"})}),e.jsx("div",{className:"flex-1 flex justify-center items-center",children:t}),e.jsx(T,{className:"cursor-pointer",variant:"neutral",hierarchy:"secondary",size:"sm",icons:"only",leadingIcon:e.jsx(ie,{className:"text-high-em"}),onClick:()=>n(!1),disabled:r})]})};yt.displayName="ModalHeader";const Nt=j.forwardRef(({className:t,...s},r)=>e.jsx(O.Dialog.Title,{ref:r,as:"h3",className:h.clsx("font-semibold text-base leading-tight text-center text-high-em",t),...s}));Nt.displayName="ModalTitle";const kt=j.forwardRef(({className:t,...s},r)=>e.jsx(O.Dialog.Description,{ref:r,className:h.clsx("text-sm text-high-em",t),...s}));kt.displayName="ModalDescription";const St=({children:t,className:s})=>{const{padding:r}=fe(),a=jt[r];return e.jsx("main",{className:h.clsx(a.body,"flex-1 overflow-y-auto",s),children:t})};St.displayName="ModalBody";const Ue=({className:t,children:s,...r})=>{const{padding:a}=fe(),n=jt[a];return e.jsx("footer",{className:h.clsx("flex items-center border-t border-surface-3 shrink-0",n.footer,t),...r,children:s})};Ue.displayName="ModalFooter";const ar=({backButton:t,cancelButton:s,acceptButton:r,className:a})=>{const{setOpen:n,size:l}=fe(),i=l==="sm",x=(o,c)=>{o.onClick&&o.onClick(c),o.closeOnClick!==!1&&n(!1)};return e.jsxs(Ue,{className:h.clsx(i?"flex-row gap-8":"justify-between",a),children:[t&&!i&&e.jsx(T,{variant:t.variant||"neutral",hierarchy:t.hierarchy||"secondary",size:t.size||"md",...t,onClick:o=>x(t,o),children:t.label}),!t&&!i&&e.jsx("div",{}),e.jsxs("div",{className:h.clsx("flex",i?"flex-row gap-8 w-full":"gap-8"),children:[s&&e.jsx(T,{variant:s.variant||"neutral",hierarchy:s.hierarchy||"primary",size:s.size||"md",...s,className:W.twMerge(i?"w-full":"w-32",s.className),onClick:o=>x(s,o),children:s.label}),r&&e.jsx(T,{variant:r.variant||"secondary",hierarchy:r.hierarchy||"primary",size:r.size||"md",...r,className:W.twMerge(i?"w-full":"w-32",r.className),onClick:o=>x(r,o),children:r.label})]})]})};ar.displayName="ModalFooterActions";const Lt=({children:t})=>{const{setOpen:s}=fe();return k.default.cloneElement(t,{onClick:r=>{t.props.onClick&&t.props.onClick(r),s(!1)}})};Lt.displayName="ModalClose";function Ua(t,s){return t.split(s).reduce((r,a,n,l)=>(r.push(e.jsx("span",{className:"font-normal",children:a},`part-${n}`)),n<l.length-1&&r.push(e.jsx("span",{className:"font-bold",children:s},`bold-${n}`)),r),[])}function lr({trigger:t,title:s,description:r,confirmationText:a,confirmationLabel:n,confirmButtonLabel:l,cancelButtonLabel:i="Cancel",onConfirm:x,loading:o=!1}){const[c,d]=j.useState(""),u=c.trim()===a,m=()=>d(""),p=k.default.isValidElement(t)?t:null;return e.jsxs(vt,{children:[p?e.jsx(wt,{children:p}):null,e.jsxs(Ct,{children:[e.jsx(yt,{disabled:o,children:e.jsx(Nt,{children:s})}),e.jsxs(St,{children:[e.jsx(kt,{children:r}),e.jsx("div",{className:"mt-6",children:e.jsx(J,{label:Ua(n,a),placeholder:a,value:c,onChange:b=>d(b.target.value),disabled:o,variant:"outlined",size:"md"})})]}),e.jsxs(Ue,{className:"justify-end gap-3",children:[e.jsx(Lt,{children:e.jsx(T,{variant:"neutral",hierarchy:"secondary",size:"md",disabled:o,onClick:m,children:i})}),e.jsx(T,{variant:"danger",hierarchy:"primary",size:"md",onClick:()=>{u&&!o&&x()},disabled:!u,loading:o,children:l})]})]})]})}lr.displayName="DeleteConfirmationModal";const ir=j.createContext(void 0),zt=()=>{const t=j.useContext(ir);if(!t)throw new Error("Drawer subcomponents must be used within <Drawer>");return t},qa={sm:"w-64",md:"w-72",lg:"w-80",xl:"w-96"},Et={right:"translate-x-full",left:"-translate-x-full"},Qa={right:"right-0",left:"left-0"},or=({open:t,onOpenChange:s,side:r="right",children:a})=>e.jsx(ir.Provider,{value:{onOpenChange:s,side:r},children:e.jsx(O.Transition,{show:t,as:j.Fragment,children:e.jsx(O.Dialog,{as:"div",className:"relative z-50",onClose:()=>s(!1),children:a})})});or.displayName="Drawer";const cr=({className:t})=>{const{onOpenChange:s}=zt();return e.jsx(O.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:e.jsx("div",{className:W.twMerge(h.clsx("fixed inset-0 bg-black-uniform/30",t)),"aria-hidden":"true",onClick:()=>s(!1)})})};cr.displayName="DrawerOverlay";const dr=({width:t="md",className:s,children:r})=>{const{side:a}=zt();return e.jsx(O.Transition.Child,{as:j.Fragment,enter:"ease-out duration-300",enterFrom:Et[a],enterTo:"translate-x-0",leave:"ease-in duration-200",leaveFrom:"translate-x-0",leaveTo:Et[a],children:e.jsx(O.Dialog.Panel,{className:W.twMerge(h.clsx("fixed top-0 bottom-0 h-full flex flex-col bg-white shadow-e2 transform",qa[t],Qa[a],s)),children:r})})};dr.displayName="DrawerPanel";const xr=({children:t,className:s,height:r=60,title:a})=>e.jsxs("div",{style:{height:r},className:W.twMerge(h.clsx("flex items-center justify-between shrink-0 px-8 border-b border-surface-3",s)),children:[a&&e.jsx("span",{className:"text-sm font-semibold text-high-em",children:a}),t]});xr.displayName="DrawerHeader";const ur=({children:t,className:s})=>e.jsx("div",{className:W.twMerge(h.clsx("flex-1",s)),children:t});ur.displayName="DrawerContent";const hr=({children:t,className:s})=>t?e.jsx("div",{className:W.twMerge(h.clsx("shrink-0 border-t border-surface-3 py-6 px-8",s)),children:t}):null;hr.displayName="DrawerFooter";const mr=({children:t,size:s="sm"})=>{const{onOpenChange:r}=zt();return t?k.default.cloneElement(t,{onClick:a=>{t.props.onClick?.(a),r(!1)}}):e.jsx(T,{className:"cursor-pointer",variant:"neutral",hierarchy:"secondary",size:s,icons:"only",leadingIcon:e.jsx(ie,{className:"text-high-em"}),onClick:()=>r(!1)})};mr.displayName="DrawerClose";const Ka=Object.assign(or,{Overlay:cr,Panel:dr,Header:xr,Content:ur,Footer:hr,Close:mr});function fr({planName:t,price:s,billingPeriod:r="month",priceContent:a,description:n,ctaLabel:l="Switch Plan",onCtaClick:i,features:x,featuresTitle:o="Features",featuresSubtitle:c="Everything in our plan includes",isRecommended:d=!1,recommendedLabel:u="Recommended",recommendedIcon:m,loading:p=!1,ctaVariant:b="neutral",ctaHierarchy:w="primary",sectionColor:g="bg-white",sectionTextColor:f,className:C}){return e.jsxs("div",{className:W.twMerge(h.clsx("relative w-full flex flex-col",C)),children:[d&&e.jsx("div",{className:"absolute -top-9 left-1/2 -translate-x-1/2 z-10 whitespace-nowrap",children:e.jsx(ce,{size:"lg",theme:"surface",variant:"outlined",children:e.jsx(le,{icon:m,label:u,iconSize:14,gap:3,iconColorClass:"text-med-em",labelColorClass:"text-med-em text-xs font-semibold"})})}),e.jsxs("div",{className:"bg-surface-2 border border-surface-3 rounded-8 overflow-hidden w-full flex flex-col flex-1",children:[e.jsxs("div",{className:h.clsx("flex items-start justify-between p-8 border-b border-surface-3",g),children:[e.jsx("span",{className:h.clsx("text-xl font-semibold",f??"text-high-em"),children:t}),e.jsx("div",{className:"flex items-baseline gap-4",children:a??e.jsxs(e.Fragment,{children:[e.jsx("span",{className:h.clsx("text-2xl font-bold leading-none",f??"text-high-em"),children:s}),r&&e.jsxs("span",{className:h.clsx("text-sm",f??"text-high-em"),children:["/ ",r]})]})})]}),e.jsxs("div",{className:h.clsx("flex flex-col gap-8 p-8 border-b border-surface-3",g),children:[e.jsx("p",{className:h.clsx("text-sm leading-relaxed",f??"text-high-em"),children:n}),e.jsx(T,{variant:b,hierarchy:w,size:"md",className:"w-full",onClick:i,loading:p,children:l})]}),e.jsxs("div",{className:"flex flex-col gap-8 p-8 bg-surface-bg flex-1",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xl font-bold text-high-em",children:o}),e.jsx("p",{className:"text-sm text-high-em",children:c})]}),e.jsx("ul",{className:"flex flex-col gap-8",children:x.map(N=>e.jsxs("li",{className:"flex items-center gap-8",children:[e.jsx("span",{className:"text-low-em shrink-0",children:e.jsx(z.TickCircle,{size:14,color:"currentColor"})}),e.jsx("span",{className:"text-sm text-low-em",children:N})]},N))})]})]})]})}fr.displayName="PlanPricingCard";const qe=({type:t="default",size:s="lg",variant:r="primary",children:a,className:n})=>{const l="inline-flex items-center justify-center transition-colors duration-200",i={lg:"w-[80px] h-[80px] rounded-[16px]",md:"w-[56px] h-[56px] rounded-[16px]",sm:"w-[40px] h-[40px] rounded-[8px]"},x={lg:32,md:24,sm:20},o={default:{primary:"bg-surface-4 text-white-uniform",secondary:"bg-surface-1 text-high-em",tertiary:"bg-transparent border-[2px] border-surface-3 text-high-em",quaternary:"bg-transparent text-high-em"},brand:{primary:"bg-brand-primary-main text-white-uniform",secondary:"bg-surface-3 text-primary-accent-3",tertiary:"bg-transparent border-[2px] border-surface-4 text-primary-accent-3",quaternary:"bg-transparent text-primary-accent-3"},danger:{primary:"bg-danger-main text-white-uniform",secondary:"bg-danger-accent-1 text-danger-main",tertiary:"bg-transparent border-[2px] border-danger-accent-2 text-danger-main",quaternary:"bg-transparent text-danger-main"},success:{primary:"bg-success-main text-white-uniform",secondary:"bg-success-accent-1 text-success-main",tertiary:"bg-transparent border-[2px] border-success-accent-2 text-success-main",quaternary:"bg-transparent text-success-main"}},c=k.default.isValidElement(a)?k.default.cloneElement(a,{size:x[s],color:"currentColor"}):null;return e.jsx("div",{className:h.clsx(l,i[s],o[t][r],n),children:c})},K=({direction:t="horizontal",width:s,height:r,className:a})=>{const n=t==="horizontal"?"100%":"0.5px",l=t==="horizontal"?"0.5px":"100%",i=h.clsx(a,"bg-surface-3 items-center"),x={width:s??n,height:r??l};return e.jsx("div",{className:i,style:x})},pr=k.default.forwardRef(({title:t,companyImage:s,badgeStatus:r,badgeStatusState:a,onButtonAction:n,actionButtonRef:l,stackLabel:i,powerLabel:x,calendarLabel:o,link1Label:c,link1Href:d,link2Label:u,link2Href:m,link2Status:p,onCardClick:b,className:w,...g},f)=>{const C=h.clsx("flex flex-col overflow-hidden transition-all duration-200 w-full min-w-0 p-4 gap-3 border rounded-2xl border-surface-3","bg-white","p-6 md:p-8 gap-6 md:gap-8"),N=W.twMerge(h.clsx(C,w)),v={success:"success",warning:"warning",danger:"danger",disabled:"disabled"};return e.jsxs("div",{ref:f,className:N,...g,children:[e.jsxs("div",{className:"flex-row flex justify-between",children:[e.jsx("div",{className:"flex",children:e.jsx($,{className:"!rounded-4",size:"2xl",imageUrl:s})}),e.jsx("div",{className:"flex w-fit",children:e.jsx(T,{ref:l,size:"sm",leadingIcon:e.jsx($,{children:e.jsx(ws,{})}),icons:"only",hierarchy:"secondary",variant:"neutral",onClick:n})})]}),e.jsxs("div",{className:"flex-col flex justify-between gap-4",children:[e.jsxs("div",{className:"flex gap-5 items-center",children:[e.jsx("span",{className:"text-high-em font-semibold",children:t}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(ce,{variant:"simple",theme:v[a],children:r})})]}),e.jsxs("div",{className:"flex flex-row gap-4",children:[e.jsx(le,{label:i,labelSize:"sm",iconSize:"sm",gap:4,icon:e.jsx(Cs,{})}),e.jsx(le,{label:x,labelSize:"sm",iconSize:"sm",gap:4,icon:e.jsx(ys,{})}),e.jsx(le,{label:o,labelSize:"sm",iconSize:"sm",gap:4,icon:e.jsx(Ns,{})})]})]}),e.jsx(K,{direction:"horizontal"}),e.jsxs("div",{className:"flex-row flex justify-between gap-8",children:[e.jsxs("div",{className:"flex w-1/2 flex-col gap-2",children:[e.jsx("span",{className:"text-sm text-low-em",children:"Subdomain"}),e.jsx("div",{className:"flex-row flex center items-center gap-4",children:e.jsx(xe,{href:d,className:"w-fit",variant:"neutral",children:c})})]}),e.jsxs("div",{className:"flex w-1/2 flex-col gap-2",children:[e.jsx("span",{className:"text-sm text-low-em",children:"Database"}),e.jsxs("div",{className:"flex-row flex center items-center gap-4",children:[e.jsx(ce,{variant:"status",statusState:p,statusSize:"xs"}),e.jsx(xe,{href:m,trailingIcon:e.jsx(vs,{}),className:"w-fit",variant:"neutral",children:u})]})]})]})]})});pr.displayName="ProjectCard";const rt=({progress:t,description:s,className:r,...a})=>{const n=Math.min(100,Math.max(0,t)),l="w-full bg-surface-3 rounded-full h-1 relative overflow-hidden flex-1",i=h.clsx("size-[18px] rounded-full transition-all duration-300 grow-0 shrink-0 border-black",t>1?"border-5":t===0?"border-2 border-surface-3":"border-5"),x=h.clsx(l,r);return e.jsxs("div",{className:"flex flex-col gap-y-2 w-full",children:[e.jsxs("div",{className:"flex items-center w-full gap-x-5",children:[e.jsx("div",{className:i}),e.jsx("div",{className:x,role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":`Progress: ${n}%`,...a,children:e.jsx("div",{className:"h-full rounded-full transition-all duration-300 ease-out bg-black",style:{width:`${n}%`}})})]}),s&&e.jsx("p",{className:"mt-2 font-medium text-sm text-left text-low-em",children:s})]})},Je={xs:{size:144,container:"size-[144px]",strokeWidth:12,labelFontSize:"text-xs",fontSize:"text-[24px]",lineHeight:"leading-[36px]",halfCircle:"w-[144px] h-[80px]",labelSpace:"",halfCircleLabelPosition:"top-2/5"},sm:{size:180,container:"size-[180px]",strokeWidth:14,labelFontSize:"text-xs",fontSize:"text-[28px]",lineHeight:"leading-[42px]",halfCircle:"w-[180px] h-[95px]",labelSpace:"",halfCircleLabelPosition:"top-2/5"},md:{size:240,container:"size-[240px]",strokeWidth:16,labelFontSize:"text-sm",fontSize:"text-[38px]",lineHeight:"leading-[62px]",halfCircle:"w-[240px] h-[131px]",labelSpace:"",halfCircleLabelPosition:"top-2/5"},lg:{size:280,container:"size-[280px]",strokeWidth:18,labelFontSize:"text-md",fontSize:"text-[48px]",lineHeight:"leading-[72px]",halfCircle:"w-[280px] h-[154px]",labelSpace:"",halfCircleLabelPosition:"top-2/5"}},Ja={primary:{track:"text-surface-3",fill:"text-black",label:"text-low-em text-center",progressLabel:"text-high-em font-space-grotesk font-semibold",opacity:1}},nt=({progress:t,size:s="md",variant:r="primary",shape:a="circle",showLabel:n=!0,label:l,className:i,ariaLabel:x,id:o,...c})=>{const d=Math.min(100,Math.max(0,t)),u=k.default.useId(),m=o||`progress-circle-${u}`,p=l?`${m}-label`:void 0,b=Je[s],w=Ja[r],g=()=>x||(l?`Progreso: ${l}, ${d}% completado`:`Progreso: ${d}% completado`),f=b.size,C=(f-b.strokeWidth)/2,N=2*Math.PI*C,v=N-d/100*N,y=()=>a==="circle"?Je[s].container:Je[s].halfCircle,M=()=>e.jsxs("svg",{width:f,height:f,className:"transform -rotate-90",role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-label":g(),"aria-labelledby":p,"aria-live":"polite","aria-atomic":"true",children:[e.jsx("circle",{cx:f/2,cy:f/2,r:C,stroke:"currentColor",strokeWidth:b.strokeWidth,fill:"none",className:w.track,opacity:w.opacity}),e.jsx("circle",{cx:f/2,cy:f/2,r:C,stroke:"currentColor",strokeWidth:b.strokeWidth,fill:"none",className:w.fill,strokeDasharray:N,strokeDashoffset:v,strokeLinecap:"round",style:{transition:"stroke-dashoffset 0.3s ease-in-out"}})]}),I=()=>{const R=b.strokeWidth,D=f,A=f/2+R,P=(f-b.strokeWidth)/2,F=R/2,S=A-R/2,Z=f-R/2,V=A-R/2,H=Math.PI*P*2,L=H-d/100*H;return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:`0 0 ${D} ${A}`,className:"size-full",fill:"none",role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-label":g(),"aria-labelledby":p,"aria-live":"polite","aria-atomic":"true",children:[e.jsx("path",{d:`M${F},${S} A${P},${P} 0 1,1 ${Z},${V}`,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:b.strokeWidth,stroke:"currentColor",className:w.track,opacity:w.opacity}),e.jsx("path",{d:`M${F},${S} A${P},${P} 0 1,1 ${Z},${V}`,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:b.strokeWidth,stroke:"currentColor",className:w.fill,strokeDasharray:H,strokeDashoffset:L,style:{transition:"stroke-dashoffset 0.3s ease-in-out"}})]})};return e.jsxs("div",{className:h.clsx("relative inline-flex items-center justify-center",y(),i),id:m,...c,children:[a==="circle"?M():I(),n&&a==="circle"&&e.jsxs("div",{className:h.clsx("absolute inset-0 flex flex-col items-center justify-center","leading-none"),children:[l&&e.jsx("span",{id:p,className:h.clsx(b.labelFontSize,w.label),children:l}),e.jsx("span",{className:h.clsx(b.fontSize,b.lineHeight,w.progressLabel),style:{fontFamily:"var(--font-space-grotesk)"},children:`${d}%`})]}),n&&a==="half-circle"&&e.jsxs("div",{className:h.clsx("absolute left-0 right-0 flex flex-col items-center justify-center",l?b.halfCircleLabelPosition:"top-1/2",l&&b.labelSpace),children:[l&&e.jsx("span",{id:p,className:h.clsx(b.labelFontSize,w.label),children:l}),e.jsx("span",{className:h.clsx(b.fontSize,b.lineHeight,w.progressLabel),style:{fontFamily:"var(--font-space-grotesk)"},children:`${d}%`})]})]})},Ya=({currentStep:t,totalSteps:s,currentStepProgress:r=0,stepDescriptions:a=[],title:n,subtitle:l,className:i,collapsed:x,onToggleCollapse:o,onClose:c,onlyProgressCircle:d=!1})=>{const[u,m]=k.default.useState(x??!0);k.default.useEffect(()=>{typeof x=="boolean"&&m(x)},[x]);const p=()=>{const g=!u;m(g),o&&o(g)},b=k.default.useMemo(()=>Array.from({length:s},(g,f)=>{const C=f+1;let N;return C<t?N=100:N=0,{progress:N,description:a[f]||`Step ${C}`}}),[t,s,a]),w=s>0?Math.round((t-1)/s*100+r/s):0;return d?e.jsx(nt,{progress:w,size:"xs",showLabel:!0,ariaLabel:`Overall progress: ${w}%`,className:i}):e.jsxs(Y.motion.div,{className:h.clsx("bg-white overflow-hidden",i),role:"region","aria-label":`Progress tracker${u?"":" - expanded"}`,layout:!0,animate:{height:u?61:130},transition:{duration:.3,ease:"easeInOut"},children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-2 gap-3",children:[e.jsx(Y.motion.div,{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:p,layout:!0,children:e.jsx(Y.AnimatePresence,{mode:"wait",children:u?e.jsx(Y.motion.div,{className:"flex items-center gap-3 flex-1 min-w-0",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:b.map((g,f)=>e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(rt,{progress:g.progress})},f))},"collapsed-content"):e.jsxs(Y.motion.div,{className:"flex flex-col flex-1",initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.2},children:[n&&e.jsx("h3",{className:"text-[16px] text-dark-100 font-semibold",children:n}),l&&e.jsx("p",{className:"text-sm text-dark-700",children:l})]},"expanded-title")})}),e.jsxs("div",{className:"flex items-center gap-9 py-4 px-6",children:[e.jsx(nt,{progress:w,size:"xs",showLabel:!0,ariaLabel:`Overall progress: ${w}%`}),e.jsx(Y.motion.button,{className:"rounded-full cursor-pointer flex items-center justify-center",onClick:p,whileHover:{scale:1.1},whileTap:{scale:.9},transition:{duration:.1},"aria-label":u?"Expand":"Collapse",children:e.jsx(Y.motion.div,{style:{display:"inline-flex",alignItems:"center",justifyContent:"center"},animate:{rotate:u?0:180},transition:{duration:.2},children:e.jsx(z.ArrowDown2,{size:16,color:"black"})})}),e.jsx(Y.motion.button,{className:"rounded-full cursor-pointer flex items-center justify-center w-6 h-6",onClick:c,whileHover:{scale:1.1},whileTap:{scale:.9},transition:{duration:.1},"aria-label":"Close",children:e.jsx(ie,{size:16})})]})]}),e.jsx(Y.AnimatePresence,{children:!u&&e.jsx(Y.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:e.jsx("div",{className:"pt-2 pb-4 px-8",children:e.jsx(Y.motion.div,{className:"flex gap-3 w-full",initial:{opacity:0},animate:{opacity:1},transition:{delay:.1,duration:.2},children:b.map((g,f)=>{const N=f+1===t;return e.jsx(Y.motion.div,{className:"w-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.15+f*.05,duration:.2,ease:"easeOut"},children:e.jsxs("div",{children:[e.jsx(rt,{progress:g.progress}),(g.progress!==0||N)&&g.description&&e.jsx("div",{className:"text-sm text-[#2F343C] mt-3 font-semibold",children:g.description}),g.progress===0&&!N&&g.description&&e.jsx("div",{className:"text-sm text-[#5A606B] mt-3 font-semibold",children:g.description})]})},f)})})})})})]})},Xa={small:{wrapper:"w-[16px] h-[16px]",dot:"w-[6px] h-[6px]"},medium:{wrapper:"w-[20px] h-[20px]",dot:"w-[8px] h-[8px]"},large:{wrapper:"w-[24px] h-[24px]",dot:"w-[10px] h-[10px]"}},ve={unchecked:"bg-transparent border-low-em hover:bg-surface-1",checked:"bg-transparent border-1 border-low-em hover:bg-surface-1",focus:"peer-focus-visible:ring-1 peer-focus-visible:ring-low-em",disabled:{unchecked:"bg-surface-3 border-surface-4",checked:"bg-surface-3 border-surface-4",dot:"bg-surface-4"}},el=({size:t="medium",checked:s=!1,disabled:r=!1,className:a,...n})=>{const l=Xa[t];return e.jsxs("label",{className:h.clsx("inline-flex items-center",r?"cursor-not-allowed":"cursor-pointer",a),children:[e.jsx("input",{type:"radio",checked:s,disabled:r,className:"sr-only peer",...n}),e.jsx("div",{className:h.clsx(l.wrapper,"rounded-full border transition-colors duration-200",s&&"inline-flex items-center justify-center",ve.focus,r?s?ve.disabled.checked:ve.disabled.unchecked:s?ve.checked:ve.unchecked,!r&&"peer-hover:border-low-em"),children:s&&e.jsx("div",{className:h.clsx(l.dot,"rounded-full",r?ve.disabled.dot:"bg-black")})})]})},tl={xs:{wrapper:"h-10 rounded-4",button:"px-4 text-[10px] rounded-3 h-9",activeButton:"rounded-3 px-4",gap:"gap-x-[5px]"},sm:{wrapper:"h-13 rounded-6 px-2",button:"px-4 text-xs rounded-4 h-12",activeButton:"rounded-4",gap:"gap-x-[5px]"},md:{wrapper:"h-14 rounded-6 px-2",button:"px-6 text-sm rounded-6 h-13",activeButton:"rounded-3",gap:"gap-x-[5px]"},lg:{wrapper:"h-[56px] rounded-8 px-2",button:"px-8 text-base rounded-6 h-14",activeButton:"rounded-4",gap:"gap-x-3"},"ai-chat":{wrapper:"h-[42px] rounded-6 px-[3px]",button:"px-4 text-sm rounded-5 h-[34px]",activeButton:"rounded-5 px-4",gap:"gap-x-[5px]"}},gr=({items:t,value:s,onChange:r,size:a="md",withBorder:n=!1,className:l})=>{const i=tl[a];return e.jsx("div",{className:h.clsx("inline-flex items-center p-1 bg-surface-2",i.wrapper,i.gap,n&&"border border-surface-4",l),children:t.map(x=>{const o=x.id===s;return e.jsx("button",{onClick:()=>r(x.id),className:h.clsx("font-semibold transition-colors duration-200",i.button,o?h.clsx("bg-surface-bg shadow-sm text-high-em",i.activeButton):"text-high-em"),children:x.label},x.id)})})},br=k.default.createContext(null),ne=()=>{const t=k.default.useContext(br);if(!t)throw new Error("useTableContext must be used within a TableProvider");return t},jr=({children:t,value:s})=>k.default.createElement(br.Provider,{value:s},t),sl=48,rl=({columns:t,data:s,tableLayout:r={},children:a,...n})=>{const l=k.default.useRef(null),[i,x]=k.default.useState(()=>!n.sortBy||!n.sortDirection?[]:[{id:n.sortBy,desc:n.sortDirection==="desc"}]),[o,c]=k.default.useState(()=>{const v={};return n.selectedRows?.forEach(y=>{v[String(y)]=!0}),v}),[d,u]=k.default.useState(n.searchValue||""),[m,p]=k.default.useState(()=>({pageIndex:(n.currentPage||1)-1,pageSize:n.itemsPerPage||10})),[b,w]=k.default.useState({});k.default.useEffect(()=>{if(n.sortBy&&n.sortDirection){const v=[{id:n.sortBy,desc:n.sortDirection==="desc"}];JSON.stringify(v)!==JSON.stringify(i)&&x(v)}},[n.sortBy,n.sortDirection,i]),k.default.useEffect(()=>{if(n.selectedRows){const v={};n.selectedRows.forEach(y=>{v[String(y)]=!0}),JSON.stringify(v)!==JSON.stringify(o)&&c(v)}},[n.selectedRows,o]),k.default.useEffect(()=>{n.searchValue!==d&&u(n.searchValue||"")},[n.searchValue,d]),k.default.useEffect(()=>{if(n.currentPage){const v=n.currentPage-1;v!==m.pageIndex&&p(y=>({...y,pageIndex:v}))}},[n.currentPage,m.pageIndex]);const g=k.default.useMemo(()=>{const v=t.map(y=>{const M=y.id==="__select"||y.type==="select",I=n.selectColumnSize??sl,R={id:y.id,header:y.header,accessorKey:y.id,enableSorting:y.sortable??!1,enableColumnFilter:y.filterable??!1,size:M?I:y.size,minSize:M?I:y.minSize,maxSize:M?I:y.maxSize,enableResizing:!0,meta:{align:y.align,hasExplicitSize:M||y.size!==void 0}};return y.component?R.cell=({row:D,getValue:A})=>{const P=y.component,F=y.accessor?y.accessor(D.original):A();return k.default.createElement(P,{value:F,row:D.original,rowIndex:D.index,...y.componentProps})}:y.cell?R.cell=({row:D})=>y.cell(D.original):y.accessor?R.cell=({row:D})=>y.accessor(D.original):R.cell=({getValue:D})=>D(),R});return n.selectable&&v.unshift({id:"__select",header:"",cell:({row:y})=>y.original,enableSorting:!1,enableColumnFilter:!1,size:48,minSize:48,maxSize:48}),v},[t,n.selectable]),f=oe.useReactTable({data:s,columns:g,state:{columnSizing:b,sorting:i,rowSelection:o,globalFilter:d,pagination:n.showPagination?m:void 0},enableColumnResizing:!0,columnResizeMode:"onChange",onColumnSizingChange:w,defaultColumn:{minSize:20,maxSize:Number.MAX_SAFE_INTEGER,size:150},onSortingChange:v=>{const y=typeof v=="function"?v(i):v;x(y);const M=y[0];M?n.onSortChange?.(M.id,M.desc?"desc":"asc"):n.onSortChange?.("",null)},onRowSelectionChange:v=>{const y=typeof v=="function"?v(o):v;c(y);const M=new Set;Object.keys(y).forEach(I=>{if(y[I]){const R=Number(I);M.add(isNaN(R)?I:R)}}),n.onSelectionChange?.(M)},onGlobalFilterChange:v=>{const y=typeof v=="function"?v(d):v;u(y),n.onSearchChange?.(y)},onPaginationChange:v=>{if(!n.showPagination)return;const y=typeof v=="function"?v(m):v;p(y),n.onPageChange?.(y.pageIndex+1)},getCoreRowModel:oe.getCoreRowModel(),getSortedRowModel:oe.getSortedRowModel(),getFilteredRowModel:oe.getFilteredRowModel(),getPaginationRowModel:n.showPagination?oe.getPaginationRowModel():void 0,manualPagination:!1,manualSorting:!1,getRowId:(v,y)=>String(n.getRowId?.(v,y)??y)}),C=k.default.useMemo(()=>({dense:!1,cellBorder:!1,rowBorder:!0,rowHeight:64,cellAlign:"center",headerBackground:!0,headerBorder:!0,virtualized:n.virtualized||!1,width:"auto",columnsVisibility:!1,columnsResizable:!0,...r}),[r,n.virtualized]),N=()=>{f.resetGlobalFilter(),f.resetColumnFilters(),n.showPagination&&f.setPageIndex(0)};return e.jsx(jr,{value:{table:f,tableLayout:C,parentRef:l,emptyStateTitle:n.emptyStateTitle,emptyStateDescription:n.emptyStateDescription,showClearFiltersButton:n.showClearFiltersButton??!0,resetAllFilters:N},children:e.jsx("div",{className:"w-full min-w-0",children:a})})},nl=({children:t,className:s,noFooter:r=!1})=>{const{tableLayout:a,parentRef:n,table:l}=ne(),{virtualized:i,width:x}=a,o=l.getFilteredRowModel().rows.length===0;return i?e.jsx("div",{ref:n,className:h.clsx("bg-surface-0 border-x border-surface-4 overflow-auto w-full min-w-full table ds-scrollbar",s),style:{height:"400px"},children:e.jsx("table",{className:h.clsx("w-full",x==="fixed"&&"table-fixed",x==="auto"&&"table-auto"),children:t})}):e.jsx("div",{className:h.clsx("bg-surface-0 border-x border-surface-4 overflow-x-auto w-full ds-scrollbar",(r||o)&&"border-b rounded-b-2xl",s),children:e.jsxs("table",{className:h.clsx(!o&&x!=="fixed"&&"min-w-max","w-full",x==="fixed"&&"table-fixed",x==="auto"&&"table-auto"),"data-slot":"data-table",children:[x==="fixed"&&e.jsx("colgroup",{children:l.getAllLeafColumns().map(c=>e.jsx("col",{style:c.id==="__select"?{width:`${c.getSize()}px`,maxWidth:`${c.getSize()}px`}:void 0},c.id))}),t]})})},Ee=({children:t,className:s,style:r,isTBody:a=!0})=>{const{tableLayout:n}=ne(),{rowBorder:l,rowHeight:i}=n,x=i&&a?{...r,height:`${i}px`}:r;return e.jsx("tr",{className:h.clsx("bg-white hover:bg-surface-2 transition-colors",l&&"border-b border-surface-4 last:border-b-0",s),style:x,children:t})},vr=({header:t,className:s})=>{const{table:r,tableLayout:a}=ne(),{headerBackground:n,dense:l,cellBorder:i,columnsResizable:x,cellAlign:o,width:c}=a,d=t.column,u=t.column.getIsSorted(),m=u!==!1,p=d.getCanResize()&&x;if(d.id==="__select")return e.jsx("th",{className:h.clsx(l?"px-2 py-2":"px-3 py-3",n&&"bg-surface-1","align-middle relative",i&&"border-r border-surface-4 last:border-r-0",s),style:{width:`${t.getSize()}px`,minWidth:`${t.getSize()}px`,maxWidth:`${t.getSize()}px`,...o&&{textAlign:o}},children:e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ue,{className:"",checked:r.getIsAllPageRowsSelected(),onChange:r.getToggleAllPageRowsSelectedHandler(),indeterminate:r.getIsSomePageRowsSelected(),size:"small"})})});const b=e.jsxs("th",{className:h.clsx(l?"px-4 py-2":"px-6 py-3",n&&"bg-surface-1","flex items-center justify-center flex-row gap-2 min-w-0 relative",d.getCanSort()&&"cursor-pointer hover:bg-surface-3 transition-colors",m&&"bg-surface-3",i&&"border-r border-surface-4 last:border-r-0",s),style:{...c!=="fixed"&&{width:`${t.getSize()}px`,minWidth:`${d.columnDef.minSize||20}px`,maxWidth:`${d.columnDef.maxSize||Number.MAX_SAFE_INTEGER}px`},textAlign:t.column.columnDef.meta?.align??o},onClick:d.getCanSort()?d.getToggleSortingHandler():void 0,children:[e.jsx("div",{className:"align-middle gap-2 min-w-0",children:e.jsx("span",{className:h.clsx("text-xs font-medium leading-[18px] truncate capitalize text-low-em",m&&"font-semibold"),children:oe.flexRender(t.column.columnDef.header,t.getContext())})}),u&&e.jsx("div",{className:"align-middle flex-shrink-0",children:e.jsx(Vt,{direction:u==="desc"?"desc":"asc"})}),d.getCanFilter()&&e.jsx("div",{className:"align-middle flex-shrink-0",children:e.jsx(Wt,{})})]});return p?e.jsxs("th",{className:h.clsx(l?"px-4 py-2":"px-6 py-3",n&&"bg-surface-1","align-middle min-w-0 relative group",d.getCanSort()&&"cursor-pointer hover:bg-surface-3 transition-colors",m&&"bg-surface-3",i&&"border-r border-surface-4 last:border-r-0",s),style:{...c!=="fixed"&&{width:`${t.getSize()}px`,minWidth:`${d.columnDef.minSize||20}px`,maxWidth:`${d.columnDef.maxSize||Number.MAX_SAFE_INTEGER}px`},...o&&{textAlign:o}},onClick:d.getCanSort()?d.getToggleSortingHandler():void 0,children:[e.jsxs("div",{className:"flex items-center justify-center flex-row gap-2",children:[e.jsx("div",{className:"align-middle gap-2 min-w-0",children:e.jsx("span",{className:h.clsx("text-xs font-medium leading-[18px] truncate capitalize text-low-em",m&&"font-semibold"),children:oe.flexRender(t.column.columnDef.header,t.getContext())})}),u&&e.jsx("div",{className:"align-middle flex-shrink-0",children:e.jsx(Vt,{direction:u==="desc"?"desc":"asc"})}),d.getCanFilter()&&e.jsx("div",{className:"align-middle flex-shrink-0",children:e.jsx(Wt,{})})]}),e.jsx("div",{onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:h.clsx("absolute top-0 right-0 w-1 h-full cursor-col-resize z-10","bg-transparent hover:bg-surface-4 opacity-0 group-hover:opacity-50")})]}):b},Vt=({direction:t})=>t?e.jsx(us,{className:h.clsx("text-low-em",t==="asc"&&"rotate-180"),size:12}):null,Wt=()=>e.jsx(hs,{className:"text-low-em",size:12}),al=({className:t})=>{const{table:s,tableLayout:r}=ne(),{headerBackground:a,headerBorder:n}=r;return e.jsx("thead",{className:h.clsx(a&&"bg-surface-1",n&&"border-b border-surface-4",t),children:s.getHeaderGroups().map(l=>e.jsx(Ee,{isTBody:!1,children:l.headers.map(i=>e.jsx(vr,{header:i},i.id))},l.id))})},at=({cell:t,className:s})=>{const{tableLayout:r}=ne(),{cellAlign:a}=r,n=t.row,l=n.getIsSelected();return t.column.id==="__select"?e.jsx("td",{className:h.clsx(r.dense?"px-2 py-2":"px-3 py-3","relative",l?"bg-surface-2":"",r.cellBorder&&"border-r border-surface-4 last:border-r-0",s),style:{width:`${t.column.getSize()}px`,minWidth:`${t.column.getSize()}px`,maxWidth:`${t.column.getSize()}px`},children:e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ue,{checked:l,onChange:n.getToggleSelectedHandler(),size:"small"})})}):e.jsx("td",{className:h.clsx(r.dense?"px-4 py-2":"px-6 py-4","text-high-em text-sm font-medium leading-5 transition-colors min-w-0 truncate",l?"bg-surface-2":"",r.cellBorder&&"border-r border-surface-4 last:border-r-0",s),style:{textAlign:t.column.columnDef.meta?.align??a},children:oe.flexRender(t.column.columnDef.cell,t.getContext())})},wr=({title:t="No data available.",className:s,colSpan:r=1})=>e.jsx("tr",{className:h.clsx("w-full",s),children:e.jsx("td",{colSpan:r,children:e.jsx(ft,{description:t,flat:!0,className:"rounded-b-2xl"})})}),ll=({className:t})=>{const{table:s,tableLayout:r,parentRef:a,emptyStateTitle:n,resetAllFilters:l}=ne(),{virtualized:i}=r;if(s.getFilteredRowModel().rows.length===0)return e.jsx("tbody",{className:h.clsx(r.rowBorder&&"divide-y divide-surface-4",r.dense&&"text-sm",t),children:e.jsx(wr,{title:n,colSpan:s.getAllColumns().length})});if(!i)return e.jsx("tbody",{className:h.clsx(r.rowBorder&&"divide-y divide-surface-4",r.dense&&"text-sm",t),children:s.getRowModel().rows.map(u=>e.jsx(Ee,{children:u.getVisibleCells().map(m=>e.jsx(at,{cell:m},m.id))},u.id))});const o=qr.useVirtualizer({count:s.getRowModel().rows.length,getScrollElement:()=>a?.current||null,estimateSize:()=>r.rowHeight?r.rowHeight:r.dense?32:40,overscan:5}),c=o.getVirtualItems(),d=o.getTotalSize();return e.jsx("tbody",{className:h.clsx("relative",r.dense&&"text-sm",t),style:{height:`${d}px`},children:c.map(u=>{const m=s.getRowModel().rows[u.index];return e.jsx(Ee,{style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`},children:m.getVisibleCells().map(p=>e.jsx(at,{cell:p},p.id))},u.key)})})},il=(t,s)=>{const r=Number(t);if(isNaN(r)||!isFinite(r))return 1;const a=Math.floor(r),n=Math.max(1,Math.min(a,s));return s>0?n:1},Cr=t=>({id:String(t),title:String(t),showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1,className:"!min-w-0 justify-center [&>div:last-child]:hidden",middleContainerClassName:"justify-center [&>div]:mr-0"}),ol=t=>t.map(s=>Cr(s)),cl=(t,s,r,a)=>{const n=t*s+1,l=Math.min((t+1)*s,r||a);return{start:n,end:l,total:r||a}},dl=({showPagination:t=!0,totalItems:s,className:r,sizes:a=[10,20,50,100],footerBackground:n=!0,actions:l})=>{const{table:i}=ne(),x=i.getState().pagination,o=i.getPageCount(),c=i.getCanPreviousPage(),d=i.getCanNextPage(),u=N=>{const v=il(N,o)-1;i.setPageIndex(v)},m=N=>{i.setPageSize(Number(N))},p=()=>i.previousPage(),b=()=>i.nextPage(),w=i.getFilteredRowModel().rows.length,{total:g}=cl(x.pageIndex,x.pageSize,s,w),f=ol(a),C=x.pageSize;return!t||w===0?null:e.jsxs("div",{className:h.clsx("w-full px-8 py-6 border border-surface-4 rounded-b-2xl flex flex-row justify-between items-center gap-4",n&&"bg-surface-1",r),children:[e.jsxs("div",{className:"hidden lg:flex items-center flex-row shrink-0 gap-4",children:[e.jsx("span",{className:"hidden lg:block text-low-em text-sm font-semibold",children:"Showing"}),e.jsx(Ae,{className:"!w-[68px]",size:"sm",variant:"outlined",value:String(C),items:f,onChange:m,showLeadingIcon:!1,customHeight:"28px",customRadius:"8px",menuSize:"sm"}),e.jsx("span",{className:"hidden lg:block text-med-em text-sm font-semibold",children:`/ ${String(g)}`})]}),e.jsxs("div",{className:"flex flex-row items-center w-full lg:w-auto justify-between lg:justify-end gap-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("span",{className:"hidden lg:block text-med-em text-sm font-semibold whitespace-nowrap",children:"Go To Page"}),e.jsx(Ae,{className:"!w-[68px]",size:"sm",variant:"outlined",value:String(x.pageIndex+1),items:Array.from({length:o||1},(N,v)=>Cr(v+1)),onChange:u,showLeadingIcon:!1,customHeight:"28px",customRadius:"8px",menuSize:"sm"}),e.jsxs("span",{className:"text-med-em text-sm font-semibold whitespace-nowrap",children:["of ",o||1]})]}),e.jsx("div",{className:"px-4 flex items-center",children:e.jsx("span",{className:"w-0 border-l border-gray-300 h-[33px]"})}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(T,{onClick:p,disabled:!c,variant:"neutral",hierarchy:"tertiary",size:"sm",children:"Previous"}),e.jsx(T,{onClick:b,disabled:!d,variant:"brand",hierarchy:"primary",size:"sm",children:"Next"})]})]}),l&&e.jsx("div",{className:"flex items-center gap-x-4 flex-shrink-0",children:l})]})},xl=({title:t,search:s,actions:r,className:a})=>e.jsxs("div",{className:h.clsx("w-full px-8 py-6 bg-white border border-surface-4 rounded-t-2xl flex flex-row justify-between items-center gap-4",a),children:[t&&!s&&e.jsx("div",{className:"flex-shrink-0 text-xl font-semibold text-high-em leading-[30px]",children:t}),s&&e.jsx("div",{className:"flex-1",children:e.jsx(J,{value:s.value??"",onChange:n=>s.onChange(n.target.value),placeholder:s.placeholder??"Search...",size:"md",leadingIcon:e.jsx(z.SearchNormal1,{size:16})})}),r&&e.jsx("div",{className:"flex items-center gap-x-4 flex-shrink-0",children:r})]}),ul=({columnId:t,className:s,options:r,title:a})=>{const{table:n}=ne(),l=n.getColumn(t),[i,x]=j.useState(l?.getFilterValue()||"");if(!l||!l.getCanFilter())return null;const o=l.columnDef,c=o.filterType||"text",d=a||o.header||l.id,u=p=>{x(p),l.setFilterValue(p||void 0)},m=()=>{switch(c){case"select":return e.jsxs("select",{value:i,onChange:p=>u(p.target.value),className:"w-full border border-gray-300 rounded px-2 py-1 text-sm",children:[e.jsx("option",{value:"",children:"All"}),r?.map((p,b)=>e.jsx("option",{value:String(p.value),children:p.label},b))]});case"number":return e.jsx("input",{type:"number",value:i,onChange:p=>u(p.target.value),placeholder:`Filter ${d}...`,className:"w-full border border-gray-300 rounded px-2 py-1 text-sm"});case"date":return e.jsx("input",{type:"date",value:i,onChange:p=>u(p.target.value),className:"w-full border border-gray-300 rounded px-2 py-1 text-sm"});case"boolean":return e.jsxs("select",{value:i,onChange:p=>u(p.target.value),className:"w-full border border-gray-300 rounded px-2 py-1 text-sm",children:[e.jsx("option",{value:"",children:"All"}),e.jsx("option",{value:"true",children:"Yes"}),e.jsx("option",{value:"false",children:"No"})]});case"text":default:return e.jsx("input",{type:"text",value:i,onChange:p=>u(p.target.value),placeholder:`Filter ${d}...`,className:"w-full border border-gray-300 rounded px-2 py-1 text-sm"})}};return e.jsxs("div",{className:h.clsx("p-2 border-t border-gray-200",s),children:[e.jsx("div",{className:"text-xs font-medium text-gray-700 mb-1",children:d}),m()]})},hl=({className:t,trigger:s,position:r="right"})=>{const{table:a}=ne(),[n,l]=j.useState(!1),i=a.getAllColumns().filter(m=>m.id!=="__select"&&m.getCanHide());if(i.length===0)return null;const x=m=>{i.forEach(p=>{p.getCanHide()&&p.toggleVisibility(m)})},o=i.every(m=>m.getIsVisible()),c=i.some(m=>m.getIsVisible()),d=e.jsxs(T,{variant:"neutral",hierarchy:"tertiary",size:"sm",className:"flex items-center gap-2",children:[e.jsx(z.Eye,{size:"16"}),"Columns",e.jsx(z.ArrowDown2,{size:"16"})]}),u=r==="right"?"right-0 origin-top-right":"left-0 origin-top-left";return e.jsxs("div",{className:h.clsx("relative inline-block text-left",t),children:[e.jsx("div",{onClick:()=>l(!n),children:s||d}),n&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>l(!1)}),e.jsx("div",{className:h.clsx("absolute z-20 mt-2 w-56 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",u),children:e.jsxs("div",{className:"py-1",children:[e.jsx("div",{className:"px-4 py-2 border-b border-gray-200",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900",children:"Column Visibility"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>x(!0),className:"text-xs text-blue-600 hover:text-blue-800",disabled:o,children:"All"}),e.jsx("span",{className:"text-gray-300",children:"|"}),e.jsx("button",{onClick:()=>x(!1),className:"text-xs text-blue-600 hover:text-blue-800",disabled:!c,children:"None"})]})]})}),e.jsx("div",{className:"max-h-60 overflow-y-auto",children:i.map(m=>{const p=m.getIsVisible(),b=typeof m.columnDef.header=="string"?m.columnDef.header:m.id;return e.jsxs("div",{className:"px-4 py-2 hover:bg-gray-50 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(ue,{checked:p,onChange:m.getToggleVisibilityHandler(),size:"small"}),e.jsx("label",{htmlFor:`column-${m.id}`,className:"ml-2 text-sm text-gray-700 cursor-pointer",onClick:w=>{w.stopPropagation(),m.toggleVisibility()},children:b})]}),e.jsx("button",{onClick:w=>{w.stopPropagation(),m.toggleVisibility()},className:"p-1 rounded hover:bg-gray-200",children:p?e.jsx(z.Eye,{size:"16",className:"text-gray-600"}):e.jsx(z.EyeSlash,{size:"16",className:"text-gray-400"})})]},m.id)})})]})})]})]})},ml=({value:t,config:s})=>{const r=s?.size||"sm";return e.jsx(Oe,{size:r,initials:String(t||"")})},fl=({value:t,config:s})=>{const r=s?.size||"xs",a=s?.variantMap||{},n=s?.variant||"secondary",l=String(t||"").toLowerCase(),i=a[l]||n;return e.jsx(Ce,{variant:i,size:r,children:String(t||"")})},pl=({value:t})=>{const s=String(t||"");return e.jsx("a",{href:`mailto:${s}`,className:"text-primary-900 hover:underline",children:s})},$t=({value:t})=>e.jsx("span",{children:String(t||"")}),gl=({value:t})=>{const s=typeof t=="number"?t:parseFloat(String(t||"0"));return e.jsx("span",{children:s.toLocaleString()})},bl=({value:t})=>{if(!t)return e.jsx("span",{children:"-"});const s=t instanceof Date?t:new Date(String(t));return e.jsx("span",{children:s.toLocaleDateString()})},jl=({value:t})=>{const s=!!t;return e.jsx("span",{className:s?"text-success-600":"text-gray-400",children:s?"✓":"✗"})},vl={avatar:ml,tag:fl,email:pl,text:$t,number:gl,date:bl,boolean:jl,custom:$t};function yr(t){const s=vl[t.dataType];return{id:t.id,header:t.header,sortable:t.sortable,filterable:t.filterable,width:t.width,filterType:t.filterConfig?.type,filterOptions:t.filterConfig?.options,component:({value:r,row:a,rowIndex:n})=>s({value:r,row:a,rowIndex:n,config:t.componentProps}),accessor:r=>r[t.id]}}function wl(t){return t.map(s=>yr(s))}function Cl(t){return[{id:"__select",header:"",type:"select",width:"w-16"},...t]}const Nr={title:"User Management",columns:[{id:"avatar",header:"Avatar",dataType:"avatar",componentProps:{size:"sm"}},{id:"name",header:"Name",dataType:"text",sortable:!0,filterable:!0,filterConfig:{type:"text"}},{id:"email",header:"Email",dataType:"email",filterable:!0,filterConfig:{type:"text"}},{id:"status",header:"Status",dataType:"tag",filterable:!0,filterConfig:{type:"select",options:[{label:"Active",value:"active"},{label:"Inactive",value:"inactive"},{label:"Pending",value:"pending"}]},componentProps:{size:"xs",variantMap:{active:"success",inactive:"quaternary",pending:"info"}}},{id:"role",header:"Role",dataType:"text",filterable:!0,filterConfig:{type:"select",options:[{label:"Admin",value:"Admin"},{label:"User",value:"User"},{label:"Manager",value:"Manager"}]}},{id:"department",header:"Department",dataType:"text"},{id:"loginCount",header:"Logins",dataType:"number",sortable:!0},{id:"isVerified",header:"Verified",dataType:"boolean"},{id:"createdAt",header:"Created",dataType:"date",sortable:!0}],features:{selectable:!0,virtualized:!1,pagination:!0,sorting:!0,filtering:!0},pagination:{itemsPerPage:10,currentPage:1,totalPages:5,totalItems:50}},kr=[{id:1,avatar:"JD",name:"John Doe",email:"john.doe@example.com",status:"active",role:"Admin",department:"Engineering",createdAt:"2024-01-15",loginCount:142,isVerified:!0},{id:2,avatar:"JS",name:"Jane Smith",email:"jane.smith@example.com",status:"active",role:"Manager",department:"Marketing",createdAt:"2024-02-20",loginCount:98,isVerified:!0},{id:3,avatar:"RJ",name:"Robert Johnson",email:"robert.j@example.com",status:"pending",role:"User",department:"Sales",createdAt:"2024-03-10",loginCount:5,isVerified:!1},{id:4,avatar:"MW",name:"Maria Williams",email:"maria.w@example.com",status:"active",role:"User",department:"HR",createdAt:"2024-01-25",loginCount:67,isVerified:!0},{id:5,avatar:"DB",name:"David Brown",email:"david.b@example.com",status:"inactive",role:"User",department:"Engineering",createdAt:"2023-12-05",loginCount:234,isVerified:!0}],yl={config:Nr,data:kr},Sr={title:"Product Inventory",columns:[{id:"sku",header:"SKU",dataType:"text",sortable:!0},{id:"name",header:"Product Name",dataType:"text",sortable:!0,filterable:!0,filterConfig:{type:"text"}},{id:"category",header:"Category",dataType:"tag",filterable:!0,filterConfig:{type:"select",options:[{label:"Electronics",value:"Electronics"},{label:"Clothing",value:"Clothing"},{label:"Food",value:"Food"}]},componentProps:{size:"xs",variant:"secondary"}},{id:"price",header:"Price",dataType:"number",sortable:!0,filterConfig:{type:"number"}},{id:"stock",header:"Stock",dataType:"number",sortable:!0},{id:"isActive",header:"Active",dataType:"boolean",filterable:!0,filterConfig:{type:"boolean"}},{id:"lastUpdated",header:"Last Updated",dataType:"date",sortable:!0}],features:{selectable:!0,virtualized:!1,pagination:!0,sorting:!0,filtering:!0},pagination:{itemsPerPage:15,currentPage:1,totalPages:3,totalItems:45}},Lr=[{id:1,sku:"ELEC-001",name:"Wireless Mouse",category:"Electronics",price:29.99,stock:150,isActive:!0,lastUpdated:"2024-03-15"},{id:2,sku:"CLTH-045",name:"Cotton T-Shirt",category:"Clothing",price:19.99,stock:300,isActive:!0,lastUpdated:"2024-03-14"},{id:3,sku:"FOOD-112",name:"Organic Coffee",category:"Food",price:12.5,stock:0,isActive:!1,lastUpdated:"2024-02-28"},{id:4,sku:"ELEC-089",name:"USB-C Cable",category:"Electronics",price:15.99,stock:500,isActive:!0,lastUpdated:"2024-03-16"},{id:5,sku:"CLTH-098",name:"Denim Jeans",category:"Clothing",price:59.99,stock:75,isActive:!0,lastUpdated:"2024-03-10"}],Nl={config:Sr,data:Lr},Ft={line:{list:"flex gap-x-9 border-b border-surface-3",tab:"relative pb-8 px-2 font-medium text-[14px] transition-colors focus:outline-none",selected:"text-high-em after:absolute after:bottom-[-1px] after:left-0 after:right-0 after:h-1 after:bg-black",unselected:"text-low-em"},"line-full-width":{list:"flex border-b border-surface-3",tab:"flex flex-1 justify-center relative pb-8 px-2 font-medium text-sm transition-colors focus:outline-none",selected:"text-high-em after:absolute after:bottom-[-1px] after:left-0 after:right-0 after:h-1 after:bg-black",unselected:"text-low-em"},pill:{list:"flex gap-x-12",tab:"font-medium text-sm transition-colors focus:outline-none px-6 rounded-md",selected:"bg-surface-2 text-high-em py-4",unselected:"text-low-em px-3 py-2 hover:bg-surface-2/50"}},Ye={none:"",xs:"mt-2",sm:"mt-4",md:"mt-6",lg:"mt-8",xl:"mt-12"},zr=({variant:t="line",tabs:s,className:r,selectedIndex:a,onChange:n,customPaddingBottom:l,contentSpacing:i="sm",fullHeight:x=!1,iconLabelGap:o=4,iconSize:c=16,showBorder:d=!0,headerHeight:u,tabPaddingX:m,tabListClassName:p})=>{const b=t==="line-icons"||t==="only-icon"?Ft.line:Ft[t],w=d?b.list:b.list.replace(/border-b\s+border-surface-3/g,"").trim(),g={};u&&(g.height=`${u}px`,g.alignItems="flex-end");const f=()=>typeof i=="number"?"":i in Ye?Ye[i]:Ye.sm,C=typeof i=="number"?{marginTop:`${i}px`}:{},N=x?{height:"100%",maxHeight:"100%",overflow:"hidden",display:"flex",flexDirection:"column"}:{},v=x?{height:"100%",maxHeight:"100%",flex:1}:{};return e.jsx("div",{className:h.clsx("w-full",r),style:N,children:e.jsxs(O.Tab.Group,{selectedIndex:a,onChange:n,as:"div",className:x?"flex flex-col overflow-hidden":void 0,style:v,children:[e.jsx(O.Tab.List,{className:h.clsx(w,p),style:g,children:s.map(y=>e.jsx(O.Tab,{className:({selected:M})=>h.clsx(b.tab,M?b.selected:b.unselected),style:{...l?{paddingBottom:l}:{},...m!==void 0?{paddingLeft:`${m}px`,paddingRight:`${m}px`}:{}},children:({selected:M})=>{const I=M&&y.selectedIcon?y.selectedIcon:y.icon;return e.jsxs("div",{className:h.clsx("flex items-center",re(o)),children:[(t==="line-icons"||t==="only-icon")&&I&&k.default.isValidElement(I)&&k.default.cloneElement(I,{size:c,color:"currentColor"}),t!=="only-icon"&&y.label]})}},y.id))}),e.jsx(O.Tab.Panels,{className:f(),style:x?{display:"flex",flexDirection:"column",flex:1,minHeight:0,overflow:"hidden",...C}:C,children:s.map(y=>e.jsx(O.Tab.Panel,{style:x?{minHeight:0,flex:1,overflowY:"auto",maxHeight:"100%"}:void 0,children:y.content},y.id))})]})})},Mr=({tabs:t,className:s,selectedIndex:r,onChange:a,onAddTab:n,onArrowRightClick:l,onCloseTab:i,tabWidth:x,scrollDistance:o=300})=>{const c=j.useRef(null),[d,u]=j.useState(!1),[m,p]=j.useState(!1),b=()=>{if(!c.current)return;const{scrollLeft:f,scrollWidth:C,clientWidth:N}=c.current;u(f>0),p(f<C-N-1)};j.useEffect(()=>{b();const f=c.current;if(f){f.addEventListener("scroll",b);const C=new ResizeObserver(b);return C.observe(f),()=>{f.removeEventListener("scroll",b),C.disconnect()}}},[t]);const w=()=>{c.current&&c.current.scrollBy({left:-o,behavior:"smooth"})},g=()=>{c.current&&c.current.scrollBy({left:o,behavior:"smooth"})};return e.jsx("div",{className:h.clsx("w-full h-full",s),children:e.jsx(O.Tab.Group,{className:"h-full w-full",selectedIndex:r,onChange:a,children:e.jsxs("div",{className:"relative flex items-center border-x border-surface-3 h-full w-full",children:[d&&e.jsx("button",{onClick:w,className:"h-full hover:bg-surface-bg cursor-pointer px-6 border-r border-surface-3 shrink-0","aria-label":"Scroll left",children:e.jsx($,{className:"text-med-em",size:"xs",children:e.jsx(z.ArrowLeft2,{})})}),e.jsx("div",{ref:c,className:"flex-1 h-full w-full overflow-x-auto [&::-webkit-scrollbar]:!hidden [-ms-overflow-style:none!important] [scrollbar-width:none!important]",children:e.jsx(O.Tab.List,{className:"flex min-w-full h-full ",children:t.map((f,C)=>e.jsx(O.Tab,{as:"div",className:({selected:N})=>h.clsx("relative py-3 font-medium border-r border-surface-3","whitespace-nowrap h-full flex items-center cursor-pointer","outline-none focus:outline-none focus-visible:outline-none focus:ring-0 active:outline-none",x?"":"flex-1",N?"text-high-em bg-white after:absolute border-b-2 border-b-black":"text-low-em bg-surface-bg hover:bg-surface-2"),style:x?{width:`${x}px`,minWidth:`${x}px`}:void 0,children:({selected:N})=>e.jsxs("div",{className:"flex items-center justify-between gap-8 p-8 w-full",children:[e.jsx("span",{className:`!truncate text-sm text-high-em font-medium ${N?"text-high-em":"text-low-em"}`,children:f.label}),f.closeable&&N&&i&&e.jsx(T,{onClick:v=>{v.stopPropagation(),i(C)},className:"cursor-pointer",leadingIcon:e.jsx($,{size:"xs",className:"text-med-em",children:e.jsx(ie,{})}),"aria-label":"Close tab",icons:"only",variant:"neutral",hierarchy:"secondary"})]})},f.id))})}),e.jsxs("div",{className:"flex items-center h-full",children:[m&&e.jsx("button",{onClick:l||g,className:"h-full hover:bg-surface-bg cursor-pointer px-6 border-x border-surface-3","aria-label":"Scroll right",children:e.jsx($,{className:"text-low-em",size:"xs",children:e.jsx(z.ArrowRight2,{})})}),n&&e.jsx("button",{onClick:n,className:`h-full hover:bg-surface-bg cursor-pointer px-6 ${m?"":"border-l border-surface-3"}`,"aria-label":"Add new tab",children:e.jsx($,{className:"text-low-em",size:12,children:e.jsx(z.Add,{})})})]})]})})})};Mr.displayName="HeaderTabs";const kl={default:{background:"bg-surface-2 hover:bg-surface-3",border:"border-transparent",hint:"text-med-em",placeholder:"placeholder-placeholder",text:"text-med-em"},danger:{background:"bg-danger-accent-1",border:"border-danger-accent-2",hint:"text-danger-em",placeholder:"placeholder-danger-em",text:"text-danger-em"}},Sl={sm:{fontSize:"text-xs",labelFontSize:"text-[10px]",hintFontSize:"text-[10px]",hintIconSize:12},md:{fontSize:"text-sm",labelFontSize:"text-xs",hintFontSize:"text-xs",hintIconSize:12},lg:{fontSize:"text-base",labelFontSize:"text-sm",hintFontSize:"text-sm",hintIconSize:14}},we={wrapper:"bg-surface-3 pointer-events-none border-transparent",label:"!text-disabled",hint:"!text-disabled",text:"disabled:text-disabled",placeholder:"disabled:placeholder-disabled"},Ir=({variant:t="default",size:s="md",label:r,hint:a,hintIconVariant:n,disabled:l,resize:i="vertical",className:x,customFontWeight:o,customBackground:c,...d})=>{const u=kl[t],m=Sl[s],p=o||void 0,b=c?/^[a-z]+-[a-z0-9-]+$/i.test(c)?`var(--${c})`:c:void 0,w={none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"};return e.jsxs("div",{className:h.clsx("flex flex-col gap-1.5",x),children:[r&&e.jsx("label",{htmlFor:d.id,className:h.clsx("font-semibold text-med-em",m.labelFontSize,l&&we.label),children:r}),e.jsx("div",{className:h.clsx("relative flex items-center border rounded-xl transition-colors duration-200 flex-1",!c&&u.background,u.border,l&&we.wrapper),style:{backgroundColor:b},children:e.jsx("textarea",{disabled:l,className:h.clsx("w-full h-full bg-transparent px-3.5 py-2.5 focus:outline-none min-h-[80px]",m.fontSize,!o&&"font-medium",u.text,u.placeholder,w[i],l&&we.text,l&&we.placeholder),style:{fontWeight:p},...d})}),a&&e.jsx(le,{icon:e.jsx(z.InfoCircle,{variant:n}),label:a,iconSize:m.hintIconSize,gap:1,iconColorClass:h.clsx(u.hint,l&&we.hint),labelColorClass:h.clsx(u.hint,l&&we.hint),className:h.clsx(m.hintFontSize,"font-semibold")})]})};function Ll({theme:t="light",onToggle:s,className:r}){return e.jsx("button",{onClick:s,className:r||"rounded-lg border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-dark-700 hover:bg-gray-50 dark:border-surface-3 dark:bg-surface-2 dark:text-low-em dark:hover:bg-surface-3","aria-label":"Toggle theme",children:t==="dark"?e.jsx("span",{children:"Light Mode"}):e.jsx("span",{children:"Dark Mode"})})}const zl="bg-white rounded-[20px] shadow-xl py-6 px-10 flex items-center gap-6 max-w-md leading-10",Ml={default:"border border-surface-3",custom:"border border-surface-3",danger:"border border-danger-accent-3",success:"border border-success-accent-3",warning:"border border-warning-accent-3"},Pr=18,Tr="text-base font-bold text-high-em leading-10",Rr="text-sm text-high-em leading-9",Dr=(t,s)=>W.twMerge(zl,Ml[t||"default"],s),Hr=j.forwardRef((t,s)=>{const{title:r,description:a,variant:n="default",action:l,onOpenChange:i,duration:x=5e3,children:o,icon:c,className:d,iconSize:u=Pr,...m}=t,p=n!=="custom"||c;return e.jsxs(ee.Root,{ref:s,duration:x,onOpenChange:i,className:Dr(n,d),...m,children:[p&&e.jsx("div",{children:n==="custom"&&c?c:e.jsx(it,{size:u})}),e.jsxs("div",{className:"flex-1",children:[r&&e.jsx(ee.Title,{className:Tr,children:r}),a&&e.jsx(ee.Description,{className:Rr,children:a})]}),l&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px h-8 bg-surface-3"}),e.jsx(ee.Action,{asChild:!0,altText:l.label,onClick:l.onClick,children:e.jsx(T,{className:"cursor-pointer",variant:"neutral",hierarchy:"quaternary",size:"md",icons:"none",children:l.label})})]}),e.jsx(ee.Close,{asChild:!0,className:"shrink-0 flex items-center justify-center",children:e.jsx(T,{className:"cursor-pointer",variant:"neutral",hierarchy:"secondary",size:"xs",icons:"only",leadingIcon:e.jsx(ie,{className:"text-high-em",size:8})})}),o]})});Hr.displayName="Toast";const Ar=j.createContext(null),Il=()=>{const t=j.useContext(Ar);if(!t)throw new Error("useToast must be used within a ToastProvider");return t},Pl=({children:t})=>{const[s,r]=j.useState([]),a=j.useCallback(l=>{const{title:i,description:x,variant:o="default",action:c,duration:d=5e3}=l,u={id:Math.random().toString(36).substr(2,9),title:i,description:x,variant:o,action:c,duration:d};r(m=>[...m,u])},[]),n=j.useCallback((l,i)=>{l||r(x=>x.filter(o=>o.id!==i))},[]);return e.jsx(Ar.Provider,{value:{toast:a},children:e.jsxs(ee.Provider,{swipeDirection:"right",children:[t,e.jsx(ee.Viewport,{className:"fixed top-5 right-5 z-[999] flex flex-col gap-4 w-full max-w-[400px]"}),s.map(l=>e.jsxs(ee.Root,{duration:l.duration,onOpenChange:i=>n(i,l.id),className:Dr(l.variant),children:[l.variant!=="custom"&&e.jsx("div",{className:"shrink-0 w-10 h-12 flex items-center justify-center",children:e.jsx(it,{size:Pr})}),e.jsxs("div",{className:"flex-1",children:[l.title&&e.jsx(ee.Title,{className:Tr,children:l.title}),l.description&&e.jsx(ee.Description,{className:Rr,children:l.description})]}),l.action&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-px h-12 bg-surface-3"}),e.jsx(ee.Action,{asChild:!0,altText:l.action.label,onClick:l.action.onClick,children:e.jsx(T,{className:"cursor-pointer",variant:"neutral",hierarchy:"quaternary",size:"md",icons:"none",children:l.action.label})})]}),e.jsx(ee.Close,{asChild:!0,className:"shrink-0 flex items-center justify-center",children:e.jsx(T,{className:"cursor-pointer",variant:"neutral",hierarchy:"secondary",size:"xs",icons:"only",leadingIcon:e.jsx(ie,{className:"text-high-em",size:8})})})]},l.id))]})})},Tl={small:{wrapper:"w-[36px] h-[20px]",knob:"w-[16px] h-[16px]",knobOn:"translate-x-[16px]"},medium:{wrapper:"w-[44px] h-[24px]",knob:"w-[20px] h-[20px]",knobOn:"translate-x-[20px]"},large:{wrapper:"w-[52px] h-[28px]",knob:"w-[24px] h-[24px]",knobOn:"translate-x-[24px]"}},he={bgOff:"bg-surface-1 hover:bg-surface-2",bgOn:"bg-black hover:bg-low-em",bgDisabled:"bg-surface-3",knob:"bg-white shadow-[0_1px_2px_0_rgba(10,13,18,0.06)]",knobDisabled:"bg-surface-4",focus:"peer-focus:ring-2 peer-focus:ring-low-em peer-active:ring-2 peer-active:ring-low-em",disabled:"cursor-not-allowed"},Er=({size:t="medium",checked:s,disabled:r,className:a,...n})=>{const l=Tl[t];return e.jsxs("label",{className:h.clsx("relative inline-flex items-center",r?he.disabled:"cursor-pointer",a),children:[e.jsx("input",{type:"checkbox",className:"sr-only peer",checked:s,disabled:r,...n}),e.jsx("div",{className:h.clsx(l.wrapper,"relative rounded-full transition-colors duration-200 ease-in-out","flex items-center",r?he.bgDisabled:s?he.bgOn:he.bgOff,!r&&he.focus),children:e.jsx("div",{className:h.clsx(l.knob,r?he.knobDisabled:he.knob,"absolute top-[2px] left-[2px] rounded-full transition-transform duration-200 ease-in-out",s&&l.knobOn)})})]})},Mt=k.default.memo(({children:t,className:s,borderSide:r="none",borderStyle:a="surface-3"})=>{const n=k.default.useMemo(()=>r==="none"?"":`${r==="left"?"border-l":"border-r"} ${a==="surface-3"?"border-surface-3":"border-surface-4"}`,[r,a]);return e.jsx("div",{className:`h-full w-full flex flex-col ${n} ${s||""}`,children:t})});Mt.displayName="TypesPanel";const Rl=({categories:t=[],onItemClick:s,renderItem:r,className:a=""})=>{const n=l=>{s&&s(l)};return e.jsxs("div",{className:`px-6 py-8 flex-1 overflow-y-auto ${a}`,children:[t.map((l,i)=>e.jsxs("div",{className:"mb-8 last:mb-0",children:[e.jsx("h3",{className:"font-inter font-semibold text-sm text-med-em mb-8",children:l.title}),e.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(70px,1fr))] gap-6",children:l.items.map(x=>e.jsx(k.default.Fragment,{children:r?r(x,{onClick:()=>n(x.id)}):e.jsx(qs,{icon:x.icon,text:x.label,onClick:()=>n(x.id)})},x.id))}),i<t.length-1&&e.jsx("div",{className:"mt-8",children:e.jsx(K,{})})]},l.id)),t.length===0&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-sm text-med-em",children:"No hay elementos en esta categoría"})})]})},Dl=({categories:t=[],onItemClick:s,renderItem:r,className:a=""})=>{const n=l=>{s&&s(l)};return e.jsx(X.Provider,{delayDuration:300,children:e.jsxs("div",{className:`px-6 py-8 flex-1 overflow-y-auto ${a}`,children:[t.map((l,i)=>e.jsxs("div",{className:"mb-8 last:mb-0",children:[e.jsx("h3",{className:"font-inter font-semibold text-sm text-med-em mb-8",children:l.title}),e.jsx("div",{className:"flex flex-col gap-6",children:l.items.map(x=>e.jsx(k.default.Fragment,{children:r?r(x,{onClick:()=>n(x.id)}):e.jsx(mt,{leadingIcon:e.jsx(z.HambergerMenu,{size:20}),leadingIconColor:"text-disabled",icon:e.jsx(ot,{}),iconColor:"text-disabled",tooltipContent:`Add ${x.label} field type`,onClick:()=>n(x.id),children:x.label})},x.id))}),i<t.length-1&&e.jsx("div",{className:"mt-8",children:e.jsx(K,{})})]},l.id)),t.length===0&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-sm text-med-em",children:"No hay elementos en esta categoría"})})]})})},Hl=[{id:"todos",title:"Todos",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1},{id:"basicos",title:"Básicos",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1},{id:"avanzados",title:"Avanzados",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1},{id:"multimedia",title:"Multimedia",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1},{id:"relaciones",title:"Relaciones",showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1}],Al=[{value:"list",icon:e.jsx(z.Task,{})},{value:"grid",icon:e.jsx(z.Category,{})}],El=({className:t="",selectedType:s,onTypeChange:r,selectedView:a,onViewChange:n,actions:l,categories:i,placeholder:x="All",showLabel:o=!0})=>{const[c,d]=j.useState("basicos"),[u,m]=j.useState("list"),p=s!==void 0?s:c,b=a!==void 0?a:u,w=f=>{r?r(f):d(f)},g=f=>{n?n(f):m(f)};return e.jsx(X.Provider,{delayDuration:300,children:e.jsxs("div",{className:`flex flex-col ${t}`,children:[o&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-6 pt-9 pb-8 flex items-center justify-between",children:[e.jsx(rr,{tooltipContent:"Select and configure the type of data field you want to create",labelClassName:"font-inter font-semibold text-sm text-high-em",className:"flex items-center gap-1",children:"Types"}),l&&e.jsx("div",{children:l})]}),e.jsx(K,{})]}),e.jsxs("div",{className:"flex items-center justify-between gap-4 py-8 px-6",children:[e.jsx("div",{className:"flex-1",children:e.jsx(Ae,{items:i?i.map(f=>({id:f.id,title:f.title,showCheckbox:!1,showLeadingIcon:!1,showTrailingIcon:!1,className:"!h-[34px]"})):Hl.map(f=>({...f,showLeadingIcon:!1,className:"!h-[34px]"})),value:p,onChange:w,placeholder:x,size:"md",menuSize:"sm",leadingIcon:e.jsx(z.SearchNormal1,{size:16}),showLeadingIcon:!0})}),e.jsx(de,{options:Al,value:b,onChange:g,size:"sm"})]}),e.jsx(K,{})]})})},Vl=({className:t="",searchQuery:s,onSearchChange:r,searchPlaceholder:a="Search...",selectedView:n,onViewChange:l,viewOptions:i=[],buttonGroupSize:x="sm"})=>{const[o,c]=j.useState(""),[d,u]=j.useState("list"),m=s!==void 0?s:o,p=n!==void 0?n:d,b=j.useCallback(g=>{const f=g.target.value;r?r(f):c(f)},[r]),w=g=>{l?l(g):u(g)};return e.jsxs("div",{className:`flex flex-col ${t}`,children:[e.jsx(K,{}),e.jsxs("div",{className:"flex items-center justify-between gap-4 py-8 px-6",children:[e.jsx("div",{className:"flex-1",children:e.jsx(J,{type:"search",placeholder:a,value:m,onChange:b,trailingIcon:e.jsx(z.SearchNormal1,{size:16,color:"currentColor"})})}),e.jsx(de,{options:i,value:p,onChange:w,size:x})]}),e.jsx(K,{})]})},Vr=({title:t,backButton:s,actions:r,className:a})=>e.jsxs("div",{className:h.clsx("flex items-center gap-2","h-14 px-4","border-b border-surface-3",a),children:[s&&e.jsx("button",{type:"button",onClick:s.onClick,"aria-label":s["aria-label"]||"Go back",className:h.clsx("size-[42px]","flex items-center justify-center shrink-0","rounded-lg","hover:bg-surface-1 transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-secondary-main"),children:e.jsx(z.ArrowLeft2,{size:20,color:"currentColor",className:"text-high-em"})}),e.jsxs("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[e.jsx("h2",{className:h.clsx("text-sm font-semibold leading-[22px]","text-high-em","truncate"),children:t}),r&&e.jsx("div",{className:"flex items-center gap-2 shrink-0",children:r})]})]});Vr.displayName="PanelHeader";const Wl=({user:t,sections:s,align:r="right",offset:a=8,className:n,avatarSize:l="md"})=>{const[i,x]=j.useState(!1),o=j.useRef(null),c=j.useRef(null);j.useEffect(()=>{const m=p=>{o.current&&!o.current.contains(p.target)&&c.current&&!c.current.contains(p.target)&&x(!1)};if(i)return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[i]);const d=m=>{!m.disabled&&m.onClick&&(m.onClick(),x(!1))},u=(m,p)=>{m.switch?.onChange&&m.switch.onChange(p)};return e.jsxs("div",{className:h.clsx("relative inline-block",n),children:[e.jsx("div",{ref:c,onClick:()=>x(!i),className:"cursor-pointer",children:e.jsx(Oe,{size:l,imageUrl:t.avatar,initials:t.initials||t.name.charAt(0),statusBadge:t.statusBadge})}),i&&e.jsxs("div",{ref:o,className:h.clsx("absolute z-50 mt-2 min-w-[280px] rounded-lg bg-white shadow-lg border border-surface-3",r==="right"?"right-0":"left-0"),style:{top:`calc(100% + ${a}px)`},children:[e.jsxs("div",{className:"px-10 py-8 border-b border-surface-3",children:[e.jsx("p",{className:"text-sm font-semibold text-high-em",children:t.name}),t.email&&e.jsx("p",{className:"text-xs text-low-em mt-1",children:t.email})]}),e.jsx("div",{className:"py-3",children:s.map((m,p)=>e.jsxs(k.default.Fragment,{children:[m.map(b=>e.jsxs("button",{onClick:()=>d(b),disabled:b.disabled||!!b.switch,className:h.clsx("w-full px-10 py-4 text-left text-sm flex items-center gap-3 transition-colors",!b.switch&&"hover:bg-surface-1",b.destructive?"text-danger-main":"text-high-em",b.disabled&&"opacity-50 cursor-not-allowed"),children:[b.icon&&e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center text-current",children:b.icon}),e.jsx("span",{className:"flex-1 font-normal",children:b.label}),b.trailing&&e.jsx("span",{className:"flex-shrink-0",children:b.trailing}),!b.trailing&&b.badge&&e.jsx(ce,{theme:b.badge.theme||"success",size:"xs",variant:"simple",children:b.badge.label}),!b.trailing&&b.switch&&e.jsx(Er,{size:"small",checked:b.switch.checked,onChange:w=>u(b,w.target.checked),onClick:w=>w.stopPropagation()})]},b.id)),p<s.length-1&&e.jsx("div",{className:"my-3 border-t border-surface-3"})]},p))})]})]})},$l=({selected:t,onSelect:s,disabled:r=!1,onCancel:a,onAccept:n,extraMonth:l=!1,pickType:i="range",className:x="",cancelLabel:o="Cancel",acceptLabel:c="Accept"})=>{const[d,u]=j.useState(t);j.useEffect(()=>{u(t)},[t]);const m=d,p=f=>{u(f),s&&s(f)},b=()=>{u(void 0),a&&a()},w=()=>{n&&n(m)},g=i==="range"?{mode:"range",selected:m,onSelect:p}:{mode:"single",selected:m?.from,onSelect:f=>p(f?{from:f}:void 0)};return e.jsxs("div",{className:W.twMerge(h.clsx("font-family-inter bg-white border border-surface-3 rounded-[20px] w-fit",r&&"opacity-50 pointer-events-none",x)),children:[e.jsx(Ur.DayPicker,{...g,disabled:r,numberOfMonths:l?2:1,showOutsideDays:!0,className:"datepicker-calendar p-2.5",components:{Chevron:({orientation:f})=>f==="left"?e.jsx(z.ArrowLeft2,{size:16,color:"var(--high-em)"}):e.jsx(z.ArrowRight2,{size:16,color:"var(--high-em)"})}}),e.jsx("div",{className:"border-t border-surface-3 px-2.5 py-2.5 pl-5 self-end justify-end",children:e.jsxs("div",{className:"flex gap-2 self-end justify-end",children:[e.jsx(T,{className:"mr-8",variant:"neutral",size:"sm",hierarchy:"secondary",onClick:b,disabled:r,children:o}),e.jsx(T,{variant:"brand",size:"sm",hierarchy:"primary",onClick:w,disabled:r,children:c})]})})]})},It=({className:t,icon:s,label:r,description:a,actions:n,iconType:l="default",iconVariant:i="secondary",iconSize:x="sm",linkProps:o,badge:c,bottomContent:d,labelInlineContent:u,contentGap:m=2,classNameActions:p,...b})=>e.jsxs("div",{className:h.clsx("flex flex-row gap-8 items-center",t),...b,children:[s&&e.jsx(qe,{type:l,variant:i,size:x,children:s}),e.jsxs("div",{className:h.clsx("flex flex-1 flex-col",re(m)),children:[e.jsxs("div",{className:h.clsx("flex flex-row",c?"justify-between gap-2":""),children:[e.jsxs("div",{className:"flex flex-row gap-6 items-center",children:[o?e.jsx(xe,{className:"w-fit",...o,children:r}):e.jsx("span",{className:"text-high-em text-md font-medium",children:r}),u&&e.jsx("div",{children:u})]}),c&&e.jsx("div",{children:c})]}),a&&e.jsx("span",{className:"text-med-em text-sm font-normal",children:a}),d&&e.jsx("div",{children:d})]}),n&&e.jsx("div",{className:h.clsx("flex gap-8",p),children:n})]}),Fl=({className:t,planLabel:s,priceLabel:r,timeLabel:a,nextPaymentLabel:n,dateLabel:l,items:i,buttonLabel1:x,onClickButton1:o,buttonLabel2:c,onClickButton2:d,...u})=>e.jsxs("div",{className:h.clsx("flex flex-col border border-surface-3 rounded-8 w-full",t),...u,children:[e.jsxs("div",{className:"flex flex-row px-10 py-8 border-b border-b-surface-3 gap-8",children:[e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[e.jsx("span",{className:"flex text-med-em font-medium text-sm",children:s}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[e.jsx("span",{className:"text-high-em font-semibold text-3xl font-family-space-grotesk",children:r}),e.jsxs("span",{className:"text-med-em text-sm font-normal",children:["/ ",a]})]})]}),e.jsxs("div",{className:"flex flex-col self-center ",children:[e.jsx("span",{className:"font-normal text-xs text-right text-med-em",children:n}),e.jsx("span",{className:"text-md text-right font-medium text-high-em",children:l})]})]}),e.jsxs("ul",{className:"flex flex-col p-10 gap-12",children:[e.jsx("div",{className:"flex flex-col gap-10",children:i.map((m,p)=>e.jsx(k.default.Fragment,{children:e.jsx("li",{children:e.jsx(It,{icon:m.icon,iconType:"default",iconVariant:"secondary",iconSize:"sm",label:m.itemLabel,badge:e.jsx(ce,{variant:"simple",theme:m.badgeTheme,children:m.badge}),bottomContent:e.jsx(ht,{progress:m.progress})})})},p))}),e.jsxs("div",{className:"flex flex-row gap-6",children:[e.jsx(T,{className:"w-1/2",size:"md",variant:"brand",hierarchy:"primary",onClick:o,children:x}),e.jsx(T,{className:"w-1/2",size:"md",variant:"neutral",hierarchy:"tertiary",onClick:d,children:c})]})]})]}),Zl=({className:t,title:s,subtitle:r,actionButtonLabel:a,actionButtonLabelOnClick:n,extraComponent:l,items:i,...x})=>e.jsxs("div",{className:h.clsx("flex flex-col border border-surface-3 rounded-8 w-full",t),...x,children:[e.jsxs("div",{className:"flex flex-row px-10 py-8 border-b border-b-surface-3",children:[e.jsxs("div",{className:"flex flex-1 flex-col content-center",children:[e.jsx("h3",{className:"text-high-em font-semibold",children:s}),e.jsx("span",{className:"text-med-em text-sm font-normal",children:r})]}),a&&e.jsx("div",{className:"flex self-center",children:e.jsx(T,{size:"sm",variant:"neutral",hierarchy:"tertiary",onClick:n,children:a})})]}),e.jsxs("div",{className:"flex flex-col p-10 gap-10",children:[e.jsx("div",{className:"flex flex-col gap-6",children:i.map((o,c)=>e.jsxs(k.default.Fragment,{children:[c>0&&e.jsx(K,{}),e.jsx(It,{icon:o.icon,label:o.label,description:o.description,actions:(o.buttonLabel||o.buttonIcon)&&e.jsx(T,{size:"sm",onClick:o.buttonOnClick,...o.buttonLabel?{variant:"neutral",hierarchy:"tertiary"}:{icons:"only",variant:"neutral",hierarchy:"secondary",leadingIcon:o.buttonIcon||e.jsx(ct,{})},children:o.buttonLabel})})]},c))}),l&&e.jsx("div",{className:"flex flex-1",children:l})]})]}),Ol=({className:t,title:s,subtitle:r,buttonItems:a,...n})=>e.jsxs("div",{className:h.clsx("flex flex-col gap-8 p-8 bg-surface-1 rounded-8 w-full",t),...n,children:[e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx("h3",{className:"text-high-em font-semibold text-xl",children:s}),e.jsx("span",{className:"text-med-em text-sm font-normal",children:r})]}),e.jsx("div",{className:"flex flex-col gap-4",children:a.map((l,i)=>e.jsx(T,{children:l.label,leadingIcon:l.icon,size:"sm",icons:"leading",onClick:l.buttonOnClick,...l.variant||l.hierarchy?{variant:l.variant,hierarchy:l.hierarchy}:{variant:"brand",hierarchy:"primary"}},i))})]}),Wr=({className:t,title:s,description:r,icon:a,onMaximize:n,onEdit:l,onCopy:i,onTrash:x,...o})=>{const[c,d]=j.useState("icon1"),u=p=>{switch(d(p),p){case"maximize":n?.();break;case"edit":l?.();break;case"copy":i?.();break;case"trash":x?.();break}},m=[{value:"maximize",icon:e.jsx(ut,{size:12})},{value:"text block",label:"Text Block"},{value:"edit",icon:e.jsx(ks,{size:12})},{value:"copy",icon:e.jsx($e,{size:12})},{value:"trash",icon:e.jsx(Fe,{size:12})}];return e.jsxs("div",{className:h.clsx("group relative flex flex-col border border-surface-3 rounded-8 w-full",t),...o,children:[e.jsxs("div",{className:"flex flex-row p-4 gap-4",children:[e.jsx("div",{children:e.jsx(qe,{variant:"secondary",size:"sm",children:a})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-high-em font-semibold text-sm font-family-space-grotesk",children:s}),e.jsx("span",{className:"text-med-em text-xs font-normal",children:r})]})]}),e.jsx("div",{className:"absolute inset-0 m-auto hidden w-fit h-fit p-4 group-hover:block",children:e.jsx(de,{options:m,value:c,onChange:u,size:"xs",variant:"brand"})})]})},Bl=({className:t,title:s,subtitle:r,image:a,imageAlt:n="Project image",actionButtons:l=[],labelIcons:i=[],...x})=>{const[o,c]=k.default.useState(!1);return e.jsxs("div",{className:h.clsx("flex flex-col rounded-2xl w-full border border-surface-3 h-full",t),...x,children:[e.jsxs("div",{className:"relative w-full h-48 overflow-hidden rounded-t-2xl",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[e.jsx("img",{src:a,alt:n,className:"w-full h-full object-cover"}),l.length>0&&o&&e.jsx("div",{className:"absolute inset-0 transition-opacity duration-300",style:{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%)"}}),l.length>0&&e.jsx("div",{className:h.clsx("absolute inset-0 flex items-center justify-center cursor-pointer gap-6 transition-opacity duration-300",o?"opacity-100":"opacity-0"),children:l.map((d,u)=>e.jsx(T,{variant:"neutral",hierarchy:"tertiary",icons:"only",leadingIcon:d.icon,size:"md",onClick:d.onClick,"aria-label":d.ariaLabel,className:"z-10 cursor-pointer"},u))})]}),e.jsxs("div",{className:"flex flex-col py-6 px-8 gap-3 bg-white rounded-b-2xl flex-1",children:[e.jsx("span",{className:"font-semibold text-high-em text-md line-clamp-1",children:s}),e.jsx("span",{className:"text-low-em text-sm font-normal line-clamp-3",children:r}),i.length>0&&e.jsx("div",{className:"flex flex-row gap-8",children:i.map((d,u)=>e.jsx(le,{gap:4,iconSize:"sm",labelSize:"sm",icon:d.icon,label:d.label},u))})]})]})},_l=({className:t,title:s,subtitle:r,icon:a,iconType:n="default",iconVariant:l="secondary",iconSize:i="sm",headerActions:x,children:o,footerText:c,footerActions:d,footerVariant:u="default",classNameHeader:m,classNameBody:p,classNameFooter:b,...w})=>{const g=s||r||x||a,f=c||d,C={default:"border-surface-3 ",danger:"bg-danger-accent-1 border-danger-accent-3",warning:"bg-warning-accent-1 border-warning-accent-3",success:"bg-success-accent-1 border-success-accent-3"};return e.jsxs("div",{className:h.clsx("flex flex-col bg-white border rounded-8 w-full",t,C[u]),...w,children:[g&&e.jsxs("div",{className:W.twMerge(h.clsx("flex flex-row gap-8 p-8 justify-between items-center",o&&"pb-0"),m),children:[e.jsxs("div",{className:"flex flex-row gap-8 items-center flex-1",children:[a&&e.jsx(qe,{type:n,variant:l,size:i,children:a}),(s||r)&&e.jsxs("div",{className:"flex flex-col gap-2",children:[s&&e.jsx("h3",{className:"text-high-em font-semibold text-md",children:s}),r&&e.jsx("span",{className:"text-med-em text-sm font-normal",children:r})]})]}),x&&e.jsx("div",{className:"flex items-center",children:x})]}),o&&e.jsx("div",{className:W.twMerge(h.clsx("p-8",g),p),children:o}),f&&e.jsxs("div",{className:W.twMerge(h.clsx("flex flex-row gap-10 p-8 items-center rounded-b-8",c&&d?"justify-between":d?"justify-end":"justify-start",(g||o)&&"border-t",C[u]),b),children:[c&&e.jsx("div",{className:"text-sm text-low-em",children:c}),d&&e.jsx("div",{children:d})]})]})},Gl=({title:t,columns:s,rows:r,onChange:a,className:n,...l})=>{const i=`1fr repeat(${s.length}, auto)`,x=(o,c,d)=>e.jsx(ue,{size:"small",checked:o.checked[d]??!1,disabled:o.disabled?.[d]??!1,onChange:u=>a(c,d,u.target.checked)});return e.jsxs("div",{className:W.twMerge("bg-white border border-surface-3 rounded-8 w-full overflow-hidden px-6",n),...l,children:[e.jsxs("div",{className:"hidden sm:grid gap-x-6",style:{gridTemplateColumns:i},children:[e.jsx("div",{className:"flex items-center py-6",children:t&&e.jsx("h3",{className:"text-base text-high-em font-normal",children:t})}),s.map(o=>e.jsx("div",{className:"flex items-center justify-center py-6 text-base text-med-em",children:o},o)),e.jsx("div",{className:"col-span-full",children:e.jsx(K,{})}),r.map((o,c)=>e.jsxs(k.default.Fragment,{children:[e.jsx("div",{className:"flex items-center py-5",children:e.jsx("span",{className:"text-sm text-high-em",children:o.label})}),s.map((d,u)=>e.jsx("div",{className:"flex items-center justify-center py-5",children:x(o,c,u)},u)),c<r.length-1&&e.jsx("div",{className:"col-span-full",children:e.jsx(K,{})})]},c))]}),e.jsxs("div",{className:"flex flex-col sm:hidden",children:[t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"py-6",children:e.jsx("h3",{className:"text-base text-high-em font-normal",children:t})}),e.jsx(K,{})]}),r.map((o,c)=>e.jsxs(k.default.Fragment,{children:[e.jsxs("div",{className:"flex flex-col gap-4 py-5",children:[e.jsx("span",{className:"text-sm text-high-em",children:o.label}),e.jsx("div",{className:"flex flex-col gap-3",children:s.map((d,u)=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-med-em",children:d}),x(o,c,u)]},u))})]}),c<r.length-1&&e.jsx(K,{})]},c))]})]})},Zt=({size:t=20,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:t,height:t,className:s,...r,children:[e.jsx("path",{fill:"currentColor",d:"M4 8H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{fill:"currentColor",d:"M8 12V4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),$r=({size:t=20,className:s,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",fill:"none",width:t,height:t,className:s,...r,children:[e.jsx("path",{d:"M4.5 11H7.5C10 11 11 10 11 7.5V4.5C11 2 10 1 7.5 1H4.5C2 1 1 2 1 4.5V7.5C1 10 2 11 4.5 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6 1V11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),Fr=({className:t,onAction:s,children:r,...a})=>{const[n,l]=j.useState("maximize"),i=c=>{l(c),s?.(c)},x=[{value:"maximize",icon:e.jsx(ut,{size:12})},{value:"grid",icon:e.jsx($r,{size:12})},{value:"add",icon:e.jsx(Zt,{size:12})}],o=[{value:"copy",icon:e.jsx($e,{size:12})},{value:"trash",icon:e.jsx(Fe,{size:12})}];return e.jsxs("div",{className:h.clsx("relative flex flex-col border border-surface-3 w-full",t),...a,children:[e.jsxs("div",{className:"bg-surface-2 flex justify-between",children:[e.jsx(de,{options:x,value:n,onChange:i,size:"xs",variant:"secondary"}),e.jsx(de,{options:o,value:n,onChange:i,size:"xs",variant:"secondary"})]}),e.jsxs("div",{className:"flex flex-col p-4 gap-4",children:[e.jsx("div",{className:"flex flex-col gap-4",children:r}),e.jsx("div",{className:"flex justify-center",children:e.jsx(T,{size:"sm",variant:"neutral",hierarchy:"secondary",icons:"only",leadingIcon:e.jsx(Zt,{}),onClick:()=>s?.("addWidget")})})]})]})},Ul=({className:t,data:s,onAction:r,onWidgetReorder:a,onSectionReorder:n,onDataChange:l,...i})=>{const[x,o]=j.useState("add"),[c,d]=j.useState(s||{sections:[]}),[u,m]=j.useState(!1);j.useEffect(()=>{s&&d(s)},[s]);const p=v=>{o(v),v==="add"&&m(!u),r?.(v)},b=[{value:"grid",icon:e.jsx($,{size:12,children:e.jsx($r,{})})},{value:"add",icon:e.jsx($,{size:12,children:e.jsx(z.Add,{})})}],w=[{value:"copy",icon:e.jsx($,{size:12,children:e.jsx($e,{})})},{value:"trash",icon:e.jsx($,{size:12,children:e.jsx(Fe,{})})}],g=v=>{const y=N(v),M=Array.from({length:y}).map((D,A)=>({id:`${Date.now()}-col-${A}`,widgets:[]})),I={id:Date.now().toString(),layout:v,position:c.sections.length,columns:M},R={sections:[...c.sections,I]};d(R),l?.(R),m(!1)},f=v=>{switch(v){case"1":return"grid-cols-1";case"2":return"grid-cols-2";case"3":return"grid-cols-3";case"2-1":return"grid-cols-3";case"1-2":return"grid-cols-3";case"1-1":return"grid-cols-2";default:return"grid-cols-1"}},C=(v,y)=>v==="2-1"?y===0?"col-span-2":"col-span-1":v==="1-2"?y===0?"col-span-1":"col-span-2":"col-span-1",N=v=>v==="1"?1:v==="2"||v==="2-1"||v==="1-2"||v==="1-1"?2:v==="3"?3:1;return e.jsxs("div",{className:h.clsx("flex flex-col border border-surface-3 w-full",t),...i,children:[e.jsxs("div",{className:"bg-surface-bg flex justify-between",children:[e.jsx(de,{options:b,value:x,onChange:p,size:"xs",variant:"secondary"}),e.jsx(de,{options:w,value:x,onChange:p,size:"xs",variant:"secondary"})]}),e.jsxs("div",{className:"flex flex-col p-8",children:[c.sections.sort((v,y)=>v.position-y.position).map(v=>e.jsx("div",{className:h.clsx("grid",f(v.layout)),children:v.columns.map((y,M)=>e.jsx("div",{className:h.clsx(C(v.layout,M)),children:e.jsx(Fr,{className:"h-full",onAction:v.onAction,children:y.widgets.sort((I,R)=>I.position-R.position).map(I=>e.jsx(Wr,{title:I.title,description:I.description,icon:I.icon||e.jsx($,{}),onMaximize:I.onMaximize,onEdit:I.onEdit,onCopy:I.onCopy,onTrash:I.onTrash},I.id))})},y.id))},v.id)),u&&e.jsx(ze,{size:"sm",className:"max-w-18",floating:!0,items:[{id:"1",title:"1 Column",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"2",title:"2 Columns",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"3",title:"3 Columns",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"1-1",title:"1-1 Layout",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"2-1",title:"2-1 Layout",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1},{id:"1-2",title:"1-2 Layout",showLeadingIcon:!1,showTrailingIcon:!1,showCheckbox:!1}],onSelect:v=>g(v)})]})]})},ql={1:"w-[400px] h-[400px]","2h":"w-[825px] h-[400px]","2w":"w-[400px] h-[825px]",4:"w-[825px] h-[825px]"},pe=({size:t="1",title:s,actions:r,children:a,className:n,classNameHeader:l,classNameBody:i})=>{const x=s||r;return e.jsxs("div",{className:W.twMerge(h.clsx("flex flex-col bg-white border border-surface-3 rounded-6",ql[t]),n),children:[x&&e.jsxs("div",{className:W.twMerge(h.clsx("flex items-center justify-between p-8 border-b border-surface-3"),l),children:[s&&e.jsx("h3",{className:"text-med-em font-semibold text-xl",children:s}),r&&e.jsx("div",{className:"flex items-center gap-4",children:r})]}),e.jsx("div",{className:W.twMerge(h.clsx("flex-1 p-8 overflow-auto"),i),children:a})]})},Ql=({mode:t,title:s,actions:r,onSubmit:a,onSettings:n,className:l})=>{const[i,x]=j.useState(""),[o,c]=j.useState(""),[d,u]=j.useState(""),[m,p]=j.useState(""),[b,w]=j.useState(!1),[g,f]=j.useState(!1),C=t==="signup",N=v=>{v.preventDefault();const y={email:o,password:d,...C&&{name:i,confirmPassword:m}};a?.(y)};return e.jsx(pe,{size:"1",className:l,title:s??(C?"Regístrarse":"Iniciar sesión"),actions:r===null?void 0:r??e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:n}),children:e.jsxs("form",{onSubmit:N,className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[!C&&e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("h2",{className:"text-high-em font-semibold text-2xl self-center",children:"¡Automatiza!"}),e.jsx("span",{className:"text-high-em text-md self-center",children:"Vende y gestiona con inteligencia"})]}),C&&e.jsx(J,{type:"text",name:"name",autoComplete:"name",value:i,onChange:v=>x(v.target.value),placeholder:"Nombre",required:!0}),e.jsx(J,{type:"email",name:"email",autoComplete:"email",value:o,onChange:v=>c(v.target.value),placeholder:"Correo",required:!0}),e.jsx(J,{type:b?"text":"password",name:"password",autoComplete:C?"new-password":"current-password",value:d,onChange:v=>u(v.target.value),placeholder:C?"Nueva contraseña":"Contraseña",trailingIcon:e.jsx($,{children:b?e.jsx(z.Eye,{onClick:()=>w(!1),className:"cursor-pointer"}):e.jsx(z.EyeSlash,{onClick:()=>w(!0),className:"cursor-pointer"})}),required:!0}),C&&e.jsx(J,{type:g?"text":"password",name:"confirmPassword",autoComplete:"new-password",value:m,onChange:v=>p(v.target.value),placeholder:"Confirmar contraseña",trailingIcon:e.jsx($,{children:g?e.jsx(z.Eye,{onClick:()=>f(!1),className:"cursor-pointer"}):e.jsx(z.EyeSlash,{onClick:()=>f(!0),className:"cursor-pointer"})}),required:!0}),e.jsx(T,{type:"submit",variant:"secondary",hierarchy:"primary",size:"lg",className:"w-full",children:"Continuar"})]})})},Kl=({title:t="Recuperación",actions:s,step:r,type:a="password",onSubmit:n,onBackToLogin:l,onSettings:i,className:x})=>{const[o,c]=j.useState(""),d=g=>{g.preventDefault(),n?.(o)},u=r==="email",p=u&&a==="account"?"Recuperar cuenta":"Recuperar contraseña",b=u?"Correo":"Código de verificación",w=u?"Un código será enviado a tu correo":"Ingresa el código enviado a tu correo";return e.jsx(pe,{size:"1",className:x,title:t,actions:s===null?void 0:s??e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:i}),children:e.jsxs("form",{onSubmit:d,className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[e.jsx("h2",{className:"text-high-em font-semibold text-2xl self-center",children:p}),e.jsx(J,{type:u?"email":"text",value:o,onChange:g=>c(g.target.value),placeholder:b,hint:w,required:!0}),e.jsx(T,{type:"submit",variant:"secondary",hierarchy:"primary",size:"lg",className:"w-full",children:"Continuar"}),e.jsxs("div",{className:"text-center text-sm gap-4",children:[e.jsx("span",{className:"text-med-em text-sm font-semibold",children:"¿Todo bien? "}),e.jsx(xe,{onClick:l,size:"sm",variant:"info",className:"cursor-pointer font-semibold",children:"Iniciar sesión"})]})]})})},Jl=({title:t="Recuperación",actions:s,onSubmit:r,onBackToLogin:a,onSettings:n,className:l})=>{const[i,x]=j.useState(""),[o,c]=j.useState(""),[d,u]=j.useState(!1),[m,p]=j.useState(!1),b=w=>{w.preventDefault(),r?.(i,o)};return e.jsx(pe,{size:"1",className:l,title:t,actions:s===null?void 0:s??e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:n}),children:e.jsxs("form",{onSubmit:b,className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[e.jsx("h2",{className:"text-high-em font-semibold text-2xl self-center",children:"Cambiar contraseña"}),e.jsx(J,{type:d?"text":"password",value:i,onChange:w=>x(w.target.value),placeholder:"Nueva contraseña",trailingIcon:e.jsx($,{children:d?e.jsx(z.Eye,{onClick:()=>u(!1),className:"cursor-pointer"}):e.jsx(z.EyeSlash,{onClick:()=>u(!0),className:"cursor-pointer"})}),required:!0}),e.jsx(J,{type:m?"text":"password",value:o,onChange:w=>c(w.target.value),placeholder:"Confirmar contraseña",trailingIcon:e.jsx($,{children:m?e.jsx(z.Eye,{onClick:()=>p(!1),className:"cursor-pointer"}):e.jsx(z.EyeSlash,{onClick:()=>p(!0),className:"cursor-pointer"})}),required:!0}),e.jsx(T,{type:"submit",variant:"secondary",hierarchy:"primary",size:"lg",className:"w-full",children:"Continuar"}),e.jsxs("div",{className:"text-center text-sm gap-4",children:[e.jsx("span",{className:"text-med-em text-sm font-semibold",children:"¿Todo bien? "}),e.jsx(xe,{onClick:a,size:"md",variant:"info",className:"cursor-pointer font-semibold",children:"Iniciar sesión"})]})]})})},Yl=({title:t="Autenticación",actions:s,onRecover:r,onSettings:a,className:n})=>e.jsx(pe,{size:"1",className:n,title:t,actions:s===null?void 0:s??e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:a}),children:e.jsxs("div",{className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[e.jsx("span",{className:"text-med-em text-md self-center font-semibold",children:"¿Olvidaste tu contraseña?"}),e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"lg",onClick:r,className:"w-full",children:"Recuperar"})]})}),Xl=({title:t="Autenticación",actions:s,onGoogleSignIn:r,onAppleSignIn:a,onAction:n,onSettings:l,actionPrompt:i="¿Ya tienes una cuenta?",actionLabel:x="Iniciar sesión",className:o})=>e.jsx(pe,{size:"1",className:o,title:t,actions:s===null?void 0:s??e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:l}),children:e.jsxs("div",{className:"flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",children:[e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"lg",icons:"leading",leadingIcon:e.jsx($,{children:e.jsx(z.Google,{})}),onClick:r,className:"w-full",children:"Continuar con Google"}),e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"lg",icons:"leading",leadingIcon:e.jsx($,{children:e.jsx(z.Apple,{})}),onClick:a,children:"Continuar con Apple"}),e.jsx(K,{}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("span",{className:"text-med-em text-md font-semibold text-center",children:i}),e.jsx(T,{variant:"secondary",hierarchy:"primary",size:"lg",onClick:n,className:"w-full",children:x})]})]})}),ei=({length:t=6,onComplete:s})=>{const[r,a]=j.useState(Array(t).fill("")),n=j.useRef([]),l=(o,c)=>{if(!/^\d*$/.test(c))return;const d=[...r];d[o]=c.slice(-1),a(d),c&&o<t-1&&n.current[o+1]?.focus();const u=d.join("");u.length===t&&!d.includes("")&&s?.(u)},i=(o,c)=>{c.key==="Backspace"&&!r[o]&&o>0&&n.current[o-1]?.focus()},x=o=>{o.preventDefault();const c=o.clipboardData.getData("text").replace(/\D/g,"").slice(0,t),d=[...r];c.split("").forEach((m,p)=>{d[p]=m}),a(d);const u=d.findIndex(m=>!m);n.current[u===-1?t-1:u]?.focus(),c.length===t&&s?.(c)};return e.jsx("div",{className:"flex gap-3 justify-center",children:r.map((o,c)=>e.jsx("input",{ref:d=>{n.current[c]=d},type:"text",inputMode:"numeric",maxLength:1,value:o,onChange:d=>l(c,d.target.value),onKeyDown:d=>i(c,d),onPaste:c===0?x:void 0,className:"w-14 h-14 text-center text-xl font-semibold border border-surface-3 rounded-lg focus:outline-none focus:border-info-main focus:ring-1 focus:ring-info-main bg-white text-high-em"},c))})},ti=({title:t="Confirmar Email",heading:s="Verificar Correo",description:r="Ingresa el código de 6 dígitos enviado a tu correo",length:a=6,actions:n,onComplete:l,onResend:i,onBackToLogin:x,onSettings:o,className:c})=>e.jsxs(pe,{size:"1",className:c,classNameBody:"flex flex-col gap-8 h-full mx-auto justify-center max-w-90",title:t,actions:n===null?void 0:n??e.jsx(T,{variant:"neutral",hierarchy:"primary",size:"sm",icons:"only",leadingIcon:e.jsx($,{children:e.jsx(z.Setting,{})}),onClick:o}),children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("h2",{className:"text-high-em font-semibold text-2xl self-center",children:s}),e.jsx("span",{className:"text-high-em text-md self-center text-center",children:r})]}),e.jsx(ei,{length:a,onComplete:l}),e.jsx(T,{type:"button",variant:"secondary",hierarchy:"primary",size:"lg",className:"w-full",onClick:i,children:"Reenviar código"}),e.jsxs("div",{className:"text-center",children:[e.jsx("span",{className:"text-med-em text-sm font-semibold",children:"¿Todo bien? "}),e.jsx(xe,{onClick:x,size:"md",variant:"info",className:"cursor-pointer font-semibold",children:"Iniciar sesión"})]})]}),Pt=({title:t="Module",onSettingsClick:s,className:r,showSettings:a=!0})=>e.jsx("div",{className:h.clsx("drag-handle px-6 py-4 border-b border-surface-3 bg-surface-1 cursor-move rounded-t-xl",r),children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex gap-5 items-center",children:[e.jsx(z.Grid5,{size:24,color:"var(--high-em)"}),e.jsx("h2",{className:"text-[16px] font-semibold text-med-em flex-1 text-center",children:t})]}),a&&e.jsx("div",{className:"flex items-center gap-3",children:e.jsx("button",{onClick:s,className:"p-1 hover:bg-surface-2 rounded transition-colors","aria-label":"Configure module",type:"button",children:e.jsx(z.Setting,{size:24,color:"var(--high-em)"})})})]})}),Zr=({title:t="Module",onSettingsClick:s,showSettings:r=!0,children:a,className:n,minWidth:l=300,maxWidth:i=300,emptyState:x})=>{const o=k.default.Children.count(a)>0;return e.jsxs("div",{className:h.clsx("bg-white rounded-xl border border-surface-3 overflow-hidden",n),style:{minWidth:`${l}px`,maxWidth:`${i}px`},children:[e.jsx(Pt,{title:t,onSettingsClick:s,showSettings:r}),e.jsx("div",{className:"overflow-hidden",style:{minHeight:"200px"},children:o?a:x})]})};Pt.displayName="ModuleCardHeader";Zr.displayName="ModuleCard";const Or=k.default.forwardRef(({type:t,label:s="New Field",description:r="Description",isSelected:a=!1,isLast:n=!1,onClick:l,onDelete:i,showActions:x=!0,className:o,dragHandleProps:c,innerRef:d,style:u},m)=>{const[p,b]=k.default.useState(!1),w=p&&x,g=d||m;return e.jsxs("div",{ref:g,style:u,className:h.clsx("relative",o),children:[e.jsx("div",{onClick:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),className:h.clsx("w-full text-left m-0 cursor-pointer overflow-hidden",a?"bg-surface-3":"hover:bg-surface-1"),children:e.jsx("div",{className:"px-6 py-2",children:e.jsxs("div",{className:"flex justify-between items-center overflow-hidden",children:[e.jsxs("div",{className:"flex justify-start items-center",children:[e.jsx("div",{className:"flex items-center overflow-hidden transition-all duration-200 ease-out",style:{width:w?"28px":"0px",opacity:w?1:0},children:e.jsxs("div",{onClick:f=>f.stopPropagation(),className:"flex flex-col shrink-0",children:[e.jsx("div",{...c,className:"cursor-grab active:cursor-grabbing touch-none p-1 rounded-md hover:bg-surface-2 transition-colors","aria-label":"Drag to reorder",children:e.jsx(z.HambergerMenu,{size:12,color:"var(--high-em)"})}),i&&e.jsx("button",{type:"button",onClick:f=>{f.stopPropagation(),i()},className:"p-1 rounded-md hover:bg-surface-2 transition-colors","aria-label":"Delete field",children:e.jsx(z.Trash,{size:12,color:"var(--high-em)",variant:"Linear"})})]})}),e.jsxs("div",{className:"transition-all duration-200 ease-out",children:[e.jsx("div",{className:"text-[16px] font-semibold text-med-em",children:t}),e.jsx("div",{className:"text-[10px] font-medium tracking-wide mb-1 text-low-em",children:r})]})]}),e.jsx("div",{className:"text-sm font-medium text-low-em truncate",children:s})]})})}),!n&&e.jsx("div",{className:"border-b border-surface-3"})]})});Or.displayName="ModuleFieldItem";const Br=({title:t="Módulos",items:s=[],className:r,onExportClick:a,minWidth:n=250,maxWidth:l=300,opacity:i=.7})=>e.jsxs("div",{className:h.clsx("bg-white rounded-xl border border-surface-3 overflow-hidden",r),style:{minWidth:`${n}px`,maxWidth:`${l}px`,opacity:i},children:[e.jsx("div",{className:"px-6 py-4 border-b border-surface-3 bg-surface-2 rounded-t-xl",children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex gap-5 items-center",children:[e.jsx(z.Grid5,{size:24,color:"var(--low-em)"}),e.jsx("h2",{className:"text-xl font-semibold text-low-em flex-1 text-center",children:t})]}),a&&e.jsx("button",{type:"button",onClick:a,className:"hover:bg-surface-3 rounded p-1 transition-colors","aria-label":"Export data",children:e.jsx(z.ExportSquare,{size:24,color:"var(--low-em)"})})]})}),e.jsxs("div",{className:"max-h-[600px] overflow-y-auto overflow-x-hidden",children:[s.map((x,o)=>{const c=o===s.length-1;return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"w-full text-left transition-all duration-200 m-0 cursor-not-allowed",children:e.jsx("div",{className:"my-6 mx-8",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex justify-start gap-5 items-center",children:[e.jsx(z.HambergerMenu,{size:20,color:"var(--low-em)"}),e.jsx(z.Component,{size:20,color:"var(--low-em)"}),e.jsx("div",{className:"text-xs font-semibold tracking-wide mb-1 text-low-em",children:x.type})]}),e.jsx("div",{className:"text-sm font-medium truncate text-low-em",children:x.label})]})})}),!c&&e.jsx("div",{className:"border-b border-surface-3"})]},x.id)}),s.length===0&&e.jsx("div",{className:"py-12 px-8 flex items-center justify-center",children:e.jsx("p",{className:"text-sm text-low-em text-center",children:"No related data"})})]})]});Br.displayName="RelatedDataCard";const si=({widgetCount:t,visibleCount:s,icon:r,tooltipContent:a})=>e.jsx("div",{className:"border-b border-gray-200",children:e.jsxs("div",{className:"p-8 flex items-center justify-between",children:[e.jsxs("span",{className:" font-semibold text-sm text-dark-100",style:{fontFamily:"var(--font-space-grotesk)"},children:["Widgets (",t,")"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:h.clsx("text-sm font-semibold",s===0?"text-low-em":"text-success-main"),children:[s," visible"]}),r&&a&&e.jsx(bt,{content:a,side:"bottom",children:e.jsx("div",{children:r})}),r&&!a&&r]})]})}),ri=({value:t,onChange:s,placeholder:r})=>e.jsx("div",{className:"p-8 flex flex-col gap-4 ",children:e.jsx(J,{type:"search",placeholder:r||"Search",value:t,onChange:s,trailingIcon:e.jsx(z.SearchNormal1,{size:16,color:"currentColor"})})}),ni=({items:t,searchPlaceholder:s="Search",showSearch:r=!0,headerIcon:a,headerTooltip:n,onItemClick:l,className:i,itemClassName:x,backgroundColor:o="bg-white",borderStyle:c="border border-surface-3"})=>{const[d,u]=j.useState(""),m=t.filter(g=>g.title.toLowerCase().includes(d.toLowerCase())||g.description?.toLowerCase().includes(d.toLowerCase())),p=t.length,b=t.filter(g=>g.isVisible).length,w=g=>{l?.(g)};return e.jsx(X.Provider,{delayDuration:200,children:e.jsxs("div",{className:h.clsx("h-full w-full flex flex-col",o,c,i),children:[e.jsx(si,{widgetCount:p,visibleCount:b,icon:a,tooltipContent:n}),r&&e.jsx(ri,{value:d,onChange:g=>u(g.target.value),placeholder:s}),e.jsx(K,{}),e.jsx("div",{className:"flex-1 overflow-y-auto p-8 flex flex-col gap-8",children:m.length>0?m.map(g=>e.jsx(He,{title:g.title,description:g.description,leadingIcon:e.jsx($,{className:`${g.isDisabled?"text-disabled":""}`,children:g.icon}),showCheckbox:!1,showLeadingImage:!1,showDescription:!!g.description,showTag:!1,size:"sm",showTrailingIcon:!1,showTrailingText:g.position!==void 0,trailingText:g.position!==void 0?String(g.position):void 0,disabled:g.isDisabled,customBackgroundColor:h.clsx(g.isSelected&&"bg-surface-2"),className:h.clsx("py-6 rounded-xl",g.isSelected&&"border border-surface-3",g.isVisible&&"border border-surface-3",x),onClick:()=>w(g)},g.id)):e.jsxs("div",{className:"flex flex-col items-center justify-center p-10 text-center gap-10",children:[e.jsx($,{size:"lg",children:e.jsx(z.Box2,{})}),e.jsx("p",{className:"text-sm font-medium text-low-em",children:t.length===0?"You don't have any Widgets created yet":"No widgets found"})]})})]})})},ai={paid:"success",pending:"warning",overdue:"danger",cancelled:"surface"},Ot=({label:t,value:s})=>e.jsxs("div",{className:"flex flex-row",children:[e.jsx("span",{className:"text-low-em text-base w-[110px] shrink-0",children:t}),e.jsx("span",{className:"text-high-em text-base font-bold",children:s})]}),li=({title:t,status:s,fields:r,onMenuClick:a,className:n})=>{const l=s.charAt(0).toUpperCase()+s.slice(1),i=Math.ceil(r.length/2),x=r.slice(0,i),o=r.slice(i);return e.jsxs("div",{className:h.clsx("bg-white border border-surface-3 rounded-2xl p-10 flex flex-col gap-8",n),children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-8",children:[e.jsx("span",{className:"text-high-em font-semibold text-xl",children:t}),e.jsx(ce,{theme:ai[s],variant:"simple",size:"lg",children:l})]}),e.jsx(T,{variant:"neutral",hierarchy:"secondary",size:"md",icons:"only",leadingIcon:e.jsx(z.More,{variant:"Linear"}),onClick:a})]}),e.jsx("span",{className:"text-med-em text-sm -mt-2",children:"Summary"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[e.jsx("div",{className:"flex flex-col gap-8",children:x.map(c=>e.jsx(Ot,{...c},c.label))}),e.jsx("div",{className:"flex flex-col gap-8",children:o.map(c=>e.jsx(Ot,{...c},c.label))})]})]})};exports.AICommentaryIcon=xs;exports.AIMessage=gs;exports.AddIcon=wn;exports.AlertDialog=Ls;exports.AlertDialogAction=Ds;exports.AlertDialogCancel=Hs;exports.AlertDialogContent=Ms;exports.AlertDialogDescription=Ts;exports.AlertDialogFooter=Rs;exports.AlertDialogHeader=Is;exports.AlertDialogTitle=Ps;exports.AlertDialogTrigger=zs;exports.ArrowNarrowDownIcon=us;exports.AttachmentMessage=Os;exports.AuthActionWidget=Yl;exports.AuthEmailVerificationWidget=ti;exports.AuthFormWidget=Ql;exports.AuthSocialOptionsWidget=Xl;exports.Avatar=Oe;exports.AvatarGroup=As;exports.BREAKPOINTS=Le;exports.Badge=ce;exports.BookOutlined=Cn;exports.Box2Icon=pn;exports.BoxIcon=gn;exports.Breadcrumb=Wn;exports.BreadcrumbEllipsis=_n;exports.BreadcrumbItem=Fn;exports.BreadcrumbLink=Zn;exports.BreadcrumbList=$n;exports.BreadcrumbPage=On;exports.BreadcrumbSeparator=Bn;exports.Button=T;exports.ButtonDropdown=Gn;exports.ButtonGroup=de;exports.CONTAINER=Jt;exports.CONTAINER_PADDING=Yt;exports.CSS_VARIABLES=ss;exports.CalendarIcon=Tn;exports.CalendarIcon2=Ns;exports.Card=Kn;exports.CardAction=It;exports.ChatCollapsibleCheck=Es;exports.ChatCollapsibleContainer=Be;exports.ChatCollapsibleDialog=Vs;exports.ChatCommandList=aa;exports.ChatCommandListItem=et;exports.ChatHeader=Ws;exports.ChatHistorial=Fs;exports.ChatHistorialItemComponent=$s;exports.ChatIcon=ds;exports.ChatInputText=Zs;exports.ChatMessage=tt;exports.ChatMessageOptions=st;exports.ChatPanel=_s;exports.ChatTypingIndicator=Bs;exports.Checkbox=ue;exports.ChevronDownIcon=dt;exports.ChevronUpIcon=xt;exports.Chip=ba;exports.CircleIcon=jn;exports.ColorPalette=wa;exports.ColumnHandler=Ca;exports.ComboBox=La;exports.Container=Ve;exports.ContextualMenu=za;exports.CopyIcon=$e;exports.DataArrowsOutlined=Sn;exports.DateRangePicker=$l;exports.DeleteConfirmationModal=lr;exports.Divider=K;exports.DragAndDropListItem=mt;exports.Drawer=Ka;exports.DropMenu=ze;exports.DropZone=Gs;exports.Dropdown=Ae;exports.DropdownMenu=Pa;exports.Edit2Icon=ks;exports.EmptyState=ft;exports.ErrorBoundary=Ta;exports.ErrorState=Us;exports.EyeIcon=bs;exports.EyeOffIcon=js;exports.FilterFunnel02Icon=hs;exports.FlashIcon=ys;exports.FloatingBar=Ra;exports.Footer=Ge;exports.FormFieldGroup=Fr;exports.GridDraggableItem=qs;exports.Header=_e;exports.HeaderTabs=Mr;exports.Icon=$;exports.ImageUploader=$a;exports.InfoIcon=it;exports.InfoLabel=Za;exports.InputField=J;exports.InputSearch=sr;exports.InvoiceCard=li;exports.Kbd=Se;exports.LAYOUT=en;exports.LAYOUT_SPACING=ts;exports.LabelIcon=le;exports.LabelWithIcon=Ba;exports.LabelWithTooltip=rr;exports.LayerIcon=Cs;exports.LeftArrowIcon=fs;exports.Link=xe;exports.ListItem=He;exports.MaximizeIcon=ut;exports.MessageProgrammingOutlined=yn;exports.Modal=vt;exports.ModalBody=St;exports.ModalClose=Lt;exports.ModalContent=Ct;exports.ModalDescription=kt;exports.ModalFooter=Ue;exports.ModalFooterActions=ar;exports.ModalHeader=yt;exports.ModalTitle=Nt;exports.ModalTrigger=wt;exports.ModuleCard=Zr;exports.ModuleCardHeader=Pt;exports.ModuleFieldItem=Or;exports.MoreIcon=ws;exports.NAVBAR=es;exports.PANEL_DEFAULTS=q;exports.Panel=is;exports.PanelHeader=Vr;exports.PanelLayout=ls;exports.PanelMain=os;exports.PasswordResetWidget=Jl;exports.PlanPricingCard=fr;exports.PlusCircleIcon=Dn;exports.ProductIcon=qe;exports.ProgrammingArrowsOutlined=kn;exports.Progress=ht;exports.ProgressBar=rt;exports.ProgressCircle=nt;exports.ProgressTracker=Ya;exports.ProjectActionCard=Bl;exports.ProjectCard=pr;exports.ProjectCardPlan=Fl;exports.QuestionCircle=ot;exports.Radio=el;exports.RecoveryWidget=Kl;exports.RelatedDataCard=Br;exports.RightArrowIcon=ct;exports.SIDEBAR=Xt;exports.Section=We;exports.SectionFeatures=Kt;exports.SectionHero=Qt;exports.SettingsCard=_l;exports.ShareIcon=zn;exports.SkalarLogo=Re;exports.SkalarLogoNoText=De;exports.SlashIcon=En;exports.SliderPointerDown=Pn;exports.SliderPointerUp=In;exports.SliderThumbIcon=Mn;exports.SplitPanelLayout=cs;exports.StraightInfoIcon=me;exports.SupportCard=Ol;exports.Switcher=gr;exports.Table=rl;exports.TableBody=ll;exports.TableCard=Gl;exports.TableCell=at;exports.TableColumnFilter=ul;exports.TableColumnHeader=vr;exports.TableColumnVisibility=hl;exports.TableEmptyState=wr;exports.TableHeader=al;exports.TableHeading=xl;exports.TablePagination=dl;exports.TableProvider=jr;exports.TableRoot=nl;exports.TableRow=Ee;exports.Tabs=zr;exports.Tag=Ce;exports.TextArea=Ir;exports.ThemeToggle=Ll;exports.ToastComponent=Hr;exports.ToastProvider=Pl;exports.Toggle=Er;exports.Tooltip=bt;exports.TrashIcon=Fe;exports.TypesPanel=Mt;exports.TypesPanelBodyGrid=Rl;exports.TypesPanelBodyList=Dl;exports.TypesPanelHeader=El;exports.TypesPanelHeaderSearch=Vl;exports.UnionIcon=vs;exports.UploadImageIcon=ms;exports.UserMenu=Wl;exports.VideoPlayOutlined=Nn;exports.VisualComposer=Ul;exports.WidgetBuilderItemHoverAction=Wr;exports.WidgetContainer=pe;exports.WidgetSidebar=ni;exports.WorkspaceSettings=Zl;exports.XMark=ie;exports.XMarkAlert=ps;exports.addSelectionColumn=Cl;exports.calculateDraggedPanelPercentage=ns;exports.calculateHeaderWidths=Aa;exports.calculatePanelPercentage=Pe;exports.createMediaQuery=rn;exports.findPanelById=se;exports.getCentralWidth=cn;exports.getCurrentBreakpoint=an;exports.getGapClass=re;exports.getTotalPanelsWidth=as;exports.getTotalSideWidth=Te;exports.initializePanelsState=Xe;exports.matchesBreakpoint=nn;exports.parseColumnConfig=yr;exports.parseTableConfig=wl;exports.productsApiResponse=Nl;exports.productsTableConfig=Sr;exports.productsTableData=Lr;exports.pxToCss=sn;exports.pxToRem=tn;exports.usePanelState=un;exports.useTableContext=ne;exports.useToast=Il;exports.usersApiResponse=yl;exports.usersTableConfig=Nr;exports.usersTableData=kr;
|
|
26
24
|
//# sourceMappingURL=index.js.map
|