@cleen/ui 0.1.251 → 0.1.252

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 CHANGED
@@ -1,2 +1,2 @@
1
- import{cn as Vt,useAnimateNumber as db}from"@cleen/ui-core";import{forwardRef as ub,useMemo as _d}from"react";import{cn as fn,usePositionClose as ab,ZIndex as cb}from"@cleen/ui-core";import{useEffect as Ed,useRef as Tl,useState as Md}from"react";import{createPortal as sb}from"react-dom";import{jsx as Rl,jsxs as Bd}from"react/jsx-runtime";var ue=({bg:n,label:e,color:o,closeOnClick:r=!0,hideOnMouseDown:i=!0,isOpen:l,children:a,hasArrow:c,placement:m="top",offset:p=8,className:s,classNames:g,isDisabled:f,openDelay:x=0,invertColors:y=!1,extraUpdateTriggers:h,allowNonDescendantHover:v=!0,zIndex:S=cb.TOOLTIP,style:C,styles:b,onClick:w,onMouseEnter:P,onMouseLeave:R,...k})=>{let[T,D]=Md(l??!1),[B,E]=Md(!1),L=Tl(null),M=Tl(null),F=Tl(null),{positionStyles:I,isMounted:O,optimalPosition:N}=ab({triggerRef:M,targetRef:L,position:m,isOpen:T&&!f,offset:p,extraUpdateTriggers:h});Ed(()=>{D(l??!1)},[l]);let z=H=>{w?.(H),r&&D(!1)},_=(H,G)=>{if(l!==void 0)return;let q=M.current?.contains(H.target);!v&&!q||(G?(P?.(H),x&&x>0?F.current=setTimeout(()=>{D(!0)},x):D(!0)):(F.current&&(clearTimeout(F.current),F.current=null),D(!1),R?.(H)))};return Ed(()=>{let H=()=>{i&&E(!0)},G=()=>{E(!1)};return document.addEventListener("mousedown",H),document.addEventListener("mouseup",G),()=>{document.removeEventListener("mousedown",H),document.removeEventListener("mouseup",G)}},[]),Bd("div",{className:fn("cleen",s),style:C,children:[Rl("div",{ref:M,className:fn("cleen-relative cleen-max-w-fit",g?.container),style:b?.container,onClick:z,onMouseEnter:H=>_(H,!0),onMouseLeave:H=>_(H,!1),...k,children:a}),e!==void 0&&T&&!f&&!B&&sb(Rl("div",{className:"cleen",children:Bd("div",{ref:L,className:fn("cleen-shadow cleen-px-2 cleen-py-0.5 cleen-rounded-md cleen-text-sm cleen-transition-opacity cleen-duration-200 cleen-pointer-events-none","cleen-absolute",y?"cleen-bg-primary after:cleen-border-primary cleen-text-white":"cleen-bg-white after:cleen-border-white cleen-text-primary",{"cleen-opacity-0":!O,"cleen-opacity-100":O},g?.labelContainer),style:{zIndex:S,top:`${I.top}px`,left:`${I.left}px`,...n&&{backgroundColor:n},...o&&{color:o},...b?.labelContainer},children:[e,Rl("div",{className:fn(c?["cleen-absolute cleen-border-[6px] cleen-border-background",{"cleen-border-b-transparent cleen-border-x-transparent cleen-top-full cleen-drop-shadow-[0_1px_0.5px_rgba(var(--cleen-black),0.1)]":N==="top"||N==="top-left"||N==="top-right","cleen-left-[calc(50%-6px)]":N==="top"||N==="bottom","cleen-left-[6px]":N==="top-left"||N==="bottom-left","cleen-right-[6px]":N==="top-right"||N==="bottom-right","cleen-border-t-transparent cleen-border-x-transparent cleen-bottom-full cleen-drop-shadow-[0_-0.5px_0.5px_rgba(var(--cleen-black),0.1)]":N==="bottom"||N==="bottom-left"||N==="bottom-right","cleen-border-y-transparent cleen-border-r-transparent cleen-left-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[1px_0_0.5px_rgba(var(--cleen-black),0.1)]":N==="left","cleen-border-y-transparent cleen-border-l-transparent cleen-right-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[-0.25px_0_0.5px_rgba(var(--cleen-black),0.1)]":N==="right"}]:"cleen-hidden"),style:{}})]})}),document.body)]})};import{cn as Jr}from"@cleen/ui-core";var at=n=>Math.max(0,Math.min(100,Number.isFinite(n)?n:0)),ct=(n,e,o)=>{let r=Number.isFinite(e)?e:0,i=Number.isFinite(o)?o:100;return i===r?0:(n-r)/(i-r)*100};import{cn as gn}from"@cleen/ui-core";import{jsx as Ll}from"react/jsx-runtime";var bn=({serie:n,minValue:e,maxValue:o,color:r,trackHeight:i,className:l,style:a})=>{if(n.type!=="clamp")return null;let c=typeof n.value=="number"?n.value:0,m=Number.isFinite(c)?c:e,p=at(ct(m,e,o)),s=Math.max(2,n?.height??i*1.5),g={left:`${p}%`,top:"50%"};return n.tooltip?Ll(ue,{invertColors:!0,...n.tooltip,className:gn("cleen-absolute cleen-z-10 -cleen-translate-x-1/2 -cleen-translate-y-1/2",n.tooltip.className),style:{...g,...n.tooltip.style},classNames:{...n.tooltip.classNames,labelContainer:gn("cleen-z-10",n.tooltip.classNames?.labelContainer)},children:Ll("div",{className:gn("cleen-rounded-full",l),style:{width:s,height:s,backgroundColor:r,...a}})}):Ll("div",{className:gn("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",l),style:{width:s,height:s,backgroundColor:r,...g,...a}})};import{jsx as hn}from"react/jsx-runtime";var Ad=({serie:n,minValue:e,maxValue:o,animatedGlobal:r=e,renderAnimated:i,color:l,trackHeight:a,trackRadius:c,className:m,style:p})=>{if(n.type!=="bar")return null;let s=typeof n.start=="number"?n.start:e,g=typeof n.end=="number"?n.end:o,f=at(ct(s,e,o)),x=at(ct(g,e,o));x<f&&([f,x]=[x,f]);let y=Math.max(0,i?r-f:x-f);if(y<1&&!i||i&&r>=x&&y===0)return hn(bn,{serie:{...n,type:"clamp",value:f},color:l,trackHeight:a,minValue:e,maxValue:o,className:m,style:p});let h={left:`${f}%`,top:n?.height?(a-n.height)/2:0,width:`${y}%`,height:n?.height??"100%"},v={width:"100%",height:"100%"},S={background:l,borderRadius:n?.radius??c??(n?.height??a)/2};return n.tooltip?hn(ue,{invertColors:!0,...n.tooltip,className:Jr("cleen-absolute",n.tooltip.className),style:{...h,...n.tooltip.style},classNames:{...n.tooltip.classNames,container:Jr("cleen-size-full !cleen-max-w-none",n.tooltip.classNames?.container),labelContainer:Jr("cleen-z-10",n.tooltip.classNames?.labelContainer)},styles:{...n.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...n.tooltip.styles?.container}},children:hn("div",{className:Jr("cleen-relative cleen-size-full",m),style:{...S,...v,...p}})}):hn("div",{className:Jr("cleen-absolute cleen-pointer-events-none",m),style:{...S,...h,...p}})};import{cn as pb}from"@cleen/ui-core";import{jsx as mb}from"react/jsx-runtime";var Od=({serie:n,minValue:e,maxValue:o,className:r,style:i})=>{let l=0;if(n.type==="clamp"){let a=typeof n.value=="number"?n.value:0,c=Number.isFinite(a)?a:e;l=at(ct(c,e,o))}else{let a=typeof n.start=="number"?n.start:e,c=typeof n.end=="number"?n.end:o,m=at(ct(a,e,o)),p=at(ct(c,e,o));l=(m+p)/2}return mb("div",{className:pb("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",r),style:{left:`${l}%`,...i},children:n.label})};var zd={color:"rgb(var(--cleen-gray-200))",height:8};import{jsx as Ir,jsxs as Hd}from"react/jsx-runtime";var fb=ub(function({series:e=[],track:o,renderAnimated:r,renderAnimatedDuration:i=1e3,className:l,classNames:a,style:c,styles:m,minValue:p=0,maxValue:s=100,...g},f){let x=_d(()=>({...zd,...o}),[o]),y=_d(()=>e.reduce((C,b)=>{if(b.type==="bar"){let w=typeof b.end=="number"?b.end:s,P=Math.max(p,Math.min(w,s));if(P>C)return P}return C},0),[e,p,s]),h=db({targetNumber:y,defaultNumber:p,duration:i,disabled:!r}),{bars:v,clamps:S}=e.reduce((C,b,w)=>{if(b==null||!b.type)return C;let P=b.color??"var(--cleen-primary)";switch(b.type){case"clamp":C.clamps.push(Ir(bn,{serie:b,color:P,trackHeight:x.height,minValue:p,maxValue:s,className:Vt(a?.clamp,b.className),style:{...m?.clamp,...b.style}},`clamp-${w}`));break;case"bar":C.bars.push(Ir(Ad,{serie:b,color:P,trackHeight:x.height,trackRadius:x.radius,minValue:p,maxValue:s,renderAnimated:r,animatedGlobal:h,className:Vt(a?.bar,b.className),style:{...m?.bar,...b.style}},`bar-${w}`));break;default:break}return C},{clamps:[],bars:[]});return Ir("div",{className:Vt("cleen",l),style:c,ref:f,...g,children:Hd("div",{className:Vt("cleen-relative cleen-w-full",a?.container),style:m?.container,children:[Hd("div",{className:Vt("cleen-relative cleen-size-full",a?.trackWrapper),style:m?.trackWrapper,children:[Ir("div",{className:Vt("cleen-relative cleen-w-full",a?.track),style:{height:x.height,backgroundColor:x.color,borderRadius:x.radius??x.height/2,...m?.track},children:v}),S]}),e.some(C=>!!C.label)&&Ir("div",{"aria-hidden":!0,className:Vt("cleen-relative cleen-mt-2 cleen-h-5",a?.labels),style:m?.labels,children:e.map((C,b)=>!C||!C.type||!C.label?null:Ir(Od,{serie:C,minValue:p,maxValue:s,className:a?.label,style:m?.label},`label-${b}`))})]})})});import{cn as Dl}from"@cleen/ui-core";import{jsx as Nl}from"react/jsx-runtime";var gb={xs:"cleen-size-4",sm:"cleen-size-5",md:"cleen-size-[30px] cleen-border-2",lg:"cleen-size-10 cleen-border-2",xl:"cleen-size-[50px] cleen-border-4"},bb={slow:1.3,normal:.65,fast:.4},re=({isFullscreen:n,size:e="xs",stroke:o,speed:r="normal",className:i,classNames:l,style:a,styles:c,color:m,...p})=>Nl("div",{className:Dl("cleen",i),style:a,children:Nl("div",{className:Dl("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":n},l?.container),style:c?.container,...p,children:Nl("span",{className:Dl("cleen-border cleen-rounded-full cleen-border-t-primary cleen-border-x-primary cleen-border-b-transparent cleen-animate-[spin_0.65s_linear_infinite]",typeof e=="string"&&gb[e],l?.loader),style:{...m&&{borderInlineColor:m,borderTopColor:m},...typeof e=="number"&&{width:e,height:e},...typeof o=="number"&&{borderWidth:o},animationDuration:`${typeof r=="number"?r:bb[r]}s`,...c?.loader}})})});import{cn as Fl,useWidthDynamicResize as hb}from"@cleen/ui-core";import{forwardRef as vb,useImperativeHandle as yb,useRef as xb}from"react";var Ud={borderless:"cleen-flex cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-gray-700 cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-100 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary/60","borderless-blue":"cleen-flex cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-primary/70 cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary/10 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary/60","borderless-success":"cleen-flex cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-success cleen-transition-colors cleen-duration-200 hover:cleen-bg-success/10 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-success/60","borderless-error":"cleen-flex cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-error/70 cleen-transition-colors cleen-duration-200 hover:cleen-bg-error/10 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-error/60",group:"cleen-flex cleen-border cleen-border-gray-300 cleen-py-2 cleen-px-4 cleen-gap-1 cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-black cleen-transition-colors cleen-duration-200 focus:cleen-bg-gray-50 focus-visible:cleen-outline-none hover:cleen-bg-gray-100",secondary:"cleen-flex cleen-border cleen-border-gray-300 cleen-text-gray-700 cleen-bg-white cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-100 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary/60","secondary-blue":"cleen-flex cleen-border cleen-border-primary/60 cleen-text-primary cleen-bg-white cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary/60 hover:cleen-bg-primary/10","secondary-success":"cleen-flex cleen-border cleen-border-success/60 cleen-text-success cleen-bg-white cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-success/60 hover:cleen-bg-success/10","secondary-error":"cleen-flex cleen-border cleen-border-error/60 cleen-text-error cleen-bg-white cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-error/60 hover:cleen-bg-error/10",primary:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-primary/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",disable:"cleen-flex cleen-justify-center cleen-rounded-md cleen-bg-gray-200 cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-border cleen-border-gray-300 cleen-text-gray-500 cleen-shadow-sm cleen-cursor-default",error:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-error/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-error focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",success:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-success/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-success focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",warning:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-warning/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-warning focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",black:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-black cleen-transition-colors cleen-duration-200 hover:cleen-bg-black/80 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-black/60",purple:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-purple/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-purple/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",indigo:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-indigo/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-indigo/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",yellow:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-black dark:cleen-text-white cleen-shadow-sm cleen-bg-yellow/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-yellow/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60"},Gd={primary:"rgb(var(--cleen-white))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))","secondary-success":"rgb(var(--cleen-success))","secondary-error":"rgb(var(--cleen-error))",error:"rgb(var(--cleen-white))",success:"rgb(var(--cleen-white))",warning:"rgb(var(--cleen-white))",black:"rgb(var(--cleen-white))",purple:"rgb(var(--cleen-white))",indigo:"rgb(var(--cleen-white))",yellow:"rgb(var(--cleen-white))"};import{jsx as Vd,jsxs as Cb}from"react/jsx-runtime";var ne=vb(function({type:e="button",label:o,onClick:r,className:i,classNames:l,style:a,styles:c,disabled:m=!1,leftIcon:p,rightIcon:s,loaderColor:g,isLoading:f=!1,variant:x="primary",fullWidth:y=!1,children:h,...v},S){let C=xb(null);return yb(S,()=>C.current),hb({ref:C,skip:y},[f,p,s,y]),Vd("div",{className:Fl("cleen",i),style:a,children:Cb("button",{type:e,ref:C,className:Fl("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-text-sm cleen-text-nowrap cleen-transition-[width] cleen-duration-150 cleen-ease-in-out cleen-cursor-pointer",Ud[x],{"cleen-w-full cleen-flex-1":y,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":m||f},l?.container),style:c?.container,disabled:f||m,onClick:r,...v,children:[f&&Vd(re,{size:"xs",color:g||Gd[x],className:Fl("cleen-mr-1.5 cleen-w-fit",l?.loaderContainer),style:c?.loaderContainer,classNames:{loader:l?.loader},styles:{loader:c?.loader}}),p||null,o||h,s||null]})})});var Wd={borderless:"cleen-font-semibold cleen-text-gray-700 cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-100","borderless-blue":"cleen-font-semibold cleen-text-primary/70 cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary/10","borderless-success":"cleen-font-semibold cleen-text-success cleen-transition-colors cleen-duration-200 hover:cleen-bg-success/10","borderless-error":"cleen-font-semibold cleen-text-error/70 cleen-transition-colors cleen-duration-200 hover:cleen-bg-error/10",group:"cleen-border-gray-300 cleen-font-semibold cleen-text-black cleen-transition-colors cleen-duration-200 focus:cleen-bg-gray-50 focus-visible:cleen-outline-none hover:cleen-bg-gray-100",secondary:"cleen-border-gray-300 cleen-text-gray-700 cleen-bg-white cleen-font-semibold cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-100 focus-visible:cleen-outline-none","secondary-blue":"cleen-border-primary/60 cleen-text-primary cleen-bg-white cleen-font-semibold cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none hover:cleen-bg-primary/10","secondary-success":"cleen-border-success/60 cleen-text-success cleen-bg-white cleen-font-semibold cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none hover:cleen-bg-success/10","secondary-error":"cleen-border-error/60 cleen-text-error cleen-bg-white cleen-font-semibold cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none hover:cleen-bg-error/10",primary:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-primary/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",disable:"cleen-bg-gray-200 cleen-font-semibold cleen-border-gray-300 cleen-text-gray-500 cleen-shadow-sm cleen-cursor-default",error:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-error/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-error focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",success:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-success/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-success focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",warning:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-warning/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-warning focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",black:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-black cleen-transition-colors cleen-duration-200 hover:cleen-bg-black/80 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",purple:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-purple/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-purple/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",indigo:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-indigo/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-indigo/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",yellow:"cleen-font-semibold cleen-text-black dark:cleen-text-white cleen-shadow-sm cleen-bg-yellow/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-yellow/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60"},$d={primary:"rgb(var(--cleen-white))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))","secondary-success":"rgb(var(--cleen-success))","secondary-error":"rgb(var(--cleen-error))",error:"rgb(var(--cleen-white))",success:"rgb(var(--cleen-white))",warning:"rgb(var(--cleen-white))",black:"rgb(var(--cleen-white))",purple:"rgb(var(--cleen-white))",indigo:"rgb(var(--cleen-white))"};import{cn as It,ColorHelpers as Eb}from"@cleen/ui-core";function Pr(n,e,o){return Math.min(Math.max(n,o),e)}var El=class extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}},eo=El;function Sb(n){if(typeof n!="string")throw new eo(n);if(n.trim().toLowerCase()==="transparent")return[0,0,0,0];let e=n.trim();e=Db.test(n)?Pb(n):n;let o=kb.exec(e);if(o){let a=Array.from(o).slice(1);return[...a.slice(0,3).map(c=>parseInt(to(c,2),16)),parseInt(to(a[3]||"f",2),16)/255]}let r=Tb.exec(e);if(r){let a=Array.from(r).slice(1);return[...a.slice(0,3).map(c=>parseInt(c,16)),parseInt(a[3]||"ff",16)/255]}let i=Rb.exec(e);if(i){let a=Array.from(i).slice(1);return[...a.slice(0,3).map(c=>parseInt(c,10)),parseFloat(a[3]||"1")]}let l=Lb.exec(e);if(l){let[a,c,m,p]=Array.from(l).slice(1).map(parseFloat);if(Pr(0,100,c)!==c)throw new eo(n);if(Pr(0,100,m)!==m)throw new eo(n);return[...Nb(a,c,m),Number.isNaN(p)?1:p]}throw new eo(n)}function wb(n){let e=5381,o=n.length;for(;o;)e=e*33^n.charCodeAt(--o);return(e>>>0)%2341}var qd=n=>parseInt(n.replace(/_/g,""),36),Ib="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((n,e)=>{let o=qd(e.substring(0,3)),r=qd(e.substring(3)).toString(16),i="";for(let l=0;l<6-r.length;l++)i+="0";return n[o]=`${i}${r}`,n},{});function Pb(n){let e=n.toLowerCase().trim(),o=Ib[wb(e)];if(!o)throw new eo(n);return`#${o}`}var to=(n,e)=>Array.from(Array(e)).map(()=>n).join(""),kb=new RegExp(`^#${to("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Tb=new RegExp(`^#${to("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Rb=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${to(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Lb=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Db=/^[a-z]+$/i,Xd=n=>Math.round(n*255),Nb=(n,e,o)=>{let r=o/100;if(e===0)return[r,r,r].map(Xd);let i=(n%360+360)%360/60,l=(1-Math.abs(2*r-1))*(e/100),a=l*(1-Math.abs(i%2-1)),c=0,m=0,p=0;i>=0&&i<1?(c=l,m=a):i>=1&&i<2?(c=a,m=l):i>=2&&i<3?(m=l,p=a):i>=3&&i<4?(m=a,p=l):i>=4&&i<5?(c=a,p=l):i>=5&&i<6&&(c=l,p=a);let s=r-l/2,g=c+s,f=m+s,x=p+s;return[g,f,x].map(Xd)};function Fb(n,e,o,r){return`rgba(${Pr(0,255,n).toFixed()}, ${Pr(0,255,e).toFixed()}, ${Pr(0,255,o).toFixed()}, ${parseFloat(Pr(0,1,r).toFixed(3))})`}function ro(n,e){let[o,r,i,l]=Sb(n);return Fb(o,r,i,l-e)}import{forwardRef as Mb,useMemo as Bb}from"react";import{jsx as kr,jsxs as jd}from"react/jsx-runtime";var ie=Mb(function({header:e,footer:o,color:r,isGlass:i=!1,hoverable:l=!1,p:a,gap:c,radius:m=8,children:p,className:s,classNames:g,style:f,styles:x,...y},h){let{cardColor:v,backgroundColor:S,borderColor:C}=Bb(()=>{let b=Eb.getComputedColor(r);return b?{cardColor:b,backgroundColor:ro(b,.9),borderColor:ro(b,.8)}:{cardColor:b}},[r]);return kr("div",{className:It("cleen",s),style:f,ref:h,...y,children:jd("div",{className:It("cleen-bg-background cleen-pt-6 cleen-border cleen-border-gray-200 cleen-flex cleen-flex-col cleen-gap-6 cleen-flex-grow cleen-transition-all cleen-duration-200",l&&"hover:cleen-border-gray-300 hover:cleen-shadow-md",o?.content?"cleen-pb-3":"cleen-pb-6",g?.container),style:{...v&&{backgroundColor:S,borderColor:C,color:v},...i&&{backgroundImage:`linear-gradient(to right, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 5%),
2
- linear-gradient(to bottom, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 10%)`},...a!==void 0&&{paddingBlock:a},...c!==void 0&&{gap:c},borderRadius:m,...x?.container},children:[(e?.content||e?.title)&&jd("div",{className:It("cleen-px-6",g?.header?.content),style:{...v&&{color:v},...a!==void 0&&{paddingInline:a},...x?.header?.content},children:[e?.title&&kr("div",{className:It("cleen-text-xl cleen-font-bold cleen-text-gray-900",g?.header?.title),style:{...v&&{color:v},...x?.header?.title},children:e?.title}),e?.content]}),(e?.content||e?.title)&&e?.hasDivider&&kr("hr",{className:It("cleen-text-gray-200",g?.header?.divider),style:{...v&&{color:C},...x?.header?.divider}}),p&&kr("div",{className:It("cleen-px-6",g?.childrenContainer),style:{...a!==void 0&&{paddingInline:a},...x?.childrenContainer},children:p}),o?.content&&o?.hasDivider&&kr("hr",{className:It("cleen-text-gray-200",g?.footer?.divider),style:{...v&&{color:C},...x?.footer?.divider}}),o?.content&&kr("div",{className:It("cleen-px-6 -cleen-mt-3 cleen-text-black",g?.footer?.content),style:{...v&&{color:v},...a!==void 0&&{paddingInline:a},...x?.footer?.content},children:o.content})]})})});import{jsx as Kd,jsxs as Ab}from"react/jsx-runtime";var Ml=({...n})=>Ab("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[Kd("path",{d:"M9 10.5l2 2l4 -4"}),Kd("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as Zd}from"react/jsx-runtime";var Bl=({...n})=>Zd("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",...n,stroke:"none",strokeWidth:"2",children:Zd("path",{d:"M14 2a5 5 0 0 1 5 5v14a1 1 0 0 1 -1.555 .832l-5.445 -3.63l-5.444 3.63a1 1 0 0 1 -1.55 -.72l-.006 -.112v-14a5 5 0 0 1 5 -5h4zM15.707 7.293a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"})});import{TbBookmarkPlus as zb}from"react-icons/tb";import{jsx as Ob}from"react/jsx-runtime";function t(n,e){return function({width:r,height:i,...l}){return delete l.color1,delete l.color2,Ob(n,{size:r??i??e,...l})}}var Qd=t(zb,20);import{TbBuilding as _b}from"react-icons/tb";var Al=t(_b,20);import{jsx as Yd,jsxs as Hb}from"react/jsx-runtime";var Ol=({...n})=>Hb("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[Yd("path",{d:"M10 4h4a1 1 0 0 1 1 1v10M12 20h-2a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1"}),Yd("path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39"})]});import{jsx as oo,jsxs as Ub}from"react/jsx-runtime";var zl=({...n})=>Ub("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[oo("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),oo("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),oo("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),oo("path",{d:"M24 18v8"}),oo("path",{d:"M24 30h.01"})]});import{jsx as vn,jsxs as Gb}from"react/jsx-runtime";var _l=({...n})=>Gb("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[vn("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),vn("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),vn("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),vn("path",{d:"M18 24l4 4l8 -8"})]});import{TbAlertCircle as Vb}from"react-icons/tb";var Wt=t(Vb,23);import{TbAlertOctagonFilled as Wb}from"react-icons/tb";var Hl=t(Wb,17);import{TbAlertTriangle as $b}from"react-icons/tb";var Ul=t($b,24);import{TbApps as qb}from"react-icons/tb";var Gl=t(qb,24);import{TbArchive as Xb}from"react-icons/tb";var Vl=t(Xb,24);import{TbArrowBarDown as jb}from"react-icons/tb";var Wl=t(jb,20);import{TbArrowBarLeft as Kb}from"react-icons/tb";var $l=t(Kb,20);import{TbArrowBarRight as Zb}from"react-icons/tb";var ql=t(Zb,20);import{TbArrowBarToDown as Qb}from"react-icons/tb";var Xl=t(Qb,20);import{TbArrowBarToLeft as Yb}from"react-icons/tb";var jl=t(Yb,20);import{TbArrowBarToRight as Jb}from"react-icons/tb";var Kl=t(Jb,20);import{TbArrowBarToUp as eh}from"react-icons/tb";var Zl=t(eh,14);import{TbArrowBarUp as th}from"react-icons/tb";var Ql=t(th,20);import{TbArrowDown as rh}from"react-icons/tb";var Yl=t(rh,16);import{TbArrowDownLeft as oh}from"react-icons/tb";var Jl=t(oh,24);import{TbArrowNarrowDown as nh}from"react-icons/tb";var ei=t(nh,24);import{TbArrowDownRight as lh}from"react-icons/tb";var ti=t(lh,24);import{TbArrowLeft as ih}from"react-icons/tb";var ri=t(ih,20);import{TbArrowNarrowLeft as ah}from"react-icons/tb";var oi=t(ah,20);import{TbArrowRight as ch}from"react-icons/tb";var ni=t(ch,20);import{TbArrowNarrowRight as sh}from"react-icons/tb";var li=t(sh,24);import{TbArrowUp as ph}from"react-icons/tb";var ii=t(ph,16);import{TbArrowUpLeft as mh}from"react-icons/tb";var ai=t(mh,24);import{TbArrowNarrowUp as dh}from"react-icons/tb";var ci=t(dh,24);import{TbArrowUpRight as uh}from"react-icons/tb";var si=t(uh,10);import{TbPaperclip as fh}from"react-icons/tb";var pi=t(fh,20);import{TbChartBar as gh}from"react-icons/tb";var mi=t(gh,20);import{jsx as no,jsxs as bh}from"react/jsx-runtime";var di=({...n})=>bh("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[no("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),no("path",{d:"M6 14.5a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}),no("path",{d:"M14 11a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v6.5a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}),no("path",{d:"M10 7a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v10.5a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}),no("path",{d:"M7 18.5h10"})]});import{TbBell as hh}from"react-icons/tb";var ui=t(hh,24);import{TbBold as vh}from"react-icons/tb";var fi=t(vh,28);import{TbBookmark as yh}from"react-icons/tb";var gi=t(yh,24);import{TbBookmarkFilled as xh}from"react-icons/tb";var bi=t(xh,24);import{TbBookmarkMinus as Ch}from"react-icons/tb";var hi=t(Ch,14);import{jsx as vi,jsxs as Sh}from"react/jsx-runtime";var yi=({...n})=>Sh("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[vi("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),vi("path",{d:"M20.5 21.5l-5 -5"}),vi("path",{d:"M15.5 21.5l5 -5"})]});import{TbBook as wh}from"react-icons/tb";var xi=t(wh,24);import{TbAlignBoxLeftTop as Ih}from"react-icons/tb";var Ci=t(Ih,18);import{TbSquareLetterT as Ph}from"react-icons/tb";var Si=t(Ph,18);import{jsx as wi,jsxs as kh}from"react/jsx-runtime";var Ii=({...n})=>kh("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[wi("path",{d:"M9 12l2 2l4 -4"}),wi("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),wi("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{TbCodeDots as Th}from"react-icons/tb";var Pi=t(Th,20);import{TbWall as Rh}from"react-icons/tb";var ki=t(Rh,42);import{TbBriefcase as Lh}from"react-icons/tb";var Ti=t(Lh,24);import{TbCalculator as Dh}from"react-icons/tb";var Ri=t(Dh,24);import{TbCalendar as Nh}from"react-icons/tb";var lo=t(Nh,20);import{TbCertificate as Fh}from"react-icons/tb";var Li=t(Fh,24);import{TbCheck as Eh}from"react-icons/tb";var st=t(Eh,20);import{TbCircleCheck as Mh}from"react-icons/tb";var $t=t(Mh,22);import{jsx as Jd,jsxs as Bh}from"react/jsx-runtime";var Di=({...n})=>Bh("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[Jd("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),Jd("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{TbCircleCheckFilled as Ah}from"react-icons/tb";var Ni=t(Ah,24);import{TbRosetteDiscountCheck as Oh}from"react-icons/tb";var Fi=t(Oh,16);import{TbRosetteDiscountCheckFilled as zh}from"react-icons/tb";var Ei=t(zh,24);import{TbChevronDown as _h}from"react-icons/tb";var Mi=t(_h,20);import{TbChevronsDown as Hh}from"react-icons/tb";var Bi=t(Hh,24);import{TbChevronDownLeft as Uh}from"react-icons/tb";var Ai=t(Uh,24);import{TbChevronsDownLeft as Gh}from"react-icons/tb";var Oi=t(Gh,24);import{TbChevronDownRight as Vh}from"react-icons/tb";var zi=t(Vh,24);import{TbChevronsDownRight as Wh}from"react-icons/tb";var _i=t(Wh,24);import{TbChevronLeft as $h}from"react-icons/tb";var pt=t($h,20);import{TbChevronsLeft as qh}from"react-icons/tb";var Hi=t(qh,24);import{TbChevronRight as Xh}from"react-icons/tb";var Xe=t(Xh,20);import{TbChevronsRight as jh}from"react-icons/tb";var io=t(jh,24);import{TbSelector as Kh}from"react-icons/tb";var Ui=t(Kh,16);import{TbChevronUp as Zh}from"react-icons/tb";var mt=t(Zh,20);import{TbChevronsUp as Qh}from"react-icons/tb";var Gi=t(Qh,24);import{TbChevronUpLeft as Yh}from"react-icons/tb";var Vi=t(Yh,24);import{TbChevronsUpLeft as Jh}from"react-icons/tb";var Wi=t(Jh,24);import{TbChevronUpRight as ev}from"react-icons/tb";var $i=t(ev,24);import{TbChevronsUpRight as tv}from"react-icons/tb";var qi=t(tv,24);import{TbClick as rv}from"react-icons/tb";var Xi=t(rv,24);import{TbClock as ov}from"react-icons/tb";var ji=t(ov,24);import{jsx as yn,jsxs as nv}from"react/jsx-runtime";var Ki=({...n})=>nv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[yn("path",{d:"M12 7v5l2 2"}),yn("path",{d:"M16 21l2.5 -2l-2.5 -2z"}),yn("path",{d:"M18.5 21l2.5 -2l-2.5 -2z"}),yn("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{TbClockPlay as lv}from"react-icons/tb";var Zi=t(lv,24);import{jsx as eu,jsxs as iv}from"react/jsx-runtime";var Qi=({...n})=>iv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[eu("path",{d:"M12 8l0 4l2 2"}),eu("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as ao,jsxs as av}from"react/jsx-runtime";var Yi=({...n})=>av("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[ao("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),ao("path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667v-8.666"}),ao("path",{d:"M11 14h6"}),ao("path",{d:"M14 11v6"}),ao("path",{d:"M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"})]});import{TbCode as cv}from"react-icons/tb";var Ji=t(cv,24);import{jsx as Tr,jsxs as sv}from"react/jsx-runtime";var ea=({...n})=>sv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[Tr("path",{d:"M4 8h16"}),Tr("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Tr("path",{d:"M8 4v4"}),Tr("path",{d:"M9 12l-2 2l2 2"}),Tr("path",{d:"M15 12l2 2l-2 2"}),Tr("path",{d:"M13 11l-2 6"})]});import{TbCodeCircle as pv}from"react-icons/tb";var ta=t(pv,22);import{TbCircles as mv}from"react-icons/tb";var ra=t(mv,24);import{TbCopy as dv}from"react-icons/tb";var oa=t(dv,16);import{TbSquares as uv}from"react-icons/tb";var na=t(uv,17);import{TbCopyCheck as fv}from"react-icons/tb";var la=t(fv,22);import{TbCreditCard as gv}from"react-icons/tb";var ia=t(gv,24);import{TbCube as bv}from"react-icons/tb";var aa=t(bv,24);import{TbCube3dSphere as hv}from"react-icons/tb";var ca=t(hv,22);import{jsx as tu,jsxs as vv}from"react/jsx-runtime";var co=({...n})=>vv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[tu("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v5.5M10.5 20h-5.5a2 2 0 0 1 -2 -2v-13"}),tu("path",{d:"M18 17l2.822 -1.101c.8125 -.317 .769 -1.481 -.065 -1.7365l-7.1595 -2.191c-.705 -.215 -1.365 .444 -1.149 1.149l2.191 7.159c.255 .834 1.42 .877 1.7365 .065l1.101 -2.822a.92 .92 0 0 1 .5225 -.5225"})]});import{TbSchema as yv}from"react-icons/tb";var sa=t(yv,22);import{TbHierarchy3 as xv}from"react-icons/tb";var pa=t(xv,16);import{TbSitemap as Cv}from"react-icons/tb";var ma=t(Cv,20);import{TbTrash as Sv}from"react-icons/tb";var da=t(Sv,16);import{TbLayoutDistributeHorizontal as wv}from"react-icons/tb";var ua=t(wv,24);import{TbCurrencyDollar as Iv}from"react-icons/tb";var fa=t(Iv,24);import{TbCoin as Pv}from"react-icons/tb";var ga=t(Pv,24);import{TbPoint as kv}from"react-icons/tb";var ba=t(kv,24);import{TbPointFilled as Tv}from"react-icons/tb";var ha=t(Tv,24);import{TbGridDots as Rv}from"react-icons/tb";var va=t(Rv,12);import{TbDots as Lv}from"react-icons/tb";var ya=t(Lv,20);import{TbDotsVertical as Dv}from"react-icons/tb";var Rr=t(Dv,20);import{TbDownload as Nv}from"react-icons/tb";var xa=t(Nv,24);import{TbPencil as Fv}from"react-icons/tb";var Ca=t(Fv,20);import{TbEdit as Ev}from"react-icons/tb";var Sa=t(Ev,20);import{TbArrowsMaximize as Mv}from"react-icons/tb";var wa=t(Mv,15);import{TbExternalLink as Bv}from"react-icons/tb";var Ia=t(Bv,18);import{jsx as Pa,jsxs as Av}from"react/jsx-runtime";var ka=({...n})=>Av("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[Pa("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),Pa("path",{d:"M15 9l-6 6"}),Pa("path",{d:"M10 9l5 0l0 5"})]});import{TbEye as Ov}from"react-icons/tb";var Ta=t(Ov,20);import{TbEyeOff as zv}from"react-icons/tb";var Ra=t(zv,16);import{TbEyeClosed as _v}from"react-icons/tb";var La=t(_v,12);import{TbMoodAngry as Hv}from"react-icons/tb";var Da=t(Hv,24);import{TbMoodCrazyHappy as Uv}from"react-icons/tb";var Na=t(Uv,24);import{TbMoodSmile as Gv}from"react-icons/tb";var Fa=t(Gv,20);import{TbFile as Vv}from"react-icons/tb";var qt=t(Vv,24);import{TbFileCheck as Wv}from"react-icons/tb";var Ea=t(Wv,24);import{TbFileTypeCsv as $v}from"react-icons/tb";var Ma=t($v,24);import{TbFileDownload as qv}from"react-icons/tb";var Ba=t(qv,24);import{TbJson as Xv}from"react-icons/tb";var Aa=t(Xv,24);import{TbFileDescription as jv}from"react-icons/tb";var Oa=t(jv,24);import{TbFileMusic as Kv}from"react-icons/tb";var so=t(Kv,24);import{TbFileTypePdf as Zv}from"react-icons/tb";var Xt=t(Zv,24);import{TbFiles as Qv}from"react-icons/tb";var za=t(Qv,20);import{TbFileSpreadsheet as Yv}from"react-icons/tb";var po=t(Yv,24);import{TbFileText as Jv}from"react-icons/tb";var mo=t(Jv,24);import{TbFileUpload as ey}from"react-icons/tb";var _a=t(ey,24);import{TbFileTypeXls as ty}from"react-icons/tb";var Ha=t(ty,24);import{TbFileZip as ry}from"react-icons/tb";var uo=t(ry,24);import{TbFilter as oy}from"react-icons/tb";var Ua=t(oy,20);import{TbFilter2 as ny}from"react-icons/tb";var fo=t(ny,20);import{TbFlag as ly}from"react-icons/tb";var Ga=t(ly,12);import{TbFlag2 as iy}from"react-icons/tb";var Va=t(iy,24);import{TbFlagFilled as ay}from"react-icons/tb";var Wa=t(ay,25);import{TbFocusCentered as cy}from"react-icons/tb";var $a=t(cy,24);import{TbFolder as sy}from"react-icons/tb";var qa=t(sy,24);import{TbSchool as py}from"react-icons/tb";var Xa=t(py,24);import{TbGripVertical as my}from"react-icons/tb";var ja=t(my,24);import{TbHandStop as dy}from"react-icons/tb";var Ka=t(dy,24);import{jsx as Lr,jsxs as uy}from"react/jsx-runtime";var Za=({...n})=>uy("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[Lr("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Lr("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Lr("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Lr("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),Lr("path",{d:"M14 22h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"}),Lr("path",{d:"M22 16c0 4 -2.5 6 -3.5 6s-3.5 -2 -3.5 -6c1 0 2.5 -.5 3.5 -1.5c1 1 2.5 1.5 3.5 1.5"})]});import{TbHash as fy}from"react-icons/tb";var Qa=t(fy,20);import{TbHeadset as gy}from"react-icons/tb";var Ya=t(gy,24);import{TbHeart as by}from"react-icons/tb";var Ja=t(by,20);import{TbHeartFilled as hy}from"react-icons/tb";var ec=t(hy,24);import{TbHome as vy}from"react-icons/tb";var tc=t(vy,24);import{TbSmartHome as yy}from"react-icons/tb";var go=t(yy,24);import{TbPhoto as xy}from"react-icons/tb";var bo=t(xy,14);import{TbPolaroid as Cy}from"react-icons/tb";var rc=t(Cy,16);import{TbPhotoCheck as Sy}from"react-icons/tb";var oc=t(Sy,21);import{TbPhotoOff as wy}from"react-icons/tb";var nc=t(wy,24);import{TbFileImport as Iy}from"react-icons/tb";var lc=t(Iy,24);import{TbInbox as Py}from"react-icons/tb";var ic=t(Py,24);import{TbInfoCircle as ky}from"react-icons/tb";var ac=t(ky,22);import{TbInfoHexagon as Ty}from"react-icons/tb";var cc=t(Ty,24);import{TbItalic as Ry}from"react-icons/tb";var sc=t(Ry,28);import{TbStack2 as Ly}from"react-icons/tb";var pc=t(Ly,16);import{TbStack as Dy}from"react-icons/tb";var mc=t(Dy,16);import{TbLayoutSidebar as Ny}from"react-icons/tb";var dc=t(Ny,20);import{TbLayout as Fy}from"react-icons/tb";var uc=t(Fy,20);import{TbLayoutBoard as Ey}from"react-icons/tb";var fc=t(Ey,46);import{TbLayoutBoardSplit as My}from"react-icons/tb";var gc=t(My,44);import{TbLayoutCollage as By}from"react-icons/tb";var bc=t(By,45);import{TbLayoutGrid as Ay}from"react-icons/tb";var hc=t(Ay,54);import{TbLifebuoy as Oy}from"react-icons/tb";var vc=t(Oy,20);import{TbBulb as zy}from"react-icons/tb";var yc=t(zy,24);import{TbBolt as _y}from"react-icons/tb";var xc=t(_y,19);import{jsx as ru,jsxs as Hy}from"react/jsx-runtime";var Cc=({...n})=>Hy("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[ru("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),ru("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as Sc,jsxs as Uy}from"react/jsx-runtime";var wc=({...n})=>Uy("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[Sc("path",{d:"M4 19l16 0"}),Sc("path",{d:"M4 16l6 -6l4 4l5 -5"}),Sc("path",{d:"M15 8h5v5"})]});import{TbChartHistogram as Gy}from"react-icons/tb";var Ic=t(Gy,24);import{jsx as Dr,jsxs as Vy}from"react/jsx-runtime";var Pc=({...n})=>Vy("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[Dr("path",{d:"M10.5 3h-5.5a2 2 0 0 0 -2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2 -2v-5.5"}),Dr("path",{d:"M3 13c0 0, 8 0, 12 -4"}),Dr("path",{d:"M12 8h4v4"}),Dr("path",{d:"M15 2v1.44"}),Dr("path",{d:"M18.75 4.75l1.2 -1.2"}),Dr("path",{d:"M20 9h1.44"})]});import{TbChartLine as Wy}from"react-icons/tb";var kc=t(Wy,24);import{TbEqual as $y}from"react-icons/tb";var Tc=t($y,18);import{TbListCheck as qy}from"react-icons/tb";var Rc=t(qy,24);import{jsx as xn,jsxs as Xy}from"react/jsx-runtime";var Lc=({...n})=>Xy("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[xn("path",{d:"M12 10v8l8 -4z"}),xn("path",{d:"M4 6h16"}),xn("path",{d:"M4 12h4.5"}),xn("path",{d:"M4 18h4.5"})]});import{TbLink as jy}from"react-icons/tb";var Dc=t(jy,16);import{TbCirclesRelation as Ky}from"react-icons/tb";var Nc=t(Ky,20);import{TbLinkOff as Zy}from"react-icons/tb";var Fc=t(Zy,24);import{TbList as Qy}from"react-icons/tb";var Ec=t(Qy,28);import{TbListNumbers as Yy}from"react-icons/tb";var Mc=t(Yy,16);import{TbLock as Jy}from"react-icons/tb";var Bc=t(Jy,12);import{TbLockFilled as ex}from"react-icons/tb";var Ac=t(ex,20);import{TbLogin2 as tx}from"react-icons/tb";var Oc=t(tx,24);import{TbLogout as rx}from"react-icons/tb";var zc=t(rx,20);import{TbLogout2 as ox}from"react-icons/tb";var _c=t(ox,20);import{TbWand as nx}from"react-icons/tb";var Hc=t(nx,20);import{TbMail as lx}from"react-icons/tb";var Uc=t(lx,24);import{TbMapPin as ix}from"react-icons/tb";var Gc=t(ix,24);import{TbMaximize as ax}from"react-icons/tb";var Vc=t(ax,24);import{TbArrowsDiagonal as cx}from"react-icons/tb";var Wc=t(cx,24);import{TbMessageCircle as sx}from"react-icons/tb";var $c=t(sx,24);import{TbMessage as px}from"react-icons/tb";var qc=t(px,24);import{TbMessageDots as mx}from"react-icons/tb";var Xc=t(mx,20);import{TbMessageX as dx}from"react-icons/tb";var jc=t(dx,16);import{TbMicrophone as ux}from"react-icons/tb";var ho=t(ux,24);import{TbMinimize as fx}from"react-icons/tb";var Kc=t(fx,24);import{TbArrowsDiagonalMinimize2 as gx}from"react-icons/tb";var Zc=t(gx,24);import{TbCircleMinus as bx}from"react-icons/tb";var Qc=t(bx,21);import{TbDeviceMobile as hx}from"react-icons/tb";var Yc=t(hx,24);import{TbDeviceDesktop as vx}from"react-icons/tb";var Jc=t(vx,22);import{TbDeviceImac as yx}from"react-icons/tb";var es=t(yx,24);import{TbMoon as xx}from"react-icons/tb";var ts=t(xx,24);import{jsx as ou,jsxs as Cx}from"react/jsx-runtime";var rs=({...n})=>Cx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[ou("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),ou("path",{d:"M12 6c.088 0 .175 0 .262 0a5 5 0 0 0 5.28 8.297a6 6 0 1 1 -5.542 -8.303z"})]});import{TbMovie as Sx}from"react-icons/tb";var vo=t(Sx,24);import{TbNavigation as wx}from"react-icons/tb";var os=t(wx,18);import{TbNotification as Ix}from"react-icons/tb";var ns=t(Ix,24);import{TbPackage as Px}from"react-icons/tb";var ls=t(Px,24);import{TbPalette as kx}from"react-icons/tb";var is=t(kx,22);import{TbLockPassword as Tx}from"react-icons/tb";var as=t(Tx,24);import{TbPlayerPause as Rx}from"react-icons/tb";var jt=t(Rx,24);import{TbDevices as Lx}from"react-icons/tb";var cs=t(Lx,21);import{TbDiscount as Dx}from"react-icons/tb";var ss=t(Dx,20);import{TbPerspective as Nx}from"react-icons/tb";var ps=t(Nx,22);import{TbPhoneCall as Fx}from"react-icons/tb";var ms=t(Fx,21);import{TbPin as Ex}from"react-icons/tb";var yo=t(Ex,17);import{TbPlayerPlay as Mx}from"react-icons/tb";var Kt=t(Mx,24);import{jsx as nu,jsxs as Bx}from"react/jsx-runtime";var ds=({...n})=>Bx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[nu("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),nu("path",{d:"M9 8v8l8 -4z"})]});import{TbPlus as Ax}from"react-icons/tb";var us=t(Ax,20);import{TbCirclePlus as Ox}from"react-icons/tb";var Pt=t(Ox,24);import{TbPrinter as zx}from"react-icons/tb";var fs=t(zx,24);import{TbActivity as _x}from"react-icons/tb";var gs=t(_x,24);import{TbHelpCircle as Hx}from"react-icons/tb";var xo=t(Hx,16);import{TbQuote as Ux}from"react-icons/tb";var bs=t(Ux,24);import{TbCircleDot as Gx}from"react-icons/tb";var hs=t(Gx,24);import{TbCircleDotFilled as Vx}from"react-icons/tb";var vs=t(Vx,24);import{TbReceipt as Wx}from"react-icons/tb";var ys=t(Wx,24);import{jsx as lu,jsxs as $x}from"react/jsx-runtime";var xs=({...n})=>$x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[lu("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2"}),lu("path",{d:"M9 11l2 2l4 -4"})]});import{TbArrowForwardUp as qx}from"react-icons/tb";var Cs=t(qx,28);import{TbRotateClockwise as Xx}from"react-icons/tb";var Ss=t(Xx,15);import{TbRefresh as jx}from"react-icons/tb";var ws=t(jx,16);import{TbReload as Kx}from"react-icons/tb";var Is=t(Kx,14);import{TbRepeat as Zx}from"react-icons/tb";var Ps=t(Zx,16);import{TbReplace as Qx}from"react-icons/tb";var ks=t(Qx,20);import{TbRotate as Yx}from"react-icons/tb";var Ts=t(Yx,24);import{TbRestore as Jx}from"react-icons/tb";var Rs=t(Jx,16);import{TbRocket as eC}from"react-icons/tb";var Ls=t(eC,24);import{TbChartPie as tC}from"react-icons/tb";var Ds=t(tC,13);import{TbChartPie2 as rC}from"react-icons/tb";var Ns=t(rC,20);import{TbRoute as oC}from"react-icons/tb";var Fs=t(oC,12);import{TbDeviceFloppy as nC}from"react-icons/tb";var Es=t(nC,20);import{TbBarcode as lC}from"react-icons/tb";var Ms=t(lC,20);import{TbScissors as iC}from"react-icons/tb";var Co=t(iC,24);import{TbSearch as aC}from"react-icons/tb";var Zt=t(aC,20);import{TbSend as cC}from"react-icons/tb";var Bs=t(cC,20);import{TbServer as sC}from"react-icons/tb";var As=t(sC,24);import{TbSettings as pC}from"react-icons/tb";var Os=t(pC,24);import{TbAdjustmentsHorizontal as mC}from"react-icons/tb";var zs=t(mC,24);import{TbShare as dC}from"react-icons/tb";var _s=t(dC,24);import{TbShieldBolt as uC}from"react-icons/tb";var Hs=t(uC,22);import{TbShieldPlus as fC}from"react-icons/tb";var Us=t(fC,20);import{TbShieldX as gC}from"react-icons/tb";var Gs=t(gC,10);import{TbShoppingBag as bC}from"react-icons/tb";var Vs=t(bC,24);import{TbShoppingCart as hC}from"react-icons/tb";var Ws=t(hC,24);import{TbArrowsMinimize as vC}from"react-icons/tb";var $s=t(vC,24);import{TbArrowsShuffle as yC}from"react-icons/tb";var qs=t(yC,16);import{TbPlayerSkipForward as xC}from"react-icons/tb";var Xs=t(xC,24);import{TbBan as CC}from"react-icons/tb";var js=t(CC,16);import{jsx as iu,jsxs as SC}from"react/jsx-runtime";var Ks=({...n})=>SC("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[iu("path",{d:"M9.103 2h5.794a3 3 0 0 1 2.122 .879l4.101 4.1a3 3 0 0 1 .879 2.123v5.794a3 3 0 0 1 -.879 2.122l-4.1 4.101a3 3 0 0 1 -2.123 .879h-5.794a3 3 0 0 1 -2.122 -.879l-4.101 -4.1a3 3 0 0 1 -.879 -2.123v-5.794a3 3 0 0 1 .879 -2.122l4.1 -4.101a3 3 0 0 1 2.123 -.879z"}),iu("path",{d:"M5 5 L19 19"})]});import{TbBrandAndroid as wC}from"react-icons/tb";var Zs=t(wC,24);import{TbBrandApple as IC}from"react-icons/tb";var Qs=t(IC,24);import{TbBrandGithub as PC}from"react-icons/tb";var Ys=t(PC,24);import{TbWorld as kC}from"react-icons/tb";var Js=t(kC,20);import{TbBrandGoogle as TC}from"react-icons/tb";var ep=t(TC,24);import{TbBrandInstagram as RC}from"react-icons/tb";var tp=t(RC,24);import{TbBrandLinkedin as LC}from"react-icons/tb";var rp=t(LC,20);import{TbBrandMastercard as DC}from"react-icons/tb";var op=t(DC,24);import{TbBrandReact as NC}from"react-icons/tb";var np=t(NC,24);import{TbBrandVisa as FC}from"react-icons/tb";var lp=t(FC,24);import{TbBrandX as EC}from"react-icons/tb";var ip=t(EC,20);import{TbGauge as MC}from"react-icons/tb";var ap=t(MC,20);import{TbStairs as BC}from"react-icons/tb";var cp=t(BC,30);import{TbStar as AC}from"react-icons/tb";var So=t(AC,20);import{TbStarFilled as OC}from"react-icons/tb";var sp=t(OC,24);import{TbStarHalfFilled as zC}from"react-icons/tb";var pp=t(zC,20);import{TbSparkles as _C}from"react-icons/tb";var mp=t(_C,20);import{TbPlayerStop as HC}from"react-icons/tb";var wo=t(HC,24);import{TbStrikethrough as UC}from"react-icons/tb";var dp=t(UC,28);import{TbSun as GC}from"react-icons/tb";var up=t(GC,22);import{TbArrowsExchange as VC}from"react-icons/tb";var fp=t(VC,24);import{TbSwitchHorizontal as WC}from"react-icons/tb";var gp=t(WC,14);import{TbTable as $C}from"react-icons/tb";var bp=t($C,24);import{TbTag as qC}from"react-icons/tb";var hp=t(qC,22);import{TbCurrentLocation as XC}from"react-icons/tb";var vp=t(XC,13);import{TbTarget as jC}from"react-icons/tb";var yp=t(jC,24);import{TbTextColor as KC}from"react-icons/tb";var xp=t(KC,16);import{TbLetterT as ZC}from"react-icons/tb";var Cp=t(ZC,18);import{TbHighlight as QC}from"react-icons/tb";var Sp=t(QC,28);import{TbThumbDown as YC}from"react-icons/tb";var wp=t(YC,24);import{TbThumbUp as JC}from"react-icons/tb";var Ip=t(JC,24);import{TbThumbUpFilled as e0}from"react-icons/tb";var Pp=t(e0,24);import{TbToggleLeft as t0}from"react-icons/tb";var kp=t(t0,24);import{TbLanguage as r0}from"react-icons/tb";var Tp=t(r0,24);import{TbTrash as o0}from"react-icons/tb";var _e=t(o0,20);import{TbTrendingUp as n0}from"react-icons/tb";var Rp=t(n0,12);import{TbUnderline as l0}from"react-icons/tb";var Lp=t(l0,28);import{TbArrowBackUp as i0}from"react-icons/tb";var Dp=t(i0,18);import{TbCloudUpload as a0}from"react-icons/tb";var Qt=t(a0,20);import{TbUser as c0}from"react-icons/tb";var Io=t(c0,14);import{TbUserCheck as s0}from"react-icons/tb";var Np=t(s0,24);import{TbUserDollar as p0}from"react-icons/tb";var Fp=t(p0,24);import{TbUserEdit as m0}from"react-icons/tb";var Ep=t(m0,20);import{TbUserPlus as d0}from"react-icons/tb";var Mp=t(d0,24);import{TbUserShare as u0}from"react-icons/tb";var Bp=t(u0,20);import{TbUsers as f0}from"react-icons/tb";var Ap=t(f0,24);import{TbUserSquare as g0}from"react-icons/tb";var Op=t(g0,24);import{jsx as Po,jsxs as b0}from"react/jsx-runtime";var zp=({...n})=>b0("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[Po("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Po("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),Po("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Po("path",{d:"M19 22v-6"}),Po("path",{d:"M22 19l-3 -3l-3 3"})]});import{TbVideo as h0}from"react-icons/tb";var _p=t(h0,24);import{TbDeviceComputerCamera as v0}from"react-icons/tb";var Hp=t(v0,24);import{TbVolume as y0}from"react-icons/tb";var Up=t(y0,20);import{TbVolume2 as x0}from"react-icons/tb";var Gp=t(x0,24);import{TbVolume3 as C0}from"react-icons/tb";var Vp=t(C0,24);import{TbTool as S0}from"react-icons/tb";var Wp=t(S0,24);import{TbX as w0}from"react-icons/tb";var Te=t(w0,16);import{TbCircleX as I0}from"react-icons/tb";var $p=t(I0,22);import{TbCircleXFilled as P0}from"react-icons/tb";var qp=t(P0,15);import{TbSquareX as k0}from"react-icons/tb";var Xp=t(k0,14);import{TbZoomIn as T0}from"react-icons/tb";var jp=t(T0,24);import{TbZoomOut as R0}from"react-icons/tb";var Kp=t(R0,24);var ko=(d=>(d["48AlertFeatured"]="48AlertFeatured",d["48SuccessFeatured"]="48SuccessFeatured",d.AlertCircle="AlertCircle",d.AlertOctagon="AlertOctagon",d.AlertTriangle="AlertTriangle",d.ArrowBarDown="ArrowBarDown",d.ArrowBarLeft="ArrowBarLeft",d.ArrowBarRight="ArrowBarRight",d.ArrowBarToDown="ArrowBarToDown",d.ArrowBarToLeft="ArrowBarToLeft",d.ArrowBarToRight="ArrowBarToRight",d.ArrowBarToUp="ArrowBarToUp",d.ArrowBarUp="ArrowBarUp",d.Apps="Apps",d.Archive="Archive",d.ArrowDown="ArrowDown",d.ArrowDownLeft="ArrowDownLeft",d.ArrowDownNarrow="ArrowDownNarrow",d.ArrowDownRight="ArrowDownRight",d.ArrowLeft="ArrowLeft",d.ArrowLeftNarrow="ArrowLeftNarrow",d.ArrowRight="ArrowRight",d.ArrowRightNarrow="ArrowRightNarrow",d.ArrowUp="ArrowUp",d.ArrowUpLeft="ArrowUpLeft",d.ArrowUpNarrow="ArrowUpNarrow",d.ArrowUpRight="ArrowUpRight",d.Attachment="Attachment",d.BarChart="BarChart",d.BarChartSquare="BarChartSquare",d.Bell="Bell",d.Bold="Bold",d.BookOpen="BookOpen",d.Bookmark="Bookmark",d.BookmarkCheck="BookmarkCheck",d.BookmarkCheckFill="BookmarkCheckFill",d.BookmarkFill="BookmarkFill",d.BookmarkMinus="BookmarkMinus",d.BookmarkPlus="BookmarkPlus",d.BookmarkX="BookmarkX",d.BoxLines="BoxLines",d.BoxText="BoxText",d.BracketsCheck="BracketsCheck",d.BracketsEllipses="BracketsEllipses",d.BrickWall="BrickWall",d.Briefcase="Briefcase",d.Building="Building",d.Calculator="Calculator",d.Calendar="Calendar",d.Certificate="Certificate",d.Check="Check",d.CheckCircle="CheckCircle",d.CheckCircleBroken="CheckCircleBroken",d.CheckFill="CheckFill",d.CheckVerified="CheckVerified",d.CheckVerifiedFill="CheckVerifiedFill",d.ChevronDown="ChevronDown",d.ChevronDownDouble="ChevronDownDouble",d.ChevronDownLeft="ChevronDownLeft",d.ChevronDownLeftDouble="ChevronDownLeftDouble",d.ChevronDownRight="ChevronDownRight",d.ChevronDownRightDouble="ChevronDownRightDouble",d.ChevronLeft="ChevronLeft",d.ChevronLeftDouble="ChevronLeftDouble",d.ChevronRight="ChevronRight",d.ChevronRightDouble="ChevronRightDouble",d.ChevronSelectorVertical="ChevronSelectorVertical",d.ChevronUp="ChevronUp",d.ChevronUpDouble="ChevronUpDouble",d.ChevronUpLeft="ChevronUpLeft",d.ChevronUpLeftDouble="ChevronUpLeftDouble",d.ChevronUpRight="ChevronUpRight",d.ChevronUpRightDouble="ChevronUpRightDouble",d.Click="Click",d.Clock="Clock",d.ClockPlay="ClockPlay",d.ClockFastForward="ClockFastForward",d.ClockRewind="ClockRewind",d.Clone="Clone",d.Code="Code",d.CodeBrowser="CodeBrowser",d.CodeCircle="CodeCircle",d.Colors="Colors",d.ColumnEdit="ColumnEdit",d.Copy="Copy",d.Copy2="Copy2",d.CopyCheck="CopyCheck",d.CreditCard="CreditCard",d.Cube="Cube",d.CubeOutline="CubeOutline",d.CursorBox="CursorBox",d.Dataflow="Dataflow",d.Dataflow2="Dataflow2",d.Dataflow3="Dataflow3",d.Delete="Delete",d.DistributeHorizontal="DistributeHorizontal",d.Dollar="Dollar",d.DollarCircle="DollarCircle",d.Dot="Dot",d.DotFill="DotFill",d.DotsGrid="DotsGrid",d.DotsHorizontal="DotsHorizontal",d.DotsVertical="DotsVertical",d.Download="Download",d.Edit="Edit",d.Editable="Editable",d.Expand="Expand",d.ExternalLink="ExternalLink",d.ExternalLink2="ExternalLink2",d.Eye="Eye",d.EyeHidden="EyeHidden",d.EyeHidden2="EyeHidden2",d.FaceAngry="FaceAngry",d.FaceLaugh="FaceLaugh",d.FaceSmile="FaceSmile",d.File="File",d.FileCheck="FileCheck",d.FileCsv="FileCsv",d.FileDownload="FileDownload",d.FileJson="FileJson",d.FileList="FileList",d.FileMusic="FileMusic",d.FilePdf="FilePdf",d.Files="Files",d.FileSpreadsheet="FileSpreadsheet",d.FileText="FileText",d.FileUpload="FileUpload",d.FileXls="FileXls",d.FileZip="FileZip",d.Filter="Filter",d.Filter2="Filter2",d.Flag="Flag",d.Flag2="Flag2",d.FlagFill="FlagFill",d.Focus="Focus",d.Folder="Folder",d.GraduationCap="GraduationCap",d.GripVertical="GripVertical",d.Hand="Hand",d.HandShield="HandShield",d.Hash="Hash",d.HeadsetMic="HeadsetMic",d.Heart="Heart",d.HeartFill="HeartFill",d.House="House",d.HouseLine="HouseLine",d.Image="Image",d.Image2="Image2",d.ImageCheck="ImageCheck",d.ImageOff="ImageOff",d.Import="Import",d.Inbox="Inbox",d.InfoCircle="InfoCircle",d.InfoHexagon="InfoHexagon",d.Italic="Italic",d.LayersMultiple="LayersMultiple",d.LayersSingle="LayersSingle",d.Layout="Layout",d.Layout2="Layout2",d.LayoutColumns="LayoutColumns",d.LayoutCustom="LayoutCustom",d.LayoutStuffed="LayoutStuffed",d.LayoutTile="LayoutTile",d.LifeBuoy="LifeBuoy",d.Lightbulb="Lightbulb",d.Lightning="Lightning",d.LightningFast="LightningFast",d.LineChartBar="LineChartBar",d.LineChartBreakoutSquare="LineChartBreakoutSquare",d.LineChart="LineChart",d.LineChartUp="LineChartUp",d.Lines="Lines",d.LinesCheck="LinesCheck",d.LinesPlay="LinesPlay",d.Link="Link",d.Link2="Link2",d.LinkOff="LinkOff",d.ListBullet="ListBullet",d.ListOrder="ListOrder",d.Lock="Lock",d.Lock2="Lock2",d.LogIn="LogIn",d.LogOut="LogOut",d.LogOut2="LogOut2",d.MagicWand="MagicWand",d.Mail="Mail",d.MapPin="MapPin",d.Maximize="Maximize",d.Maximize2="Maximize2",d.MessageCircle="MessageCircle",d.MessageSquare="MessageSquare",d.MessageSquare2="MessageSquare2",d.MessageXSquare="MessageXSquare",d.Microphone="Microphone",d.Minimize="Minimize",d.Minimize2="Minimize2",d.MinusCircle="MinusCircle",d.Mobile="Mobile",d.Monitor="Monitor",d.Monitor2="Monitor2",d.Moon="Moon",d.MoonCircle="MoonCircle",d.Movie="Movie",d.NavigationPointer="NavigationPointer",d.NotificationBox="NotificationBox",d.PCSetup="PCSetup",d.Package="Package",d.Palette="Palette",d.PasscodeLock="PasscodeLock",d.Pause="Pause",d.PercentageCircle="PercentageCircle",d.Perspective="Perspective",d.PhoneCall="PhoneCall",d.Pin="Pin",d.Play="Play",d.PlayCircle="PlayCircle",d.Plus="Plus",d.PlusCircle="PlusCircle",d.Printer="Printer",d.Pulse="Pulse",d.QuestionCircle="QuestionCircle",d.Quote="Quote",d.RadioButton="RadioButton",d.RadioButtonActive="RadioButtonActive",d.Receipt="Receipt",d.ReceiptCheck="ReceiptCheck",d.Redo="Redo",d.Refresh="Refresh",d.Refresh2="Refresh2",d.Refresh3="Refresh3",d.Repeat="Repeat",d.Replace="Replace",d.Replay="Replay",d.Restore="Restore",d.Rocket="Rocket",d.RoundChart="RoundChart",d.RoundChart2="RoundChart2",d.Route="Route",d.Save="Save",d.ScanDots="ScanDots",d.Scissors="Scissors",d.Search="Search",d.Send="Send",d.Server="Server",d.Settings="Settings",d.Settings2="Settings2",d.Share="Share",d.ShieldLightning="ShieldLightning",d.ShieldPlus="ShieldPlus",d.ShieldRemove="ShieldRemove",d.ShoppingBag="ShoppingBag",d.ShoppingCart="ShoppingCart",d.Shrink="Shrink",d.Shuffle="Shuffle",d.SkipForward="SkipForward",d.SlashCircle="SlashCircle",d.SlashOctagon="SlashOctagon",d.SocialAndroid="SocialAndroid",d.SocialApple="SocialApple",d.SocialGithub="SocialGithub",d.SocialGlobe="SocialGlobe",d.SocialGoogle="SocialGoogle",d.SocialInstagram="SocialInstagram",d.SocialLinkedin="SocialLinkedin",d.SocialMastercard="SocialMastercard",d.SocialReact="SocialReact",d.SocialVisa="SocialVisa",d.SocialX="SocialX",d.Speedometer="Speedometer",d.Stairs="Stairs",d.Star="Star",d.StarFill="StarFill",d.StarHalf="StarHalf",d.Stars="Stars",d.Stop="Stop",d.Strikethrough="Strikethrough",d.Sun="Sun",d.Swap="Swap",d.SwitchHorizontal="SwitchHorizontal",d.Table="Table",d.Tag="Tag",d.Target="Target",d.Target2="Target2",d.TextFormat="TextFormat",d.TextFormat2="TextFormat2",d.TextHighlight="TextHighlight",d.ThumbsDown="ThumbsDown",d.ThumbsUp="ThumbsUp",d.ThumbsUpFill="ThumbsUpFill",d.Toggle="Toggle",d.Translate="Translate",d.Trash="Trash",d.Trending="Trending",d.Underline="Underline",d.Undo="Undo",d.UploadCloud="UploadCloud",d.User="User",d.UserCheck="UserCheck",d.UserDollar="UserDollar",d.UserEdit="UserEdit",d.UserPlus="UserPlus",d.UserRight="UserRight",d.UserSquare="UserSquare",d.Users="Users",d.UsersUp="UsersUp",d.Video="Video",d.VideoChat="VideoChat",d.Volume="Volume",d.VolumeDown="VolumeDown",d.VolumeMute="VolumeMute",d.Wrench="Wrench",d.X="X",d.XCircle="XCircle",d.XCircle2="XCircle2",d.XSquare="XSquare",d.ZoomIn="ZoomIn",d.ZoomOut="ZoomOut",d))(ko||{});import{jsx as u}from"react/jsx-runtime";function Me({name:n,...e}){switch(n){case"48AlertFeatured":return u(zl,{...e});case"48SuccessFeatured":return u(_l,{...e});case"AlertCircle":return u(Wt,{...e});case"AlertOctagon":return u(Hl,{...e});case"AlertTriangle":return u(Ul,{...e});case"ArrowBarDown":return u(Wl,{...e});case"ArrowBarLeft":return u($l,{...e});case"ArrowBarRight":return u(ql,{...e});case"ArrowBarToDown":return u(Xl,{...e});case"ArrowBarToLeft":return u(jl,{...e});case"ArrowBarToRight":return u(Kl,{...e});case"ArrowBarToUp":return u(Zl,{...e});case"ArrowBarUp":return u(Ql,{...e});case"Apps":return u(Gl,{...e});case"Archive":return u(Vl,{...e});case"ArrowDown":return u(Yl,{...e});case"ArrowDownLeft":return u(Jl,{...e});case"ArrowDownNarrow":return u(ei,{...e});case"ArrowDownRight":return u(ti,{...e});case"ArrowLeft":return u(ri,{...e});case"ArrowLeftNarrow":return u(oi,{...e});case"ArrowRight":return u(ni,{...e});case"ArrowRightNarrow":return u(li,{...e});case"ArrowUp":return u(ii,{...e});case"ArrowUpLeft":return u(ai,{...e});case"ArrowUpNarrow":return u(ci,{...e});case"ArrowUpRight":return u(si,{...e});case"Attachment":return u(pi,{...e});case"BarChart":return u(mi,{...e});case"BarChartSquare":return u(di,{...e});case"Bell":return u(ui,{...e});case"Bold":return u(fi,{...e});case"BookOpen":return u(xi,{...e});case"Bookmark":return u(gi,{...e});case"BookmarkCheck":return u(Ml,{...e});case"BookmarkCheckFill":return u(Bl,{...e});case"BookmarkFill":return u(bi,{...e});case"BookmarkMinus":return u(hi,{...e});case"BookmarkPlus":return u(Qd,{...e});case"BookmarkX":return u(yi,{...e});case"BoxLines":return u(Ci,{...e});case"BoxText":return u(Si,{...e});case"BracketsCheck":return u(Ii,{...e});case"BracketsEllipses":return u(Pi,{...e});case"BrickWall":return u(ki,{...e});case"Briefcase":return u(Ti,{...e});case"Building":return u(Al,{...e});case"Calculator":return u(Ri,{...e});case"Calendar":return u(lo,{...e});case"Certificate":return u(Li,{...e});case"Check":return u(st,{...e});case"CheckCircle":return u($t,{...e});case"CheckCircleBroken":return u(Di,{...e});case"CheckFill":return u(Ni,{...e});case"CheckVerified":return u(Fi,{...e});case"CheckVerifiedFill":return u(Ei,{...e});case"ChevronDown":return u(Mi,{...e});case"ChevronDownDouble":return u(Bi,{...e});case"ChevronDownLeft":return u(Ai,{...e});case"ChevronDownLeftDouble":return u(Oi,{...e});case"ChevronDownRight":return u(zi,{...e});case"ChevronDownRightDouble":return u(_i,{...e});case"ChevronLeft":return u(pt,{...e});case"ChevronLeftDouble":return u(Hi,{...e});case"ChevronRight":return u(Xe,{...e});case"ChevronRightDouble":return u(io,{...e});case"ChevronSelectorVertical":return u(Ui,{...e});case"ChevronUp":return u(mt,{...e});case"ChevronUpDouble":return u(Gi,{...e});case"ChevronUpLeft":return u(Vi,{...e});case"ChevronUpLeftDouble":return u(Wi,{...e});case"ChevronUpRight":return u($i,{...e});case"ChevronUpRightDouble":return u(qi,{...e});case"Click":return u(Xi,{...e});case"Clock":return u(ji,{...e});case"ClockFastForward":return u(Ki,{...e});case"ClockPlay":return u(Zi,{...e});case"ClockRewind":return u(Qi,{...e});case"Clone":return u(Yi,{...e});case"Code":return u(Ji,{...e});case"CodeBrowser":return u(ea,{...e});case"CodeCircle":return u(ta,{...e});case"Colors":return u(ra,{...e});case"ColumnEdit":return u(Ol,{...e});case"Copy":return u(oa,{...e});case"Copy2":return u(na,{...e});case"CopyCheck":return u(la,{...e});case"Files":return u(za,{...e});case"CreditCard":return u(ia,{...e});case"Cube":return u(aa,{...e});case"CubeOutline":return u(ca,{...e});case"CursorBox":return u(co,{...e});case"Dataflow":return u(sa,{...e});case"Dataflow2":return u(pa,{...e});case"Dataflow3":return u(ma,{...e});case"Delete":return u(da,{...e});case"DistributeHorizontal":return u(ua,{...e});case"Dollar":return u(fa,{...e});case"DollarCircle":return u(ga,{...e});case"Dot":return u(ba,{...e});case"DotFill":return u(ha,{...e});case"DotsGrid":return u(va,{...e});case"DotsHorizontal":return u(ya,{...e});case"DotsVertical":return u(Rr,{...e});case"Download":return u(xa,{...e});case"Edit":return u(Ca,{...e});case"Editable":return u(Sa,{...e});case"Expand":return u(wa,{...e});case"ExternalLink":return u(Ia,{...e});case"ExternalLink2":return u(ka,{...e});case"Eye":return u(Ta,{...e});case"EyeHidden":return u(Ra,{...e});case"EyeHidden2":return u(La,{...e});case"FaceAngry":return u(Da,{...e});case"FaceLaugh":return u(Na,{...e});case"FaceSmile":return u(Fa,{...e});case"File":return u(qt,{...e});case"FileCheck":return u(Ea,{...e});case"FileCsv":return u(Ma,{...e});case"FileDownload":return u(Ba,{...e});case"FileJson":return u(Aa,{...e});case"FileList":return u(Oa,{...e});case"FileMusic":return u(so,{...e});case"FilePdf":return u(Xt,{...e});case"FileSpreadsheet":return u(po,{...e});case"FileText":return u(mo,{...e});case"FileUpload":return u(_a,{...e});case"FileXls":return u(Ha,{...e});case"FileZip":return u(uo,{...e});case"Filter":return u(Ua,{...e});case"Filter2":return u(fo,{...e});case"Flag":return u(Ga,{...e});case"Flag2":return u(Va,{...e});case"FlagFill":return u(Wa,{...e});case"Focus":return u($a,{...e});case"Folder":return u(qa,{...e});case"GraduationCap":return u(Xa,{...e});case"GripVertical":return u(ja,{...e});case"Hand":return u(Ka,{...e});case"HandShield":return u(Za,{...e});case"Hash":return u(Qa,{...e});case"HeadsetMic":return u(Ya,{...e});case"Heart":return u(Ja,{...e});case"HeartFill":return u(ec,{...e});case"House":return u(tc,{...e});case"HouseLine":return u(go,{...e});case"Image":return u(bo,{...e});case"Image2":return u(rc,{...e});case"ImageCheck":return u(oc,{...e});case"ImageOff":return u(nc,{...e});case"Import":return u(lc,{...e});case"Inbox":return u(ic,{...e});case"InfoCircle":return u(ac,{...e});case"InfoHexagon":return u(cc,{...e});case"Italic":return u(sc,{...e});case"LayersMultiple":return u(pc,{...e});case"LayersSingle":return u(mc,{...e});case"Layout":return u(dc,{...e});case"Layout2":return u(uc,{...e});case"LayoutColumns":return u(fc,{...e});case"LayoutCustom":return u(gc,{...e});case"LayoutStuffed":return u(bc,{...e});case"LayoutTile":return u(hc,{...e});case"LifeBuoy":return u(vc,{...e});case"Lightbulb":return u(yc,{...e});case"Lightning":return u(xc,{...e});case"LightningFast":return u(Cc,{...e});case"LineChartBar":return u(Ic,{...e});case"LineChartBreakoutSquare":return u(Pc,{...e});case"LineChart":return u(wc,{...e});case"LineChartUp":return u(kc,{...e});case"Lines":return u(Tc,{...e});case"LinesCheck":return u(Rc,{...e});case"LinesPlay":return u(Lc,{...e});case"Link":return u(Dc,{...e});case"Link2":return u(Nc,{...e});case"LinkOff":return u(Fc,{...e});case"ListBullet":return u(Ec,{...e});case"ListOrder":return u(Mc,{...e});case"Lock":return u(Bc,{...e});case"Lock2":return u(Ac,{...e});case"LogIn":return u(Oc,{...e});case"LogOut":return u(zc,{...e});case"LogOut2":return u(_c,{...e});case"MagicWand":return u(Hc,{...e});case"Mail":return u(Uc,{...e});case"MapPin":return u(Gc,{...e});case"Maximize":return u(Vc,{...e});case"Maximize2":return u(Wc,{...e});case"MessageCircle":return u($c,{...e});case"MessageSquare":return u(qc,{...e});case"MessageSquare2":return u(Xc,{...e});case"MessageXSquare":return u(jc,{...e});case"Microphone":return u(ho,{...e});case"Minimize":return u(Kc,{...e});case"Minimize2":return u(Zc,{...e});case"MinusCircle":return u(Qc,{...e});case"Mobile":return u(Yc,{...e});case"Monitor":return u(Jc,{...e});case"Monitor2":return u(es,{...e});case"Moon":return u(ts,{...e});case"MoonCircle":return u(rs,{...e});case"Movie":return u(vo,{...e});case"NavigationPointer":return u(os,{...e});case"NotificationBox":return u(ns,{...e});case"PCSetup":return u(cs,{...e});case"Package":return u(ls,{...e});case"Palette":return u(is,{...e});case"PasscodeLock":return u(as,{...e});case"Pause":return u(jt,{...e});case"PercentageCircle":return u(ss,{...e});case"Perspective":return u(ps,{...e});case"PhoneCall":return u(ms,{...e});case"Pin":return u(yo,{...e});case"Play":return u(Kt,{...e});case"PlayCircle":return u(ds,{...e});case"Plus":return u(us,{...e});case"PlusCircle":return u(Pt,{...e});case"Printer":return u(fs,{...e});case"Pulse":return u(gs,{...e});case"QuestionCircle":return u(xo,{...e});case"Quote":return u(bs,{...e});case"RadioButton":return u(hs,{...e});case"RadioButtonActive":return u(vs,{...e});case"Receipt":return u(ys,{...e});case"ReceiptCheck":return u(xs,{...e});case"Redo":return u(Cs,{...e});case"Refresh":return u(Ss,{...e});case"Refresh2":return u(ws,{...e});case"Refresh3":return u(Is,{...e});case"Repeat":return u(Ps,{...e});case"Replace":return u(ks,{...e});case"Replay":return u(Ts,{...e});case"Restore":return u(Rs,{...e});case"Rocket":return u(Ls,{...e});case"RoundChart":return u(Ds,{...e});case"RoundChart2":return u(Ns,{...e});case"Route":return u(Fs,{...e});case"Save":return u(Es,{...e});case"ScanDots":return u(Ms,{...e});case"Scissors":return u(Co,{...e});case"Search":return u(Zt,{...e});case"Send":return u(Bs,{...e});case"Server":return u(As,{...e});case"Settings":return u(Os,{...e});case"Settings2":return u(zs,{...e});case"Share":return u(_s,{...e});case"ShieldLightning":return u(Hs,{...e});case"ShieldPlus":return u(Us,{...e});case"ShieldRemove":return u(Gs,{...e});case"ShoppingBag":return u(Vs,{...e});case"ShoppingCart":return u(Ws,{...e});case"Shrink":return u($s,{...e});case"Shuffle":return u(qs,{...e});case"SkipForward":return u(Xs,{...e});case"SlashCircle":return u(js,{...e});case"SlashOctagon":return u(Ks,{...e});case"SocialAndroid":return u(Zs,{...e});case"SocialApple":return u(Qs,{...e});case"SocialGithub":return u(Ys,{...e});case"SocialGlobe":return u(Js,{...e});case"SocialGoogle":return u(ep,{...e});case"SocialInstagram":return u(tp,{...e});case"SocialLinkedin":return u(rp,{...e});case"SocialMastercard":return u(op,{...e});case"SocialReact":return u(np,{...e});case"SocialVisa":return u(lp,{...e});case"SocialX":return u(ip,{...e});case"Speedometer":return u(ap,{...e});case"Stairs":return u(cp,{...e});case"Star":return u(So,{...e});case"StarFill":return u(sp,{...e});case"StarHalf":return u(pp,{...e});case"Stars":return u(mp,{...e});case"Stop":return u(wo,{...e});case"Strikethrough":return u(dp,{...e});case"Sun":return u(up,{...e});case"Swap":return u(fp,{...e});case"SwitchHorizontal":return u(gp,{...e});case"Table":return u(bp,{...e});case"Tag":return u(hp,{...e});case"Target":return u(vp,{...e});case"Target2":return u(yp,{...e});case"TextFormat":return u(xp,{...e});case"TextFormat2":return u(Cp,{...e});case"TextHighlight":return u(Sp,{...e});case"ThumbsDown":return u(wp,{...e});case"ThumbsUp":return u(Ip,{...e});case"ThumbsUpFill":return u(Pp,{...e});case"Toggle":return u(kp,{...e});case"Translate":return u(Tp,{...e});case"Trash":return u(_e,{...e});case"Trending":return u(Rp,{...e});case"Underline":return u(Lp,{...e});case"Undo":return u(Dp,{...e});case"UploadCloud":return u(Qt,{...e});case"User":return u(Io,{...e});case"UserCheck":return u(Np,{...e});case"UserDollar":return u(Fp,{...e});case"UserEdit":return u(Ep,{...e});case"UserPlus":return u(Mp,{...e});case"UserRight":return u(Bp,{...e});case"UserSquare":return u(Op,{...e});case"Users":return u(Ap,{...e});case"UsersUp":return u(zp,{...e});case"Video":return u(_p,{...e});case"VideoChat":return u(Hp,{...e});case"Volume":return u(Up,{...e});case"VolumeDown":return u(Gp,{...e});case"VolumeMute":return u(Vp,{...e});case"Wrench":return u(Wp,{...e});case"X":return u(Te,{...e});case"XCircle":return u($p,{...e});case"XCircle2":return u(qp,{...e});case"XSquare":return u(Xp,{...e});case"ZoomIn":return u(jp,{...e});case"ZoomOut":return u(Kp,{...e});default:return null}}import{cn as Zp,ColorHelpers as L0}from"@cleen/ui-core";import{forwardRef as D0}from"react";import{Fragment as F0,jsx as To,jsxs as E0}from"react/jsx-runtime";var N0=D0(function({iconName:e,iconSrc:o,icon:r,iconSize:i=20,header:l,color:a,children:c,classNames:m,styles:p,...s},g){let f=L0.getComputedColor(a);return To(ie,{ref:g,classNames:{...m,header:{...m?.header,title:Zp("cleen-flex cleen-gap-4",m?.header?.title)}},header:{...l,title:E0(F0,{children:[To("div",{className:Zp("cleen-flex cleen-w-10 cleen-h-10 cleen-justify-center cleen-items-center cleen-gap-2 cleen-flex-shrink-0 cleen-rounded-xl cleen-border cleen-border-gray-200 cleen-bg-background",m?.iconHolder),style:{...f&&{backgroundColor:ro(f,.85),color:f,borderColor:"transparent"},...p?.iconHolder},children:r||(e?To(Me,{name:e,className:"cleen-text-gray-900",style:{width:i,height:i,...f&&{color:f}}}):o?To("img",{src:o,alt:"Icon",className:"cleen-text-gray-900",style:{width:i,height:i,...f&&{color:f}}}):null)}),l?.title]})},color:a,...s,children:c&&To("div",{className:Zp("cleen-flex-1",m?.content),style:p?.content,children:c})})});import{cn as Nr}from"@cleen/ui-core";import{forwardRef as M0,useMemo as B0}from"react";import{jsx as Ro}from"react/jsx-runtime";var A0=M0(function({media:e,header:o,color:r,children:i,classNames:l,styles:a,...c},m){let p=B0(()=>{switch(e?.type){case"image":return Ro("img",{...e,alt:e.alt??"Card media",className:Nr("cleen-w-full cleen-aspect-video cleen-object-cover",l?.media?.content),style:a?.media?.content});case"video":return Ro("video",{playsInline:!0,controls:!0,...e,className:Nr("cleen-w-full cleen-aspect-video cleen-object-cover",l?.media?.content),style:a?.media?.content});case"iframe":return Ro("iframe",{...e,title:e.title??"Card iframe",className:Nr("cleen-w-full cleen-aspect-video cleen-object-cover",l?.media?.content),style:a?.media?.content});default:return null}},[e,l?.media,a?.media]);return Ro(ie,{ref:m,color:r,classNames:{...l,container:Nr("cleen-pt-0",l?.container),header:{...l?.header,content:Nr("cleen-p-0",l?.header?.content)}},header:{...o,...p&&{content:Ro("div",{className:Nr("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",l?.media?.container),style:a?.media?.container,children:p})}},...c,children:i})});import{cn as Lo}from"@cleen/ui-core";import{jsx as Cn,jsxs as O0}from"react/jsx-runtime";var Y=({className:n,classNames:e,style:o,styles:r,infoMessage:i,errorMessage:l,subtitle:a,...c})=>Cn("div",{className:Lo("cleen",n),style:o,children:O0("div",{className:Lo(e?.container),style:r?.container,...c,children:[i&&Cn("div",{className:Lo("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-primary",e?.infoMessage),style:r?.infoMessage,role:"note",children:i}),l&&Cn("div",{className:Lo("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",e?.errorMessage),style:r?.errorMessage,role:"alert",children:l}),a&&Cn("div",{className:Lo("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-gray-600",e?.subtitle),style:r?.subtitle,children:a})]})});import{cn as Do}from"@cleen/ui-core";import{jsx as No,jsxs as z0}from"react/jsx-runtime";var ee=({required:n=!1,tooltip:e,children:o,className:r,classNames:i,style:l,styles:a,...c})=>No("div",{className:Do("cleen",r),style:l,children:z0("label",{...c,className:Do("cleen-w-full cleen-flex cleen-gap-1 cleen-items-center cleen-font-medium cleen-text-gray-700 cleen-text-sm cleen-leading-6",i?.container),style:a?.container,children:[No("div",{className:Do({"cleen-flex-1":!n&&!e},i?.label),style:a?.label,children:o}),n&&No("span",{className:Do("cleen-text-primary",i?.required),style:a?.required,children:"*"}),e&&No(ue,{hasArrow:!0,placement:"top",label:e,color:"rgb(var(--cleen-gray-600))",...i?.tooltip,style:a?.tooltip?.style,styles:{...a?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...a?.tooltip?.styles?.labelContainer}},children:No(xo,{className:Do("cleen-size-3 cleen-text-gray-400 hover:cleen-text-gray-700 cleen-transition-colors",i?.questionIcon),style:a?.questionIcon})})]})});import{cn as dt}from"@cleen/ui-core";import{forwardRef as _0,useEffect as H0,useId as U0,useMemo as G0,useState as au}from"react";import{jsx as kt,jsxs as Sn}from"react/jsx-runtime";var me=_0(function({name:e,id:o,type:r,label:i,labelTooltip:l,defaultValue:a,value:c,files:m,disabled:p,required:s,className:g,classNames:f,style:x,styles:y,autoComplete:h="off",isFocusedBorder:v,maxLength:S,minLength:C,maxLengthLabelThreshold:b=.5,uploadLabel:w="Choose a file",leftIcon:P,rightIcon:R,topRightIcon:k,inputOverlay:T,infoLabels:D,maxLengthLabel:B,minLengthLabel:E,onChange:L,...M},F){let I=c!==void 0||m!==void 0,[O,N]=au(a??""),[z,_]=au(null),H=I?c:O,G=I?m:z;H0(()=>{I||N(c??a??"")},[c,a,I]);let q=A=>{let K=A.target.value;if(r==="file"&&A.target.files){I||_(A.target.files),L?.(A);return}(!S||K.length<=S)&&(I||N(K),L?.(A))},$=G0(()=>C&&E&&(H?.toString()?.length??0)<C?E(C-(H?.toString()?.length??0)):!S||!B||(H?.toString()?.length??0)/S<b?D?.subtitle:B?.(S-(H?.toString()?.length??0)),[H,S,b,D?.subtitle]),U=U0(),V=!!(D?.errorMessage||D?.infoMessage||$),Q=V?`${U}-info`:void 0;return kt("div",{className:dt("cleen",g),style:x,children:Sn("div",{className:dt("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-normal",f?.container),style:y?.container,children:[(i||k)&&Sn("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[kt(ee,{htmlFor:o||e,required:s,tooltip:l,className:dt("cleen-w-full",f?.label?.className),classNames:f?.label?.classNames,...y?.label,children:i}),k]}),Sn("label",{className:dt("cleen-relative cleen-flex cleen-items-stretch cleen-bg-background cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-colors cleen-duration-200 cleen-overflow-hidden focus-within:cleen-ring-4 focus-within:cleen-ring-primary-100 focus-within:cleen-ring-offset-0 focus-within:cleen-border-primary-400",{"has-[:focus]:cleen-border has-[:focus]:cleen-border-primary/30":v},p&&"cleen-bg-gray-100",{"cleen-cursor-pointer":r==="file"&&!p},D?.errorMessage?["cleen-border-error/50",!p&&"hover:cleen-border-error/70"]:["cleen-border-gray-300",!p&&"hover:cleen-border-gray-200 focus-within:cleen-border-primary focus-within:hover:cleen-border-primary"],f?.inputContainer),style:y?.inputContainer,children:[P&&kt("div",{className:dt("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-l-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",p?"cleen-text-gray-400":"cleen-text-gray-500",f?.leftIconContainer),style:y?.leftIconContainer,children:P}),Sn("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[kt("input",{id:o||e,name:e,type:r,disabled:p,maxLength:S,autoComplete:h,value:H,className:dt("cleen-block cleen-border-0 cleen-bg-transparent cleen-rounded-md cleen-w-full cleen-text-base","cleen-py-2 cleen-pr-2 placeholder:cleen-text-gray-400 sm:cleen-text-sm focus:cleen-ring-transparent focus:cleen-outline-none cleen-my-auto",P?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":P,"cleen-rounded-r-none":R,"cleen-hidden":r==="file"},p?"cleen-text-gray-400":"cleen-text-gray-900",f?.input),style:y?.input,onChange:q,required:s,"aria-invalid":D?.errorMessage?!0:void 0,"aria-describedby":Q,ref:F,...M}),T&&kt("div",{className:dt("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",P?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",f?.inputOverlay),style:y?.inputOverlay,children:T}),r==="file"&&kt("p",{className:dt("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",p?"cleen-text-gray-400":"cleen-text-gray-500",G&&G.length>0&&"cleen-text-gray-900"),children:G&&G.length>0?Array.from(G).map(A=>A.name).join(", "):w})]}),R&&kt("div",{className:dt("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-r-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",p?"cleen-text-gray-400":"cleen-text-gray-500",f?.rightIconContainer),style:y?.rightIconContainer,children:R})]}),V&&kt(Y,{id:Q,...D,subtitle:$})]})})});import{cn as Fo,useOutsideClick as V0}from"@cleen/ui-core";import{forwardRef as W0,useEffect as cu,useImperativeHandle as $0,useMemo as q0,useRef as X0,useState as wn}from"react";import{jsx as Eo,jsxs as j0}from"react/jsx-runtime";var Qp=W0(function({value:e,defaultValue:o,defaultIsEditing:r=!1,isEditing:i,onIsEditingChange:l,placeholder:a,placeholderText:c,canEdit:m=!0,onSave:p,onCancel:s,onChange:g,inputProps:f,blurOnOutsideClick:x=!0,saveOnBlur:y=!0,isLoading:h,customLoader:v=Eo(re,{}),selectAllOnEdit:S=!1,renderText:C,className:b,classNames:w,style:P,styles:R,...k},T){let D=e!==void 0,[B,E]=wn(o??""),L=D?e??"":B,[M,F]=wn(!1),I=h??M,O=q0(()=>typeof C=="function"?C(L):C||L||c||a,[L,C,a,c]),[N,z]=wn(r),_=i!==void 0,H=_?i:N,[G,q]=wn(L),$=X0(null);$0(T,()=>({...$.current,save:V,cancel:U})),cu(()=>{D||E(o??"")},[o,D]),cu(()=>{H||q(L)},[L,H]);let U=async()=>{_||z(!1),l?.(!1),q(L),await s?.()},V=async()=>{if(!I){if(L===G){await s?.(),_||z(!1),l?.(!1);return}F(!0),D||E(G);try{await p?.(G),_||z(!1),l?.(!1)}finally{F(!1)}}},Q=async A=>{A.key==="Enter"&&(A.preventDefault(),await V()),A.key==="Escape"&&(A.stopPropagation(),A.preventDefault(),await U()),f?.onKeyDown?.(A)};return V0({refs:[$],enabled:x&&H,handler:async()=>{y?await V():await U()}}),Eo("div",{className:Fo("cleen",b),style:P,ref:$,...k,children:H?j0("div",{className:Fo("cleen-relative cleen-h-full",w?.container),style:R?.container,children:[Eo(me,{value:G,onChange:A=>{q(A.target.value),g?.(A.target.value)},autoFocus:!0,placeholder:a,className:w?.input?.className,classNames:{...w?.input?.classNames,inputContainer:Fo("cleen-border-primary hover:cleen-border-primary/60",w?.input?.classNames?.inputContainer)},...R?.input,...f,onFocus:A=>{f?.onFocus?.(A),S&&A.target.select()},disabled:I||f?.disabled,onKeyDown:Q}),I&&Eo("div",{className:Fo("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",w?.loaderContainer),style:R?.loaderContainer,children:v})]}):Eo("div",{onClick:()=>{m&&(_||z(!0),l?.(!0))},className:Fo("cleen-min-h-6 cleen-text-gray-900",m&&"cleen-cursor-text hover:cleen-bg-gray-100 cleen-rounded cleen-p-2 cleen-transition-colors",!L&&"cleen-text-gray-500",w?.preview),style:R?.preview,children:O})})});import{cn as Fr}from"@cleen/ui-core";import{forwardRef as K0,useEffect as su,useId as Z0,useMemo as Q0,useRef as Y0,useState as J0}from"react";import{jsx as Yt,jsxs as Yp}from"react/jsx-runtime";var Jp=K0(function({name:e,id:o,value:r,defaultValue:i,label:l,labelTooltip:a,disabled:c,required:m,infoLabels:p,topRightElement:s,labelRightElement:g,textareaOverlay:f,onChange:x,minHeight:y,maxHeight:h=200,autoResize:v=!0,maxLength:S,minLength:C,maxLengthLabelThreshold:b=.5,maxLengthLabel:w,minLengthLabel:P,className:R,classNames:k,style:T,styles:D,...B},E){let L=r!==void 0,[M,F]=J0(typeof i=="string"?i:""),I=Y0(null),O=E??I,N=L?r:M;su(()=>{L||F(r??(typeof i=="string"?i:""))},[r,i,L]);let z=A=>{A.style.height="auto";let K=Math.min(A.scrollHeight,h);A.style.height=`${K}px`},_=A=>{z(A.target)};su(()=>{!v||!I.current||z(I.current)},[v,N,h]);let H=A=>{A.preventDefault()},G=A=>{A.preventDefault();let K=A.dataTransfer?.getData("text/plain");L?x?.(`${r??""}${K}`):(F(ae=>`${ae}${K}`),x?.(`${M}${K}`))},q=A=>{let K=A.target.value;(!S||K.length<=S)&&(L||F(K),x?.(K),v&&_(A))},$=Q0(()=>C&&P&&(N?.length??0)<C?P(C-(N?.length??0)):!S||!w||(N?.toString()?.length??0)/S<b?p?.subtitle:w?.(S-(N?.toString()?.length??0)),[N,S,b,p?.subtitle]),U=Z0(),V=!!(p?.errorMessage||p?.infoMessage||$),Q=V?`${U}-info`:void 0;return Yt("div",{className:Fr("cleen",R),style:T,children:Yp("div",{className:Fr("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",k?.container),style:D?.container,children:[(l||g)&&Yp("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[l&&Yt(ee,{htmlFor:o||e,required:m,tooltip:a,className:Fr("cleen-w-full",k?.label?.className),classNames:k?.label?.classNames,...D?.label,children:l}),g&&Yt("div",{className:"cleen-ml-auto",children:g})]}),Yp("div",{className:Fr("cleen-relative cleen-flex cleen-items-center cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-colors cleen-duration-200",p?.errorMessage?"cleen-border-error/50 hover:cleen-border-error/70":"cleen-border-gray-300 hover:cleen-border-gray-200 focus-within:cleen-border-primary focus-within:hover:cleen-border-primary",k?.textareaContainer),style:D?.textareaContainer,children:[s&&Yt("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:s}),f&&Yt("div",{className:Fr("cleen-absolute cleen-inset-0 cleen-px-3.5 cleen-py-3 cleen-rounded-lg cleen-overflow-y-auto cleen-text-sm cleen-leading-6",c?"cleen-bg-gray-100":"cleen-bg-background"),children:f}),Yt("textarea",{id:o||e,name:e,ref:O,disabled:c,value:N,minLength:C,maxLength:S,"aria-invalid":p?.errorMessage?!0:void 0,"aria-describedby":Q,className:Fr("cleen-block cleen-flex-1 cleen-px-3.5 cleen-py-3 cleen-border-0 cleen-rounded-lg focus:cleen-outline-none focus:cleen-ring-transparent placeholder:cleen-text-gray-500 sm:cleen-text-sm cleen-text-base",c?"cleen-bg-gray-100 cleen-text-gray-400":"cleen-bg-background cleen-text-gray-900",k?.textarea),style:{...y&&{minHeight:`${y}px`},...D?.textarea},onFocus:A=>A.currentTarget.setSelectionRange(A.currentTarget.value.length,A.currentTarget.value.length),onDragOver:H,onDrop:G,...B,onChange:q})]}),V&&Yt(Y,{id:Q,...p,subtitle:$})]})})});import{cn as Mo,useOutsideClick as eS}from"@cleen/ui-core";import{forwardRef as tS,useEffect as pu,useImperativeHandle as rS,useMemo as oS,useRef as nS,useState as In}from"react";import{jsx as Bo,jsxs as lS}from"react/jsx-runtime";var em=tS(function({value:e,defaultValue:o,defaultIsEditing:r=!1,isEditing:i,onIsEditingChange:l,placeholder:a,placeholderText:c,canEdit:m=!0,onSave:p,onCancel:s,onChange:g,textAreaProps:f,blurOnOutsideClick:x=!0,saveOnBlur:y=!0,isLoading:h,customLoader:v=Bo(re,{size:"md"}),selectAllOnEdit:S=!1,renderText:C,className:b,classNames:w,style:P,styles:R,...k},T){let D=e!==void 0,[B,E]=In(o??""),L=D?e??"":B,[M,F]=In(!1),I=h??M,O=oS(()=>typeof C=="function"?C(L):C||L||c||a,[L,C,a,c]),[N,z]=In(r),_=i!==void 0,H=_?i:N,[G,q]=In(L),$=nS(null);rS(T,()=>({...$.current,save:V,cancel:U})),pu(()=>{D||E(o??"")},[o,D]),pu(()=>{H||q(L)},[L,H]);let U=async()=>{_||z(!1),l?.(!1),q(L),await s?.()},V=async()=>{if(!I){if(L===G){await s?.(),_||z(!1),l?.(!1);return}F(!0),D||E(G);try{await p?.(G),_||z(!1),l?.(!1)}finally{F(!1)}}},Q=async A=>{A.key==="Escape"&&(A.preventDefault(),A.stopPropagation(),await U()),A.key==="Enter"&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),await V()),f?.onKeyDown?.(A)};return eS({refs:[$],enabled:x&&H,handler:async()=>{y?await V():await U()}}),Bo("div",{className:Mo("cleen",b),style:P,ref:$,...k,children:H?lS("div",{className:Mo("cleen-relative cleen-h-full",w?.container),style:R?.container,children:[Bo(Jp,{value:G,onChange:A=>{q(A),g?.(A)},autoFocus:!0,placeholder:a,className:w?.textArea?.className,classNames:{...w?.textArea?.classNames,textareaContainer:Mo("cleen-border-primary hover:cleen-border-primary/60",w?.textArea?.classNames?.textareaContainer)},...R?.textArea,...f,onFocus:A=>{f?.onFocus?.(A),S&&A.target.select()},disabled:I||f?.disabled,onKeyDown:Q}),I&&Bo("div",{className:Mo("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",w?.loaderContainer),style:R?.loaderContainer,children:v})]}):Bo("div",{onClick:()=>{m&&(_||z(!0),l?.(!0))},className:Mo("cleen-min-h-6 cleen-text-gray-900 cleen-whitespace-pre-wrap",m&&"cleen-cursor-text hover:cleen-bg-gray-100 cleen-rounded cleen-p-2 cleen-transition-colors",!L&&"cleen-text-gray-500",w?.preview),style:R?.preview,children:O})})});import"@cleen/ui-core";import{forwardRef as iS}from"react";import{Fragment as cS,jsx as tm,jsxs as sS}from"react/jsx-runtime";var aS=iS(function({header:e,color:o,children:r,description:i,onSave:l,isDescriptionHidden:a=!1,titleProps:c,descriptionProps:m,classNames:p,styles:s,...g},f){let x=typeof e?.title=="string"||typeof e?.title=="number"?String(e.title):void 0;return tm(ie,{ref:f,color:o,header:{...e,title:tm(Qp,{value:x??"",onSave:async y=>{await l?.("title",y)},...p?.titleTextInput,...s?.titleTextInput,...c})},classNames:p,styles:s,...g,children:(!a||r)&&sS(cS,{children:[tm(em,{value:i??"",onSave:async y=>{await l?.("description",y)},...m,textAreaProps:m?.textAreaProps,...p?.descriptionTextInput,...s?.descriptionTextInput}),r]})})});import{cn as Ao}from"@cleen/ui-core";import{forwardRef as pS}from"react";import{jsx as Pn}from"react/jsx-runtime";var mS=pS(function({type:e="button",label:o,onClick:r,containerRef:i,className:l,classNames:a,style:c,styles:m,disabled:p=!1,loaderOptions:s,isLoading:g=!1,variant:f="primary",children:x,...y},h){return Pn("div",{className:Ao("cleen",l),style:c,ref:i,children:Pn("button",{type:e,ref:h,disabled:g||p,onClick:r,className:Ao("cleen-size-full",a?.container),style:m?.container,...y,children:Pn(ie,{p:0,className:Ao("cleen-size-full",a?.card?.className),classNames:{...a?.card?.classNames,container:Ao("cleen-size-full",Wd[f],a?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":p||g}),childrenContainer:Ao("cleen-size-full cleen-flex cleen-justify-center cleen-items-center",a?.card?.classNames?.childrenContainer)},...m?.card,children:g?Pn(re,{size:"lg",...s,color:s?.color||$d[f],...a?.loader,...m?.loader}):o||x})})})});import{cn as Oo,ColorHelpers as mu,formatAudioTime as du}from"@cleen/ui-core";import{useWavesurfer as dS}from"@wavesurfer/react";import{forwardRef as uS,useCallback as fS,useRef as gS}from"react";import{jsx as zo,jsxs as uu}from"react/jsx-runtime";var bS={waveColor:mu.getComputedColor("var(--cleen-light-gray)"),progressColor:mu.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},hS=uS(function({url:e,options:o,className:r,classNames:i,style:l,styles:a,...c},m){let p=gS(null),{wavesurfer:s,isPlaying:g,isReady:f,currentTime:x}=dS({...bS,...o,container:p,url:e}),y=f?s?.getDuration()??0:0,h=fS(()=>{s?.playPause()},[s]);return zo("div",{ref:m,className:Oo("cleen",r),style:l,...c,children:uu("div",{className:Oo("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-rounded-xl cleen-bg-white cleen-border cleen-border-gray-200",i?.container),style:a?.container,children:[zo(ne,{type:"button",onClick:h,disabled:!f,"aria-label":g?"Pause":"Play",className:i?.playButton?.className,classNames:{...i?.playButton?.classNames,container:Oo("cleen-p-0 !cleen-size-9 cleen-rounded-full",i?.playButton?.classNames?.container)},...a?.playButton,children:g?zo(jt,{className:"cleen-fill-current"}):zo(Kt,{className:"cleen-fill-current"})}),zo("div",{ref:p,className:Oo("cleen-flex-1 cleen-min-w-0",i?.waveform),style:a?.waveform}),uu("span",{className:Oo("cleen-shrink-0 cleen-text-xs cleen-text-gray-500 cleen-tabular-nums",i?.timestamp),style:a?.timestamp,children:[du(x),"\xA0/\xA0",du(y)]})]})})});import{ColorHelpers as vS}from"@cleen/ui-core";var fu=vS.getComputedColor("var(--cleen-primary)"),gu="rgba(var(--cleen-primary), 0.15)",bu={waveColor:fu,progressColor:fu,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var hu={startRecording:"Click to start recording"};import{cn as Be,formatAudioTime as En,trimBlob as xS}from"@cleen/ui-core";import{useWavesurfer as CS}from"@wavesurfer/react";import{forwardRef as SS,useCallback as Mr,useEffect as am,useMemo as wS,useRef as xu,useState as Mn}from"react";function rm(n,e,o,r){return new(o||(o=Promise))((function(i,l){function a(p){try{m(r.next(p))}catch(s){l(s)}}function c(p){try{m(r.throw(p))}catch(s){l(s)}}function m(p){var s;p.done?i(p.value):(s=p.value,s instanceof o?s:new o((function(g){g(s)}))).then(a,c)}m((r=r.apply(n,e||[])).next())}))}var kn=class{constructor(){this.listeners={}}on(e,o,r){if(this.listeners[e]||(this.listeners[e]=new Set),r?.once){let i=(...l)=>{this.un(e,i),o(...l)};return this.listeners[e].add(i),()=>this.un(e,i)}return this.listeners[e].add(o),()=>this.un(e,o)}un(e,o){var r;(r=this.listeners[e])===null||r===void 0||r.delete(o)}once(e,o){return this.on(e,o,{once:!0})}unAll(){this.listeners={}}emit(e,...o){this.listeners[e]&&this.listeners[e].forEach((r=>r(...o)))}},nm=class extends kn{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((e=>e())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},lm=class extends kn{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let e=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(e))};e()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}},om=100,yS=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],Tn=class n extends nm{constructor(e){var o,r,i,l,a,c;super(Object.assign(Object.assign({},e),{audioBitsPerSecond:(o=e.audioBitsPerSecond)!==null&&o!==void 0?o:128e3,scrollingWaveform:(r=e.scrollingWaveform)!==null&&r!==void 0&&r,scrollingWaveformWindow:(i=e.scrollingWaveformWindow)!==null&&i!==void 0?i:5,continuousWaveform:(l=e.continuousWaveform)!==null&&l!==void 0&&l,renderRecordedAudio:(a=e.renderRecordedAudio)===null||a===void 0||a,mediaRecorderTimeslice:(c=e.mediaRecorderTimeslice)!==null&&c!==void 0?c:void 0})),this.stream=null,this.mediaRecorder=null,this.dataWindow=null,this.isWaveformPaused=!1,this.lastStartTime=0,this.lastDuration=0,this.duration=0,this.micStream=null,this.recordedBlobUrl=null,this.timer=new lm,this.subscriptions.push(this.timer.on("tick",(()=>{let m=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+m,this.emit("record-progress",this.duration)})))}static create(e){return new n(e||{})}renderMicStream(e){var o;let r=new AudioContext,i=r.createMediaStreamSource(e),l=r.createAnalyser();i.connect(l),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(l.fftSize=32);let a=l.frequencyBinCount,c=new Float32Array(a),m=0;this.wavesurfer&&((o=this.originalOptions)!==null&&o!==void 0||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let p=setInterval((()=>{var s,g,f,x;if(!this.isWaveformPaused){if(l.getFloatTimeDomainData(c),this.options.scrollingWaveform){let y=Math.floor((this.options.scrollingWaveformWindow||0)*om),h=0;for(let S=0;S<a;S++){let C=Math.abs(c[S]);C>h&&(h=C)}this.dataWindow||(this.dataWindow=new Float32Array(y));let v=new Float32Array(y);if(this.dataWindow&&this.dataWindow.length>0){let S=y-1,C=this.dataWindow.slice(-S);v.set(C,0)}v[y-1]=h,this.dataWindow=v}else if(this.options.continuousWaveform){if(!this.dataWindow){let h=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*om):((g=(s=this.wavesurfer)===null||s===void 0?void 0:s.getWidth())!==null&&g!==void 0?g:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(h)}let y=0;for(let h=0;h<a;h++){let v=Math.abs(c[h]);v>y&&(y=v)}if(m+1>this.dataWindow.length){let h=new Float32Array(2*this.dataWindow.length);h.set(this.dataWindow,0),this.dataWindow=h}this.dataWindow[m]=y,m++}else this.dataWindow=c;if(this.wavesurfer){let y=((x=(f=this.dataWindow)===null||f===void 0?void 0:f.length)!==null&&x!==void 0?x:0)/om;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:y).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))})).catch((h=>{console.error("Error rendering real-time recording data:",h)}))}}}),10);return{onDestroy:()=>{clearInterval(p),i?.disconnect(),r?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(e){return rm(this,void 0,void 0,(function*(){let o;this.micStream&&this.stopMic();try{o=yield navigator.mediaDevices.getUserMedia({audio:e==null||e})}catch(i){throw new Error("Error accessing the microphone: "+i.message)}let r=this.renderMicStream(o);return this.micStream=r,this.unsubscribeDestroy=this.once("destroy",r.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",r.onEnd),this.stream=o,o}))}stopMic(){var e,o,r;(e=this.micStream)===null||e===void 0||e.onDestroy(),(o=this.unsubscribeDestroy)===null||o===void 0||o.call(this),(r=this.unsubscribeRecordEnd)===null||r===void 0||r.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((i=>i.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(e){return rm(this,void 0,void 0,(function*(){let o=this.stream||(yield this.startMic(e));this.dataWindow=null;let r=this.mediaRecorder||new MediaRecorder(o,{mimeType:this.options.mimeType||yS.find((a=>MediaRecorder.isTypeSupported(a))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=r,this.stopRecording();let i=[];r.ondataavailable=a=>{a.data.size>0&&i.push(a.data),this.emit("record-data-available",a.data)};let l=a=>{var c;let m=new Blob(i,{type:r.mimeType});this.emit(a,m),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(m),(c=this.wavesurfer)===null||c===void 0||c.load(this.recordedBlobUrl))};r.onpause=()=>l("record-pause"),r.onstop=()=>l("record-end"),r.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit("record-start")}))}getDuration(){return this.duration}isRecording(){var e;return((e=this.mediaRecorder)===null||e===void 0?void 0:e.state)==="recording"}isPaused(){var e;return((e=this.mediaRecorder)===null||e===void 0?void 0:e.state)==="paused"}isActive(){var e;return((e=this.mediaRecorder)===null||e===void 0?void 0:e.state)!=="inactive"}stopRecording(){var e;this.isActive()&&((e=this.mediaRecorder)===null||e===void 0||e.stop(),this.timer.stop())}pauseRecording(){var e,o;this.isRecording()&&(this.isWaveformPaused=!0,(e=this.mediaRecorder)===null||e===void 0||e.requestData(),(o=this.mediaRecorder)===null||o===void 0||o.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var e;this.isPaused()&&(this.isWaveformPaused=!1,(e=this.mediaRecorder)===null||e===void 0||e.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit("record-resume"))}static getAvailableAudioDevices(){return rm(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((e=>e.filter((o=>o.kind==="audioinput"))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}};var Dn=class{constructor(){this.listeners={}}on(e,o,r){if(this.listeners[e]||(this.listeners[e]=new Set),r?.once){let i=(...l)=>{this.un(e,i),o(...l)};return this.listeners[e].add(i),()=>this.un(e,i)}return this.listeners[e].add(o),()=>this.un(e,o)}un(e,o){var r;(r=this.listeners[e])===null||r===void 0||r.delete(o)}once(e,o){return this.on(e,o,{once:!0})}unAll(){this.listeners={}}emit(e,...o){this.listeners[e]&&this.listeners[e].forEach((r=>r(...o)))}},im=class extends Dn{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((e=>e())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}};function vu(n,e){let o=e.xmlns?document.createElementNS(e.xmlns,n):document.createElement(n);for(let[r,i]of Object.entries(e))if(r==="children"&&i)for(let[l,a]of Object.entries(i))a instanceof Node?o.appendChild(a):typeof a=="string"?o.appendChild(document.createTextNode(a)):o.appendChild(vu(l,a));else r==="style"?Object.assign(o.style,i):r==="textContent"?o.textContent=i:o.setAttribute(r,i.toString());return o}function _o(n,e,o){let r=vu(n,e||{});return o?.appendChild(r),r}function yu(n){let e=n,o=new Set;return{get value(){return e},set(r){Object.is(e,r)||(e=r,o.forEach((i=>i(e))))},update(r){this.set(r(e))},subscribe:r=>(o.add(r),()=>o.delete(r))}}function Rn(n,e){let o,r=()=>{o&&(o(),o=void 0),o=n()},i=e.map((l=>l.subscribe(r)));return r(),()=>{o&&(o(),o=void 0),i.forEach((l=>l()))}}function Er(n,e){let o=yu(null),r=i=>{o.set(i)};return n.addEventListener(e,r),o._cleanup=()=>{n.removeEventListener(e,r)},o}function Jt(n){let e=n._cleanup;typeof e=="function"&&e()}function Ln(n,e={}){let{threshold:o=3,mouseButton:r=0,touchDelay:i=100}=e,l=yu(null),a=new Map,c=matchMedia("(pointer: coarse)").matches,m=()=>{},p=s=>{if(s.button!==r||(a.set(s.pointerId,s),a.size>1))return;let g=s.clientX,f=s.clientY,x=!1,y=Date.now(),h=n.getBoundingClientRect(),{left:v,top:S}=h,C=k=>{if(k.defaultPrevented||a.size>1||c&&Date.now()-y<i)return;let T=k.clientX,D=k.clientY,B=T-g,E=D-f;(x||Math.abs(B)>o||Math.abs(E)>o)&&(k.preventDefault(),k.stopPropagation(),x||(l.set({type:"start",x:g-v,y:f-S}),x=!0),l.set({type:"move",x:T-v,y:D-S,deltaX:B,deltaY:E}),g=T,f=D)},b=k=>{if(a.delete(k.pointerId),x){let T=k.clientX,D=k.clientY;l.set({type:"end",x:T-v,y:D-S})}m()},w=k=>{a.delete(k.pointerId),k.relatedTarget&&k.relatedTarget!==document.documentElement||b(k)},P=k=>{x&&(k.stopPropagation(),k.preventDefault())},R=k=>{k.defaultPrevented||a.size>1||x&&k.preventDefault()};document.addEventListener("pointermove",C),document.addEventListener("pointerup",b),document.addEventListener("pointerout",w),document.addEventListener("pointercancel",w),document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("click",P,{capture:!0}),m=()=>{document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",b),document.removeEventListener("pointerout",w),document.removeEventListener("pointercancel",w),document.removeEventListener("touchmove",R),setTimeout((()=>{document.removeEventListener("click",P,{capture:!0})}),10)}};return n.addEventListener("pointerdown",p),{signal:l,cleanup:()=>{m(),n.removeEventListener("pointerdown",p),a.clear(),Jt(l)}}}var Nn=class extends Dn{constructor(e,o,r=0){var i,l,a,c,m,p,s,g,f,x;super(),this.totalDuration=o,this.numberOfChannels=r,this.element=null,this.minLength=0,this.maxLength=1/0,this.contentEditable=!1,this.subscriptions=[],this.updatingSide=void 0,this.isRemoved=!1,this.subscriptions=[],this.id=e.id||`region-${Math.random().toString(32).slice(2)}`,this.start=this.clampPosition(e.start),this.end=this.clampPosition((i=e.end)!==null&&i!==void 0?i:e.start),this.drag=(l=e.drag)===null||l===void 0||l,this.resize=(a=e.resize)===null||a===void 0||a,this.resizeStart=(c=e.resizeStart)===null||c===void 0||c,this.resizeEnd=(m=e.resizeEnd)===null||m===void 0||m,this.color=(p=e.color)!==null&&p!==void 0?p:"rgba(0, 0, 0, 0.1)",this.minLength=(s=e.minLength)!==null&&s!==void 0?s:this.minLength,this.maxLength=(g=e.maxLength)!==null&&g!==void 0?g:this.maxLength,this.channelIdx=(f=e.channelIdx)!==null&&f!==void 0?f:-1,this.contentEditable=(x=e.contentEditable)!==null&&x!==void 0?x:this.contentEditable,this.element=this.initElement(),this.setContent(e.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(e){return Math.max(0,Math.min(this.totalDuration,e))}setPart(){var e;let o=this.start===this.end;(e=this.element)===null||e===void 0||e.setAttribute("part",`${o?"marker":"region"} ${this.id}`)}addResizeHandles(e){let o={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},r=_o("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},o),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},e),i=_o("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},o),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},e),l=Ln(r,{threshold:1}),a=Ln(i,{threshold:1}),c=Rn((()=>{let p=l.signal.value;p&&(p.type==="move"&&p.deltaX!==void 0?this.onResize(p.deltaX,"start"):p.type==="end"&&this.onEndResizing("start"))}),[l.signal]),m=Rn((()=>{let p=a.signal.value;p&&(p.type==="move"&&p.deltaX!==void 0?this.onResize(p.deltaX,"end"):p.type==="end"&&this.onEndResizing("end"))}),[a.signal]);this.subscriptions.push((()=>{c(),m(),l.cleanup(),a.cleanup()}))}removeResizeHandles(e){let o=e.querySelector('[part*="region-handle-left"]'),r=e.querySelector('[part*="region-handle-right"]');o&&e.removeChild(o),r&&e.removeChild(r)}initElement(){if(this.isRemoved)return null;let e=this.start===this.end,o=0,r=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(r=100/this.numberOfChannels,o=r*this.channelIdx);let i=_o("div",{style:{position:"absolute",top:`${o}%`,height:`${r}%`,backgroundColor:e?"none":this.color,borderLeft:e?"2px solid "+this.color:"none",borderRadius:"2px",boxSizing:"border-box",transition:"background-color 0.2s ease",cursor:this.drag?"grab":"default",pointerEvents:"all"}});return!e&&this.resize&&this.addResizeHandles(i),i}renderPosition(){if(!this.element)return;let e=this.start/this.totalDuration,o=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*e+"%",this.element.style.right=100*o+"%"}toggleCursor(e){var o;this.drag&&(!((o=this.element)===null||o===void 0)&&o.style)&&(this.element.style.cursor=e?"grabbing":"grab")}initMouseEvents(){let{element:e}=this;if(!e)return;let o=Er(e,"click"),r=Er(e,"mouseenter"),i=Er(e,"mouseleave"),l=Er(e,"dblclick"),a=Er(e,"pointerdown"),c=Er(e,"pointerup"),m=o.subscribe((v=>v&&this.emit("click",v))),p=r.subscribe((v=>v&&this.emit("over",v))),s=i.subscribe((v=>v&&this.emit("leave",v))),g=l.subscribe((v=>v&&this.emit("dblclick",v))),f=a.subscribe((v=>v&&this.toggleCursor(!0))),x=c.subscribe((v=>v&&this.toggleCursor(!1)));this.subscriptions.push((()=>{m(),p(),s(),g(),f(),x(),Jt(o),Jt(r),Jt(i),Jt(l),Jt(a),Jt(c)}));let y=Ln(e),h=Rn((()=>{let v=y.signal.value;v&&(v.type==="start"?this.toggleCursor(!0):v.type==="move"&&v.deltaX!==void 0?this.onMove(v.deltaX):v.type==="end"&&(this.toggleCursor(!1),this.drag&&this.emit("update-end")))}),[y.signal]);this.subscriptions.push((()=>{h(),y.cleanup()})),this.contentEditable&&this.content&&(this.contentClickListener=v=>this.onContentClick(v),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener))}_onUpdate(e,o,r){var i;if(!(!((i=this.element)===null||i===void 0)&&i.parentElement))return;let{width:l}=this.element.parentElement.getBoundingClientRect(),a=e/l*this.totalDuration,c=o&&o!=="start"?this.start:this.start+a,m=o&&o!=="end"?this.end:this.end+a,p=r!==void 0;p&&this.updatingSide&&this.updatingSide!==o&&(this.updatingSide==="start"?c=r:m=r),c=Math.max(0,c),m=Math.min(this.totalDuration,m);let s=m-c;this.updatingSide=o;let g=s>=this.minLength&&s<=this.maxLength;c<=m&&(g||p)&&(this.start=c,this.end=m,this.renderPosition(),this.emit("update",o))}onMove(e){this.drag&&this._onUpdate(e)}onResize(e,o){this.resize&&(this.resizeStart||o!=="start")&&(this.resizeEnd||o!=="end")&&this._onUpdate(e,o)}onEndResizing(e){this.resize&&(this.emit("update-end",e),this.updatingSide=void 0)}onContentClick(e){e.stopPropagation(),e.target.focus(),this.emit("click",e)}onContentBlur(){this.emit("update-end")}_setTotalDuration(e){this.totalDuration=e,this.renderPosition()}play(e){this.emit("play",e&&this.end!==this.start?this.end:void 0)}getContent(e=!1){var o;return e?this.content||void 0:this.element instanceof HTMLElement?((o=this.content)===null||o===void 0?void 0:o.innerHTML)||void 0:""}setContent(e){var o;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(o=this.content)===null||o===void 0||o.remove(),e){if(typeof e=="string"){let r=this.start===this.end;this.content=_o("div",{style:{padding:`0.2em ${r?.2:.4}em`,display:"inline-block"},textContent:e})}else this.content=e;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=r=>this.onContentClick(r),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener)),this.content.setAttribute("part","region-content"),this.element.appendChild(this.content),this.emit("content-changed")}else this.content=void 0}setOptions(e){var o,r;if(this.element){if(e.color&&(this.color=e.color,this.element.style.backgroundColor=this.color),e.drag!==void 0&&(this.drag=e.drag,this.element.style.cursor=this.drag?"grab":"default"),e.start!==void 0||e.end!==void 0){let i=this.start===this.end;this.start=this.clampPosition((o=e.start)!==null&&o!==void 0?o:this.start),this.end=this.clampPosition((r=e.end)!==null&&r!==void 0?r:i?this.start:this.end),this.renderPosition(),this.setPart()}if(e.content&&this.setContent(e.content),e.id&&(this.id=e.id,this.setPart()),e.resize!==void 0&&e.resize!==this.resize){let i=this.start===this.end;this.resize=e.resize,this.resize&&!i?this.addResizeHandles(this.element):this.removeResizeHandles(this.element)}e.resizeStart!==void 0&&(this.resizeStart=e.resizeStart),e.resizeEnd!==void 0&&(this.resizeEnd=e.resizeEnd)}}remove(){this.isRemoved=!0,this.emit("remove"),this.subscriptions.forEach((e=>e())),this.subscriptions=[],this.content&&this.contentEditable&&(this.contentClickListener&&(this.content.removeEventListener("click",this.contentClickListener),this.contentClickListener=void 0),this.contentBlurListener&&(this.content.removeEventListener("blur",this.contentBlurListener),this.contentBlurListener=void 0)),this.element&&(this.element.remove(),this.element=null),this.unAll()}},Fn=class n extends im{constructor(e){super(e),this.regions=[],this.regionsContainer=this.initRegionsContainer()}static create(e){return new n(e)}onInit(){if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");this.wavesurfer.getWrapper().appendChild(this.regionsContainer),this.subscriptions.push(this.wavesurfer.on("ready",(o=>{this.regions.forEach((r=>r._setTotalDuration(o)))})));let e=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(o=>{let r=this.regions.filter((i=>i.start<=o&&(i.end===i.start?i.start+.05:i.end)>=o));r.forEach((i=>{e.includes(i)||this.emit("region-in",i)})),e.forEach((i=>{r.includes(i)||this.emit("region-out",i)})),e=r})))}initRegionsContainer(){return _o("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(e){e.content&&setTimeout((()=>{let o=e.content,r=o.getBoundingClientRect(),i=this.regions.map((l=>{if(l===e||!l.content)return 0;let a=l.content.getBoundingClientRect();return r.left<a.left+a.width&&a.left<r.left+r.width?a.height:0})).reduce(((l,a)=>l+a),0);o.style.marginTop=`${i}px`}),10)}adjustScroll(e){var o,r;if(!e.element)return;let i=(r=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper())===null||r===void 0?void 0:r.parentElement;if(!i)return;let{clientWidth:l,scrollWidth:a}=i;if(a<=l)return;let c=i.getBoundingClientRect(),m=e.element.getBoundingClientRect(),p=m.left-c.left,s=m.right-c.left;p<0?i.scrollLeft+=p:s>l&&(i.scrollLeft+=s-l)}virtualAppend(e,o,r){let i=()=>{if(!this.wavesurfer)return;let l=this.wavesurfer.getWidth(),a=this.wavesurfer.getScroll(),c=o.clientWidth,m=this.wavesurfer.getDuration(),p=Math.round(e.start/m*c),s=p+(Math.round((e.end-e.start)/m*c)||1)>a&&p<a+l;s&&!r.parentElement?o.appendChild(r):!s&&r.parentElement&&r.remove()};setTimeout((()=>{if(!this.wavesurfer||!e.element)return;i();let l=this.wavesurfer.on("scroll",i),a=this.wavesurfer.on("zoom",i),c=this.wavesurfer.on("resize",i);this.subscriptions.push(l,a,c),e.once("remove",(()=>{l(),a(),c()}))}),0)}saveRegion(e){if(!e.element)return;this.virtualAppend(e,this.regionsContainer,e.element),this.avoidOverlapping(e),this.regions.push(e);let o=[e.on("update",(r=>{r||this.adjustScroll(e),this.emit("region-update",e,r)})),e.on("update-end",(r=>{this.avoidOverlapping(e),this.emit("region-updated",e,r)})),e.on("play",(r=>{var i;(i=this.wavesurfer)===null||i===void 0||i.play(e.start,r)})),e.on("click",(r=>{this.emit("region-clicked",e,r)})),e.on("dblclick",(r=>{this.emit("region-double-clicked",e,r)})),e.on("content-changed",(()=>{this.emit("region-content-changed",e)})),e.once("remove",(()=>{o.forEach((r=>r())),this.regions=this.regions.filter((r=>r!==e)),this.emit("region-removed",e)}))];this.subscriptions.push(...o),this.emit("region-created",e)}addRegion(e){var o,r;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let i=this.wavesurfer.getDuration(),l=(r=(o=this.wavesurfer)===null||o===void 0?void 0:o.getDecodedData())===null||r===void 0?void 0:r.numberOfChannels,a=new Nn(e,i,l);return this.emit("region-initialized",a),i?this.saveRegion(a):this.subscriptions.push(this.wavesurfer.once("ready",(c=>{a._setTotalDuration(c),this.saveRegion(a)}))),a}enableDragSelection(e,o=3){var r;let i=(r=this.wavesurfer)===null||r===void 0?void 0:r.getWrapper();if(!(i&&i instanceof HTMLElement))return()=>{};let l=null,a=0,c=0,m=Ln(i,{threshold:o}),p=Rn((()=>{var s,g;let f=m.signal.value;if(f)if(f.type==="start"){if(a=f.x,!this.wavesurfer)return;let x=this.wavesurfer.getDuration(),y=(g=(s=this.wavesurfer)===null||s===void 0?void 0:s.getDecodedData())===null||g===void 0?void 0:g.numberOfChannels,{width:h}=this.wavesurfer.getWrapper().getBoundingClientRect();c=a/h*x;let v=f.x/h*x,S=(f.x+5)/h*x;l=new Nn(Object.assign(Object.assign({},e),{start:v,end:S}),x,y),this.emit("region-initialized",l),l.element&&this.regionsContainer.appendChild(l.element)}else f.type==="move"&&f.deltaX!==void 0?l&&l._onUpdate(f.deltaX,f.x>a?"end":"start",c):f.type==="end"&&l&&(this.saveRegion(l),l.updatingSide=void 0,l=null)}),[m.signal]);return()=>{p(),m.cleanup()}}clearRegions(){this.regions.slice().forEach((e=>e.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as PS,jsx as ye,jsxs as Ho}from"react/jsx-runtime";var IS=SS(function({onFinalize:e,recordOptions:o,options:r,labels:i=hu,className:l,classNames:a,style:c,styles:m,...p},s){let g=xu(null),[f,x]=Mn("idle"),[y,h]=Mn(null),[v,S]=Mn(null),[C,b]=Mn(!1),w=xu("idle");w.current=f;let P=wS(()=>[Tn.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...o}),Fn.create()],[]),[R,k]=P,{wavesurfer:T,isPlaying:D,isReady:B,currentTime:E}=CS({...bu,...r,container:g,plugins:P}),L=B?T?.getDuration()??0:0;am(()=>{let H=[R.on("record-start",()=>x("recording")),R.on("record-end",G=>{x("recorded"),h(G)}),k.on("region-clicked",(G,q)=>{q.stopPropagation(),G.play(!0)})];return()=>H.forEach(G=>G?.())},[k,R]),am(()=>T?T.on("ready",()=>{if(w.current!=="recorded")return;let G=T.getDuration();k.clearRegions();let q=k.addRegion({start:0,end:G,color:r?.regionColor??gu,drag:!1,resize:!0});S({start:q.start,end:q.end})}):void 0,[T,k,r]),am(()=>k.on("region-updated",G=>{S({start:G.start,end:G.end})}),[k]);let M=Mr(async()=>{await R.startRecording()},[R]),F=Mr(()=>{R.stopRecording()},[R]),I=Mr(()=>{T?.playPause()},[T]),O=Mr(async()=>{if(!(!y||!v||!T)){b(!0);try{let H=await xS(y,v.start,v.end),G=URL.createObjectURL(H);h(H),T.load(G)}finally{b(!1)}}},[y,v,T]),N=Mr(()=>{k.clearRegions(),T?.empty(),h(null),S(null),x("idle")},[T,k]),z=Mr(()=>{if(y){let H=URL.createObjectURL(y);e?.(y,H)}},[e,y]),_=!v||v.start<=0&&v.end>=L;return ye("div",{ref:s,className:Be("cleen wavesurfer-handle",l),style:c,...p,children:Ho("div",{className:Be("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",a?.container),style:m?.container,children:[f==="idle"&&Ho(PS,{children:[ye("button",{type:"button",onClick:M,"aria-label":"Start recording",className:Be("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",a?.startButton),style:m?.startButton,children:ye(ho,{className:"cleen-size-8 cleen-text-primary"})}),ye("p",{className:Be("cleen-text-gray-600 cleen-text-sm cleen-select-none",a?.startLabel),style:m?.startLabel,children:i.startRecording})]}),f==="recording"&&ye("button",{type:"button",onClick:F,"aria-label":"Stop recording",className:Be("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",a?.stopButton),style:m?.stopButton,children:ye(wo,{className:"cleen-size-8 cleen-text-primary"})}),ye("div",{ref:g,className:Be("cleen-w-full cleen-min-w-0 cleen-waveform",f==="idle"&&"cleen-hidden",a?.waveform),style:m?.waveform}),f==="recorded"&&Ho("div",{className:Be("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",a?.recordedContainer),style:m?.recordedContainer,children:[ye(ne,{type:"button",onClick:I,disabled:!B,"aria-label":D?"Pause":"Play",className:a?.playPauseButton?.className,classNames:{...a?.playPauseButton?.classNames,container:Be("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.playPauseButton?.classNames?.container)},...m?.playPauseButton,children:D?ye(jt,{className:"cleen-fill-current"}):ye(Kt,{className:"cleen-fill-current"})}),Ho("span",{className:Be("cleen-tabular-nums cleen-text-gray-500 cleen-text-xs cleen-shrink-0",a?.timestamp),style:m?.timestamp,children:[En(E),"\xA0/\xA0",En(L)]}),ye("span",{className:"cleen-flex-1"}),!_&&v&&Ho("span",{className:Be("cleen-tabular-nums cleen-text-gray-500 cleen-text-xs cleen-shrink-0",a?.trimmedTimestamp),style:m?.trimmedTimestamp,children:[En(v.start),"\u2013",En(v.end)]}),ye(ne,{type:"button",onClick:N,variant:"secondary","aria-label":"Discard recording",className:a?.discardButton?.className,classNames:{...a?.discardButton?.classNames,container:Be("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.discardButton?.classNames?.container)},...m?.discardButton,children:ye(_e,{className:"cleen-text-error"})}),ye(ne,{type:"button",onClick:O,disabled:_||C||!B,"aria-label":"Apply trim",variant:"secondary",className:a?.trimButton?.className,classNames:{...a?.trimButton?.classNames,container:Be("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.trimButton?.classNames?.container)},...m?.trimButton,children:ye(Co,{})}),ye(ne,{type:"button",onClick:z,"aria-label":"Finalize recording",className:a?.finalizeButton?.className,classNames:{...a?.finalizeButton?.classNames,container:Be("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.finalizeButton?.classNames?.container)},...m?.finalizeButton,children:ye(st,{})})]})]})})});import{cn as Bn}from"@cleen/ui-core";import{forwardRef as kS,useMemo as TS}from"react";var Cu={xs:"cleen-size-6 cleen-text-[10px]",sm:"cleen-size-7 cleen-text-xs",md:"cleen-size-9 cleen-text-sm",lg:"cleen-size-11 cleen-text-base",xl:"cleen-size-14 cleen-text-lg"};import{jsx as Uo}from"react/jsx-runtime";var An=kS(function({title:e,name:o,src:r,alt:i,size:l="md",initialsLength:a=2,isSelected:c=!1,showBorder:m=!1,fallback:p=Uo(Io,{}),className:s,classNames:g,style:f,styles:x,onClick:y,...h},v){let S=TS(()=>(a===2?o?.split(" ").map(C=>C.charAt(0).toUpperCase()).join("").slice(0,a):o?.charAt(0).toUpperCase())||p,[o,a,p]);return Uo("div",{className:Bn("cleen",s),style:f,ref:v,...h,children:Uo("div",{onClick:y,className:Bn("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof l=="string"&&Cu[l],{"cleen-border-2 cleen-border-white":m,"cleen-cursor-pointer":!!y},g?.avatar,m&&c&&["cleen-border-primary",g?.avatarSelected]),style:{...typeof l=="number"&&{width:l,height:l,fontSize:l*.4,lineHeight:`${l}px`},...x?.avatar,...m&&c&&x?.avatarSelected},title:e||o,children:r?Uo("img",{src:r,alt:i||o,className:Bn("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",g?.image),style:x?.image}):Uo("span",{className:Bn("cleen-select-none cleen-text-gray-700",g?.fallback),style:x?.fallback,children:S})})})});import{cn as Su}from"@cleen/ui-core";import{forwardRef as RS}from"react";import{jsx as cm,jsxs as DS}from"react/jsx-runtime";var LS=RS(function({avatars:e,size:o="md",selectedAvatars:r=[],onAvatarToggle:i,gap:l=4,maxVisible:a,maxExtra:c=99,showBorder:m=!0,initialsLength:p,fallback:s,className:g,classNames:f,style:x,styles:y,...h},v){let S=a?e?.slice(0,a):e,C=a&&e&&e.length>a?Math.min(e.length-a,c):0;return cm("div",{className:Su("cleen",g),style:x,ref:v,...h,children:DS("div",{className:Su("cleen-flex cleen-items-center",f?.row),style:{gap:l,...y?.row},children:[S?.map((b,w)=>{let P=r.includes(b?.id??"");return cm(An,{name:b.name,src:b.src,size:o,isSelected:P,showBorder:m,initialsLength:p,fallback:s,onClick:()=>i?.(b.id??""),...f?.avatar,style:{zIndex:S.length-w,...y?.avatar?.style},styles:y?.avatar?.styles,...b},b.id||w)}),C>0&&cm(An,{size:o,fallback:`+${C}`,...f?.extra,...y?.extra})]})})});import{cn as Tt}from"@cleen/ui-core";import{forwardRef as NS}from"react";import{Link as wu}from"react-router-dom";import{jsx as Go,jsxs as On}from"react/jsx-runtime";var FS=NS(function({root:e={path:"/",icon:Go(go,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:o,className:r,classNames:i,style:l,styles:a,...c},m){return!o||o.length===0?null:Go("div",{className:Tt("cleen",r),style:l,ref:m,...c,children:Go("nav",{className:Tt("cleen-hidden sm:cleen-flex",i?.container),style:a?.container,"aria-label":"Breadcrumb",children:On("ol",{role:"list",className:Tt("cleen-flex cleen-items-center cleen-gap-4",i?.list),style:a?.list,children:[e&&Go("li",{className:Tt("cleen-flex cleen-items-center",i?.rootItem),style:a?.rootItem,children:On(wu,{to:e?.path,className:Tt("cleen-text-sm cleen-text-gray-400 cleen-flex cleen-items-center cleen-gap-2 cleen-transition-colors cleen-duration-200 hover:cleen-text-gray-600",i?.rootLink),style:a?.rootLink,"aria-current":"page",children:[e?.icon,e?.label]})}),o.map(({path:p,icon:s,label:g,id:f},x)=>{let y=x===o.length-1,h=g||p.charAt(0).toUpperCase()+p.slice(1);return On("li",{className:Tt("cleen-flex cleen-items-center cleen-gap-4",i?.item),style:a?.item,children:[(e||!e&&x!==0)&&Go(Xe,{className:Tt("cleen-h-5 cleen-w-5 cleen-text-gray-300",i?.chevron),style:a?.chevron,"aria-hidden":"true"}),On(wu,{to:p,className:Tt("cleen-transition-colors cleen-duration-200 hover:cleen-text-primary cleen-text-sm cleen-flex cleen-items-center cleen-gap-2",y?"cleen-rounded-md cleen-bg-gray-50 cleen-py-1 cleen-px-2 cleen-text-gray-700 cleen-font-semibold":"cleen-text-gray-600 cleen-font-medium",i?.link),style:a?.link,"aria-current":y?"page":void 0,children:[s,h]})]},f||p)})]})})})});var zn=(n,e)=>{if(!n)return;if(!e||!e.min&&!e.max)return n;let{min:o,max:r}=e,i=new Date,l=new Date(i.getFullYear(),i.getMonth(),i.getDate());if(o){let a=o==="today"?l:o;if(a>=n)return a}if(r){let a=r==="today"?l:r;if(a<=n)return a}return n};import{cn as _n}from"@cleen/ui-core";import{forwardRef as ES,useState as sm}from"react";import{DayPicker as Iu,MonthGrid as MS}from"react-day-picker";import{Fragment as BS,jsx as er,jsxs as mm}from"react/jsx-runtime";var pm=n=>n?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),dm=ES(function({label:e,labelTooltip:o,infoLabels:r,required:i,withDateInput:l=!1,withTodayButton:a=!1,selected:c,onSelect:m,month:p,labels:s,className:g,style:f,classNames:x,styles:y,mode:h="single",min:v,max:S,disabled:C,disabledDates:b,components:w,...P},R){let k=c!==void 0,T=h==="single",[D,B]=sm(),[E,L]=sm(),M=k?c:T?D:E,[F,I]=sm(p),O=(_,H)=>{k||(T&&(_===void 0||_ instanceof Date)?B(_):T||L(_)),m?.(_,H)},N={MonthGrid:_=>mm(BS,{children:[(a||l)&&mm("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[l&&er(me,{value:h==="single"?pm(M):M?.from||M?.to?`${pm(M?.from)??"..."} - ${pm(M?.to)??"..."}`:void 0,placeholder:s?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),a&&er(ne,{variant:"secondary",onClick:()=>I(new Date),children:s?.today??"Today"})]}),er(MS,{..._})]}),...w},z={navLayout:"around",...P,className:_n("cleen-text-black",x?.calendar?.className),classNames:{...x?.calendar?.classNames,nav:_n("cleen-text-error",x?.calendar?.classNames?.nav)},disabled:v||S?{before:v==="today"?new Date:v,after:S==="today"?new Date:S}:b||C,components:N,month:F,onMonthChange:I,...y?.calendar};return mm("div",{ref:R,className:_n("cleen",g),style:f,children:[e&&er(ee,{required:i,tooltip:o,className:_n("cleen-mb-1.5",x?.label?.className),classNames:x?.label?.classNames,...y?.label,children:e}),T?er(Iu,{mode:"single",...z,selected:M,onSelect:(_,H)=>{if(v||S){O(zn(_,{min:v,max:S}),H);return}O(_,H)}}):er(Iu,{mode:"range",...z,selected:M,onSelect:(_,H)=>{if(v||S){O({from:zn(_?.from,{min:v,max:S}),to:zn(_?.to,{min:v,max:S})},H);return}O(_,H)}}),(r?.errorMessage||r?.infoMessage||r?.subtitle)&&er(Y,{...r})]})});import{cn as Br,useOutsideClick as AS,usePositionClose as OS,ZIndex as zS}from"@cleen/ui-core";import{forwardRef as _S,useEffect as HS,useRef as Pu,useState as US}from"react";import{createPortal as GS}from"react-dom";import{jsx as tr,jsxs as ku}from"react/jsx-runtime";var Vo=_S(function({type:e="button",required:o,label:r,title:i,titleTooltip:l,disabled:a=!1,leftIcon:c,rightIcon:m=tr(co,{className:"cleen-size-5 cleen-shrink-0 cleen-text-gray-900"}),fullWidth:p=!0,fullWidthDropdown:s,offset:g=4,isOpen:f,onOpenChange:x,keepOpenOnClickContent:y=!0,zIndex:h=zS.DROPDOWN,infoLabels:v,className:S,classNames:C,style:b,styles:w,children:P,...R},k){let[T,D]=US(!1),B=f!==void 0?f:T,E=Pu(null),L=Pu(null),{positionStyles:M,isMounted:F}=OS({triggerRef:L,targetRef:E,position:"bottom-left",isOpen:B,offset:g});AS({refs:[E,L],handler:()=>{D(!1),x?.(!1)},enabled:B}),HS(()=>{let N=z=>{z.key==="Escape"&&B&&(D(!1),x?.(!1))};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[B,x]);let I=()=>{let N=!B;f===void 0&&D(N),x?.(N)},O=()=>{y||(f===void 0&&D(!1),x?.(!1))};return ku("div",{className:Br("cleen",S),style:b,ref:k,...R,children:[i&&tr(ee,{required:o,tooltip:l,className:Br("cleen-mb-1.5",C?.title?.className),classNames:C?.title?.classNames,...w?.title,children:i}),tr("div",{className:Br("cleen-inline-block cleen-relative",p&&"cleen-w-full"),ref:L,children:ku("button",{type:e,className:Br("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-bg-background cleen-shadow-sm cleen-my-auto cleen-px-3.5 cleen-py-2.5 cleen-border cleen-border-gray-300 cleen-rounded-md cleen-w-full cleen-text-gray-900 cleen-text-base cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-25 hover:cleen-border-gray-200",{"cleen-w-full cleen-flex-1":p,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":a},p&&"cleen-w-full",C?.trigger),style:w?.trigger,disabled:a,"aria-haspopup":"dialog","aria-expanded":B,onClick:I,children:[c,tr("div",{className:Br("cleen-flex-1 cleen-text-left",C?.label),style:w?.label,children:r}),m]})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&tr(Y,{...v}),P&&B&&GS(tr("div",{className:"cleen",children:tr("div",{ref:E,className:Br("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-gray-200 cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!F},C?.dropdown),style:{zIndex:h,top:`${M.top}px`,left:`${M.left}px`,minWidth:s&&L.current?.offsetWidth?`${L.current.offsetWidth}px`:void 0,...w?.dropdown},onClick:O,children:P})}),document.body)]})});import{cn as Tu}from"@cleen/ui-core";import{forwardRef as VS,useMemo as WS,useState as Hn}from"react";import{jsx as rr,jsxs as Ru}from"react/jsx-runtime";var $S=VS(function({label:e,placeholder:o,infoLabels:r,required:i,selected:l,onSelect:a,onSelectInternal:c,leftIcon:m,rightIcon:p=rr(lo,{className:"cleen-size-5 cleen-shrink-0 cleen-text-gray-900"}),className:s,style:g,classNames:f,styles:x,mode:y="single",min:h,max:v,disabled:S,disabledDates:C,...b},w){let P=l!==void 0,R=y==="single",[k,T]=Hn(!1),[D,B]=Hn(),[E,L]=Hn(),M=P?l:R?D:E,[F,I]=Hn(),O=z=>{P||(R&&(z===void 0||z instanceof Date)?B(z):R||L(z)),a?.(z)},N=WS(()=>{if(!M)return o;if(R)return M?.toLocaleDateString();{let z=M;if(z.from&&z.to)return`${z.from.toLocaleDateString()} - ${z.to.toLocaleDateString()}`;if(z.from)return z.from.toLocaleDateString()}return o},[o,M,R]);return Ru("div",{ref:w,className:Tu("cleen",s),style:g,children:[rr(Vo,{title:e,label:N,isOpen:k,onOpenChange:z=>{I(M),T(z)},leftIcon:m,rightIcon:p,className:f?.dropdown?.className,classNames:{...f?.dropdown?.classNames,dropdown:Tu("cleen-p-0 cleen-border-0",f?.dropdown?.classNames?.dropdown)},required:i,disabled:S,...x?.dropdown,children:rr(ie,{footer:{hasDivider:!0,content:Ru("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[rr(ne,{variant:"secondary",onClick:()=>T(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),rr(ne,{onClick:()=>{O(F),T(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...f?.card,...x?.card,children:rr(dm,{mode:y,...b,selected:F,onSelect:(z,_)=>I(c?.(z,_)??z),min:h,max:v,disabledDates:C,...f?.calendar,...x?.calendar})})}),(r?.errorMessage||r?.infoMessage||r?.subtitle)&&rr(Y,{...r})]})});import"react";import{cn as Ar}from"@cleen/ui-core";import qS from"embla-carousel-auto-scroll";import XS from"embla-carousel-autoplay";import jS from"embla-carousel-react";import{forwardRef as KS,useEffect as ZS,useMemo as Lu,useState as Du}from"react";import{jsx as or,jsxs as YS}from"react/jsx-runtime";var QS=KS(function({options:e,slideAmount:o=3,slideSize:r,prevBtn:i,nextBtn:l,autoPlay:a=!1,autoPlayOptions:c,autoScroll:m=!1,autoScrollOptions:p,children:s,className:g,classNames:f,style:x,styles:y,...h},v){let S=Lu(()=>{let L=[];return a&&L.push(XS(c)),m&&L.push(qS(p)),L},[a,m,c,p]),[C,b]=jS({skipSnaps:!0,...e},S),[w,P]=Du(!0),[R,k]=Du(!0),T=()=>b?.scrollPrev(),D=()=>b?.scrollNext(),B=L=>{P(!L?.canScrollPrev()),k(!L?.canScrollNext())};ZS(()=>{b&&(B(b),b.on("reInit",B),b.on("select",B))},[b]);let E=Lu(()=>r?`${r}%`:`${100/o}%`,[r,o]);return or("div",{className:Ar("cleen",g),style:x,ref:v,...h,children:YS("div",{className:Ar("cleen-flex cleen-gap-2",f?.container),style:y?.container,children:[or("button",{className:Ar("cleen-text-black",f?.prevBtn,w&&"cleen-opacity-50"),onClick:T,disabled:w,style:y?.prevBtn,children:i||or(pt,{})}),or("div",{className:Ar("cleen-flex-1 cleen-overflow-hidden",f?.viewport),style:y?.viewport,ref:C,children:or("div",{className:Ar("cleen-flex [&>*]:cleen-flex-[0_0] cleen-gap-2 [&>*]:cleen-min-w-0 cleen-touch-pinch-zoom [&>*]:cleen-basis-[var(--cleen-carousel-slide-size)]",f?.list),style:{...y?.list,"--cleen-carousel-slide-size":E},children:s})}),or("button",{className:Ar("cleen-text-black",f?.nextBtn,R&&"cleen-opacity-50"),onClick:D,disabled:R,style:y?.nextBtn,children:l||or(Xe,{})})]})})});import{cn as nr}from"@cleen/ui-core";import{forwardRef as JS,useEffect as Eu,useRef as ew,useState as tw}from"react";var Nu={primary:"cleen-bg-primary cleen-transition-all cleen-duration-200 hover:cleen-bg-primary hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-primary),0.25)]",error:"cleen-bg-error cleen-transition-all cleen-duration-200 hover:cleen-bg-error hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-error),0.25)]"},Fu={primary:"cleen-bg-primary/60 cleen-transition-all cleen-duration-200 hover:cleen-bg-primary/60 hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-primary),0.25)]",error:"cleen-bg-error/60 cleen-transition-all cleen-duration-200 hover:cleen-bg-error/60 hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-error),0.25)]"};import{Fragment as rw,jsx as Qe,jsxs as Un}from"react/jsx-runtime";var um=JS(function({id:e,name:o,required:r,checked:i,defaultChecked:l=!1,className:a,classNames:c,style:m,styles:p,onChange:s,disabled:g,title:f,titleTooltip:x,label:y,sublabel:h,variant:v="primary",allowIndeterminate:S=!1,fullTriggerArea:C=!1,infoLabels:b,inputRef:w,...P},R){let k=typeof i=="boolean"||i===null,[T,D]=tw(l),B=ew(null),E=O=>{B.current=O,w&&(w.current=O)};Eu(()=>{k||D(l)},[l,k]);let L=k?i:T;Eu(()=>{B.current&&(B.current.indeterminate=S&&L===null)},[S,L]);let M=O=>{let N;if(S)switch(L){case!0:N=null;break;case!1:N=!0;break;default:N=!1;break}else N=!L;k||D(N),s?.({...O,target:{...O.target,checked:N}})},F=Un(rw,{children:[Un("label",{className:nr("cleen-bg-white cleen-transition-all cleen-duration-200 hover:cleen-bg-gray-100 hover:cleen-shadow-[0px_0px_0px_4px_rgb(var(--cleen-gray-100))] cleen-border cleen-border-gray-300 cleen-rounded cleen-ring-primary cleen-size-5 cleen-min-w-5 cleen-min-h-5 cleen-cursor-pointer focus-within:cleen-ring-2 focus-within:cleen-ring-offset-1 focus-within:cleen-ring-primary",{[Nu[v]]:L,[Fu[v]]:L===null},g&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",c?.checkbox),style:p?.checkbox,children:[Qe("input",{ref:E,type:"checkbox",disabled:g,className:"cleen-sr-only",checked:L===!0,onChange:M,id:e,...P}),L===null?Qe("span",{className:"cleen-block cleen-m-auto cleen-border cleen-border-white cleen-rounded-sm cleen-w-2.5 cleen-h-0.5 cleen-size-3"}):L?Qe(st,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-white"}):null]}),(y||h)&&Un("div",{children:[Qe("label",{htmlFor:e,className:nr("cleen-block cleen-text-gray-900",c?.label),style:p?.label,children:y}),Qe("label",{htmlFor:e,className:nr("cleen-font-normal cleen-text-gray-600 cleen-text-sm cleen-leading-5",c?.sublabel),style:p?.sublabel,children:h})]})]}),I={className:nr("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":g},c?.checkboxContainer),style:p?.checkboxContainer};return Qe("div",{className:nr("cleen",a),style:m,ref:R,children:Un("div",{className:nr(c?.container),style:p?.container,children:[f&&Qe(ee,{htmlFor:e||o,required:r,tooltip:x,className:nr("cleen-mb-1.5",c?.title?.className),classNames:c?.title?.classNames,...p?.title,children:f}),C?Qe("div",{...I,onClick:O=>{O.target instanceof Element&&!O.target.closest("label")&&B.current?.click()},children:F}):Qe("div",{...I,children:F}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&Qe(Y,{...b})]})})});import{cn as Wo}from"@cleen/ui-core";import{forwardRef as ow,useMemo as nw,useState as lw}from"react";import{jsx as Or,jsxs as aw}from"react/jsx-runtime";var iw=ow(function({id:e,required:o,label:r,labelTooltip:i,checkboxes:l,allowIndeterminate:a,infoLabels:c,requiresAtLeastOneOptions:m,classNames:p,styles:s,onChange:g,...f},x){let[y,h]=lw(!1),v=nw(()=>m&&y&&l?.every(C=>C.checked===!1)?m.title:c?.errorMessage,[m,c?.errorMessage,l,y]),S=(C,b)=>{let w={...b,checked:C.target.checked},P;l&&b?.id&&(P=[...l].map(R=>R.id===b.id?w:R)),g?.(w,P),h(!0)};return Or("div",{className:Wo("cleen"),...f,ref:x,children:aw("div",{className:Wo("cleen-flex cleen-flex-col cleen-gap-2",p?.container),style:s?.container,children:[r&&Or(ee,{htmlFor:e,required:o,tooltip:i,className:Wo("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...s?.label,children:r}),Or("div",{className:Wo("cleen-flex cleen-flex-col cleen-gap-3",p?.checkboxes),style:s?.checkboxes,children:l?.map(C=>Or("div",{className:Wo("cleen-flex",p?.checkboxContainer),style:s?.checkboxContainer,children:Or(um,{allowIndeterminate:a,...C,fullTriggerArea:!0,onChange:b=>S(b,C)})},C.id))}),(v||c?.infoMessage||c?.subtitle)&&Or(Y,{...c,errorMessage:v})]})})});import{cn as lr}from"@cleen/ui-core";import{forwardRef as cw,useState as Mu}from"react";import{jsx as zr,jsxs as Bu}from"react/jsx-runtime";var Au=cw(({sections:n,defaultOpenIndex:e,allowExpandAll:o=!1,className:r,classNames:i,style:l,styles:a,...c},m)=>{let[p,s]=Mu(e??null),[g,f]=Mu(()=>new Set(n.map((h,v)=>v))),x=h=>o?g.has(h):p===h,y=(h,v)=>{v.onClick?.(),v.items?.length&&(o?f(S=>{let C=new Set(S);return C.has(h)?C.delete(h):C.add(h),C}):s(p===h?null:h))};return zr("div",{ref:m,className:lr("cleen",r),style:{...l,width:"100%"},...c,children:zr("div",{className:lr("cleen-w-full",i?.container),style:a?.container,children:n.map((h,v)=>Bu("div",{className:lr("cleen-mb-3",i?.section),style:a?.section,children:[Bu("div",{onClick:()=>y(v,h),className:lr("cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-font-medium cleen-text-md cleen-text-gray-900 cleen-p-2 cleen-rounded-lg cleen-cursor-pointer hover:cleen-bg-gray-100 cleen-transition-colors",i?.sectionHeader),style:a?.sectionHeader,children:[zr("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:h?.title}),h?.items?.length?zr(mt,{className:lr("cleen-shrink-0 cleen-text-gray-400 cleen-transition-transform",{"cleen-rotate-180":!x(v)})}):null]}),x(v)&&h?.items&&zr("div",{className:lr("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",i?.sectionBody),style:a?.sectionBody,children:h?.items?.map((S,C)=>zr("div",{className:lr("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-p-2 cleen-w-full cleen-rounded-lg cleen-font-normal cleen-text-md cleen-text-gray-900 cleen-cursor-pointer hover:cleen-bg-gray-100 cleen-transition-colors",i?.item),style:a?.item,onClick:S?.onClick,children:S?.content},S?.key??C))})]},h?.key??v))})})});Au.displayName="Collapsible";function fm(n){let e=n.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return e?{r:Number(e[1]),g:Number(e[2]),b:Number(e[3]),a:e[4]!==void 0?Number(e[4]):1}:{r:0,g:0,b:0,a:1}}function Ou(n){return`rgba(${n.r}, ${n.g}, ${n.b}, ${n.a})`}import{cn as Gn}from"@cleen/ui-core";import{useEffect as sw,useState as pw}from"react";import{HexAlphaColorPicker as mw,RgbaColorPicker as dw}from"react-colorful";import{jsx as _r,jsxs as fw}from"react/jsx-runtime";var zu="rgba(0, 0, 0, 1)",_u="#000000ff",uw=({required:n,value:e,defaultValue:o,onChange:r,colorModel:i="rgba",disabled:l,label:a,labelTooltip:c,className:m,classNames:p,style:s,styles:g,infoLabels:f,...x})=>{let y=e!==void 0,h=o??(i==="hexa"?_u:zu),[v,S]=pw(h),C=y?e:v;sw(()=>{y||S(o??(i==="hexa"?_u:zu))},[o,y,i]);let b=P=>{let R=Ou(P);y||S(R),r?.(R)},w=P=>{y||S(P),r?.(P)};return _r("div",{className:Gn("cleen",m),style:s,...x,children:fw("div",{className:Gn("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",p?.container),style:g?.container,children:[a&&_r(ee,{required:n,tooltip:c,className:Gn("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...g?.label,children:a}),_r("div",{className:Gn("cleen-rounded-md",l&&"cleen-opacity-50 cleen-pointer-events-none",p?.picker),style:g?.picker,children:i==="hexa"?_r(mw,{color:C,onChange:w}):_r(dw,{color:fm(C),onChange:b})}),(f?.errorMessage||f?.infoMessage||f?.subtitle)&&_r(Y,{...f})]})})};import{cn as He}from"@cleen/ui-core";import{forwardRef as gw,useMemo as bw,useState as hw}from"react";var gm=(n="")=>n.replace(/\D+/g,""),Hu=n=>{switch(n.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function Uu(n,e="other"){if(!n)return n;let o=gm(n),r;switch(e){case"amex":r=`${o.slice(0,4)} ${o.slice(4,10)} ${o.slice(10,15)}`;break;case"dinersclub":r=`${o.slice(0,4)} ${o.slice(4,10)} ${o.slice(10,14)}`;break;default:r=`${o.slice(0,4)} ${o.slice(4,8)} ${o.slice(8,12)} ${o.slice(12,19)}`;break}return r.trim()}var Gu=n=>gm(n);function Vu(n){let e=gm(n);if(!e||parseInt(e.charAt(0),10)>=2)return"";if(e.length<2)return e;let o=e.slice(0,2);if(parseInt(o,10)<1||parseInt(o,10)>12)return e.slice(0,1);if(e.length<3)return o;if(e.length===3)return`${o}/${e.charAt(2)}`;let r=e.length===6?e.slice(-2):e.slice(2,4),i=new Date,l=i.getFullYear()%100,a=i.getMonth()+1;return parseInt(r,10)<l||parseInt(r,10)===l&&parseInt(o,10)<a?`${o}/${r.charAt(0)}`:`${o}/${r}`}import{jsx as Rt,jsxs as Wu}from"react/jsx-runtime";var vw=gw(function({labels:e,value:o,isLoading:r,errors:i,className:l,classNames:a,style:c,styles:m,infoLabels:p,onChange:s,onFieldFocus:g,...f},x){let[y,h]=hw({number:"",expiry:"",cvc:""}),v=!!o,S=v?o:y,C=bw(()=>Hu(S.number),[S.number]),b=P=>{let{name:R}=P.target,{value:k}=P.target;switch(R){case"number":k=Uu(k,C);break;case"expiry":k=Vu(k);break;case"cvc":k=Gu(k);break;default:return}v||h(T=>({...T,[R]:k})),s?.({...o,[R]:k})},w=P=>{g?.(P.target.name)};return Rt("div",{className:He("cleen",l),style:c,ref:x,...f,children:Rt("div",{className:He("cleen-flex cleen-flex-wrap cleen-justify-center cleen-items-start cleen-gap-8 cleen-bg-background cleen-min-w-80 cleen-w-min cleen-border cleen-border-primary/20 cleen-rounded-[10px] cleen-shadow-lg",a?.container),style:m?.container,children:r?Rt("div",{className:He("cleen-py-4",a?.loader?.container),style:m?.loader?.container,children:Rt(re,{...a?.loader?.component,...m?.loader?.component})}):Wu("form",{className:He("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",a?.form?.container),style:m?.form?.container,onSubmit:P=>P.preventDefault(),children:[Rt(me,{label:e?.number,name:"number",type:"tel",autoComplete:"cc-number",className:He("cleen-w-full",a?.form?.cardNumber?.className),classNames:{...a?.form?.cardNumber?.classNames,inputContainer:He({"cleen-border-error":i?.number},a?.form?.cardNumber?.classNames?.inputContainer),input:He({"cleen-text-error":i?.number},a?.form?.cardNumber?.classNames?.input)},...m?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:S.number,onChange:b,onFocus:w,infoLabels:{errorMessage:i?.number}}),Wu("div",{className:He("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",a?.form?.cvcExpiryContainer),style:m?.form?.cvcExpiryContainer,children:[Rt(me,{label:e?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:a?.form?.expiry?.className,classNames:{...a?.form?.expiry?.classNames,inputContainer:He({"cleen-border-error":i?.expiry},a?.form?.expiry?.classNames?.inputContainer),input:He({"cleen-text-error":i?.expiry},a?.form?.expiry?.classNames?.input)},...m?.form?.expiry,placeholder:"00/00",value:S.expiry,onChange:b,onFocus:w,infoLabels:{errorMessage:i?.expiry}}),Rt(me,{label:e?.cvc,name:"cvc",type:"tel",inputMode:"numeric",autoComplete:"cc-csc",maxLength:C==="amex"?4:3,className:a?.form?.cvc?.className,classNames:{...a?.form?.cvc?.classNames,inputContainer:He({"cleen-border-error":i?.cvc},a?.form?.cvc?.classNames?.inputContainer),input:He({"cleen-text-error":i?.cvc},a?.form?.cvc?.classNames?.input)},...m?.form?.cvc,placeholder:"***",value:S.cvc,onChange:b,onFocus:w,infoLabels:{errorMessage:i?.cvc}})]}),(p?.infoMessage||p?.errorMessage||p?.subtitle)&&Rt(Y,{...p})]})})})});import{cn as $u}from"@cleen/ui-core";import{jsx as qu}from"react/jsx-runtime";var ut=({isHorizontal:n=!0,className:e,classNames:o,style:r,styles:i,...l})=>qu("div",{className:$u("cleen",e),style:r,children:qu("div",{className:$u("cleen-bg-gray-200 cleen-my-0",n?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",o?.container),style:i?.container,...l})});import{cn as Lt,useBodyScrollLock as yw,useCleenOverlays as Xu,ZIndex as xw}from"@cleen/ui-core";import{forwardRef as Cw,useCallback as Sw,useEffect as bm,useId as ww,useRef as Iw,useState as ju}from"react";import{createPortal as Pw}from"react-dom";import{jsx as Hr,jsxs as Vn}from"react/jsx-runtime";var kw={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},Ku=300,hm=Cw(function({title:e,subtitle:o,children:r,headerCloseBtn:i,footer:l,isOpen:a=!1,onClose:c,closeOnOverlayClick:m=!0,position:p="right",zIndex:s=xw.DRAWER,size:g="lg",p:f,gap:x,className:y,classNames:h,style:v,styles:S,...C},b){let[w,P]=ju(a),[R,k]=ju(a),T=Iw(null),D=ww(),{addOverlay:B,removeOverlay:E}=Xu(),L=Sw(()=>{P(!1),setTimeout(()=>c?.(),Ku)},[c]);return bm(()=>{if(a){k(!0);let M=setTimeout(()=>P(!0),1);return()=>clearTimeout(M)}else{P(!1);let M=setTimeout(()=>k(!1),Ku);return()=>clearTimeout(M)}},[a]),bm(()=>{if(a)return B(D),()=>E(D)},[B,E,a,D]),bm(()=>{let M=F=>{let{overlays:I}=Xu.getState();F.key==="Escape"&&I[I.length-1]===D&&L()};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[L,D]),yw(R),R?Pw(Vn("div",{className:Lt("cleen",y),style:v,ref:b,...C,children:[Hr("div",{className:Lt("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-white/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",w?"cleen-opacity-100":"cleen-opacity-0",h?.overlay),onClick:()=>{m&&L()},style:{zIndex:s-1,...S?.overlay},"aria-hidden":"true"}),Vn("div",{className:Lt("cleen-top-0 cleen-fixed cleen-flex cleen-flex-col cleen-gap-6 cleen-bg-white cleen-shadow-l cleen-h-dvh cleen-transition-transform cleen-duration-300 cleen-ease-in-out cleen-transform",p==="right"?"cleen-right-0":"cleen-left-0",w?"cleen-translate-x-0":p==="right"?"cleen-translate-x-full":"-cleen-translate-x-full",h?.drawer),style:{zIndex:s,width:typeof g=="number"?g:kw[g],...x!==void 0&&{gap:x},...S?.drawer},ref:T,children:[Vn("div",{className:Lt("cleen-flex cleen-justify-between cleen-items-center cleen-px-6 cleen-pt-6 cleen-w-full",h?.header),style:{...f!==void 0&&{paddingInline:f,paddingTop:f},...S?.header},children:[Vn("div",{className:"cleen-flex cleen-flex-col",children:[Hr("span",{className:Lt("cleen-font-semibold cleen-text-gray-900 cleen-text-xl",h?.title),style:S?.title,children:e}),Hr("span",{className:Lt("cleen-font-normal cleen-text-gray-600 cleen-text-sm",h?.subtitle),style:S?.subtitle,children:o})]}),i||Hr(Te,{onClick:L,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),Hr("div",{className:Lt("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",h?.content),style:{...f!==void 0&&{paddingInline:f},...S?.content},children:r}),l&&Hr("div",{className:Lt("cleen-flex cleen-justify-end cleen-items-center cleen-gap-2 cleen-bg-sidebar cleen-px-6 cleen-py-4 cleen-border-gray-200 cleen-border-t",h?.footer),style:{...f!==void 0&&{paddingInline:f,paddingBlock:x},...S?.footer},children:l})]})]}),document.body):null});import{cn as ir,useAnimateNumber as Tw}from"@cleen/ui-core";import{forwardRef as Rw,useEffect as Lw,useMemo as Dw,useRef as Nw,useState as Fw}from"react";import{jsx as Wn,jsxs as vm}from"react/jsx-runtime";var Ur=Rw(({percentage:n,title:e,barColor:o,backgroundColor:r="rgb(var(--cleen-gray-200))",textColor:i="rgb(var(--cleen-gray-900))",invertProgressColors:l=!1,showPercentage:a=!1,renderAnimated:c=!1,renderAnimatedDuration:m=1e3,className:p,classNames:s,style:g,styles:f,...x},y)=>{let h=Math.max(0,Math.min(n,100)),v=Nw(h),[S,C]=Fw(c?0:h),b=Tw({targetNumber:S,duration:m,disabled:!c});Lw(()=>{if(c){setTimeout(()=>C(h),0);return}v.current!==h&&(C(h),v.current=h)},[h,c]);let w=Dw(()=>{if(o)return o;switch(h<=30?"red":h<70?"orange":"green"){case"red":return l?"rgb(var(--cleen-success))":"rgb(var(--cleen-error))";case"orange":return"rgb(var(--cleen-warning))";case"green":return l?"rgb(var(--cleen-error))":"rgb(var(--cleen-success))";default:return"rgb(var(--cleen-success))"}},[h,l,o]);return Wn("div",{ref:y,className:ir("cleen",p),style:g,children:vm("div",{className:ir("cleen-w-full",s?.container),style:f?.container,...x,children:[e&&Wn("div",{className:ir("cleen-mb-1 cleen-font-semibold cleen-text-xs",s?.title),style:f?.title,children:e}),vm("div",{className:ir("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",s?.wrapper||s?.progress),style:f?.wrapper??f?.progress,children:[Wn("div",{className:ir("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",s?.track),style:{backgroundColor:r,...f?.track},children:Wn("div",{className:ir("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",s?.fill),style:{width:`${S}%`,backgroundColor:w,...c&&{transitionDuration:`${m}ms`},...f?.fill}})}),a&&vm("span",{className:ir("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",s?.text),style:{color:i,...f?.text},children:[Math.round(b),"%"]})]})]})})});Ur.displayName="ProgressBar";import{cn as Dt,FileEntryStatus as ar}from"@cleen/ui-core";import{useMemo as Zu}from"react";import{Fragment as Qu,jsx as xe,jsxs as cr}from"react/jsx-runtime";var Yu=({fileEntry:n,onRemove:e,onFileClick:o,labels:r,classNames:i,styles:l})=>{let{id:a,file:c,name:m,size:p,url:s,type:g,status:f,progress:x=0,preExisting:y}=n,h=f===ar.UPLOADING,v=f===ar.ERROR,S=f===ar.DONE,C=f===ar.DELETING,b=p?p*x/100:0,w=Zu(()=>{switch(f){case ar.UPLOADING:return cr(Qu,{children:[xe(Qt,{className:"cleen-size-4"}),xe("span",{children:r?.uploading})]});case ar.DONE:return xe($t,{className:"cleen-size-4"});case ar.ERROR:return xe(Wt,{className:"cleen-size-4"});default:return null}},[f,r]),P=()=>{if(o){o(n);return}s&&window.open(s,"_blank","noopener,noreferrer")},R=m||c?.name||"",[k,T]=R.split("."),D=Zu(()=>g?.startsWith("image/")&&s?xe("img",{src:s,alt:R,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):g==="application/pdf"?xe(Xt,{className:"cleen-size-8"}):xe(qt,{className:"cleen-size-8"}),[R,g,s]);return xe(ie,{p:12,className:i?.card?.className,classNames:{...i?.card?.classNames,container:Dt(i?.card?.classNames?.container,{"hover:cleen-bg-gray-100 cleen-cursor-pointer cleen-overflow-hidden":S})},...l?.card,onClick:S?P:void 0,children:cr("div",{className:Dt("cleen-space-y-1",i?.container),style:l?.container,children:[cr("div",{className:Dt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",i?.nameContainer),style:l?.nameContainer,children:[D,cr("div",{className:Dt("cleen-text-black cleen-text-sm cleen-font-medium cleen-flex",i?.name),style:{maxWidth:D?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...l?.name},children:[xe("span",{className:"cleen-truncate cleen-shrink",children:k}),cr("span",{className:"cleen-whitespace-nowrap",children:[".",T]})]}),xe("div",{className:"cleen-flex-1"}),!h&&(C?xe(re,{color:"rgb(var(--cleen-error))",className:Dt("cleen-shrink-0")}):xe(_e,{className:Dt("cleen-size-4 cleen-shrink-0 cleen-text-gray-600 hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer"),onClick:B=>{B.stopPropagation(),e?.(a)}}))]}),cr("div",{className:Dt("cleen-flex cleen-gap-2 cleen-items-center cleen-text-gray-600 cleen-text-xs",i?.statusContainer),style:l?.statusContainer,children:[!!p&&(h?xe("p",{children:r?.uploadProgress?.(b,p)}):S&&xe("p",{children:r?.uploaded?.(p)})),!y&&cr(Qu,{children:[xe("span",{children:"|"}),xe("div",{className:Dt("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":v,"cleen-text-success":S},i?.statusText),style:l?.statusText,children:w})]})]}),h&&xe(Ur,{barColor:"rgb(var(--cleen-primary))",percentage:x,showPercentage:!0,...i?.progressBar,...l?.progressBar})]})},a)};var $n=n=>{if(n===0)return"0 B";let e=1024,o=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(n)/Math.log(e));return`${parseFloat((n/Math.pow(e,r)).toFixed(1))} ${o[r]}`};var Ju={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(n,e)=>`${$n(n)} of ${$n(e)}`,uploaded:n=>$n(n)};var ef={uploading:n=>`Uploading ${n} ${n===1?"item":"items"}`,completed:"Uploads complete",showMore:n=>`+${n} more`,showLess:"Show less",dismiss:"Dismiss",contract:"Contract",uploadProgress:n=>`${Math.round(n)}%`};var $o=(l=>(l.PENDING="pending",l.IN_PROGRESS="inProgress",l.DONE="done",l.ERROR="error",l.REMOVING="removing",l))($o||{});import{cn as sr}from"@cleen/ui-core";import{jsx as Nt,jsxs as tf}from"react/jsx-runtime";var ym=({item:n,labels:e,classNames:o,styles:r})=>{let{status:i,progress:l=0,icon:a,name:c}=n,m=i==="inProgress",p=i==="done",s=i==="error",g=i==="removing",f=i==="pending";return tf("div",{className:sr("cleen-flex cleen-items-center cleen-gap-3",o?.container),style:r?.container,children:[a,tf("div",{className:sr("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",o?.infoContainer),style:r?.infoContainer,children:[Nt("p",{className:sr("cleen-font-medium cleen-text-gray-900 cleen-text-sm cleen-truncate",o?.name),style:r?.name,children:c}),m&&Nt(Ur,{barColor:"rgb(var(--cleen-primary))",percentage:l,...o?.progressBar,...r?.progressBar})]}),m&&Nt("span",{className:sr("cleen-shrink-0 cleen-text-gray-500 cleen-text-xs",o?.progressText),style:r?.progressText,children:e?.itemProgress?.(l)}),g&&Nt(re,{color:"rgb(var(--cleen-error))"}),p&&Nt($t,{className:sr("cleen-size-5 cleen-shrink-0 cleen-text-success",o?.statusIcon),style:r?.statusIcon}),s&&Nt(Wt,{className:sr("cleen-size-5 cleen-shrink-0 cleen-text-error",o?.statusIcon),style:r?.statusIcon}),f&&Nt("div",{className:sr("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",o?.statusIcon),style:r?.statusIcon,children:Array.from({length:3}).map((x,y)=>Nt("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${y*.1}s`}},y))})]})};var qo=(i=>(i.NOT_STARTED="notStarted",i.IN_PROGRESS="inProgress",i.COMPLETED="completed",i.ALL="all",i))(qo||{}),Xo=["notStarted","inProgress","completed","all"];import{cn as qn}from"@cleen/ui-core";import{jsx as rf,jsxs as Ew}from"react/jsx-runtime";var xm=({value:n,onChange:e,counts:o,labels:r,classNames:i,styles:l})=>rf("div",{role:"group","aria-label":r?.statusFilter,className:qn("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-0.5 cleen-bg-gray-100 cleen-p-0.5 cleen-border cleen-border-gray-200 cleen-rounded-md",i?.container),style:l?.container,children:Xo.map(a=>{let c=a===n;return Ew("button",{type:"button","aria-pressed":c,onClick:()=>e(a),className:qn("cleen-flex cleen-items-center cleen-gap-1 cleen-px-2 cleen-py-0.5 cleen-rounded cleen-font-medium cleen-text-gray-500 cleen-text-xs cleen-whitespace-nowrap cleen-transition-colors hover:cleen-text-gray-900 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",i?.option,c&&qn("cleen-bg-background cleen-text-gray-900 cleen-shadow-sm",i?.optionActive)),style:{...l?.option,...c&&l?.optionActive},children:[r?.statusFilterOptions?.[a],o&&rf("span",{className:qn("cleen-text-gray-400 cleen-tabular-nums",i?.optionCount),style:l?.optionCount,children:o[a]})]},a)})});var of={processing:n=>`Processing ${n} ${n===1?"item":"items"}`,completed:"Processing complete",showMore:n=>`+${n} more`,showLess:"Show less",dismiss:"Dismiss",contract:"Contract",itemProgress:n=>`${Math.round(n)}%`,statusFilter:"Filter by status",statusFilterOptions:{notStarted:"Not Started",inProgress:"In Progress",completed:"Completed",all:"All"},emptyStatusFilter:"Nothing to show for this status"};var nf=n=>n.status==="inProgress"||n.status==="pending",lf=n=>n.length>0&&n.every(e=>e.status==="done"),Cm=(n,e)=>{switch(e){case"notStarted":return n.status==="pending";case"inProgress":return n.status==="inProgress"||n.status==="removing";case"completed":return n.status==="done"||n.status==="error";case"all":default:return!0}};import{applyDefaults as Mw,cn as je,useControlled as af,useDisclosure as Bw}from"@cleen/ui-core";import{forwardRef as Aw,useEffect as cf,useMemo as Sm,useRef as Ow}from"react";import{jsx as Ye,jsxs as wm}from"react/jsx-runtime";var Im=Aw(function({items:e,title:o,maxVisibleItems:r=5,isExpanded:i,defaultExpanded:l=!1,onExpandedChange:a,onDismiss:c,autoDismissOnUploadCompleteAfterMilliSeconds:m,showHeader:p=!0,showStatusFilter:s=!1,showStatusFilterCounts:g=!1,statusFilter:f,defaultStatusFilter:x="inProgress",onStatusFilterChange:y,labels:h,className:v,classNames:S,style:C,styles:b,...w},P){let{isOpen:R,toggle:k,close:T}=Bw(),{value:D,handleChange:B}=af({value:i,defaultValue:l,onChange:a});cf(()=>{e.length>0&&T()},[e.length,T]);let E=Mw(of,h),{value:L,handleChange:M}=af({value:f,defaultValue:x,onChange:y}),F=Ow(c);F.current=c;let I=lf(e);cf(()=>{if(m==null||!F.current||!I)return;if(m<=0){F.current();return}let q=setTimeout(()=>F.current?.(),m);return()=>clearTimeout(q)},[I,m]);let O=Sm(()=>e.filter(nf).length,[e]),N=Sm(()=>!s||!L?e:e.filter(q=>Cm(q,L)),[e,s,L]),z=Sm(()=>{if(g)return Xo.reduce((q,$)=>({...q,[$]:e.filter(U=>Cm(U,$)).length}),{})},[e,g]);if(!e.length)return null;let _=Math.max(N.length-r,0),H=D||!_?N:N.slice(0,r),G=o??(O?E?.processing?.(O):E?.completed);return Ye(ie,{p:16,gap:12,ref:P,className:je(v,S?.card?.className),classNames:{...S?.card?.classNames,childrenContainer:je(S?.card?.classNames?.childrenContainer,{"cleen-hidden":R})},style:C,styles:b?.card?.styles,header:p?{hasDivider:!R,content:wm("div",{className:je("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",S?.header),style:b?.header,children:[Ye("p",{className:je("cleen-font-semibold cleen-text-gray-900 cleen-text-sm",S?.title),style:b?.title,children:G}),wm("div",{className:je("cleen-flex cleen-items-center cleen-gap-2",S?.headerButtons),style:b?.headerButtons,children:[Ye("button",{type:"button","aria-label":E?.contract,onClick:k,className:je("cleen-text-gray-500 hover:cleen-text-gray-900 cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",S?.contractButton),style:b?.contractButton,children:Ye(mt,{className:je("cleen-size-5 cleen-transition-transform",R&&"cleen-rotate-180")})}),c&&Ye("button",{type:"button","aria-label":E?.dismiss,onClick:c,className:je("cleen-text-gray-500 hover:cleen-text-gray-900 cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",S?.dismissButton),style:b?.dismissButton,children:Ye(Te,{className:"cleen-size-4"})})]})]})}:void 0,...w,children:wm("div",{className:je("cleen-flex cleen-flex-col cleen-gap-3",S?.list),style:b?.list,children:[s&&L&&Ye(xm,{value:L,onChange:M,counts:z,labels:E,classNames:S?.statusFilter,styles:b?.statusFilter}),!H.length&&Ye("p",{className:je("cleen-text-gray-500 cleen-text-xs",S?.emptyStatusFilter),style:b?.emptyStatusFilter,children:E?.emptyStatusFilter}),H.map(q=>Ye(ym,{item:q,labels:E,classNames:S?.row,styles:b?.row},q.id)),!!_&&Ye("button",{type:"button","aria-expanded":D,onClick:()=>B(!D),className:je("cleen-self-start cleen-font-medium cleen-text-primary cleen-text-xs hover:cleen-underline focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",S?.expandButton),style:b?.expandButton,children:D?E?.showLess:E?.showMore?.(_)})]})})});import{FileEntryStatus as ft}from"@cleen/ui-core";var zw=[{label:"PDF",className:"cleen-bg-error",extensions:["pdf"]},{label:"DOC",className:"cleen-bg-primary",extensions:["doc","docx","rtf","odt"]},{label:"XLS",className:"cleen-bg-success",extensions:["xls","xlsx","csv","ods"]},{label:"IMG",className:"cleen-bg-warning",extensions:["png","jpg","jpeg","gif","svg","webp"]}],sf={label:"FILE",className:"cleen-bg-gray-500"},_w={[ft.QUEUED]:"inProgress",[ft.UPLOADING]:"inProgress",[ft.PAUSED]:"inProgress",[ft.DONE]:"done",[ft.ERROR]:"error",[ft.DELETING]:"removing"},Pm=n=>n.name||n.file?.name||"",pf=n=>{let e=Pm(n).split(".").pop()?.toLowerCase()??"",o=zw.find(({extensions:r})=>r.includes(e));return o?{label:o.label,className:o.className}:{label:e?e.slice(0,4).toUpperCase():sf.label,className:sf.className}},mf=n=>n.status===ft.QUEUED||n.status===ft.UPLOADING||n.status===ft.PAUSED,df=n=>_w[n.status]??"pending",uf=n=>Array.isArray(n)?n:Array.from(n.values());import{cn as Hw}from"@cleen/ui-core";import{jsx as Uw}from"react/jsx-runtime";var ff=({fileEntry:n,className:e,style:o})=>{let r=pf(n);return Uw("div",{className:Hw("cleen-flex cleen-justify-center cleen-items-center cleen-rounded-md cleen-size-8 cleen-shrink-0 cleen-font-semibold cleen-text-[10px] cleen-text-white",r.className,e),style:o,children:r.label})};import{jsx as Gw}from"react/jsx-runtime";var gf=(n,e)=>({id:n.id,name:Pm(n),progress:n.progress,status:df(n),icon:Gw(ff,{fileEntry:n,className:e?.className,style:e?.style})});import{applyDefaults as Vw}from"@cleen/ui-core";import{forwardRef as Ww,useMemo as bf}from"react";import{jsx as $w}from"react/jsx-runtime";var km=Ww(function({files:e,title:o,maxVisibleFiles:r=5,labels:i,classNames:l,styles:a,...c},m){let p=bf(()=>uf(e),[e]),s=Vw(ef,i),g=bf(()=>p.map(y=>gf(y,{className:l?.row?.typeBadge,style:a?.row?.typeBadge})),[p,l?.row?.typeBadge,a?.row?.typeBadge]),f=p.filter(mf).length,x=o??(f?s?.uploading?.(f):s?.completed);return $w(Im,{ref:m,items:g,title:x,maxVisibleItems:r,labels:{showMore:s?.showMore,showLess:s?.showLess,dismiss:s?.dismiss,contract:s?.contract,itemProgress:s?.uploadProgress},classNames:l,styles:a,...c})});import{applyDefaults as qw,cn as Re,FileEntryStatus as Xw,useFileUpload as jw}from"@cleen/ui-core";import{forwardRef as Kw,useEffect as Zw,useMemo as hf,useRef as vf,useState as Tm}from"react";import{createPortal as Qw}from"react-dom";import{jsx as Le,jsxs as Xn}from"react/jsx-runtime";var Yw=Kw(function({required:e,icon:o,files:r,initialFiles:i=[],onFilesChange:l,onFileUpload:a,onFilesUpload:c,onFileRemove:m,onFileClick:p,infoLabels:s,containerRef:g,label:f,labelTooltip:x,labels:y,showUploadedFiles:h=!1,showProgressTracker:v=!1,progressTracker:S,className:C,classNames:b,style:w,styles:P,multiple:R,disabled:k,loadingWhileUploading:T,isLoading:D,readOnly:B,onChange:E,id:L,name:M,...F},I){let O=vf(null),{files:N,addFiles:z,remove:_}=jw({files:r,onFilesChange:l,initialFiles:i,onFileUpload:a,onFilesUpload:c,onFileRemove:m}),H=hf(()=>D||T&&Array.from(N.values()).some(X=>X.status===Xw.UPLOADING),[N,T,D]),[G,q]=Tm(!1),[$,U]=Tm([]),[V,Q]=Tm(!1),A=vf(new Set(N.keys()));Zw(()=>{let X=Array.from(N.keys()),Ie=X.filter(he=>!A.current.has(he));A.current=new Set(X),U(he=>{let ce=he.filter(Gt=>N.has(Gt));return Ie.length?V?Ie:[...ce,...Ie.filter(Gt=>!ce.includes(Gt))]:ce.length===he.length?he:ce}),Ie.length&&Q(!1)},[N,V]);let K=hf(()=>$.map(X=>N.get(X)).filter(X=>!!X),[$,N]),ae=()=>{Q(!0),U([]),S?.onDismiss?.()},be=!k&&!B&&!H,Se=X=>{let Ie=Array.from(X.target.files??[]);z(Ie),E?.(X)},Ht=X=>{_(X)},Ze=()=>{be&&O.current?.click()},Sr=X=>{if(!X.length)return;let Ie=R?X:X.slice(0,1);if(!O.current||typeof DataTransfer>"u"){z(Ie);return}let he=new DataTransfer;Ie.forEach(ce=>he.items.add(ce));try{O.current.files=he.files}catch{z(Ie);return}z(Ie),E?.({target:O.current,currentTarget:O.current})},Ut=X=>{X.preventDefault(),X.stopPropagation(),q(!1),be&&Sr(Array.from(X.dataTransfer.files??[]))},we=X=>{X.preventDefault(),X.stopPropagation(),be&&q(!0)},$e=X=>{X.preventDefault(),X.stopPropagation(),be&&q(!0)},wr=X=>{X.preventDefault(),X.stopPropagation(),be&&q(!1)},Oe=X=>{be&&(X.key!=="Enter"&&X.key!==" "||(X.preventDefault(),Ze()))},ze=qw(Ju,y);return Xn("div",{className:Re("cleen",C),style:w,ref:g,children:[Le("input",{id:L||M,name:M,ref:X=>{if(O.current=X,typeof I=="function"){I(X);return}I&&(I.current=X)},type:"file",multiple:R,disabled:k||H,readOnly:B,className:Re("cleen-hidden",b?.input),style:P?.input,onChange:Se,...F}),f&&Le(ee,{htmlFor:L||M,required:e,tooltip:x,className:Re("cleen-mb-1.5",b?.label?.className),classNames:b?.label?.classNames,...P?.label,children:f}),Xn("div",{className:Re("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":H}),children:[Le(ie,{tabIndex:be?0:-1,role:"button","aria-label":typeof f=="string"?f:"Upload file","aria-disabled":k||B||H,onClick:Ze,onKeyDown:Oe,onDrop:Ut,onDragEnter:we,onDragOver:$e,onDragLeave:wr,p:16,className:Re("cleen-rounded-lg focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",b?.card?.className),classNames:{...b?.card?.classNames,container:Re("cleen-transition-colors",k?"cleen-cursor-not-allowed cleen-bg-gray-100":"cleen-cursor-pointer hover:cleen-bg-gray-50 hover:cleen-border-primary",b?.card?.classNames?.container,G&&["cleen-border-primary cleen-bg-primary/5",b?.cardDragActive]),childrenContainer:Re({"cleen-blur-sm":H},b?.card?.classNames?.childrenContainer)},style:P?.card?.style,styles:{...P?.card?.styles,container:{...P?.card?.styles?.container,...G?P?.cardDragActive:void 0}},children:Xn("div",{className:Re("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",b?.dropArea),style:P?.dropArea,"aria-disabled":k||B||H,children:[Le("div",{className:Re("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-size-11 cleen-text-gray-700",b?.iconContainer),style:P?.iconContainer,children:o||Le(Qt,{className:"cleen-size-5"})}),Xn("p",{className:Re("cleen-font-medium cleen-text-sm",b?.textContainer),style:P?.textContainer,children:[Le("span",{className:Re(k?"cleen-text-gray-500":"cleen-text-primary",b?.primaryText),style:P?.primaryText,children:ze?.primaryText})," ",Le("span",{className:Re("cleen-text-gray-900",b?.secondaryText),style:P?.secondaryText,children:ze?.secondaryText})]}),Le("p",{className:Re("cleen-text-gray-600 cleen-text-xs",b?.helperText),style:P?.helperText,children:ze?.helperText})]})}),H&&Le(re,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),h&&N.size>0&&Le("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(N.values()).map(X=>Le(Yu,{fileEntry:X,onRemove:Ht,onFileClick:p,labels:ze,classNames:b?.fileCard,styles:P?.fileCard},X.id))}),v&&!V&&K.length>0&&Qw(Le("div",{className:"cleen",children:Le(km,{...S,files:K,onDismiss:ae,className:Re("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",b?.progressTracker?.className),classNames:b?.progressTracker?.classNames,...P?.progressTracker})}),document.body),(s?.errorMessage||s?.infoMessage||s?.subtitle)&&Le(Y,{...s})]})});var Rm={"image/":"image","video/":"video","audio/":"audio"},Lm={"application/pdf":"pdf","application/msword":"document","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"document","application/vnd.oasis.opendocument.text":"document","application/rtf":"document","text/rtf":"document","text/plain":"document","application/vnd.ms-excel":"spreadsheet","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"spreadsheet","application/vnd.oasis.opendocument.spreadsheet":"spreadsheet","text/csv":"spreadsheet","application/zip":"archive","application/x-zip-compressed":"archive","application/vnd.rar":"archive","application/x-rar-compressed":"archive","application/x-7z-compressed":"archive","application/x-tar":"archive","application/gzip":"archive","application/x-gzip":"archive"},yf={png:"image",jpg:"image",jpeg:"image",gif:"image",bmp:"image",webp:"image",svg:"image",avif:"image",heic:"image",ico:"image",tif:"image",tiff:"image",mp4:"video",mov:"video",webm:"video",avi:"video",mkv:"video",m4v:"video",ogv:"video",mp3:"audio",wav:"audio",ogg:"audio",oga:"audio",m4a:"audio",aac:"audio",flac:"audio",weba:"audio",pdf:"pdf",doc:"document",docx:"document",txt:"document",rtf:"document",odt:"document",xls:"spreadsheet",xlsx:"spreadsheet",csv:"spreadsheet",ods:"spreadsheet",zip:"archive",rar:"archive","7z":"archive",tar:"archive",gz:"archive",tgz:"archive"},xf={image:bo,video:vo,audio:so,pdf:Xt,document:mo,spreadsheet:po,archive:uo,generic:qt},Cf=["http:","https:","blob:"];var Jw=n=>{let e=n instanceof Date?n:new Date(n);if(Number.isNaN(e.getTime()))return;let o={dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat("en-US",o).format(e)}catch{return new Intl.DateTimeFormat("en-US",o).format(e)}},Sf={uploaded:n=>`Uploaded: ${Jw(n)}`};var eI=n=>{let e=n?.split(";")[0].trim().toLowerCase();if(!e)return;if(e in Lm)return Lm[e];let o=Object.keys(Rm).find(r=>e.startsWith(r));return o?Rm[o]:void 0},tI=n=>{let e=n.lastIndexOf(".");if(e<0)return;let o=n.slice(e+1).toLowerCase();return yf[o]},wf=n=>eI(n.type)??tI(n.name)??"generic",If=n=>{if(!n)return!1;try{let e=typeof document<"u"?document.baseURI:void 0;return Cf.includes(new URL(n,e).protocol)}catch{return!1}};import{cn as gt,formatFileSize as rI}from"@cleen/ui-core";import{forwardRef as oI,useMemo as Pf,useState as nI}from"react";import{Fragment as iI,jsx as Je,jsxs as jn}from"react/jsx-runtime";var lI=oI(function({file:e,preview:o=!1,onRemove:r,description:i,labels:l,className:a,classNames:c,style:m,styles:p,...s},g){let[f,x]=nI(),y=Pf(()=>({...Sf,...l}),[l]),h=wf(e),v=xf[h],S=If(e.url)?e.url:void 0,C=e.previewUrl||e.url,b=o&&(h==="image"||h==="video")&&!!C&&f!==C,w=Pf(()=>{if(i!=null)return i;let T=[];if(e.size!=null&&T.push(rI(e.size)),e.uploadedAt!=null){let D=y?.uploaded(e.uploadedAt);D&&T.push(D)}return T.length>0?T.join(" \u2022 "):null},[i,e.uploadedAt,e.size,y]),P=T=>{T.stopPropagation(),r?.(e)},R=gt("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-items-center cleen-gap-3 cleen-py-2 cleen-px-3 cleen-rounded-lg",S&&"cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-inset focus-visible:cleen-ring-primary",c?.main),k=jn(iI,{children:[jn("div",{className:gt("cleen-flex cleen-size-10 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-overflow-hidden cleen-rounded-lg cleen-bg-primary-50 cleen-text-primary-600",c?.media),style:p?.media,children:[b&&(h==="image"||h==="video"&&e.previewUrl)&&Je("img",{src:C,alt:e.name,className:"cleen-size-full cleen-object-cover",onError:()=>x(C)}),b&&h==="video"&&!e.previewUrl&&Je("video",{src:C,"aria-label":e.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>x(C)}),!b&&Je(v,{"aria-hidden":!0,className:gt("cleen-size-5",c?.icon),style:p?.icon})]}),jn("div",{className:gt("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",c?.content),style:p?.content,children:[Je("span",{className:gt("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-gray-900",c?.title),style:p?.title,title:e.name,children:e.name}),w!==null&&Je("span",{className:gt("cleen-truncate cleen-text-xs cleen-text-gray-500",c?.description),style:p?.description,children:w})]})]});return Je("div",{className:gt("cleen",a),style:m,ref:g,...s,children:jn("div",{className:gt("cleen-flex cleen-w-full cleen-min-w-0 cleen-items-center cleen-rounded-lg cleen-border cleen-border-gray-200 cleen-bg-background cleen-transition-all cleen-duration-200",S&&"hover:cleen-border-gray-300 hover:cleen-shadow-md",c?.container),style:p?.container,children:[S?Je("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:R,style:p?.main,children:k}):Je("div",{className:R,style:p?.main,children:k}),r&&Je("button",{type:"button",className:gt("cleen-mr-3 cleen-flex cleen-size-8 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-error cleen-transition-colors hover:cleen-bg-gray-100 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-error",c?.removeButton),style:p?.removeButton,onClick:P,children:Je(Te,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Kn={filterName:"",exposed:!1};import{createContext as aI}from"react";var Ue=aI({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as cI}from"@cleen/ui-core";import{useContext as sI,useState as pI}from"react";import{Fragment as mI,jsx as jo,jsxs as Dm}from"react/jsx-runtime";var kf={min:3,max:50},Tf=()=>{let{isSaveFiltersStep:n,saveStepValues:e,setSaveStepValues:o,setIsSaveFiltersStep:r,handleCloseSaveFilter:i,setError:l,onSave:a,classNames:c,styles:m,labels:p,withSavedFilters:s=!0,onCancel:g,onApply:f}=sI(Ue),[x,y]=pI(!1),h=async()=>{try{if(e.filterName.length<kf.min){l?.("filterName",p?.saveStep?.validation?.tooShort);return}if(e.filterName.length>kf.max){l?.("filterName",p?.saveStep?.validation?.tooLong);return}y(!0),await a?.(e),r(!1)}catch(v){console.error("Error saving filters:",v)}finally{y(!1)}};return n?Dm("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[jo(ne,{onClick:()=>r(!1),variant:"secondary",...c?.saveFilter?.backBtn,...m?.saveFilter?.backBtn,children:p?.saveStep?.back}),jo(ne,{onClick:h,isLoading:x,loaderColor:"rgb(var(--cleen-white))",...c?.saveFilter?.saveBtn,...m?.saveFilter?.saveBtn,children:p?.saveStep?.save})]}):Dm(mI,{children:[s&&jo(ne,{onClick:()=>{o(Kn),r(!0)},variant:"borderless-blue",...c?.saveBtn,...m?.saveBtn,children:p?.save}),Dm("div",{className:cI("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!s}),children:[jo(ne,{onClick:()=>{g?.(),i()},variant:"secondary",...c?.cancelBtn,...m?.cancelBtn,children:p?.cancel}),jo(ne,{onClick:()=>{f?.(),i()},...c?.applyBtn,...m?.applyBtn,children:p?.apply})]})]})};import{cn as Zn}from"@cleen/ui-core";import{Link as dI}from"react-router-dom";import{Fragment as Lf,jsx as pr,jsxs as Nm}from"react/jsx-runtime";var Rf=({item:n,classNames:e,styles:o})=>({disabled:n?.disabled,className:Zn("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-gray-900 cleen-text-sm cleen-text-left cleen-transition-colors",n?.disabled?"cleen-opacity-50 cleen-select-none cleen-cursor-not-allowed cleen-pointer-events-none":"hover:cleen-bg-gray-100 cleen-cursor-pointer",{"cleen-text-error hover:cleen-bg-error/10":n?.danger},e?.container),style:o?.container,children:Nm(Lf,{children:[n?.icon,pr("span",{className:Zn("cleen-flex-1",e?.label),style:o?.label,children:n?.label})]}),...n?.type==="button"?{type:"button"}:{to:n?.to}}),Fm=({item:n,isLast:e,handleClick:o,onEnterSubmenu:r,classNames:i,styles:l})=>{switch(n?.type){case"group":return Nm(Lf,{children:[n?.label&&pr("p",{className:Zn("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-gray-500 cleen-text-xs",i?.groupLabel),style:l?.groupDivider,children:n?.label}),n?.items?.map((a,c,m)=>pr(Fm,{item:a,handleClick:o,onEnterSubmenu:r,isLast:c===m.length-1},a?.id||c)),!e&&pr("hr",{className:Zn("cleen-text-gray-200",i?.groupDivider),style:l?.groupDivider})]});case"button":{let a=n?.submenu&&n?.submenu?.length>0;return Nm("button",{type:"button",onClick:()=>{a?r?.(n.submenu,n?.label):o?.(n)},...Rf({item:n,classNames:i,styles:l}),children:[n?.icon,pr("span",{className:"cleen-flex-1",children:n?.label}),a&&pr(Xe,{className:"cleen-size-4 cleen-text-gray-400"})]})}case"link":return pr(dI,{to:"",...Rf({item:n,classNames:i,styles:l})});default:return null}};import{cn as uI}from"@cleen/ui-core";import{useEffect as Df,useState as Nf}from"react";import{Fragment as fI,jsx as Ff,jsxs as Ef}from"react/jsx-runtime";var Mf=({items:n,keepOpenOnClick:e,hideMenu:o,classNames:r,styles:i})=>{let[l,a]=Nf([]),[c,m]=Nf(n),p=(f,x)=>{a(y=>[...y,{items:c,title:x}]),m(f)},s=()=>{let f=l[l?.length-1];f&&(m(f?.items),a(x=>x?.slice(0,-1)))};Df(()=>{m(n),a([])},[n]),Df(()=>{let f=x=>{if(x.key==="Escape")if(l.length>0){let y=l?.[l?.length-1];m(y?.items),a(h=>h?.slice(0,-1))}else o()};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[o,l]);let g=f=>{f?.onClick?.(),e||o()};return Ef(fI,{children:[l?.length>0&&Ef("button",{onClick:s,className:uI("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-sm cleen-text-gray-900 hover:cleen-bg-gray-50",r?.submenuButton),style:i?.submenuButton,children:[Ff(pt,{className:"cleen-size-4 cleen-text-gray-300"}),l?.[l?.length-1]?.title]}),c?.map((f,x,y)=>Ff(Fm,{item:f,isLast:x===y?.length-1,handleClick:g,onEnterSubmenu:p,classNames:r?.item,styles:i?.item},f?.id||x))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as gI,cn as Em,useDisclosure as bI,useOutsideClick as hI,usePositionClose as vI,ZIndex as yI}from"@cleen/ui-core";import{forwardRef as xI,useRef as Bf}from"react";import{createPortal as CI}from"react-dom";import{jsx as Qn,jsxs as SI}from"react/jsx-runtime";var Gr=xI(function({items:e=[],position:o="bottom-left",keepOpenOnClick:r=!0,triggerRef:i,menuRef:l,ignoreClickOutside:a=!1,zIndex:c=yI.MENU,children:m,className:p,classNames:s,style:g,styles:f,...x},y){let{isOpen:h,toggle:v,close:S}=bI(),C=Bf(null),b=Bf(null),w=i??C,P=l??b,{positionStyles:R,isMounted:k}=vI({triggerRef:w,targetRef:P,position:o,isOpen:h});hI({refs:[w,P],handler:S,enabled:h});let T=()=>{v()};return SI("div",{className:Em("cleen",p),style:g,ref:y,...x,children:[Qn("div",{ref:w,onClick:T,className:Em("cleen-size-fit",s?.trigger,h&&s?.triggerOpen),style:{...f?.trigger,...h?f?.triggerOpen:{}},children:m}),h&&CI(Qn("div",{className:"cleen",...a&&{[gI]:"true"},children:Qn("div",{ref:P,className:Em("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-gray-200 cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!k},s?.menu),style:{zIndex:c,top:`${R.top}px`,left:`${R.left}px`,...f?.menu},children:Qn(Mf,{items:e,keepOpenOnClick:r,hideMenu:S,classNames:s,styles:f})})}),document.body)]})});import{cn as Yn,ColorHelpers as Om}from"@cleen/ui-core";import{useMemo as wI}from"react";var Mm=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow"],Bm={blue:"cleen-border-primary/30 cleen-bg-primary/10 cleen-text-primary","lighter-blue":"cleen-border-primary/20 cleen-bg-primary/5 cleen-text-primary",primary:"cleen-border-brand cleen-bg-brand cleen-text-white",indigo:"cleen-border-indigo/50 cleen-bg-indigo/5 cleen-text-indigo/80",green:"cleen-border-success/20 cleen-bg-success/5 cleen-text-success",red:"cleen-border-error/20 cleen-bg-error/5 cleen-text-error",purple:"cleen-border-purple/20 cleen-bg-purple/5 cleen-text-purple/80",pink:"cleen-border-pink/50 cleen-bg-pink/5 cleen-text-pink/80",orange:"cleen-border-warning/20 cleen-bg-warning/5 cleen-text-warning",yellow:"cleen-text-warning cleen-bg-yellow/10 cleen-border-yellow",gray:"cleen-border-gray-200 cleen-bg-gray-100 cleen-text-gray-600"},Af={blue:"cleen-bg-primary/50",primary:"cleen-bg-primary/50",indigo:"cleen-bg-indigo/50",green:"cleen-bg-success/50",red:"cleen-bg-error/50",purple:"cleen-bg-purple/50",pink:"cleen-bg-pink/50",orange:"cleen-bg-warning/50",yellow:"cleen-bg-yellow/50",gray:"cleen-bg-gray-300"},Of={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var Am=(n,e)=>!n&&!e?"primary":e?Mm[e%Mm.length]:n;import{jsx as zm,jsxs as II}from"react/jsx-runtime";var De=({className:n,classNames:e,style:o,styles:r,label:i,color:l="primary",variant:a="rounded",showDot:c=!1,icon:m,removeable:p=!1,withBorder:s=!0,onRemoveClicked:g,onClick:f,colorByIndex:x,children:y,...h})=>{let{variantClass:v,dotVariantClass:S,dotVariantStyle:C,variantStyle:b}=wI(()=>{let w={};return l in Bm?(w.variantClass=Bm[Am(l,x)],w.dotVariantClass=Af[Am(l,x)]):(w.variantStyle={borderColor:Om.trasparentize(l,.8),backgroundColor:Om.trasparentize(l,.95),color:l},w.dotVariantStyle={backgroundColor:Om.trasparentize(l,.5)}),w},[l,x]);return zm("div",{className:Yn("cleen",n),style:o,children:II("span",{className:Yn("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-text-xs cleen-font-medium cleen-py-0.5 cleen-px-2 cleen-w-fit cleen-min-w-max cleen-transition-all cleen-duration-200",v,Of[a],{"cleen-border":s},{"hover:cleen-opacity-80 cleen-cursor-pointer":f||p},e?.container),style:{...b,...r?.container},onClick:f,...h,children:[c&&zm("span",{className:Yn("cleen-size-2 cleen-rounded-[50%]",S,e?.dot),style:{...C,...r?.dot}}),m,i??y,p&&zm(Te,{className:Yn("cleen-cursor-pointer cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-transition-transform cleen-duration-200 hover:cleen-scale-125",e?.removable),style:r?.removable,onClick:g})]})})};import{cn as kI}from"@cleen/ui-core";import{useContext as TI,useState as zf}from"react";import{jsx as et,jsxs as RI}from"react/jsx-runtime";var _f=({filter:n,activeTabId:e})=>{let[o,r]=zf(!1),[i,l]=zf(!1),{labels:a,onFilterDelete:c,onFilterPin:m,onFilterSelect:p,onFilterUnpin:s,setIsFiltersDropdownOpen:g}=TI(Ue),f=async()=>{try{if(!c)return;r(!0),await c(n.filterID)}catch(y){console.error("Error while deleting filter:",y)}finally{r(!1)}},x=async()=>{try{l(!0),n?.isPinned?await s?.(n.filterID):await m?.(n.filterID)}catch(y){console.error("Error while pinning/unpinnning filter:",y)}finally{l(!1)}};return et("div",{className:"cleen-group cleen-flex cleen-flex-col cleen-justify-around cleen-gap-2 hover:cleen-bg-primary/5 cleen-p-2 cleen-rounded-md cleen-min-h-10",children:RI("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{p?.(n),g(!1)},children:[et("span",{className:"cleen-flex-1 cleen-text-gray-600 cleen-text-sm cleen-text-left cleen-truncate",children:n.title}),i?et(re,{classNames:{loader:"cleen-size-5"}}):et(De,{color:"gray",onClick:y=>{y.stopPropagation(),x()},icon:et(yo,{name:"pin",className:kI("cleen-size-3.5 group-hover:cleen-text-gray-700 cleen-transition-colors cleen-cursor-pointer",n?.isPinned?"cleen-text-gray-600":"cleen-text-gray-300")}),classNames:{container:"cleen-font-bold"},label:n?.isPinned?a?.savedFilters?.filter?.unpin:a?.savedFilters?.filter?.pin}),e==="mine"&&et(Gr,{items:[{id:"duplicate",type:"button",label:a?.savedFilters?.filter?.cancelDelete,icon:et(Te,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:a?.savedFilters?.filter?.delete,icon:et(_e,{}),danger:!0,onClick:()=>f()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:y=>y.stopPropagation(),className:"cleen-flex",children:o?et(re,{size:"sm",color:"rgb(var(--cleen-error))"}):et(_e,{className:"cleen-text-black hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as Ft}from"@cleen/ui-core";import{forwardRef as LI,useMemo as Uf,useState as DI}from"react";import{cn as _m}from"@cleen/ui-core";var Ko={horizontal:{list:"cleen-flex cleen-flex-wrap cleen-mb-4"},vertical:{container:"cleen-flex cleen-gap-4",list:"cleen-flex cleen-flex-col",content:"cleen-flex-1"}},Hf=n=>{let e=n==="vertical";return{underlined:{list:_m("cleen-gap-2 cleen-border-gray-200",!e&&"cleen-border-b"),tab:_m("cleen-px-1 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200",e?"cleen-border-l-2 cleen-pl-3 cleen-py-1.5":"cleen-border-b-2 cleen-pb-3"),tabActive:"cleen-border-primary cleen-text-primary",tabInactive:"cleen-border-transparent cleen-text-gray-500 hover:cleen-text-gray-700 hover:cleen-border-gray-200",tabDisabled:"cleen-border-transparent cleen-text-gray-300 cleen-cursor-not-allowed"},padded:{list:"cleen-gap-1",tab:"cleen-px-3 cleen-py-2.5 cleen-rounded-md cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200",tabActive:"cleen-bg-primary/10 cleen-text-primary",tabInactive:"cleen-text-gray-500 hover:cleen-bg-gray-100",tabDisabled:"cleen-text-gray-300 cleen-cursor-not-allowed"},stretched:{list:"cleen-rounded-md cleen-overflow-hidden cleen-border cleen-border-gray-200",tab:_m("cleen-flex-1 cleen-px-3 cleen-py-2 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200 cleen-border-gray-200 cleen-justify-center",e?"[&:not(:first-child)]:cleen-border-t":"[&:not(:first-child)]:cleen-border-l"),tabActive:"cleen-bg-primary/10 cleen-text-primary",tabInactive:"cleen-text-gray-600 hover:cleen-bg-gray-100",tabDisabled:"cleen-text-gray-300 cleen-cursor-not-allowed"}}};import{jsx as Jn,jsxs as Gf}from"react/jsx-runtime";var Hm=LI(function({tabs:e,variant:o="underlined",direction:r="horizontal",currentTabIndex:i,onTabChange:l,className:a,classNames:c,style:m,styles:p,...s},g){let[f,x]=DI(0),h=i!==void 0?i:f,v=Uf(()=>e?.[h],[e,h]),S=(b,w)=>{x(b),l?.(b,w)},C=Uf(()=>Hf(r),[r]);return Jn("div",{className:Ft("cleen",a),style:m,ref:g,...s,children:Gf("div",{className:Ft(Ko[r].container,c?.container),style:p?.container,children:[Jn("nav",{className:Ft(C[o].list,Ko[r].list,c?.list),"aria-label":"Tabs",style:p?.list,children:e?.map((b,w)=>{let P=h===w,R=b?.isDisabled;return Gf("span",{onClick:()=>!R&&S(w,b),className:Ft("cleen-flex cleen-items-center cleen-gap-2 cleen-whitespace-nowrap",!R&&"cleen-cursor-pointer",C[o].tab,Ko[r].tab,c?.tab,R?Ft(C[o].tabDisabled,c?.tabDisabled):P?Ft(C[o].tabActive,c?.tabActive):Ft(C[o].tabInactive,c?.tabInactive)),style:{...p?.tab,...R?p?.tabDisabled:P?p?.tabActive:p?.tabInactive},"aria-current":P?"page":void 0,"aria-disabled":R,children:[b?.label,!!b?.badge?.label&&Jn(De,{variant:"rounded",color:P?"blue":"gray",...c?.count,...p?.count,...b.badge})]},b?.id||w)})}),!!v?.content&&Jn("div",{className:Ft("h-full",Ko[r].content,c?.content),style:p?.content,children:v?.content})]})})});import{useContext as NI,useState as FI}from"react";import{jsx as mr,jsxs as MI}from"react/jsx-runtime";var EI=n=>{let e={isFeatured:null,isMine:null,isPinned:null,isShared:null};switch(n){case"featured":e.isFeatured=!0;break;case"mine":e.isMine=!0;break;case"pinned":e.isPinned=!0;break;case"shared":e.isShared=!0;break;case"all":default:break}return e},Vf=({selectedSavedFilter:n,filters:e,isFiltersFetching:o,onFilterCategoryChange:r})=>{let[i,l]=FI("all"),{labels:a,classNames:c,styles:m,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:s}=NI(Ue);return mr(Vo,{isOpen:p,onOpenChange:s,leftIcon:mr(fo,{className:"cleen-size-5"}),label:n?.title??a?.savedFilters?.label,fullWidthDropdown:!0,...c?.dropdown,...m?.dropdown,children:MI("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[mr(Hm,{tabs:[{id:"all",label:a?.savedFilters?.tabs?.all},{id:"mine",label:a?.savedFilters?.tabs?.mine},{id:"shared",label:a?.savedFilters?.tabs?.shared},{id:"featured",label:a?.savedFilters?.tabs?.featured},{id:"pinned",label:a?.savedFilters?.tabs?.pinned}],variant:"padded",onTabChange:(g,f)=>{l(f?.id),r?.(EI(f?.id))},classNames:{list:"cleen-mb-2"}}),mr("div",{className:"flex flex-col",children:o?mr(re,{classNames:{loader:"cleen-size-6"}}):(e?.length||0)>0?e?.map(g=>mr(_f,{filter:g,activeTabId:i},g.filterID)):mr("p",{className:"cleen-font-normal cleen-text-gray-600 cleen-text-base cleen-text-center",children:a?.savedFilters?.noFilters})})]})})};import{cn as Zo}from"@cleen/ui-core";import{forwardRef as BI,useEffect as AI,useId as OI,useState as zI}from"react";import{jsx as dr,jsxs as Um}from"react/jsx-runtime";var Gm=BI(function({id:e,name:o,required:r,checked:i,defaultChecked:l=!1,onChange:a,title:c,label:m,labelTooltip:p,sublabel:s,disabled:g,classNames:f,className:x,style:y,styles:h,infoLabels:v,...S},C){let b=typeof i=="boolean",[w,P]=zI(l);AI(()=>{b||P(l)},[l,b]);let R=b?i:w,k=OI(),T=c?`${k}-title`:void 0,D=m?`${k}-label`:void 0,B=[T,D].filter(Boolean).join(" ")||void 0,E=()=>{g||(b||P(!w),a?.(!R))};return dr("div",{className:Zo("cleen",x),style:y,children:Um("div",{className:Zo("cleen-flex cleen-flex-col",f?.container),style:h?.container,children:[c&&dr(ee,{id:T,htmlFor:e||o,required:r,tooltip:p,className:Zo("cleen-mb-1.5",f?.title?.className),classNames:f?.title?.classNames,...h?.title,children:c}),Um("div",{className:"cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",children:[dr("button",{id:e||o,type:"button",role:"switch","aria-checked":R,"aria-labelledby":B,disabled:g,onClick:E,className:Zo("cleen-inline-flex cleen-relative cleen-flex-shrink-0 cleen-my-auto cleen-mb-auto cleen-border-2 cleen-border-transparent cleen-rounded-full cleen-w-11 cleen-h-6 cleen-transition-colors cleen-duration-200 cleen-ease-in-out cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",R?"cleen-bg-primary hover:cleen-bg-primary/90":"cleen-bg-gray-200 hover:cleen-bg-gray-300",f?.switch),style:h?.switch,ref:C,...S,children:dr("span",{"aria-hidden":"true",className:Zo("cleen-inline-block cleen-bg-white cleen-shadow cleen-rounded-full cleen-ring-0 cleen-w-5 cleen-h-5 cleen-transition cleen-duration-200 cleen-ease-in-out cleen-pointer-events-none cleen-transform",R?"cleen-translate-x-5":"cleen-translate-x-0",f?.check),style:h?.check})}),(m||s)&&Um("div",{className:"cleen-flex cleen-flex-col cleen-text-sm",children:[m&&dr("span",{id:D,className:"cleen-font-semibold cleen-text-gray-900",children:m}),s&&dr("span",{className:"cleen-font-normal cleen-text-gray-600",children:s})]})]}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&dr(Y,{...v})]})})});import{useContext as _I}from"react";import{Fragment as HI,jsx as Wf,jsxs as UI}from"react/jsx-runtime";var $f=()=>{let{classNames:n,styles:e,labels:o,saveStepValues:r,setSaveStepValues:i,errors:l,clearError:a}=_I(Ue);return UI(HI,{children:[Wf(me,{value:r.filterName,onChange:c=>{i(m=>({...m,filterName:c.target.value})),l?.filterName&&a?.("filterName")},label:o?.saveStep?.filterNameInput?.label,placeholder:o?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:l?.filterName},...n?.saveFilter?.filterName,...e?.saveFilter?.filterName}),Wf(Gm,{checked:r.exposed,onChange:c=>i(m=>({...m,exposed:c})),title:o?.saveStep?.exposureSwitch?.title,label:o?.saveStep?.exposureSwitch?.label,sublabel:o?.saveStep?.exposureSwitch?.sublabel,...n?.saveFilter?.exposure,...e?.saveFilter?.exposure})]})};var qf={title:"Filters",subtitle:"Apply filters to table data.",apply:"Apply",cancel:"Cancel",clear:"Clear",save:"Save filters",saveStep:{back:"Back",save:"Save",title:"Save Filter",subtitle:"Filters are reusable and shareable.",filterNameInput:{label:"Filter name",placeholder:"Type a name for this filter"},exposureSwitch:{title:"Exposure",label:"Share this filter",sublabel:"Allows others to see and use this filter"},validation:{tooShort:"You must provide a valid filter title, above 3 characters long.",tooLong:"You must provide a valid filter title, below 50 characters long."}},savedFilters:{label:"Select saved filter",noFilters:"No saved filters",filter:{delete:"Delete",cancelDelete:"Cancel",pin:"Pin",unpin:"Unpin"},tabs:{all:"All",featured:"Featured",mine:"Mine",pinned:"Pinned",shared:"Shared"}}};import{useValidation as GI}from"@cleen/ui-core";import{useState as Vm}from"react";import{jsx as VI}from"react/jsx-runtime";var Xf=({children:n,value:e})=>{let[o,r]=Vm(!1),[i,l]=Vm(Kn),{errors:a,setError:c,clearError:m}=GI({}),[p,s]=Vm(!1),g=()=>{r(!1),e?.onClose?.()};return VI(Ue.Provider,{value:{isSaveFiltersStep:o,setIsSaveFiltersStep:r,saveStepValues:i,setSaveStepValues:l,handleCloseSaveFilter:g,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:s,errors:a,setError:c,clearError:m,...e},children:n})};import{applyDefaults as WI,cn as jf}from"@cleen/ui-core";import{forwardRef as Kf,useContext as $I}from"react";import{Fragment as jI,jsx as Et,jsxs as KI}from"react/jsx-runtime";var qI=Kf(function({selectedSavedFilter:e,savedFilters:o,isFiltersFetching:r,children:i,classNames:l,styles:a,labels:c,withSavedFilters:m=!0,onClear:p,onSave:s,onCancel:g,onApply:f,onClose:x,filterDateFormatter:y,onFilterCategoryChange:h,onFilterDelete:v,onFilterPin:S,onFilterSelect:C,onFilterUnpin:b,...w},P){return Et(Xf,{value:{selectedSavedFilter:e,savedFilters:o,isFiltersFetching:r,classNames:l,styles:a,labels:WI(qf,c),withSavedFilters:m,onClear:p,onSave:s,onCancel:g,onApply:f,onClose:x,filterDateFormatter:y,onFilterCategoryChange:h,onFilterDelete:v,onFilterPin:S,onFilterSelect:C,onFilterUnpin:b},children:Et(XI,{...w,ref:P,children:i})})}),XI=Kf(function({children:e,...o},r){let{handleCloseSaveFilter:i,isSaveFiltersStep:l,selectedSavedFilter:a,savedFilters:c,isFiltersFetching:m,classNames:p,styles:s,labels:g,withSavedFilters:f=!0,onClear:x,onFilterCategoryChange:y,onFilterSelect:h}=$I(Ue);return Et(hm,{footer:Et(Tf,{}),headerCloseBtn:Et(ne,{onClick:()=>{x?.(),h?.(void 0)},leftIcon:Et(_e,{}),variant:"secondary",...p?.clearBtn,...s?.clearBtn,children:g?.clear}),classNames:{...p,content:jf("cleen-space-y-4",p?.content),footer:jf("cleen-justify-between",p?.footer)},onClose:i,ref:r,...o,title:l?g?.saveStep?.title:o.title,subtitle:l?g?.saveStep?.subtitle:o.subtitle,children:l?Et($f,{}):KI(jI,{children:[f&&Et(Vf,{filters:c,selectedSavedFilter:a,onFilterCategoryChange:y,isFiltersFetching:m}),e]})})});import{cn as Vr}from"@cleen/ui-core";import{forwardRef as ZI}from"react";import{jsx as el,jsxs as Zf}from"react/jsx-runtime";var Qf=ZI(({title:n,titleTooltip:e,subtitle:o,required:r,labelProps:i,children:l,className:a,classNames:c,style:m,styles:p,...s},g)=>el("div",{ref:g,className:Vr("cleen",a),style:{...m,width:"100%"},...s,children:Zf("div",{className:Vr("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",c?.container),style:p?.container,children:[Zf("div",{className:Vr("cleen-flex cleen-flex-col cleen-w-1/3",c?.titleColumn),style:p?.titleColumn,children:[el(ee,{...i,required:r,tooltip:e,className:c?.title?.className,classNames:{...c?.title?.classNames,label:Vr("cleen-truncate",c?.title?.classNames?.label)},...p?.title,children:n}),o&&el("div",{className:Vr("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-w-full cleen-font-normal cleen-text-gray-600 cleen-text-sm",c?.subtitle),style:p?.subtitle,children:o})]}),el("div",{className:Vr("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",c?.controlsRow),style:p?.controlsRow,children:l})]})}));Qf.displayName="FormGroup";import{cn as ge,useDebounce as QI,useOutsideClick as YI,usePositionClose as JI,ZIndex as eP}from"@cleen/ui-core";import{useEffect as tl,useMemo as Wm,useRef as $m,useState as Ke}from"react";import{createPortal as tP}from"react-dom";import{Fragment as nP,jsx as j,jsxs as Ne}from"react/jsx-runtime";function rP(n){return n!==null&&typeof n=="object"}function ke(n,e){if(rP(n)&&e in n)return n[e]}function Yf(n,e){let o=ke(n,e);return Array.isArray(o)?o:[]}function Jf(n,e){let o=n?.[e];if(typeof o=="string"||typeof o=="number")return o;let r=n?.data?.[e];return typeof r=="string"||typeof r=="number"?r:null}var oP=({position:n="bottom-right",labels:e,groups:o=[],selectedItemID:r=null,groupThreeDotMenuOptions:i=[],itemThreeDotMenuOptions:l=[],refetchData:a,onGroupSave:c,onItemSave:m,onGroupThreeDotMenuClick:p,onItemThreeDotMenuClick:s,onSearchChange:g,onItemSelect:f,groupIDKey:x,groupTitleKey:y,itemsKey:h,itemIDKey:v,itemGroupIDKey:S,itemTitleKey:C,itemSubtitleKey:b,newValueMinLength:w=2,isLoading:P=!1,isGroupSaving:R=!1,isItemSaving:k=!1,selectedColor:T="rgb(var(--cleen-primary), 0.1)",hasFiltering:D=!0,zIndex:B=eP.POPOVER,className:E,classNames:L,style:M,styles:F})=>{let[I,O]=Ke(!1),[N,z]=Ke(!1),[_,H]=Ke(!1),[G,q]=Ke(!1),[$,U]=Ke(null),[V,Q]=Ke(null),[A,K]=Ke(""),[ae,be]=Ke(""),[Se,Ht]=Ke(null),Ze=$m(void 0),[Sr,Ut]=Ke(""),[we]=QI(Sr,500),[$e,wr]=Ke(""),Oe=$m(null),ze=$m(null),{positionStyles:X,isMounted:Ie}=JI({triggerRef:Oe,targetRef:ze,position:n,isOpen:I,offset:10});YI({refs:[ze],handler:()=>O(!1),enabled:I});let he=Wm(()=>o??[],[o]),ce=Wm(()=>{let W=new Map;for(let te of he){let se=ke(te,x);se!=null&&W.set(se,Yf(te,h))}return W},[he,x,h]),Gt=Wm(()=>{let W=[];return $==null?W=Array.from(ce?.values()).flat():W=ce?.get($)??[],D&&$e.trim()!==""&&(W=W.filter(te=>{let se=String(ke(te,C)??""),qe=b?String(ke(te,b)??""):"";return se.toLowerCase().includes($e?.toLowerCase()??"")||qe.toLowerCase().includes($e?.toLowerCase()??"")})),W},[$,ce,$e,C,b,D]);tl(()=>{let W=Ze.current!==r;if(Ze.current=r,r==null){W&&(Q(null),U(null));return}let se=Array.from(ce?.values())?.flat()?.find(qe=>ke(qe,v)===r);if(se){let qe=ke(se,S)??null;Q(se),U(qe)}else W&&Q(null)},[r,ce,v,S]),tl(()=>{if(Se==null)return;let te=Array.from(ce?.values())?.flat()?.find(qe=>ke(qe,v)===Se);if(!te)return;let se=ke(te,S);U(typeof se=="string"||typeof se=="number"?se:null),Q(te),Ht(null),f?.(te)},[Se,ce,v,S,f]),tl(()=>{g&&g(we??"")},[we,g]),tl(()=>{I||(z(!1),H(!1),K(""),be(""))},[I]);let un=W=>{W===$?(U(null),Q(null),f?.(null)):(Q(null),U(W),f?.(null))},J=W=>{let te=ke(W,S);U(typeof te=="string"||typeof te=="number"?te:null),Q(W),f?.(W),O(!1)};async function Pe(){if(!c)return;let W={[y]:A};try{let te=await c(W);if(te?.success){z(!1),K(""),a&&await a();let se=Jf(te,x);se!=null&&(U(se),Q(null),f?.(null))}}catch{}}async function ve(){if(!m)return;let W={[C]:ae,...$!=null?{[S]:$}:{}};try{let te=await m(W);te?.success&&(H(!1),be(""),Ht(Jf(te,v)),a&&await a())}catch{}}return j("div",{className:ge("cleen",E),style:M,children:Ne("div",{ref:Oe,className:ge("cleen-relative cleen-w-full cleen-cursor-pointer",L?.container),style:F?.container,onClick:W=>{W.stopPropagation(),O(!0)},children:[j(me,{placeholder:e?.inputPlaceholder,rightIcon:j(mt,{className:ge("cleen-w-5 cleen-h-5 cleen-text-gray-300 cleen-transition-transform",{"cleen-rotate-180":!I})}),value:Sr,onChange:W=>{U(null),Q(null),Ut(W.target.value)},classNames:{input:I?"":"cleen-cursor-pointer"},className:L?.input,style:F?.input}),I&&tP(j("div",{className:"cleen",children:Ne("div",{ref:ze,className:ge("cleen-overflow-hidden cleen-flex cleen-items-start cleen-justify-start cleen-w-[500px] cleen-h-[344px] cleen-bg-white cleen-border cleen-border-gray-200 cleen-rounded-lg cleen-shadow-xl cleen-cursor-default","cleen-absolute",{"cleen-opacity-0":!Ie},L?.columnsContainer),style:{zIndex:B,top:`${X.top}px`,left:`${X.left}px`,...F?.columnsContainer},children:[Ne("div",{className:"cleen-w-1/2 cleen-h-full",children:[j("div",{className:ge("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",L?.leftColumn),style:F?.leftColumn,children:P?j("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:j(re,{size:"sm"})}):o?.map((W,te)=>{let se=ke(W,x),qe=se===$,Pl=String(ke(W,y)??""),kl=Yf(W,h)?.length??0;return Ne("div",{className:ge("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-10 cleen-cursor-pointer hover:cleen-bg-primary/10",L?.groupItem),style:{...F?.groupItem||{},...qe?{backgroundColor:T}:{}},onClick:de=>{de.stopPropagation(),de.preventDefault(),un(se??null)},children:[Ne("div",{className:ge("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",i?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[j("span",{className:ge("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-gray-900",L?.groupItemTitle),style:F?.groupItemTitle,children:Pl}),j(De,{color:"lighter-blue",label:kl})]}),i?.length>0&&j("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:de=>{de.stopPropagation(),p?.(W)},children:j(Gr,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:i?.map(de=>{let Yr=de?.disabledOptionCallback?.(W);return{...de,type:"button",label:j("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-gray-700",children:de?.label}),onClick:()=>{Yr||de?.onClick(W)},disabled:Yr}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-white cleen-rounded-md",children:j(Rr,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${te}-${String(se??te)}`)})}),j(ut,{isHorizontal:!0}),N?Ne("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[j(me,{leftIcon:j(Pt,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-300"}),placeholder:e?.newGroupPlaceholder,value:A,onChange:W=>K(W.target.value),classNames:{inputContainer:"cleen-border-none",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),j("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:c?R?j(re,{}):A?.length>w?j(ne,{variant:"primary",label:e?.saveButtonLabel,onClick:()=>{Pe()},classNames:{container:"cleen-w-max cleen-h-7"}}):j("div",{}):j("div",{})})]}):Ne("div",{className:ge("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer hover:cleen-bg-primary/10",L?.newGroupButton),style:F?.newGroupButton,onClick:()=>z(!0),children:[j(Pt,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-300"}),j("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-gray-500",children:e?.newGroupPlaceholder})]})]}),j(ut,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-gray-200 cleen-z-[1]"}),Ne("div",{className:"cleen-w-1/2 cleen-h-full",children:[Ne("div",{className:ge("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",L?.rightColumn),style:F?.rightColumn,children:[D&&Ne(nP,{children:[j(me,{leftIcon:j(Zt,{className:"cleen-size-5"}),className:ge("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!G}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:W=>wr(W.target.value),placeholder:e?.filterPlaceholder}),j("button",{type:"button",className:ge("cleen-w-full cleen-py-0.5 cleen-transition-all cleen-bg-gray-50 hover:cleen-bg-gray-100 cleen-border-t cleen-border-gray-200",{"-cleen-mt-10 cleen-border-transparent":!G}),onClick:()=>q(W=>!W),children:j(io,{className:ge("cleen-mx-auto cleen-size-4 cleen-text-gray-500 cleen-transition-transform",G?"-cleen-rotate-90":"cleen-rotate-90")})})]}),P?j("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:j(re,{size:"sm"})}):Gt?.map((W,te)=>{let se=ke(W,v),qe=V&&ke(V,v)===se,Pl=String(ke(W,C)??""),kl=b?String(ke(W,b)??""):"";return Ne("div",{className:ge("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-[60px] cleen-cursor-pointer hover:cleen-bg-primary/10",L?.item),style:{...F?.item||{},...qe?{backgroundColor:T}:{}},onClick:de=>{de.stopPropagation(),de.preventDefault(),J(W)},children:[Ne("div",{className:ge("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[j("span",{className:ge("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-gray-900",L?.itemTitle),style:F?.itemTitle,children:Pl}),j("span",{className:ge("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-gray-600",L?.itemSubtitle),style:F?.itemSubtitle,children:kl})]}),l?.length>0&&j("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:de=>{de.stopPropagation(),s?.(W)},children:j(Gr,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(de=>{let Yr=de?.disabledOptionCallback?.(W);return{...de,type:"button",label:j("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-gray-700",children:de?.label}),onClick:()=>{Yr||de?.onClick(W)},disabled:Yr}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-white cleen-rounded-md",children:j(Rr,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${te}-${String(se??te)}`)})]}),j(ut,{isHorizontal:!0}),_?Ne("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[j(me,{leftIcon:j(Pt,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-300"}),placeholder:e?.newItemPlaceholder,value:ae,onChange:W=>be(W.target.value),classNames:{inputContainer:"cleen-border-none",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),j("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:m?k?j(re,{}):ae?.length>w?j(ne,{variant:"primary",label:e?.saveButtonLabel,onClick:()=>{ve()},classNames:{container:"cleen-w-max cleen-h-7"}}):j("div",{}):j("div",{})})]}):Ne("div",{className:ge("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer hover:cleen-bg-primary/10",L?.newItemButton),style:F?.newItemButton,onClick:()=>H(!0),children:[j(Pt,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-300"}),j("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-gray-500",children:e?.newItemPlaceholder})]})]})]})}),document.body),!I&&V&&j("div",{className:"cleen-absolute cleen-top-1.5 cleen-left-1 cleen-flex cleen-items-center cleen-justify-start cleen-pl-2.5 cleen-w-[calc(100%-40px)] cleen-h-8 cleen-bg-white",onClick:()=>O(!0),children:j("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-gray-900",children:String(ke(V,C)??"")})})]})})};import{cn as Ce,useDebounce as lP,useOutsideClick as iP,usePositionClose as aP,ZIndex as cP}from"@cleen/ui-core";import{forwardRef as sP,useEffect as rg,useId as pP,useMemo as og,useRef as qm,useState as rl}from"react";import{createPortal as mP}from"react-dom";import{cn as ur}from"@cleen/ui-core";import{jsx as Mt,jsxs as eg}from"react/jsx-runtime";var tg=({options:n,selection:e,classNames:o,styles:r,onChoose:i,displaySubtextInline:l=!0,activeIndex:a=-1,getOptionId:c,onActiveIndexChange:m,...p})=>Mt("div",{...p,children:Mt("div",{className:ur("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",o?.container),style:r?.container,children:n?.map((s,g)=>{let f=e?.some(y=>y?.value===s?.value),x=g===a;return eg("li",{id:c?.(g),role:"option","aria-selected":f,className:ur("cleen-flex cleen-justify-between cleen-items-center hover:cleen-bg-gray-100 cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-cursor-pointer cleen-select-none",{"cleen-bg-gray-100 hover:cleen-bg-gray-200":f,"cleen-bg-gray-100":x},o?.item),style:r?.item,onMouseEnter:()=>m?.(g),onClick:()=>i?.(s,f),children:[eg("div",{className:ur("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",o?.labels,!l&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:r?.labels,children:[s?.leadingBadgeValue&&Mt(De,{color:"gray",label:s?.leadingBadgeValue}),s?.icon,s?.label&&Mt("span",{className:ur("cleen-font-medium cleen-text-gray-900 cleen-text-base",!l&&"cleen-w-full cleen-truncate"),children:s?.label}),s?.preSublabel&&Mt("span",{className:ur("cleen-font-medium cleen-text-gray-400 cleen-text-xs",!l&&"cleen-w-full cleen-truncate"),children:s?.preSublabel}),s?.sublabel&&Mt("span",{className:ur("cleen-font-medium cleen-text-gray-600 cleen-text-sm",!l&&"cleen-w-full cleen-truncate"),children:s?.sublabel})]}),f&&Mt("div",{className:o?.checkContainer,style:r?.checkContainer,children:Mt(st,{className:ur("cleen-text-primary",o?.check),style:r?.check})})]},s.value)})})});import{Fragment as uP,jsx as fe,jsxs as ol}from"react/jsx-runtime";var dP=sP(function({id:e,name:o,label:r,labelTooltip:i,labels:l,options:a,value:c,displaySelected:m="under",isLoading:p=!1,required:s,internalFiltering:g=!1,closeOnReachingLimit:f=!0,limit:x,getCustomBadgeLabel:y,displaySubtextInline:h=!0,selectedBadgeColor:v="blue",debounceDelay:S=0,characterThreshold:C=2,disabled:b=!1,isNoDataVisibleOnCreateNew:w=!0,zIndex:P=cP.DROPDOWN,className:R,classNames:k,style:T,styles:D,infoLabels:B,menuDetachedFromPortal:E,onInputChange:L,onChange:M,onCreateNewOption:F,createNewOptionLabelString:I,onLookupBlur:O,triggerBlurOnlyWhenOpen:N=!0,menuRef:z,..._},H){let[G,q]=rl(!1),$=qm(null),U=qm(null),V=z??$,{positionStyles:Q,isMounted:A}=aP({triggerRef:U,targetRef:V,position:"bottom-left",isOpen:G,offset:4});iP({refs:[V,U],handler:()=>{q(!1),O?.()},enabled:N?G:!0});let[K,ae]=rl(""),be=lP(K,S),Se=S?be:K,Ht=qm(Se),Ze=Array.isArray(c),[Sr,Ut]=rl([]),we=Ze?c:Sr,$e=["inside","inside-badge"].includes(m),wr=(J,Pe=!1)=>{if(Pe){let W=we.filter(te=>te.value!==J.value);Ze||Ut(W),M?.(W);return}let ve;if(x===1)ve=[J];else{if(x&&we.length>=x)return;ve=[...we,J]}Ze||Ut(ve),M?.(ve),f&&x&&ve.length>=x&&(ae(""),q(!1))},Oe=og(()=>g?a?.filter(J=>J?.label?.match(new RegExp(Se,"i"))):a,[a,Se,g]),ze=og(()=>I&&F&&!p&&K?.length>0&&!Oe?.some(J=>J?.label===K)?typeof I=="function"?I(K):I:null,[I,F,p,K,Oe]);rg(()=>{Ht.current!==Se&&(Ht.current=Se,Se.length<C?q(!1):(L?.(Se),q(!0)))},[Se,L,C]);let X=pP(),Ie=J=>`${X}-option-${J}`,[he,ce]=rl(-1);rg(()=>{ce(-1)},[Se,G]);let Gt=J=>{let Pe=Oe?.length??0;switch(J.key){case"ArrowDown":if(!Pe)return;if(J.preventDefault(),!G){q(!0),ce(0);return}ce(ve=>(ve+1)%Pe);break;case"ArrowUp":if(!Pe)return;if(J.preventDefault(),!G){q(!0),ce(Pe-1);return}ce(ve=>(ve-1+Pe)%Pe);break;case"Home":if(!G||!Pe)return;J.preventDefault(),ce(0);break;case"End":if(!G||!Pe)return;J.preventDefault(),ce(Pe-1);break;case"Enter":{if(!G||he<0)return;let ve=Oe?.[he];if(!ve)return;J.preventDefault();let W=we?.some(te=>te.value===ve.value);wr(ve,W);break}case"Escape":G&&(J.preventDefault(),q(!1));break;default:break}},un=ol("ul",{id:X,role:"listbox",className:Ce("cleen-flex cleen-flex-col cleen-gap-0.5 cleen-bg-background cleen-shadow-[0px_12px_16px_-4px_rgba(var(--cleen-gray-100))] cleen-px-1.5 cleen-pt-1 cleen-pb-0.5 cleen-border cleen-border-gray-200 cleen-rounded-lg",k?.menu?.container),style:D?.menu?.container,children:[p?fe(re,{className:Ce("cleen-py-3",k?.menu?.loader),style:D?.menu?.loader}):!Oe||Oe?.length===0?!!l?.noDataFound&&(w||!ze)&&fe("div",{className:Ce("cleen-flex cleen-justify-center cleen-items-center cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-font-normal cleen-text-gray-600 cleen-text-sm cleen-text-center cleen-pointer-events-none cleen-select-none",k?.menu?.noDataFound),style:D?.menu?.noDataFound,children:l?.noDataFound}):fe(tg,{options:Oe,selection:we,onChoose:wr,displaySubtextInline:h,activeIndex:he,getOptionId:Ie,onActiveIndexChange:ce,...k?.menu?.list,...D?.menu?.list}),ze&&ol("div",{className:Ce("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",k?.createNewOption?.container),style:D?.createNewOption?.container,children:[fe(ut,{...k?.createNewOption?.divider,...D?.createNewOption?.divider}),fe("span",{className:Ce("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",k?.createNewOption?.value),style:D?.createNewOption?.value,onClick:()=>{let J=F?.(K);typeof J=="boolean"&&!J||ae("")},children:ze})]})]});return fe("div",{className:Ce("cleen",R),style:T,children:ol("div",{className:Ce("cleen-flex cleen-flex-col cleen-w-full",k?.container),style:D?.container,children:[r&&fe(ee,{htmlFor:e||o,required:s,tooltip:i,className:Ce("cleen-mb-1.5",k?.label?.className),classNames:k?.label?.classNames,...D?.label,children:r}),fe("div",{ref:U,className:Ce("cleen-relative cleen-flex cleen-items-center",k?.input?.container),style:D?.input?.container,children:fe(me,{id:e||o,type:"search",autoFocus:!1,autoComplete:"off",className:Ce("cleen-w-full",k?.input?.component?.className),classNames:{...k?.input?.component?.classNames,inputContainer:Ce({"cleen-flex-wrap":$e},k?.input?.component?.classNames?.inputContainer),input:Ce({"cleen-pl-2":$e},k?.input?.component?.classNames?.input),leftIconContainer:Ce({"cleen-pr-0":$e},k?.input?.component?.classNames?.leftIconContainer)},...D?.input?.component,leftIcon:ol(uP,{children:[fe(Zt,{}),$e&&(we||[])?.length>0&&fe("div",{className:Ce("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{q(!G)},children:m==="inside-badge"?we?.map(J=>fe(De,{label:J?.label,color:"blue",variant:"semiRounded"},J.value)):fe("span",{className:Ce("cleen-font-medium cleen-text-gray-900 cleen-text-sm"),children:we?.map(J=>J?.label).join(", ")})})," "]}),onFocus:()=>{Se.length>=C&&K.length>=C&&q(!0)},value:K,onChange:J=>{ae(J.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":G,"aria-controls":G?X:void 0,"aria-activedescendant":G&&he>=0?Ie(he):void 0,onKeyDown:Gt,ref:H,required:s,disabled:b,..._})}),G&&(E?fe("div",{ref:V,children:un}):mP(fe("div",{className:"cleen",children:fe("div",{ref:V,className:Ce("cleen-absolute",{"cleen-opacity-0":!A}),style:{zIndex:P,top:`${Q.top}px`,left:`${Q.left}px`,minWidth:U.current?.offsetWidth?`${U.current.offsetWidth}px`:void 0},children:un})}),document.body)),m==="under"&&we?.length>0&&fe("span",{className:Ce("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",k?.pillbadge?.container),style:D?.pillbadge?.container,children:we?.map(J=>fe(De,{label:y?y(J):J?.label,color:v,removeable:!b,onRemoveClicked:()=>{if(b)return;let Pe=we?.filter(ve=>ve?.value!==J?.value);Ze||Ut(Pe),M?.(Pe)},...k?.pillbadge?.component,...D?.pillbadge?.component},J.value))}),(B?.errorMessage||B?.infoMessage||B?.subtitle)&&fe(Y,{...B})]})})});import{cn as le}from"@cleen/ui-core";import{forwardRef as fP}from"react";import gP from"react-markdown";import bP from"remark-gfm";import{jsx as oe}from"react/jsx-runtime";var hP=fP(function({components:e,children:o,className:r,classNames:i,style:l,styles:a,...c},m){let p={h1:({children:s})=>oe("h1",{className:le("cleen-text-3xl cleen-font-semibold cleen-text-gray-900 cleen-mb-4 cleen-mt-6"),children:s}),h2:({children:s})=>oe("h2",{className:le("cleen-text-2xl cleen-font-semibold cleen-text-gray-900 cleen-mb-3 cleen-mt-5"),children:s}),h3:({children:s})=>oe("h3",{className:le("cleen-text-xl cleen-font-semibold cleen-text-gray-900 cleen-mb-2 cleen-mt-4"),children:s}),h4:({children:s})=>oe("h4",{className:le("cleen-text-lg cleen-font-semibold cleen-text-gray-900 cleen-mb-2 cleen-mt-3"),children:s}),h5:({children:s})=>oe("h5",{className:le("cleen-text-base cleen-font-semibold cleen-text-gray-900 cleen-mb-1 cleen-mt-2"),children:s}),h6:({children:s})=>oe("h6",{className:le("cleen-text-sm cleen-font-semibold cleen-text-gray-900 cleen-mb-1 cleen-mt-2"),children:s}),p:({children:s})=>oe("p",{className:le("cleen-text-base cleen-text-gray-900 cleen-mb-4 cleen-leading-relaxed"),children:s}),a:({href:s,children:g})=>oe("a",{href:s,className:le("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:g}),ul:({children:s})=>oe("ul",{className:le("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-gray-900"),children:s}),ol:({children:s})=>oe("ol",{className:le("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-gray-900"),children:s}),li:({children:s})=>oe("li",{className:le("cleen-mb-1"),children:s}),blockquote:({children:s})=>oe("blockquote",{className:le("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-gray-700 cleen-mb-4"),children:s}),code:({className:s,children:g,...f})=>s?oe("code",{className:le("cleen-font-mono cleen-text-sm"),...f,children:g}):oe("code",{className:le("cleen-font-mono cleen-bg-gray-100 cleen-rounded cleen-px-1 cleen-text-sm"),...f,children:g}),pre:({children:s})=>oe("pre",{className:le("cleen-bg-gray-100 dark:cleen-bg-gray-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:s}),hr:()=>oe("hr",{className:le("cleen-border-t cleen-border-gray-200 cleen-my-4")}),img:({src:s,alt:g})=>oe("img",{src:s,alt:g,className:le("cleen-max-w-full cleen-rounded")}),strong:({children:s})=>oe("strong",{className:le("cleen-font-semibold"),children:s}),em:({children:s})=>oe("em",{className:le("cleen-italic"),children:s}),table:({children:s})=>oe("div",{className:le("cleen-overflow-x-auto cleen-mb-4"),children:oe("table",{className:le("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:s})}),thead:({children:s})=>oe("thead",{className:le("cleen-border-b cleen-border-gray-200"),children:s}),th:({children:s})=>oe("th",{className:le("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-gray-200"),children:s}),td:({children:s})=>oe("td",{className:le("cleen-p-2 cleen-border-b cleen-border-gray-200"),children:s}),input:({type:s,checked:g,disabled:f})=>s==="checkbox"?oe("input",{type:"checkbox",checked:g,disabled:f,readOnly:!0,className:le("cleen-mr-2 cleen-align-middle")}):oe("input",{type:s})};return oe("div",{ref:m,className:le("cleen",r,i?.container),style:{...l,...a?.container},...c,children:oe(gP,{...c,remarkPlugins:[bP],components:{...p,...e},children:o})})});import{cn as fr,useBodyScrollLock as vP,useCleenOverlays as ng,ZIndex as yP}from"@cleen/ui-core";import{forwardRef as xP,useCallback as CP,useEffect as Xm,useId as SP,useRef as wP,useState as lg}from"react";import{createPortal as IP}from"react-dom";import{jsx as Qo,jsxs as ag}from"react/jsx-runtime";var PP={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},ig=300,kP=xP(function({isOpen:e=!1,onClose:o,closeOnOverlayClick:r=!0,closeButtonIcon:i=Qo(Te,{className:"cleen-size-5"}),header:l,footer:a,zIndex:c=yP.MODAL,size:m="md",color:p,p:s,gap:g,radius:f=16,className:x,classNames:y,style:h,styles:v,children:S,...C},b){let[w,P]=lg(e),[R,k]=lg(e),T=wP(null),D=SP(),{addOverlay:B,removeOverlay:E}=ng(),L=CP(()=>{P(!1),setTimeout(()=>o?.(),ig)},[o]);return Xm(()=>{if(e){k(!0);let M=setTimeout(()=>P(!0),1);return()=>clearTimeout(M)}else{P(!1);let M=setTimeout(()=>k(!1),ig);return()=>clearTimeout(M)}},[e]),Xm(()=>{if(e)return B(D),()=>E(D)},[B,E,e,D]),Xm(()=>{let M=F=>{let{overlays:I}=ng.getState();F.key==="Escape"&&I[I.length-1]===D&&L()};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[L,D]),vP(R),R?IP(ag("div",{className:fr("cleen",x),style:h,ref:b,...C,children:[Qo("div",{className:fr("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-white/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",w?"cleen-opacity-100":"cleen-opacity-0",y?.overlay),style:{zIndex:c,...v?.overlay},onClick:()=>{r&&L()},"aria-hidden":"true"}),Qo("div",{className:fr("cleen-fixed cleen-inset-0 cleen-flex cleen-justify-center cleen-items-center cleen-p-4 cleen-overflow-auto","cleen-transition-all cleen-duration-300 cleen-ease-in-out","cleen-pointer-events-none",w?"cleen-opacity-100 cleen-scale-100":"cleen-opacity-0 cleen-scale-95",y?.container),style:{zIndex:c,...v?.container},"aria-modal":"true",role:"dialog",children:ag(ie,{header:l,footer:a,color:p,p:s,gap:g,radius:f,className:fr("cleen-relative cleen-shadow-xl cleen-w-full cleen-max-w-lg cleen-rounded-lg cleen-pointer-events-auto",y?.modal?.className),style:{maxWidth:typeof m=="number"?m:PP[m],...v?.modal?.style},classNames:{...y?.modal?.classNames,container:fr("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",y?.modal?.classNames?.container),childrenContainer:fr("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",y?.modal?.classNames?.childrenContainer)},styles:v?.modal?.styles,ref:T,children:[S,i&&Qo("div",{className:fr("cleen-top-3 cleen-right-3 cleen-absolute"),children:Qo(ne,{variant:"borderless",onClick:L,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:i})})]})})]}),document.body):null});import{useEffect as cg,useRef as TP}from"react";import{Fragment as RP,jsx as LP}from"react/jsx-runtime";var sg=({children:n,isIn:e,done:o,playToast:r})=>{let i=TP(!1);return cg(()=>{i.current||(i.current=!0,r())},[r]),cg(()=>{e||o()},[e,o]),LP(RP,{children:n})};import"react-toastify";var jm={success:{},error:{autoClose:2e4,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0},info:{},warning:{autoClose:4e3},default:{autoClose:3e3,position:"top-right",hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0}},pg={success:{name:"CheckCircle",className:"cleen-text-success"},error:{name:"XCircle",className:"cleen-text-error"},info:{name:"InfoCircle",className:"cleen-text-primary"},warning:{name:"AlertTriangle",className:"cleen-text-warning"},default:null};import{cn as Yo}from"@cleen/ui-core";import{jsx as nl,jsxs as mg}from"react/jsx-runtime";var dg=({message:n,title:e,icon:o,variant:r="default",classNames:i})=>{let l=pg[r],a=o??(l?nl(Me,{name:l.name,width:18,height:18,className:l.className}):null);return mg("div",{className:Yo("cleen-flex cleen-items-start cleen-gap-3",i?.container),children:[a&&nl("span",{className:Yo("cleen-flex cleen-shrink-0 cleen-items-center cleen-pt-0.5",i?.icon),children:a}),mg("div",{className:Yo("cleen-flex cleen-flex-col cleen-gap-0.5",i?.body),children:[e&&nl("span",{className:Yo("cleen-text-sm cleen-font-semibold cleen-text-gray-900",i?.title),children:e}),nl("span",{className:Yo("cleen-text-sm cleen-text-gray-500",i?.message),children:n})]})]})};import{cn as DP}from"@cleen/ui-core";import{Bounce as NP,Flip as FP,toast as Jo,Slide as EP,Zoom as MP}from"react-toastify";import{jsx as AP}from"react/jsx-runtime";var BP=({message:n,title:e,icon:o,variant:r="default",animationType:i="slide",className:l,classNames:a,...c})=>{let m=()=>{switch(i){case"bounce":return NP;case"flip":return FP;case"zoom":return MP;case"none":return sg;default:return EP}},p=e!==void 0||o!==void 0,s=p?AP(dg,{message:n,title:e,icon:o,variant:r,classNames:a}):n,g={...jm.default,...r!=="default"&&jm[r],transition:m(),className:DP("cleen-text-sm",l),...c,...p&&{icon:!1}};switch(r){case"success":return Jo.success(s,g);case"error":return Jo.error(s,g);case"info":return Jo.info(s,g);case"warning":return Jo.warning(s,g);default:return Jo(s,g)}};import{ToastContainer as OP}from"react-toastify";import{jsx as ug}from"react/jsx-runtime";var zP=n=>ug("div",{className:"cleen",children:ug(OP,{...n})});import{cn as fg}from"@cleen/ui-core";import{forwardRef as _P,useState as HP}from"react";import{jsx as Km,jsxs as UP}from"react/jsx-runtime";var Zm=_P(({totalPages:n,labels:e,onGoToPage:o,classNames:r,styles:i,...l},a)=>{let[c,m]=HP(""),p=()=>{let g=parseInt(c,10);isNaN(g)||(o?.(Math.min(Math.max(g,1),n)),m(""))},s=g=>{g.key==="Enter"?p():g.key==="Escape"&&m("")};return Km("div",{className:"cleen",...l,children:UP("div",{className:fg("cleen-flex cleen-items-center cleen-gap-2",r?.container),style:i?.container,children:[Km("span",{className:fg("cleen-text-sm cleen-text-gray-700 cleen-whitespace-nowrap",r?.label),style:i?.label,children:e?.goToPage}),Km(me,{ref:a,type:"number",min:1,max:n,value:c,onChange:g=>m(g.target.value),onKeyDown:s,...r?.input,...i?.input})]})})});import{cn as ll,useOutsideClick as GP,usePositionClose as VP}from"@cleen/ui-core";import{forwardRef as WP,useRef as gg,useState as bg}from"react";import{createPortal as $P}from"react-dom";import{jsx as Wr,jsxs as XP}from"react/jsx-runtime";var qP=[10,20,50,100],Qm=WP(({pageSize:n,pageSizes:e=qP,labels:o,onPageSizeChange:r,classNames:i,styles:l,...a},c)=>{let[m,p]=bg(n??e?.[0]??void 0),[s,g]=bg(!1),f=gg(null),x=gg(null),{positionStyles:y,isMounted:h}=VP({triggerRef:f,targetRef:x,isOpen:s,position:"top-left"});return GP({refs:[f,x],handler:()=>g(!1),enabled:s}),Wr("div",{className:"cleen",ref:c,...a,children:XP("div",{className:ll("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",i?.container),style:l?.container,children:[Wr(ue,{label:o?.itemsPerPage?.(m),classNames:{labelContainer:"cleen-min-w-max"},children:Wr("div",{className:ll("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-100 hover:cleen-bg-gray-200 cleen-p-2 cleen-rounded-lg cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-sm cleen-text-gray-700 cleen-transition-colors cleen-cursor-pointer",i?.trigger),style:l?.trigger,onClick:()=>g(v=>!v),ref:f,children:m})}),s&&$P(Wr("div",{className:"cleen",children:Wr("div",{ref:x,className:ll("cleen-flex cleen-bg-background cleen-shadow-lg cleen-border cleen-border-gray-200 cleen-rounded-lg","cleen-absolute cleen-z-50",{"cleen-opacity-0":!h},i?.menu),style:{top:`${y.top}px`,left:`${y.left}px`,...l?.menu},children:e?.filter(v=>v!==m)?.map(v=>Wr("div",{className:ll("cleen-flex cleen-justify-center cleen-items-center hover:cleen-bg-gray-100 cleen-p-2 cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",i?.menuItem),style:l?.menuItem,onClick:()=>{p(v),r?.(v),g(!1)},children:v},v))})}),document.body)]})})});var hg={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:n=>`Show ${n} items per page`};import{cn as Bt}from"@cleen/ui-core";import{forwardRef as jP,useCallback as il,useMemo as KP,useRef as ZP}from"react";import{jsx as Fe,jsxs as YP}from"react/jsx-runtime";var QP=jP(({currentPage:n,totalPages:e,pageSize:o,pageSizes:r,hasGotoPage:i=!0,hasPageSizeSelector:l=!0,onPageChange:a,onPageSizeChange:c,labels:m=hg,classNames:p,styles:s,...g},f)=>{let x=ZP(null),y=il(()=>{n<e&&a?.(n+1)},[n,e,a]),h=il(()=>{n>1&&a?.(n-1)},[n,a]),v=il(b=>Fe("span",{className:Bt("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background hover:cleen-bg-gray-100 cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 cleen-text-sm cleen-cursor-pointer",b===n&&"cleen-bg-gray-100 hover:cleen-bg-gray-200",p?.pageButton,b===n?p?.activePageButton:""),style:{...s?.pageButton,...b===n?s?.activePageButton:{}},onClick:()=>a?.(b),children:b},`page-${b}`),[n,a,p,s]),S=il(b=>Fe("span",{className:Bt("cleen-flex cleen-justify-center cleen-self-end cleen-bg-background hover:cleen-bg-gray-100 cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.ellipsis),style:s?.ellipsis,onClick:()=>x.current?.focus(),children:"..."},b),[p,s]),C=KP(()=>{if(isNaN(n)||isNaN(e))return[];let b=[];if(b.push(Fe(ue,{label:m.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:Fe("span",{className:Bt("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.navButton),style:s?.navButton,onClick:h,children:Fe(pt,{})})},"prev")),e<=7)for(let w=1;w<=e;w++)b.push(v(w));else if(b.push(v(1)),n<=3){for(let w=2;w<5;w++)b.push(v(w));b.push(S("dots-end")),b.push(v(e))}else if(n>=e-2){b.push(S("dots-start"));for(let w=e-3;w<=e;w++)b.push(v(w))}else b.push(S("dots-start")),b.push(v(n-1)),b.push(v(n)),b.push(v(n+1)),b.push(S("dots-end")),b.push(v(e));return b.push(Fe(ue,{label:m.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:Fe("span",{className:Bt("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.navButton),style:s?.navButton,onClick:y,children:Fe(Xe,{})})},"next")),b},[n,e,m,p,s,S,v,y,h]);return Fe("div",{className:"cleen",ref:f,...g,children:YP("div",{className:Bt("cleen-flex cleen-justify-between cleen-gap-4",p?.container),style:s?.container,children:[l?Fe(Qm,{pageSize:o,labels:m,onPageSizeChange:c,pageSizes:r,className:Bt("cleen-flex-1",p?.pageSizeSelector?.className),classNames:p?.pageSizeSelector?.classNames,...s?.pageSizeSelector}):Fe("div",{className:"cleen-flex-1"}),Fe("div",{className:Bt("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",p?.buttonsContainer),style:s?.buttonsContainer,children:C}),i?Fe(Zm,{ref:x,totalPages:e,onGoToPage:a,labels:m,className:Bt("cleen-flex cleen-flex-1 cleen-justify-end",p?.goToPage?.className),classNames:p?.goToPage?.classNames,...s?.goToPage}):Fe("div",{className:"cleen-flex-1"})]})})});import{cn as Ym,useDisclosure as JP,useOutsideClick as ek,usePositionClose as tk,ZIndex as rk}from"@cleen/ui-core";import{forwardRef as ok,useRef as vg}from"react";import{createPortal as nk}from"react-dom";import{jsx as Jm,jsxs as ik}from"react/jsx-runtime";var lk=ok(function({isOpen:e,onOpenChange:o,content:r,position:i="bottom-left",offset:l,zIndex:a=rk.POPOVER,children:c,className:m,classNames:p,style:s,styles:g,...f},x){let{isOpen:y,toggle:h,close:v}=JP({value:e,setValue:o}),S=vg(null),C=vg(null),{positionStyles:b,isMounted:w}=tk({triggerRef:S,targetRef:C,position:i,isOpen:y,offset:l});ek({refs:[S,C],handler:v,enabled:y});let P=R=>{R.stopPropagation(),h()};return ik("div",{className:Ym("cleen",m),style:s,ref:x,...f,children:[Jm("div",{ref:S,onClick:P,className:Ym("cleen-size-fit",p?.trigger,y&&p?.triggerOpen),style:{...g?.trigger,...y?g?.triggerOpen:{}},children:c}),y&&nk(Jm("div",{className:"cleen",onClick:R=>R.stopPropagation(),onPointerDown:R=>R.stopPropagation(),onMouseDown:R=>R.stopPropagation(),onTouchStart:R=>R.stopPropagation(),children:Jm("div",{ref:C,className:Ym("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-gray-200 cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!w},p?.popover),style:{zIndex:a,top:`${b.top}px`,left:`${b.left}px`,...g?.popover},onClick:R=>R.stopPropagation(),children:r})}),document.body)]})});import{cn as yg}from"@cleen/ui-core";import{forwardRef as ak,useEffect as ck,useState as sk}from"react";import{jsx as al,jsxs as xg}from"react/jsx-runtime";var pk={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},Cg=ak(({isFullscreen:n,percentage:e,duration:o=1e3,radius:r,stroke:i=16,size:l="md",color:a="rgb(var(--cleen-primary))",emptyColor:c="rgb(var(--cleen-gray-200))",textColor:m="rgb(var(--cleen-gray-900))",textHidden:p=!1,fontSize:s,renderText:g,className:f,classNames:x,style:y,styles:h,...v},S)=>{let C=r??pk[l]/2,b=C-i/2,w=b*2*Math.PI,[P,R]=sk(0);ck(()=>{let T=null;if(o===0){R(e);return}let D=B=>{T||(T=B);let E=B-T,L=Math.min(E/o*e,e);R(L),L<e&&requestAnimationFrame(D)};requestAnimationFrame(D)},[e,o]);let k=w-P/100*w;return al("div",{ref:S,className:yg("cleen",f),style:y,...v,children:xg("div",{className:yg("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":n},x?.container),style:h?.container,children:[xg("svg",{height:C*2,width:C*2,style:{transform:"rotate(-90deg)"},children:[al("circle",{stroke:c,fill:"transparent",strokeWidth:i,r:b,cx:C,cy:C}),al("circle",{stroke:a,fill:"transparent",strokeWidth:i,strokeLinecap:"round",strokeDasharray:w,strokeDashoffset:k,r:b,cx:C,cy:C})]}),!p&&al("div",{className:"cleen-absolute cleen-font-semibold cleen-text-gray-900",style:{fontSize:s??C/2.5,color:m},children:g?g(P):`${Math.round(P)}%`})]})})});Cg.displayName="ProgressCircle";import{cn as Ge}from"@cleen/ui-core";import{useEffect as mk,useState as dk}from"react";import{Fragment as Sg,jsx as bt,jsxs as en}from"react/jsx-runtime";var uk=({horizontal:n,boxes:e,selectedBox:o,onBoxClick:r,leftElement:i,rightElement:l,leftIcon:a,leftIconName:c,rightIconName:m,className:p,classNames:s,style:g,styles:f,...x})=>{let[y,h]=dk(o);mk(()=>{h(o)},[o]);let v=(w,P)=>en(Sg,{children:[i&&i(w),a||(c?bt(Me,{name:c,className:Ge("cleen-w-5 cleen-h-5",P?"cleen-text-primary":"cleen-text-gray-700",s?.leftIcon),style:f?.leftIcon}):null)]}),S=(w,P)=>bt("span",{className:Ge("cleen-font-semibold",P?"cleen-text-primary":"cleen-text-gray-700",s?.label),style:f?.label,children:w?.label}),C=(w,P)=>bt("span",{className:Ge("cleen-font-semibold cleen-text-16px",P?"cleen-text-primary":"cleen-text-gray-700",s?.subLabel),style:f?.subLabel,children:w?.subLabel}),b=(w,P)=>en(Sg,{children:[l&&l(w),m&&bt(Me,{name:m,className:Ge("cleen-w-5 cleen-h-5",P?"cleen-text-primary":"cleen-text-gray-700",s?.rightIcon),style:f?.rightIcon})]});return bt("div",{className:Ge("cleen",p),style:g,...x,children:n?bt("div",{className:Ge("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",s?.container),style:f?.container,children:e?.map(w=>{let P=w?.id===y?.id;return en("div",{className:Ge("cleen-flex cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary/5 cleen-w-max",P?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-gray-200",s?.box),style:f?.box,onClick:()=>{h(w),r?.(w)},children:[v(w,P),w?.label&&S(w,P),w?.subLabel&&C(w,P),b(w,P)]},w?.id)})}):bt("div",{className:Ge("cleen-grid cleen-gap-3 cleen-w-full",s?.container),style:{gridTemplateColumns:"1fr auto 1fr",...f?.container},children:e?.map(w=>{let P=w?.id===y?.id;return en("div",{className:Ge("cleen-grid cleen-col-span-full cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary/5",P?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-gray-200",s?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...f?.box},onClick:()=>{h(w),r?.(w)},children:[bt("div",{className:Ge("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",s?.leftIconContainer),style:f?.leftIconContainer,children:v(w,P)}),bt("div",{className:Ge("cleen-flex cleen-items-center cleen-justify-center",s?.labelContainer),style:f?.labelContainer,children:w?.label&&S(w,P)}),en("div",{className:Ge("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",s?.rightIconContainer),style:f?.rightIconContainer,children:[w?.subLabel&&C(w,P),b(w,P)]})]},w?.id)})})})};import{cn as ht}from"@cleen/ui-core";import{forwardRef as bk,useEffect as hk,useId as vk,useRef as yk,useState as xk}from"react";import{cn as wg}from"@cleen/ui-core";import{forwardRef as fk}from"react";import{jsx as Ig,jsxs as gk}from"react/jsx-runtime";var cl=fk(function({checked:e,className:o,classNames:r,style:i,styles:l,...a},c){return gk("div",{className:wg("group cleen-flex cleen-size-5 cleen-min-h-5 cleen-min-w-5 cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-border-gray-300 focus-within:cleen-ring-2 focus-within:cleen-ring-primary focus-within:cleen-ring-offset-1",e?"cleen-bg-primary":"cleen-bg-white",o),style:i,children:[Ig("input",{ref:c,type:"radio",checked:e,className:"cleen-sr-only",...a}),Ig("span",{className:wg("cleen-size-2 cleen-rounded-full cleen-bg-white",r?.innerCircle),style:l?.innerCircle})]})});import{jsx as tt,jsxs as sl}from"react/jsx-runtime";var Ck=bk(function({required:e,radios:o,label:r,labelTooltip:i,className:l,classNames:a,style:c,styles:m,name:p,direction:s="vertical",radioPosition:g="left",defaultActiveId:f,value:x,infoLabels:y,onChange:h},v){let S=x!==void 0,[C,b]=xk(f??o[0]?.id),w=vk(),P=`${w}-label`,R=p??`cleen-radio-group-${w}`;hk(()=>{!S&&f!==void 0&&b(f)},[f,S]);let k=S?x:C,T=I=>k!=null&&k==I,D=I=>{S||b(I),h?.(I)},B=yk([]),E=o?.findIndex(I=>T(I.id)),L=E>=0?E:0,M=I=>{let O=o[I];O&&(D(O.id),B.current[I]?.focus())},F=(I,O)=>{let N=o.length;if(N)switch(I.key){case"ArrowDown":case"ArrowRight":I.preventDefault(),M((O+1)%N);break;case"ArrowUp":case"ArrowLeft":I.preventDefault(),M((O-1+N)%N);break;default:break}};return tt("div",{className:ht("cleen",l),style:c,ref:v,children:sl("div",{className:a?.container,style:m?.container,children:[r&&tt(ee,{id:P,htmlFor:w,required:e,tooltip:i,className:ht("cleen-mb-1.5",a?.label?.className),classNames:a?.label?.classNames,...m?.label,children:r}),tt("div",{id:w,role:"radiogroup","aria-labelledby":r?P:void 0,className:ht("cleen-flex cleen-flex-wrap cleen-gap-2.5",s==="vertical"&&"cleen-flex-col cleen-w-fit",a?.radios),style:m?.radios,children:o?.map((I,O)=>{let N=`${w}-${O}`,z=I.radioPosition??g;return sl("div",{className:ht("cleen-flex cleen-gap-2 hover:cleen-bg-gray-100 cleen-p-5 cleen-border cleen-border-gray-200 hover:cleen-border-gray-300 cleen-rounded-xl cleen-transition-all cleen-duration-200 cleen-cursor-pointer",s==="horizontal"&&"cleen-flex-1",T(I?.id)&&"cleen-border-primary hover:cleen-border-primary",a?.radioContainer,I?.className,T(I?.id)&&a?.radioActive),style:{...m?.radioContainer,...I?.style},onClick:_=>{_.target instanceof Element&&!_.target.closest("label, input")&&B.current[O]?.click()},children:[I.leftIcon,z==="left"&&tt(cl,{ref:_=>{B.current[O]=_},id:N,name:R,value:I.id,checked:T(I.id),tabIndex:O===L?0:-1,onChange:()=>D(I.id),onKeyDown:_=>F(_,O),className:ht(a?.radioOuterCheckBox,I?.classNames?.outerCheckBox),style:{...m?.radioOuterCheckBox,...I?.styles?.outerCheckBox}}),sl("label",{htmlFor:N,className:ht("cleen-flex-1 cleen-cursor-pointer",a?.radioLabelsContainer,I?.classNames?.labelsContainer),style:{...m?.radioLabelsContainer,...I?.styles?.labelsContainer},children:[sl("div",{className:"cleen-flex cleen-items-center cleen-gap-1",children:[tt("span",{className:ht("cleen-font-semibold cleen-text-gray-700 cleen-text-sm",a?.radioTitle,I?.classNames?.title),style:{...m?.radioTitle,...I?.styles?.title},children:I.title}),tt("span",{className:ht("cleen-font-normal cleen-text-gray-600 cleen-text-xs",a?.radiotPostTitle,I?.classNames?.postTitle),style:{...m?.radiotPostTitle,...I?.styles?.postTitle},children:I.postTitle})]}),tt("span",{className:ht("cleen-font-normal cleen-text-gray-600 cleen-text-sm",a?.radioSubTitle,I?.classNames?.subTitle),style:{...m?.radioSubTitle,...I?.styles?.subTitle},children:I?.subTitle})]}),z==="right"&&tt(cl,{ref:_=>{B.current[O]=_},id:N,name:R,value:I.id,checked:T(I.id),tabIndex:O===L?0:-1,onChange:()=>D(I.id),onKeyDown:_=>F(_,O),className:a?.radioOuterCheckBox,style:m?.radioOuterCheckBox}),z==="hidden"&&tt(cl,{ref:_=>{B.current[O]=_},id:N,name:R,value:I.id,checked:T(I.id),tabIndex:O===L?0:-1,onChange:()=>D(I.id),onKeyDown:_=>F(_,O),className:"cleen-sr-only"}),I.rightIcon]},I?.id)})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&tt(Y,{...y})]})})});import{cn as $r,ColorHelpers as Sk}from"@cleen/ui-core";import{forwardRef as wk,useRef as Ik,useState as Pk}from"react";import{jsx as gr,jsxs as Pg}from"react/jsx-runtime";var kk=wk(function({id:e,required:o,label:r,labelTooltip:i,labels:l,infoLabels:a,value:c,onChange:m,amount:p=5,options:s=[],gap:g,size:f=36,readonly:x,color:y="rgb(var(--cleen-primary))",className:h,style:v,classNames:S,styles:C,...b},w){let[P,R]=Pk(0),k=c!==void 0,T=k?c:P,D=s?.length>0?s:Array.from({length:p},(N,z)=>z+1),B=Ik([]),E=D.findIndex(N=>N===T),L=E>=0?E:0,M=N=>{k||R(N),m?.(N)},F=N=>{let z=D[N];z!==void 0&&(M(z),B.current[N]?.focus())},I=(N,z)=>{if(x)return;let _=D.length;if(_)switch(N.key){case"ArrowRight":case"ArrowUp":N.preventDefault(),F((z+1)%_);break;case"ArrowLeft":case"ArrowDown":N.preventDefault(),F((z-1+_)%_);break;case"Home":N.preventDefault(),F(0);break;case"End":N.preventDefault(),F(_-1);break;default:break}},O=typeof r=="string"?r:"Rating";return gr("div",{className:$r("cleen",h),style:v,ref:w,...b,children:Pg("div",{className:$r("cleen-space-y-2",S?.container),style:C?.container,children:[r&&gr(ee,{htmlFor:e,required:o,tooltip:i,className:$r("cleen-mb-1.5",S?.label?.className),classNames:S?.label?.classNames,...C?.label,children:r}),Pg("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[gr("div",{role:"radiogroup","aria-label":O,className:$r("cleen-flex cleen-flex-wrap cleen-gap-3",S?.list),style:{...g?{gap:g}:{},...C?.list},children:D?.map((N,z)=>gr("button",{id:e,ref:_=>{B.current[z]=_},role:"radio","aria-checked":T===N,"aria-label":`${N}`,tabIndex:z===L?0:-1,onClick:()=>M(N),onKeyDown:_=>I(_,z),className:$r("cleen-flex cleen-justify-center cleen-items-center cleen-border cleen-border-gray-200 hover:cleen-border-gray-300 cleen-rounded-full cleen-text-gray-900 cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",x&&"cleen-cursor-default cleen-pointer-events-none",S?.item),style:{width:f,height:f,...T===N?{borderColor:y,backgroundColor:Sk.trasparentize(y,.9),color:y}:{},...C?.item},type:"button",children:gr("span",{className:$r("cleen-font-medium cleen-text-sm",S?.value),style:C?.value,children:N})},N))}),l?.helperText&&gr("span",{className:"cleen-text-sm cleen-text-gray-600",children:l.helperText})]}),(a?.errorMessage||a?.infoMessage||a?.subtitle)&&gr(Y,{...a})]})})});import{useState as Tk}from"react";import{components as Rk}from"react-select";import{jsx as ed,jsxs as kg}from"react/jsx-runtime";var Tg=n=>{let[e,o]=Tk(!1),r=n.data;return ed("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:ed(Rk.Option,{...n,children:kg("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[kg("div",{className:"cleen-flex-1",children:[r?.label,r?.sublabel&&ed("p",{className:"cleen-text-xs",children:r?.sublabel})]}),typeof r?.icon=="function"?r.icon({...n,isHovered:e}):r?.icon]})})})};import{components as Lk}from"react-select";import{jsx as td,jsxs as Dk}from"react/jsx-runtime";var Rg=n=>{let e=n.data;return td(Lk.SingleValue,{...n,children:Dk("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[td("p",{children:e?.label}),e?.sublabel&&td("p",{className:"cleen-text-xs cleen-text-gray-600 cleen-line-clamp-1",children:e?.sublabel})]})})};import{cn as tn,ZIndex as Eg}from"@cleen/ui-core";import{forwardRef as Ek,useId as Mk,useState as Mg}from"react";import Bk from"react-select";import{components as Nk}from"react-select";import{jsx as rd,jsxs as Lg}from"react/jsx-runtime";var Dg=({isLoading:n,inputValue:e,options:o,createNewOptionCallback:r,createNewOptionLabelStringCb:i,children:l,...a})=>{let c=e?.trim().toLowerCase(),m=o?.some(p=>p?.labelString?p.labelString.toLowerCase()===c:typeof p?.label=="string"?p.label.toLowerCase()===c:!1);return rd("div",{className:"cleen",children:Lg(Nk.MenuList,{options:o,...a,children:[l,r&&!n&&e&&e?.length>0&&!m&&Lg("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[rd(ut,{}),rd("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{r(e)},children:i?.(e)||e})]})]})})};import{components as Fk}from"react-select";import{jsx as Ng}from"react/jsx-runtime";var Fg=({isLoading:n,noDataFound:e,...o})=>Ng(Fk.NoOptionsMessage,{...o,children:n?Ng(re,{}):e||"No data found"});import{jsx as At,jsxs as Ag}from"react/jsx-runtime";var Bg=n=>typeof n=="object"&&n!==null&&("labelString"in n||"label"in n),Ak=Ek(function({label:e,labelTooltip:o,sublabel:r,id:i,name:l,required:a,className:c,classNames:m,isLoading:p=!1,disabled:s,emboldenOptions:g=!1,labels:f,components:x,style:y,styles:h,infoLabels:v,createNewOptionCallback:S,createNewOptionLabelStringCb:C,...b},w){let[P,R]=Mg(!1),[k,T]=Mg(""),D=Mk(),B=b.inputId??i??l??D,E=(M,F)=>{if(!Bg(M.data))return!1;let{labelString:I,label:O}=M.data;return I?I.toLowerCase().includes(F.toLowerCase()):typeof O=="string"?O.toLowerCase().includes(F.toLowerCase()):!1},L=M=>Bg(M)?M.labelString??(typeof M.label=="string"?M.label:""):"";return At("div",{className:tn("cleen",c),style:y,ref:w,children:Ag("div",{className:tn("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",m?.cleenContainer),style:h?.cleenContainer,children:[(e||r)&&Ag("div",{className:tn("cleen-flex cleen-flex-col cleen-gap-1",m?.labels?.container),style:h?.labels?.container,children:[e&&At(ee,{htmlFor:B,required:a,tooltip:o,...m?.labels?.label,...h?.labels?.label,children:e}),r&&At("span",{className:tn("cleen-font-normal cleen-text-gray-600 cleen-text-sm",m?.labels?.sublabel),style:h?.labels?.sublabel,children:r})]}),At(Bk,{...S&&{menuIsOpen:P,inputValue:k,onInputChange:M=>T(M),onMenuOpen:()=>R(!0),onMenuClose:()=>R(!1)},...!b.filterOption&&{filterOption:E},...!b.getOptionLabel&&{getOptionLabel:L},id:i||l,classNames:m,isDisabled:s,menuPortalTarget:document.body,menuPosition:"fixed",...b,inputId:B,className:tn("cleen-shadow-none cleen-font-normal cleen-text-gray-900 cleen-text-sm",m?.inputOuterContainer),styles:{...h,control:(M,F)=>{let I={...M,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:g&&F.hasValue?"600":"400",borderColor:v?.errorMessage?"rgba(var(--cleen-error), 0.5)":"rgb(var(--cleen-gray-300))",color:F.isDisabled?"rgb(var(--cleen-gray-500))":"rgb(var(--cleen-gray-900))",backgroundColor:F.isDisabled?"rgb(var(--cleen-gray-100))":"rgba(var(--cleen-background))",boxShadow:F.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:S?"rgba(var(--cleen-gray-900))":"transparent","&:hover":{borderColor:"rgb(var(--cleen-gray-200))"}};return h?.control?h?.control(I,F):I},menuPortal:(M,F)=>{let I={...M,zIndex:Eg.SELECT,...h?.menuPortal};return h?.menuPortal?h?.menuPortal(I,F):I},menu:(M,F)=>{let I={...M,backgroundColor:"rgba(var(--cleen-white))",border:"1px solid rgba(var(--cleen-gray-200))",zIndex:Eg.SELECT,...h?.menu};return h?.menu?h?.menu(I,F):I},option:(M,F)=>{let I={...M,backgroundColor:F.isSelected?"rgba(var(--cleen-primary))":F.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:F.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-gray-900))",fontWeight:g?"600":"400","&:hover":F.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:F.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-gray-600))"},"&:hover p":{color:"rgba(var(--cleen-white))"},"&:active":{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))"}};return h?.option?h?.option(I,F):I},menuList:(M,F)=>{let I={...M,"::-webkit-scrollbar":{width:"6px",height:"0px"},"::-webkit-scrollbar-track":{background:"rgb(var(--cleen-background))"},"::-webkit-scrollbar-thumb":{background:"rgba(var(--cleen-gray-200))"},"::-webkit-scrollbar-thumb:hover":{background:"rgba(var(--cleen-gray-400))"},padding:0,borderRadius:4,...h?.menuList};return h?.menuList?h?.menuList(I,F):I},singleValue:(M,F)=>{let I={...M,color:F.isDisabled?"rgba(var(--cleen-gray-500))":"rgba(var(--cleen-black))"};return h?.singleValue?h?.singleValue(I,F):I},input:(M,F)=>{let I={...M,color:"rgba(var(--cleen-gray-900))"};return h?.input?h?.input(I,F):I}},components:{IndicatorSeparator:()=>null,SingleValue:M=>At(Rg,{...M}),NoOptionsMessage:M=>At(Fg,{isLoading:p,noDataFound:f?.noDataFound,...M}),MenuList:M=>At(Dg,{isLoading:p,inputValue:k,createNewOptionCallback:S,createNewOptionLabelStringCb:C,...M}),Option:Tg,...x}}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&At(Y,{...v})]})})});import{jsx as Og,jsxs as Ok}from"react/jsx-runtime";function zg({children:n,title:e,className:o="",renderHeader:r}){return Ok("div",{className:`cleen-w-full cleen-h-full ${o}`,"data-testid":`drawer-container-${e}`,children:[r?r(e):Og("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-gray-900",children:e}),Og("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:n})]})}import{cn as vt}from"@cleen/ui-core";import{forwardRef as zk,useState as _k}from"react";import{Fragment as Vk,jsx as Ve,jsxs as pl}from"react/jsx-runtime";function Hk({icon:n,iconSrc:e,iconName:o,iconSize:r=24,title:i,className:l,style:a}){return n?Ve("span",{className:vt("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",l),style:{width:r,height:r,...a},children:n}):e?Ve("img",{src:e,alt:i,width:r,height:r,className:l,style:a}):o?Ve(Me,{name:o,width:r,height:r,className:l,style:a}):null}function _g({item:n,depth:e,iconSize:o=24,classNames:r,styles:i}){let[l,a]=_k(!1),c={...n,classNames:{...r,...n.classNames},styles:{...i,...n.styles}},m=Array.isArray(c?.items)&&c.items.length>0,p=c?.iconSize??o,s=e>0?{paddingLeft:12+e*28}:{},g=pl(Vk,{children:[pl("div",{className:vt("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",c?.classNames?.containerInner),style:c?.styles?.containerInner,children:[Ve(Hk,{icon:c?.icon,iconSrc:c?.iconSrc,iconName:c?.iconName,iconSize:p,title:c?.name,className:vt("cleen-text-gray-700 group-hover/row:cleen-text-gray-900 [&_path]:cleen-stroke-[1.5] [&_path]:[vector-effect:non-scaling-stroke] cleen-transition-all cleen-duration-200",c?.isActive&&"cleen-text-gray-900",c?.classNames?.icon),style:c?.styles?.icon}),Ve("span",{className:vt("cleen-font-semibold cleen-text-gray-800 group-hover/row:cleen-text-gray-900 cleen-text-sm cleen-truncate cleen-transition-colors cleen-duration-200",c?.isActive&&"cleen-text-gray-900",c?.classNames?.name),style:c?.styles?.name,children:c?.name})]}),["string","number"].includes(typeof c?.badgeCount)&&Ve(De,{color:c?.badgeColor,label:String(c?.badgeCount),...c?.classNames?.badge,...c?.styles?.badge})]});return m?pl("details",{className:c?.classNames?.container,style:c?.styles?.container,children:[pl("summary",{className:vt("cleen-group/row [&::-webkit-details-marker]:cleen-hidden cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-gray-100 cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer cleen-list-none",e===0?"cleen-px-3":void 0,c?.classNames?.parentItemContainer),style:{...s,...c?.styles?.parentItemContainer},onClick:()=>a(f=>!f),children:[g,Ve(Me,{name:"ChevronDown",className:vt("cleen-w-5 cleen-h-5 cleen-text-gray-700 group-hover/row:cleen-text-gray-900 cleen-transition-all cleen-shrink-0",{"cleen-rotate-180":l},c?.classNames?.chevron),style:c?.styles?.chevron})]}),Ve("div",{className:vt("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",c?.classNames?.childItemsContainer),style:c?.styles?.childItemsContainer,children:c.items.map(f=>Ve(_g,{item:f,depth:e+1,iconSize:o,classNames:r,styles:i},f?.id??f?.name))})]}):Ve("div",{className:vt("cleen-group/row cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-primary/5 cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer",e===0?"cleen-px-3 hover:cleen-bg-gray-100":void 0,c?.isActive&&e===0&&"cleen-bg-gray-100",c?.disabled&&"cleen-opacity-50 cleen-pointer-events-none",c?.classNames?.container),style:{...s,...c?.styles?.container},onClick:()=>c?.onClick?.(c),children:g})}var Uk=zk(function({title:e,icon:o,iconName:r,iconSrc:i,iconSize:l=24,badgeColor:a="gray",badgeCount:c,items:m,onClick:p,isActive:s=!1,disabled:g,className:f,classNames:x,style:y,styles:h},v){let S={id:"root",name:e,icon:o,iconName:r,iconSrc:i,iconSize:l,badgeColor:a,badgeCount:c,isActive:s,disabled:g,onClick:p?()=>p():void 0,classNames:x,styles:h,items:m};return Ve("div",{className:vt("cleen",f),style:y,ref:v,children:Ve(_g,{item:S,depth:0,iconSize:l,classNames:x,styles:h})})}),Gk=Uk;import{cn as yt}from"@cleen/ui-core";import{useEffect as Xk,useRef as jk,useState as Kk}from"react";import{cn as rn}from"@cleen/ui-core";import{useMemo as Wk}from"react";import{Link as $k}from"react-router-dom";import{jsx as on,jsxs as qk}from"react/jsx-runtime";function nn({item:n,activeId:e,onClick:o,countBadge:r,classNames:i,styles:l,renderIcon:a}){let c=e===n?.id,m=Wk(()=>n?a?a(n,c):n.icon?n.icon:n.iconSrc?on("img",{src:n.iconSrc,alt:n?.name||n?.label,className:rn("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",i?.icon,c&&"cleen-text-primary"),style:l?.icon}):n.iconName?on(Me,{name:n.iconName,className:rn("cleen-w-6 cleen-h-6 cleen-text-gray-700 [&_path]:cleen-stroke-[1.5] [&_path]:[vector-effect:non-scaling-stroke] cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",i?.icon,c&&"cleen-text-primary"),style:l?.icon}):null:null,[n,c,a,i?.icon,l?.icon]),p=qk("div",{"data-testid":`nav-item-${n?.id}`,className:rn("cleen-group cleen-relative cleen-p-2 cleen-cursor-pointer cleen-rounded-md cleen-w-12 cleen-h-12 cleen-flex cleen-justify-center cleen-items-center cleen-select-none cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary/10",i?.container,c&&"cleen-bg-primary/10"),style:l?.container,onClick:()=>{n?.path||o?.(n)},children:[m,r&&on("div",{className:rn("cleen-absolute -cleen-top-1 -cleen-right-1 cleen-flex cleen-items-center cleen-justify-center cleen-w-4 cleen-h-4 cleen-bg-white cleen-rounded-md cleen-border cleen-border-gray-200 cleen-font-normal cleen-text-[8px] cleen-text-gray-900",i?.badge),style:l?.badge,children:r})]});return on(ue,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-gray-900))",className:i?.tooltip?.className,classNames:{...i?.tooltip,labelContainer:rn("cleen-min-w-max",i?.tooltip?.classNames?.labelContainer)},...l?.tooltip,label:n?.label,children:n?.path?on($k,{to:n.path,children:p}):p})}import{jsx as xt,jsxs as br}from"react/jsx-runtime";function Hg({navigationItems:n,bottomNavigationItems:e=[],drawerContent:o={},logo:r,onLogoClick:i,userAvatar:l,userInfo:a,drawerFooter:c,drawerWidth:m=330,direction:p="right",defaultActiveId:s=null,activeId:g,onActiveChange:f,closeOnOutsideClick:x=!0,closeOnBlur:y=!0,className:h,classNames:v,style:S,styles:C,renderSidebarItem:b}){let[w,P]=Kk(s),R=jk(null),k=g!==void 0?g:w,T=!!k,D=E=>{let L=k===E.id?null:E.id;g===void 0&&P(L),f?.(L)};Xk(()=>{if(!x||!T)return;let E=L=>{R.current&&!R.current.contains(L.target)&&(g===void 0&&P(null),f?.(null))};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)}},[x,T,g,f]);let B=E=>{!y||!T||R.current&&!R.current.contains(E.relatedTarget)&&(g===void 0&&P(null),f?.(null))};return br("div",{className:yt("cleen",h),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:p==="left"?"row-reverse":"row",...S},ref:R,onBlur:B,tabIndex:y?0:void 0,children:[br("div",{className:yt("cleen-flex cleen-flex-col cleen-items-center cleen-h-full",p==="right"?"cleen-border-r cleen-border-r-gray-200":"cleen-border-l cleen-border-l-gray-200",v?.navigation),style:C?.navigation,children:[r&&xt("div",{className:yt("cleen-flex cleen-justify-center cleen-items-center cleen-pt-8 cleen-pb-6 cleen-w-full cleen-cursor-pointer",v?.logo),style:C?.logo,onClick:i,children:r}),br("div",{className:yt("cleen-flex cleen-flex-col cleen-flex-1 cleen-justify-between cleen-gap-2 cleen-px-4 cleen-overflow-y-auto cleen-no-scrollbar",v?.navigationItems),style:C?.navigationItems,children:[xt("nav",{className:yt("cleen-flex cleen-flex-col cleen-gap-2",v?.upperNavigationItemsWrapper),style:C?.upperNavigationItemsWrapper,children:n.map(E=>br("div",{children:[b?b(E,k===E.id,D):xt(nn,{item:E,activeId:k,onClick:D,classNames:{...v?.navigationItem,...E?.classNames},styles:{...C?.navigationItem,...E?.styles}}),E?.withBottomDivider&&xt("div",{className:"cleen-bg-gray-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},E.id))}),br("div",{className:yt("cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",v?.bottomNavigationItemsWrapper),style:C?.bottomNavigationItemsWrapper,children:[e.map(E=>br("div",{children:[b?b(E,k===E.id,D):xt(nn,{item:E,activeId:k,onClick:D,countBadge:E.badgeCount,classNames:{...v?.navigationItem,...E?.classNames},styles:{...C?.navigationItem,...E?.styles}}),E?.withBottomDivider&&xt("div",{className:"cleen-bg-gray-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},E.id)),l&&xt("div",{className:"cleen-mt-6 cleen-mb-8",children:l})]})]})]}),br("div",{className:yt("cleen-flex cleen-flex-col cleen-bg-sidebar cleen-h-full cleen-overflow-hidden cleen-transition-all cleen-duration-100",{"cleen-border-r cleen-border-r-gray-200":T&&p==="right","cleen-border-l cleen-border-l-gray-200":T&&p==="left"},v?.drawer),style:{...C?.drawer,width:T?`${m}px`:"0px",visibility:T?"visible":"hidden"},children:[k&&o[k]&&xt("div",{className:yt("cleen-flex-1 cleen-overflow-auto",v?.drawerContent),style:C?.drawerContent,children:o[k]}),k&&(c||a)&&xt("div",{className:yt("cleen-mt-auto cleen-flex cleen-justify-between cleen-items-start cleen-gap-4 cleen-px-5 cleen-pt-4 cleen-pb-8 cleen-border-gray-200 cleen-border-t cleen-w-full",v?.drawerFooter),style:C?.drawerFooter,children:typeof c=="function"?c(k):c||a})]})]})}var Z=n=>n==="pulse"?"cleen-animate-pulse":"";import{cn as Ug}from"@cleen/ui-core";import{forwardRef as Zk}from"react";import{jsx as Gg}from"react/jsx-runtime";var Qk={none:"cleen-rounded-none",sm:"cleen-rounded-sm",md:"cleen-rounded-md",lg:"cleen-rounded-lg",xl:"cleen-rounded-xl","2xl":"cleen-rounded-2xl",full:"cleen-rounded-full"},Yk=Zk(function({width:e,height:o,roundness:r="md",variant:i="default",className:l,style:a},c){let m=Z(i),p={...e!==void 0?{width:typeof e=="number"?`${e}px`:e}:{},...o!==void 0?{height:typeof o=="number"?`${o}px`:o}:{},...a};return Gg("div",{ref:c,className:Ug("cleen",l),children:Gg("div",{className:Ug("cleen-bg-gray-100",Qk[r],e===void 0&&"cleen-w-full",o===void 0&&"cleen-h-4",m),style:p})})});import{cn as od}from"@cleen/ui-core";import{forwardRef as Jk}from"react";import{jsx as ml,jsxs as eT}from"react/jsx-runtime";var nd=Jk(function({className:e,style:o,variant:r="default",itemCount:i=1},l){let a=Z(r);return ml("div",{ref:l,className:od("cleen",e),style:o,children:ml("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:i}).map((c,m)=>eT("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[ml("div",{className:od("cleen-bg-gray-100 cleen-rounded-full cleen-size-12 cleen-border cleen-border-gray-200",a)}),ml("div",{className:od("cleen-bg-gray-100 cleen-rounded cleen-w-14 cleen-h-3",a)})]},m))})})});import{cn as Vg}from"@cleen/ui-core";import{forwardRef as tT}from"react";import{jsx as ld}from"react/jsx-runtime";var id=tT(function({className:e,style:o,variant:r="default",itemCount:i=1},l){let a=Z(r);return ld("div",{ref:l,className:Vg("cleen",e),style:o,children:ld("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:i}).map((c,m)=>ld("div",{className:Vg("cleen-bg-gray-100 cleen-rounded-full cleen-h-6 cleen-w-16",a)},m))})})});import{cn as Wg}from"@cleen/ui-core";import{forwardRef as rT}from"react";import{jsx as hr,jsxs as dl}from"react/jsx-runtime";var ad=rT(function({className:e,style:o,variant:r="default"},i){let l=Z(r);return hr("div",{ref:i,className:Wg("cleen",e),style:o,children:dl("div",{className:Wg("cleen-relative cleen-bg-gray-100 cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",l),children:[hr("div",{className:"cleen-h-48 cleen-w-full"}),dl("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-flex-col cleen-justify-center cleen-items-start cleen-gap-4 cleen-px-8",children:[hr("div",{className:"cleen-bg-gray-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),dl("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[hr("div",{className:"cleen-bg-gray-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),hr("div",{className:"cleen-bg-gray-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),dl("div",{className:"cleen-flex cleen-gap-3",children:[hr("div",{className:"cleen-bg-gray-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),hr("div",{className:"cleen-bg-gray-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as $g}from"@cleen/ui-core";import{forwardRef as oT}from"react";import{jsx as cd}from"react/jsx-runtime";var sd=oT(function({className:e,style:o,variant:r="default",itemCount:i=1},l){let a=Z(r);return cd("div",{ref:l,className:$g("cleen",e),style:o,children:cd("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:i}).map((c,m)=>cd("div",{className:$g("cleen-bg-gray-100 cleen-rounded-lg cleen-h-10 cleen-w-28",a)},m))})})});import{cn as ul}from"@cleen/ui-core";import{forwardRef as nT}from"react";import{jsx as fl,jsxs as qg}from"react/jsx-runtime";var ln=nT(function({className:e,style:o,variant:r="default"},i){let l=Z(r);return fl("div",{ref:i,className:ul("cleen",e),style:o,children:qg("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-w-full",children:[fl("div",{className:ul("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-100 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-min-w-10 cleen-size-10",l)}),qg("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[fl("div",{className:ul("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-4",l)}),fl("div",{className:ul("cleen-bg-gray-100 cleen-rounded cleen-w-1/2 cleen-h-3",l)})]})]})})});import{cn as qr}from"@cleen/ui-core";import{forwardRef as lT}from"react";import{jsx as Xr,jsxs as gl}from"react/jsx-runtime";var bl=lT(({className:n,style:e,variant:o="default"},r)=>{let i=Z(o);return Xr("div",{ref:r,className:qr("cleen",n),style:e,children:gl("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray-200 cleen-rounded-lg",children:[gl("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[Xr("div",{className:qr("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-100 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-size-10",i)}),gl("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Xr("div",{className:qr("cleen-bg-gray-100 cleen-rounded cleen-w-1/2 cleen-h-5",i)}),Xr("div",{className:qr("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-4",i)})]})]}),gl("div",{className:"cleen-space-y-2 cleen-w-full",children:[Xr("div",{className:qr("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-2",i)}),Xr("div",{className:qr("cleen-bg-gray-100 cleen-rounded cleen-w-16 cleen-h-3",i)})]})]})})});bl.displayName="AssessmentHeaderSkeleton";import{cn as rt}from"@cleen/ui-core";import{forwardRef as iT}from"react";import{jsx as ot,jsxs as jr}from"react/jsx-runtime";var pd=iT(function({className:e,style:o,variant:r="default"},i){let l=Z(r);return ot("div",{ref:i,className:rt("cleen",e),style:o,children:jr("div",{className:"cleen-flex cleen-flex-col cleen-bg-white cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-overflow-hidden cleen-w-full",children:[ot("div",{className:rt("cleen-bg-gray-100 cleen-w-full cleen-h-40",l)}),jr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[jr("div",{className:"cleen-flex cleen-gap-2",children:[ot("div",{className:rt("cleen-bg-gray-100 cleen-rounded-full cleen-w-16 cleen-h-5",l)}),ot("div",{className:rt("cleen-bg-gray-100 cleen-rounded-full cleen-w-12 cleen-h-5",l)})]}),jr("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[ot("div",{className:rt("cleen-bg-gray-100 cleen-rounded cleen-w-4/5 cleen-h-5",l)}),ot("div",{className:rt("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-3",l)}),ot("div",{className:rt("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-3",l)})]}),jr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[jr("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[ot("div",{className:rt("cleen-bg-gray-100 cleen-rounded-full cleen-size-7 cleen-shrink-0",l)}),ot("div",{className:rt("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-3",l)})]}),ot("div",{className:rt("cleen-bg-gray-100 cleen-rounded-lg cleen-w-16 cleen-h-7",l)})]})]})]})})});import{forwardRef as aT}from"react";import{cn as cT}from"@cleen/ui-core";import{jsx as md}from"react/jsx-runtime";var dd=aT(function({className:e,style:o,itemCount:r=3,variant:i="default"},l){return md("div",{ref:l,className:cT("cleen",e),style:o,children:md("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:r}).map((a,c)=>md(ln,{variant:i},c))})})});import{cn as vr}from"@cleen/ui-core";import{forwardRef as sT}from"react";import{jsx as We,jsxs as an}from"react/jsx-runtime";var Xg=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],ud=sT(function({className:e,style:o,variant:r="default"},i){let l=Z(r);return We("div",{ref:i,className:vr("cleen",e),style:o,children:an("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-bg-white cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-px-4 cleen-pt-4 cleen-pb-3 cleen-w-full",children:[an("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[We("div",{className:vr("cleen-bg-gray-100 cleen-rounded cleen-w-32 cleen-h-5",l)}),We("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((a,c)=>an("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[We("div",{className:vr("cleen-bg-gray-100 cleen-rounded-full cleen-size-2.5",l)}),We("div",{className:vr("cleen-bg-gray-100 cleen-rounded cleen-h-3",l),style:{width:a}})]},c))})]}),an("div",{className:"cleen-flex cleen-gap-3",children:[We("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-end cleen-py-1",style:{height:120},children:[0,1,2,3].map(a=>We("div",{className:vr("cleen-bg-gray-100 cleen-rounded cleen-w-6 cleen-h-2",l)},a))}),an("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[We("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:Xg.map((a,c)=>We("div",{className:vr("cleen-bg-gray-100 cleen-rounded-t cleen-flex-1",a,l)},c))}),We("div",{className:"cleen-w-full cleen-h-px cleen-bg-gray-100"}),We("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:Xg.map((a,c)=>We("div",{className:vr("cleen-bg-gray-100 cleen-rounded cleen-flex-1 cleen-h-2",l)},c))})]})]})]})})});import{cn as yr}from"@cleen/ui-core";import{forwardRef as pT}from"react";import{jsx as Ct,jsxs as hl}from"react/jsx-runtime";var fd=pT(({variant:n="default",itemCount:e=3,className:o,style:r},i)=>{let l=Z(n);return Ct("div",{ref:i,className:yr("cleen",o),style:r,children:Ct(ie,{className:"cleen-max-h-fit",children:hl("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[hl("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Ct("div",{className:yr("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-6",l)}),Ct("div",{className:yr("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-4",l)})]}),Ct("div",{className:"cleen-space-y-6",children:Array.from({length:e}).map((a,c)=>hl("div",{className:"cleen-space-y-3",children:[Ct("div",{className:yr("cleen-bg-gray-100 cleen-rounded cleen-w-2/3 cleen-h-4",l)}),Ct("div",{className:yr("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-10",l)})]},c))}),hl("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[Ct("div",{className:yr("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-10",l)}),Ct("div",{className:yr("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-10",l)})]})]})})})});import{cn as vl}from"@cleen/ui-core";import{forwardRef as mT}from"react";import{jsx as cn,jsxs as dT}from"react/jsx-runtime";var gd=mT(function({className:e,style:o,variant:r="default",itemCount:i=5},l){let a=Z(r),c=["cleen-w-1/12","cleen-w-3/12","cleen-w-2/12","cleen-w-3/12","cleen-w-2/12","cleen-w-1/12"];return cn("div",{ref:l,className:vl("cleen",e),style:o,children:dT("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-overflow-hidden",children:[cn("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-bg-gray-100 cleen-border-b cleen-border-gray-200",children:c.map((m,p)=>cn("div",{className:vl("cleen-bg-gray-100 cleen-rounded cleen-h-4 cleen-flex-shrink-0",m,a)},p))}),Array.from({length:i}).map((m,p)=>cn("div",{className:vl("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",p<i-1?"cleen-border-b cleen-border-gray-200":""),children:c.map((s,g)=>cn("div",{className:vl("cleen-bg-gray-100 cleen-rounded cleen-h-4 cleen-flex-shrink-0",g===c.length-1?"cleen-rounded-full":"cleen-rounded",s,a)},g))},p))]})})});import{cn as yl}from"@cleen/ui-core";import{forwardRef as uT}from"react";import{jsx as sn,jsxs as jg}from"react/jsx-runtime";var bd=uT(function({className:e,style:o,variant:r="default",itemCount:i=4},l){let a=Z(r);return sn("div",{ref:l,className:yl("cleen",e),style:o,children:jg("div",{className:"cleen-flex cleen-flex-col cleen-gap-5 cleen-w-full cleen-bg-white cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-px-6 cleen-py-6",children:[Array.from({length:i}).map((c,m)=>jg("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[sn("div",{className:yl("cleen-bg-gray-100 cleen-rounded cleen-w-1/4 cleen-h-3",a)}),sn("div",{className:yl("cleen-bg-gray-100 cleen-rounded-lg cleen-w-full cleen-h-10",a)})]},m)),sn("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:sn("div",{className:yl("cleen-bg-gray-100 cleen-rounded-lg cleen-w-28 cleen-h-10",a)})})]})})});import{cn as Kg}from"@cleen/ui-core";import{forwardRef as fT}from"react";import{jsx as hd}from"react/jsx-runtime";var gT=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-light-green))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],vd=fT(function({className:e,style:o,variant:r="default",colors:i=gT},l){let a=Z(r);return hd("div",{ref:l,className:Kg("cleen",e),style:o,children:hd("div",{className:Kg("cleen-p-1 cleen-size-full cleen-rounded-lg cleen-animate-[cleen-rotate-gradient-angle_2.5s_linear_infinite]",a),style:{background:`conic-gradient(from var(--cleen--gradient-angle),${i.join(",")})`},children:hd("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as xl}from"@cleen/ui-core";import{forwardRef as bT}from"react";import{jsx as Kr,jsxs as Zg}from"react/jsx-runtime";var yd=bT(function({className:e,style:o,variant:r="default"},i){let l=Z(r);return Kr("div",{ref:i,className:xl("cleen",e),style:o,children:Zg("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Kr("div",{className:xl("cleen-relative cleen-bg-gray-100 cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",l),children:Kr("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Zg("div",{className:xl("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[Kr("div",{className:"cleen-bg-gray-200 cleen-rounded-full cleen-size-8"}),Kr("div",{className:"cleen-bg-gray-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),Kr("div",{className:xl("cleen-bg-gray-100 cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",l)})]})})});import{cn as Ae}from"@cleen/ui-core";import{forwardRef as hT}from"react";import{jsx as Ee,jsxs as St}from"react/jsx-runtime";var xd=hT(function({className:e,style:o,variant:r="default"},i){let l=Z(r);return Ee("div",{ref:i,className:Ae("cleen",e),style:o,children:St("div",{className:Ae("cleen-flex cleen-flex-col cleen-items-start cleen-gap-4 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-h-fit",e),style:o,children:[St("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Ee("div",{className:Ae("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-100 cleen-p-2 cleen-rounded-full cleen-size-8",l)}),Ee("div",{className:Ae("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-3",l)})]}),St("div",{className:"cleen-space-y-3 cleen-w-full",children:[St("div",{children:[Ee("div",{className:Ae("cleen-bg-gray-100 cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",l)}),Ee(ie,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:St("div",{className:"cleen-space-y-2",children:[Ee("div",{className:Ae("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-3",l)}),Ee("div",{className:Ae("cleen-bg-gray-100 cleen-rounded cleen-w-5/6 cleen-h-3",l)})]})})]}),St("div",{children:[Ee("div",{className:Ae("cleen-bg-gray-100 cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",l)}),St("div",{className:"cleen-space-y-2",children:[Ee("div",{className:Ae("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-3",l)}),Ee("div",{className:Ae("cleen-bg-gray-100 cleen-rounded cleen-w-2/3 cleen-h-3",l)})]})]}),St("div",{children:[Ee("div",{className:Ae("cleen-bg-gray-100 cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",l)}),Ee(ie,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:St("div",{className:"cleen-space-y-2",children:[Ee("div",{className:Ae("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-3",l)}),Ee("div",{className:Ae("cleen-bg-gray-100 cleen-rounded cleen-w-4/5 cleen-h-3",l)})]})})]})]})]})})});import{cn as Cd}from"@cleen/ui-core";import{forwardRef as vT}from"react";import{jsx as Sd,jsxs as yT}from"react/jsx-runtime";var wd=vT(function({className:e,style:o,variant:r="default"},i){let l=Z(r);return Sd("div",{ref:i,className:Cd("cleen",e),style:o,children:yT("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Sd("div",{className:Cd("cleen-bg-gray-100 cleen-rounded cleen-w-1/4 cleen-h-3",l)}),Sd("div",{className:Cd("cleen-bg-gray-100 cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-gray-200",l)})]})})});import{cn as pn}from"@cleen/ui-core";import{forwardRef as xT}from"react";import{jsx as Zr,jsxs as Qg}from"react/jsx-runtime";var Id=xT(function({className:e,style:o,variant:r="default",itemCount:i=5},l){let a=Z(r),c=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return Zr("div",{ref:l,className:pn("cleen",e),style:o,children:Zr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-gray-200",children:Array.from({length:i}).map((m,p)=>Qg("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[Zr("div",{className:pn("cleen-bg-gray-100 cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-gray-200",a)}),Qg("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[Zr("div",{className:pn("cleen-bg-gray-100 cleen-rounded cleen-h-4",c[p%c.length],a)}),Zr("div",{className:pn("cleen-bg-gray-100 cleen-rounded cleen-h-3 cleen-w-2/5",a)})]}),Zr("div",{className:pn("cleen-bg-gray-100 cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",a)})]},p))})})});import{cn as Yg}from"@cleen/ui-core";import{forwardRef as CT}from"react";import{jsx as kd}from"react/jsx-runtime";var Pd=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],Td=CT(function({className:e,style:o,variant:r="default",itemCount:i},l){let a=Z(r),c=i??Pd.length;return kd("div",{ref:l,className:Yg("cleen",e),style:o,children:kd("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:c}).map((m,p)=>{let s=p<Pd.length?Pd[p]:p===c-1?"cleen-w-3/5":"cleen-w-full";return kd("div",{className:Yg("cleen-bg-gray-100 cleen-rounded cleen-h-3",s,a)},p)})})})});import{cn as Jg}from"@cleen/ui-core";import{forwardRef as ST}from"react";import{jsx as eb}from"react/jsx-runtime";var Rd=ST(function({className:e,style:o,variant:r="default"},i){let l=Z(r);return eb("div",{ref:i,className:Jg("cleen",e),style:o,children:eb("div",{className:Jg("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-4",l)})})});import{cn as xr}from"@cleen/ui-core";import{forwardRef as wT}from"react";import{jsx as nt,jsxs as Cl}from"react/jsx-runtime";var Ld=wT(function({className:e,style:o,variant:r="default"},i){let l=Z(r);return nt("div",{ref:i,className:xr("cleen",e),style:o,children:Cl("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[nt("div",{className:xr("cleen-relative cleen-bg-gray-100 cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",l),children:nt("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:nt("div",{className:"cleen-bg-gray-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:nt("div",{className:"cleen-w-0 cleen-h-0 cleen-ml-1 cleen-border-y-[8px] cleen-border-y-transparent cleen-border-l-[14px] cleen-border-l-gray-400"})})})}),Cl("div",{className:"cleen-flex cleen-gap-3",children:[nt("div",{className:xr("cleen-bg-gray-100 cleen-rounded-lg cleen-size-10 cleen-shrink-0",l)}),Cl("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[nt("div",{className:xr("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-4",l)}),nt("div",{className:xr("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-3",l)}),Cl("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[nt("div",{className:xr("cleen-bg-gray-100 cleen-rounded cleen-w-14 cleen-h-3",l)}),nt("div",{className:xr("cleen-bg-gray-100 cleen-rounded cleen-w-10 cleen-h-3",l)})]})]})]})]})})});import{cn as mn}from"@cleen/ui-core";import{forwardRef as IT}from"react";import{jsx as dn,jsxs as Dd}from"react/jsx-runtime";var Sl=IT(function({variant:e="default",className:o,style:r},i){let l=Z(e);return dn("div",{ref:i,className:mn("cleen",o),style:r,children:Dd("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-w-full cleen-h-full",children:[Dd("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-2 cleen-py-0.5 cleen-border cleen-border-gray-200 cleen-rounded-full",children:[dn("div",{className:mn("cleen-bg-gray-100 cleen-rounded-full cleen-size-1.5",l)}),dn("div",{className:mn("cleen-bg-gray-100 cleen-rounded cleen-w-20 cleen-h-3",l)})]}),Dd("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[dn("div",{className:mn("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-8",l)}),dn("div",{className:mn("cleen-bg-gray-100 cleen-rounded cleen-w-12 cleen-h-4",l)})]})]})})});Sl.displayName="SkeletonBadgeCard";import{forwardRef as PT}from"react";import{jsx as pe}from"react/jsx-runtime";var kT=PT(function({className:e,style:o,variant:r="default",itemCount:i=3,colors:l,skeleton:a="card",isShowing:c=!1,children:m},p){if(!c)return m;let s={ref:p,variant:r,itemCount:i,colors:l,className:e,style:o};switch(a){case"card2":return pe(bl,{...s});case"card3":return pe(pd,{...s});case"cardStack":return pe(dd,{...s});case"contentCard":return pe(fd,{...s});case"infoCard":return pe(xd,{...s});case"widgetCard":return pe(Sl,{...s});case"image":return pe(yd,{...s});case"video":return pe(Ld,{...s});case"avatar":return pe(nd,{...s});case"dataGrid":return pe(gd,{...s});case"text":return pe(Rd,{...s});case"paragraph":return pe(Td,{...s});case"list":return pe(Id,{...s});case"form":return pe(bd,{...s});case"banner":return pe(ad,{...s});case"chart":return pe(ud,{...s});case"button":return pe(sd,{...s});case"badge":return pe(id,{...s});case"input":return pe(wd,{...s});case"glowingCard":return pe(vd,{...s});default:return pe(ln,{...s})}});import{cn as Ot}from"@cleen/ui-core";import{forwardRef as TT,useCallback as Nd,useEffect as RT,useRef as tb,useState as rb}from"react";import{jsx as zt,jsxs as wl}from"react/jsx-runtime";var LT=TT(function({id:e,required:o,minValue:r=0,maxValue:i=100,step:l=1,defaultValue:a=0,value:c,variant:m="default",onChange:p,onChangeEnd:s,className:g,classNames:f,style:x,styles:y,disabled:h=!1,label:v,labelTooltip:S,labels:C,tooltip:b,infoLabels:w},P){let[R,k]=rb(a??r),T=c!==void 0?c:R,D=tb(null),[B,E]=rb(!1),L=tb(!1),M=(T-r)/(i-r)*100,F=Math.min(100,Math.max(0,M)),I=Nd($=>{let U=Math.round(($-r)/l)*l+r;return Math.min(i,Math.max(r,U))},[r,i,l]),O=Nd(($,U)=>{let V=I($);c===void 0&&k(V),p?.(V),U&&s?.(V)},[I,c,p,s]),N=Nd($=>{let U=D.current;if(!U)return r;let V=U.getBoundingClientRect(),Q=($-V.left)/V.width;return I(r+Q*(i-r))},[r,i,I]),z=$=>{if(h)return;let U;switch($.key){case"ArrowRight":case"ArrowUp":U=T+l;break;case"ArrowLeft":case"ArrowDown":U=T-l;break;case"Home":U=r;break;case"End":U=i;break;default:return}$.preventDefault(),O(U,!0)},_=$=>{h||($.preventDefault(),E(!0))},H=$=>{if(h||L.current){L.current=!1;return}O(N($.clientX),!0)},G=$=>{h||($.preventDefault(),E(!0))};RT(()=>{if(!B)return;let $=A=>{O(N(A.clientX))},U=A=>{E(!1),L.current=!0,s?.(I(N(A.clientX)))},V=A=>{A.touches.length>0&&O(N(A.touches[0].clientX))},Q=A=>{E(!1),L.current=!0,s?.(I(N(A.changedTouches[0].clientX)))};return document.addEventListener("mousemove",$),document.addEventListener("mouseup",U),document.addEventListener("touchmove",V),document.addEventListener("touchend",Q),()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",U),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",Q)}},[B,I,N,O,s]);let q=$=>zt("span",{className:"cleen-font-medium cleen-text-xs cleen-text-gray-900",children:$});return zt("div",{className:Ot("cleen",g),style:x,ref:P,children:wl("div",{className:Ot("cleen-w-full",f?.container),style:y?.container,children:[v&&zt(ee,{htmlFor:e,required:o,tooltip:S,...f?.label,...y?.label,children:v}),wl("div",{className:Ot({"cleen-flex cleen-items-center cleen-gap-2":m==="inline"},f?.slider),style:y?.slider,children:[m==="inline"&&C?.minLabel!==void 0&&q(C?.minLabel),wl("div",{ref:D,className:Ot("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":m==="inline"},f?.track),style:y?.track,"aria-disabled":h,onClick:H,children:[zt("div",{className:Ot("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-gray-200 dark:cleen-bg-black cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",f?.path),style:y?.path,children:zt("div",{className:Ot("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",f?.filledTrack),style:{width:`${F}%`,...y?.filledTrack}})}),zt(ue,{invertColors:!0,...b,label:C?.tooltip?.(T)??T,className:Ot("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",b?.className),style:{left:`calc(${F}% - 8px)`,...b?.style},isOpen:B||b?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:zt("div",{id:e,className:Ot("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-gray-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",f?.thumb),style:y?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":T,"aria-valuemin":r,"aria-valuemax":i,"aria-disabled":h,"aria-label":typeof v=="string"?v:"Slider","aria-labelledby":e,onMouseDown:_,onTouchStart:G,onKeyDown:z})})]}),m==="inline"?C?.maxLabel&&q(C?.maxLabel):(C?.minLabel||C?.maxLabel)&&wl("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[C?.minLabel&&q(C?.minLabel),C?.maxLabel&&q(C?.maxLabel)]})]}),(w?.errorMessage||w?.infoMessage||w?.subtitle)&&zt(Y,{...w})]})})});import{cn as lt}from"@cleen/ui-core";import{forwardRef as DT,useCallback as Fd,useEffect as NT,useRef as FT,useState as ob}from"react";import{jsx as it,jsxs as Il}from"react/jsx-runtime";var ET=DT(function({id:e,required:o,minValue:r=0,maxValue:i=100,step:l=1,defaultValue:a=[r,i],value:c,variant:m="default",onChange:p,onChangeEnd:s,className:g,classNames:f,style:x,styles:y,disabled:h=!1,label:v,labelTooltip:S,labels:C,tooltips:b,infoLabels:w},P){let[R,k]=ob(a??[r,i]),T=c!==void 0?c:R,D=FT(null),[B,E]=ob(null),L=Fd(U=>{let V=Math.round((U-r)/l)*l+r;return Math.min(i,Math.max(r,V))},[r,i,l]),M=(T[0]-r)/(i-r)*100,F=Math.min(100,Math.max(0,M)),I=(T[1]-r)/(i-r)*100,O=Math.min(100,Math.max(0,I)),N=Fd(U=>{let V=[L(Math.min(U[0],U[1])),L(Math.max(U[0],U[1]))];c===void 0&&k(V),p?.(V)},[L,c,p]),z=Fd(U=>{let V=D.current;if(!V)return r;let Q=V.getBoundingClientRect(),A=(U-Q.left)/Q.width;return L(r+A*(i-r))},[r,i,L]),_=U=>V=>{if(h)return;let Q=U==="min"?T[0]:T[1],A;switch(V.key){case"ArrowRight":case"ArrowUp":A=Q+l;break;case"ArrowLeft":case"ArrowDown":A=Q-l;break;case"Home":A=r;break;case"End":A=i;break;default:return}V.preventDefault();let K=U==="min"?[Math.min(A,T[1]),T[1]]:[T[0],Math.max(A,T[0])];N(K),s?.([L(K[0]),L(K[1])])},H=U=>V=>{h||(V.preventDefault(),E(U))},G=U=>{if(h)return;let V=z(U.clientX),Q=Math.abs(V-T[0]),A=Math.abs(V-T[1]);Q<A?N([V,T[1]]):N([T[0],V])},q=U=>V=>{h||(V.preventDefault(),E(U))};NT(()=>{if(!B)return;let U=K=>{let ae=z(K.clientX);N(B==="min"?[ae,T[1]]:[T[0],ae])},V=K=>{let ae=z(K.clientX),be=B==="min"?[ae,T[1]]:[T[0],ae];E(null),s?.(be)},Q=K=>{if(K.touches.length>0){let ae=z(K.touches[0].clientX);N(B==="min"?[ae,T[1]]:[T[0],ae])}},A=K=>{let ae=z(K.changedTouches[0].clientX),be=B==="min"?[ae,T[1]]:[T[0],ae];E(null),s?.(be)};return document.addEventListener("mousemove",U),document.addEventListener("mouseup",V),document.addEventListener("touchmove",Q),document.addEventListener("touchend",A),()=>{document.removeEventListener("mousemove",U),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",Q),document.removeEventListener("touchend",A)}},[B,T,z,N,s]);let $=U=>it("span",{className:"cleen-font-medium cleen-text-xs cleen-text-gray-900",children:U});return it("div",{className:lt("cleen",g),style:x,ref:P,children:Il("div",{className:lt("cleen-w-full",f?.container),style:y?.container,children:[v&&it(ee,{htmlFor:e,required:o,tooltip:S,...f?.label,...y?.label,children:v}),Il("div",{className:lt({"cleen-flex cleen-items-center cleen-gap-2":m==="inline"},f?.slider),style:y?.slider,children:[m==="inline"&&C?.minLabel!==void 0&&$(C?.minLabel),Il("div",{ref:D,className:lt("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":m==="inline"},f?.track),style:y?.track,"aria-disabled":h,onClick:G,children:[it("div",{className:lt("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-gray-200 dark:cleen-bg-black cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer"),children:it("div",{className:lt("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",f?.filledTrack),style:{left:`${F}%`,width:`${O-F}%`,...y?.filledTrack}})}),it(ue,{invertColors:!0,isOpen:B==="min"||b?.min?.isOpen||b?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...b?.shared,...b?.min,label:C?.tooltip?.(T[0])??T[0]?.toString(),className:lt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",b?.shared?.className,b?.min?.className),style:{left:`calc(${F}% - 8px)`,...b?.shared?.style,...b?.min?.style},children:it("div",{className:lt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-gray-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",f?.thumb),style:y?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":T[0],"aria-valuemin":r,"aria-valuemax":T[1],"aria-disabled":h,"aria-label":typeof v=="string"?`${v} minimum value`:"Minimum value",onMouseDown:H("min"),onTouchStart:q("min"),onKeyDown:_("min")})}),it(ue,{invertColors:!0,isOpen:B==="max"||b?.max?.isOpen||b?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...b?.shared,...b?.max,label:C?.tooltip?.(T[1])??T[1]?.toString(),className:lt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",b?.shared?.className,b?.max?.className),style:{left:`calc(${O}% - 8px)`,...b?.shared?.style,...b?.max?.style},children:it("div",{className:lt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-gray-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",f?.thumb),style:y?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":T[1],"aria-valuemin":T[0],"aria-valuemax":i,"aria-disabled":h,"aria-label":typeof v=="string"?`${v} maximum value`:"Maximum value",onMouseDown:H("max"),onTouchStart:q("max"),onKeyDown:_("max")})})]}),m==="inline"?C?.maxLabel&&$(C?.maxLabel):(C?.minLabel||C?.maxLabel)&&Il("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[C?.minLabel&&$(C?.minLabel),C?.maxLabel&&$(C?.maxLabel)]})]}),(w?.errorMessage||w?.infoMessage||w?.subtitle)&&it(Y,{...w})]})})});import{cn as Qr}from"@cleen/ui-core";import{forwardRef as MT,useRef as BT,useState as nb}from"react";import{jsx as Cr,jsxs as OT}from"react/jsx-runtime";var AT=MT(function({label:e,infoLabels:o,value:r,onChange:i,amount:l=5,gap:a,size:c,readonly:m,color:p="rgb(var(--cleen-yellow))",className:s,style:g,classNames:f,styles:x,...y},h){let[v,S]=nb(0),C=r!==void 0,b=C?r:v,[w,P]=nb(null),R=w!==null?w+1:b,k=!m,T=BT([]),D=b>0?b-1:0,B=F=>{C||S(F),i?.(F)},E=F=>{F<0||F>=l||(B(F+1),T.current[F]?.focus())},L=(F,I)=>{switch(F.key){case"ArrowRight":case"ArrowUp":F.preventDefault(),E((I+1)%l);break;case"ArrowLeft":case"ArrowDown":F.preventDefault(),E((I-1+l)%l);break;case"Home":F.preventDefault(),E(0);break;case"End":F.preventDefault(),E(l-1);break;default:break}},M=typeof e=="string"?e:"Rating";return Cr("div",{className:Qr("cleen",s),style:g,ref:h,...y,children:OT("div",{className:Qr("cleen-space-y-2",f?.container),style:x?.container,children:[e&&Cr("span",{className:Qr("cleen-font-medium cleen-text-sm cleen-text-gray-900",f?.label),style:x?.label,children:e}),Cr("div",{role:k?"radiogroup":"img","aria-label":k?M:`${M}: ${b} out of ${l}`,className:Qr("cleen-flex cleen-gap-3",f?.list),style:{...a?{gap:a}:{},...x?.list},children:Array.from({length:l},(F,I)=>{let O=Cr(So,{"aria-hidden":"true",className:Qr("cleen-size-5 cleen-text-gray-700 cleen-transition-colors",f?.star),style:{...c?{width:c,height:c}:{},...x?.star,fill:(m?b:R)>I?p:"transparent"}});return k?Cr("button",{type:"button",ref:N=>{T.current[I]=N},role:"radio","aria-checked":b===I+1,"aria-label":`${I+1} ${I+1===1?"star":"stars"}`,tabIndex:I===D?0:-1,onMouseEnter:()=>P(I),onMouseLeave:()=>P(null),onClick:()=>B(I+1),onKeyDown:N=>L(N,I),className:Qr("focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary focus-visible:cleen-rounded"),children:O},I):Cr("span",{className:"cleen-cursor-default",children:O},I)})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Cr(Y,{...o})]})})});import{cn as wt}from"@cleen/ui-core";import{forwardRef as zT}from"react";import{jsx as _t,jsxs as lb}from"react/jsx-runtime";var ib=zT(({steps:n,activeStep:e=0,orientation:o="horizontal",color:r="rgb(var(--cleen-primary))",className:i,classNames:l,style:a,styles:c,...m},p)=>{let s=o==="vertical";return _t("div",{ref:p,className:wt("cleen",i),style:{...a,width:"100%"},...m,children:_t("div",{className:wt("cleen-flex cleen-w-full",s?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",l?.container),style:{width:"100%",...c?.container},children:n?.map((g,f)=>{let x=f+1<e,y=f+1===e;return lb("div",{className:wt("cleen-relative cleen-flex cleen-flex-1",s?"cleen-flex-row cleen-items-start":"cleen-flex-col cleen-items-center cleen-text-center",l?.step),style:c?.step,children:[f<n?.length-1&&_t("div",{className:wt("cleen-absolute cleen-bg-gray-200 cleen-transition-all cleen-duration-300",s?"cleen-left-3 cleen-top-7 cleen-w-[2px] cleen-h-[calc(100%-4px)]":"cleen-top-3 cleen-left-[calc(50%+14px)] cleen-h-[2px] cleen-w-[calc(100%+4px)]",x&&"cleen-bg-primary",l?.connector),style:{backgroundColor:x?r:void 0,...c?.connector}}),_t("div",{className:wt("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",x||y?"cleen-border-[2px]":"cleen-border-gray-200",l?.circle),style:{borderColor:y||x?r:void 0,backgroundColor:x?r:"transparent",...c?.circle},children:x?_t("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):_t("span",{className:wt("cleen-w-2 cleen-h-2 cleen-rounded-full",y?"cleen-bg-white":"cleen-bg-gray-200"),style:{backgroundColor:y?r:void 0}})}),lb("div",{className:wt("cleen-flex cleen-flex-col",s?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[g.title&&_t("div",{className:wt("cleen-font-medium cleen-text-sm",y?"cleen-text-primary":"cleen-text-gray-900",l?.title),style:{color:y?r:void 0,...c?.title},children:g.title}),g.subtitle&&_t("div",{className:wt("cleen-text-xs cleen-text-gray-600",l?.subtitle),style:{color:y?r:void 0,...c?.subtitle},children:g.subtitle})]})]},f)})})})});ib.displayName="Stepper";export{fb as AdvancedProgressBar,hS as AudioPlayback,IS as AudioRecorder,An as Avatar,LS as AvatarRow,FS as Breadcrumb,ne as Button,dm as Calendar,$S as CalendarDropdown,mS as CanvasButton,ie as Card,N0 as CardIcon,A0 as CardMedia,QS as Carousel,um as Checkbox,iw as CheckboxGroup,Me as CleenIcon,zP as CleenNotificationContainer,Au as Collapsible,uw as ColorPicker,vw as CreditCardInput,ut as Divider,hm as Drawer,zg as DrawerContainer,Gk as DrawerContentTitle,Vo as Dropdown,Yw as Dropzone,aS as EditableCard,Qp as EditableText,em as EditableTextArea,lI as FileCard,km as FileStackedProgressTracker,qI as FilterDrawer,Qf as FormGroup,oP as GroupSelector,zl as Icon48AlertFeatured,_l as Icon48SuccessFeatured,Wt as IconAlertCircle,Hl as IconAlertOctagon,Ul as IconAlertTriangle,Gl as IconApps,Vl as IconArchive,Wl as IconArrowBarDown,$l as IconArrowBarLeft,ql as IconArrowBarRight,Xl as IconArrowBarToDown,jl as IconArrowBarToLeft,Kl as IconArrowBarToRight,Zl as IconArrowBarToUp,Ql as IconArrowBarUp,Yl as IconArrowDown,Jl as IconArrowDownLeft,ei as IconArrowDownNarrow,ti as IconArrowDownRight,ri as IconArrowLeft,oi as IconArrowLeftNarrow,ni as IconArrowRight,li as IconArrowRightNarrow,ii as IconArrowUp,ai as IconArrowUpLeft,ci as IconArrowUpNarrow,si as IconArrowUpRight,pi as IconAttachment,mi as IconBarChart,di as IconBarChartSquare,ui as IconBell,fi as IconBold,xi as IconBookOpen,gi as IconBookmark,Ml as IconBookmarkCheck,Bl as IconBookmarkCheckFill,bi as IconBookmarkFill,hi as IconBookmarkMinus,yi as IconBookmarkX,Ci as IconBoxLines,Si as IconBoxText,Ii as IconBracketsCheck,Pi as IconBracketsEllipses,ki as IconBrickWall,Ti as IconBriefcase,Al as IconBuilding,Ri as IconCalculator,lo as IconCalendar,Li as IconCertificate,st as IconCheck,$t as IconCheckCircle,Di as IconCheckCircleBroken,Ni as IconCheckFill,Fi as IconCheckVerified,Ei as IconCheckVerifiedFill,Mi as IconChevronDown,Bi as IconChevronDownDouble,Ai as IconChevronDownLeft,Oi as IconChevronDownLeftDouble,zi as IconChevronDownRight,_i as IconChevronDownRightDouble,pt as IconChevronLeft,Hi as IconChevronLeftDouble,Xe as IconChevronRight,io as IconChevronRightDouble,Ui as IconChevronSelectorVertical,mt as IconChevronUp,Gi as IconChevronUpDouble,Vi as IconChevronUpLeft,Wi as IconChevronUpLeftDouble,$i as IconChevronUpRight,qi as IconChevronUpRightDouble,Xi as IconClick,ji as IconClock,Ki as IconClockFastForward,Zi as IconClockPlay,Qi as IconClockRewind,Yi as IconClone,Ji as IconCode,ea as IconCodeBrowser,ta as IconCodeCircle,ra as IconColors,Ol as IconColumnEdit,oa as IconCopy,na as IconCopy2,la as IconCopyCheck,ia as IconCreditCard,aa as IconCube,ca as IconCubeOutline,co as IconCursorBox,sa as IconDataflow,pa as IconDataflow2,ma as IconDataflow3,da as IconDelete,ua as IconDistributeHorizontal,fa as IconDollar,ga as IconDollarCircle,ba as IconDot,ha as IconDotFill,va as IconDotsGrid,ya as IconDotsHorizontal,Rr as IconDotsVertical,xa as IconDownload,Ca as IconEdit,Sa as IconEditable,wa as IconExpand,Ia as IconExternalLink,ka as IconExternalLink2,Ta as IconEye,Ra as IconEyeHidden,La as IconEyeHidden2,Da as IconFaceAngry,Na as IconFaceLaugh,Fa as IconFaceSmile,qt as IconFile,Ea as IconFileCheck,Ma as IconFileCsv,Ba as IconFileDownload,Aa as IconFileJson,Oa as IconFileList,so as IconFileMusic,Xt as IconFilePdf,po as IconFileSpreadsheet,mo as IconFileText,_a as IconFileUpload,Ha as IconFileXls,uo as IconFileZip,za as IconFiles,Ua as IconFilter,fo as IconFilter2,Ga as IconFlag,Va as IconFlag2,Wa as IconFlagFill,$a as IconFocus,qa as IconFolder,Xa as IconGraduationCap,ja as IconGripVertical,Ka as IconHand,Za as IconHandShield,Qa as IconHash,Ya as IconHeadsetMic,Ja as IconHeart,ec as IconHeartFill,tc as IconHouse,go as IconHouseLine,bo as IconImage,rc as IconImage2,oc as IconImageCheck,nc as IconImageOff,lc as IconImport,ic as IconInbox,ac as IconInfoCircle,cc as IconInfoHexagon,sc as IconItalic,pc as IconLayersMultiple,mc as IconLayersSingle,dc as IconLayout,uc as IconLayout2,fc as IconLayoutColumns,gc as IconLayoutCustom,bc as IconLayoutStuffed,hc as IconLayoutTile,vc as IconLifeBuoy,yc as IconLightbulb,xc as IconLightning,Cc as IconLightningFast,wc as IconLineChart,Ic as IconLineChartBar,Pc as IconLineChartBreakoutSquare,kc as IconLineChartUp,Tc as IconLines,Rc as IconLinesCheck,Lc as IconLinesPlay,Dc as IconLink,Nc as IconLink2,Fc as IconLinkOff,Ec as IconListBullet,Mc as IconListOrder,Bc as IconLock,Ac as IconLock2,Oc as IconLogIn,zc as IconLogOut,_c as IconLogOut2,Hc as IconMagicWand,Uc as IconMail,Gc as IconMapPin,Vc as IconMaximize,Wc as IconMaximize2,$c as IconMessageCircle,qc as IconMessageSquare,Xc as IconMessageSquare2,jc as IconMessageXSquare,ho as IconMicrophone,Kc as IconMinimize,Zc as IconMinimize2,Qc as IconMinusCircle,Yc as IconMobile,Jc as IconMonitor,es as IconMonitor2,ts as IconMoon,rs as IconMoonCircle,vo as IconMovie,ko as IconName,os as IconNavigationPointer,ns as IconNotificationBox,cs as IconPCSetup,ls as IconPackage,is as IconPalette,as as IconPasscodeLock,jt as IconPause,ss as IconPercentageCircle,ps as IconPerspective,ms as IconPhoneCall,yo as IconPin,Kt as IconPlay,ds as IconPlayCircle,us as IconPlus,Pt as IconPlusCircle,fs as IconPrinter,gs as IconPulse,xo as IconQuestionCircle,bs as IconQuote,hs as IconRadioButton,vs as IconRadioButtonActive,ys as IconReceipt,xs as IconReceiptCheck,Cs as IconRedo,Ss as IconRefresh,ws as IconRefresh2,Is as IconRefresh3,Ps as IconRepeat,ks as IconReplace,Ts as IconReplay,Rs as IconRestore,Ls as IconRocket,Ds as IconRoundChart,Ns as IconRoundChart2,Fs as IconRoute,Es as IconSave,Ms as IconScanDots,Co as IconScissors,Zt as IconSearch,Bs as IconSend,As as IconServer,Os as IconSettings,zs as IconSettings2,_s as IconShare,Hs as IconShieldLightning,Us as IconShieldPlus,Gs as IconShieldRemove,Vs as IconShoppingBag,Ws as IconShoppingCart,$s as IconShrink,qs as IconShuffle,Xs as IconSkipForward,js as IconSlashCircle,Ks as IconSlashOctagon,Zs as IconSocialAndroid,Qs as IconSocialApple,Ys as IconSocialGithub,Js as IconSocialGlobe,ep as IconSocialGoogle,tp as IconSocialInstagram,rp as IconSocialLinkedin,op as IconSocialMastercard,np as IconSocialReact,lp as IconSocialVisa,ip as IconSocialX,ap as IconSpeedometer,cp as IconStairs,So as IconStar,sp as IconStarFill,pp as IconStarHalf,mp as IconStars,wo as IconStop,dp as IconStrikethrough,up as IconSun,fp as IconSwap,gp as IconSwitchHorizontal,bp as IconTable,hp as IconTag,vp as IconTarget,yp as IconTarget2,xp as IconTextFormat,Cp as IconTextFormat2,Sp as IconTextHighlight,wp as IconThumbsDown,Ip as IconThumbsUp,Pp as IconThumbsUpFill,kp as IconToggle,Tp as IconTranslate,_e as IconTrash,Rp as IconTrending,Lp as IconUnderline,Dp as IconUndo,Qt as IconUploadCloud,Io as IconUser,Np as IconUserCheck,Fp as IconUserDollar,Ep as IconUserEdit,Mp as IconUserPlus,Bp as IconUserRight,Op as IconUserSquare,Ap as IconUsers,zp as IconUsersUp,_p as IconVideo,Hp as IconVideoChat,Up as IconVolume,Gp as IconVolumeDown,Vp as IconVolumeMute,Wp as IconWrench,Te as IconX,$p as IconXCircle,qp as IconXCircle2,Xp as IconXSquare,jp as IconZoomIn,Kp as IconZoomOut,Y as InfoLabels,me as Input,ee as Label,re as Loader,dP as Lookup,hP as Markdown,Gr as Menu,kP as Modal,QP as Pagination,Zm as PaginationGoToPage,Qm as PaginationPageSize,De as PillBadge,lk as Popover,Ur as ProgressBar,Cg as ProgressCircle,uk as RadioBoxGroup,Ck as RadioButtonGroup,kk as Rating,Ak as Select,Hg as Sidebar,nn as SidebarItem,Yk as Skeleton,nd as SkeletonAvatar,id as SkeletonBadge,ad as SkeletonBanner,sd as SkeletonButton,ln as SkeletonCard,bl as SkeletonCard2,pd as SkeletonCard3,dd as SkeletonCardStack,ud as SkeletonChart,fd as SkeletonContentCard,gd as SkeletonDataGrid,bd as SkeletonForm,vd as SkeletonGlowingCard,yd as SkeletonImage,xd as SkeletonInfoCard,wd as SkeletonInput,Id as SkeletonList,Td as SkeletonParagraph,Rd as SkeletonText,Ld as SkeletonVideo,Sl as SkeletonWidgetCard,kT as SkeletonWrapper,LT as Slider,ET as SliderRange,Im as StackedProgressTracker,ym as StackedProgressTrackerRow,xm as StackedProgressTrackerStatusFilter,AT as StarRating,ib as Stepper,Gm as Switch,Xo as TRACKER_STATUS_FILTER_ORDER,Hm as Tabs,Jp as TextArea,ue as Tooltip,$o as TrackerItemStatus,qo as TrackerStatusFilter,fm as parseRgbaString,BP as showNotification};
1
+ import{cn as st,useAnimateNumber as Zy}from"@cleen/ui-core";import{forwardRef as Qy,useMemo as sh}from"react";import{cn as va,usePositionClose as Wy,ZIndex as $y}from"@cleen/ui-core";import{useEffect as th,useRef as Bc,useState as nh}from"react";import{createPortal as qy}from"react-dom";import{jsx as Rc,jsxs as rh}from"react/jsx-runtime";var ue=({bg:e,label:o,color:r,closeOnClick:n=!0,hideOnMouseDown:l=!0,isOpen:a,children:c,hasArrow:s,placement:u="top",offset:p=8,className:i,classNames:f,isDisabled:h,openDelay:b=0,invertColors:I=!1,extraUpdateTriggers:v,allowNonDescendantHover:y=!0,zIndex:x=$y.TOOLTIP,style:C,styles:g,onClick:P,onMouseEnter:M,onMouseLeave:B,...w})=>{let[k,D]=nh(a??!1),[E,N]=nh(!1),R=Bc(null),F=Bc(null),T=Bc(null),{positionStyles:S,isMounted:z,optimalPosition:L}=Wy({triggerRef:F,targetRef:R,position:u,isOpen:k&&!h,offset:p,extraUpdateTriggers:v});th(()=>{D(a??!1)},[a]);let O=H=>{P?.(H),n&&D(!1)},_=(H,G)=>{if(a!==void 0)return;let q=F.current?.contains(H.target);!y&&!q||(G?(M?.(H),b&&b>0?T.current=setTimeout(()=>{D(!0)},b):D(!0)):(T.current&&(clearTimeout(T.current),T.current=null),D(!1),B?.(H)))};return th(()=>{let H=()=>{l&&N(!0)},G=()=>{N(!1)};return document.addEventListener("mousedown",H),document.addEventListener("mouseup",G),()=>{document.removeEventListener("mousedown",H),document.removeEventListener("mouseup",G)}},[]),rh("div",{className:va("cleen",i),style:C,children:[Rc("div",{ref:F,className:va("cleen-relative cleen-max-w-fit",f?.container),style:g?.container,onClick:O,onMouseEnter:H=>_(H,!0),onMouseLeave:H=>_(H,!1),...w,children:c}),o!==void 0&&k&&!h&&!E&&qy(Rc("div",{className:"cleen",children:rh("div",{ref:R,className:va("cleen-shadow cleen-px-2 cleen-py-0.5 cleen-rounded-md cleen-text-sm cleen-transition-opacity cleen-duration-200 cleen-pointer-events-none","cleen-absolute",I?"cleen-bg-primary after:cleen-border-primary cleen-text-white":"cleen-bg-white after:cleen-border-white cleen-text-primary",{"cleen-opacity-0":!z,"cleen-opacity-100":z},f?.labelContainer),style:{zIndex:x,top:`${S.top}px`,left:`${S.left}px`,...e&&{backgroundColor:e},...r&&{color:r},...g?.labelContainer},children:[o,Rc("div",{className:va(s?["cleen-absolute cleen-border-[6px] cleen-border-background",{"cleen-border-b-transparent cleen-border-x-transparent cleen-top-full cleen-drop-shadow-[0_1px_0.5px_rgba(var(--cleen-black),0.1)]":L==="top"||L==="top-left"||L==="top-right","cleen-left-[calc(50%-6px)]":L==="top"||L==="bottom","cleen-left-[6px]":L==="top-left"||L==="bottom-left","cleen-right-[6px]":L==="top-right"||L==="bottom-right","cleen-border-t-transparent cleen-border-x-transparent cleen-bottom-full cleen-drop-shadow-[0_-0.5px_0.5px_rgba(var(--cleen-black),0.1)]":L==="bottom"||L==="bottom-left"||L==="bottom-right","cleen-border-y-transparent cleen-border-r-transparent cleen-left-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[1px_0_0.5px_rgba(var(--cleen-black),0.1)]":L==="left","cleen-border-y-transparent cleen-border-l-transparent cleen-right-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[-0.25px_0_0.5px_rgba(var(--cleen-black),0.1)]":L==="right"}]:"cleen-hidden"),style:{}})]})}),document.body)]})};import{cn as An}from"@cleen/ui-core";var ho=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),fo=(e,o,r)=>{let n=Number.isFinite(o)?o:0,l=Number.isFinite(r)?r:100;return l===n?0:(e-n)/(l-n)*100};import{cn as ya}from"@cleen/ui-core";import{jsx as Dc}from"react/jsx-runtime";var Ia=({serie:e,minValue:o,maxValue:r,color:n,trackHeight:l,className:a,style:c})=>{if(e.type!=="clamp")return null;let s=typeof e.value=="number"?e.value:0,u=Number.isFinite(s)?s:o,p=ho(fo(u,o,r)),i=Math.max(2,e?.height??l*1.5),f={left:`${p}%`,top:"50%"};return e.tooltip?Dc(ue,{invertColors:!0,...e.tooltip,className:ya("cleen-absolute cleen-z-10 -cleen-translate-x-1/2 -cleen-translate-y-1/2",e.tooltip.className),style:{...f,...e.tooltip.style},classNames:{...e.tooltip.classNames,labelContainer:ya("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:Dc("div",{className:ya("cleen-rounded-full",a),style:{width:i,height:i,backgroundColor:n,...c}})}):Dc("div",{className:ya("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",a),style:{width:i,height:i,backgroundColor:n,...f,...c}})};import{jsx as ba}from"react/jsx-runtime";var ah=({serie:e,minValue:o,maxValue:r,animatedGlobal:n=o,renderAnimated:l,color:a,trackHeight:c,trackRadius:s,className:u,style:p})=>{if(e.type!=="bar")return null;let i=typeof e.start=="number"?e.start:o,f=typeof e.end=="number"?e.end:r,h=ho(fo(i,o,r)),b=ho(fo(f,o,r));b<h&&([h,b]=[b,h]);let I=Math.max(0,l?n-h:b-h);if(I<1&&!l||l&&n>=b&&I===0)return ba(Ia,{serie:{...e,type:"clamp",value:h},color:a,trackHeight:c,minValue:o,maxValue:r,className:u,style:p});let v={left:`${h}%`,top:e?.height?(c-e.height)/2:0,width:`${I}%`,height:e?.height??"100%"},y={width:"100%",height:"100%"},x={background:a,borderRadius:e?.radius??s??(e?.height??c)/2};return e.tooltip?ba(ue,{invertColors:!0,...e.tooltip,className:An("cleen-absolute",e.tooltip.className),style:{...v,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:An("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:An("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:ba("div",{className:An("cleen-relative cleen-size-full",u),style:{...x,...y,...p}})}):ba("div",{className:An("cleen-absolute cleen-pointer-events-none",u),style:{...x,...v,...p}})};import{cn as Xy}from"@cleen/ui-core";import{jsx as Ky}from"react/jsx-runtime";var lh=({serie:e,minValue:o,maxValue:r,className:n,style:l})=>{let a=0;if(e.type==="clamp"){let c=typeof e.value=="number"?e.value:0,s=Number.isFinite(c)?c:o;a=ho(fo(s,o,r))}else{let c=typeof e.start=="number"?e.start:o,s=typeof e.end=="number"?e.end:r,u=ho(fo(c,o,r)),p=ho(fo(s,o,r));a=(u+p)/2}return Ky("div",{className:Xy("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",n),style:{left:`${a}%`,...l},children:e.label})};var ch={color:"rgb(var(--cleen-gray-200))",height:8};import{jsx as qt,jsxs as ih}from"react/jsx-runtime";var Jy=Qy(function({series:o=[],track:r,renderAnimated:n,renderAnimatedDuration:l=1e3,className:a,classNames:c,style:s,styles:u,minValue:p=0,maxValue:i=100,...f},h){let b=sh(()=>({...ch,...r}),[r]),I=sh(()=>o.reduce((C,g)=>{if(g.type==="bar"){let P=typeof g.end=="number"?g.end:i,M=Math.max(p,Math.min(P,i));if(M>C)return M}return C},0),[o,p,i]),v=Zy({targetNumber:I,defaultNumber:p,duration:l,disabled:!n}),{bars:y,clamps:x}=o.reduce((C,g,P)=>{if(g==null||!g.type)return C;let M=g.color??"var(--cleen-primary)";switch(g.type){case"clamp":C.clamps.push(qt(Ia,{serie:g,color:M,trackHeight:b.height,minValue:p,maxValue:i,className:st(c?.clamp,g.className),style:{...u?.clamp,...g.style}},`clamp-${P}`));break;case"bar":C.bars.push(qt(ah,{serie:g,color:M,trackHeight:b.height,trackRadius:b.radius,minValue:p,maxValue:i,renderAnimated:n,animatedGlobal:v,className:st(c?.bar,g.className),style:{...u?.bar,...g.style}},`bar-${P}`));break;default:break}return C},{clamps:[],bars:[]});return qt("div",{className:st("cleen",a),style:s,ref:h,...f,children:ih("div",{className:st("cleen-relative cleen-w-full",c?.container),style:u?.container,children:[ih("div",{className:st("cleen-relative cleen-size-full",c?.trackWrapper),style:u?.trackWrapper,children:[qt("div",{className:st("cleen-relative cleen-w-full",c?.track),style:{height:b.height,backgroundColor:b.color,borderRadius:b.radius??b.height/2,...u?.track},children:y}),x]}),o.some(C=>!!C.label)&&qt("div",{"aria-hidden":!0,className:st("cleen-relative cleen-mt-2 cleen-h-5",c?.labels),style:u?.labels,children:o.map((C,g)=>!C||!C.type||!C.label?null:qt(lh,{serie:C,minValue:p,maxValue:i,className:c?.label,style:u?.label},`label-${g}`))})]})})});import{cn as Lc}from"@cleen/ui-core";import{jsx as Tc}from"react/jsx-runtime";var Yy={xs:"cleen-size-4",sm:"cleen-size-5",md:"cleen-size-[30px] cleen-border-2",lg:"cleen-size-10 cleen-border-2",xl:"cleen-size-[50px] cleen-border-4"},jy={slow:1.3,normal:.65,fast:.4},te=({isFullscreen:e,size:o="xs",stroke:r,speed:n="normal",className:l,classNames:a,style:c,styles:s,color:u,...p})=>Tc("div",{className:Lc("cleen",l),style:c,children:Tc("div",{className:Lc("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},a?.container),style:s?.container,...p,children:Tc("span",{className:Lc("cleen-border cleen-rounded-full cleen-border-t-primary cleen-border-x-primary cleen-border-b-transparent cleen-animate-[spin_0.65s_linear_infinite]",typeof o=="string"&&Yy[o],a?.loader),style:{...u&&{borderInlineColor:u,borderTopColor:u},...typeof o=="number"&&{width:o,height:o},...typeof r=="number"&&{borderWidth:r},animationDuration:`${typeof n=="number"?n:jy[n]}s`,...s?.loader}})})});import{cn as Nc,useWidthDynamicResize as eI}from"@cleen/ui-core";import{forwardRef as oI,useImperativeHandle as tI,useRef as nI}from"react";var ph={borderless:"cleen-flex cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-gray-700 cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-100 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary/60","borderless-blue":"cleen-flex cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-primary/70 cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary/10 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary/60","borderless-success":"cleen-flex cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-success cleen-transition-colors cleen-duration-200 hover:cleen-bg-success/10 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-success/60","borderless-error":"cleen-flex cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-error/70 cleen-transition-colors cleen-duration-200 hover:cleen-bg-error/10 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-error/60",group:"cleen-flex cleen-border cleen-border-gray-300 cleen-py-2 cleen-px-4 cleen-gap-1 cleen-font-semibold cleen-leading-6 cleen-items-center cleen-text-black cleen-transition-colors cleen-duration-200 focus:cleen-bg-gray-50 focus-visible:cleen-outline-none hover:cleen-bg-gray-100",secondary:"cleen-flex cleen-border cleen-border-gray-300 cleen-text-gray-700 cleen-bg-white cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-100 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary/60","secondary-blue":"cleen-flex cleen-border cleen-border-primary/60 cleen-text-primary cleen-bg-white cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary/60 hover:cleen-bg-primary/10","secondary-success":"cleen-flex cleen-border cleen-border-success/60 cleen-text-success cleen-bg-white cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-success/60 hover:cleen-bg-success/10","secondary-error":"cleen-flex cleen-border cleen-border-error/60 cleen-text-error cleen-bg-white cleen-py-2 cleen-px-4 cleen-gap-1 cleen-rounded-lg cleen-font-semibold cleen-leading-6 cleen-items-center cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-error/60 hover:cleen-bg-error/10",primary:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-primary/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",disable:"cleen-flex cleen-justify-center cleen-rounded-md cleen-bg-gray-200 cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-border cleen-border-gray-300 cleen-text-gray-500 cleen-shadow-sm cleen-cursor-default",error:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-error/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-error focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",success:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-success/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-success focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",warning:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-warning/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-warning focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",black:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-black cleen-transition-colors cleen-duration-200 hover:cleen-bg-black/80 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-black/60",purple:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-purple/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-purple/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",indigo:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-white cleen-shadow-sm cleen-bg-indigo/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-indigo/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",yellow:"cleen-flex cleen-justify-center cleen-rounded-md cleen-py-2 cleen-px-4 cleen-font-semibold cleen-leading-6 cleen-text-black dark:cleen-text-white cleen-shadow-sm cleen-bg-yellow/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-yellow/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60"},dh={primary:"rgb(var(--cleen-white))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))","secondary-success":"rgb(var(--cleen-success))","secondary-error":"rgb(var(--cleen-error))",error:"rgb(var(--cleen-white))",success:"rgb(var(--cleen-white))",warning:"rgb(var(--cleen-white))",black:"rgb(var(--cleen-white))",purple:"rgb(var(--cleen-white))",indigo:"rgb(var(--cleen-white))",yellow:"rgb(var(--cleen-white))"};import{jsx as mh,jsxs as rI}from"react/jsx-runtime";var re=oI(function({type:o="button",label:r,onClick:n,className:l,classNames:a,style:c,styles:s,disabled:u=!1,leftIcon:p,rightIcon:i,loaderColor:f,isLoading:h=!1,variant:b="primary",fullWidth:I=!1,children:v,...y},x){let C=nI(null);return tI(x,()=>C.current),eI({ref:C,skip:I},[h,p,i,I]),mh("div",{className:Nc("cleen",l),style:c,children:rI("button",{type:o,ref:C,className:Nc("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-text-sm cleen-text-nowrap cleen-transition-[width] cleen-duration-150 cleen-ease-in-out cleen-cursor-pointer",ph[b],{"cleen-w-full cleen-flex-1":I,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":u||h},a?.container),style:s?.container,disabled:h||u,onClick:n,...y,children:[h&&mh(te,{size:"xs",color:f||dh[b],className:Nc("cleen-mr-1.5 cleen-w-fit",a?.loaderContainer),style:s?.loaderContainer,classNames:{loader:a?.loader},styles:{loader:s?.loader}}),p||null,r||v,i||null]})})});var uh={borderless:"cleen-font-semibold cleen-text-gray-700 cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-100","borderless-blue":"cleen-font-semibold cleen-text-primary/70 cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary/10","borderless-success":"cleen-font-semibold cleen-text-success cleen-transition-colors cleen-duration-200 hover:cleen-bg-success/10","borderless-error":"cleen-font-semibold cleen-text-error/70 cleen-transition-colors cleen-duration-200 hover:cleen-bg-error/10",group:"cleen-border-gray-300 cleen-font-semibold cleen-text-black cleen-transition-colors cleen-duration-200 focus:cleen-bg-gray-50 focus-visible:cleen-outline-none hover:cleen-bg-gray-100",secondary:"cleen-border-gray-300 cleen-text-gray-700 cleen-bg-white cleen-font-semibold cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-100 focus-visible:cleen-outline-none","secondary-blue":"cleen-border-primary/60 cleen-text-primary cleen-bg-white cleen-font-semibold cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none hover:cleen-bg-primary/10","secondary-success":"cleen-border-success/60 cleen-text-success cleen-bg-white cleen-font-semibold cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none hover:cleen-bg-success/10","secondary-error":"cleen-border-error/60 cleen-text-error cleen-bg-white cleen-font-semibold cleen-transition-colors cleen-duration-200 focus-visible:cleen-outline-none hover:cleen-bg-error/10",primary:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-primary/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",disable:"cleen-bg-gray-200 cleen-font-semibold cleen-border-gray-300 cleen-text-gray-500 cleen-shadow-sm cleen-cursor-default",error:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-error/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-error focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",success:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-success/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-success focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",warning:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-warning/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-warning focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",black:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-black cleen-transition-colors cleen-duration-200 hover:cleen-bg-black/80 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",purple:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-purple/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-purple/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",indigo:"cleen-font-semibold cleen-text-white cleen-shadow-sm cleen-bg-indigo/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-indigo/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60",yellow:"cleen-font-semibold cleen-text-black dark:cleen-text-white cleen-shadow-sm cleen-bg-yellow/80 cleen-transition-colors cleen-duration-200 hover:cleen-bg-yellow/60 focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-offset-2 focus-visible:cleen-outline-indigo/60"},hh={primary:"rgb(var(--cleen-white))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))","secondary-success":"rgb(var(--cleen-success))","secondary-error":"rgb(var(--cleen-error))",error:"rgb(var(--cleen-white))",success:"rgb(var(--cleen-white))",warning:"rgb(var(--cleen-white))",black:"rgb(var(--cleen-white))",purple:"rgb(var(--cleen-white))",indigo:"rgb(var(--cleen-white))"};import{cn as Eo,ColorHelpers as gI}from"@cleen/ui-core";function Xt(e,o,r){return Math.min(Math.max(e,r),o)}var Fc=class extends Error{constructor(o){super(`Failed to parse color: "${o}"`)}},zn=Fc;function aI(e){if(typeof e!="string")throw new zn(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let o=e.trim();o=uI.test(e)?sI(e):e;let r=iI.exec(o);if(r){let c=Array.from(r).slice(1);return[...c.slice(0,3).map(s=>parseInt(On(s,2),16)),parseInt(On(c[3]||"f",2),16)/255]}let n=pI.exec(o);if(n){let c=Array.from(n).slice(1);return[...c.slice(0,3).map(s=>parseInt(s,16)),parseInt(c[3]||"ff",16)/255]}let l=dI.exec(o);if(l){let c=Array.from(l).slice(1);return[...c.slice(0,3).map(s=>parseInt(s,10)),parseFloat(c[3]||"1")]}let a=mI.exec(o);if(a){let[c,s,u,p]=Array.from(a).slice(1).map(parseFloat);if(Xt(0,100,s)!==s)throw new zn(e);if(Xt(0,100,u)!==u)throw new zn(e);return[...hI(c,s,u),Number.isNaN(p)?1:p]}throw new zn(e)}function lI(e){let o=5381,r=e.length;for(;r;)o=o*33^e.charCodeAt(--r);return(o>>>0)%2341}var fh=e=>parseInt(e.replace(/_/g,""),36),cI="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,o)=>{let r=fh(o.substring(0,3)),n=fh(o.substring(3)).toString(16),l="";for(let a=0;a<6-n.length;a++)l+="0";return e[r]=`${l}${n}`,e},{});function sI(e){let o=e.toLowerCase().trim(),r=cI[lI(o)];if(!r)throw new zn(e);return`#${r}`}var On=(e,o)=>Array.from(Array(o)).map(()=>e).join(""),iI=new RegExp(`^#${On("([a-f0-9])",3)}([a-f0-9])?$`,"i"),pI=new RegExp(`^#${On("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),dI=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${On(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),mI=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,uI=/^[a-z]+$/i,gh=e=>Math.round(e*255),hI=(e,o,r)=>{let n=r/100;if(o===0)return[n,n,n].map(gh);let l=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*(o/100),c=a*(1-Math.abs(l%2-1)),s=0,u=0,p=0;l>=0&&l<1?(s=a,u=c):l>=1&&l<2?(s=c,u=a):l>=2&&l<3?(u=a,p=c):l>=3&&l<4?(u=c,p=a):l>=4&&l<5?(s=c,p=a):l>=5&&l<6&&(s=a,p=c);let i=n-a/2,f=s+i,h=u+i,b=p+i;return[f,h,b].map(gh)};function fI(e,o,r,n){return`rgba(${Xt(0,255,e).toFixed()}, ${Xt(0,255,o).toFixed()}, ${Xt(0,255,r).toFixed()}, ${parseFloat(Xt(0,1,n).toFixed(3))})`}function _n(e,o){let[r,n,l,a]=aI(e);return fI(r,n,l,a-o)}import{forwardRef as vI,useMemo as yI}from"react";import{jsx as Kt,jsxs as vh}from"react/jsx-runtime";var le=vI(function({header:o,footer:r,color:n,isGlass:l=!1,hoverable:a=!1,p:c,gap:s,radius:u=8,children:p,className:i,classNames:f,style:h,styles:b,...I},v){let{cardColor:y,backgroundColor:x,borderColor:C}=yI(()=>{let g=gI.getComputedColor(n);return g?{cardColor:g,backgroundColor:_n(g,.9),borderColor:_n(g,.8)}:{cardColor:g}},[n]);return Kt("div",{className:Eo("cleen",i),style:h,ref:v,...I,children:vh("div",{className:Eo("cleen-bg-background cleen-pt-6 cleen-border cleen-border-gray-200 cleen-flex cleen-flex-col cleen-gap-6 cleen-flex-grow cleen-transition-all cleen-duration-200",a&&"hover:cleen-border-gray-300 hover:cleen-shadow-md",r?.content?"cleen-pb-3":"cleen-pb-6",f?.container),style:{...y&&{backgroundColor:x,borderColor:C,color:y},...l&&{backgroundImage:`linear-gradient(to right, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 5%),
2
+ linear-gradient(to bottom, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 10%)`},...c!==void 0&&{paddingBlock:c},...s!==void 0&&{gap:s},borderRadius:u,...b?.container},children:[(o?.content||o?.title)&&vh("div",{className:Eo("cleen-px-6",f?.header?.content),style:{...y&&{color:y},...c!==void 0&&{paddingInline:c},...b?.header?.content},children:[o?.title&&Kt("div",{className:Eo("cleen-text-xl cleen-font-bold cleen-text-gray-900",f?.header?.title),style:{...y&&{color:y},...b?.header?.title},children:o?.title}),o?.content]}),(o?.content||o?.title)&&o?.hasDivider&&Kt("hr",{className:Eo("cleen-text-gray-200",f?.header?.divider),style:{...y&&{color:C},...b?.header?.divider}}),p&&Kt("div",{className:Eo("cleen-px-6",f?.childrenContainer),style:{...c!==void 0&&{paddingInline:c},...b?.childrenContainer},children:p}),r?.content&&r?.hasDivider&&Kt("hr",{className:Eo("cleen-text-gray-200",f?.footer?.divider),style:{...y&&{color:C},...b?.footer?.divider}}),r?.content&&Kt("div",{className:Eo("cleen-px-6 -cleen-mt-3 cleen-text-black",f?.footer?.content),style:{...y&&{color:y},...c!==void 0&&{paddingInline:c},...b?.footer?.content},children:r.content})]})})});import{jsx as II}from"react/jsx-runtime";function t({size:e=24,width:o,height:r,strokeWidth:n=1.5,isFilled:l=!1,children:a,...c}){return delete c.color1,delete c.color2,II("svg",{xmlns:"http://www.w3.org/2000/svg",width:o??e,height:r??e,viewBox:"0 0 24 24",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:l?0:n,strokeLinecap:"round",strokeLinejoin:"round",...c,children:a})}import{jsx as yh,jsxs as bI}from"react/jsx-runtime";var Ec=e=>bI(t,{...e,children:[yh("path",{d:"M9 10.5l2 2l4 -4"}),yh("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as Ih}from"react/jsx-runtime";var Ac=e=>Ih(t,{isFilled:!0,...e,children:Ih("path",{d:"M14 2a5 5 0 0 1 5 5v14a1 1 0 0 1 -1.555 .832l-5.445 -3.63l-5.444 3.63a1 1 0 0 1 -1.55 -.72l-.006 -.112v-14a5 5 0 0 1 5 -5h4zM15.707 7.293a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"})});import{jsx as zc,jsxs as CI}from"react/jsx-runtime";var Oc=e=>CI(t,{...e,children:[zc("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),zc("path",{d:"M16 19h6"}),zc("path",{d:"M19 16v6"})]});import{jsx as Ao,jsxs as xI}from"react/jsx-runtime";var _c=e=>xI(t,{...e,children:[Ao("path",{d:"M3 21l18 0"}),Ao("path",{d:"M9 8l1 0"}),Ao("path",{d:"M9 12l1 0"}),Ao("path",{d:"M9 16l1 0"}),Ao("path",{d:"M14 8l1 0"}),Ao("path",{d:"M14 12l1 0"}),Ao("path",{d:"M14 16l1 0"}),Ao("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as bh,jsxs as PI}from"react/jsx-runtime";var Hc=e=>PI(t,{...e,children:[bh("path",{d:"M10 4h4a1 1 0 0 1 1 1v10M12 20h-2a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1"}),bh("path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39"})]});import{jsx as Ca,jsxs as SI}from"react/jsx-runtime";var Uc=e=>SI(t,{...e,children:[Ca("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Ca("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Ca("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),Ca("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as Hn,jsxs as MI}from"react/jsx-runtime";var Gc=e=>MI(t,{viewBox:"0 0 48 48",...e,children:[Hn("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Hn("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Hn("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Hn("path",{d:"M24 18v8"}),Hn("path",{d:"M24 30h.01"})]});import{jsx as xa,jsxs as wI}from"react/jsx-runtime";var Vc=e=>wI(t,{viewBox:"0 0 48 48",...e,children:[xa("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),xa("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),xa("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),xa("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as Wc,jsxs as kI}from"react/jsx-runtime";var it=e=>kI(t,{...e,children:[Wc("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Wc("path",{d:"M12 8v4"}),Wc("path",{d:"M12 16h.01"})]});import{jsx as Ch}from"react/jsx-runtime";var $c=e=>Ch(t,{isFilled:!0,...e,children:Ch("path",{d:"M14.897 1a4 4 0 0 1 2.664 1.016l.165 .156l4.1 4.1a4 4 0 0 1 1.168 2.605l.006 .227v5.794a4 4 0 0 1 -1.016 2.664l-.156 .165l-4.1 4.1a4 4 0 0 1 -2.603 1.168l-.227 .006h-5.795a3.999 3.999 0 0 1 -2.664 -1.017l-.165 -.156l-4.1 -4.1a4 4 0 0 1 -1.168 -2.604l-.006 -.227v-5.794a4 4 0 0 1 1.016 -2.664l.156 -.165l4.1 -4.1a4 4 0 0 1 2.605 -1.168l.227 -.006h5.793zm-2.887 14l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z"})});import{jsx as qc,jsxs as BI}from"react/jsx-runtime";var Xc=e=>BI(t,{...e,children:[qc("path",{d:"M12 9v4"}),qc("path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z"}),qc("path",{d:"M12 16h.01"})]});import{jsx as Un,jsxs as RI}from"react/jsx-runtime";var Kc=e=>RI(t,{...e,children:[Un("path",{d:"M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),Un("path",{d:"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),Un("path",{d:"M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),Un("path",{d:"M14 7l6 0"}),Un("path",{d:"M17 4l0 6"})]});import{jsx as Zc,jsxs as DI}from"react/jsx-runtime";var Qc=e=>DI(t,{...e,children:[Zc("path",{d:"M3 4m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"}),Zc("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),Zc("path",{d:"M10 12l4 0"})]});import{jsx as Pa,jsxs as LI}from"react/jsx-runtime";var Jc=e=>LI(t,{...e,children:[Pa("path",{d:"M12 20l0 -10"}),Pa("path",{d:"M12 20l4 -4"}),Pa("path",{d:"M12 20l-4 -4"}),Pa("path",{d:"M4 4l16 0"})]});import{jsx as Sa,jsxs as TI}from"react/jsx-runtime";var Yc=e=>TI(t,{...e,children:[Sa("path",{d:"M4 12l10 0"}),Sa("path",{d:"M4 12l4 4"}),Sa("path",{d:"M4 12l4 -4"}),Sa("path",{d:"M20 4l0 16"})]});import{jsx as Ma,jsxs as NI}from"react/jsx-runtime";var jc=e=>NI(t,{...e,children:[Ma("path",{d:"M20 12l-10 0"}),Ma("path",{d:"M20 12l-4 4"}),Ma("path",{d:"M20 12l-4 -4"}),Ma("path",{d:"M4 4l0 16"})]});import{jsx as wa,jsxs as FI}from"react/jsx-runtime";var es=e=>FI(t,{...e,children:[wa("path",{d:"M4 20l16 0"}),wa("path",{d:"M12 14l0 -10"}),wa("path",{d:"M12 14l4 -4"}),wa("path",{d:"M12 14l-4 -4"})]});import{jsx as ka,jsxs as EI}from"react/jsx-runtime";var os=e=>EI(t,{...e,children:[ka("path",{d:"M10 12l10 0"}),ka("path",{d:"M10 12l4 4"}),ka("path",{d:"M10 12l4 -4"}),ka("path",{d:"M4 4l0 16"})]});import{jsx as Ba,jsxs as AI}from"react/jsx-runtime";var ts=e=>AI(t,{...e,children:[Ba("path",{d:"M14 12l-10 0"}),Ba("path",{d:"M14 12l-4 4"}),Ba("path",{d:"M14 12l-4 -4"}),Ba("path",{d:"M20 4l0 16"})]});import{jsx as Ra,jsxs as zI}from"react/jsx-runtime";var ns=e=>zI(t,{...e,children:[Ra("path",{d:"M12 10l0 10"}),Ra("path",{d:"M12 10l4 4"}),Ra("path",{d:"M12 10l-4 4"}),Ra("path",{d:"M4 4l16 0"})]});import{jsx as Da,jsxs as OI}from"react/jsx-runtime";var rs=e=>OI(t,{...e,children:[Da("path",{d:"M12 4l0 10"}),Da("path",{d:"M12 4l4 4"}),Da("path",{d:"M12 4l-4 4"}),Da("path",{d:"M4 20l16 0"})]});import{jsx as as,jsxs as _I}from"react/jsx-runtime";var ls=e=>_I(t,{...e,children:[as("path",{d:"M12 5l0 14"}),as("path",{d:"M18 13l-6 6"}),as("path",{d:"M6 13l6 6"})]});import{jsx as xh,jsxs as HI}from"react/jsx-runtime";var cs=e=>HI(t,{...e,children:[xh("path",{d:"M17 7l-10 10"}),xh("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as ss,jsxs as UI}from"react/jsx-runtime";var is=e=>UI(t,{...e,children:[ss("path",{d:"M12 5l0 14"}),ss("path",{d:"M16 15l-4 4"}),ss("path",{d:"M8 15l4 4"})]});import{jsx as Ph,jsxs as GI}from"react/jsx-runtime";var ps=e=>GI(t,{...e,children:[Ph("path",{d:"M7 7l10 10"}),Ph("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as ds,jsxs as VI}from"react/jsx-runtime";var ms=e=>VI(t,{...e,children:[ds("path",{d:"M5 12l14 0"}),ds("path",{d:"M5 12l6 6"}),ds("path",{d:"M5 12l6 -6"})]});import{jsx as us,jsxs as WI}from"react/jsx-runtime";var hs=e=>WI(t,{...e,children:[us("path",{d:"M5 12l14 0"}),us("path",{d:"M5 12l4 4"}),us("path",{d:"M5 12l4 -4"})]});import{jsx as fs,jsxs as $I}from"react/jsx-runtime";var gs=e=>$I(t,{...e,children:[fs("path",{d:"M5 12l14 0"}),fs("path",{d:"M13 18l6 -6"}),fs("path",{d:"M13 6l6 6"})]});import{jsx as vs,jsxs as qI}from"react/jsx-runtime";var ys=e=>qI(t,{...e,children:[vs("path",{d:"M5 12l14 0"}),vs("path",{d:"M15 16l4 -4"}),vs("path",{d:"M15 8l4 4"})]});import{jsx as Is,jsxs as XI}from"react/jsx-runtime";var bs=e=>XI(t,{...e,children:[Is("path",{d:"M12 5l0 14"}),Is("path",{d:"M18 11l-6 -6"}),Is("path",{d:"M6 11l6 -6"})]});import{jsx as Sh,jsxs as KI}from"react/jsx-runtime";var Cs=e=>KI(t,{...e,children:[Sh("path",{d:"M7 7l10 10"}),Sh("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as xs,jsxs as ZI}from"react/jsx-runtime";var Ps=e=>ZI(t,{...e,children:[xs("path",{d:"M12 5l0 14"}),xs("path",{d:"M16 9l-4 -4"}),xs("path",{d:"M8 9l4 -4"})]});import{jsx as Mh,jsxs as QI}from"react/jsx-runtime";var Ss=e=>QI(t,{...e,children:[Mh("path",{d:"M17 7l-10 10"}),Mh("path",{d:"M8 7l9 0l0 9"})]});import{jsx as wh}from"react/jsx-runtime";var Ms=e=>wh(t,{...e,children:wh("path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5"})});import{jsx as La,jsxs as JI}from"react/jsx-runtime";var ws=e=>JI(t,{...e,children:[La("path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),La("path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),La("path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),La("path",{d:"M4 20h14"})]});import{jsx as Gn,jsxs as YI}from"react/jsx-runtime";var ks=e=>YI(t,{...e,children:[Gn("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),Gn("path",{d:"M6 14.5a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}),Gn("path",{d:"M14 11a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v6.5a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}),Gn("path",{d:"M10 7a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v10.5a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}),Gn("path",{d:"M7 18.5h10"})]});import{jsx as kh,jsxs as jI}from"react/jsx-runtime";var Bs=e=>jI(t,{...e,children:[kh("path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6"}),kh("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as Bh,jsxs as eb}from"react/jsx-runtime";var Rs=e=>eb(t,{...e,children:[Bh("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),Bh("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as Rh}from"react/jsx-runtime";var Ds=e=>Rh(t,{...e,children:Rh("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as Dh}from"react/jsx-runtime";var Ls=e=>Dh(t,{isFilled:!0,...e,children:Dh("path",{d:"M14 2a5 5 0 0 1 5 5v14a1 1 0 0 1 -1.555 .832l-5.445 -3.63l-5.444 3.63a1 1 0 0 1 -1.55 -.72l-.006 -.112v-14a5 5 0 0 1 5 -5h4z"})});import{jsx as Lh,jsxs as ob}from"react/jsx-runtime";var Ts=e=>ob(t,{...e,children:[Lh("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),Lh("path",{d:"M16 19h6"})]});import{jsx as Ns,jsxs as tb}from"react/jsx-runtime";var Fs=e=>tb(t,{...e,children:[Ns("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),Ns("path",{d:"M20.5 21.5l-5 -5"}),Ns("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as Vn,jsxs as nb}from"react/jsx-runtime";var Es=e=>nb(t,{...e,children:[Vn("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Vn("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Vn("path",{d:"M3 6l0 13"}),Vn("path",{d:"M12 6l0 13"}),Vn("path",{d:"M21 6l0 13"})]});import{jsx as Ta,jsxs as rb}from"react/jsx-runtime";var As=e=>rb(t,{...e,children:[Ta("path",{d:"M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"}),Ta("path",{d:"M9 13h-2"}),Ta("path",{d:"M13 10h-6"}),Ta("path",{d:"M11 7h-4"})]});import{jsx as zs,jsxs as ab}from"react/jsx-runtime";var Os=e=>ab(t,{...e,children:[zs("path",{d:"M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"}),zs("path",{d:"M10 8h4"}),zs("path",{d:"M12 8v8"})]});import{jsx as _s,jsxs as lb}from"react/jsx-runtime";var Hs=e=>lb(t,{...e,children:[_s("path",{d:"M9 12l2 2l4 -4"}),_s("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),_s("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Wn,jsxs as cb}from"react/jsx-runtime";var Us=e=>cb(t,{...e,children:[Wn("path",{d:"M15 12h.01"}),Wn("path",{d:"M12 12h.01"}),Wn("path",{d:"M9 12h.01"}),Wn("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Wn("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as go,jsxs as sb}from"react/jsx-runtime";var Gs=e=>sb(t,{...e,children:[go("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),go("path",{d:"M4 8h16"}),go("path",{d:"M20 12h-16"}),go("path",{d:"M4 16h16"}),go("path",{d:"M9 4v4"}),go("path",{d:"M14 8v4"}),go("path",{d:"M8 12v4"}),go("path",{d:"M16 12v4"}),go("path",{d:"M11 16v4"})]});import{jsx as Na,jsxs as ib}from"react/jsx-runtime";var Vs=e=>ib(t,{...e,children:[Na("path",{d:"M3 7m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"}),Na("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),Na("path",{d:"M12 12l0 .01"}),Na("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as zo,jsxs as pb}from"react/jsx-runtime";var Ws=e=>pb(t,{...e,children:[zo("path",{d:"M4 3m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),zo("path",{d:"M8 7m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v1a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"}),zo("path",{d:"M8 14l0 .01"}),zo("path",{d:"M12 14l0 .01"}),zo("path",{d:"M16 14l0 .01"}),zo("path",{d:"M8 17l0 .01"}),zo("path",{d:"M12 17l0 .01"}),zo("path",{d:"M16 17l0 .01"})]});import{jsx as Zt,jsxs as db}from"react/jsx-runtime";var $n=e=>db(t,{...e,children:[Zt("path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z"}),Zt("path",{d:"M16 3v4"}),Zt("path",{d:"M8 3v4"}),Zt("path",{d:"M4 11h16"}),Zt("path",{d:"M11 15h1"}),Zt("path",{d:"M12 15v3"})]});import{jsx as Qt,jsxs as mb}from"react/jsx-runtime";var $s=e=>mb(t,{...e,children:[Qt("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Qt("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),Qt("path",{d:"M10 19h-5a2 2 0 0 1 -2 -2v-10c0 -1.1 .9 -2 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -1 1.73"}),Qt("path",{d:"M6 9l12 0"}),Qt("path",{d:"M6 12l3 0"}),Qt("path",{d:"M6 15l2 0"})]});import{jsx as Th}from"react/jsx-runtime";var vo=e=>Th(t,{...e,children:Th("path",{d:"M5 12l5 5l10 -10"})});import{jsx as Nh,jsxs as ub}from"react/jsx-runtime";var pt=e=>ub(t,{...e,children:[Nh("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Nh("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as Fh,jsxs as hb}from"react/jsx-runtime";var qs=e=>hb(t,{...e,children:[Fh("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),Fh("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as Eh}from"react/jsx-runtime";var Xs=e=>Eh(t,{isFilled:!0,...e,children:Eh("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"})});import{jsx as Ah,jsxs as fb}from"react/jsx-runtime";var Ks=e=>fb(t,{...e,children:[Ah("path",{d:"M5 7.2a2.2 2.2 0 0 1 2.2 -2.2h1a2.2 2.2 0 0 0 1.55 -.64l.7 -.7a2.2 2.2 0 0 1 3.12 0l.7 .7c.412 .41 .97 .64 1.55 .64h1a2.2 2.2 0 0 1 2.2 2.2v1c0 .58 .23 1.138 .64 1.55l.7 .7a2.2 2.2 0 0 1 0 3.12l-.7 .7a2.2 2.2 0 0 0 -.64 1.55v1a2.2 2.2 0 0 1 -2.2 2.2h-1a2.2 2.2 0 0 0 -1.55 .64l-.7 .7a2.2 2.2 0 0 1 -3.12 0l-.7 -.7a2.2 2.2 0 0 0 -1.55 -.64h-1a2.2 2.2 0 0 1 -2.2 -2.2v-1a2.2 2.2 0 0 0 -.64 -1.55l-.7 -.7a2.2 2.2 0 0 1 0 -3.12l.7 -.7a2.2 2.2 0 0 0 .64 -1.55v-1"}),Ah("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as zh}from"react/jsx-runtime";var Zs=e=>zh(t,{isFilled:!0,...e,children:zh("path",{d:"M12.01 2.011a3.2 3.2 0 0 1 2.113 .797l.154 .145l.698 .698a1.2 1.2 0 0 0 .71 .341l.135 .008h1a3.2 3.2 0 0 1 3.195 3.018l.005 .182v1c0 .27 .092 .533 .258 .743l.09 .1l.697 .698a3.2 3.2 0 0 1 .147 4.382l-.145 .154l-.698 .698a1.2 1.2 0 0 0 -.341 .71l-.008 .135v1a3.2 3.2 0 0 1 -3.018 3.195l-.182 .005h-1a1.2 1.2 0 0 0 -.743 .258l-.1 .09l-.698 .697a3.2 3.2 0 0 1 -4.382 .147l-.154 -.145l-.698 -.698a1.2 1.2 0 0 0 -.71 -.341l-.135 -.008h-1a3.2 3.2 0 0 1 -3.195 -3.018l-.005 -.182v-1a1.2 1.2 0 0 0 -.258 -.743l-.09 -.1l-.697 -.698a3.2 3.2 0 0 1 -.147 -4.382l.145 -.154l.698 -.698a1.2 1.2 0 0 0 .341 -.71l.008 -.135v-1l.005 -.182a3.2 3.2 0 0 1 3.013 -3.013l.182 -.005h1a1.2 1.2 0 0 0 .743 -.258l.1 -.09l.698 -.697a3.2 3.2 0 0 1 2.269 -.944zm3.697 7.282a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"})});import{jsx as Oh}from"react/jsx-runtime";var Qs=e=>Oh(t,{...e,children:Oh("path",{d:"M6 9l6 6l6 -6"})});import{jsx as _h,jsxs as gb}from"react/jsx-runtime";var Js=e=>gb(t,{...e,children:[_h("path",{d:"M7 7l5 5l5 -5"}),_h("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as Hh}from"react/jsx-runtime";var Ys=e=>Hh(t,{...e,children:Hh("path",{d:"M8 8v8h8"})});import{jsx as Uh,jsxs as vb}from"react/jsx-runtime";var js=e=>vb(t,{...e,children:[Uh("path",{d:"M11 5v8h8"}),Uh("path",{d:"M7 9v8h8"})]});import{jsx as Gh}from"react/jsx-runtime";var ei=e=>Gh(t,{...e,children:Gh("path",{d:"M16 8v8h-8"})});import{jsx as Vh,jsxs as yb}from"react/jsx-runtime";var oi=e=>yb(t,{...e,children:[Vh("path",{d:"M13 5v8h-8"}),Vh("path",{d:"M17 9v8h-8"})]});import{jsx as Wh}from"react/jsx-runtime";var yo=e=>Wh(t,{...e,children:Wh("path",{d:"M15 6l-6 6l6 6"})});import{jsx as $h,jsxs as Ib}from"react/jsx-runtime";var ti=e=>Ib(t,{...e,children:[$h("path",{d:"M11 7l-5 5l5 5"}),$h("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as qh}from"react/jsx-runtime";var Je=e=>qh(t,{...e,children:qh("path",{d:"M9 6l6 6l-6 6"})});import{jsx as Xh,jsxs as bb}from"react/jsx-runtime";var qn=e=>bb(t,{...e,children:[Xh("path",{d:"M7 7l5 5l-5 5"}),Xh("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as Kh,jsxs as Cb}from"react/jsx-runtime";var ni=e=>Cb(t,{...e,children:[Kh("path",{d:"M8 9l4 -4l4 4"}),Kh("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as Zh}from"react/jsx-runtime";var Io=e=>Zh(t,{...e,children:Zh("path",{d:"M6 15l6 -6l6 6"})});import{jsx as Qh,jsxs as xb}from"react/jsx-runtime";var ri=e=>xb(t,{...e,children:[Qh("path",{d:"M7 11l5 -5l5 5"}),Qh("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as Jh}from"react/jsx-runtime";var ai=e=>Jh(t,{...e,children:Jh("path",{d:"M8 16v-8h8"})});import{jsx as Yh,jsxs as Pb}from"react/jsx-runtime";var li=e=>Pb(t,{...e,children:[Yh("path",{d:"M7 15v-8h8"}),Yh("path",{d:"M11 19v-8h8"})]});import{jsx as jh}from"react/jsx-runtime";var ci=e=>jh(t,{...e,children:jh("path",{d:"M8 8h8v8"})});import{jsx as ef,jsxs as Sb}from"react/jsx-runtime";var si=e=>Sb(t,{...e,children:[ef("path",{d:"M9 7h8v8"}),ef("path",{d:"M5 11h8v8"})]});import{jsx as Jt,jsxs as Mb}from"react/jsx-runtime";var ii=e=>Mb(t,{...e,children:[Jt("path",{d:"M3 12l3 0"}),Jt("path",{d:"M12 3l0 3"}),Jt("path",{d:"M7.8 7.8l-2.2 -2.2"}),Jt("path",{d:"M16.2 7.8l2.2 -2.2"}),Jt("path",{d:"M7.8 16.2l-2.2 2.2"}),Jt("path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9"})]});import{jsx as of,jsxs as wb}from"react/jsx-runtime";var pi=e=>wb(t,{...e,children:[of("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),of("path",{d:"M12 7v5l3 3"})]});import{jsx as Fa,jsxs as kb}from"react/jsx-runtime";var di=e=>kb(t,{...e,children:[Fa("path",{d:"M12 7v5l2 2"}),Fa("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),Fa("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),Fa("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as mi,jsxs as Bb}from"react/jsx-runtime";var ui=e=>Bb(t,{...e,children:[mi("path",{d:"M12 7v5l2 2"}),mi("path",{d:"M17 22l5 -3l-5 -3z"}),mi("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as tf,jsxs as Rb}from"react/jsx-runtime";var hi=e=>Rb(t,{...e,children:[tf("path",{d:"M12 8l0 4l2 2"}),tf("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as Xn,jsxs as Db}from"react/jsx-runtime";var fi=e=>Db(t,{...e,children:[Xn("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Xn("path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667v-8.666"}),Xn("path",{d:"M11 14h6"}),Xn("path",{d:"M14 11v6"}),Xn("path",{d:"M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"})]});import{jsx as gi,jsxs as Lb}from"react/jsx-runtime";var vi=e=>Lb(t,{...e,children:[gi("path",{d:"M7 8l-4 4l4 4"}),gi("path",{d:"M17 8l4 4l-4 4"}),gi("path",{d:"M14 4l-4 16"})]});import{jsx as Yt,jsxs as Tb}from"react/jsx-runtime";var yi=e=>Tb(t,{...e,children:[Yt("path",{d:"M4 8h16"}),Yt("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Yt("path",{d:"M8 4v4"}),Yt("path",{d:"M9 12l-2 2l2 2"}),Yt("path",{d:"M15 12l2 2l-2 2"}),Yt("path",{d:"M13 11l-2 6"})]});import{jsx as Ii,jsxs as Nb}from"react/jsx-runtime";var bi=e=>Nb(t,{...e,children:[Ii("path",{d:"M10 14l-2 -2l2 -2"}),Ii("path",{d:"M14 10l2 2l-2 2"}),Ii("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Ci,jsxs as Fb}from"react/jsx-runtime";var xi=e=>Fb(t,{...e,children:[Ci("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Ci("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Ci("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as nf,jsxs as Eb}from"react/jsx-runtime";var Pi=e=>Eb(t,{...e,children:[nf("path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z"}),nf("path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"})]});import{jsx as rf,jsxs as Ab}from"react/jsx-runtime";var Si=e=>Ab(t,{...e,children:[rf("path",{d:"M8 10a2 2 0 0 1 2 -2h9a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-9a2 2 0 0 1 -2 -2z"}),rf("path",{d:"M16 8v-3a2 2 0 0 0 -2 -2h-9a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h3"})]});import{jsx as Mi,jsxs as zb}from"react/jsx-runtime";var wi=e=>zb(t,{...e,children:[Mi("path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z"}),Mi("path",{d:"M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"}),Mi("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as Ea,jsxs as Ob}from"react/jsx-runtime";var ki=e=>Ob(t,{...e,children:[Ea("path",{d:"M3 5m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"}),Ea("path",{d:"M3 10l18 0"}),Ea("path",{d:"M7 15l.01 0"}),Ea("path",{d:"M11 15l2 0"})]});import{jsx as Aa,jsxs as _b}from"react/jsx-runtime";var Bi=e=>_b(t,{...e,children:[Aa("path",{d:"M21 16.008v-8.018a1.98 1.98 0 0 0 -1 -1.717l-7 -4.008a2.016 2.016 0 0 0 -2 0l-7 4.008c-.619 .355 -1 1.01 -1 1.718v8.018c0 .709 .381 1.363 1 1.717l7 4.008a2.016 2.016 0 0 0 2 0l7 -4.008c.619 -.355 1 -1.01 1 -1.718z"}),Aa("path",{d:"M12 22v-10"}),Aa("path",{d:"M12 12l8.73 -5.04"}),Aa("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as He,jsxs as Hb}from"react/jsx-runtime";var Ri=e=>Hb(t,{...e,children:[He("path",{d:"M6 17.6l-2 -1.1v-2.5"}),He("path",{d:"M4 10v-2.5l2 -1.1"}),He("path",{d:"M10 4.1l2 -1.1l2 1.1"}),He("path",{d:"M18 6.4l2 1.1v2.5"}),He("path",{d:"M20 14v2.5l-2 1.12"}),He("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),He("path",{d:"M12 12l2 -1.1"}),He("path",{d:"M18 8.6l2 -1.1"}),He("path",{d:"M12 12l0 2.5"}),He("path",{d:"M12 18.5l0 2.5"}),He("path",{d:"M12 12l-2 -1.12"}),He("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as af,jsxs as Ub}from"react/jsx-runtime";var Kn=e=>Ub(t,{...e,children:[af("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v5.5M10.5 20h-5.5a2 2 0 0 1 -2 -2v-13"}),af("path",{d:"M18 17l2.822 -1.101c.8125 -.317 .769 -1.481 -.065 -1.7365l-7.1595 -2.191c-.705 -.215 -1.365 .444 -1.149 1.149l2.191 7.159c.255 .834 1.42 .877 1.7365 .065l1.101 -2.822a.92 .92 0 0 1 .5225 -.5225"})]});import{jsx as dt,jsxs as Gb}from"react/jsx-runtime";var Di=e=>Gb(t,{...e,children:[dt("path",{d:"M5 2h5v4h-5z"}),dt("path",{d:"M15 10h5v4h-5z"}),dt("path",{d:"M5 18h5v4h-5z"}),dt("path",{d:"M5 10h5v4h-5z"}),dt("path",{d:"M10 12h5"}),dt("path",{d:"M7.5 6v4"}),dt("path",{d:"M7.5 14v4"})]});import{jsx as Ue,jsxs as Vb}from"react/jsx-runtime";var Li=e=>Vb(t,{...e,children:[Ue("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ue("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ue("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ue("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ue("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ue("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ue("path",{d:"M5 17l2 -3"}),Ue("path",{d:"M9 10l2 -3"}),Ue("path",{d:"M13 7l2 3"}),Ue("path",{d:"M17 14l2 3"}),Ue("path",{d:"M15 14l-2 3"}),Ue("path",{d:"M9 14l2 3"})]});import{jsx as Zn,jsxs as Wb}from"react/jsx-runtime";var Ti=e=>Wb(t,{...e,children:[Zn("path",{d:"M3 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"}),Zn("path",{d:"M15 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"}),Zn("path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"}),Zn("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),Zn("path",{d:"M12 9l0 3"})]});import{jsx as Ni,jsxs as $b}from"react/jsx-runtime";var Fi=e=>$b(t,{...e,children:[Ni("path",{d:"M4 4l16 0"}),Ni("path",{d:"M4 20l16 0"}),Ni("path",{d:"M6 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"})]});import{jsx as lf,jsxs as qb}from"react/jsx-runtime";var Ei=e=>qb(t,{...e,children:[lf("path",{d:"M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2"}),lf("path",{d:"M12 3v3m0 12v3"})]});import{jsx as Ai,jsxs as Xb}from"react/jsx-runtime";var zi=e=>Xb(t,{...e,children:[Ai("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Ai("path",{d:"M14.8 9a2 2 0 0 0 -1.8 -1h-2a2 2 0 1 0 0 4h2a2 2 0 1 1 0 4h-2a2 2 0 0 1 -1.8 -1"}),Ai("path",{d:"M12 7v10"})]});import{jsx as cf}from"react/jsx-runtime";var Oi=e=>cf(t,{...e,children:cf("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as sf}from"react/jsx-runtime";var _i=e=>sf(t,{isFilled:!0,...e,children:sf("path",{d:"M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z"})});import{jsx as bo,jsxs as Kb}from"react/jsx-runtime";var Hi=e=>Kb(t,{...e,children:[bo("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bo("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bo("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bo("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bo("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bo("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bo("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bo("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bo("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ui,jsxs as Zb}from"react/jsx-runtime";var Gi=e=>Zb(t,{...e,children:[Ui("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ui("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ui("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Vi,jsxs as Qb}from"react/jsx-runtime";var jt=e=>Qb(t,{...e,children:[Vi("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Vi("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Vi("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Wi,jsxs as Jb}from"react/jsx-runtime";var $i=e=>Jb(t,{...e,children:[Wi("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),Wi("path",{d:"M7 11l5 5l5 -5"}),Wi("path",{d:"M12 4l0 12"})]});import{jsx as pf,jsxs as Yb}from"react/jsx-runtime";var qi=e=>Yb(t,{...e,children:[pf("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),pf("path",{d:"M13.5 6.5l4 4"})]});import{jsx as Xi,jsxs as jb}from"react/jsx-runtime";var Ki=e=>jb(t,{...e,children:[Xi("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),Xi("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),Xi("path",{d:"M16 5l3 3"})]});import{jsx as Oo,jsxs as eC}from"react/jsx-runtime";var Zi=e=>eC(t,{...e,children:[Oo("path",{d:"M16 4l4 0l0 4"}),Oo("path",{d:"M14 10l6 -6"}),Oo("path",{d:"M8 20l-4 0l0 -4"}),Oo("path",{d:"M4 20l6 -6"}),Oo("path",{d:"M16 20l4 0l0 -4"}),Oo("path",{d:"M14 14l6 6"}),Oo("path",{d:"M8 4l-4 0l0 4"}),Oo("path",{d:"M4 4l6 6"})]});import{jsx as Qi,jsxs as oC}from"react/jsx-runtime";var Ji=e=>oC(t,{...e,children:[Qi("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),Qi("path",{d:"M11 13l9 -9"}),Qi("path",{d:"M15 4h5v5"})]});import{jsx as Yi,jsxs as tC}from"react/jsx-runtime";var ji=e=>tC(t,{...e,children:[Yi("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),Yi("path",{d:"M15 9l-6 6"}),Yi("path",{d:"M10 9l5 0l0 5"})]});import{jsx as df,jsxs as nC}from"react/jsx-runtime";var ep=e=>nC(t,{...e,children:[df("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),df("path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"})]});import{jsx as op,jsxs as rC}from"react/jsx-runtime";var tp=e=>rC(t,{...e,children:[op("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),op("path",{d:"M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"}),op("path",{d:"M3 3l18 18"})]});import{jsx as Qn,jsxs as aC}from"react/jsx-runtime";var np=e=>aC(t,{...e,children:[Qn("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),Qn("path",{d:"M3 15l2.5 -3.8"}),Qn("path",{d:"M21 14.976l-2.492 -3.776"}),Qn("path",{d:"M9 17l.5 -4"}),Qn("path",{d:"M15 17l-.5 -4"})]});import{jsx as za,jsxs as lC}from"react/jsx-runtime";var rp=e=>lC(t,{...e,children:[za("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),za("path",{d:"M8 9l2 1"}),za("path",{d:"M16 9l-2 1"}),za("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as en,jsxs as cC}from"react/jsx-runtime";var ap=e=>cC(t,{...e,children:[en("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),en("path",{d:"M7 8.5l3 3"}),en("path",{d:"M7 11.5l3 -3"}),en("path",{d:"M14 8.5l3 3"}),en("path",{d:"M14 11.5l3 -3"}),en("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Oa,jsxs as sC}from"react/jsx-runtime";var lp=e=>sC(t,{...e,children:[Oa("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Oa("path",{d:"M9 10l.01 0"}),Oa("path",{d:"M15 10l.01 0"}),Oa("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as mf,jsxs as iC}from"react/jsx-runtime";var mt=e=>iC(t,{...e,children:[mf("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),mf("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"})]});import{jsx as cp,jsxs as pC}from"react/jsx-runtime";var sp=e=>pC(t,{...e,children:[cp("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),cp("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),cp("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as Jn,jsxs as dC}from"react/jsx-runtime";var Yn=e=>dC(t,{...e,children:[Jn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Jn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Jn("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Jn("path",{d:"M10 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"}),Jn("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as _a,jsxs as mC}from"react/jsx-runtime";var ip=e=>mC(t,{...e,children:[_a("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),_a("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),_a("path",{d:"M12 17v-6"}),_a("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as on,jsxs as uC}from"react/jsx-runtime";var jn=e=>uC(t,{...e,children:[on("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),on("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),on("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),on("path",{d:"M8.5 20.25c0 .345 .28 .625 .625 .625h1a.875 .875 0 0 0 .875 -.875v-1.125a.875 .875 0 0 0 -.875 -.875h-.75a.875 .875 0 0 1 -.875 -.875v-1.125a.875 .875 0 0 1 .875 -.875h1a.625 .625 0 0 1 .625 .625"}),on("path",{d:"M14.25 15.125a1.25 1.25 0 0 1 1.25 1.25v3.25a1.25 1.25 0 1 1 -2.5 0v-3.25a1.25 1.25 0 0 1 1.25 -1.25z"}),on("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as Ha,jsxs as hC}from"react/jsx-runtime";var pp=e=>hC(t,{...e,children:[Ha("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ha("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Ha("path",{d:"M9 17h6"}),Ha("path",{d:"M9 13h6"})]});import{jsx as Ua,jsxs as fC}from"react/jsx-runtime";var Ge=e=>fC(t,{...e,children:[Ua("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ua("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Ua("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ua("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as tn,jsxs as gC}from"react/jsx-runtime";var ut=e=>gC(t,{...e,children:[tn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),tn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),tn("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),tn("path",{d:"M17 18h2"}),tn("path",{d:"M20 15h-3v6"}),tn("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as dp,jsxs as vC}from"react/jsx-runtime";var mp=e=>vC(t,{...e,children:[dp("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),dp("path",{d:"M18 17h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h4l5 5v7a2 2 0 0 1 -2 2z"}),dp("path",{d:"M16 17v2a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"})]});import{jsx as er,jsxs as yC}from"react/jsx-runtime";var or=e=>yC(t,{...e,children:[er("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),er("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),er("path",{d:"M8 11h8v7h-8z"}),er("path",{d:"M8 15h8"}),er("path",{d:"M11 11v7"})]});import{jsx as tr,jsxs as IC}from"react/jsx-runtime";var Co=e=>IC(t,{...e,children:[tr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),tr("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),tr("path",{d:"M9 9l1 0"}),tr("path",{d:"M9 13l6 0"}),tr("path",{d:"M9 17l6 0"})]});import{jsx as Ga,jsxs as bC}from"react/jsx-runtime";var up=e=>bC(t,{...e,children:[Ga("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ga("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Ga("path",{d:"M12 11v6"}),Ga("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as nn,jsxs as CC}from"react/jsx-runtime";var nr=e=>CC(t,{...e,children:[nn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),nn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),nn("path",{d:"M4 15l4 6"}),nn("path",{d:"M4 21l4 -6"}),nn("path",{d:"M17 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"}),nn("path",{d:"M11 15v6h3"})]});import{jsx as _o,jsxs as xC}from"react/jsx-runtime";var rr=e=>xC(t,{...e,children:[_o("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),_o("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),_o("path",{d:"M4 16l3 5"}),_o("path",{d:"M4 21l3 -5"}),_o("path",{d:"M8.5 16v5h2"}),_o("path",{d:"M12 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-0.5a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-0.5a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"}),_o("path",{d:"M16.5 16l3 5"}),_o("path",{d:"M16.5 21l3 -5"})]});import{jsx as Ho,jsxs as PC}from"react/jsx-runtime";var to=e=>PC(t,{...e,children:[Ho("path",{d:"M6 20.735a2 2 0 0 1 -1 -1.735v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"}),Ho("path",{d:"M11 17a2 2 0 0 1 2 2v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a2 2 0 0 1 2 -2z"}),Ho("path",{d:"M11 5l-1 0"}),Ho("path",{d:"M13 7l-1 0"}),Ho("path",{d:"M11 9l-1 0"}),Ho("path",{d:"M13 11l-1 0"}),Ho("path",{d:"M11 13l-1 0"}),Ho("path",{d:"M13 15l-1 0"})]});import{jsx as uf}from"react/jsx-runtime";var hp=e=>uf(t,{...e,children:uf("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})});import{jsx as fp,jsxs as SC}from"react/jsx-runtime";var ar=e=>SC(t,{...e,children:[fp("path",{d:"M4 6h16"}),fp("path",{d:"M6 12h12"}),fp("path",{d:"M9 18h6"})]});import{jsx as hf,jsxs as MC}from"react/jsx-runtime";var gp=e=>MC(t,{...e,children:[hf("path",{d:"M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1 -7 0a5 5 0 0 0 -7 0v-9z"}),hf("path",{d:"M5 21v-7"})]});import{jsx as ff}from"react/jsx-runtime";var vp=e=>ff(t,{...e,children:ff("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as gf}from"react/jsx-runtime";var yp=e=>gf(t,{isFilled:!0,...e,children:gf("path",{d:"M4 5a1 1 0 0 1 .3 -.714a6 6 0 0 1 8.213 -.176l.351 .328a4 4 0 0 0 5.272 0l.249 -.227c.61 -.483 1.527 -.097 1.61 .676l.005 .113v9a1 1 0 0 1 -.3 .714a6 6 0 0 1 -8.213 .176l-.351 -.328a4 4 0 0 0 -5.136 -.114v6.552a1 1 0 0 1 -1.993 .117l-.007 -.117v-16z"})});import{jsx as lr,jsxs as wC}from"react/jsx-runtime";var Ip=e=>wC(t,{...e,children:[lr("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),lr("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),lr("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),lr("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),lr("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as vf}from"react/jsx-runtime";var bp=e=>vf(t,{...e,children:vf("path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2"})});import{jsx as Va,jsxs as kC}from"react/jsx-runtime";var Cp=e=>kC(t,{...e,children:[Va("path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-0.5m0 -8v-2.5a2 2 0 0 1 2 -2"}),Va("path",{d:"M1 12.5l7 0"}),Va("path",{d:"M1 12.5l2 2"}),Va("path",{d:"M1 12.5l2 -2"})]});import{jsx as Wa,jsxs as BC}from"react/jsx-runtime";var xp=e=>BC(t,{...e,children:[Wa("path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-1m0 -6v-4a2 2 0 0 1 2 -2"}),Wa("path",{d:"M2 13l7 0"}),Wa("path",{d:"M9 13l-2 2"}),Wa("path",{d:"M9 13l-2 -2"})]});import{jsx as yf,jsxs as RC}from"react/jsx-runtime";var Pp=e=>RC(t,{...e,children:[yf("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),yf("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as rn,jsxs as DC}from"react/jsx-runtime";var Sp=e=>DC(t,{...e,children:[rn("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),rn("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),rn("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),rn("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),rn("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),rn("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as $a,jsxs as LC}from"react/jsx-runtime";var Mp=e=>LC(t,{...e,children:[$a("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),$a("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),$a("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),$a("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"})]});import{jsx as an,jsxs as TC}from"react/jsx-runtime";var wp=e=>TC(t,{...e,children:[an("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),an("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),an("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),an("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),an("path",{d:"M14 22h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"}),an("path",{d:"M22 16c0 4 -2.5 6 -3.5 6s-3.5 -2 -3.5 -6c1 0 2.5 -.5 3.5 -1.5c1 1 2.5 1.5 3.5 1.5"})]});import{jsx as qa,jsxs as NC}from"react/jsx-runtime";var kp=e=>NC(t,{...e,children:[qa("path",{d:"M5 9l14 0"}),qa("path",{d:"M5 15l14 0"}),qa("path",{d:"M11 4l-4 16"}),qa("path",{d:"M17 4l-4 16"})]});import{jsx as Xa,jsxs as FC}from"react/jsx-runtime";var Bp=e=>FC(t,{...e,children:[Xa("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),Xa("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),Xa("path",{d:"M4 14a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-1a2 2 0 0 1 -2 -2v-3z"}),Xa("path",{d:"M15 14a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-1a2 2 0 0 1 -2 -2v-3z"})]});import{jsx as If}from"react/jsx-runtime";var Rp=e=>If(t,{...e,children:If("path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"})});import{jsx as bf}from"react/jsx-runtime";var Dp=e=>bf(t,{isFilled:!0,...e,children:bf("path",{d:"M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z"})});import{jsx as Lp,jsxs as EC}from"react/jsx-runtime";var Tp=e=>EC(t,{...e,children:[Lp("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),Lp("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),Lp("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as Cf,jsxs as AC}from"react/jsx-runtime";var cr=e=>AC(t,{...e,children:[Cf("path",{d:"M19 8.71l-5.333 -4.148a2.666 2.666 0 0 0 -3.274 0l-5.334 4.148a2.665 2.665 0 0 0 -1.029 2.105v7.2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-7.2c0 -.823 -.38 -1.6 -1.03 -2.105"}),Cf("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Ka,jsxs as zC}from"react/jsx-runtime";var we=e=>zC(t,{...e,children:[Ka("path",{d:"M15 8h.01"}),Ka("path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"}),Ka("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Ka("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as sr,jsxs as OC}from"react/jsx-runtime";var Np=e=>OC(t,{...e,children:[sr("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),sr("path",{d:"M4 16l16 0"}),sr("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),sr("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),sr("path",{d:"M14 7l.01 0"})]});import{jsx as ir,jsxs as _C}from"react/jsx-runtime";var Fp=e=>_C(t,{...e,children:[ir("path",{d:"M15 8h.01"}),ir("path",{d:"M11.5 21h-5.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v7"}),ir("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),ir("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),ir("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as pr,jsxs as HC}from"react/jsx-runtime";var Ep=e=>HC(t,{...e,children:[pr("path",{d:"M15 8h.01"}),pr("path",{d:"M7 3h11a3 3 0 0 1 3 3v11m-.856 3.099a2.991 2.991 0 0 1 -2.144 .901h-12a3 3 0 0 1 -3 -3v-12c0 -.845 .349 -1.608 .91 -2.153"}),pr("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),pr("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),pr("path",{d:"M3 3l18 18"})]});import{jsx as xf,jsxs as UC}from"react/jsx-runtime";var Ap=e=>UC(t,{...e,children:[xf("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),xf("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-5.5m-9.5 -2h7m-3 -3l3 3l-3 3"})]});import{jsx as Pf,jsxs as GC}from"react/jsx-runtime";var zp=e=>GC(t,{...e,children:[Pf("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Pf("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as Op,jsxs as VC}from"react/jsx-runtime";var _p=e=>VC(t,{...e,children:[Op("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Op("path",{d:"M12 9h.01"}),Op("path",{d:"M11 12h1v4h1"})]});import{jsx as Hp,jsxs as WC}from"react/jsx-runtime";var Up=e=>WC(t,{...e,children:[Hp("path",{d:"M19.875 6.27c.7 .398 1.13 1.143 1.125 1.948v7.284c0 .809 -.443 1.555 -1.158 1.948l-6.75 4.27a2.269 2.269 0 0 1 -2.184 0l-6.75 -4.27a2.225 2.225 0 0 1 -1.158 -1.948v-7.285c0 -.809 .443 -1.554 1.158 -1.947l6.75 -3.98a2.33 2.33 0 0 1 2.25 0l6.75 3.98h-.033z"}),Hp("path",{d:"M12 9h.01"}),Hp("path",{d:"M11 12h1v4h1"})]});import{jsx as Gp,jsxs as $C}from"react/jsx-runtime";var Vp=e=>$C(t,{...e,children:[Gp("path",{d:"M11 5l6 0"}),Gp("path",{d:"M7 19l6 0"}),Gp("path",{d:"M14 5l-4 14"})]});import{jsx as Wp,jsxs as qC}from"react/jsx-runtime";var $p=e=>qC(t,{...e,children:[Wp("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),Wp("path",{d:"M4 12l8 4l8 -4"}),Wp("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as Sf,jsxs as XC}from"react/jsx-runtime";var qp=e=>XC(t,{...e,children:[Sf("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),Sf("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as Mf,jsxs as KC}from"react/jsx-runtime";var Xp=e=>KC(t,{...e,children:[Mf("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Mf("path",{d:"M9 4l0 16"})]});import{jsx as Kp,jsxs as ZC}from"react/jsx-runtime";var Zp=e=>ZC(t,{...e,children:[Kp("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"}),Kp("path",{d:"M4 13m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"}),Kp("path",{d:"M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"})]});import{jsx as Za,jsxs as QC}from"react/jsx-runtime";var Qp=e=>QC(t,{...e,children:[Za("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Za("path",{d:"M4 9h8"}),Za("path",{d:"M12 15h8"}),Za("path",{d:"M12 4v16"})]});import{jsx as dr,jsxs as JC}from"react/jsx-runtime";var Jp=e=>JC(t,{...e,children:[dr("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),dr("path",{d:"M4 12h8"}),dr("path",{d:"M12 15h8"}),dr("path",{d:"M12 9h8"}),dr("path",{d:"M12 4v16"})]});import{jsx as Yp,jsxs as YC}from"react/jsx-runtime";var jp=e=>YC(t,{...e,children:[Yp("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Yp("path",{d:"M10 4l4 16"}),Yp("path",{d:"M12 12l-8 2"})]});import{jsx as Qa,jsxs as jC}from"react/jsx-runtime";var ed=e=>jC(t,{...e,children:[Qa("path",{d:"M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),Qa("path",{d:"M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),Qa("path",{d:"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),Qa("path",{d:"M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"})]});import{jsx as ln,jsxs as ex}from"react/jsx-runtime";var od=e=>ex(t,{...e,children:[ln("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),ln("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),ln("path",{d:"M15 15l3.35 3.35"}),ln("path",{d:"M9 15l-3.35 3.35"}),ln("path",{d:"M5.65 5.65l3.35 3.35"}),ln("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as td,jsxs as ox}from"react/jsx-runtime";var nd=e=>ox(t,{...e,children:[td("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),td("path",{d:"M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3"}),td("path",{d:"M9.7 17l4.6 0"})]});import{jsx as wf}from"react/jsx-runtime";var rd=e=>wf(t,{...e,children:wf("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as kf,jsxs as tx}from"react/jsx-runtime";var ad=e=>tx(t,{...e,children:[kf("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),kf("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as Bf,jsxs as nx}from"react/jsx-runtime";var ld=e=>nx(t,{...e,children:[Bf("path",{d:"M4 19l16 0"}),Bf("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as cn,jsxs as rx}from"react/jsx-runtime";var cd=e=>rx(t,{...e,children:[cn("path",{d:"M3 3v18h18"}),cn("path",{d:"M20 18v3"}),cn("path",{d:"M16 16v5"}),cn("path",{d:"M12 13v8"}),cn("path",{d:"M8 16v5"}),cn("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as sn,jsxs as ax}from"react/jsx-runtime";var sd=e=>ax(t,{...e,children:[sn("path",{d:"M10.5 3h-5.5a2 2 0 0 0 -2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2 -2v-5.5"}),sn("path",{d:"M3 13c0 0, 8 0, 12 -4"}),sn("path",{d:"M12 8h4v4"}),sn("path",{d:"M15 2v1.44"}),sn("path",{d:"M18.75 4.75l1.2 -1.2"}),sn("path",{d:"M20 9h1.44"})]});import{jsx as id,jsxs as lx}from"react/jsx-runtime";var pd=e=>lx(t,{...e,children:[id("path",{d:"M4 19l16 0"}),id("path",{d:"M4 16l6 -6l4 4l5 -5"}),id("path",{d:"M15 8h5v5"})]});import{jsx as Rf,jsxs as cx}from"react/jsx-runtime";var dd=e=>cx(t,{...e,children:[Rf("path",{d:"M5 10h14"}),Rf("path",{d:"M5 14h14"})]});import{jsx as pn,jsxs as sx}from"react/jsx-runtime";var md=e=>sx(t,{...e,children:[pn("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),pn("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),pn("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),pn("path",{d:"M11 6l9 0"}),pn("path",{d:"M11 12l9 0"}),pn("path",{d:"M11 18l9 0"})]});import{jsx as Ja,jsxs as ix}from"react/jsx-runtime";var ud=e=>ix(t,{...e,children:[Ja("path",{d:"M12 10v8l8 -4z"}),Ja("path",{d:"M4 6h16"}),Ja("path",{d:"M4 12h4.5"}),Ja("path",{d:"M4 18h4.5"})]});import{jsx as hd,jsxs as px}from"react/jsx-runtime";var fd=e=>px(t,{...e,children:[hd("path",{d:"M9 15l6 -6"}),hd("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),hd("path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"})]});import{jsx as Df,jsxs as dx}from"react/jsx-runtime";var gd=e=>dx(t,{...e,children:[Df("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),Df("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Ya,jsxs as mx}from"react/jsx-runtime";var vd=e=>mx(t,{...e,children:[Ya("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Ya("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Ya("path",{d:"M3 3l18 18"}),Ya("path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"})]});import{jsx as dn,jsxs as ux}from"react/jsx-runtime";var yd=e=>ux(t,{...e,children:[dn("path",{d:"M9 6l11 0"}),dn("path",{d:"M9 12l11 0"}),dn("path",{d:"M9 18l11 0"}),dn("path",{d:"M5 6l0 .01"}),dn("path",{d:"M5 12l0 .01"}),dn("path",{d:"M5 18l0 .01"})]});import{jsx as mr,jsxs as hx}from"react/jsx-runtime";var Id=e=>hx(t,{...e,children:[mr("path",{d:"M11 6h9"}),mr("path",{d:"M11 12h9"}),mr("path",{d:"M12 18h8"}),mr("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),mr("path",{d:"M6 10v-6l-2 2"})]});import{jsx as bd,jsxs as fx}from"react/jsx-runtime";var Cd=e=>fx(t,{...e,children:[bd("path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z"}),bd("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),bd("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as Lf}from"react/jsx-runtime";var xd=e=>Lf(t,{isFilled:!0,...e,children:Lf("path",{d:"M12 2a5 5 0 0 1 5 5v3a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-6a3 3 0 0 1 3 -3v-3a5 5 0 0 1 5 -5m0 12a2 2 0 0 0 -1.995 1.85l-.005 .15a2 2 0 1 0 2 -2m0 -10a3 3 0 0 0 -3 3v3h6v-3a3 3 0 0 0 -3 -3"})});import{jsx as Pd,jsxs as gx}from"react/jsx-runtime";var Sd=e=>gx(t,{...e,children:[Pd("path",{d:"M9 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2"}),Pd("path",{d:"M3 12h13l-3 -3"}),Pd("path",{d:"M13 15l3 -3"})]});import{jsx as Md,jsxs as vx}from"react/jsx-runtime";var wd=e=>vx(t,{...e,children:[Md("path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"}),Md("path",{d:"M9 12h12l-3 -3"}),Md("path",{d:"M18 15l3 -3"})]});import{jsx as kd,jsxs as yx}from"react/jsx-runtime";var Bd=e=>yx(t,{...e,children:[kd("path",{d:"M10 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2"}),kd("path",{d:"M15 12h-12l3 -3"}),kd("path",{d:"M6 15l-3 -3"})]});import{jsx as ja,jsxs as Ix}from"react/jsx-runtime";var Rd=e=>Ix(t,{...e,children:[ja("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),ja("path",{d:"M15 6l3 3"}),ja("path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}),ja("path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"})]});import{jsx as Tf,jsxs as bx}from"react/jsx-runtime";var Dd=e=>bx(t,{...e,children:[Tf("path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"}),Tf("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as Nf,jsxs as Cx}from"react/jsx-runtime";var Ld=e=>Cx(t,{...e,children:[Nf("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Nf("path",{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z"})]});import{jsx as el,jsxs as xx}from"react/jsx-runtime";var Td=e=>xx(t,{...e,children:[el("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),el("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),el("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),el("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as ol,jsxs as Px}from"react/jsx-runtime";var Nd=e=>Px(t,{...e,children:[ol("path",{d:"M16 4l4 0l0 4"}),ol("path",{d:"M14 10l6 -6"}),ol("path",{d:"M8 20l-4 0l0 -4"}),ol("path",{d:"M4 20l6 -6"})]});import{jsx as Ff}from"react/jsx-runtime";var Fd=e=>Ff(t,{...e,children:Ff("path",{d:"M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1"})});import{jsx as Ed,jsxs as Sx}from"react/jsx-runtime";var Ad=e=>Sx(t,{...e,children:[Ed("path",{d:"M8 9h8"}),Ed("path",{d:"M8 13h6"}),Ed("path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"})]});import{jsx as tl,jsxs as Mx}from"react/jsx-runtime";var zd=e=>Mx(t,{...e,children:[tl("path",{d:"M12 11v.01"}),tl("path",{d:"M8 11v.01"}),tl("path",{d:"M16 11v.01"}),tl("path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3z"})]});import{jsx as ur,jsxs as wx}from"react/jsx-runtime";var Od=e=>wx(t,{...e,children:[ur("path",{d:"M8 9h8"}),ur("path",{d:"M8 13h6"}),ur("path",{d:"M13 18l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6"}),ur("path",{d:"M22 22l-5 -5"}),ur("path",{d:"M17 22l5 -5"})]});import{jsx as nl,jsxs as kx}from"react/jsx-runtime";var hr=e=>kx(t,{...e,children:[nl("path",{d:"M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z"}),nl("path",{d:"M5 10a7 7 0 0 0 14 0"}),nl("path",{d:"M8 21l8 0"}),nl("path",{d:"M12 17l0 4"})]});import{jsx as rl,jsxs as Bx}from"react/jsx-runtime";var _d=e=>Bx(t,{...e,children:[rl("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),rl("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),rl("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),rl("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as al,jsxs as Rx}from"react/jsx-runtime";var Hd=e=>Rx(t,{...e,children:[al("path",{d:"M18 10h-4v-4"}),al("path",{d:"M20 4l-6 6"}),al("path",{d:"M6 14h4v4"}),al("path",{d:"M10 14l-6 6"})]});import{jsx as Ef,jsxs as Dx}from"react/jsx-runtime";var Ud=e=>Dx(t,{...e,children:[Ef("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Ef("path",{d:"M9 12l6 0"})]});import{jsx as Gd,jsxs as Lx}from"react/jsx-runtime";var Vd=e=>Lx(t,{...e,children:[Gd("path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z"}),Gd("path",{d:"M11 4h2"}),Gd("path",{d:"M12 17v.01"})]});import{jsx as ll,jsxs as Tx}from"react/jsx-runtime";var Wd=e=>Tx(t,{...e,children:[ll("path",{d:"M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10z"}),ll("path",{d:"M7 20h10"}),ll("path",{d:"M9 16v4"}),ll("path",{d:"M15 16v4"})]});import{jsx as fr,jsxs as Nx}from"react/jsx-runtime";var $d=e=>Nx(t,{...e,children:[fr("path",{d:"M3 4a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-12z"}),fr("path",{d:"M3 13h18"}),fr("path",{d:"M8 21h8"}),fr("path",{d:"M10 17l-.5 4"}),fr("path",{d:"M14 17l.5 4"})]});import{jsx as Af}from"react/jsx-runtime";var qd=e=>Af(t,{...e,children:Af("path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"})});import{jsx as zf,jsxs as Fx}from"react/jsx-runtime";var Xd=e=>Fx(t,{...e,children:[zf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),zf("path",{d:"M12 6c.088 0 .175 0 .262 0a5 5 0 0 0 5.28 8.297a6 6 0 1 1 -5.542 -8.303z"})]});import{jsx as Uo,jsxs as Ex}from"react/jsx-runtime";var Ye=e=>Ex(t,{...e,children:[Uo("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Uo("path",{d:"M8 4l0 16"}),Uo("path",{d:"M16 4l0 16"}),Uo("path",{d:"M4 8l4 0"}),Uo("path",{d:"M4 16l4 0"}),Uo("path",{d:"M4 12l16 0"}),Uo("path",{d:"M16 8l4 0"}),Uo("path",{d:"M16 16l4 0"})]});import{jsx as Of}from"react/jsx-runtime";var Kd=e=>Of(t,{...e,children:Of("path",{d:"M12 18.5l7.265 2.463c.196 .077 .42 .032 .57 -.116a.548 .548 0 0 0 .134 -.572l-7.969 -17.275l-7.97 17.275c-.07 .2 -.017 .424 .135 .572c.15 .148 .374 .193 .57 .116l7.265 -2.463"})});import{jsx as _f,jsxs as Ax}from"react/jsx-runtime";var Zd=e=>Ax(t,{...e,children:[_f("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),_f("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as gr,jsxs as zx}from"react/jsx-runtime";var Qd=e=>zx(t,{...e,children:[gr("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),gr("path",{d:"M12 12l8 -4.5"}),gr("path",{d:"M12 12l0 9"}),gr("path",{d:"M12 12l-8 -4.5"}),gr("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as cl,jsxs as Ox}from"react/jsx-runtime";var Jd=e=>Ox(t,{...e,children:[cl("path",{d:"M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25"}),cl("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),cl("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),cl("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as vr,jsxs as _x}from"react/jsx-runtime";var Yd=e=>_x(t,{...e,children:[vr("path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"}),vr("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),vr("path",{d:"M15 16h.01"}),vr("path",{d:"M12.01 16h.01"}),vr("path",{d:"M9.02 16h.01"})]});import{jsx as Hf,jsxs as Hx}from"react/jsx-runtime";var ht=e=>Hx(t,{...e,children:[Hf("path",{d:"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}),Hf("path",{d:"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"})]});import{jsx as jd,jsxs as Ux}from"react/jsx-runtime";var em=e=>Ux(t,{...e,children:[jd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),jd("path",{d:"M8 8m0 1a1 1 0 0 1 1 -1h1a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-1a1 1 0 0 1 -1 -1z"}),jd("path",{d:"M13 8m0 1a1 1 0 0 1 1 -1h1a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-1a1 1 0 0 1 -1 -1z"})]});import{jsx as om,jsxs as Gx}from"react/jsx-runtime";var tm=e=>Gx(t,{...e,children:[om("path",{d:"M13 9a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-10z"}),om("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),om("path",{d:"M16 9h2"})]});import{jsx as nm,jsxs as Vx}from"react/jsx-runtime";var rm=e=>Vx(t,{...e,children:[nm("path",{d:"M14 6l7 7l-4 4"}),nm("path",{d:"M5.828 18.172a2.828 2.828 0 0 0 4 0l10.586 -10.586a2 2 0 0 0 0 -2.829l-1.171 -1.171a2 2 0 0 0 -2.829 0l-10.586 10.586a2.828 2.828 0 0 0 0 4"}),nm("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as sl,jsxs as Wx}from"react/jsx-runtime";var am=e=>Wx(t,{...e,children:[sl("path",{d:"M9 15l6 -6"}),sl("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),sl("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),sl("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Uf}from"react/jsx-runtime";var lm=e=>Uf(t,{...e,children:Uf("path",{d:"M6.141 4.163l12 1.714a1 1 0 0 1 .859 .99v10.266a1 1 0 0 1 -.859 .99l-12 1.714a1 1 0 0 1 -1.141 -.99v-13.694a1 1 0 0 1 1.141 -.99z"})});import{jsx as cm,jsxs as $x}from"react/jsx-runtime";var sm=e=>$x(t,{...e,children:[cm("path",{d:"M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2"}),cm("path",{d:"M15 7a2 2 0 0 1 2 2"}),cm("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as im,jsxs as qx}from"react/jsx-runtime";var yr=e=>qx(t,{...e,children:[im("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),im("path",{d:"M9 15l-4.5 4.5"}),im("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as Gf}from"react/jsx-runtime";var ft=e=>Gf(t,{...e,children:Gf("path",{d:"M7 4v16l13 -8z"})});import{jsx as Vf,jsxs as Xx}from"react/jsx-runtime";var pm=e=>Xx(t,{...e,children:[Vf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Vf("path",{d:"M9 8v8l8 -4z"})]});import{jsx as Wf,jsxs as Kx}from"react/jsx-runtime";var dm=e=>Kx(t,{...e,children:[Wf("path",{d:"M12 5l0 14"}),Wf("path",{d:"M5 12l14 0"})]});import{jsx as mm,jsxs as Zx}from"react/jsx-runtime";var Go=e=>Zx(t,{...e,children:[mm("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),mm("path",{d:"M9 12h6"}),mm("path",{d:"M12 9v6"})]});import{jsx as um,jsxs as Qx}from"react/jsx-runtime";var hm=e=>Qx(t,{...e,children:[um("path",{d:"M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2"}),um("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),um("path",{d:"M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z"})]});import{jsx as $f}from"react/jsx-runtime";var fm=e=>$f(t,{...e,children:$f("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as gm,jsxs as Jx}from"react/jsx-runtime";var Ir=e=>Jx(t,{...e,children:[gm("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),gm("path",{d:"M12 16v.01"}),gm("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as qf,jsxs as Yx}from"react/jsx-runtime";var vm=e=>Yx(t,{...e,children:[qf("path",{d:"M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5"}),qf("path",{d:"M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5"})]});import{jsx as Xf,jsxs as jx}from"react/jsx-runtime";var ym=e=>jx(t,{...e,children:[Xf("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Xf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Kf}from"react/jsx-runtime";var Im=e=>Kf(t,{isFilled:!0,...e,children:Kf("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 6.66a2 2 0 0 0 -1.977 1.697l-.018 .154l-.005 .149l.005 .15a2 2 0 1 0 1.995 -2.15z"})});import{jsx as Zf}from"react/jsx-runtime";var bm=e=>Zf(t,{...e,children:Zf("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2m4 -14h6m-6 4h6m-2 4h2"})});import{jsx as Qf,jsxs as eP}from"react/jsx-runtime";var Cm=e=>eP(t,{...e,children:[Qf("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2"}),Qf("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as Jf,jsxs as oP}from"react/jsx-runtime";var xm=e=>oP(t,{...e,children:[Jf("path",{d:"M15 14l4 -4l-4 -4"}),Jf("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as Yf}from"react/jsx-runtime";var Pm=e=>Yf(t,{...e,children:Yf("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as jf,jsxs as tP}from"react/jsx-runtime";var Sm=e=>tP(t,{...e,children:[jf("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),jf("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as e2,jsxs as nP}from"react/jsx-runtime";var Mm=e=>nP(t,{...e,children:[e2("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),e2("path",{d:"M20 4v5h-5"})]});import{jsx as o2,jsxs as rP}from"react/jsx-runtime";var wm=e=>rP(t,{...e,children:[o2("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),o2("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as il,jsxs as aP}from"react/jsx-runtime";var km=e=>aP(t,{...e,children:[il("path",{d:"M3 3m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),il("path",{d:"M15 15m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),il("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),il("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as t2}from"react/jsx-runtime";var Bm=e=>t2(t,{...e,children:t2("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Rm,jsxs as lP}from"react/jsx-runtime";var Dm=e=>lP(t,{...e,children:[Rm("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Rm("path",{d:"M3 4.001v5h5"}),Rm("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Lm,jsxs as cP}from"react/jsx-runtime";var Tm=e=>cP(t,{...e,children:[Lm("path",{d:"M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3 -5a9 9 0 0 0 6 -8a3 3 0 0 0 -3 -3a9 9 0 0 0 -8 6a6 6 0 0 0 -5 3"}),Lm("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),Lm("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as n2,jsxs as sP}from"react/jsx-runtime";var Nm=e=>sP(t,{...e,children:[n2("path",{d:"M10 3.2a9 9 0 1 0 10.8 10.8a1 1 0 0 0 -1 -1h-6.8a2 2 0 0 1 -2 -2v-7a.9 .9 0 0 0 -1 -.8"}),n2("path",{d:"M15 3.5a9 9 0 0 1 5.5 5.5h-4.5a1 1 0 0 1 -1 -1v-4.5"})]});import{jsx as r2,jsxs as iP}from"react/jsx-runtime";var Fm=e=>iP(t,{...e,children:[r2("path",{d:"M12 3v9h9"}),r2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Em,jsxs as pP}from"react/jsx-runtime";var Am=e=>pP(t,{...e,children:[Em("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),Em("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),Em("path",{d:"M11 19h5.5a3.5 3.5 0 0 0 0 -7h-8a3.5 3.5 0 0 1 0 -7h4.5"})]});import{jsx as zm,jsxs as dP}from"react/jsx-runtime";var Om=e=>dP(t,{...e,children:[zm("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"}),zm("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),zm("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as Vo,jsxs as mP}from"react/jsx-runtime";var _m=e=>mP(t,{...e,children:[Vo("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),Vo("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),Vo("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),Vo("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),Vo("path",{d:"M5 11h1v2h-1z"}),Vo("path",{d:"M10 11l0 2"}),Vo("path",{d:"M14 11h1v2h-1z"}),Vo("path",{d:"M19 11l0 2"})]});import{jsx as pl,jsxs as uP}from"react/jsx-runtime";var br=e=>uP(t,{...e,children:[pl("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),pl("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),pl("path",{d:"M8.6 8.6l10.4 10.4"}),pl("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as a2,jsxs as hP}from"react/jsx-runtime";var gt=e=>hP(t,{...e,children:[a2("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),a2("path",{d:"M21 21l-6 -6"})]});import{jsx as l2,jsxs as fP}from"react/jsx-runtime";var Hm=e=>fP(t,{...e,children:[l2("path",{d:"M10 14l11 -11"}),l2("path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5"})]});import{jsx as dl,jsxs as gP}from"react/jsx-runtime";var Um=e=>gP(t,{...e,children:[dl("path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"}),dl("path",{d:"M3 12m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"}),dl("path",{d:"M7 8l0 .01"}),dl("path",{d:"M7 16l0 .01"})]});import{jsx as c2,jsxs as vP}from"react/jsx-runtime";var Gm=e=>vP(t,{...e,children:[c2("path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"}),c2("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as xo,jsxs as yP}from"react/jsx-runtime";var Vm=e=>yP(t,{...e,children:[xo("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),xo("path",{d:"M4 6l8 0"}),xo("path",{d:"M16 6l4 0"}),xo("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),xo("path",{d:"M4 12l2 0"}),xo("path",{d:"M10 12l10 0"}),xo("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),xo("path",{d:"M4 18l11 0"}),xo("path",{d:"M19 18l1 0"})]});import{jsx as Cr,jsxs as IP}from"react/jsx-runtime";var Wm=e=>IP(t,{...e,children:[Cr("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Cr("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Cr("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Cr("path",{d:"M8.7 10.7l6.6 -3.4"}),Cr("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as s2,jsxs as bP}from"react/jsx-runtime";var $m=e=>bP(t,{...e,children:[s2("path",{d:"M13.342 20.566c-.436 .17 -.884 .315 -1.342 .434a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 .117 6.34"}),s2("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as qm,jsxs as CP}from"react/jsx-runtime";var Xm=e=>CP(t,{...e,children:[qm("path",{d:"M12.462 20.87c-.153 .047 -.307 .09 -.462 .13a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 .11 6.37"}),qm("path",{d:"M16 19h6"}),qm("path",{d:"M19 16v6"})]});import{jsx as Km,jsxs as xP}from"react/jsx-runtime";var Zm=e=>xP(t,{...e,children:[Km("path",{d:"M13.252 20.601c-.408 .155 -.826 .288 -1.252 .399a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 -.19 7.357"}),Km("path",{d:"M22 22l-5 -5"}),Km("path",{d:"M17 22l5 -5"})]});import{jsx as i2,jsxs as PP}from"react/jsx-runtime";var Qm=e=>PP(t,{...e,children:[i2("path",{d:"M6.331 8h11.339a2 2 0 0 1 1.977 2.304l-1.255 8.152a3 3 0 0 1 -2.966 2.544h-6.852a3 3 0 0 1 -2.965 -2.544l-1.255 -8.152a2 2 0 0 1 1.977 -2.304z"}),i2("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as ml,jsxs as SP}from"react/jsx-runtime";var Jm=e=>SP(t,{...e,children:[ml("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ml("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ml("path",{d:"M17 17h-11v-14h-2"}),ml("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as Wo,jsxs as MP}from"react/jsx-runtime";var Ym=e=>MP(t,{...e,children:[Wo("path",{d:"M5 9l4 0l0 -4"}),Wo("path",{d:"M3 3l6 6"}),Wo("path",{d:"M5 15l4 0l0 4"}),Wo("path",{d:"M3 21l6 -6"}),Wo("path",{d:"M19 9l-4 0l0 -4"}),Wo("path",{d:"M15 9l6 -6"}),Wo("path",{d:"M19 15l-4 0l0 4"}),Wo("path",{d:"M15 15l6 6"})]});import{jsx as ul,jsxs as wP}from"react/jsx-runtime";var jm=e=>wP(t,{...e,children:[ul("path",{d:"M18 4l3 3l-3 3"}),ul("path",{d:"M18 20l3 -3l-3 -3"}),ul("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),ul("path",{d:"M21 7h-5a4.978 4.978 0 0 0 -3 1m-4 8a4.984 4.984 0 0 1 -3 1h-3"})]});import{jsx as p2,jsxs as kP}from"react/jsx-runtime";var e0=e=>kP(t,{...e,children:[p2("path",{d:"M4 5v14l12 -7z"}),p2("path",{d:"M20 5l0 14"})]});import{jsx as d2,jsxs as BP}from"react/jsx-runtime";var o0=e=>BP(t,{...e,children:[d2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),d2("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as m2,jsxs as RP}from"react/jsx-runtime";var t0=e=>RP(t,{...e,children:[m2("path",{d:"M9.103 2h5.794a3 3 0 0 1 2.122 .879l4.101 4.1a3 3 0 0 1 .879 2.123v5.794a3 3 0 0 1 -.879 2.122l-4.1 4.101a3 3 0 0 1 -2.123 .879h-5.794a3 3 0 0 1 -2.122 -.879l-4.101 -4.1a3 3 0 0 1 -.879 -2.123v-5.794a3 3 0 0 1 .879 -2.122l4.1 -4.101a3 3 0 0 1 2.123 -.879z"}),m2("path",{d:"M5 5 L19 19"})]});import{jsx as vt,jsxs as DP}from"react/jsx-runtime";var n0=e=>DP(t,{...e,children:[vt("path",{d:"M4 10l0 6"}),vt("path",{d:"M20 10l0 6"}),vt("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),vt("path",{d:"M8 3l1 2"}),vt("path",{d:"M16 3l-1 2"}),vt("path",{d:"M9 18l0 3"}),vt("path",{d:"M15 18l0 3"})]});import{jsx as u2,jsxs as LP}from"react/jsx-runtime";var r0=e=>LP(t,{...e,children:[u2("path",{d:"M8.286 7.008c-3.216 0 -4.286 3.23 -4.286 5.92c0 3.229 2.143 8.072 4.286 8.072c1.165 -.05 1.799 -.538 3.214 -.538c1.406 0 1.607 .538 3.214 .538s4.286 -3.229 4.286 -5.381c-.03 -.011 -2.649 -.434 -2.679 -3.23c-.02 -2.335 2.589 -3.179 2.679 -3.228c-1.096 -1.606 -3.162 -2.113 -3.75 -2.153c-1.535 -.12 -3.032 1.077 -3.75 1.077c-.729 0 -2.036 -1.077 -3.214 -1.077z"}),u2("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as h2}from"react/jsx-runtime";var a0=e=>h2(t,{...e,children:h2("path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"})});import{jsx as xr,jsxs as TP}from"react/jsx-runtime";var l0=e=>TP(t,{...e,children:[xr("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),xr("path",{d:"M3.6 9h16.8"}),xr("path",{d:"M3.6 15h16.8"}),xr("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),xr("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as f2}from"react/jsx-runtime";var c0=e=>f2(t,{...e,children:f2("path",{d:"M20.945 11a9 9 0 1 1 -3.284 -5.997l-2.655 2.392a5.5 5.5 0 1 0 2.119 6.605h-4.125v-3h7.945z"})});import{jsx as s0,jsxs as NP}from"react/jsx-runtime";var i0=e=>NP(t,{...e,children:[s0("path",{d:"M4 8a4 4 0 0 1 4 -4h8a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-8a4 4 0 0 1 -4 -4z"}),s0("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),s0("path",{d:"M16.5 7.5v.01"})]});import{jsx as Pr,jsxs as FP}from"react/jsx-runtime";var p0=e=>FP(t,{...e,children:[Pr("path",{d:"M8 11v5"}),Pr("path",{d:"M8 8v.01"}),Pr("path",{d:"M12 16v-5"}),Pr("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),Pr("path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z"})]});import{jsx as d0,jsxs as EP}from"react/jsx-runtime";var m0=e=>EP(t,{...e,children:[d0("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),d0("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),d0("path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"})]});import{jsx as yt,jsxs as AP}from"react/jsx-runtime";var u0=e=>AP(t,{...e,children:[yt("path",{d:"M6.306 8.711c-2.602 .723 -4.306 1.926 -4.306 3.289c0 2.21 4.477 4 10 4c.773 0 1.526 -.035 2.248 -.102"}),yt("path",{d:"M17.692 15.289c2.603 -.722 4.308 -1.926 4.308 -3.289c0 -2.21 -4.477 -4 -10 -4c-.773 0 -1.526 .035 -2.25 .102"}),yt("path",{d:"M6.305 15.287c-.676 2.615 -.485 4.693 .695 5.373c1.913 1.105 5.703 -1.877 8.464 -6.66c.387 -.67 .733 -1.339 1.036 -2"}),yt("path",{d:"M17.694 8.716c.677 -2.616 .487 -4.696 -.694 -5.376c-1.913 -1.105 -5.703 1.877 -8.464 6.66c-.387 .67 -.733 1.34 -1.037 2"}),yt("path",{d:"M12 5.424c-1.925 -1.892 -3.82 -2.766 -5 -2.084c-1.913 1.104 -1.226 5.877 1.536 10.66c.386 .67 .793 1.304 1.212 1.896"}),yt("path",{d:"M12 18.574c1.926 1.893 3.821 2.768 5 2.086c1.913 -1.104 1.226 -5.877 -1.536 -10.66c-.375 -.65 -.78 -1.283 -1.212 -1.897"}),yt("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"})]});import{jsx as Sr,jsxs as zP}from"react/jsx-runtime";var h0=e=>zP(t,{...e,children:[Sr("path",{d:"M21 15l-1 -6l-2.5 6"}),Sr("path",{d:"M9 15l1 -6"}),Sr("path",{d:"M3 9h1v6h.5l2.5 -6"}),Sr("path",{d:"M16 9.5a.5 .5 0 0 0 -.5 -.5h-.75c-.721 0 -1.337 .521 -1.455 1.233l-.09 .534a1.059 1.059 0 0 0 1.045 1.233a1.059 1.059 0 0 1 1.045 1.233l-.09 .534a1.476 1.476 0 0 1 -1.455 1.233h-.75a.5 .5 0 0 1 -.5 -.5"}),Sr("path",{d:"M18 14h2.7"})]});import{jsx as g2,jsxs as OP}from"react/jsx-runtime";var f0=e=>OP(t,{...e,children:[g2("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),g2("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as hl,jsxs as _P}from"react/jsx-runtime";var g0=e=>_P(t,{...e,children:[hl("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),hl("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hl("path",{d:"M13.41 10.59l2.59 -2.59"}),hl("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as v2}from"react/jsx-runtime";var v0=e=>v2(t,{...e,children:v2("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as y2}from"react/jsx-runtime";var Mr=e=>y2(t,{...e,children:y2("path",{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"})});import{jsx as I2}from"react/jsx-runtime";var y0=e=>I2(t,{isFilled:!0,...e,children:I2("path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z"})});import{jsx as b2}from"react/jsx-runtime";var I0=e=>b2(t,{isFilled:!0,...e,children:b2("path",{d:"M12 1a.993 .993 0 0 1 .823 .443l.067 .116l2.852 5.781l6.38 .925c.741 .108 1.08 .94 .703 1.526l-.07 .095l-.078 .086l-4.624 4.499l1.09 6.355a1.001 1.001 0 0 1 -1.249 1.135l-.101 -.035l-.101 -.046l-5.693 -3l-5.706 3c-.105 .055 -.212 .09 -.32 .106l-.106 .01a1.003 1.003 0 0 1 -1.038 -1.06l.013 -.11l1.09 -6.355l-4.623 -4.5a1.001 1.001 0 0 1 .328 -1.647l.113 -.036l.114 -.023l6.379 -.925l2.853 -5.78a.968 .968 0 0 1 .904 -.56zm0 3.274v12.476a1 1 0 0 1 .239 .029l.115 .036l.112 .05l4.363 2.299l-.836 -4.873a1 1 0 0 1 .136 -.696l.07 -.099l.082 -.09l3.546 -3.453l-4.891 -.708a1 1 0 0 1 -.62 -.344l-.073 -.097l-.06 -.106l-2.183 -4.424z"})});import{jsx as C2}from"react/jsx-runtime";var b0=e=>C2(t,{...e,children:C2("path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z"})});import{jsx as x2}from"react/jsx-runtime";var wr=e=>x2(t,{...e,children:x2("path",{d:"M5 5m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"})});import{jsx as P2,jsxs as HP}from"react/jsx-runtime";var C0=e=>HP(t,{...e,children:[P2("path",{d:"M5 12l14 0"}),P2("path",{d:"M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5"})]});import{jsx as S2,jsxs as UP}from"react/jsx-runtime";var x0=e=>UP(t,{...e,children:[S2("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),S2("path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"})]});import{jsx as M2,jsxs as GP}from"react/jsx-runtime";var P0=e=>GP(t,{...e,children:[M2("path",{d:"M7 10h14l-4 -4"}),M2("path",{d:"M17 14h-14l4 4"})]});import{jsx as fl,jsxs as VP}from"react/jsx-runtime";var S0=e=>VP(t,{...e,children:[fl("path",{d:"M16 3l4 4l-4 4"}),fl("path",{d:"M10 7l10 0"}),fl("path",{d:"M8 13l-4 4l4 4"}),fl("path",{d:"M4 17l9 0"})]});import{jsx as M0,jsxs as WP}from"react/jsx-runtime";var w0=e=>WP(t,{...e,children:[M0("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),M0("path",{d:"M3 10h18"}),M0("path",{d:"M10 3v18"})]});import{jsx as w2,jsxs as $P}from"react/jsx-runtime";var k0=e=>$P(t,{...e,children:[w2("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),w2("path",{d:"M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3z"})]});import{jsx as mn,jsxs as qP}from"react/jsx-runtime";var B0=e=>qP(t,{...e,children:[mn("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),mn("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),mn("path",{d:"M12 2l0 2"}),mn("path",{d:"M12 20l0 2"}),mn("path",{d:"M20 12l2 0"}),mn("path",{d:"M2 12l2 0"})]});import{jsx as R0,jsxs as XP}from"react/jsx-runtime";var D0=e=>XP(t,{...e,children:[R0("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),R0("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),R0("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as L0,jsxs as KP}from"react/jsx-runtime";var T0=e=>KP(t,{...e,children:[L0("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),L0("path",{d:"M9 11h6"}),L0("path",{d:"M5 19h14"})]});import{jsx as k2,jsxs as ZP}from"react/jsx-runtime";var N0=e=>ZP(t,{...e,children:[k2("path",{d:"M6 4l12 0"}),k2("path",{d:"M12 4l0 16"})]});import{jsx as gl,jsxs as QP}from"react/jsx-runtime";var F0=e=>QP(t,{...e,children:[gl("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),gl("path",{d:"M12.5 5.5l4 4"}),gl("path",{d:"M4.5 13.5l4 4"}),gl("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as B2}from"react/jsx-runtime";var E0=e=>B2(t,{...e,children:B2("path",{d:"M7 13v-8a1 1 0 0 0 -1 -1h-2a1 1 0 0 0 -1 1v7a1 1 0 0 0 1 1h3a4 4 0 0 1 4 4v1a2 2 0 0 0 4 0v-5h3a2 2 0 0 0 2 -2l-1 -5a2 3 0 0 0 -2 -2h-7a3 3 0 0 0 -3 3"})});import{jsx as R2}from"react/jsx-runtime";var A0=e=>R2(t,{...e,children:R2("path",{d:"M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1h3a4 4 0 0 0 4 -4v-1a2 2 0 0 1 4 0v5h3a2 2 0 0 1 2 2l-1 5a2 3 0 0 1 -2 2h-7a3 3 0 0 1 -3 -3"})});import{jsx as D2,jsxs as JP}from"react/jsx-runtime";var z0=e=>JP(t,{isFilled:!0,...e,children:[D2("path",{d:"M13 3a3 3 0 0 1 2.995 2.824l.005 .176v4h2a3 3 0 0 1 2.98 2.65l.015 .174l.005 .176l-.02 .196l-1.006 5.032c-.381 1.626 -1.502 2.796 -2.81 2.78l-.164 -.008h-8a1 1 0 0 1 -.993 -.883l-.007 -.117l.001 -9.536a1 1 0 0 1 .5 -.865a2.998 2.998 0 0 0 1.492 -2.397l.007 -.202v-1a3 3 0 0 1 3 -3z"}),D2("path",{d:"M5 10a1 1 0 0 1 .993 .883l.007 .117v9a1 1 0 0 1 -.883 .993l-.117 .007h-1a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-7a2 2 0 0 1 1.85 -1.995l.15 -.005h1z"})]});import{jsx as L2,jsxs as YP}from"react/jsx-runtime";var O0=e=>YP(t,{...e,children:[L2("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),L2("path",{d:"M2 6m0 6a6 6 0 0 1 6 -6h8a6 6 0 0 1 6 6v0a6 6 0 0 1 -6 6h-8a6 6 0 0 1 -6 -6z"})]});import{jsx as un,jsxs as jP}from"react/jsx-runtime";var _0=e=>jP(t,{...e,children:[un("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),un("path",{d:"M4 6.371h7"}),un("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),un("path",{d:"M12 20l4 -9l4 9"}),un("path",{d:"M19.1 18h-6.2"}),un("path",{d:"M6.694 3l.793 .582"})]});import{jsx as kr,jsxs as eS}from"react/jsx-runtime";var Ve=e=>eS(t,{...e,children:[kr("path",{d:"M4 7l16 0"}),kr("path",{d:"M10 11l0 6"}),kr("path",{d:"M14 11l0 6"}),kr("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),kr("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as T2,jsxs as oS}from"react/jsx-runtime";var H0=e=>oS(t,{...e,children:[T2("path",{d:"M3 17l6 -6l4 4l8 -8"}),T2("path",{d:"M14 7l7 0l0 7"})]});import{jsx as N2,jsxs as tS}from"react/jsx-runtime";var U0=e=>tS(t,{...e,children:[N2("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),N2("path",{d:"M5 19h14"})]});import{jsx as F2,jsxs as nS}from"react/jsx-runtime";var G0=e=>nS(t,{...e,children:[F2("path",{d:"M9 14l-4 -4l4 -4"}),F2("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as V0,jsxs as rS}from"react/jsx-runtime";var W0=e=>rS(t,{...e,children:[V0("path",{d:"M3 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6"}),V0("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),V0("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as $0,jsxs as aS}from"react/jsx-runtime";var It=e=>aS(t,{...e,children:[$0("path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1"}),$0("path",{d:"M9 15l3 -3l3 3"}),$0("path",{d:"M12 12l0 9"})]});import{jsx as E2,jsxs as lS}from"react/jsx-runtime";var Br=e=>lS(t,{...e,children:[E2("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),E2("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as q0,jsxs as cS}from"react/jsx-runtime";var X0=e=>cS(t,{...e,children:[q0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),q0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),q0("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as vl,jsxs as sS}from"react/jsx-runtime";var K0=e=>sS(t,{...e,children:[vl("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),vl("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),vl("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),vl("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as Z0,jsxs as iS}from"react/jsx-runtime";var Q0=e=>iS(t,{...e,children:[Z0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Z0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),Z0("path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39z"})]});import{jsx as yl,jsxs as pS}from"react/jsx-runtime";var J0=e=>pS(t,{...e,children:[yl("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),yl("path",{d:"M16 19h6"}),yl("path",{d:"M19 16v6"}),yl("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as Il,jsxs as dS}from"react/jsx-runtime";var Y0=e=>dS(t,{...e,children:[Il("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Il("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Il("path",{d:"M16 22l5 -5"}),Il("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as bl,jsxs as mS}from"react/jsx-runtime";var j0=e=>mS(t,{...e,children:[bl("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),bl("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),bl("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),bl("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as e1,jsxs as uS}from"react/jsx-runtime";var o1=e=>uS(t,{...e,children:[e1("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),e1("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),e1("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"})]});import{jsx as Rr,jsxs as hS}from"react/jsx-runtime";var t1=e=>hS(t,{...e,children:[Rr("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Rr("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),Rr("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Rr("path",{d:"M19 22v-6"}),Rr("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as A2,jsxs as fS}from"react/jsx-runtime";var n1=e=>fS(t,{...e,children:[A2("path",{d:"M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z"}),A2("path",{d:"M3 6m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"})]});import{jsx as r1,jsxs as gS}from"react/jsx-runtime";var a1=e=>gS(t,{...e,children:[r1("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),r1("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),r1("path",{d:"M8 16l-2.091 3.486a1 1 0 0 0 .857 1.514h10.468a1 1 0 0 0 .857 -1.514l-2.091 -3.486"})]});import{jsx as l1,jsxs as vS}from"react/jsx-runtime";var c1=e=>vS(t,{...e,children:[l1("path",{d:"M15 8a5 5 0 0 1 0 8"}),l1("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),l1("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]});import{jsx as z2,jsxs as yS}from"react/jsx-runtime";var s1=e=>yS(t,{...e,children:[z2("path",{d:"M15 8a5 5 0 0 1 0 8"}),z2("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]});import{jsx as O2,jsxs as IS}from"react/jsx-runtime";var i1=e=>IS(t,{...e,children:[O2("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"}),O2("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as _2}from"react/jsx-runtime";var p1=e=>_2(t,{...e,children:_2("path",{d:"M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5"})});import{jsx as H2,jsxs as bS}from"react/jsx-runtime";var Be=e=>bS(t,{...e,children:[H2("path",{d:"M18 6l-12 12"}),H2("path",{d:"M6 6l12 12"})]});import{jsx as U2,jsxs as CS}from"react/jsx-runtime";var d1=e=>CS(t,{...e,children:[U2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),U2("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as G2}from"react/jsx-runtime";var m1=e=>G2(t,{isFilled:!0,...e,children:G2("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-6.489 5.8a1 1 0 0 0 -1.218 1.567l1.292 1.293l-1.292 1.293l-.083 .094a1 1 0 0 0 1.497 1.32l1.293 -1.292l1.293 1.292l.094 .083a1 1 0 0 0 1.32 -1.497l-1.292 -1.293l1.292 -1.293l.083 -.094a1 1 0 0 0 -1.497 -1.32l-1.293 1.292l-1.293 -1.292l-.094 -.083z"})});import{jsx as V2,jsxs as xS}from"react/jsx-runtime";var u1=e=>xS(t,{...e,children:[V2("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),V2("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as Cl,jsxs as PS}from"react/jsx-runtime";var h1=e=>PS(t,{...e,children:[Cl("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Cl("path",{d:"M7 10l6 0"}),Cl("path",{d:"M10 7l0 6"}),Cl("path",{d:"M21 21l-6 -6"})]});import{jsx as f1,jsxs as SS}from"react/jsx-runtime";var g1=e=>SS(t,{...e,children:[f1("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),f1("path",{d:"M7 10l6 0"}),f1("path",{d:"M21 21l-6 -6"})]});var Dr=(d=>(d["48AlertFeatured"]="48AlertFeatured",d["48SuccessFeatured"]="48SuccessFeatured",d.AlertCircle="AlertCircle",d.AlertOctagon="AlertOctagon",d.AlertTriangle="AlertTriangle",d.Apps="Apps",d.ArrowBarDown="ArrowBarDown",d.ArrowBarLeft="ArrowBarLeft",d.ArrowBarRight="ArrowBarRight",d.ArrowBarToDown="ArrowBarToDown",d.ArrowBarToLeft="ArrowBarToLeft",d.ArrowBarToRight="ArrowBarToRight",d.ArrowBarToUp="ArrowBarToUp",d.ArrowBarUp="ArrowBarUp",d.Archive="Archive",d.ArrowDown="ArrowDown",d.ArrowDownLeft="ArrowDownLeft",d.ArrowDownNarrow="ArrowDownNarrow",d.ArrowDownRight="ArrowDownRight",d.ArrowLeft="ArrowLeft",d.ArrowLeftNarrow="ArrowLeftNarrow",d.ArrowRight="ArrowRight",d.ArrowRightNarrow="ArrowRightNarrow",d.ArrowUp="ArrowUp",d.ArrowUpLeft="ArrowUpLeft",d.ArrowUpNarrow="ArrowUpNarrow",d.ArrowUpRight="ArrowUpRight",d.Attachment="Attachment",d.BarChart="BarChart",d.BarChartSquare="BarChartSquare",d.Bell="Bell",d.Bold="Bold",d.Bookmark="Bookmark",d.BookmarkCheck="BookmarkCheck",d.BookmarkCheckFill="BookmarkCheckFill",d.BookmarkFill="BookmarkFill",d.BookmarkMinus="BookmarkMinus",d.BookmarkPlus="BookmarkPlus",d.BookmarkX="BookmarkX",d.BookOpen="BookOpen",d.BoxLines="BoxLines",d.BoxText="BoxText",d.BracketsCheck="BracketsCheck",d.BracketsEllipses="BracketsEllipses",d.BrickWall="BrickWall",d.Briefcase="Briefcase",d.Building="Building",d.Calculator="Calculator",d.Calendar="Calendar",d.Certificate="Certificate",d.Check="Check",d.CheckCircle="CheckCircle",d.CheckCircleBroken="CheckCircleBroken",d.CheckFill="CheckFill",d.CheckVerified="CheckVerified",d.CheckVerifiedFill="CheckVerifiedFill",d.ChevronDown="ChevronDown",d.ChevronDownDouble="ChevronDownDouble",d.ChevronDownLeft="ChevronDownLeft",d.ChevronDownLeftDouble="ChevronDownLeftDouble",d.ChevronDownRight="ChevronDownRight",d.ChevronDownRightDouble="ChevronDownRightDouble",d.ChevronLeft="ChevronLeft",d.ChevronLeftDouble="ChevronLeftDouble",d.ChevronRight="ChevronRight",d.ChevronRightDouble="ChevronRightDouble",d.ChevronSelectorVertical="ChevronSelectorVertical",d.ChevronUp="ChevronUp",d.ChevronUpDouble="ChevronUpDouble",d.ChevronUpLeft="ChevronUpLeft",d.ChevronUpLeftDouble="ChevronUpLeftDouble",d.ChevronUpRight="ChevronUpRight",d.ChevronUpRightDouble="ChevronUpRightDouble",d.Click="Click",d.Clock="Clock",d.ClockFastForward="ClockFastForward",d.ClockPlay="ClockPlay",d.ClockRewind="ClockRewind",d.Clone="Clone",d.Code="Code",d.CodeBrowser="CodeBrowser",d.CodeCircle="CodeCircle",d.Colors="Colors",d.ColumnEdit="ColumnEdit",d.Copy="Copy",d.Copy2="Copy2",d.CopyCheck="CopyCheck",d.CreditCard="CreditCard",d.Cube="Cube",d.CubeOutline="CubeOutline",d.CursorBox="CursorBox",d.Dataflow="Dataflow",d.Dataflow2="Dataflow2",d.Dataflow3="Dataflow3",d.DistributeHorizontal="DistributeHorizontal",d.Dollar="Dollar",d.DollarCircle="DollarCircle",d.Dot="Dot",d.DotFill="DotFill",d.DotsGrid="DotsGrid",d.DotsHorizontal="DotsHorizontal",d.DotsVertical="DotsVertical",d.Download="Download",d.Edit="Edit",d.Editable="Editable",d.Expand="Expand",d.ExternalLink="ExternalLink",d.ExternalLink2="ExternalLink2",d.Eye="Eye",d.EyeHidden="EyeHidden",d.EyeHidden2="EyeHidden2",d.FaceAngry="FaceAngry",d.FaceLaugh="FaceLaugh",d.FaceSmile="FaceSmile",d.File="File",d.FileCheck="FileCheck",d.FileCsv="FileCsv",d.FileDownload="FileDownload",d.FileJson="FileJson",d.FileList="FileList",d.FileMusic="FileMusic",d.FilePdf="FilePdf",d.Files="Files",d.FileSpreadsheet="FileSpreadsheet",d.FileText="FileText",d.FileUpload="FileUpload",d.FileXls="FileXls",d.FileXlsx="FileXlsx",d.FileZip="FileZip",d.Filter="Filter",d.Filter2="Filter2",d.Flag="Flag",d.Flag2="Flag2",d.FlagFill="FlagFill",d.Focus="Focus",d.Folder="Folder",d.FolderExport="FolderExport",d.FolderImport="FolderImport",d.GraduationCap="GraduationCap",d.GripVertical="GripVertical",d.Hand="Hand",d.HandShield="HandShield",d.Hash="Hash",d.HeadsetMic="HeadsetMic",d.Heart="Heart",d.HeartFill="HeartFill",d.House="House",d.HouseLine="HouseLine",d.Image="Image",d.Image2="Image2",d.ImageCheck="ImageCheck",d.ImageOff="ImageOff",d.Import="Import",d.Inbox="Inbox",d.InfoCircle="InfoCircle",d.InfoHexagon="InfoHexagon",d.Italic="Italic",d.LayersMultiple="LayersMultiple",d.LayersSingle="LayersSingle",d.Layout="Layout",d.Layout2="Layout2",d.LayoutColumns="LayoutColumns",d.LayoutCustom="LayoutCustom",d.LayoutStuffed="LayoutStuffed",d.LayoutTile="LayoutTile",d.LifeBuoy="LifeBuoy",d.Lightbulb="Lightbulb",d.Lightning="Lightning",d.LightningFast="LightningFast",d.LineChart="LineChart",d.LineChartBar="LineChartBar",d.LineChartBreakoutSquare="LineChartBreakoutSquare",d.LineChartUp="LineChartUp",d.Lines="Lines",d.LinesCheck="LinesCheck",d.LinesPlay="LinesPlay",d.Link="Link",d.Link2="Link2",d.LinkOff="LinkOff",d.ListBullet="ListBullet",d.ListOrder="ListOrder",d.Lock="Lock",d.LockFill="LockFill",d.LogIn="LogIn",d.LogOut="LogOut",d.LogOut2="LogOut2",d.MagicWand="MagicWand",d.Mail="Mail",d.MapPin="MapPin",d.Maximize="Maximize",d.Maximize2="Maximize2",d.MessageCircle="MessageCircle",d.MessageSquare="MessageSquare",d.MessageSquare2="MessageSquare2",d.MessageXSquare="MessageXSquare",d.Microphone="Microphone",d.Minimize="Minimize",d.Minimize2="Minimize2",d.MinusCircle="MinusCircle",d.Mobile="Mobile",d.Monitor="Monitor",d.Monitor2="Monitor2",d.Moon="Moon",d.MoonCircle="MoonCircle",d.Movie="Movie",d.NavigationPointer="NavigationPointer",d.NotificationBox="NotificationBox",d.Package="Package",d.Palette="Palette",d.PasscodeLock="PasscodeLock",d.Pause="Pause",d.PauseCircle="PauseCircle",d.PCSetup="PCSetup",d.Pen="Pen",d.PercentageCircle="PercentageCircle",d.Perspective="Perspective",d.PhoneCall="PhoneCall",d.Pin="Pin",d.Play="Play",d.PlayCircle="PlayCircle",d.Plus="Plus",d.PlusCircle="PlusCircle",d.Printer="Printer",d.Pulse="Pulse",d.QuestionCircle="QuestionCircle",d.Quote="Quote",d.RadioButton="RadioButton",d.RadioButtonFill="RadioButtonFill",d.Receipt="Receipt",d.ReceiptCheck="ReceiptCheck",d.Redo="Redo",d.Refresh="Refresh",d.Refresh2="Refresh2",d.Refresh3="Refresh3",d.Repeat="Repeat",d.Replace="Replace",d.Replay="Replay",d.Restore="Restore",d.Rocket="Rocket",d.RoundChart="RoundChart",d.RoundChart2="RoundChart2",d.Route="Route",d.Save="Save",d.ScanDots="ScanDots",d.Scissors="Scissors",d.Search="Search",d.Send="Send",d.Server="Server",d.Settings="Settings",d.Settings2="Settings2",d.Share="Share",d.ShieldLightning="ShieldLightning",d.ShieldPlus="ShieldPlus",d.ShieldRemove="ShieldRemove",d.ShoppingBag="ShoppingBag",d.ShoppingCart="ShoppingCart",d.Shrink="Shrink",d.Shuffle="Shuffle",d.SkipForward="SkipForward",d.SlashCircle="SlashCircle",d.SlashOctagon="SlashOctagon",d.SocialAndroid="SocialAndroid",d.SocialApple="SocialApple",d.SocialGithub="SocialGithub",d.SocialGlobe="SocialGlobe",d.SocialGoogle="SocialGoogle",d.SocialInstagram="SocialInstagram",d.SocialLinkedin="SocialLinkedin",d.SocialMastercard="SocialMastercard",d.SocialReact="SocialReact",d.SocialVisa="SocialVisa",d.SocialX="SocialX",d.Speedometer="Speedometer",d.Stairs="Stairs",d.Star="Star",d.StarFill="StarFill",d.StarHalf="StarHalf",d.Stars="Stars",d.Stop="Stop",d.Strikethrough="Strikethrough",d.Sun="Sun",d.Swap="Swap",d.SwitchHorizontal="SwitchHorizontal",d.Table="Table",d.Tag="Tag",d.Target="Target",d.Target2="Target2",d.TextFormat="TextFormat",d.TextFormat2="TextFormat2",d.TextHighlight="TextHighlight",d.ThumbsDown="ThumbsDown",d.ThumbsUp="ThumbsUp",d.ThumbsUpFill="ThumbsUpFill",d.Toggle="Toggle",d.Translate="Translate",d.Trash="Trash",d.Trending="Trending",d.Underline="Underline",d.Undo="Undo",d.Unlock="Unlock",d.UploadCloud="UploadCloud",d.User="User",d.UserCheck="UserCheck",d.UserDollar="UserDollar",d.UserEdit="UserEdit",d.UserPlus="UserPlus",d.UserRight="UserRight",d.Users="Users",d.UserSquare="UserSquare",d.UsersUp="UsersUp",d.UserVoice="UserVoice",d.Video="Video",d.VideoChat="VideoChat",d.Volume="Volume",d.VolumeDown="VolumeDown",d.VolumeMute="VolumeMute",d.Wrench="Wrench",d.X="X",d.XCircle="XCircle",d.XCircleFill="XCircleFill",d.XSquare="XSquare",d.ZoomIn="ZoomIn",d.ZoomOut="ZoomOut",d))(Dr||{});import{jsx as m}from"react/jsx-runtime";function Ee({name:e,...o}){switch(e){case"48AlertFeatured":return m(Gc,{...o});case"48SuccessFeatured":return m(Vc,{...o});case"AlertCircle":return m(it,{...o});case"AlertOctagon":return m($c,{...o});case"AlertTriangle":return m(Xc,{...o});case"ArrowBarDown":return m(Jc,{...o});case"ArrowBarLeft":return m(Yc,{...o});case"ArrowBarRight":return m(jc,{...o});case"ArrowBarToDown":return m(es,{...o});case"ArrowBarToLeft":return m(os,{...o});case"ArrowBarToRight":return m(ts,{...o});case"ArrowBarToUp":return m(ns,{...o});case"ArrowBarUp":return m(rs,{...o});case"Apps":return m(Kc,{...o});case"Archive":return m(Qc,{...o});case"ArrowDown":return m(ls,{...o});case"ArrowDownLeft":return m(cs,{...o});case"ArrowDownNarrow":return m(is,{...o});case"ArrowDownRight":return m(ps,{...o});case"ArrowLeft":return m(ms,{...o});case"ArrowLeftNarrow":return m(hs,{...o});case"ArrowRight":return m(gs,{...o});case"ArrowRightNarrow":return m(ys,{...o});case"ArrowUp":return m(bs,{...o});case"ArrowUpLeft":return m(Cs,{...o});case"ArrowUpNarrow":return m(Ps,{...o});case"ArrowUpRight":return m(Ss,{...o});case"Attachment":return m(Ms,{...o});case"BarChart":return m(ws,{...o});case"BarChartSquare":return m(ks,{...o});case"Bell":return m(Bs,{...o});case"Bold":return m(Rs,{...o});case"BookOpen":return m(Es,{...o});case"Bookmark":return m(Ds,{...o});case"BookmarkCheck":return m(Ec,{...o});case"BookmarkCheckFill":return m(Ac,{...o});case"BookmarkFill":return m(Ls,{...o});case"BookmarkMinus":return m(Ts,{...o});case"BookmarkPlus":return m(Oc,{...o});case"BookmarkX":return m(Fs,{...o});case"BoxLines":return m(As,{...o});case"BoxText":return m(Os,{...o});case"BracketsCheck":return m(Hs,{...o});case"BracketsEllipses":return m(Us,{...o});case"BrickWall":return m(Gs,{...o});case"Briefcase":return m(Vs,{...o});case"Building":return m(_c,{...o});case"Calculator":return m(Ws,{...o});case"Calendar":return m($n,{...o});case"Certificate":return m($s,{...o});case"Check":return m(vo,{...o});case"CheckCircle":return m(pt,{...o});case"CheckCircleBroken":return m(qs,{...o});case"CheckFill":return m(Xs,{...o});case"CheckVerified":return m(Ks,{...o});case"CheckVerifiedFill":return m(Zs,{...o});case"ChevronDown":return m(Qs,{...o});case"ChevronDownDouble":return m(Js,{...o});case"ChevronDownLeft":return m(Ys,{...o});case"ChevronDownLeftDouble":return m(js,{...o});case"ChevronDownRight":return m(ei,{...o});case"ChevronDownRightDouble":return m(oi,{...o});case"ChevronLeft":return m(yo,{...o});case"ChevronLeftDouble":return m(ti,{...o});case"ChevronRight":return m(Je,{...o});case"ChevronRightDouble":return m(qn,{...o});case"ChevronSelectorVertical":return m(ni,{...o});case"ChevronUp":return m(Io,{...o});case"ChevronUpDouble":return m(ri,{...o});case"ChevronUpLeft":return m(ai,{...o});case"ChevronUpLeftDouble":return m(li,{...o});case"ChevronUpRight":return m(ci,{...o});case"ChevronUpRightDouble":return m(si,{...o});case"Click":return m(ii,{...o});case"Clock":return m(pi,{...o});case"ClockFastForward":return m(di,{...o});case"ClockPlay":return m(ui,{...o});case"ClockRewind":return m(hi,{...o});case"Clone":return m(fi,{...o});case"Code":return m(vi,{...o});case"CodeBrowser":return m(yi,{...o});case"CodeCircle":return m(bi,{...o});case"Colors":return m(xi,{...o});case"ColumnEdit":return m(Hc,{...o});case"Copy":return m(Pi,{...o});case"Copy2":return m(Si,{...o});case"CopyCheck":return m(wi,{...o});case"Files":return m(mp,{...o});case"CreditCard":return m(ki,{...o});case"Cube":return m(Bi,{...o});case"CubeOutline":return m(Ri,{...o});case"CursorBox":return m(Kn,{...o});case"Dataflow":return m(Di,{...o});case"Dataflow2":return m(Li,{...o});case"Dataflow3":return m(Ti,{...o});case"DistributeHorizontal":return m(Fi,{...o});case"Dollar":return m(Ei,{...o});case"DollarCircle":return m(zi,{...o});case"Dot":return m(Oi,{...o});case"DotFill":return m(_i,{...o});case"DotsGrid":return m(Hi,{...o});case"DotsHorizontal":return m(Gi,{...o});case"DotsVertical":return m(jt,{...o});case"Download":return m($i,{...o});case"Edit":return m(qi,{...o});case"Editable":return m(Ki,{...o});case"Expand":return m(Zi,{...o});case"ExternalLink":return m(Ji,{...o});case"ExternalLink2":return m(ji,{...o});case"Eye":return m(ep,{...o});case"EyeHidden":return m(tp,{...o});case"EyeHidden2":return m(np,{...o});case"FaceAngry":return m(rp,{...o});case"FaceLaugh":return m(ap,{...o});case"FaceSmile":return m(lp,{...o});case"File":return m(mt,{...o});case"FileCheck":return m(sp,{...o});case"FileCsv":return m(Yn,{...o});case"FileDownload":return m(ip,{...o});case"FileJson":return m(jn,{...o});case"FileList":return m(pp,{...o});case"FileMusic":return m(Ge,{...o});case"FilePdf":return m(ut,{...o});case"FileSpreadsheet":return m(or,{...o});case"FileText":return m(Co,{...o});case"FileUpload":return m(up,{...o});case"FileXls":return m(nr,{...o});case"FileXlsx":return m(rr,{...o});case"FileZip":return m(to,{...o});case"Filter":return m(hp,{...o});case"Filter2":return m(ar,{...o});case"Flag":return m(gp,{...o});case"Flag2":return m(vp,{...o});case"FlagFill":return m(yp,{...o});case"Focus":return m(Ip,{...o});case"Folder":return m(bp,{...o});case"FolderExport":return m(Cp,{...o});case"FolderImport":return m(xp,{...o});case"GraduationCap":return m(Pp,{...o});case"GripVertical":return m(Sp,{...o});case"Hand":return m(Mp,{...o});case"HandShield":return m(wp,{...o});case"Hash":return m(kp,{...o});case"HeadsetMic":return m(Bp,{...o});case"Heart":return m(Rp,{...o});case"HeartFill":return m(Dp,{...o});case"House":return m(Tp,{...o});case"HouseLine":return m(cr,{...o});case"Image":return m(we,{...o});case"Image2":return m(Np,{...o});case"ImageCheck":return m(Fp,{...o});case"ImageOff":return m(Ep,{...o});case"Import":return m(Ap,{...o});case"Inbox":return m(zp,{...o});case"InfoCircle":return m(_p,{...o});case"InfoHexagon":return m(Up,{...o});case"Italic":return m(Vp,{...o});case"LayersMultiple":return m($p,{...o});case"LayersSingle":return m(qp,{...o});case"Layout":return m(Xp,{...o});case"Layout2":return m(Zp,{...o});case"LayoutColumns":return m(Qp,{...o});case"LayoutCustom":return m(Jp,{...o});case"LayoutStuffed":return m(jp,{...o});case"LayoutTile":return m(ed,{...o});case"LifeBuoy":return m(od,{...o});case"Lightbulb":return m(nd,{...o});case"Lightning":return m(rd,{...o});case"LightningFast":return m(ad,{...o});case"LineChartBar":return m(cd,{...o});case"LineChartBreakoutSquare":return m(sd,{...o});case"LineChart":return m(ld,{...o});case"LineChartUp":return m(pd,{...o});case"Lines":return m(dd,{...o});case"LinesCheck":return m(md,{...o});case"LinesPlay":return m(ud,{...o});case"Link":return m(fd,{...o});case"Link2":return m(gd,{...o});case"LinkOff":return m(vd,{...o});case"ListBullet":return m(yd,{...o});case"ListOrder":return m(Id,{...o});case"Lock":return m(Cd,{...o});case"LockFill":return m(xd,{...o});case"LogIn":return m(Sd,{...o});case"LogOut":return m(wd,{...o});case"LogOut2":return m(Bd,{...o});case"MagicWand":return m(Rd,{...o});case"Mail":return m(Dd,{...o});case"MapPin":return m(Ld,{...o});case"Maximize":return m(Td,{...o});case"Maximize2":return m(Nd,{...o});case"MessageCircle":return m(Fd,{...o});case"MessageSquare":return m(Ad,{...o});case"MessageSquare2":return m(zd,{...o});case"MessageXSquare":return m(Od,{...o});case"Microphone":return m(hr,{...o});case"Minimize":return m(_d,{...o});case"Minimize2":return m(Hd,{...o});case"MinusCircle":return m(Ud,{...o});case"Mobile":return m(Vd,{...o});case"Monitor":return m(Wd,{...o});case"Monitor2":return m($d,{...o});case"Moon":return m(qd,{...o});case"MoonCircle":return m(Xd,{...o});case"Movie":return m(Ye,{...o});case"NavigationPointer":return m(Kd,{...o});case"NotificationBox":return m(Zd,{...o});case"Package":return m(Qd,{...o});case"Palette":return m(Jd,{...o});case"PasscodeLock":return m(Yd,{...o});case"Pause":return m(ht,{...o});case"PauseCircle":return m(em,{...o});case"PCSetup":return m(tm,{...o});case"Pen":return m(rm,{...o});case"PercentageCircle":return m(am,{...o});case"Perspective":return m(lm,{...o});case"PhoneCall":return m(sm,{...o});case"Pin":return m(yr,{...o});case"Play":return m(ft,{...o});case"PlayCircle":return m(pm,{...o});case"Plus":return m(dm,{...o});case"PlusCircle":return m(Go,{...o});case"Printer":return m(hm,{...o});case"Pulse":return m(fm,{...o});case"QuestionCircle":return m(Ir,{...o});case"Quote":return m(vm,{...o});case"RadioButton":return m(ym,{...o});case"RadioButtonFill":return m(Im,{...o});case"Receipt":return m(bm,{...o});case"ReceiptCheck":return m(Cm,{...o});case"Redo":return m(xm,{...o});case"Refresh":return m(Pm,{...o});case"Refresh2":return m(Sm,{...o});case"Refresh3":return m(Mm,{...o});case"Repeat":return m(wm,{...o});case"Replace":return m(km,{...o});case"Replay":return m(Bm,{...o});case"Restore":return m(Dm,{...o});case"Rocket":return m(Tm,{...o});case"RoundChart":return m(Nm,{...o});case"RoundChart2":return m(Fm,{...o});case"Route":return m(Am,{...o});case"Save":return m(Om,{...o});case"ScanDots":return m(_m,{...o});case"Scissors":return m(br,{...o});case"Search":return m(gt,{...o});case"Send":return m(Hm,{...o});case"Server":return m(Um,{...o});case"Settings":return m(Gm,{...o});case"Settings2":return m(Vm,{...o});case"Share":return m(Wm,{...o});case"ShieldLightning":return m($m,{...o});case"ShieldPlus":return m(Xm,{...o});case"ShieldRemove":return m(Zm,{...o});case"ShoppingBag":return m(Qm,{...o});case"ShoppingCart":return m(Jm,{...o});case"Shrink":return m(Ym,{...o});case"Shuffle":return m(jm,{...o});case"SkipForward":return m(e0,{...o});case"SlashCircle":return m(o0,{...o});case"SlashOctagon":return m(t0,{...o});case"SocialAndroid":return m(n0,{...o});case"SocialApple":return m(r0,{...o});case"SocialGithub":return m(a0,{...o});case"SocialGlobe":return m(l0,{...o});case"SocialGoogle":return m(c0,{...o});case"SocialInstagram":return m(i0,{...o});case"SocialLinkedin":return m(p0,{...o});case"SocialMastercard":return m(m0,{...o});case"SocialReact":return m(u0,{...o});case"SocialVisa":return m(h0,{...o});case"SocialX":return m(f0,{...o});case"Speedometer":return m(g0,{...o});case"Stairs":return m(v0,{...o});case"Star":return m(Mr,{...o});case"StarFill":return m(y0,{...o});case"StarHalf":return m(I0,{...o});case"Stars":return m(b0,{...o});case"Stop":return m(wr,{...o});case"Strikethrough":return m(C0,{...o});case"Sun":return m(x0,{...o});case"Swap":return m(P0,{...o});case"SwitchHorizontal":return m(S0,{...o});case"Table":return m(w0,{...o});case"Tag":return m(k0,{...o});case"Target":return m(B0,{...o});case"Target2":return m(D0,{...o});case"TextFormat":return m(T0,{...o});case"TextFormat2":return m(N0,{...o});case"TextHighlight":return m(F0,{...o});case"ThumbsDown":return m(E0,{...o});case"ThumbsUp":return m(A0,{...o});case"ThumbsUpFill":return m(z0,{...o});case"Toggle":return m(O0,{...o});case"Translate":return m(_0,{...o});case"Trash":return m(Ve,{...o});case"Trending":return m(H0,{...o});case"Underline":return m(U0,{...o});case"Undo":return m(G0,{...o});case"Unlock":return m(W0,{...o});case"UploadCloud":return m(It,{...o});case"User":return m(Br,{...o});case"UserCheck":return m(X0,{...o});case"UserDollar":return m(K0,{...o});case"UserEdit":return m(Q0,{...o});case"UserPlus":return m(J0,{...o});case"UserRight":return m(Y0,{...o});case"UserSquare":return m(o1,{...o});case"Users":return m(j0,{...o});case"UsersUp":return m(t1,{...o});case"UserVoice":return m(Uc,{...o});case"Video":return m(n1,{...o});case"VideoChat":return m(a1,{...o});case"Volume":return m(c1,{...o});case"VolumeDown":return m(s1,{...o});case"VolumeMute":return m(i1,{...o});case"Wrench":return m(p1,{...o});case"X":return m(Be,{...o});case"XCircle":return m(d1,{...o});case"XCircleFill":return m(m1,{...o});case"XSquare":return m(u1,{...o});case"ZoomIn":return m(h1,{...o});case"ZoomOut":return m(g1,{...o});default:return null}}var W2=mt,$2={png:we,jpg:we,jpeg:we,gif:we,bmp:we,webp:we,svg:we,avif:we,heic:we,ico:we,tif:we,tiff:we,mp4:Ye,mov:Ye,webm:Ye,avi:Ye,mkv:Ye,m4v:Ye,ogv:Ye,mp3:Ge,wav:Ge,ogg:Ge,oga:Ge,m4a:Ge,aac:Ge,flac:Ge,weba:Ge,pdf:ut,doc:Co,docx:Co,txt:Co,rtf:Co,odt:Co,json:jn,csv:Yn,xls:nr,xlsx:rr,ods:or,zip:to,rar:to,"7z":to,tar:to,gz:to,tgz:to};var v1=e=>{let o=e?.trim().replace(/^\./,"").toLowerCase();return o&&$2[o]||W2};import{cn as y1,ColorHelpers as MS}from"@cleen/ui-core";import{forwardRef as wS}from"react";import{Fragment as BS,jsx as Lr,jsxs as RS}from"react/jsx-runtime";var kS=wS(function({iconName:o,iconSrc:r,icon:n,iconSize:l=20,header:a,color:c,children:s,classNames:u,styles:p,...i},f){let h=MS.getComputedColor(c);return Lr(le,{ref:f,classNames:{...u,header:{...u?.header,title:y1("cleen-flex cleen-gap-4",u?.header?.title)}},header:{...a,title:RS(BS,{children:[Lr("div",{className:y1("cleen-flex cleen-w-10 cleen-h-10 cleen-justify-center cleen-items-center cleen-gap-2 cleen-flex-shrink-0 cleen-rounded-xl cleen-border cleen-border-gray-200 cleen-bg-background",u?.iconHolder),style:{...h&&{backgroundColor:_n(h,.85),color:h,borderColor:"transparent"},...p?.iconHolder},children:n||(o?Lr(Ee,{name:o,className:"cleen-text-gray-900",style:{width:l,height:l,...h&&{color:h}}}):r?Lr("img",{src:r,alt:"Icon",className:"cleen-text-gray-900",style:{width:l,height:l,...h&&{color:h}}}):null)}),a?.title]})},color:c,...i,children:s&&Lr("div",{className:y1("cleen-flex-1",u?.content),style:p?.content,children:s})})});import{cn as hn}from"@cleen/ui-core";import{forwardRef as DS,useMemo as LS}from"react";import{jsx as Tr}from"react/jsx-runtime";var TS=DS(function({media:o,header:r,color:n,children:l,classNames:a,styles:c,...s},u){let p=LS(()=>{switch(o?.type){case"image":return Tr("img",{...o,alt:o.alt??"Card media",className:hn("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"video":return Tr("video",{playsInline:!0,controls:!0,...o,className:hn("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"iframe":return Tr("iframe",{...o,title:o.title??"Card iframe",className:hn("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});default:return null}},[o,a?.media,c?.media]);return Tr(le,{ref:u,color:n,classNames:{...a,container:hn("cleen-pt-0",a?.container),header:{...a?.header,content:hn("cleen-p-0",a?.header?.content)}},header:{...r,...p&&{content:Tr("div",{className:hn("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",a?.media?.container),style:c?.media?.container,children:p})}},...s,children:l})});import{cn as Nr}from"@cleen/ui-core";import{jsx as xl,jsxs as NS}from"react/jsx-runtime";var Y=({className:e,classNames:o,style:r,styles:n,infoMessage:l,errorMessage:a,subtitle:c,...s})=>xl("div",{className:Nr("cleen",e),style:r,children:NS("div",{className:Nr(o?.container),style:n?.container,...s,children:[l&&xl("div",{className:Nr("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-primary",o?.infoMessage),style:n?.infoMessage,role:"note",children:l}),a&&xl("div",{className:Nr("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",o?.errorMessage),style:n?.errorMessage,role:"alert",children:a}),c&&xl("div",{className:Nr("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-gray-600",o?.subtitle),style:n?.subtitle,children:c})]})});import{cn as Fr}from"@cleen/ui-core";import{jsx as Er,jsxs as FS}from"react/jsx-runtime";var ee=({required:e=!1,tooltip:o,children:r,className:n,classNames:l,style:a,styles:c,...s})=>Er("div",{className:Fr("cleen",n),style:a,children:FS("label",{...s,className:Fr("cleen-w-full cleen-flex cleen-gap-1 cleen-items-center cleen-font-medium cleen-text-gray-700 cleen-text-sm cleen-leading-6",l?.container),style:c?.container,children:[Er("div",{className:Fr({"cleen-flex-1":!e&&!o},l?.label),style:c?.label,children:r}),e&&Er("span",{className:Fr("cleen-text-primary",l?.required),style:c?.required,children:"*"}),o&&Er(ue,{hasArrow:!0,placement:"top",label:o,color:"rgb(var(--cleen-gray-600))",...l?.tooltip,style:c?.tooltip?.style,styles:{...c?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...c?.tooltip?.styles?.labelContainer}},children:Er(Ir,{className:Fr("cleen-size-3 cleen-text-gray-400 hover:cleen-text-gray-700 cleen-transition-colors",l?.questionIcon),style:c?.questionIcon})})]})});import{cn as Po}from"@cleen/ui-core";import{forwardRef as ES,useEffect as AS,useId as zS,useMemo as OS,useState as q2}from"react";import{jsx as $o,jsxs as Pl}from"react/jsx-runtime";var de=ES(function({name:o,id:r,type:n,label:l,labelTooltip:a,defaultValue:c,value:s,files:u,disabled:p,required:i,className:f,classNames:h,style:b,styles:I,autoComplete:v="off",isFocusedBorder:y,maxLength:x,minLength:C,maxLengthLabelThreshold:g=.5,uploadLabel:P="Choose a file",leftIcon:M,rightIcon:B,topRightIcon:w,inputOverlay:k,infoLabels:D,maxLengthLabel:E,minLengthLabel:N,onChange:R,...F},T){let S=s!==void 0||u!==void 0,[z,L]=q2(c??""),[O,_]=q2(null),H=S?s:z,G=S?u:O;AS(()=>{S||L(s??c??"")},[s,c,S]);let q=A=>{let Z=A.target.value;if(n==="file"&&A.target.files){S||_(A.target.files),R?.(A);return}(!x||Z.length<=x)&&(S||L(Z),R?.(A))},$=OS(()=>C&&N&&(H?.toString()?.length??0)<C?N(C-(H?.toString()?.length??0)):!x||!E||(H?.toString()?.length??0)/x<g?D?.subtitle:E?.(x-(H?.toString()?.length??0)),[H,x,g,D?.subtitle]),U=zS(),V=!!(D?.errorMessage||D?.infoMessage||$),J=V?`${U}-info`:void 0;return $o("div",{className:Po("cleen",f),style:b,children:Pl("div",{className:Po("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-normal",h?.container),style:I?.container,children:[(l||w)&&Pl("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[$o(ee,{htmlFor:r||o,required:i,tooltip:a,className:Po("cleen-w-full",h?.label?.className),classNames:h?.label?.classNames,...I?.label,children:l}),w]}),Pl("label",{className:Po("cleen-relative cleen-flex cleen-items-stretch cleen-bg-background cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-colors cleen-duration-200 cleen-overflow-hidden focus-within:cleen-ring-4 focus-within:cleen-ring-primary-100 focus-within:cleen-ring-offset-0 focus-within:cleen-border-primary-400",{"has-[:focus]:cleen-border has-[:focus]:cleen-border-primary/30":y},p&&"cleen-bg-gray-100",{"cleen-cursor-pointer":n==="file"&&!p},D?.errorMessage?["cleen-border-error/50",!p&&"hover:cleen-border-error/70"]:["cleen-border-gray-300",!p&&"hover:cleen-border-gray-200 focus-within:cleen-border-primary focus-within:hover:cleen-border-primary"],h?.inputContainer),style:I?.inputContainer,children:[M&&$o("div",{className:Po("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-l-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",p?"cleen-text-gray-400":"cleen-text-gray-500",h?.leftIconContainer),style:I?.leftIconContainer,children:M}),Pl("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[$o("input",{id:r||o,name:o,type:n,disabled:p,maxLength:x,autoComplete:v,value:H,className:Po("cleen-block cleen-border-0 cleen-bg-transparent cleen-rounded-md cleen-w-full cleen-text-base","cleen-py-2 cleen-pr-2 placeholder:cleen-text-gray-400 sm:cleen-text-sm focus:cleen-ring-transparent focus:cleen-outline-none cleen-my-auto",M?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":M,"cleen-rounded-r-none":B,"cleen-hidden":n==="file"},p?"cleen-text-gray-400":"cleen-text-gray-900",h?.input),style:I?.input,onChange:q,required:i,"aria-invalid":D?.errorMessage?!0:void 0,"aria-describedby":J,ref:T,...F}),k&&$o("div",{className:Po("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",M?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",h?.inputOverlay),style:I?.inputOverlay,children:k}),n==="file"&&$o("p",{className:Po("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",p?"cleen-text-gray-400":"cleen-text-gray-500",G&&G.length>0&&"cleen-text-gray-900"),children:G&&G.length>0?Array.from(G).map(A=>A.name).join(", "):P})]}),B&&$o("div",{className:Po("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-r-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",p?"cleen-text-gray-400":"cleen-text-gray-500",h?.rightIconContainer),style:I?.rightIconContainer,children:B})]}),V&&$o(Y,{id:J,...D,subtitle:$})]})})});import{cn as Ar,useOutsideClick as _S}from"@cleen/ui-core";import{forwardRef as HS,useEffect as X2,useImperativeHandle as US,useMemo as GS,useRef as VS,useState as Sl}from"react";import{jsx as zr,jsxs as WS}from"react/jsx-runtime";var I1=HS(function({value:o,defaultValue:r,defaultIsEditing:n=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:s,canEdit:u=!0,onSave:p,onCancel:i,onChange:f,inputProps:h,blurOnOutsideClick:b=!0,saveOnBlur:I=!0,isLoading:v,customLoader:y=zr(te,{}),selectAllOnEdit:x=!1,renderText:C,className:g,classNames:P,style:M,styles:B,...w},k){let D=o!==void 0,[E,N]=Sl(r??""),R=D?o??"":E,[F,T]=Sl(!1),S=v??F,z=GS(()=>typeof C=="function"?C(R):C||R||s||c,[R,C,c,s]),[L,O]=Sl(n),_=l!==void 0,H=_?l:L,[G,q]=Sl(R),$=VS(null);US(k,()=>({...$.current,save:V,cancel:U})),X2(()=>{D||N(r??"")},[r,D]),X2(()=>{H||q(R)},[R,H]);let U=async()=>{_||O(!1),a?.(!1),q(R),await i?.()},V=async()=>{if(!S){if(R===G){await i?.(),_||O(!1),a?.(!1);return}T(!0),D||N(G);try{await p?.(G),_||O(!1),a?.(!1)}finally{T(!1)}}},J=async A=>{A.key==="Enter"&&(A.preventDefault(),await V()),A.key==="Escape"&&(A.stopPropagation(),A.preventDefault(),await U()),h?.onKeyDown?.(A)};return _S({refs:[$],enabled:b&&H,handler:async()=>{I?await V():await U()}}),zr("div",{className:Ar("cleen",g),style:M,ref:$,...w,children:H?WS("div",{className:Ar("cleen-relative cleen-h-full",P?.container),style:B?.container,children:[zr(de,{value:G,onChange:A=>{q(A.target.value),f?.(A.target.value)},autoFocus:!0,placeholder:c,className:P?.input?.className,classNames:{...P?.input?.classNames,inputContainer:Ar("cleen-border-primary hover:cleen-border-primary/60",P?.input?.classNames?.inputContainer)},...B?.input,...h,onFocus:A=>{h?.onFocus?.(A),x&&A.target.select()},disabled:S||h?.disabled,onKeyDown:J}),S&&zr("div",{className:Ar("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",P?.loaderContainer),style:B?.loaderContainer,children:y})]}):zr("div",{onClick:()=>{u&&(_||O(!0),a?.(!0))},className:Ar("cleen-min-h-6 cleen-text-gray-900",u&&"cleen-cursor-text hover:cleen-bg-gray-100 cleen-rounded cleen-p-2 cleen-transition-colors",!R&&"cleen-text-gray-500",P?.preview),style:B?.preview,children:z})})});import{cn as fn}from"@cleen/ui-core";import{forwardRef as $S,useEffect as K2,useId as qS,useMemo as XS,useRef as KS,useState as ZS}from"react";import{jsx as bt,jsxs as b1}from"react/jsx-runtime";var C1=$S(function({name:o,id:r,value:n,defaultValue:l,label:a,labelTooltip:c,disabled:s,required:u,infoLabels:p,topRightElement:i,labelRightElement:f,textareaOverlay:h,onChange:b,minHeight:I,maxHeight:v=200,autoResize:y=!0,maxLength:x,minLength:C,maxLengthLabelThreshold:g=.5,maxLengthLabel:P,minLengthLabel:M,className:B,classNames:w,style:k,styles:D,...E},N){let R=n!==void 0,[F,T]=ZS(typeof l=="string"?l:""),S=KS(null),z=N??S,L=R?n:F;K2(()=>{R||T(n??(typeof l=="string"?l:""))},[n,l,R]);let O=A=>{A.style.height="auto";let Z=Math.min(A.scrollHeight,v);A.style.height=`${Z}px`},_=A=>{O(A.target)};K2(()=>{!y||!S.current||O(S.current)},[y,L,v]);let H=A=>{A.preventDefault()},G=A=>{A.preventDefault();let Z=A.dataTransfer?.getData("text/plain");R?b?.(`${n??""}${Z}`):(T(ce=>`${ce}${Z}`),b?.(`${F}${Z}`))},q=A=>{let Z=A.target.value;(!x||Z.length<=x)&&(R||T(Z),b?.(Z),y&&_(A))},$=XS(()=>C&&M&&(L?.length??0)<C?M(C-(L?.length??0)):!x||!P||(L?.toString()?.length??0)/x<g?p?.subtitle:P?.(x-(L?.toString()?.length??0)),[L,x,g,p?.subtitle]),U=qS(),V=!!(p?.errorMessage||p?.infoMessage||$),J=V?`${U}-info`:void 0;return bt("div",{className:fn("cleen",B),style:k,children:b1("div",{className:fn("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",w?.container),style:D?.container,children:[(a||f)&&b1("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[a&&bt(ee,{htmlFor:r||o,required:u,tooltip:c,className:fn("cleen-w-full",w?.label?.className),classNames:w?.label?.classNames,...D?.label,children:a}),f&&bt("div",{className:"cleen-ml-auto",children:f})]}),b1("div",{className:fn("cleen-relative cleen-flex cleen-items-center cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-colors cleen-duration-200",p?.errorMessage?"cleen-border-error/50 hover:cleen-border-error/70":"cleen-border-gray-300 hover:cleen-border-gray-200 focus-within:cleen-border-primary focus-within:hover:cleen-border-primary",w?.textareaContainer),style:D?.textareaContainer,children:[i&&bt("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:i}),h&&bt("div",{className:fn("cleen-absolute cleen-inset-0 cleen-px-3.5 cleen-py-3 cleen-rounded-lg cleen-overflow-y-auto cleen-text-sm cleen-leading-6",s?"cleen-bg-gray-100":"cleen-bg-background"),children:h}),bt("textarea",{id:r||o,name:o,ref:z,disabled:s,value:L,minLength:C,maxLength:x,"aria-invalid":p?.errorMessage?!0:void 0,"aria-describedby":J,className:fn("cleen-block cleen-flex-1 cleen-px-3.5 cleen-py-3 cleen-border-0 cleen-rounded-lg focus:cleen-outline-none focus:cleen-ring-transparent placeholder:cleen-text-gray-500 sm:cleen-text-sm cleen-text-base",s?"cleen-bg-gray-100 cleen-text-gray-400":"cleen-bg-background cleen-text-gray-900",w?.textarea),style:{...I&&{minHeight:`${I}px`},...D?.textarea},onFocus:A=>A.currentTarget.setSelectionRange(A.currentTarget.value.length,A.currentTarget.value.length),onDragOver:H,onDrop:G,...E,onChange:q})]}),V&&bt(Y,{id:J,...p,subtitle:$})]})})});import{cn as Or,useOutsideClick as QS}from"@cleen/ui-core";import{forwardRef as JS,useEffect as Z2,useImperativeHandle as YS,useMemo as jS,useRef as e4,useState as Ml}from"react";import{jsx as _r,jsxs as o4}from"react/jsx-runtime";var x1=JS(function({value:o,defaultValue:r,defaultIsEditing:n=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:s,canEdit:u=!0,onSave:p,onCancel:i,onChange:f,textAreaProps:h,blurOnOutsideClick:b=!0,saveOnBlur:I=!0,isLoading:v,customLoader:y=_r(te,{size:"md"}),selectAllOnEdit:x=!1,renderText:C,className:g,classNames:P,style:M,styles:B,...w},k){let D=o!==void 0,[E,N]=Ml(r??""),R=D?o??"":E,[F,T]=Ml(!1),S=v??F,z=jS(()=>typeof C=="function"?C(R):C||R||s||c,[R,C,c,s]),[L,O]=Ml(n),_=l!==void 0,H=_?l:L,[G,q]=Ml(R),$=e4(null);YS(k,()=>({...$.current,save:V,cancel:U})),Z2(()=>{D||N(r??"")},[r,D]),Z2(()=>{H||q(R)},[R,H]);let U=async()=>{_||O(!1),a?.(!1),q(R),await i?.()},V=async()=>{if(!S){if(R===G){await i?.(),_||O(!1),a?.(!1);return}T(!0),D||N(G);try{await p?.(G),_||O(!1),a?.(!1)}finally{T(!1)}}},J=async A=>{A.key==="Escape"&&(A.preventDefault(),A.stopPropagation(),await U()),A.key==="Enter"&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),await V()),h?.onKeyDown?.(A)};return QS({refs:[$],enabled:b&&H,handler:async()=>{I?await V():await U()}}),_r("div",{className:Or("cleen",g),style:M,ref:$,...w,children:H?o4("div",{className:Or("cleen-relative cleen-h-full",P?.container),style:B?.container,children:[_r(C1,{value:G,onChange:A=>{q(A),f?.(A)},autoFocus:!0,placeholder:c,className:P?.textArea?.className,classNames:{...P?.textArea?.classNames,textareaContainer:Or("cleen-border-primary hover:cleen-border-primary/60",P?.textArea?.classNames?.textareaContainer)},...B?.textArea,...h,onFocus:A=>{h?.onFocus?.(A),x&&A.target.select()},disabled:S||h?.disabled,onKeyDown:J}),S&&_r("div",{className:Or("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",P?.loaderContainer),style:B?.loaderContainer,children:y})]}):_r("div",{onClick:()=>{u&&(_||O(!0),a?.(!0))},className:Or("cleen-min-h-6 cleen-text-gray-900 cleen-whitespace-pre-wrap",u&&"cleen-cursor-text hover:cleen-bg-gray-100 cleen-rounded cleen-p-2 cleen-transition-colors",!R&&"cleen-text-gray-500",P?.preview),style:B?.preview,children:z})})});import"@cleen/ui-core";import{forwardRef as t4}from"react";import{Fragment as r4,jsx as P1,jsxs as a4}from"react/jsx-runtime";var n4=t4(function({header:o,color:r,children:n,description:l,onSave:a,isDescriptionHidden:c=!1,titleProps:s,descriptionProps:u,classNames:p,styles:i,...f},h){let b=typeof o?.title=="string"||typeof o?.title=="number"?String(o.title):void 0;return P1(le,{ref:h,color:r,header:{...o,title:P1(I1,{value:b??"",onSave:async I=>{await a?.("title",I)},...p?.titleTextInput,...i?.titleTextInput,...s})},classNames:p,styles:i,...f,children:(!c||n)&&a4(r4,{children:[P1(x1,{value:l??"",onSave:async I=>{await a?.("description",I)},...u,textAreaProps:u?.textAreaProps,...p?.descriptionTextInput,...i?.descriptionTextInput}),n]})})});import{cn as Hr}from"@cleen/ui-core";import{forwardRef as l4}from"react";import{jsx as wl}from"react/jsx-runtime";var c4=l4(function({type:o="button",label:r,onClick:n,containerRef:l,className:a,classNames:c,style:s,styles:u,disabled:p=!1,loaderOptions:i,isLoading:f=!1,variant:h="primary",children:b,...I},v){return wl("div",{className:Hr("cleen",a),style:s,ref:l,children:wl("button",{type:o,ref:v,disabled:f||p,onClick:n,className:Hr("cleen-size-full",c?.container),style:u?.container,...I,children:wl(le,{p:0,className:Hr("cleen-size-full",c?.card?.className),classNames:{...c?.card?.classNames,container:Hr("cleen-size-full",uh[h],c?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":p||f}),childrenContainer:Hr("cleen-size-full cleen-flex cleen-justify-center cleen-items-center",c?.card?.classNames?.childrenContainer)},...u?.card,children:f?wl(te,{size:"lg",...i,color:i?.color||hh[h],...c?.loader,...u?.loader}):r||b})})})});import{cn as Ur,ColorHelpers as Q2,formatAudioTime as J2}from"@cleen/ui-core";import{useWavesurfer as s4}from"@wavesurfer/react";import{forwardRef as i4,useCallback as p4,useRef as d4}from"react";import{jsx as Gr,jsxs as Y2}from"react/jsx-runtime";var m4={waveColor:Q2.getComputedColor("var(--cleen-light-gray)"),progressColor:Q2.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},u4=i4(function({url:o,options:r,className:n,classNames:l,style:a,styles:c,...s},u){let p=d4(null),{wavesurfer:i,isPlaying:f,isReady:h,currentTime:b}=s4({...m4,...r,container:p,url:o}),I=h?i?.getDuration()??0:0,v=p4(()=>{i?.playPause()},[i]);return Gr("div",{ref:u,className:Ur("cleen",n),style:a,...s,children:Y2("div",{className:Ur("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-rounded-xl cleen-bg-white cleen-border cleen-border-gray-200",l?.container),style:c?.container,children:[Gr(re,{type:"button",onClick:v,disabled:!h,"aria-label":f?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:Ur("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...c?.playButton,children:f?Gr(ht,{className:"cleen-fill-current"}):Gr(ft,{className:"cleen-fill-current"})}),Gr("div",{ref:p,className:Ur("cleen-flex-1 cleen-min-w-0",l?.waveform),style:c?.waveform}),Y2("span",{className:Ur("cleen-shrink-0 cleen-text-xs cleen-text-gray-500 cleen-tabular-nums",l?.timestamp),style:c?.timestamp,children:[J2(b),"\xA0/\xA0",J2(I)]})]})})});import{ColorHelpers as h4}from"@cleen/ui-core";var j2=h4.getComputedColor("var(--cleen-primary)"),eg="rgba(var(--cleen-primary), 0.15)",og={waveColor:j2,progressColor:j2,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var tg={startRecording:"Click to start recording"};import{cn as Ae,formatAudioTime as Fl,trimBlob as g4}from"@cleen/ui-core";import{useWavesurfer as v4}from"@wavesurfer/react";import{forwardRef as y4,useCallback as vn,useEffect as R1,useMemo as I4,useRef as ag,useState as El}from"react";function S1(e,o,r,n){return new(r||(r=Promise))((function(l,a){function c(p){try{u(n.next(p))}catch(i){a(i)}}function s(p){try{u(n.throw(p))}catch(i){a(i)}}function u(p){var i;p.done?l(p.value):(i=p.value,i instanceof r?i:new r((function(f){f(i)}))).then(c,s)}u((n=n.apply(e,o||[])).next())}))}var kl=class{constructor(){this.listeners={}}on(o,r,n){if(this.listeners[o]||(this.listeners[o]=new Set),n?.once){let l=(...a)=>{this.un(o,l),r(...a)};return this.listeners[o].add(l),()=>this.un(o,l)}return this.listeners[o].add(r),()=>this.un(o,r)}un(o,r){var n;(n=this.listeners[o])===null||n===void 0||n.delete(r)}once(o,r){return this.on(o,r,{once:!0})}unAll(){this.listeners={}}emit(o,...r){this.listeners[o]&&this.listeners[o].forEach((n=>n(...r)))}},w1=class extends kl{constructor(o){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=o}onInit(){}_init(o){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=o,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((o=>o())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},k1=class extends kl{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let o=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(o))};o()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}},M1=100,f4=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],Bl=class e extends w1{constructor(o){var r,n,l,a,c,s;super(Object.assign(Object.assign({},o),{audioBitsPerSecond:(r=o.audioBitsPerSecond)!==null&&r!==void 0?r:128e3,scrollingWaveform:(n=o.scrollingWaveform)!==null&&n!==void 0&&n,scrollingWaveformWindow:(l=o.scrollingWaveformWindow)!==null&&l!==void 0?l:5,continuousWaveform:(a=o.continuousWaveform)!==null&&a!==void 0&&a,renderRecordedAudio:(c=o.renderRecordedAudio)===null||c===void 0||c,mediaRecorderTimeslice:(s=o.mediaRecorderTimeslice)!==null&&s!==void 0?s:void 0})),this.stream=null,this.mediaRecorder=null,this.dataWindow=null,this.isWaveformPaused=!1,this.lastStartTime=0,this.lastDuration=0,this.duration=0,this.micStream=null,this.recordedBlobUrl=null,this.timer=new k1,this.subscriptions.push(this.timer.on("tick",(()=>{let u=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+u,this.emit("record-progress",this.duration)})))}static create(o){return new e(o||{})}renderMicStream(o){var r;let n=new AudioContext,l=n.createMediaStreamSource(o),a=n.createAnalyser();l.connect(a),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(a.fftSize=32);let c=a.frequencyBinCount,s=new Float32Array(c),u=0;this.wavesurfer&&((r=this.originalOptions)!==null&&r!==void 0||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let p=setInterval((()=>{var i,f,h,b;if(!this.isWaveformPaused){if(a.getFloatTimeDomainData(s),this.options.scrollingWaveform){let I=Math.floor((this.options.scrollingWaveformWindow||0)*M1),v=0;for(let x=0;x<c;x++){let C=Math.abs(s[x]);C>v&&(v=C)}this.dataWindow||(this.dataWindow=new Float32Array(I));let y=new Float32Array(I);if(this.dataWindow&&this.dataWindow.length>0){let x=I-1,C=this.dataWindow.slice(-x);y.set(C,0)}y[I-1]=v,this.dataWindow=y}else if(this.options.continuousWaveform){if(!this.dataWindow){let v=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*M1):((f=(i=this.wavesurfer)===null||i===void 0?void 0:i.getWidth())!==null&&f!==void 0?f:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(v)}let I=0;for(let v=0;v<c;v++){let y=Math.abs(s[v]);y>I&&(I=y)}if(u+1>this.dataWindow.length){let v=new Float32Array(2*this.dataWindow.length);v.set(this.dataWindow,0),this.dataWindow=v}this.dataWindow[u]=I,u++}else this.dataWindow=s;if(this.wavesurfer){let I=((b=(h=this.dataWindow)===null||h===void 0?void 0:h.length)!==null&&b!==void 0?b:0)/M1;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:I).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))})).catch((v=>{console.error("Error rendering real-time recording data:",v)}))}}}),10);return{onDestroy:()=>{clearInterval(p),l?.disconnect(),n?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(o){return S1(this,void 0,void 0,(function*(){let r;this.micStream&&this.stopMic();try{r=yield navigator.mediaDevices.getUserMedia({audio:o==null||o})}catch(l){throw new Error("Error accessing the microphone: "+l.message)}let n=this.renderMicStream(r);return this.micStream=n,this.unsubscribeDestroy=this.once("destroy",n.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",n.onEnd),this.stream=r,r}))}stopMic(){var o,r,n;(o=this.micStream)===null||o===void 0||o.onDestroy(),(r=this.unsubscribeDestroy)===null||r===void 0||r.call(this),(n=this.unsubscribeRecordEnd)===null||n===void 0||n.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((l=>l.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(o){return S1(this,void 0,void 0,(function*(){let r=this.stream||(yield this.startMic(o));this.dataWindow=null;let n=this.mediaRecorder||new MediaRecorder(r,{mimeType:this.options.mimeType||f4.find((c=>MediaRecorder.isTypeSupported(c))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=n,this.stopRecording();let l=[];n.ondataavailable=c=>{c.data.size>0&&l.push(c.data),this.emit("record-data-available",c.data)};let a=c=>{var s;let u=new Blob(l,{type:n.mimeType});this.emit(c,u),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(u),(s=this.wavesurfer)===null||s===void 0||s.load(this.recordedBlobUrl))};n.onpause=()=>a("record-pause"),n.onstop=()=>a("record-end"),n.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit("record-start")}))}getDuration(){return this.duration}isRecording(){var o;return((o=this.mediaRecorder)===null||o===void 0?void 0:o.state)==="recording"}isPaused(){var o;return((o=this.mediaRecorder)===null||o===void 0?void 0:o.state)==="paused"}isActive(){var o;return((o=this.mediaRecorder)===null||o===void 0?void 0:o.state)!=="inactive"}stopRecording(){var o;this.isActive()&&((o=this.mediaRecorder)===null||o===void 0||o.stop(),this.timer.stop())}pauseRecording(){var o,r;this.isRecording()&&(this.isWaveformPaused=!0,(o=this.mediaRecorder)===null||o===void 0||o.requestData(),(r=this.mediaRecorder)===null||r===void 0||r.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var o;this.isPaused()&&(this.isWaveformPaused=!1,(o=this.mediaRecorder)===null||o===void 0||o.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit("record-resume"))}static getAvailableAudioDevices(){return S1(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((o=>o.filter((r=>r.kind==="audioinput"))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}};var Ll=class{constructor(){this.listeners={}}on(o,r,n){if(this.listeners[o]||(this.listeners[o]=new Set),n?.once){let l=(...a)=>{this.un(o,l),r(...a)};return this.listeners[o].add(l),()=>this.un(o,l)}return this.listeners[o].add(r),()=>this.un(o,r)}un(o,r){var n;(n=this.listeners[o])===null||n===void 0||n.delete(r)}once(o,r){return this.on(o,r,{once:!0})}unAll(){this.listeners={}}emit(o,...r){this.listeners[o]&&this.listeners[o].forEach((n=>n(...r)))}},B1=class extends Ll{constructor(o){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=o}onInit(){}_init(o){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=o,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((o=>o())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}};function ng(e,o){let r=o.xmlns?document.createElementNS(o.xmlns,e):document.createElement(e);for(let[n,l]of Object.entries(o))if(n==="children"&&l)for(let[a,c]of Object.entries(l))c instanceof Node?r.appendChild(c):typeof c=="string"?r.appendChild(document.createTextNode(c)):r.appendChild(ng(a,c));else n==="style"?Object.assign(r.style,l):n==="textContent"?r.textContent=l:r.setAttribute(n,l.toString());return r}function Vr(e,o,r){let n=ng(e,o||{});return r?.appendChild(n),n}function rg(e){let o=e,r=new Set;return{get value(){return o},set(n){Object.is(o,n)||(o=n,r.forEach((l=>l(o))))},update(n){this.set(n(o))},subscribe:n=>(r.add(n),()=>r.delete(n))}}function Rl(e,o){let r,n=()=>{r&&(r(),r=void 0),r=e()},l=o.map((a=>a.subscribe(n)));return n(),()=>{r&&(r(),r=void 0),l.forEach((a=>a()))}}function gn(e,o){let r=rg(null),n=l=>{r.set(l)};return e.addEventListener(o,n),r._cleanup=()=>{e.removeEventListener(o,n)},r}function Ct(e){let o=e._cleanup;typeof o=="function"&&o()}function Dl(e,o={}){let{threshold:r=3,mouseButton:n=0,touchDelay:l=100}=o,a=rg(null),c=new Map,s=matchMedia("(pointer: coarse)").matches,u=()=>{},p=i=>{if(i.button!==n||(c.set(i.pointerId,i),c.size>1))return;let f=i.clientX,h=i.clientY,b=!1,I=Date.now(),v=e.getBoundingClientRect(),{left:y,top:x}=v,C=w=>{if(w.defaultPrevented||c.size>1||s&&Date.now()-I<l)return;let k=w.clientX,D=w.clientY,E=k-f,N=D-h;(b||Math.abs(E)>r||Math.abs(N)>r)&&(w.preventDefault(),w.stopPropagation(),b||(a.set({type:"start",x:f-y,y:h-x}),b=!0),a.set({type:"move",x:k-y,y:D-x,deltaX:E,deltaY:N}),f=k,h=D)},g=w=>{if(c.delete(w.pointerId),b){let k=w.clientX,D=w.clientY;a.set({type:"end",x:k-y,y:D-x})}u()},P=w=>{c.delete(w.pointerId),w.relatedTarget&&w.relatedTarget!==document.documentElement||g(w)},M=w=>{b&&(w.stopPropagation(),w.preventDefault())},B=w=>{w.defaultPrevented||c.size>1||b&&w.preventDefault()};document.addEventListener("pointermove",C),document.addEventListener("pointerup",g),document.addEventListener("pointerout",P),document.addEventListener("pointercancel",P),document.addEventListener("touchmove",B,{passive:!1}),document.addEventListener("click",M,{capture:!0}),u=()=>{document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",g),document.removeEventListener("pointerout",P),document.removeEventListener("pointercancel",P),document.removeEventListener("touchmove",B),setTimeout((()=>{document.removeEventListener("click",M,{capture:!0})}),10)}};return e.addEventListener("pointerdown",p),{signal:a,cleanup:()=>{u(),e.removeEventListener("pointerdown",p),c.clear(),Ct(a)}}}var Tl=class extends Ll{constructor(o,r,n=0){var l,a,c,s,u,p,i,f,h,b;super(),this.totalDuration=r,this.numberOfChannels=n,this.element=null,this.minLength=0,this.maxLength=1/0,this.contentEditable=!1,this.subscriptions=[],this.updatingSide=void 0,this.isRemoved=!1,this.subscriptions=[],this.id=o.id||`region-${Math.random().toString(32).slice(2)}`,this.start=this.clampPosition(o.start),this.end=this.clampPosition((l=o.end)!==null&&l!==void 0?l:o.start),this.drag=(a=o.drag)===null||a===void 0||a,this.resize=(c=o.resize)===null||c===void 0||c,this.resizeStart=(s=o.resizeStart)===null||s===void 0||s,this.resizeEnd=(u=o.resizeEnd)===null||u===void 0||u,this.color=(p=o.color)!==null&&p!==void 0?p:"rgba(0, 0, 0, 0.1)",this.minLength=(i=o.minLength)!==null&&i!==void 0?i:this.minLength,this.maxLength=(f=o.maxLength)!==null&&f!==void 0?f:this.maxLength,this.channelIdx=(h=o.channelIdx)!==null&&h!==void 0?h:-1,this.contentEditable=(b=o.contentEditable)!==null&&b!==void 0?b:this.contentEditable,this.element=this.initElement(),this.setContent(o.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(o){return Math.max(0,Math.min(this.totalDuration,o))}setPart(){var o;let r=this.start===this.end;(o=this.element)===null||o===void 0||o.setAttribute("part",`${r?"marker":"region"} ${this.id}`)}addResizeHandles(o){let r={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},n=Vr("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},r),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},o),l=Vr("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},r),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},o),a=Dl(n,{threshold:1}),c=Dl(l,{threshold:1}),s=Rl((()=>{let p=a.signal.value;p&&(p.type==="move"&&p.deltaX!==void 0?this.onResize(p.deltaX,"start"):p.type==="end"&&this.onEndResizing("start"))}),[a.signal]),u=Rl((()=>{let p=c.signal.value;p&&(p.type==="move"&&p.deltaX!==void 0?this.onResize(p.deltaX,"end"):p.type==="end"&&this.onEndResizing("end"))}),[c.signal]);this.subscriptions.push((()=>{s(),u(),a.cleanup(),c.cleanup()}))}removeResizeHandles(o){let r=o.querySelector('[part*="region-handle-left"]'),n=o.querySelector('[part*="region-handle-right"]');r&&o.removeChild(r),n&&o.removeChild(n)}initElement(){if(this.isRemoved)return null;let o=this.start===this.end,r=0,n=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(n=100/this.numberOfChannels,r=n*this.channelIdx);let l=Vr("div",{style:{position:"absolute",top:`${r}%`,height:`${n}%`,backgroundColor:o?"none":this.color,borderLeft:o?"2px solid "+this.color:"none",borderRadius:"2px",boxSizing:"border-box",transition:"background-color 0.2s ease",cursor:this.drag?"grab":"default",pointerEvents:"all"}});return!o&&this.resize&&this.addResizeHandles(l),l}renderPosition(){if(!this.element)return;let o=this.start/this.totalDuration,r=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*o+"%",this.element.style.right=100*r+"%"}toggleCursor(o){var r;this.drag&&(!((r=this.element)===null||r===void 0)&&r.style)&&(this.element.style.cursor=o?"grabbing":"grab")}initMouseEvents(){let{element:o}=this;if(!o)return;let r=gn(o,"click"),n=gn(o,"mouseenter"),l=gn(o,"mouseleave"),a=gn(o,"dblclick"),c=gn(o,"pointerdown"),s=gn(o,"pointerup"),u=r.subscribe((y=>y&&this.emit("click",y))),p=n.subscribe((y=>y&&this.emit("over",y))),i=l.subscribe((y=>y&&this.emit("leave",y))),f=a.subscribe((y=>y&&this.emit("dblclick",y))),h=c.subscribe((y=>y&&this.toggleCursor(!0))),b=s.subscribe((y=>y&&this.toggleCursor(!1)));this.subscriptions.push((()=>{u(),p(),i(),f(),h(),b(),Ct(r),Ct(n),Ct(l),Ct(a),Ct(c),Ct(s)}));let I=Dl(o),v=Rl((()=>{let y=I.signal.value;y&&(y.type==="start"?this.toggleCursor(!0):y.type==="move"&&y.deltaX!==void 0?this.onMove(y.deltaX):y.type==="end"&&(this.toggleCursor(!1),this.drag&&this.emit("update-end")))}),[I.signal]);this.subscriptions.push((()=>{v(),I.cleanup()})),this.contentEditable&&this.content&&(this.contentClickListener=y=>this.onContentClick(y),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener))}_onUpdate(o,r,n){var l;if(!(!((l=this.element)===null||l===void 0)&&l.parentElement))return;let{width:a}=this.element.parentElement.getBoundingClientRect(),c=o/a*this.totalDuration,s=r&&r!=="start"?this.start:this.start+c,u=r&&r!=="end"?this.end:this.end+c,p=n!==void 0;p&&this.updatingSide&&this.updatingSide!==r&&(this.updatingSide==="start"?s=n:u=n),s=Math.max(0,s),u=Math.min(this.totalDuration,u);let i=u-s;this.updatingSide=r;let f=i>=this.minLength&&i<=this.maxLength;s<=u&&(f||p)&&(this.start=s,this.end=u,this.renderPosition(),this.emit("update",r))}onMove(o){this.drag&&this._onUpdate(o)}onResize(o,r){this.resize&&(this.resizeStart||r!=="start")&&(this.resizeEnd||r!=="end")&&this._onUpdate(o,r)}onEndResizing(o){this.resize&&(this.emit("update-end",o),this.updatingSide=void 0)}onContentClick(o){o.stopPropagation(),o.target.focus(),this.emit("click",o)}onContentBlur(){this.emit("update-end")}_setTotalDuration(o){this.totalDuration=o,this.renderPosition()}play(o){this.emit("play",o&&this.end!==this.start?this.end:void 0)}getContent(o=!1){var r;return o?this.content||void 0:this.element instanceof HTMLElement?((r=this.content)===null||r===void 0?void 0:r.innerHTML)||void 0:""}setContent(o){var r;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(r=this.content)===null||r===void 0||r.remove(),o){if(typeof o=="string"){let n=this.start===this.end;this.content=Vr("div",{style:{padding:`0.2em ${n?.2:.4}em`,display:"inline-block"},textContent:o})}else this.content=o;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=n=>this.onContentClick(n),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener)),this.content.setAttribute("part","region-content"),this.element.appendChild(this.content),this.emit("content-changed")}else this.content=void 0}setOptions(o){var r,n;if(this.element){if(o.color&&(this.color=o.color,this.element.style.backgroundColor=this.color),o.drag!==void 0&&(this.drag=o.drag,this.element.style.cursor=this.drag?"grab":"default"),o.start!==void 0||o.end!==void 0){let l=this.start===this.end;this.start=this.clampPosition((r=o.start)!==null&&r!==void 0?r:this.start),this.end=this.clampPosition((n=o.end)!==null&&n!==void 0?n:l?this.start:this.end),this.renderPosition(),this.setPart()}if(o.content&&this.setContent(o.content),o.id&&(this.id=o.id,this.setPart()),o.resize!==void 0&&o.resize!==this.resize){let l=this.start===this.end;this.resize=o.resize,this.resize&&!l?this.addResizeHandles(this.element):this.removeResizeHandles(this.element)}o.resizeStart!==void 0&&(this.resizeStart=o.resizeStart),o.resizeEnd!==void 0&&(this.resizeEnd=o.resizeEnd)}}remove(){this.isRemoved=!0,this.emit("remove"),this.subscriptions.forEach((o=>o())),this.subscriptions=[],this.content&&this.contentEditable&&(this.contentClickListener&&(this.content.removeEventListener("click",this.contentClickListener),this.contentClickListener=void 0),this.contentBlurListener&&(this.content.removeEventListener("blur",this.contentBlurListener),this.contentBlurListener=void 0)),this.element&&(this.element.remove(),this.element=null),this.unAll()}},Nl=class e extends B1{constructor(o){super(o),this.regions=[],this.regionsContainer=this.initRegionsContainer()}static create(o){return new e(o)}onInit(){if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");this.wavesurfer.getWrapper().appendChild(this.regionsContainer),this.subscriptions.push(this.wavesurfer.on("ready",(r=>{this.regions.forEach((n=>n._setTotalDuration(r)))})));let o=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(r=>{let n=this.regions.filter((l=>l.start<=r&&(l.end===l.start?l.start+.05:l.end)>=r));n.forEach((l=>{o.includes(l)||this.emit("region-in",l)})),o.forEach((l=>{n.includes(l)||this.emit("region-out",l)})),o=n})))}initRegionsContainer(){return Vr("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(o){o.content&&setTimeout((()=>{let r=o.content,n=r.getBoundingClientRect(),l=this.regions.map((a=>{if(a===o||!a.content)return 0;let c=a.content.getBoundingClientRect();return n.left<c.left+c.width&&c.left<n.left+n.width?c.height:0})).reduce(((a,c)=>a+c),0);r.style.marginTop=`${l}px`}),10)}adjustScroll(o){var r,n;if(!o.element)return;let l=(n=(r=this.wavesurfer)===null||r===void 0?void 0:r.getWrapper())===null||n===void 0?void 0:n.parentElement;if(!l)return;let{clientWidth:a,scrollWidth:c}=l;if(c<=a)return;let s=l.getBoundingClientRect(),u=o.element.getBoundingClientRect(),p=u.left-s.left,i=u.right-s.left;p<0?l.scrollLeft+=p:i>a&&(l.scrollLeft+=i-a)}virtualAppend(o,r,n){let l=()=>{if(!this.wavesurfer)return;let a=this.wavesurfer.getWidth(),c=this.wavesurfer.getScroll(),s=r.clientWidth,u=this.wavesurfer.getDuration(),p=Math.round(o.start/u*s),i=p+(Math.round((o.end-o.start)/u*s)||1)>c&&p<c+a;i&&!n.parentElement?r.appendChild(n):!i&&n.parentElement&&n.remove()};setTimeout((()=>{if(!this.wavesurfer||!o.element)return;l();let a=this.wavesurfer.on("scroll",l),c=this.wavesurfer.on("zoom",l),s=this.wavesurfer.on("resize",l);this.subscriptions.push(a,c,s),o.once("remove",(()=>{a(),c(),s()}))}),0)}saveRegion(o){if(!o.element)return;this.virtualAppend(o,this.regionsContainer,o.element),this.avoidOverlapping(o),this.regions.push(o);let r=[o.on("update",(n=>{n||this.adjustScroll(o),this.emit("region-update",o,n)})),o.on("update-end",(n=>{this.avoidOverlapping(o),this.emit("region-updated",o,n)})),o.on("play",(n=>{var l;(l=this.wavesurfer)===null||l===void 0||l.play(o.start,n)})),o.on("click",(n=>{this.emit("region-clicked",o,n)})),o.on("dblclick",(n=>{this.emit("region-double-clicked",o,n)})),o.on("content-changed",(()=>{this.emit("region-content-changed",o)})),o.once("remove",(()=>{r.forEach((n=>n())),this.regions=this.regions.filter((n=>n!==o)),this.emit("region-removed",o)}))];this.subscriptions.push(...r),this.emit("region-created",o)}addRegion(o){var r,n;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let l=this.wavesurfer.getDuration(),a=(n=(r=this.wavesurfer)===null||r===void 0?void 0:r.getDecodedData())===null||n===void 0?void 0:n.numberOfChannels,c=new Tl(o,l,a);return this.emit("region-initialized",c),l?this.saveRegion(c):this.subscriptions.push(this.wavesurfer.once("ready",(s=>{c._setTotalDuration(s),this.saveRegion(c)}))),c}enableDragSelection(o,r=3){var n;let l=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper();if(!(l&&l instanceof HTMLElement))return()=>{};let a=null,c=0,s=0,u=Dl(l,{threshold:r}),p=Rl((()=>{var i,f;let h=u.signal.value;if(h)if(h.type==="start"){if(c=h.x,!this.wavesurfer)return;let b=this.wavesurfer.getDuration(),I=(f=(i=this.wavesurfer)===null||i===void 0?void 0:i.getDecodedData())===null||f===void 0?void 0:f.numberOfChannels,{width:v}=this.wavesurfer.getWrapper().getBoundingClientRect();s=c/v*b;let y=h.x/v*b,x=(h.x+5)/v*b;a=new Tl(Object.assign(Object.assign({},o),{start:y,end:x}),b,I),this.emit("region-initialized",a),a.element&&this.regionsContainer.appendChild(a.element)}else h.type==="move"&&h.deltaX!==void 0?a&&a._onUpdate(h.deltaX,h.x>c?"end":"start",s):h.type==="end"&&a&&(this.saveRegion(a),a.updatingSide=void 0,a=null)}),[u.signal]);return()=>{p(),u.cleanup()}}clearRegions(){this.regions.slice().forEach((o=>o.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as C4,jsx as Ie,jsxs as Wr}from"react/jsx-runtime";var b4=y4(function({onFinalize:o,recordOptions:r,options:n,labels:l=tg,className:a,classNames:c,style:s,styles:u,...p},i){let f=ag(null),[h,b]=El("idle"),[I,v]=El(null),[y,x]=El(null),[C,g]=El(!1),P=ag("idle");P.current=h;let M=I4(()=>[Bl.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...r}),Nl.create()],[]),[B,w]=M,{wavesurfer:k,isPlaying:D,isReady:E,currentTime:N}=v4({...og,...n,container:f,plugins:M}),R=E?k?.getDuration()??0:0;R1(()=>{let H=[B.on("record-start",()=>b("recording")),B.on("record-end",G=>{b("recorded"),v(G)}),w.on("region-clicked",(G,q)=>{q.stopPropagation(),G.play(!0)})];return()=>H.forEach(G=>G?.())},[w,B]),R1(()=>k?k.on("ready",()=>{if(P.current!=="recorded")return;let G=k.getDuration();w.clearRegions();let q=w.addRegion({start:0,end:G,color:n?.regionColor??eg,drag:!1,resize:!0});x({start:q.start,end:q.end})}):void 0,[k,w,n]),R1(()=>w.on("region-updated",G=>{x({start:G.start,end:G.end})}),[w]);let F=vn(async()=>{await B.startRecording()},[B]),T=vn(()=>{B.stopRecording()},[B]),S=vn(()=>{k?.playPause()},[k]),z=vn(async()=>{if(!(!I||!y||!k)){g(!0);try{let H=await g4(I,y.start,y.end),G=URL.createObjectURL(H);v(H),k.load(G)}finally{g(!1)}}},[I,y,k]),L=vn(()=>{w.clearRegions(),k?.empty(),v(null),x(null),b("idle")},[k,w]),O=vn(()=>{if(I){let H=URL.createObjectURL(I);o?.(I,H)}},[o,I]),_=!y||y.start<=0&&y.end>=R;return Ie("div",{ref:i,className:Ae("cleen wavesurfer-handle",a),style:s,...p,children:Wr("div",{className:Ae("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",c?.container),style:u?.container,children:[h==="idle"&&Wr(C4,{children:[Ie("button",{type:"button",onClick:F,"aria-label":"Start recording",className:Ae("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.startButton),style:u?.startButton,children:Ie(hr,{className:"cleen-size-8 cleen-text-primary"})}),Ie("p",{className:Ae("cleen-text-gray-600 cleen-text-sm cleen-select-none",c?.startLabel),style:u?.startLabel,children:l.startRecording})]}),h==="recording"&&Ie("button",{type:"button",onClick:T,"aria-label":"Stop recording",className:Ae("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.stopButton),style:u?.stopButton,children:Ie(wr,{className:"cleen-size-8 cleen-text-primary"})}),Ie("div",{ref:f,className:Ae("cleen-w-full cleen-min-w-0 cleen-waveform",h==="idle"&&"cleen-hidden",c?.waveform),style:u?.waveform}),h==="recorded"&&Wr("div",{className:Ae("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",c?.recordedContainer),style:u?.recordedContainer,children:[Ie(re,{type:"button",onClick:S,disabled:!E,"aria-label":D?"Pause":"Play",className:c?.playPauseButton?.className,classNames:{...c?.playPauseButton?.classNames,container:Ae("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.playPauseButton?.classNames?.container)},...u?.playPauseButton,children:D?Ie(ht,{className:"cleen-fill-current"}):Ie(ft,{className:"cleen-fill-current"})}),Wr("span",{className:Ae("cleen-tabular-nums cleen-text-gray-500 cleen-text-xs cleen-shrink-0",c?.timestamp),style:u?.timestamp,children:[Fl(N),"\xA0/\xA0",Fl(R)]}),Ie("span",{className:"cleen-flex-1"}),!_&&y&&Wr("span",{className:Ae("cleen-tabular-nums cleen-text-gray-500 cleen-text-xs cleen-shrink-0",c?.trimmedTimestamp),style:u?.trimmedTimestamp,children:[Fl(y.start),"\u2013",Fl(y.end)]}),Ie(re,{type:"button",onClick:L,variant:"secondary","aria-label":"Discard recording",className:c?.discardButton?.className,classNames:{...c?.discardButton?.classNames,container:Ae("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.discardButton?.classNames?.container)},...u?.discardButton,children:Ie(Ve,{className:"cleen-text-error"})}),Ie(re,{type:"button",onClick:z,disabled:_||C||!E,"aria-label":"Apply trim",variant:"secondary",className:c?.trimButton?.className,classNames:{...c?.trimButton?.classNames,container:Ae("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.trimButton?.classNames?.container)},...u?.trimButton,children:Ie(br,{})}),Ie(re,{type:"button",onClick:O,"aria-label":"Finalize recording",className:c?.finalizeButton?.className,classNames:{...c?.finalizeButton?.classNames,container:Ae("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.finalizeButton?.classNames?.container)},...u?.finalizeButton,children:Ie(vo,{})})]})]})})});import{cn as Al}from"@cleen/ui-core";import{forwardRef as x4,useMemo as P4}from"react";var lg={xs:"cleen-size-6 cleen-text-[10px]",sm:"cleen-size-7 cleen-text-xs",md:"cleen-size-9 cleen-text-sm",lg:"cleen-size-11 cleen-text-base",xl:"cleen-size-14 cleen-text-lg"};import{jsx as $r}from"react/jsx-runtime";var zl=x4(function({title:o,name:r,src:n,alt:l,size:a="md",initialsLength:c=2,isSelected:s=!1,showBorder:u=!1,fallback:p=$r(Br,{}),className:i,classNames:f,style:h,styles:b,onClick:I,...v},y){let x=P4(()=>(c===2?r?.split(" ").map(C=>C.charAt(0).toUpperCase()).join("").slice(0,c):r?.charAt(0).toUpperCase())||p,[r,c,p]);return $r("div",{className:Al("cleen",i),style:h,ref:y,...v,children:$r("div",{onClick:I,className:Al("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof a=="string"&&lg[a],{"cleen-border-2 cleen-border-white":u,"cleen-cursor-pointer":!!I},f?.avatar,u&&s&&["cleen-border-primary",f?.avatarSelected]),style:{...typeof a=="number"&&{width:a,height:a,fontSize:a*.4,lineHeight:`${a}px`},...b?.avatar,...u&&s&&b?.avatarSelected},title:o||r,children:n?$r("img",{src:n,alt:l||r,className:Al("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",f?.image),style:b?.image}):$r("span",{className:Al("cleen-select-none cleen-text-gray-700",f?.fallback),style:b?.fallback,children:x})})})});import{cn as cg}from"@cleen/ui-core";import{forwardRef as S4}from"react";import{jsx as D1,jsxs as w4}from"react/jsx-runtime";var M4=S4(function({avatars:o,size:r="md",selectedAvatars:n=[],onAvatarToggle:l,gap:a=4,maxVisible:c,maxExtra:s=99,showBorder:u=!0,initialsLength:p,fallback:i,className:f,classNames:h,style:b,styles:I,...v},y){let x=c?o?.slice(0,c):o,C=c&&o&&o.length>c?Math.min(o.length-c,s):0;return D1("div",{className:cg("cleen",f),style:b,ref:y,...v,children:w4("div",{className:cg("cleen-flex cleen-items-center",h?.row),style:{gap:a,...I?.row},children:[x?.map((g,P)=>{let M=n.includes(g?.id??"");return D1(zl,{name:g.name,src:g.src,size:r,isSelected:M,showBorder:u,initialsLength:p,fallback:i,onClick:()=>l?.(g.id??""),...h?.avatar,style:{zIndex:x.length-P,...I?.avatar?.style},styles:I?.avatar?.styles,...g},g.id||P)}),C>0&&D1(zl,{size:r,fallback:`+${C}`,...h?.extra,...I?.extra})]})})});import{cn as qo}from"@cleen/ui-core";import{forwardRef as k4}from"react";import{Link as sg}from"react-router-dom";import{jsx as qr,jsxs as Ol}from"react/jsx-runtime";var B4=k4(function({root:o={path:"/",icon:qr(cr,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:r,className:n,classNames:l,style:a,styles:c,...s},u){return!r||r.length===0?null:qr("div",{className:qo("cleen",n),style:a,ref:u,...s,children:qr("nav",{className:qo("cleen-hidden sm:cleen-flex",l?.container),style:c?.container,"aria-label":"Breadcrumb",children:Ol("ol",{role:"list",className:qo("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:c?.list,children:[o&&qr("li",{className:qo("cleen-flex cleen-items-center",l?.rootItem),style:c?.rootItem,children:Ol(sg,{to:o?.path,className:qo("cleen-text-sm cleen-text-gray-400 cleen-flex cleen-items-center cleen-gap-2 cleen-transition-colors cleen-duration-200 hover:cleen-text-gray-600",l?.rootLink),style:c?.rootLink,"aria-current":"page",children:[o?.icon,o?.label]})}),r.map(({path:p,icon:i,label:f,id:h},b)=>{let I=b===r.length-1,v=f||p.charAt(0).toUpperCase()+p.slice(1);return Ol("li",{className:qo("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:c?.item,children:[(o||!o&&b!==0)&&qr(Je,{className:qo("cleen-h-5 cleen-w-5 cleen-text-gray-300",l?.chevron),style:c?.chevron,"aria-hidden":"true"}),Ol(sg,{to:p,className:qo("cleen-transition-colors cleen-duration-200 hover:cleen-text-primary cleen-text-sm cleen-flex cleen-items-center cleen-gap-2",I?"cleen-rounded-md cleen-bg-gray-50 cleen-py-1 cleen-px-2 cleen-text-gray-700 cleen-font-semibold":"cleen-text-gray-600 cleen-font-medium",l?.link),style:c?.link,"aria-current":I?"page":void 0,children:[i,v]})]},h||p)})]})})})});var _l=(e,o)=>{if(!e)return;if(!o||!o.min&&!o.max)return e;let{min:r,max:n}=o,l=new Date,a=new Date(l.getFullYear(),l.getMonth(),l.getDate());if(r){let c=r==="today"?a:r;if(c>=e)return c}if(n){let c=n==="today"?a:n;if(c<=e)return c}return e};import{cn as Hl}from"@cleen/ui-core";import{forwardRef as R4,useState as L1}from"react";import{DayPicker as ig,MonthGrid as D4}from"react-day-picker";import{Fragment as L4,jsx as xt,jsxs as N1}from"react/jsx-runtime";var T1=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),F1=R4(function({label:o,labelTooltip:r,infoLabels:n,required:l,withDateInput:a=!1,withTodayButton:c=!1,selected:s,onSelect:u,month:p,labels:i,className:f,style:h,classNames:b,styles:I,mode:v="single",min:y,max:x,disabled:C,disabledDates:g,components:P,...M},B){let w=s!==void 0,k=v==="single",[D,E]=L1(),[N,R]=L1(),F=w?s:k?D:N,[T,S]=L1(p),z=(_,H)=>{w||(k&&(_===void 0||_ instanceof Date)?E(_):k||R(_)),u?.(_,H)},L={MonthGrid:_=>N1(L4,{children:[(c||a)&&N1("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[a&&xt(de,{value:v==="single"?T1(F):F?.from||F?.to?`${T1(F?.from)??"..."} - ${T1(F?.to)??"..."}`:void 0,placeholder:i?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),c&&xt(re,{variant:"secondary",onClick:()=>S(new Date),children:i?.today??"Today"})]}),xt(D4,{..._})]}),...P},O={navLayout:"around",...M,className:Hl("cleen-text-black",b?.calendar?.className),classNames:{...b?.calendar?.classNames,nav:Hl("cleen-text-error",b?.calendar?.classNames?.nav)},disabled:y||x?{before:y==="today"?new Date:y,after:x==="today"?new Date:x}:g||C,components:L,month:T,onMonthChange:S,...I?.calendar};return N1("div",{ref:B,className:Hl("cleen",f),style:h,children:[o&&xt(ee,{required:l,tooltip:r,className:Hl("cleen-mb-1.5",b?.label?.className),classNames:b?.label?.classNames,...I?.label,children:o}),k?xt(ig,{mode:"single",...O,selected:F,onSelect:(_,H)=>{if(y||x){z(_l(_,{min:y,max:x}),H);return}z(_,H)}}):xt(ig,{mode:"range",...O,selected:F,onSelect:(_,H)=>{if(y||x){z({from:_l(_?.from,{min:y,max:x}),to:_l(_?.to,{min:y,max:x})},H);return}z(_,H)}}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&xt(Y,{...n})]})});import{cn as yn,useOutsideClick as T4,usePositionClose as N4,ZIndex as F4}from"@cleen/ui-core";import{forwardRef as E4,useEffect as A4,useRef as pg,useState as z4}from"react";import{createPortal as O4}from"react-dom";import{jsx as Pt,jsxs as dg}from"react/jsx-runtime";var Xr=E4(function({type:o="button",required:r,label:n,title:l,titleTooltip:a,disabled:c=!1,leftIcon:s,rightIcon:u=Pt(Kn,{className:"cleen-size-5 cleen-shrink-0 cleen-text-gray-900"}),fullWidth:p=!0,fullWidthDropdown:i,offset:f=4,isOpen:h,onOpenChange:b,keepOpenOnClickContent:I=!0,zIndex:v=F4.DROPDOWN,infoLabels:y,className:x,classNames:C,style:g,styles:P,children:M,...B},w){let[k,D]=z4(!1),E=h!==void 0?h:k,N=pg(null),R=pg(null),{positionStyles:F,isMounted:T}=N4({triggerRef:R,targetRef:N,position:"bottom-left",isOpen:E,offset:f});T4({refs:[N,R],handler:()=>{D(!1),b?.(!1)},enabled:E}),A4(()=>{let L=O=>{O.key==="Escape"&&E&&(D(!1),b?.(!1))};return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[E,b]);let S=()=>{let L=!E;h===void 0&&D(L),b?.(L)},z=()=>{I||(h===void 0&&D(!1),b?.(!1))};return dg("div",{className:yn("cleen",x),style:g,ref:w,...B,children:[l&&Pt(ee,{required:r,tooltip:a,className:yn("cleen-mb-1.5",C?.title?.className),classNames:C?.title?.classNames,...P?.title,children:l}),Pt("div",{className:yn("cleen-inline-block cleen-relative",p&&"cleen-w-full"),ref:R,children:dg("button",{type:o,className:yn("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-bg-background cleen-shadow-sm cleen-my-auto cleen-px-3.5 cleen-py-2.5 cleen-border cleen-border-gray-300 cleen-rounded-md cleen-w-full cleen-text-gray-900 cleen-text-base cleen-transition-colors cleen-duration-200 hover:cleen-bg-gray-25 hover:cleen-border-gray-200",{"cleen-w-full cleen-flex-1":p,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":c},p&&"cleen-w-full",C?.trigger),style:P?.trigger,disabled:c,"aria-haspopup":"dialog","aria-expanded":E,onClick:S,children:[s,Pt("div",{className:yn("cleen-flex-1 cleen-text-left",C?.label),style:P?.label,children:n}),u]})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&Pt(Y,{...y}),M&&E&&O4(Pt("div",{className:"cleen",children:Pt("div",{ref:N,className:yn("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-gray-200 cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!T},C?.dropdown),style:{zIndex:v,top:`${F.top}px`,left:`${F.left}px`,minWidth:i&&R.current?.offsetWidth?`${R.current.offsetWidth}px`:void 0,...P?.dropdown},onClick:z,children:M})}),document.body)]})});import{cn as mg}from"@cleen/ui-core";import{forwardRef as _4,useMemo as H4,useState as Ul}from"react";import{jsx as St,jsxs as ug}from"react/jsx-runtime";var U4=_4(function({label:o,placeholder:r,infoLabels:n,required:l,selected:a,onSelect:c,onSelectInternal:s,leftIcon:u,rightIcon:p=St($n,{className:"cleen-size-5 cleen-shrink-0 cleen-text-gray-900"}),className:i,style:f,classNames:h,styles:b,mode:I="single",min:v,max:y,disabled:x,disabledDates:C,...g},P){let M=a!==void 0,B=I==="single",[w,k]=Ul(!1),[D,E]=Ul(),[N,R]=Ul(),F=M?a:B?D:N,[T,S]=Ul(),z=O=>{M||(B&&(O===void 0||O instanceof Date)?E(O):B||R(O)),c?.(O)},L=H4(()=>{if(!F)return r;if(B)return F?.toLocaleDateString();{let O=F;if(O.from&&O.to)return`${O.from.toLocaleDateString()} - ${O.to.toLocaleDateString()}`;if(O.from)return O.from.toLocaleDateString()}return r},[r,F,B]);return ug("div",{ref:P,className:mg("cleen",i),style:f,children:[St(Xr,{title:o,label:L,isOpen:w,onOpenChange:O=>{S(F),k(O)},leftIcon:u,rightIcon:p,className:h?.dropdown?.className,classNames:{...h?.dropdown?.classNames,dropdown:mg("cleen-p-0 cleen-border-0",h?.dropdown?.classNames?.dropdown)},required:l,disabled:x,...b?.dropdown,children:St(le,{footer:{hasDivider:!0,content:ug("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[St(re,{variant:"secondary",onClick:()=>k(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),St(re,{onClick:()=>{z(T),k(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...h?.card,...b?.card,children:St(F1,{mode:I,...g,selected:T,onSelect:(O,_)=>S(s?.(O,_)??O),min:v,max:y,disabledDates:C,...h?.calendar,...b?.calendar})})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&St(Y,{...n})]})});import"react";import{cn as In}from"@cleen/ui-core";import G4 from"embla-carousel-auto-scroll";import V4 from"embla-carousel-autoplay";import W4 from"embla-carousel-react";import{forwardRef as $4,useEffect as q4,useMemo as hg,useState as fg}from"react";import{jsx as Mt,jsxs as K4}from"react/jsx-runtime";var X4=$4(function({options:o,slideAmount:r=3,slideSize:n,prevBtn:l,nextBtn:a,autoPlay:c=!1,autoPlayOptions:s,autoScroll:u=!1,autoScrollOptions:p,children:i,className:f,classNames:h,style:b,styles:I,...v},y){let x=hg(()=>{let R=[];return c&&R.push(V4(s)),u&&R.push(G4(p)),R},[c,u,s,p]),[C,g]=W4({skipSnaps:!0,...o},x),[P,M]=fg(!0),[B,w]=fg(!0),k=()=>g?.scrollPrev(),D=()=>g?.scrollNext(),E=R=>{M(!R?.canScrollPrev()),w(!R?.canScrollNext())};q4(()=>{g&&(E(g),g.on("reInit",E),g.on("select",E))},[g]);let N=hg(()=>n?`${n}%`:`${100/r}%`,[n,r]);return Mt("div",{className:In("cleen",f),style:b,ref:y,...v,children:K4("div",{className:In("cleen-flex cleen-gap-2",h?.container),style:I?.container,children:[Mt("button",{className:In("cleen-text-black",h?.prevBtn,P&&"cleen-opacity-50"),onClick:k,disabled:P,style:I?.prevBtn,children:l||Mt(yo,{})}),Mt("div",{className:In("cleen-flex-1 cleen-overflow-hidden",h?.viewport),style:I?.viewport,ref:C,children:Mt("div",{className:In("cleen-flex [&>*]:cleen-flex-[0_0] cleen-gap-2 [&>*]:cleen-min-w-0 cleen-touch-pinch-zoom [&>*]:cleen-basis-[var(--cleen-carousel-slide-size)]",h?.list),style:{...I?.list,"--cleen-carousel-slide-size":N},children:i})}),Mt("button",{className:In("cleen-text-black",h?.nextBtn,B&&"cleen-opacity-50"),onClick:D,disabled:B,style:I?.nextBtn,children:a||Mt(Je,{})})]})})});import{cn as wt}from"@cleen/ui-core";import{forwardRef as Z4,useEffect as yg,useRef as Q4,useState as J4}from"react";var gg={primary:"cleen-bg-primary cleen-transition-all cleen-duration-200 hover:cleen-bg-primary hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-primary),0.25)]",error:"cleen-bg-error cleen-transition-all cleen-duration-200 hover:cleen-bg-error hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-error),0.25)]"},vg={primary:"cleen-bg-primary/60 cleen-transition-all cleen-duration-200 hover:cleen-bg-primary/60 hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-primary),0.25)]",error:"cleen-bg-error/60 cleen-transition-all cleen-duration-200 hover:cleen-bg-error/60 hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-error),0.25)]"};import{Fragment as Y4,jsx as no,jsxs as Gl}from"react/jsx-runtime";var E1=Z4(function({id:o,name:r,required:n,checked:l,defaultChecked:a=!1,className:c,classNames:s,style:u,styles:p,onChange:i,disabled:f,title:h,titleTooltip:b,label:I,sublabel:v,variant:y="primary",allowIndeterminate:x=!1,fullTriggerArea:C=!1,infoLabels:g,inputRef:P,...M},B){let w=typeof l=="boolean"||l===null,[k,D]=J4(a),E=Q4(null),N=z=>{E.current=z,P&&(P.current=z)};yg(()=>{w||D(a)},[a,w]);let R=w?l:k;yg(()=>{E.current&&(E.current.indeterminate=x&&R===null)},[x,R]);let F=z=>{let L;if(x)switch(R){case!0:L=null;break;case!1:L=!0;break;default:L=!1;break}else L=!R;w||D(L),i?.({...z,target:{...z.target,checked:L}})},T=Gl(Y4,{children:[Gl("label",{className:wt("cleen-bg-white cleen-transition-all cleen-duration-200 hover:cleen-bg-gray-100 hover:cleen-shadow-[0px_0px_0px_4px_rgb(var(--cleen-gray-100))] cleen-border cleen-border-gray-300 cleen-rounded cleen-ring-primary cleen-size-5 cleen-min-w-5 cleen-min-h-5 cleen-cursor-pointer focus-within:cleen-ring-2 focus-within:cleen-ring-offset-1 focus-within:cleen-ring-primary",{[gg[y]]:R,[vg[y]]:R===null},f&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",s?.checkbox),style:p?.checkbox,children:[no("input",{ref:N,type:"checkbox",disabled:f,className:"cleen-sr-only",checked:R===!0,onChange:F,id:o,...M}),R===null?no("span",{className:"cleen-block cleen-m-auto cleen-border cleen-border-white cleen-rounded-sm cleen-w-2.5 cleen-h-0.5 cleen-size-3"}):R?no(vo,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-white"}):null]}),(I||v)&&Gl("div",{children:[no("label",{htmlFor:o,className:wt("cleen-block cleen-text-gray-900",s?.label),style:p?.label,children:I}),no("label",{htmlFor:o,className:wt("cleen-font-normal cleen-text-gray-600 cleen-text-sm cleen-leading-5",s?.sublabel),style:p?.sublabel,children:v})]})]}),S={className:wt("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":f},s?.checkboxContainer),style:p?.checkboxContainer};return no("div",{className:wt("cleen",c),style:u,ref:B,children:Gl("div",{className:wt(s?.container),style:p?.container,children:[h&&no(ee,{htmlFor:o||r,required:n,tooltip:b,className:wt("cleen-mb-1.5",s?.title?.className),classNames:s?.title?.classNames,...p?.title,children:h}),C?no("div",{...S,onClick:z=>{z.target instanceof Element&&!z.target.closest("label")&&E.current?.click()},children:T}):no("div",{...S,children:T}),(g?.errorMessage||g?.infoMessage||g?.subtitle)&&no(Y,{...g})]})})});import{cn as Kr}from"@cleen/ui-core";import{forwardRef as j4,useMemo as e5,useState as o5}from"react";import{jsx as bn,jsxs as n5}from"react/jsx-runtime";var t5=j4(function({id:o,required:r,label:n,labelTooltip:l,checkboxes:a,allowIndeterminate:c,infoLabels:s,requiresAtLeastOneOptions:u,classNames:p,styles:i,onChange:f,...h},b){let[I,v]=o5(!1),y=e5(()=>u&&I&&a?.every(C=>C.checked===!1)?u.title:s?.errorMessage,[u,s?.errorMessage,a,I]),x=(C,g)=>{let P={...g,checked:C.target.checked},M;a&&g?.id&&(M=[...a].map(B=>B.id===g.id?P:B)),f?.(P,M),v(!0)};return bn("div",{className:Kr("cleen"),...h,ref:b,children:n5("div",{className:Kr("cleen-flex cleen-flex-col cleen-gap-2",p?.container),style:i?.container,children:[n&&bn(ee,{htmlFor:o,required:r,tooltip:l,className:Kr("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...i?.label,children:n}),bn("div",{className:Kr("cleen-flex cleen-flex-col cleen-gap-3",p?.checkboxes),style:i?.checkboxes,children:a?.map(C=>bn("div",{className:Kr("cleen-flex",p?.checkboxContainer),style:i?.checkboxContainer,children:bn(E1,{allowIndeterminate:c,...C,fullTriggerArea:!0,onChange:g=>x(g,C)})},C.id))}),(y||s?.infoMessage||s?.subtitle)&&bn(Y,{...s,errorMessage:y})]})})});import{cn as kt}from"@cleen/ui-core";import{forwardRef as r5,useState as Ig}from"react";import{jsx as Cn,jsxs as bg}from"react/jsx-runtime";var Cg=r5(({sections:e,defaultOpenIndex:o,allowExpandAll:r=!1,className:n,classNames:l,style:a,styles:c,...s},u)=>{let[p,i]=Ig(o??null),[f,h]=Ig(()=>new Set(e.map((v,y)=>y))),b=v=>r?f.has(v):p===v,I=(v,y)=>{y.onClick?.(),y.items?.length&&(r?h(x=>{let C=new Set(x);return C.has(v)?C.delete(v):C.add(v),C}):i(p===v?null:v))};return Cn("div",{ref:u,className:kt("cleen",n),style:{...a,width:"100%"},...s,children:Cn("div",{className:kt("cleen-w-full",l?.container),style:c?.container,children:e.map((v,y)=>bg("div",{className:kt("cleen-mb-3",l?.section),style:c?.section,children:[bg("div",{onClick:()=>I(y,v),className:kt("cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-font-medium cleen-text-md cleen-text-gray-900 cleen-p-2 cleen-rounded-lg cleen-cursor-pointer hover:cleen-bg-gray-100 cleen-transition-colors",l?.sectionHeader),style:c?.sectionHeader,children:[Cn("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:v?.title}),v?.items?.length?Cn(Io,{className:kt("cleen-shrink-0 cleen-text-gray-400 cleen-transition-transform",{"cleen-rotate-180":!b(y)})}):null]}),b(y)&&v?.items&&Cn("div",{className:kt("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",l?.sectionBody),style:c?.sectionBody,children:v?.items?.map((x,C)=>Cn("div",{className:kt("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-p-2 cleen-w-full cleen-rounded-lg cleen-font-normal cleen-text-md cleen-text-gray-900 cleen-cursor-pointer hover:cleen-bg-gray-100 cleen-transition-colors",l?.item),style:c?.item,onClick:x?.onClick,children:x?.content},x?.key??C))})]},v?.key??y))})})});Cg.displayName="Collapsible";function A1(e){let o=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return o?{r:Number(o[1]),g:Number(o[2]),b:Number(o[3]),a:o[4]!==void 0?Number(o[4]):1}:{r:0,g:0,b:0,a:1}}function xg(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as Vl}from"@cleen/ui-core";import{useEffect as a5,useState as l5}from"react";import{HexAlphaColorPicker as c5,RgbaColorPicker as s5}from"react-colorful";import{jsx as xn,jsxs as p5}from"react/jsx-runtime";var Pg="rgba(0, 0, 0, 1)",Sg="#000000ff",i5=({required:e,value:o,defaultValue:r,onChange:n,colorModel:l="rgba",disabled:a,label:c,labelTooltip:s,className:u,classNames:p,style:i,styles:f,infoLabels:h,...b})=>{let I=o!==void 0,v=r??(l==="hexa"?Sg:Pg),[y,x]=l5(v),C=I?o:y;a5(()=>{I||x(r??(l==="hexa"?Sg:Pg))},[r,I,l]);let g=M=>{let B=xg(M);I||x(B),n?.(B)},P=M=>{I||x(M),n?.(M)};return xn("div",{className:Vl("cleen",u),style:i,...b,children:p5("div",{className:Vl("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",p?.container),style:f?.container,children:[c&&xn(ee,{required:e,tooltip:s,className:Vl("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...f?.label,children:c}),xn("div",{className:Vl("cleen-rounded-md",a&&"cleen-opacity-50 cleen-pointer-events-none",p?.picker),style:f?.picker,children:l==="hexa"?xn(c5,{color:C,onChange:P}):xn(s5,{color:A1(C),onChange:g})}),(h?.errorMessage||h?.infoMessage||h?.subtitle)&&xn(Y,{...h})]})})};import{cn as We}from"@cleen/ui-core";import{forwardRef as d5,useMemo as m5,useState as u5}from"react";var z1=(e="")=>e.replace(/\D+/g,""),Mg=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function wg(e,o="other"){if(!e)return e;let r=z1(e),n;switch(o){case"amex":n=`${r.slice(0,4)} ${r.slice(4,10)} ${r.slice(10,15)}`;break;case"dinersclub":n=`${r.slice(0,4)} ${r.slice(4,10)} ${r.slice(10,14)}`;break;default:n=`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8,12)} ${r.slice(12,19)}`;break}return n.trim()}var kg=e=>z1(e);function Bg(e){let o=z1(e);if(!o||parseInt(o.charAt(0),10)>=2)return"";if(o.length<2)return o;let r=o.slice(0,2);if(parseInt(r,10)<1||parseInt(r,10)>12)return o.slice(0,1);if(o.length<3)return r;if(o.length===3)return`${r}/${o.charAt(2)}`;let n=o.length===6?o.slice(-2):o.slice(2,4),l=new Date,a=l.getFullYear()%100,c=l.getMonth()+1;return parseInt(n,10)<a||parseInt(n,10)===a&&parseInt(r,10)<c?`${r}/${n.charAt(0)}`:`${r}/${n}`}import{jsx as Xo,jsxs as Rg}from"react/jsx-runtime";var h5=d5(function({labels:o,value:r,isLoading:n,errors:l,className:a,classNames:c,style:s,styles:u,infoLabels:p,onChange:i,onFieldFocus:f,...h},b){let[I,v]=u5({number:"",expiry:"",cvc:""}),y=!!r,x=y?r:I,C=m5(()=>Mg(x.number),[x.number]),g=M=>{let{name:B}=M.target,{value:w}=M.target;switch(B){case"number":w=wg(w,C);break;case"expiry":w=Bg(w);break;case"cvc":w=kg(w);break;default:return}y||v(k=>({...k,[B]:w})),i?.({...r,[B]:w})},P=M=>{f?.(M.target.name)};return Xo("div",{className:We("cleen",a),style:s,ref:b,...h,children:Xo("div",{className:We("cleen-flex cleen-flex-wrap cleen-justify-center cleen-items-start cleen-gap-8 cleen-bg-background cleen-min-w-80 cleen-w-min cleen-border cleen-border-primary/20 cleen-rounded-[10px] cleen-shadow-lg",c?.container),style:u?.container,children:n?Xo("div",{className:We("cleen-py-4",c?.loader?.container),style:u?.loader?.container,children:Xo(te,{...c?.loader?.component,...u?.loader?.component})}):Rg("form",{className:We("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",c?.form?.container),style:u?.form?.container,onSubmit:M=>M.preventDefault(),children:[Xo(de,{label:o?.number,name:"number",type:"tel",autoComplete:"cc-number",className:We("cleen-w-full",c?.form?.cardNumber?.className),classNames:{...c?.form?.cardNumber?.classNames,inputContainer:We({"cleen-border-error":l?.number},c?.form?.cardNumber?.classNames?.inputContainer),input:We({"cleen-text-error":l?.number},c?.form?.cardNumber?.classNames?.input)},...u?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:x.number,onChange:g,onFocus:P,infoLabels:{errorMessage:l?.number}}),Rg("div",{className:We("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",c?.form?.cvcExpiryContainer),style:u?.form?.cvcExpiryContainer,children:[Xo(de,{label:o?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:c?.form?.expiry?.className,classNames:{...c?.form?.expiry?.classNames,inputContainer:We({"cleen-border-error":l?.expiry},c?.form?.expiry?.classNames?.inputContainer),input:We({"cleen-text-error":l?.expiry},c?.form?.expiry?.classNames?.input)},...u?.form?.expiry,placeholder:"00/00",value:x.expiry,onChange:g,onFocus:P,infoLabels:{errorMessage:l?.expiry}}),Xo(de,{label:o?.cvc,name:"cvc",type:"tel",inputMode:"numeric",autoComplete:"cc-csc",maxLength:C==="amex"?4:3,className:c?.form?.cvc?.className,classNames:{...c?.form?.cvc?.classNames,inputContainer:We({"cleen-border-error":l?.cvc},c?.form?.cvc?.classNames?.inputContainer),input:We({"cleen-text-error":l?.cvc},c?.form?.cvc?.classNames?.input)},...u?.form?.cvc,placeholder:"***",value:x.cvc,onChange:g,onFocus:P,infoLabels:{errorMessage:l?.cvc}})]}),(p?.infoMessage||p?.errorMessage||p?.subtitle)&&Xo(Y,{...p})]})})})});import{cn as Dg}from"@cleen/ui-core";import{jsx as Lg}from"react/jsx-runtime";var So=({isHorizontal:e=!0,className:o,classNames:r,style:n,styles:l,...a})=>Lg("div",{className:Dg("cleen",o),style:n,children:Lg("div",{className:Dg("cleen-bg-gray-200 cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",r?.container),style:l?.container,...a})});import{cn as Ko,useBodyScrollLock as f5,useCleenOverlays as Tg,ZIndex as g5}from"@cleen/ui-core";import{forwardRef as v5,useCallback as y5,useEffect as O1,useId as I5,useRef as b5,useState as Ng}from"react";import{createPortal as C5}from"react-dom";import{jsx as Pn,jsxs as Wl}from"react/jsx-runtime";var x5={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},Fg=300,_1=v5(function({title:o,subtitle:r,children:n,headerCloseBtn:l,footer:a,isOpen:c=!1,onClose:s,closeOnOverlayClick:u=!0,position:p="right",zIndex:i=g5.DRAWER,size:f="lg",p:h,gap:b,className:I,classNames:v,style:y,styles:x,...C},g){let[P,M]=Ng(c),[B,w]=Ng(c),k=b5(null),D=I5(),{addOverlay:E,removeOverlay:N}=Tg(),R=y5(()=>{M(!1),setTimeout(()=>s?.(),Fg)},[s]);return O1(()=>{if(c){w(!0);let F=setTimeout(()=>M(!0),1);return()=>clearTimeout(F)}else{M(!1);let F=setTimeout(()=>w(!1),Fg);return()=>clearTimeout(F)}},[c]),O1(()=>{if(c)return E(D),()=>N(D)},[E,N,c,D]),O1(()=>{let F=T=>{let{overlays:S}=Tg.getState();T.key==="Escape"&&S[S.length-1]===D&&R()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[R,D]),f5(B),B?C5(Wl("div",{className:Ko("cleen",I),style:y,ref:g,...C,children:[Pn("div",{className:Ko("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-white/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",v?.overlay),onClick:()=>{u&&R()},style:{zIndex:i-1,...x?.overlay},"aria-hidden":"true"}),Wl("div",{className:Ko("cleen-top-0 cleen-fixed cleen-flex cleen-flex-col cleen-gap-6 cleen-bg-white cleen-shadow-l cleen-h-dvh cleen-transition-transform cleen-duration-300 cleen-ease-in-out cleen-transform",p==="right"?"cleen-right-0":"cleen-left-0",P?"cleen-translate-x-0":p==="right"?"cleen-translate-x-full":"-cleen-translate-x-full",v?.drawer),style:{zIndex:i,width:typeof f=="number"?f:x5[f],...b!==void 0&&{gap:b},...x?.drawer},ref:k,children:[Wl("div",{className:Ko("cleen-flex cleen-justify-between cleen-items-center cleen-px-6 cleen-pt-6 cleen-w-full",v?.header),style:{...h!==void 0&&{paddingInline:h,paddingTop:h},...x?.header},children:[Wl("div",{className:"cleen-flex cleen-flex-col",children:[Pn("span",{className:Ko("cleen-font-semibold cleen-text-gray-900 cleen-text-xl",v?.title),style:x?.title,children:o}),Pn("span",{className:Ko("cleen-font-normal cleen-text-gray-600 cleen-text-sm",v?.subtitle),style:x?.subtitle,children:r})]}),l||Pn(Be,{onClick:R,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),Pn("div",{className:Ko("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",v?.content),style:{...h!==void 0&&{paddingInline:h},...x?.content},children:n}),a&&Pn("div",{className:Ko("cleen-flex cleen-justify-end cleen-items-center cleen-gap-2 cleen-bg-sidebar cleen-px-6 cleen-py-4 cleen-border-gray-200 cleen-border-t",v?.footer),style:{...h!==void 0&&{paddingInline:h,paddingBlock:b},...x?.footer},children:a})]})]}),document.body):null});import{cn as Bt,useAnimateNumber as P5}from"@cleen/ui-core";import{forwardRef as S5,useEffect as M5,useMemo as w5,useRef as k5,useState as B5}from"react";import{jsx as $l,jsxs as H1}from"react/jsx-runtime";var Sn=S5(({percentage:e,title:o,barColor:r,backgroundColor:n="rgb(var(--cleen-gray-200))",textColor:l="rgb(var(--cleen-gray-900))",invertProgressColors:a=!1,showPercentage:c=!1,renderAnimated:s=!1,renderAnimatedDuration:u=1e3,className:p,classNames:i,style:f,styles:h,...b},I)=>{let v=Math.max(0,Math.min(e,100)),y=k5(v),[x,C]=B5(s?0:v),g=P5({targetNumber:x,duration:u,disabled:!s});M5(()=>{if(s){setTimeout(()=>C(v),0);return}y.current!==v&&(C(v),y.current=v)},[v,s]);let P=w5(()=>{if(r)return r;switch(v<=30?"red":v<70?"orange":"green"){case"red":return a?"rgb(var(--cleen-success))":"rgb(var(--cleen-error))";case"orange":return"rgb(var(--cleen-warning))";case"green":return a?"rgb(var(--cleen-error))":"rgb(var(--cleen-success))";default:return"rgb(var(--cleen-success))"}},[v,a,r]);return $l("div",{ref:I,className:Bt("cleen",p),style:f,children:H1("div",{className:Bt("cleen-w-full",i?.container),style:h?.container,...b,children:[o&&$l("div",{className:Bt("cleen-mb-1 cleen-font-semibold cleen-text-xs",i?.title),style:h?.title,children:o}),H1("div",{className:Bt("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",i?.wrapper||i?.progress),style:h?.wrapper??h?.progress,children:[$l("div",{className:Bt("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",i?.track),style:{backgroundColor:n,...h?.track},children:$l("div",{className:Bt("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",i?.fill),style:{width:`${x}%`,backgroundColor:P,...s&&{transitionDuration:`${u}ms`},...h?.fill}})}),c&&H1("span",{className:Bt("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",i?.text),style:{color:l,...h?.text},children:[Math.round(g),"%"]})]})]})})});Sn.displayName="ProgressBar";import{cn as Zo,FileEntryStatus as Rt}from"@cleen/ui-core";import{useMemo as Eg}from"react";import{Fragment as Ag,jsx as be,jsxs as Dt}from"react/jsx-runtime";var zg=({fileEntry:e,onRemove:o,onFileClick:r,labels:n,classNames:l,styles:a})=>{let{id:c,file:s,name:u,size:p,url:i,type:f,status:h,progress:b=0,preExisting:I}=e,v=h===Rt.UPLOADING,y=h===Rt.ERROR,x=h===Rt.DONE,C=h===Rt.DELETING,g=p?p*b/100:0,P=Eg(()=>{switch(h){case Rt.UPLOADING:return Dt(Ag,{children:[be(It,{className:"cleen-size-4"}),be("span",{children:n?.uploading})]});case Rt.DONE:return be(pt,{className:"cleen-size-4"});case Rt.ERROR:return be(it,{className:"cleen-size-4"});default:return null}},[h,n]),M=()=>{if(r){r(e);return}i&&window.open(i,"_blank","noopener,noreferrer")},B=u||s?.name||"",[w,k]=B.split("."),D=Eg(()=>f?.startsWith("image/")&&i?be("img",{src:i,alt:B,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):f==="application/pdf"?be(ut,{className:"cleen-size-8"}):be(mt,{className:"cleen-size-8"}),[B,f,i]);return be(le,{p:12,className:l?.card?.className,classNames:{...l?.card?.classNames,container:Zo(l?.card?.classNames?.container,{"hover:cleen-bg-gray-100 cleen-cursor-pointer cleen-overflow-hidden":x})},...a?.card,onClick:x?M:void 0,children:Dt("div",{className:Zo("cleen-space-y-1",l?.container),style:a?.container,children:[Dt("div",{className:Zo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.nameContainer),style:a?.nameContainer,children:[D,Dt("div",{className:Zo("cleen-text-black cleen-text-sm cleen-font-medium cleen-flex",l?.name),style:{maxWidth:D?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...a?.name},children:[be("span",{className:"cleen-truncate cleen-shrink",children:w}),Dt("span",{className:"cleen-whitespace-nowrap",children:[".",k]})]}),be("div",{className:"cleen-flex-1"}),!v&&(C?be(te,{color:"rgb(var(--cleen-error))",className:Zo("cleen-shrink-0")}):be(Ve,{className:Zo("cleen-size-4 cleen-shrink-0 cleen-text-gray-600 hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer"),onClick:E=>{E.stopPropagation(),o?.(c)}}))]}),Dt("div",{className:Zo("cleen-flex cleen-gap-2 cleen-items-center cleen-text-gray-600 cleen-text-xs",l?.statusContainer),style:a?.statusContainer,children:[!!p&&(v?be("p",{children:n?.uploadProgress?.(g,p)}):x&&be("p",{children:n?.uploaded?.(p)})),!I&&Dt(Ag,{children:[be("span",{children:"|"}),be("div",{className:Zo("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":y,"cleen-text-success":x},l?.statusText),style:a?.statusText,children:P})]})]}),v&&be(Sn,{barColor:"rgb(var(--cleen-primary))",percentage:b,showPercentage:!0,...l?.progressBar,...a?.progressBar})]})},c)};var ql=e=>{if(e===0)return"0 B";let o=1024,r=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(o));return`${parseFloat((e/Math.pow(o,n)).toFixed(1))} ${r[n]}`};var Og={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,o)=>`${ql(e)} of ${ql(o)}`,uploaded:e=>ql(e)};var _g={uploading:e=>`Uploading ${e} ${e===1?"item":"items"}`,completed:"Uploads complete",showMore:e=>`+${e} more`,showLess:"Show less",dismiss:"Dismiss",contract:"Contract",uploadProgress:e=>`${Math.round(e)}%`};var Zr=(a=>(a.PENDING="pending",a.IN_PROGRESS="inProgress",a.DONE="done",a.ERROR="error",a.REMOVING="removing",a))(Zr||{});import{cn as Lt}from"@cleen/ui-core";import{jsx as Qo,jsxs as Hg}from"react/jsx-runtime";var U1=({item:e,labels:o,classNames:r,styles:n})=>{let{status:l,progress:a=0,icon:c,name:s}=e,u=l==="inProgress",p=l==="done",i=l==="error",f=l==="removing",h=l==="pending";return Hg("div",{className:Lt("cleen-flex cleen-items-center cleen-gap-3",r?.container),style:n?.container,children:[c,Hg("div",{className:Lt("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",r?.infoContainer),style:n?.infoContainer,children:[Qo("p",{className:Lt("cleen-font-medium cleen-text-gray-900 cleen-text-sm cleen-truncate",r?.name),style:n?.name,children:s}),u&&Qo(Sn,{barColor:"rgb(var(--cleen-primary))",percentage:a,...r?.progressBar,...n?.progressBar})]}),u&&Qo("span",{className:Lt("cleen-shrink-0 cleen-text-gray-500 cleen-text-xs",r?.progressText),style:n?.progressText,children:o?.itemProgress?.(a)}),f&&Qo(te,{color:"rgb(var(--cleen-error))"}),p&&Qo(pt,{className:Lt("cleen-size-5 cleen-shrink-0 cleen-text-success",r?.statusIcon),style:n?.statusIcon}),i&&Qo(it,{className:Lt("cleen-size-5 cleen-shrink-0 cleen-text-error",r?.statusIcon),style:n?.statusIcon}),h&&Qo("div",{className:Lt("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",r?.statusIcon),style:n?.statusIcon,children:Array.from({length:3}).map((b,I)=>Qo("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${I*.1}s`}},I))})]})};var Qr=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(Qr||{}),Jr=["notStarted","inProgress","completed","all"];import{cn as Xl}from"@cleen/ui-core";import{jsx as Ug,jsxs as R5}from"react/jsx-runtime";var G1=({value:e,onChange:o,counts:r,labels:n,classNames:l,styles:a})=>Ug("div",{role:"group","aria-label":n?.statusFilter,className:Xl("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-0.5 cleen-bg-gray-100 cleen-p-0.5 cleen-border cleen-border-gray-200 cleen-rounded-md",l?.container),style:a?.container,children:Jr.map(c=>{let s=c===e;return R5("button",{type:"button","aria-pressed":s,onClick:()=>o(c),className:Xl("cleen-flex cleen-items-center cleen-gap-1 cleen-px-2 cleen-py-0.5 cleen-rounded cleen-font-medium cleen-text-gray-500 cleen-text-xs cleen-whitespace-nowrap cleen-transition-colors hover:cleen-text-gray-900 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.option,s&&Xl("cleen-bg-background cleen-text-gray-900 cleen-shadow-sm",l?.optionActive)),style:{...a?.option,...s&&a?.optionActive},children:[n?.statusFilterOptions?.[c],r&&Ug("span",{className:Xl("cleen-text-gray-400 cleen-tabular-nums",l?.optionCount),style:a?.optionCount,children:r[c]})]},c)})});var Gg={processing:e=>`Processing ${e} ${e===1?"item":"items"}`,completed:"Processing complete",showMore:e=>`+${e} more`,showLess:"Show less",dismiss:"Dismiss",contract:"Contract",itemProgress:e=>`${Math.round(e)}%`,statusFilter:"Filter by status",statusFilterOptions:{notStarted:"Not Started",inProgress:"In Progress",completed:"Completed",all:"All"},emptyStatusFilter:"Nothing to show for this status"};var Vg=e=>e.status==="inProgress"||e.status==="pending",Wg=e=>e.length>0&&e.every(o=>o.status==="done"),V1=(e,o)=>{switch(o){case"notStarted":return e.status==="pending";case"inProgress":return e.status==="inProgress"||e.status==="removing";case"completed":return e.status==="done"||e.status==="error";case"all":default:return!0}};import{applyDefaults as D5,cn as je,useControlled as $g,useDisclosure as L5}from"@cleen/ui-core";import{forwardRef as T5,useEffect as qg,useMemo as W1,useRef as N5}from"react";import{jsx as ro,jsxs as $1}from"react/jsx-runtime";var q1=T5(function({items:o,title:r,maxVisibleItems:n=5,isExpanded:l,defaultExpanded:a=!1,onExpandedChange:c,onDismiss:s,autoDismissOnUploadCompleteAfterMilliSeconds:u,showHeader:p=!0,showStatusFilter:i=!1,showStatusFilterCounts:f=!1,statusFilter:h,defaultStatusFilter:b="inProgress",onStatusFilterChange:I,labels:v,className:y,classNames:x,style:C,styles:g,...P},M){let{isOpen:B,toggle:w,close:k}=L5(),{value:D,handleChange:E}=$g({value:l,defaultValue:a,onChange:c});qg(()=>{o.length>0&&k()},[o.length,k]);let N=D5(Gg,v),{value:R,handleChange:F}=$g({value:h,defaultValue:b,onChange:I}),T=N5(s);T.current=s;let S=Wg(o);qg(()=>{if(u==null||!T.current||!S)return;if(u<=0){T.current();return}let q=setTimeout(()=>T.current?.(),u);return()=>clearTimeout(q)},[S,u]);let z=W1(()=>o.filter(Vg).length,[o]),L=W1(()=>!i||!R?o:o.filter(q=>V1(q,R)),[o,i,R]),O=W1(()=>{if(f)return Jr.reduce((q,$)=>({...q,[$]:o.filter(U=>V1(U,$)).length}),{})},[o,f]);if(!o.length)return null;let _=Math.max(L.length-n,0),H=D||!_?L:L.slice(0,n),G=r??(z?N?.processing?.(z):N?.completed);return ro(le,{p:16,gap:12,ref:M,className:je(y,x?.card?.className),classNames:{...x?.card?.classNames,childrenContainer:je(x?.card?.classNames?.childrenContainer,{"cleen-hidden":B})},style:C,styles:g?.card?.styles,header:p?{hasDivider:!B,content:$1("div",{className:je("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",x?.header),style:g?.header,children:[ro("p",{className:je("cleen-font-semibold cleen-text-gray-900 cleen-text-sm",x?.title),style:g?.title,children:G}),$1("div",{className:je("cleen-flex cleen-items-center cleen-gap-2",x?.headerButtons),style:g?.headerButtons,children:[ro("button",{type:"button","aria-label":N?.contract,onClick:w,className:je("cleen-text-gray-500 hover:cleen-text-gray-900 cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",x?.contractButton),style:g?.contractButton,children:ro(Io,{className:je("cleen-size-5 cleen-transition-transform",B&&"cleen-rotate-180")})}),s&&ro("button",{type:"button","aria-label":N?.dismiss,onClick:s,className:je("cleen-text-gray-500 hover:cleen-text-gray-900 cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",x?.dismissButton),style:g?.dismissButton,children:ro(Be,{className:"cleen-size-4"})})]})]})}:void 0,...P,children:$1("div",{className:je("cleen-flex cleen-flex-col cleen-gap-3",x?.list),style:g?.list,children:[i&&R&&ro(G1,{value:R,onChange:F,counts:O,labels:N,classNames:x?.statusFilter,styles:g?.statusFilter}),!H.length&&ro("p",{className:je("cleen-text-gray-500 cleen-text-xs",x?.emptyStatusFilter),style:g?.emptyStatusFilter,children:N?.emptyStatusFilter}),H.map(q=>ro(U1,{item:q,labels:N,classNames:x?.row,styles:g?.row},q.id)),!!_&&ro("button",{type:"button","aria-expanded":D,onClick:()=>E(!D),className:je("cleen-self-start cleen-font-medium cleen-text-primary cleen-text-xs hover:cleen-underline focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",x?.expandButton),style:g?.expandButton,children:D?N?.showLess:N?.showMore?.(_)})]})})});import{FileEntryStatus as Mo}from"@cleen/ui-core";var F5=[{label:"PDF",className:"cleen-bg-error",extensions:["pdf"]},{label:"DOC",className:"cleen-bg-primary",extensions:["doc","docx","rtf","odt"]},{label:"XLS",className:"cleen-bg-success",extensions:["xls","xlsx","csv","ods"]},{label:"IMG",className:"cleen-bg-warning",extensions:["png","jpg","jpeg","gif","svg","webp"]}],Xg={label:"FILE",className:"cleen-bg-gray-500"},E5={[Mo.QUEUED]:"inProgress",[Mo.UPLOADING]:"inProgress",[Mo.PAUSED]:"inProgress",[Mo.DONE]:"done",[Mo.ERROR]:"error",[Mo.DELETING]:"removing"},X1=e=>e.name||e.file?.name||"",Kg=e=>{let o=X1(e).split(".").pop()?.toLowerCase()??"",r=F5.find(({extensions:n})=>n.includes(o));return r?{label:r.label,className:r.className}:{label:o?o.slice(0,4).toUpperCase():Xg.label,className:Xg.className}},Zg=e=>e.status===Mo.QUEUED||e.status===Mo.UPLOADING||e.status===Mo.PAUSED,Qg=e=>E5[e.status]??"pending",Jg=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as A5}from"@cleen/ui-core";import{jsx as z5}from"react/jsx-runtime";var Yg=({fileEntry:e,className:o,style:r})=>{let n=Kg(e);return z5("div",{className:A5("cleen-flex cleen-justify-center cleen-items-center cleen-rounded-md cleen-size-8 cleen-shrink-0 cleen-font-semibold cleen-text-[10px] cleen-text-white",n.className,o),style:r,children:n.label})};import{jsx as O5}from"react/jsx-runtime";var jg=(e,o)=>({id:e.id,name:X1(e),progress:e.progress,status:Qg(e),icon:O5(Yg,{fileEntry:e,className:o?.className,style:o?.style})});import{applyDefaults as _5}from"@cleen/ui-core";import{forwardRef as H5,useMemo as ev}from"react";import{jsx as U5}from"react/jsx-runtime";var K1=H5(function({files:o,title:r,maxVisibleFiles:n=5,labels:l,classNames:a,styles:c,...s},u){let p=ev(()=>Jg(o),[o]),i=_5(_g,l),f=ev(()=>p.map(I=>jg(I,{className:a?.row?.typeBadge,style:c?.row?.typeBadge})),[p,a?.row?.typeBadge,c?.row?.typeBadge]),h=p.filter(Zg).length,b=r??(h?i?.uploading?.(h):i?.completed);return U5(q1,{ref:u,items:f,title:b,maxVisibleItems:n,labels:{showMore:i?.showMore,showLess:i?.showLess,dismiss:i?.dismiss,contract:i?.contract,itemProgress:i?.uploadProgress},classNames:a,styles:c,...s})});import{applyDefaults as G5,cn as Re,FileEntryStatus as V5,useFileUpload as W5}from"@cleen/ui-core";import{forwardRef as $5,useEffect as q5,useMemo as ov,useRef as tv,useState as Z1}from"react";import{createPortal as X5}from"react-dom";import{jsx as De,jsxs as Kl}from"react/jsx-runtime";var K5=$5(function({required:o,icon:r,files:n,initialFiles:l=[],onFilesChange:a,onFileUpload:c,onFilesUpload:s,onFileRemove:u,onFileClick:p,infoLabels:i,containerRef:f,label:h,labelTooltip:b,labels:I,showUploadedFiles:v=!1,showProgressTracker:y=!1,progressTracker:x,className:C,classNames:g,style:P,styles:M,multiple:B,disabled:w,loadingWhileUploading:k,isLoading:D,readOnly:E,onChange:N,id:R,name:F,...T},S){let z=tv(null),{files:L,addFiles:O,remove:_}=W5({files:n,onFilesChange:a,initialFiles:l,onFileUpload:c,onFilesUpload:s,onFileRemove:u}),H=ov(()=>D||k&&Array.from(L.values()).some(X=>X.status===V5.UPLOADING),[L,k,D]),[G,q]=Z1(!1),[$,U]=Z1([]),[V,J]=Z1(!1),A=tv(new Set(L.keys()));q5(()=>{let X=Array.from(L.keys()),Se=X.filter(ve=>!A.current.has(ve));A.current=new Set(X),U(ve=>{let se=ve.filter(ct=>L.has(ct));return Se.length?V?Se:[...se,...Se.filter(ct=>!se.includes(ct))]:se.length===ve.length?ve:se}),Se.length&&J(!1)},[L,V]);let Z=ov(()=>$.map(X=>L.get(X)).filter(X=>!!X),[$,L]),ce=()=>{J(!0),U([]),x?.onDismiss?.()},ge=!w&&!E&&!H,xe=X=>{let Se=Array.from(X.target.files??[]);O(Se),N?.(X)},at=X=>{_(X)},oo=()=>{ge&&z.current?.click()},Wt=X=>{if(!X.length)return;let Se=B?X:X.slice(0,1);if(!z.current||typeof DataTransfer>"u"){O(Se);return}let ve=new DataTransfer;Se.forEach(se=>ve.items.add(se));try{z.current.files=ve.files}catch{O(Se);return}O(Se),N?.({target:z.current,currentTarget:z.current})},lt=X=>{X.preventDefault(),X.stopPropagation(),q(!1),ge&&Wt(Array.from(X.dataTransfer.files??[]))},Pe=X=>{X.preventDefault(),X.stopPropagation(),ge&&q(!0)},Ze=X=>{X.preventDefault(),X.stopPropagation(),ge&&q(!0)},$t=X=>{X.preventDefault(),X.stopPropagation(),ge&&q(!1)},Oe=X=>{ge&&(X.key!=="Enter"&&X.key!==" "||(X.preventDefault(),oo()))},_e=G5(Og,I);return Kl("div",{className:Re("cleen",C),style:P,ref:f,children:[De("input",{id:R||F,name:F,ref:X=>{if(z.current=X,typeof S=="function"){S(X);return}S&&(S.current=X)},type:"file",multiple:B,disabled:w||H,readOnly:E,className:Re("cleen-hidden",g?.input),style:M?.input,onChange:xe,...T}),h&&De(ee,{htmlFor:R||F,required:o,tooltip:b,className:Re("cleen-mb-1.5",g?.label?.className),classNames:g?.label?.classNames,...M?.label,children:h}),Kl("div",{className:Re("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":H}),children:[De(le,{tabIndex:ge?0:-1,role:"button","aria-label":typeof h=="string"?h:"Upload file","aria-disabled":w||E||H,onClick:oo,onKeyDown:Oe,onDrop:lt,onDragEnter:Pe,onDragOver:Ze,onDragLeave:$t,p:16,className:Re("cleen-rounded-lg focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",g?.card?.className),classNames:{...g?.card?.classNames,container:Re("cleen-transition-colors",w?"cleen-cursor-not-allowed cleen-bg-gray-100":"cleen-cursor-pointer hover:cleen-bg-gray-50 hover:cleen-border-primary",g?.card?.classNames?.container,G&&["cleen-border-primary cleen-bg-primary/5",g?.cardDragActive]),childrenContainer:Re({"cleen-blur-sm":H},g?.card?.classNames?.childrenContainer)},style:M?.card?.style,styles:{...M?.card?.styles,container:{...M?.card?.styles?.container,...G?M?.cardDragActive:void 0}},children:Kl("div",{className:Re("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",g?.dropArea),style:M?.dropArea,"aria-disabled":w||E||H,children:[De("div",{className:Re("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-size-11 cleen-text-gray-700",g?.iconContainer),style:M?.iconContainer,children:r||De(It,{className:"cleen-size-5"})}),Kl("p",{className:Re("cleen-font-medium cleen-text-sm",g?.textContainer),style:M?.textContainer,children:[De("span",{className:Re(w?"cleen-text-gray-500":"cleen-text-primary",g?.primaryText),style:M?.primaryText,children:_e?.primaryText})," ",De("span",{className:Re("cleen-text-gray-900",g?.secondaryText),style:M?.secondaryText,children:_e?.secondaryText})]}),De("p",{className:Re("cleen-text-gray-600 cleen-text-xs",g?.helperText),style:M?.helperText,children:_e?.helperText})]})}),H&&De(te,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),v&&L.size>0&&De("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(L.values()).map(X=>De(zg,{fileEntry:X,onRemove:at,onFileClick:p,labels:_e,classNames:g?.fileCard,styles:M?.fileCard},X.id))}),y&&!V&&Z.length>0&&X5(De("div",{className:"cleen",children:De(K1,{...x,files:Z,onDismiss:ce,className:Re("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",g?.progressTracker?.className),classNames:g?.progressTracker?.classNames,...M?.progressTracker})}),document.body),(i?.errorMessage||i?.infoMessage||i?.subtitle)&&De(Y,{...i})]})});var Z5=e=>{let o=e instanceof Date?e:new Date(e);if(Number.isNaN(o.getTime()))return;let r={dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat("en-US",r).format(o)}catch{return new Intl.DateTimeFormat("en-US",r).format(o)}},nv={uploaded:e=>`Uploaded: ${Z5(e)}`};var Q1={"image/":"image","video/":"video","audio/":"audio"},J1={"application/pdf":"pdf","application/msword":"document","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"document","application/vnd.oasis.opendocument.text":"document","application/rtf":"document","text/rtf":"document","text/plain":"document","application/vnd.ms-excel":"spreadsheet","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"spreadsheet","application/vnd.oasis.opendocument.spreadsheet":"spreadsheet","text/csv":"spreadsheet","application/zip":"archive","application/x-zip-compressed":"archive","application/vnd.rar":"archive","application/x-rar-compressed":"archive","application/x-7z-compressed":"archive","application/x-tar":"archive","application/gzip":"archive","application/x-gzip":"archive"},rv={png:"image",jpg:"image",jpeg:"image",gif:"image",bmp:"image",webp:"image",svg:"image",avif:"image",heic:"image",ico:"image",tif:"image",tiff:"image",mp4:"video",mov:"video",webm:"video",avi:"video",mkv:"video",m4v:"video",ogv:"video",mp3:"audio",wav:"audio",ogg:"audio",oga:"audio",m4a:"audio",aac:"audio",flac:"audio",weba:"audio",pdf:"pdf",doc:"document",docx:"document",txt:"document",rtf:"document",odt:"document",xls:"spreadsheet",xlsx:"spreadsheet",csv:"spreadsheet",ods:"spreadsheet",zip:"archive",rar:"archive","7z":"archive",tar:"archive",gz:"archive",tgz:"archive"},av=["http:","https:","blob:"];var Q5=e=>{let o=e?.split(";")[0].trim().toLowerCase();if(!o)return;if(o in J1)return J1[o];let r=Object.keys(Q1).find(n=>o.startsWith(n));return r?Q1[r]:void 0},Y1=e=>{let o=e.lastIndexOf(".");return o<0?void 0:e.slice(o+1).toLowerCase()},J5=e=>{let o=Y1(e);return o?rv[o]:void 0},lv=e=>Q5(e.type)??J5(e.name)??"generic",cv=e=>{if(!e)return!1;try{let o=typeof document<"u"?document.baseURI:void 0;return av.includes(new URL(e,o).protocol)}catch{return!1}};import{cn as wo,formatFileSize as Y5}from"@cleen/ui-core";import{forwardRef as j5,useMemo as sv,useState as e3}from"react";import{Fragment as t3,jsx as ao,jsxs as Zl}from"react/jsx-runtime";var o3=j5(function({file:o,preview:r=!1,onRemove:n,description:l,labels:a,className:c,classNames:s,style:u,styles:p,...i},f){let[h,b]=e3(),I=sv(()=>({...nv,...a}),[a]),v=lv(o),y=v1(Y1(o.name)),x=cv(o.url)?o.url:void 0,C=o.previewUrl||o.url,g=r&&(v==="image"||v==="video")&&!!C&&h!==C,P=sv(()=>{if(l!=null)return l;let k=[];if(o.size!=null&&k.push(Y5(o.size)),o.uploadedAt!=null){let D=I?.uploaded(o.uploadedAt);D&&k.push(D)}return k.length>0?k.join(" \u2022 "):null},[l,o.uploadedAt,o.size,I]),M=k=>{k.stopPropagation(),n?.(o)},B=wo("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-items-center cleen-gap-3 cleen-py-2 cleen-px-3 cleen-rounded-lg",x&&"cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-inset focus-visible:cleen-ring-primary",s?.main),w=Zl(t3,{children:[Zl("div",{className:wo("cleen-flex cleen-size-10 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-overflow-hidden cleen-rounded-lg cleen-bg-primary-50 cleen-text-primary-600",s?.media),style:p?.media,children:[g&&(v==="image"||v==="video"&&o.previewUrl)&&ao("img",{src:C,alt:o.name,className:"cleen-size-full cleen-object-cover",onError:()=>b(C)}),g&&v==="video"&&!o.previewUrl&&ao("video",{src:C,"aria-label":o.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>b(C)}),!g&&ao(y,{"aria-hidden":!0,className:wo("cleen-size-5",s?.icon),style:p?.icon})]}),Zl("div",{className:wo("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",s?.content),style:p?.content,children:[ao("span",{className:wo("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-gray-900",s?.title),style:p?.title,title:o.name,children:o.name}),P!==null&&ao("span",{className:wo("cleen-truncate cleen-text-xs cleen-text-gray-500",s?.description),style:p?.description,children:P})]})]});return ao("div",{className:wo("cleen",c),style:u,ref:f,...i,children:Zl("div",{className:wo("cleen-flex cleen-w-full cleen-min-w-0 cleen-items-center cleen-rounded-lg cleen-border cleen-border-gray-200 cleen-bg-background cleen-transition-all cleen-duration-200",x&&"hover:cleen-border-gray-300 hover:cleen-shadow-md",s?.container),style:p?.container,children:[x?ao("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:B,style:p?.main,children:w}):ao("div",{className:B,style:p?.main,children:w}),n&&ao("button",{type:"button",className:wo("cleen-mr-3 cleen-flex cleen-size-8 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-error cleen-transition-colors hover:cleen-bg-gray-100 focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-error",s?.removeButton),style:p?.removeButton,onClick:M,children:ao(Be,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Ql={filterName:"",exposed:!1};import{createContext as n3}from"react";var $e=n3({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as r3}from"@cleen/ui-core";import{useContext as a3,useState as l3}from"react";import{Fragment as c3,jsx as Yr,jsxs as j1}from"react/jsx-runtime";var iv={min:3,max:50},pv=()=>{let{isSaveFiltersStep:e,saveStepValues:o,setSaveStepValues:r,setIsSaveFiltersStep:n,handleCloseSaveFilter:l,setError:a,onSave:c,classNames:s,styles:u,labels:p,withSavedFilters:i=!0,onCancel:f,onApply:h}=a3($e),[b,I]=l3(!1),v=async()=>{try{if(o.filterName.length<iv.min){a?.("filterName",p?.saveStep?.validation?.tooShort);return}if(o.filterName.length>iv.max){a?.("filterName",p?.saveStep?.validation?.tooLong);return}I(!0),await c?.(o),n(!1)}catch(y){console.error("Error saving filters:",y)}finally{I(!1)}};return e?j1("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[Yr(re,{onClick:()=>n(!1),variant:"secondary",...s?.saveFilter?.backBtn,...u?.saveFilter?.backBtn,children:p?.saveStep?.back}),Yr(re,{onClick:v,isLoading:b,loaderColor:"rgb(var(--cleen-white))",...s?.saveFilter?.saveBtn,...u?.saveFilter?.saveBtn,children:p?.saveStep?.save})]}):j1(c3,{children:[i&&Yr(re,{onClick:()=>{r(Ql),n(!0)},variant:"borderless-blue",...s?.saveBtn,...u?.saveBtn,children:p?.save}),j1("div",{className:r3("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!i}),children:[Yr(re,{onClick:()=>{f?.(),l()},variant:"secondary",...s?.cancelBtn,...u?.cancelBtn,children:p?.cancel}),Yr(re,{onClick:()=>{h?.(),l()},...s?.applyBtn,...u?.applyBtn,children:p?.apply})]})]})};import{cn as Jl}from"@cleen/ui-core";import{Link as s3}from"react-router-dom";import{Fragment as mv,jsx as Tt,jsxs as eu}from"react/jsx-runtime";var dv=({item:e,classNames:o,styles:r})=>({disabled:e?.disabled,className:Jl("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-gray-900 cleen-text-sm cleen-text-left cleen-transition-colors",e?.disabled?"cleen-opacity-50 cleen-select-none cleen-cursor-not-allowed cleen-pointer-events-none":"hover:cleen-bg-gray-100 cleen-cursor-pointer",{"cleen-text-error hover:cleen-bg-error/10":e?.danger},o?.container),style:r?.container,children:eu(mv,{children:[e?.icon,Tt("span",{className:Jl("cleen-flex-1",o?.label),style:r?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),ou=({item:e,isLast:o,handleClick:r,onEnterSubmenu:n,classNames:l,styles:a})=>{switch(e?.type){case"group":return eu(mv,{children:[e?.label&&Tt("p",{className:Jl("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-gray-500 cleen-text-xs",l?.groupLabel),style:a?.groupDivider,children:e?.label}),e?.items?.map((c,s,u)=>Tt(ou,{item:c,handleClick:r,onEnterSubmenu:n,isLast:s===u.length-1},c?.id||s)),!o&&Tt("hr",{className:Jl("cleen-text-gray-200",l?.groupDivider),style:a?.groupDivider})]});case"button":{let c=e?.submenu&&e?.submenu?.length>0;return eu("button",{type:"button",onClick:()=>{c?n?.(e.submenu,e?.label):r?.(e)},...dv({item:e,classNames:l,styles:a}),children:[e?.icon,Tt("span",{className:"cleen-flex-1",children:e?.label}),c&&Tt(Je,{className:"cleen-size-4 cleen-text-gray-400"})]})}case"link":return Tt(s3,{to:"",...dv({item:e,classNames:l,styles:a})});default:return null}};import{cn as i3}from"@cleen/ui-core";import{useEffect as uv,useState as hv}from"react";import{Fragment as p3,jsx as fv,jsxs as gv}from"react/jsx-runtime";var vv=({items:e,keepOpenOnClick:o,hideMenu:r,classNames:n,styles:l})=>{let[a,c]=hv([]),[s,u]=hv(e),p=(h,b)=>{c(I=>[...I,{items:s,title:b}]),u(h)},i=()=>{let h=a[a?.length-1];h&&(u(h?.items),c(b=>b?.slice(0,-1)))};uv(()=>{u(e),c([])},[e]),uv(()=>{let h=b=>{if(b.key==="Escape")if(a.length>0){let I=a?.[a?.length-1];u(I?.items),c(v=>v?.slice(0,-1))}else r()};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[r,a]);let f=h=>{h?.onClick?.(),o||r()};return gv(p3,{children:[a?.length>0&&gv("button",{onClick:i,className:i3("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-sm cleen-text-gray-900 hover:cleen-bg-gray-50",n?.submenuButton),style:l?.submenuButton,children:[fv(yo,{className:"cleen-size-4 cleen-text-gray-300"}),a?.[a?.length-1]?.title]}),s?.map((h,b,I)=>fv(ou,{item:h,isLast:b===I?.length-1,handleClick:f,onEnterSubmenu:p,classNames:n?.item,styles:l?.item},h?.id||b))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as d3,cn as tu,useDisclosure as m3,useOutsideClick as u3,usePositionClose as h3,ZIndex as f3}from"@cleen/ui-core";import{forwardRef as g3,useRef as yv}from"react";import{createPortal as v3}from"react-dom";import{jsx as Yl,jsxs as y3}from"react/jsx-runtime";var Mn=g3(function({items:o=[],position:r="bottom-left",keepOpenOnClick:n=!0,triggerRef:l,menuRef:a,ignoreClickOutside:c=!1,zIndex:s=f3.MENU,children:u,className:p,classNames:i,style:f,styles:h,...b},I){let{isOpen:v,toggle:y,close:x}=m3(),C=yv(null),g=yv(null),P=l??C,M=a??g,{positionStyles:B,isMounted:w}=h3({triggerRef:P,targetRef:M,position:r,isOpen:v});u3({refs:[P,M],handler:x,enabled:v});let k=()=>{y()};return y3("div",{className:tu("cleen",p),style:f,ref:I,...b,children:[Yl("div",{ref:P,onClick:k,className:tu("cleen-size-fit",i?.trigger,v&&i?.triggerOpen),style:{...h?.trigger,...v?h?.triggerOpen:{}},children:u}),v&&v3(Yl("div",{className:"cleen",...c&&{[d3]:"true"},children:Yl("div",{ref:M,className:tu("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-gray-200 cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!w},i?.menu),style:{zIndex:s,top:`${B.top}px`,left:`${B.left}px`,...h?.menu},children:Yl(vv,{items:o,keepOpenOnClick:n,hideMenu:x,classNames:i,styles:h})})}),document.body)]})});import{cn as jl,ColorHelpers as lu}from"@cleen/ui-core";import{useMemo as I3}from"react";var nu=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow"],ru={blue:"cleen-border-primary/30 cleen-bg-primary/10 cleen-text-primary","lighter-blue":"cleen-border-primary/20 cleen-bg-primary/5 cleen-text-primary",primary:"cleen-border-brand cleen-bg-brand cleen-text-white",indigo:"cleen-border-indigo/50 cleen-bg-indigo/5 cleen-text-indigo/80",green:"cleen-border-success/20 cleen-bg-success/5 cleen-text-success",red:"cleen-border-error/20 cleen-bg-error/5 cleen-text-error",purple:"cleen-border-purple/20 cleen-bg-purple/5 cleen-text-purple/80",pink:"cleen-border-pink/50 cleen-bg-pink/5 cleen-text-pink/80",orange:"cleen-border-warning/20 cleen-bg-warning/5 cleen-text-warning",yellow:"cleen-text-warning cleen-bg-yellow/10 cleen-border-yellow",gray:"cleen-border-gray-200 cleen-bg-gray-100 cleen-text-gray-600"},Iv={blue:"cleen-bg-primary/50",primary:"cleen-bg-primary/50",indigo:"cleen-bg-indigo/50",green:"cleen-bg-success/50",red:"cleen-bg-error/50",purple:"cleen-bg-purple/50",pink:"cleen-bg-pink/50",orange:"cleen-bg-warning/50",yellow:"cleen-bg-yellow/50",gray:"cleen-bg-gray-300"},bv={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var au=(e,o)=>!e&&!o?"primary":o?nu[o%nu.length]:e;import{jsx as cu,jsxs as b3}from"react/jsx-runtime";var Le=({className:e,classNames:o,style:r,styles:n,label:l,color:a="primary",variant:c="rounded",showDot:s=!1,icon:u,removeable:p=!1,withBorder:i=!0,onRemoveClicked:f,onClick:h,colorByIndex:b,children:I,...v})=>{let{variantClass:y,dotVariantClass:x,dotVariantStyle:C,variantStyle:g}=I3(()=>{let P={};return a in ru?(P.variantClass=ru[au(a,b)],P.dotVariantClass=Iv[au(a,b)]):(P.variantStyle={borderColor:lu.trasparentize(a,.8),backgroundColor:lu.trasparentize(a,.95),color:a},P.dotVariantStyle={backgroundColor:lu.trasparentize(a,.5)}),P},[a,b]);return cu("div",{className:jl("cleen",e),style:r,children:b3("span",{className:jl("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-text-xs cleen-font-medium cleen-py-0.5 cleen-px-2 cleen-w-fit cleen-min-w-max cleen-transition-all cleen-duration-200",y,bv[c],{"cleen-border":i},{"hover:cleen-opacity-80 cleen-cursor-pointer":h||p},o?.container),style:{...g,...n?.container},onClick:h,...v,children:[s&&cu("span",{className:jl("cleen-size-2 cleen-rounded-[50%]",x,o?.dot),style:{...C,...n?.dot}}),u,l??I,p&&cu(Be,{className:jl("cleen-cursor-pointer cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-transition-transform cleen-duration-200 hover:cleen-scale-125",o?.removable),style:n?.removable,onClick:f})]})})};import{cn as x3}from"@cleen/ui-core";import{useContext as P3,useState as Cv}from"react";import{jsx as lo,jsxs as S3}from"react/jsx-runtime";var xv=({filter:e,activeTabId:o})=>{let[r,n]=Cv(!1),[l,a]=Cv(!1),{labels:c,onFilterDelete:s,onFilterPin:u,onFilterSelect:p,onFilterUnpin:i,setIsFiltersDropdownOpen:f}=P3($e),h=async()=>{try{if(!s)return;n(!0),await s(e.filterID)}catch(I){console.error("Error while deleting filter:",I)}finally{n(!1)}},b=async()=>{try{a(!0),e?.isPinned?await i?.(e.filterID):await u?.(e.filterID)}catch(I){console.error("Error while pinning/unpinnning filter:",I)}finally{a(!1)}};return lo("div",{className:"cleen-group cleen-flex cleen-flex-col cleen-justify-around cleen-gap-2 hover:cleen-bg-primary/5 cleen-p-2 cleen-rounded-md cleen-min-h-10",children:S3("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{p?.(e),f(!1)},children:[lo("span",{className:"cleen-flex-1 cleen-text-gray-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),l?lo(te,{classNames:{loader:"cleen-size-5"}}):lo(Le,{color:"gray",onClick:I=>{I.stopPropagation(),b()},icon:lo(yr,{name:"pin",className:x3("cleen-size-3.5 group-hover:cleen-text-gray-700 cleen-transition-colors cleen-cursor-pointer",e?.isPinned?"cleen-text-gray-600":"cleen-text-gray-300")}),classNames:{container:"cleen-font-bold"},label:e?.isPinned?c?.savedFilters?.filter?.unpin:c?.savedFilters?.filter?.pin}),o==="mine"&&lo(Mn,{items:[{id:"duplicate",type:"button",label:c?.savedFilters?.filter?.cancelDelete,icon:lo(Be,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:c?.savedFilters?.filter?.delete,icon:lo(Ve,{}),danger:!0,onClick:()=>h()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:I=>I.stopPropagation(),className:"cleen-flex",children:r?lo(te,{size:"sm",color:"rgb(var(--cleen-error))"}):lo(Ve,{className:"cleen-text-black hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as Jo}from"@cleen/ui-core";import{forwardRef as M3,useMemo as Sv,useState as w3}from"react";import{cn as su}from"@cleen/ui-core";var jr={horizontal:{list:"cleen-flex cleen-flex-wrap cleen-mb-4"},vertical:{container:"cleen-flex cleen-gap-4",list:"cleen-flex cleen-flex-col",content:"cleen-flex-1"}},Pv=e=>{let o=e==="vertical";return{underlined:{list:su("cleen-gap-2 cleen-border-gray-200",!o&&"cleen-border-b"),tab:su("cleen-px-1 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200",o?"cleen-border-l-2 cleen-pl-3 cleen-py-1.5":"cleen-border-b-2 cleen-pb-3"),tabActive:"cleen-border-primary cleen-text-primary",tabInactive:"cleen-border-transparent cleen-text-gray-500 hover:cleen-text-gray-700 hover:cleen-border-gray-200",tabDisabled:"cleen-border-transparent cleen-text-gray-300 cleen-cursor-not-allowed"},padded:{list:"cleen-gap-1",tab:"cleen-px-3 cleen-py-2.5 cleen-rounded-md cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200",tabActive:"cleen-bg-primary/10 cleen-text-primary",tabInactive:"cleen-text-gray-500 hover:cleen-bg-gray-100",tabDisabled:"cleen-text-gray-300 cleen-cursor-not-allowed"},stretched:{list:"cleen-rounded-md cleen-overflow-hidden cleen-border cleen-border-gray-200",tab:su("cleen-flex-1 cleen-px-3 cleen-py-2 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200 cleen-border-gray-200 cleen-justify-center",o?"[&:not(:first-child)]:cleen-border-t":"[&:not(:first-child)]:cleen-border-l"),tabActive:"cleen-bg-primary/10 cleen-text-primary",tabInactive:"cleen-text-gray-600 hover:cleen-bg-gray-100",tabDisabled:"cleen-text-gray-300 cleen-cursor-not-allowed"}}};import{jsx as ec,jsxs as Mv}from"react/jsx-runtime";var iu=M3(function({tabs:o,variant:r="underlined",direction:n="horizontal",currentTabIndex:l,onTabChange:a,className:c,classNames:s,style:u,styles:p,...i},f){let[h,b]=w3(0),v=l!==void 0?l:h,y=Sv(()=>o?.[v],[o,v]),x=(g,P)=>{b(g),a?.(g,P)},C=Sv(()=>Pv(n),[n]);return ec("div",{className:Jo("cleen",c),style:u,ref:f,...i,children:Mv("div",{className:Jo(jr[n].container,s?.container),style:p?.container,children:[ec("nav",{className:Jo(C[r].list,jr[n].list,s?.list),"aria-label":"Tabs",style:p?.list,children:o?.map((g,P)=>{let M=v===P,B=g?.isDisabled;return Mv("span",{onClick:()=>!B&&x(P,g),className:Jo("cleen-flex cleen-items-center cleen-gap-2 cleen-whitespace-nowrap",!B&&"cleen-cursor-pointer",C[r].tab,jr[n].tab,s?.tab,B?Jo(C[r].tabDisabled,s?.tabDisabled):M?Jo(C[r].tabActive,s?.tabActive):Jo(C[r].tabInactive,s?.tabInactive)),style:{...p?.tab,...B?p?.tabDisabled:M?p?.tabActive:p?.tabInactive},"aria-current":M?"page":void 0,"aria-disabled":B,children:[g?.label,!!g?.badge?.label&&ec(Le,{variant:"rounded",color:M?"blue":"gray",...s?.count,...p?.count,...g.badge})]},g?.id||P)})}),!!y?.content&&ec("div",{className:Jo("h-full",jr[n].content,s?.content),style:p?.content,children:y?.content})]})})});import{useContext as k3,useState as B3}from"react";import{jsx as Nt,jsxs as D3}from"react/jsx-runtime";var R3=e=>{let o={isFeatured:null,isMine:null,isPinned:null,isShared:null};switch(e){case"featured":o.isFeatured=!0;break;case"mine":o.isMine=!0;break;case"pinned":o.isPinned=!0;break;case"shared":o.isShared=!0;break;case"all":default:break}return o},wv=({selectedSavedFilter:e,filters:o,isFiltersFetching:r,onFilterCategoryChange:n})=>{let[l,a]=B3("all"),{labels:c,classNames:s,styles:u,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:i}=k3($e);return Nt(Xr,{isOpen:p,onOpenChange:i,leftIcon:Nt(ar,{className:"cleen-size-5"}),label:e?.title??c?.savedFilters?.label,fullWidthDropdown:!0,...s?.dropdown,...u?.dropdown,children:D3("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[Nt(iu,{tabs:[{id:"all",label:c?.savedFilters?.tabs?.all},{id:"mine",label:c?.savedFilters?.tabs?.mine},{id:"shared",label:c?.savedFilters?.tabs?.shared},{id:"featured",label:c?.savedFilters?.tabs?.featured},{id:"pinned",label:c?.savedFilters?.tabs?.pinned}],variant:"padded",onTabChange:(f,h)=>{a(h?.id),n?.(R3(h?.id))},classNames:{list:"cleen-mb-2"}}),Nt("div",{className:"flex flex-col",children:r?Nt(te,{classNames:{loader:"cleen-size-6"}}):(o?.length||0)>0?o?.map(f=>Nt(xv,{filter:f,activeTabId:l},f.filterID)):Nt("p",{className:"cleen-font-normal cleen-text-gray-600 cleen-text-base cleen-text-center",children:c?.savedFilters?.noFilters})})]})})};import{cn as ea}from"@cleen/ui-core";import{forwardRef as L3,useEffect as T3,useId as N3,useState as F3}from"react";import{jsx as Ft,jsxs as pu}from"react/jsx-runtime";var du=L3(function({id:o,name:r,required:n,checked:l,defaultChecked:a=!1,onChange:c,title:s,label:u,labelTooltip:p,sublabel:i,disabled:f,classNames:h,className:b,style:I,styles:v,infoLabels:y,...x},C){let g=typeof l=="boolean",[P,M]=F3(a);T3(()=>{g||M(a)},[a,g]);let B=g?l:P,w=N3(),k=s?`${w}-title`:void 0,D=u?`${w}-label`:void 0,E=[k,D].filter(Boolean).join(" ")||void 0,N=()=>{f||(g||M(!P),c?.(!B))};return Ft("div",{className:ea("cleen",b),style:I,children:pu("div",{className:ea("cleen-flex cleen-flex-col",h?.container),style:v?.container,children:[s&&Ft(ee,{id:k,htmlFor:o||r,required:n,tooltip:p,className:ea("cleen-mb-1.5",h?.title?.className),classNames:h?.title?.classNames,...v?.title,children:s}),pu("div",{className:"cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",children:[Ft("button",{id:o||r,type:"button",role:"switch","aria-checked":B,"aria-labelledby":E,disabled:f,onClick:N,className:ea("cleen-inline-flex cleen-relative cleen-flex-shrink-0 cleen-my-auto cleen-mb-auto cleen-border-2 cleen-border-transparent cleen-rounded-full cleen-w-11 cleen-h-6 cleen-transition-colors cleen-duration-200 cleen-ease-in-out cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",B?"cleen-bg-primary hover:cleen-bg-primary/90":"cleen-bg-gray-200 hover:cleen-bg-gray-300",h?.switch),style:v?.switch,ref:C,...x,children:Ft("span",{"aria-hidden":"true",className:ea("cleen-inline-block cleen-bg-white cleen-shadow cleen-rounded-full cleen-ring-0 cleen-w-5 cleen-h-5 cleen-transition cleen-duration-200 cleen-ease-in-out cleen-pointer-events-none cleen-transform",B?"cleen-translate-x-5":"cleen-translate-x-0",h?.check),style:v?.check})}),(u||i)&&pu("div",{className:"cleen-flex cleen-flex-col cleen-text-sm",children:[u&&Ft("span",{id:D,className:"cleen-font-semibold cleen-text-gray-900",children:u}),i&&Ft("span",{className:"cleen-font-normal cleen-text-gray-600",children:i})]})]}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&Ft(Y,{...y})]})})});import{useContext as E3}from"react";import{Fragment as A3,jsx as kv,jsxs as z3}from"react/jsx-runtime";var Bv=()=>{let{classNames:e,styles:o,labels:r,saveStepValues:n,setSaveStepValues:l,errors:a,clearError:c}=E3($e);return z3(A3,{children:[kv(de,{value:n.filterName,onChange:s=>{l(u=>({...u,filterName:s.target.value})),a?.filterName&&c?.("filterName")},label:r?.saveStep?.filterNameInput?.label,placeholder:r?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:a?.filterName},...e?.saveFilter?.filterName,...o?.saveFilter?.filterName}),kv(du,{checked:n.exposed,onChange:s=>l(u=>({...u,exposed:s})),title:r?.saveStep?.exposureSwitch?.title,label:r?.saveStep?.exposureSwitch?.label,sublabel:r?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...o?.saveFilter?.exposure})]})};var Rv={title:"Filters",subtitle:"Apply filters to table data.",apply:"Apply",cancel:"Cancel",clear:"Clear",save:"Save filters",saveStep:{back:"Back",save:"Save",title:"Save Filter",subtitle:"Filters are reusable and shareable.",filterNameInput:{label:"Filter name",placeholder:"Type a name for this filter"},exposureSwitch:{title:"Exposure",label:"Share this filter",sublabel:"Allows others to see and use this filter"},validation:{tooShort:"You must provide a valid filter title, above 3 characters long.",tooLong:"You must provide a valid filter title, below 50 characters long."}},savedFilters:{label:"Select saved filter",noFilters:"No saved filters",filter:{delete:"Delete",cancelDelete:"Cancel",pin:"Pin",unpin:"Unpin"},tabs:{all:"All",featured:"Featured",mine:"Mine",pinned:"Pinned",shared:"Shared"}}};import{useValidation as O3}from"@cleen/ui-core";import{useState as mu}from"react";import{jsx as _3}from"react/jsx-runtime";var Dv=({children:e,value:o})=>{let[r,n]=mu(!1),[l,a]=mu(Ql),{errors:c,setError:s,clearError:u}=O3({}),[p,i]=mu(!1),f=()=>{n(!1),o?.onClose?.()};return _3($e.Provider,{value:{isSaveFiltersStep:r,setIsSaveFiltersStep:n,saveStepValues:l,setSaveStepValues:a,handleCloseSaveFilter:f,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:i,errors:c,setError:s,clearError:u,...o},children:e})};import{applyDefaults as H3,cn as Lv}from"@cleen/ui-core";import{forwardRef as Tv,useContext as U3}from"react";import{Fragment as W3,jsx as Yo,jsxs as $3}from"react/jsx-runtime";var G3=Tv(function({selectedSavedFilter:o,savedFilters:r,isFiltersFetching:n,children:l,classNames:a,styles:c,labels:s,withSavedFilters:u=!0,onClear:p,onSave:i,onCancel:f,onApply:h,onClose:b,filterDateFormatter:I,onFilterCategoryChange:v,onFilterDelete:y,onFilterPin:x,onFilterSelect:C,onFilterUnpin:g,...P},M){return Yo(Dv,{value:{selectedSavedFilter:o,savedFilters:r,isFiltersFetching:n,classNames:a,styles:c,labels:H3(Rv,s),withSavedFilters:u,onClear:p,onSave:i,onCancel:f,onApply:h,onClose:b,filterDateFormatter:I,onFilterCategoryChange:v,onFilterDelete:y,onFilterPin:x,onFilterSelect:C,onFilterUnpin:g},children:Yo(V3,{...P,ref:M,children:l})})}),V3=Tv(function({children:o,...r},n){let{handleCloseSaveFilter:l,isSaveFiltersStep:a,selectedSavedFilter:c,savedFilters:s,isFiltersFetching:u,classNames:p,styles:i,labels:f,withSavedFilters:h=!0,onClear:b,onFilterCategoryChange:I,onFilterSelect:v}=U3($e);return Yo(_1,{footer:Yo(pv,{}),headerCloseBtn:Yo(re,{onClick:()=>{b?.(),v?.(void 0)},leftIcon:Yo(Ve,{}),variant:"secondary",...p?.clearBtn,...i?.clearBtn,children:f?.clear}),classNames:{...p,content:Lv("cleen-space-y-4",p?.content),footer:Lv("cleen-justify-between",p?.footer)},onClose:l,ref:n,...r,title:a?f?.saveStep?.title:r.title,subtitle:a?f?.saveStep?.subtitle:r.subtitle,children:a?Yo(Bv,{}):$3(W3,{children:[h&&Yo(wv,{filters:s,selectedSavedFilter:c,onFilterCategoryChange:I,isFiltersFetching:u}),o]})})});import{cn as wn}from"@cleen/ui-core";import{forwardRef as q3}from"react";import{jsx as oc,jsxs as Nv}from"react/jsx-runtime";var Fv=q3(({title:e,titleTooltip:o,subtitle:r,required:n,labelProps:l,children:a,className:c,classNames:s,style:u,styles:p,...i},f)=>oc("div",{ref:f,className:wn("cleen",c),style:{...u,width:"100%"},...i,children:Nv("div",{className:wn("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",s?.container),style:p?.container,children:[Nv("div",{className:wn("cleen-flex cleen-flex-col cleen-w-1/3",s?.titleColumn),style:p?.titleColumn,children:[oc(ee,{...l,required:n,tooltip:o,className:s?.title?.className,classNames:{...s?.title?.classNames,label:wn("cleen-truncate",s?.title?.classNames?.label)},...p?.title,children:e}),r&&oc("div",{className:wn("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-w-full cleen-font-normal cleen-text-gray-600 cleen-text-sm",s?.subtitle),style:p?.subtitle,children:r})]}),oc("div",{className:wn("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",s?.controlsRow),style:p?.controlsRow,children:a})]})}));Fv.displayName="FormGroup";import{cn as fe,useDebounce as X3,useOutsideClick as K3,usePositionClose as Z3,ZIndex as Q3}from"@cleen/ui-core";import{useEffect as tc,useMemo as uu,useRef as hu,useState as eo}from"react";import{createPortal as J3}from"react-dom";import{Fragment as eM,jsx as K,jsxs as Te}from"react/jsx-runtime";function Y3(e){return e!==null&&typeof e=="object"}function ke(e,o){if(Y3(e)&&o in e)return e[o]}function Ev(e,o){let r=ke(e,o);return Array.isArray(r)?r:[]}function Av(e,o){let r=e?.[o];if(typeof r=="string"||typeof r=="number")return r;let n=e?.data?.[o];return typeof n=="string"||typeof n=="number"?n:null}var j3=({position:e="bottom-right",labels:o,groups:r=[],selectedItemID:n=null,groupThreeDotMenuOptions:l=[],itemThreeDotMenuOptions:a=[],refetchData:c,onGroupSave:s,onItemSave:u,onGroupThreeDotMenuClick:p,onItemThreeDotMenuClick:i,onSearchChange:f,onItemSelect:h,groupIDKey:b,groupTitleKey:I,itemsKey:v,itemIDKey:y,itemGroupIDKey:x,itemTitleKey:C,itemSubtitleKey:g,newValueMinLength:P=2,isLoading:M=!1,isGroupSaving:B=!1,isItemSaving:w=!1,selectedColor:k="rgb(var(--cleen-primary), 0.1)",hasFiltering:D=!0,zIndex:E=Q3.POPOVER,className:N,classNames:R,style:F,styles:T})=>{let[S,z]=eo(!1),[L,O]=eo(!1),[_,H]=eo(!1),[G,q]=eo(!1),[$,U]=eo(null),[V,J]=eo(null),[A,Z]=eo(""),[ce,ge]=eo(""),[xe,at]=eo(null),oo=hu(void 0),[Wt,lt]=eo(""),[Pe]=X3(Wt,500),[Ze,$t]=eo(""),Oe=hu(null),_e=hu(null),{positionStyles:X,isMounted:Se}=Z3({triggerRef:Oe,targetRef:_e,position:e,isOpen:S,offset:10});K3({refs:[_e],handler:()=>z(!1),enabled:S});let ve=uu(()=>r??[],[r]),se=uu(()=>{let W=new Map;for(let oe of ve){let ie=ke(oe,b);ie!=null&&W.set(ie,Ev(oe,v))}return W},[ve,b,v]),ct=uu(()=>{let W=[];return $==null?W=Array.from(se?.values()).flat():W=se?.get($)??[],D&&Ze.trim()!==""&&(W=W.filter(oe=>{let ie=String(ke(oe,C)??""),Qe=g?String(ke(oe,g)??""):"";return ie.toLowerCase().includes(Ze?.toLowerCase()??"")||Qe.toLowerCase().includes(Ze?.toLowerCase()??"")})),W},[$,se,Ze,C,g,D]);tc(()=>{let W=oo.current!==n;if(oo.current=n,n==null){W&&(J(null),U(null));return}let ie=Array.from(se?.values())?.flat()?.find(Qe=>ke(Qe,y)===n);if(ie){let Qe=ke(ie,x)??null;J(ie),U(Qe)}else W&&J(null)},[n,se,y,x]),tc(()=>{if(xe==null)return;let oe=Array.from(se?.values())?.flat()?.find(Qe=>ke(Qe,y)===xe);if(!oe)return;let ie=ke(oe,x);U(typeof ie=="string"||typeof ie=="number"?ie:null),J(oe),at(null),h?.(oe)},[xe,se,y,x,h]),tc(()=>{f&&f(Pe??"")},[Pe,f]),tc(()=>{S||(O(!1),H(!1),Z(""),ge(""))},[S]);let ga=W=>{W===$?(U(null),J(null),h?.(null)):(J(null),U(W),h?.(null))},j=W=>{let oe=ke(W,x);U(typeof oe=="string"||typeof oe=="number"?oe:null),J(W),h?.(W),z(!1)};async function Me(){if(!s)return;let W={[I]:A};try{let oe=await s(W);if(oe?.success){O(!1),Z(""),c&&await c();let ie=Av(oe,b);ie!=null&&(U(ie),J(null),h?.(null))}}catch{}}async function ye(){if(!u)return;let W={[C]:ce,...$!=null?{[x]:$}:{}};try{let oe=await u(W);oe?.success&&(H(!1),ge(""),at(Av(oe,y)),c&&await c())}catch{}}return K("div",{className:fe("cleen",N),style:F,children:Te("div",{ref:Oe,className:fe("cleen-relative cleen-w-full cleen-cursor-pointer",R?.container),style:T?.container,onClick:W=>{W.stopPropagation(),z(!0)},children:[K(de,{placeholder:o?.inputPlaceholder,rightIcon:K(Io,{className:fe("cleen-w-5 cleen-h-5 cleen-text-gray-300 cleen-transition-transform",{"cleen-rotate-180":!S})}),value:Wt,onChange:W=>{U(null),J(null),lt(W.target.value)},classNames:{input:S?"":"cleen-cursor-pointer"},className:R?.input,style:T?.input}),S&&J3(K("div",{className:"cleen",children:Te("div",{ref:_e,className:fe("cleen-overflow-hidden cleen-flex cleen-items-start cleen-justify-start cleen-w-[500px] cleen-h-[344px] cleen-bg-white cleen-border cleen-border-gray-200 cleen-rounded-lg cleen-shadow-xl cleen-cursor-default","cleen-absolute",{"cleen-opacity-0":!Se},R?.columnsContainer),style:{zIndex:E,top:`${X.top}px`,left:`${X.left}px`,...T?.columnsContainer},children:[Te("div",{className:"cleen-w-1/2 cleen-h-full",children:[K("div",{className:fe("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",R?.leftColumn),style:T?.leftColumn,children:M?K("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:K(te,{size:"sm"})}):r?.map((W,oe)=>{let ie=ke(W,b),Qe=ie===$,wc=String(ke(W,I)??""),kc=Ev(W,v)?.length??0;return Te("div",{className:fe("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-10 cleen-cursor-pointer hover:cleen-bg-primary/10",R?.groupItem),style:{...T?.groupItem||{},...Qe?{backgroundColor:k}:{}},onClick:me=>{me.stopPropagation(),me.preventDefault(),ga(ie??null)},children:[Te("div",{className:fe("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[K("span",{className:fe("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-gray-900",R?.groupItemTitle),style:T?.groupItemTitle,children:wc}),K(Le,{color:"lighter-blue",label:kc})]}),l?.length>0&&K("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:me=>{me.stopPropagation(),p?.(W)},children:K(Mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(me=>{let En=me?.disabledOptionCallback?.(W);return{...me,type:"button",label:K("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-gray-700",children:me?.label}),onClick:()=>{En||me?.onClick(W)},disabled:En}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-white cleen-rounded-md",children:K(jt,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${oe}-${String(ie??oe)}`)})}),K(So,{isHorizontal:!0}),L?Te("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[K(de,{leftIcon:K(Go,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-300"}),placeholder:o?.newGroupPlaceholder,value:A,onChange:W=>Z(W.target.value),classNames:{inputContainer:"cleen-border-none",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),K("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:s?B?K(te,{}):A?.length>P?K(re,{variant:"primary",label:o?.saveButtonLabel,onClick:()=>{Me()},classNames:{container:"cleen-w-max cleen-h-7"}}):K("div",{}):K("div",{})})]}):Te("div",{className:fe("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer hover:cleen-bg-primary/10",R?.newGroupButton),style:T?.newGroupButton,onClick:()=>O(!0),children:[K(Go,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-300"}),K("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-gray-500",children:o?.newGroupPlaceholder})]})]}),K(So,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-gray-200 cleen-z-[1]"}),Te("div",{className:"cleen-w-1/2 cleen-h-full",children:[Te("div",{className:fe("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",R?.rightColumn),style:T?.rightColumn,children:[D&&Te(eM,{children:[K(de,{leftIcon:K(gt,{className:"cleen-size-5"}),className:fe("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!G}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:W=>$t(W.target.value),placeholder:o?.filterPlaceholder}),K("button",{type:"button",className:fe("cleen-w-full cleen-py-0.5 cleen-transition-all cleen-bg-gray-50 hover:cleen-bg-gray-100 cleen-border-t cleen-border-gray-200",{"-cleen-mt-10 cleen-border-transparent":!G}),onClick:()=>q(W=>!W),children:K(qn,{className:fe("cleen-mx-auto cleen-size-4 cleen-text-gray-500 cleen-transition-transform",G?"-cleen-rotate-90":"cleen-rotate-90")})})]}),M?K("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:K(te,{size:"sm"})}):ct?.map((W,oe)=>{let ie=ke(W,y),Qe=V&&ke(V,y)===ie,wc=String(ke(W,C)??""),kc=g?String(ke(W,g)??""):"";return Te("div",{className:fe("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-[60px] cleen-cursor-pointer hover:cleen-bg-primary/10",R?.item),style:{...T?.item||{},...Qe?{backgroundColor:k}:{}},onClick:me=>{me.stopPropagation(),me.preventDefault(),j(W)},children:[Te("div",{className:fe("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",a?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[K("span",{className:fe("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-gray-900",R?.itemTitle),style:T?.itemTitle,children:wc}),K("span",{className:fe("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-gray-600",R?.itemSubtitle),style:T?.itemSubtitle,children:kc})]}),a?.length>0&&K("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:me=>{me.stopPropagation(),i?.(W)},children:K(Mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:a?.map(me=>{let En=me?.disabledOptionCallback?.(W);return{...me,type:"button",label:K("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-gray-700",children:me?.label}),onClick:()=>{En||me?.onClick(W)},disabled:En}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-white cleen-rounded-md",children:K(jt,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${oe}-${String(ie??oe)}`)})]}),K(So,{isHorizontal:!0}),_?Te("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[K(de,{leftIcon:K(Go,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-300"}),placeholder:o?.newItemPlaceholder,value:ce,onChange:W=>ge(W.target.value),classNames:{inputContainer:"cleen-border-none",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),K("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:u?w?K(te,{}):ce?.length>P?K(re,{variant:"primary",label:o?.saveButtonLabel,onClick:()=>{ye()},classNames:{container:"cleen-w-max cleen-h-7"}}):K("div",{}):K("div",{})})]}):Te("div",{className:fe("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer hover:cleen-bg-primary/10",R?.newItemButton),style:T?.newItemButton,onClick:()=>H(!0),children:[K(Go,{className:"cleen-w-4 cleen-h-4 cleen-text-gray-300"}),K("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-gray-500",children:o?.newItemPlaceholder})]})]})]})}),document.body),!S&&V&&K("div",{className:"cleen-absolute cleen-top-1.5 cleen-left-1 cleen-flex cleen-items-center cleen-justify-start cleen-pl-2.5 cleen-w-[calc(100%-40px)] cleen-h-8 cleen-bg-white",onClick:()=>z(!0),children:K("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-gray-900",children:String(ke(V,C)??"")})})]})})};import{cn as Ce,useDebounce as oM,useOutsideClick as tM,usePositionClose as nM,ZIndex as rM}from"@cleen/ui-core";import{forwardRef as aM,useEffect as _v,useId as lM,useMemo as Hv,useRef as fu,useState as nc}from"react";import{createPortal as cM}from"react-dom";import{cn as Et}from"@cleen/ui-core";import{jsx as jo,jsxs as zv}from"react/jsx-runtime";var Ov=({options:e,selection:o,classNames:r,styles:n,onChoose:l,displaySubtextInline:a=!0,activeIndex:c=-1,getOptionId:s,onActiveIndexChange:u,...p})=>jo("div",{...p,children:jo("div",{className:Et("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",r?.container),style:n?.container,children:e?.map((i,f)=>{let h=o?.some(I=>I?.value===i?.value),b=f===c;return zv("li",{id:s?.(f),role:"option","aria-selected":h,className:Et("cleen-flex cleen-justify-between cleen-items-center hover:cleen-bg-gray-100 cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-cursor-pointer cleen-select-none",{"cleen-bg-gray-100 hover:cleen-bg-gray-200":h,"cleen-bg-gray-100":b},r?.item),style:n?.item,onMouseEnter:()=>u?.(f),onClick:()=>l?.(i,h),children:[zv("div",{className:Et("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",r?.labels,!a&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:n?.labels,children:[i?.leadingBadgeValue&&jo(Le,{color:"gray",label:i?.leadingBadgeValue}),i?.icon,i?.label&&jo("span",{className:Et("cleen-font-medium cleen-text-gray-900 cleen-text-base",!a&&"cleen-w-full cleen-truncate"),children:i?.label}),i?.preSublabel&&jo("span",{className:Et("cleen-font-medium cleen-text-gray-400 cleen-text-xs",!a&&"cleen-w-full cleen-truncate"),children:i?.preSublabel}),i?.sublabel&&jo("span",{className:Et("cleen-font-medium cleen-text-gray-600 cleen-text-sm",!a&&"cleen-w-full cleen-truncate"),children:i?.sublabel})]}),h&&jo("div",{className:r?.checkContainer,style:n?.checkContainer,children:jo(vo,{className:Et("cleen-text-primary",r?.check),style:n?.check})})]},i.value)})})});import{Fragment as iM,jsx as he,jsxs as rc}from"react/jsx-runtime";var sM=aM(function({id:o,name:r,label:n,labelTooltip:l,labels:a,options:c,value:s,displaySelected:u="under",isLoading:p=!1,required:i,internalFiltering:f=!1,closeOnReachingLimit:h=!0,limit:b,getCustomBadgeLabel:I,displaySubtextInline:v=!0,selectedBadgeColor:y="blue",debounceDelay:x=0,characterThreshold:C=2,disabled:g=!1,isNoDataVisibleOnCreateNew:P=!0,zIndex:M=rM.DROPDOWN,className:B,classNames:w,style:k,styles:D,infoLabels:E,menuDetachedFromPortal:N,onInputChange:R,onChange:F,onCreateNewOption:T,createNewOptionLabelString:S,onLookupBlur:z,triggerBlurOnlyWhenOpen:L=!0,menuRef:O,..._},H){let[G,q]=nc(!1),$=fu(null),U=fu(null),V=O??$,{positionStyles:J,isMounted:A}=nM({triggerRef:U,targetRef:V,position:"bottom-left",isOpen:G,offset:4});tM({refs:[V,U],handler:()=>{q(!1),z?.()},enabled:L?G:!0});let[Z,ce]=nc(""),ge=oM(Z,x),xe=x?ge:Z,at=fu(xe),oo=Array.isArray(s),[Wt,lt]=nc([]),Pe=oo?s:Wt,Ze=["inside","inside-badge"].includes(u),$t=(j,Me=!1)=>{if(Me){let W=Pe.filter(oe=>oe.value!==j.value);oo||lt(W),F?.(W);return}let ye;if(b===1)ye=[j];else{if(b&&Pe.length>=b)return;ye=[...Pe,j]}oo||lt(ye),F?.(ye),h&&b&&ye.length>=b&&(ce(""),q(!1))},Oe=Hv(()=>f?c?.filter(j=>j?.label?.match(new RegExp(xe,"i"))):c,[c,xe,f]),_e=Hv(()=>S&&T&&!p&&Z?.length>0&&!Oe?.some(j=>j?.label===Z)?typeof S=="function"?S(Z):S:null,[S,T,p,Z,Oe]);_v(()=>{at.current!==xe&&(at.current=xe,xe.length<C?q(!1):(R?.(xe),q(!0)))},[xe,R,C]);let X=lM(),Se=j=>`${X}-option-${j}`,[ve,se]=nc(-1);_v(()=>{se(-1)},[xe,G]);let ct=j=>{let Me=Oe?.length??0;switch(j.key){case"ArrowDown":if(!Me)return;if(j.preventDefault(),!G){q(!0),se(0);return}se(ye=>(ye+1)%Me);break;case"ArrowUp":if(!Me)return;if(j.preventDefault(),!G){q(!0),se(Me-1);return}se(ye=>(ye-1+Me)%Me);break;case"Home":if(!G||!Me)return;j.preventDefault(),se(0);break;case"End":if(!G||!Me)return;j.preventDefault(),se(Me-1);break;case"Enter":{if(!G||ve<0)return;let ye=Oe?.[ve];if(!ye)return;j.preventDefault();let W=Pe?.some(oe=>oe.value===ye.value);$t(ye,W);break}case"Escape":G&&(j.preventDefault(),q(!1));break;default:break}},ga=rc("ul",{id:X,role:"listbox",className:Ce("cleen-flex cleen-flex-col cleen-gap-0.5 cleen-bg-background cleen-shadow-[0px_12px_16px_-4px_rgba(var(--cleen-gray-100))] cleen-px-1.5 cleen-pt-1 cleen-pb-0.5 cleen-border cleen-border-gray-200 cleen-rounded-lg",w?.menu?.container),style:D?.menu?.container,children:[p?he(te,{className:Ce("cleen-py-3",w?.menu?.loader),style:D?.menu?.loader}):!Oe||Oe?.length===0?!!a?.noDataFound&&(P||!_e)&&he("div",{className:Ce("cleen-flex cleen-justify-center cleen-items-center cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-font-normal cleen-text-gray-600 cleen-text-sm cleen-text-center cleen-pointer-events-none cleen-select-none",w?.menu?.noDataFound),style:D?.menu?.noDataFound,children:a?.noDataFound}):he(Ov,{options:Oe,selection:Pe,onChoose:$t,displaySubtextInline:v,activeIndex:ve,getOptionId:Se,onActiveIndexChange:se,...w?.menu?.list,...D?.menu?.list}),_e&&rc("div",{className:Ce("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",w?.createNewOption?.container),style:D?.createNewOption?.container,children:[he(So,{...w?.createNewOption?.divider,...D?.createNewOption?.divider}),he("span",{className:Ce("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",w?.createNewOption?.value),style:D?.createNewOption?.value,onClick:()=>{let j=T?.(Z);typeof j=="boolean"&&!j||ce("")},children:_e})]})]});return he("div",{className:Ce("cleen",B),style:k,children:rc("div",{className:Ce("cleen-flex cleen-flex-col cleen-w-full",w?.container),style:D?.container,children:[n&&he(ee,{htmlFor:o||r,required:i,tooltip:l,className:Ce("cleen-mb-1.5",w?.label?.className),classNames:w?.label?.classNames,...D?.label,children:n}),he("div",{ref:U,className:Ce("cleen-relative cleen-flex cleen-items-center",w?.input?.container),style:D?.input?.container,children:he(de,{id:o||r,type:"search",autoFocus:!1,autoComplete:"off",className:Ce("cleen-w-full",w?.input?.component?.className),classNames:{...w?.input?.component?.classNames,inputContainer:Ce({"cleen-flex-wrap":Ze},w?.input?.component?.classNames?.inputContainer),input:Ce({"cleen-pl-2":Ze},w?.input?.component?.classNames?.input),leftIconContainer:Ce({"cleen-pr-0":Ze},w?.input?.component?.classNames?.leftIconContainer)},...D?.input?.component,leftIcon:rc(iM,{children:[he(gt,{}),Ze&&(Pe||[])?.length>0&&he("div",{className:Ce("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{q(!G)},children:u==="inside-badge"?Pe?.map(j=>he(Le,{label:j?.label,color:"blue",variant:"semiRounded"},j.value)):he("span",{className:Ce("cleen-font-medium cleen-text-gray-900 cleen-text-sm"),children:Pe?.map(j=>j?.label).join(", ")})})," "]}),onFocus:()=>{xe.length>=C&&Z.length>=C&&q(!0)},value:Z,onChange:j=>{ce(j.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":G,"aria-controls":G?X:void 0,"aria-activedescendant":G&&ve>=0?Se(ve):void 0,onKeyDown:ct,ref:H,required:i,disabled:g,..._})}),G&&(N?he("div",{ref:V,children:ga}):cM(he("div",{className:"cleen",children:he("div",{ref:V,className:Ce("cleen-absolute",{"cleen-opacity-0":!A}),style:{zIndex:M,top:`${J.top}px`,left:`${J.left}px`,minWidth:U.current?.offsetWidth?`${U.current.offsetWidth}px`:void 0},children:ga})}),document.body)),u==="under"&&Pe?.length>0&&he("span",{className:Ce("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",w?.pillbadge?.container),style:D?.pillbadge?.container,children:Pe?.map(j=>he(Le,{label:I?I(j):j?.label,color:y,removeable:!g,onRemoveClicked:()=>{if(g)return;let Me=Pe?.filter(ye=>ye?.value!==j?.value);oo||lt(Me),F?.(Me)},...w?.pillbadge?.component,...D?.pillbadge?.component},j.value))}),(E?.errorMessage||E?.infoMessage||E?.subtitle)&&he(Y,{...E})]})})});import{cn as ae}from"@cleen/ui-core";import{forwardRef as pM}from"react";import dM from"react-markdown";import mM from"remark-gfm";import{jsx as ne}from"react/jsx-runtime";var uM=pM(function({components:o,children:r,className:n,classNames:l,style:a,styles:c,...s},u){let p={h1:({children:i})=>ne("h1",{className:ae("cleen-text-3xl cleen-font-semibold cleen-text-gray-900 cleen-mb-4 cleen-mt-6"),children:i}),h2:({children:i})=>ne("h2",{className:ae("cleen-text-2xl cleen-font-semibold cleen-text-gray-900 cleen-mb-3 cleen-mt-5"),children:i}),h3:({children:i})=>ne("h3",{className:ae("cleen-text-xl cleen-font-semibold cleen-text-gray-900 cleen-mb-2 cleen-mt-4"),children:i}),h4:({children:i})=>ne("h4",{className:ae("cleen-text-lg cleen-font-semibold cleen-text-gray-900 cleen-mb-2 cleen-mt-3"),children:i}),h5:({children:i})=>ne("h5",{className:ae("cleen-text-base cleen-font-semibold cleen-text-gray-900 cleen-mb-1 cleen-mt-2"),children:i}),h6:({children:i})=>ne("h6",{className:ae("cleen-text-sm cleen-font-semibold cleen-text-gray-900 cleen-mb-1 cleen-mt-2"),children:i}),p:({children:i})=>ne("p",{className:ae("cleen-text-base cleen-text-gray-900 cleen-mb-4 cleen-leading-relaxed"),children:i}),a:({href:i,children:f})=>ne("a",{href:i,className:ae("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:f}),ul:({children:i})=>ne("ul",{className:ae("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-gray-900"),children:i}),ol:({children:i})=>ne("ol",{className:ae("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-gray-900"),children:i}),li:({children:i})=>ne("li",{className:ae("cleen-mb-1"),children:i}),blockquote:({children:i})=>ne("blockquote",{className:ae("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-gray-700 cleen-mb-4"),children:i}),code:({className:i,children:f,...h})=>i?ne("code",{className:ae("cleen-font-mono cleen-text-sm"),...h,children:f}):ne("code",{className:ae("cleen-font-mono cleen-bg-gray-100 cleen-rounded cleen-px-1 cleen-text-sm"),...h,children:f}),pre:({children:i})=>ne("pre",{className:ae("cleen-bg-gray-100 dark:cleen-bg-gray-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:i}),hr:()=>ne("hr",{className:ae("cleen-border-t cleen-border-gray-200 cleen-my-4")}),img:({src:i,alt:f})=>ne("img",{src:i,alt:f,className:ae("cleen-max-w-full cleen-rounded")}),strong:({children:i})=>ne("strong",{className:ae("cleen-font-semibold"),children:i}),em:({children:i})=>ne("em",{className:ae("cleen-italic"),children:i}),table:({children:i})=>ne("div",{className:ae("cleen-overflow-x-auto cleen-mb-4"),children:ne("table",{className:ae("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:i})}),thead:({children:i})=>ne("thead",{className:ae("cleen-border-b cleen-border-gray-200"),children:i}),th:({children:i})=>ne("th",{className:ae("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-gray-200"),children:i}),td:({children:i})=>ne("td",{className:ae("cleen-p-2 cleen-border-b cleen-border-gray-200"),children:i}),input:({type:i,checked:f,disabled:h})=>i==="checkbox"?ne("input",{type:"checkbox",checked:f,disabled:h,readOnly:!0,className:ae("cleen-mr-2 cleen-align-middle")}):ne("input",{type:i})};return ne("div",{ref:u,className:ae("cleen",n,l?.container),style:{...a,...c?.container},...s,children:ne(dM,{...s,remarkPlugins:[mM],components:{...p,...o},children:r})})});import{cn as At,useBodyScrollLock as hM,useCleenOverlays as Uv,ZIndex as fM}from"@cleen/ui-core";import{forwardRef as gM,useCallback as vM,useEffect as gu,useId as yM,useRef as IM,useState as Gv}from"react";import{createPortal as bM}from"react-dom";import{jsx as oa,jsxs as Wv}from"react/jsx-runtime";var CM={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},Vv=300,xM=gM(function({isOpen:o=!1,onClose:r,closeOnOverlayClick:n=!0,closeButtonIcon:l=oa(Be,{className:"cleen-size-5"}),header:a,footer:c,zIndex:s=fM.MODAL,size:u="md",color:p,p:i,gap:f,radius:h=16,className:b,classNames:I,style:v,styles:y,children:x,...C},g){let[P,M]=Gv(o),[B,w]=Gv(o),k=IM(null),D=yM(),{addOverlay:E,removeOverlay:N}=Uv(),R=vM(()=>{M(!1),setTimeout(()=>r?.(),Vv)},[r]);return gu(()=>{if(o){w(!0);let F=setTimeout(()=>M(!0),1);return()=>clearTimeout(F)}else{M(!1);let F=setTimeout(()=>w(!1),Vv);return()=>clearTimeout(F)}},[o]),gu(()=>{if(o)return E(D),()=>N(D)},[E,N,o,D]),gu(()=>{let F=T=>{let{overlays:S}=Uv.getState();T.key==="Escape"&&S[S.length-1]===D&&R()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[R,D]),hM(B),B?bM(Wv("div",{className:At("cleen",b),style:v,ref:g,...C,children:[oa("div",{className:At("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-white/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",I?.overlay),style:{zIndex:s,...y?.overlay},onClick:()=>{n&&R()},"aria-hidden":"true"}),oa("div",{className:At("cleen-fixed cleen-inset-0 cleen-flex cleen-justify-center cleen-items-center cleen-p-4 cleen-overflow-auto","cleen-transition-all cleen-duration-300 cleen-ease-in-out","cleen-pointer-events-none",P?"cleen-opacity-100 cleen-scale-100":"cleen-opacity-0 cleen-scale-95",I?.container),style:{zIndex:s,...y?.container},"aria-modal":"true",role:"dialog",children:Wv(le,{header:a,footer:c,color:p,p:i,gap:f,radius:h,className:At("cleen-relative cleen-shadow-xl cleen-w-full cleen-max-w-lg cleen-rounded-lg cleen-pointer-events-auto",I?.modal?.className),style:{maxWidth:typeof u=="number"?u:CM[u],...y?.modal?.style},classNames:{...I?.modal?.classNames,container:At("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",I?.modal?.classNames?.container),childrenContainer:At("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",I?.modal?.classNames?.childrenContainer)},styles:y?.modal?.styles,ref:k,children:[x,l&&oa("div",{className:At("cleen-top-3 cleen-right-3 cleen-absolute"),children:oa(re,{variant:"borderless",onClick:R,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:l})})]})})]}),document.body):null});import{useEffect as $v,useRef as PM}from"react";import{Fragment as SM,jsx as MM}from"react/jsx-runtime";var qv=({children:e,isIn:o,done:r,playToast:n})=>{let l=PM(!1);return $v(()=>{l.current||(l.current=!0,n())},[n]),$v(()=>{o||r()},[o,r]),MM(SM,{children:e})};import"react-toastify";var vu={success:{},error:{autoClose:2e4,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0},info:{},warning:{autoClose:4e3},default:{autoClose:3e3,position:"top-right",hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0}},Xv={success:{name:"CheckCircle",className:"cleen-text-success"},error:{name:"XCircle",className:"cleen-text-error"},info:{name:"InfoCircle",className:"cleen-text-primary"},warning:{name:"AlertTriangle",className:"cleen-text-warning"},default:null};import{cn as ta}from"@cleen/ui-core";import{jsx as ac,jsxs as Kv}from"react/jsx-runtime";var Zv=({message:e,title:o,icon:r,variant:n="default",classNames:l})=>{let a=Xv[n],c=r??(a?ac(Ee,{name:a.name,width:18,height:18,className:a.className}):null);return Kv("div",{className:ta("cleen-flex cleen-items-start cleen-gap-3",l?.container),children:[c&&ac("span",{className:ta("cleen-flex cleen-shrink-0 cleen-items-center cleen-pt-0.5",l?.icon),children:c}),Kv("div",{className:ta("cleen-flex cleen-flex-col cleen-gap-0.5",l?.body),children:[o&&ac("span",{className:ta("cleen-text-sm cleen-font-semibold cleen-text-gray-900",l?.title),children:o}),ac("span",{className:ta("cleen-text-sm cleen-text-gray-500",l?.message),children:e})]})]})};import{cn as wM}from"@cleen/ui-core";import{Bounce as kM,Flip as BM,toast as na,Slide as RM,Zoom as DM}from"react-toastify";import{jsx as TM}from"react/jsx-runtime";var LM=({message:e,title:o,icon:r,variant:n="default",animationType:l="slide",className:a,classNames:c,...s})=>{let u=()=>{switch(l){case"bounce":return kM;case"flip":return BM;case"zoom":return DM;case"none":return qv;default:return RM}},p=o!==void 0||r!==void 0,i=p?TM(Zv,{message:e,title:o,icon:r,variant:n,classNames:c}):e,f={...vu.default,...n!=="default"&&vu[n],transition:u(),className:wM("cleen-text-sm",a),...s,...p&&{icon:!1}};switch(n){case"success":return na.success(i,f);case"error":return na.error(i,f);case"info":return na.info(i,f);case"warning":return na.warning(i,f);default:return na(i,f)}};import{ToastContainer as NM}from"react-toastify";import{jsx as Qv}from"react/jsx-runtime";var FM=e=>Qv("div",{className:"cleen",children:Qv(NM,{...e})});import{cn as Jv}from"@cleen/ui-core";import{forwardRef as EM,useState as AM}from"react";import{jsx as yu,jsxs as zM}from"react/jsx-runtime";var Iu=EM(({totalPages:e,labels:o,onGoToPage:r,classNames:n,styles:l,...a},c)=>{let[s,u]=AM(""),p=()=>{let f=parseInt(s,10);isNaN(f)||(r?.(Math.min(Math.max(f,1),e)),u(""))},i=f=>{f.key==="Enter"?p():f.key==="Escape"&&u("")};return yu("div",{className:"cleen",...a,children:zM("div",{className:Jv("cleen-flex cleen-items-center cleen-gap-2",n?.container),style:l?.container,children:[yu("span",{className:Jv("cleen-text-sm cleen-text-gray-700 cleen-whitespace-nowrap",n?.label),style:l?.label,children:o?.goToPage}),yu(de,{ref:c,type:"number",min:1,max:e,value:s,onChange:f=>u(f.target.value),onKeyDown:i,...n?.input,...l?.input})]})})});import{cn as lc,useOutsideClick as OM,usePositionClose as _M}from"@cleen/ui-core";import{forwardRef as HM,useRef as Yv,useState as jv}from"react";import{createPortal as UM}from"react-dom";import{jsx as kn,jsxs as VM}from"react/jsx-runtime";var GM=[10,20,50,100],bu=HM(({pageSize:e,pageSizes:o=GM,labels:r,onPageSizeChange:n,classNames:l,styles:a,...c},s)=>{let[u,p]=jv(e??o?.[0]??void 0),[i,f]=jv(!1),h=Yv(null),b=Yv(null),{positionStyles:I,isMounted:v}=_M({triggerRef:h,targetRef:b,isOpen:i,position:"top-left"});return OM({refs:[h,b],handler:()=>f(!1),enabled:i}),kn("div",{className:"cleen",ref:s,...c,children:VM("div",{className:lc("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",l?.container),style:a?.container,children:[kn(ue,{label:r?.itemsPerPage?.(u),classNames:{labelContainer:"cleen-min-w-max"},children:kn("div",{className:lc("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-100 hover:cleen-bg-gray-200 cleen-p-2 cleen-rounded-lg cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-sm cleen-text-gray-700 cleen-transition-colors cleen-cursor-pointer",l?.trigger),style:a?.trigger,onClick:()=>f(y=>!y),ref:h,children:u})}),i&&UM(kn("div",{className:"cleen",children:kn("div",{ref:b,className:lc("cleen-flex cleen-bg-background cleen-shadow-lg cleen-border cleen-border-gray-200 cleen-rounded-lg","cleen-absolute cleen-z-50",{"cleen-opacity-0":!v},l?.menu),style:{top:`${I.top}px`,left:`${I.left}px`,...a?.menu},children:o?.filter(y=>y!==u)?.map(y=>kn("div",{className:lc("cleen-flex cleen-justify-center cleen-items-center hover:cleen-bg-gray-100 cleen-p-2 cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",l?.menuItem),style:a?.menuItem,onClick:()=>{p(y),n?.(y),f(!1)},children:y},y))})}),document.body)]})})});var ey={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as et}from"@cleen/ui-core";import{forwardRef as WM,useCallback as cc,useMemo as $M,useRef as qM}from"react";import{jsx as Ne,jsxs as KM}from"react/jsx-runtime";var XM=WM(({currentPage:e,totalPages:o,pageSize:r,pageSizes:n,hasGotoPage:l=!0,hasPageSizeSelector:a=!0,onPageChange:c,onPageSizeChange:s,labels:u=ey,classNames:p,styles:i,...f},h)=>{let b=qM(null),I=cc(()=>{e<o&&c?.(e+1)},[e,o,c]),v=cc(()=>{e>1&&c?.(e-1)},[e,c]),y=cc(g=>Ne("span",{className:et("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background hover:cleen-bg-gray-100 cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 cleen-text-sm cleen-cursor-pointer",g===e&&"cleen-bg-gray-100 hover:cleen-bg-gray-200",p?.pageButton,g===e?p?.activePageButton:""),style:{...i?.pageButton,...g===e?i?.activePageButton:{}},onClick:()=>c?.(g),children:g},`page-${g}`),[e,c,p,i]),x=cc(g=>Ne("span",{className:et("cleen-flex cleen-justify-center cleen-self-end cleen-bg-background hover:cleen-bg-gray-100 cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.ellipsis),style:i?.ellipsis,onClick:()=>b.current?.focus(),children:"..."},g),[p,i]),C=$M(()=>{if(isNaN(e)||isNaN(o))return[];let g=[];if(g.push(Ne(ue,{label:u.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ne("span",{className:et("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.navButton),style:i?.navButton,onClick:v,children:Ne(yo,{})})},"prev")),o<=7)for(let P=1;P<=o;P++)g.push(y(P));else if(g.push(y(1)),e<=3){for(let P=2;P<5;P++)g.push(y(P));g.push(x("dots-end")),g.push(y(o))}else if(e>=o-2){g.push(x("dots-start"));for(let P=o-3;P<=o;P++)g.push(y(P))}else g.push(x("dots-start")),g.push(y(e-1)),g.push(y(e)),g.push(y(e+1)),g.push(x("dots-end")),g.push(y(o));return g.push(Ne(ue,{label:u.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ne("span",{className:et("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-gray-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.navButton),style:i?.navButton,onClick:I,children:Ne(Je,{})})},"next")),g},[e,o,u,p,i,x,y,I,v]);return Ne("div",{className:"cleen",ref:h,...f,children:KM("div",{className:et("cleen-flex cleen-justify-between cleen-gap-4",p?.container),style:i?.container,children:[a?Ne(bu,{pageSize:r,labels:u,onPageSizeChange:s,pageSizes:n,className:et("cleen-flex-1",p?.pageSizeSelector?.className),classNames:p?.pageSizeSelector?.classNames,...i?.pageSizeSelector}):Ne("div",{className:"cleen-flex-1"}),Ne("div",{className:et("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",p?.buttonsContainer),style:i?.buttonsContainer,children:C}),l?Ne(Iu,{ref:b,totalPages:o,onGoToPage:c,labels:u,className:et("cleen-flex cleen-flex-1 cleen-justify-end",p?.goToPage?.className),classNames:p?.goToPage?.classNames,...i?.goToPage}):Ne("div",{className:"cleen-flex-1"})]})})});import{cn as Cu,useDisclosure as ZM,useOutsideClick as QM,usePositionClose as JM,ZIndex as YM}from"@cleen/ui-core";import{forwardRef as jM,useRef as oy}from"react";import{createPortal as ew}from"react-dom";import{jsx as xu,jsxs as tw}from"react/jsx-runtime";var ow=jM(function({isOpen:o,onOpenChange:r,content:n,position:l="bottom-left",offset:a,zIndex:c=YM.POPOVER,children:s,className:u,classNames:p,style:i,styles:f,...h},b){let{isOpen:I,toggle:v,close:y}=ZM({value:o,setValue:r}),x=oy(null),C=oy(null),{positionStyles:g,isMounted:P}=JM({triggerRef:x,targetRef:C,position:l,isOpen:I,offset:a});QM({refs:[x,C],handler:y,enabled:I});let M=B=>{B.stopPropagation(),v()};return tw("div",{className:Cu("cleen",u),style:i,ref:b,...h,children:[xu("div",{ref:x,onClick:M,className:Cu("cleen-size-fit",p?.trigger,I&&p?.triggerOpen),style:{...f?.trigger,...I?f?.triggerOpen:{}},children:s}),I&&ew(xu("div",{className:"cleen",onClick:B=>B.stopPropagation(),onPointerDown:B=>B.stopPropagation(),onMouseDown:B=>B.stopPropagation(),onTouchStart:B=>B.stopPropagation(),children:xu("div",{ref:C,className:Cu("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-gray-200 cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!P},p?.popover),style:{zIndex:c,top:`${g.top}px`,left:`${g.left}px`,...f?.popover},onClick:B=>B.stopPropagation(),children:n})}),document.body)]})});import{cn as ty}from"@cleen/ui-core";import{forwardRef as nw,useEffect as rw,useState as aw}from"react";import{jsx as sc,jsxs as ny}from"react/jsx-runtime";var lw={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},ry=nw(({isFullscreen:e,percentage:o,duration:r=1e3,radius:n,stroke:l=16,size:a="md",color:c="rgb(var(--cleen-primary))",emptyColor:s="rgb(var(--cleen-gray-200))",textColor:u="rgb(var(--cleen-gray-900))",textHidden:p=!1,fontSize:i,renderText:f,className:h,classNames:b,style:I,styles:v,...y},x)=>{let C=n??lw[a]/2,g=C-l/2,P=g*2*Math.PI,[M,B]=aw(0);rw(()=>{let k=null;if(r===0){B(o);return}let D=E=>{k||(k=E);let N=E-k,R=Math.min(N/r*o,o);B(R),R<o&&requestAnimationFrame(D)};requestAnimationFrame(D)},[o,r]);let w=P-M/100*P;return sc("div",{ref:x,className:ty("cleen",h),style:I,...y,children:ny("div",{className:ty("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},b?.container),style:v?.container,children:[ny("svg",{height:C*2,width:C*2,style:{transform:"rotate(-90deg)"},children:[sc("circle",{stroke:s,fill:"transparent",strokeWidth:l,r:g,cx:C,cy:C}),sc("circle",{stroke:c,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:P,strokeDashoffset:w,r:g,cx:C,cy:C})]}),!p&&sc("div",{className:"cleen-absolute cleen-font-semibold cleen-text-gray-900",style:{fontSize:i??C/2.5,color:u},children:f?f(M):`${Math.round(M)}%`})]})})});ry.displayName="ProgressCircle";import{cn as qe}from"@cleen/ui-core";import{useEffect as cw,useState as sw}from"react";import{Fragment as ay,jsx as ko,jsxs as ra}from"react/jsx-runtime";var iw=({horizontal:e,boxes:o,selectedBox:r,onBoxClick:n,leftElement:l,rightElement:a,leftIcon:c,leftIconName:s,rightIconName:u,className:p,classNames:i,style:f,styles:h,...b})=>{let[I,v]=sw(r);cw(()=>{v(r)},[r]);let y=(P,M)=>ra(ay,{children:[l&&l(P),c||(s?ko(Ee,{name:s,className:qe("cleen-w-5 cleen-h-5",M?"cleen-text-primary":"cleen-text-gray-700",i?.leftIcon),style:h?.leftIcon}):null)]}),x=(P,M)=>ko("span",{className:qe("cleen-font-semibold",M?"cleen-text-primary":"cleen-text-gray-700",i?.label),style:h?.label,children:P?.label}),C=(P,M)=>ko("span",{className:qe("cleen-font-semibold cleen-text-16px",M?"cleen-text-primary":"cleen-text-gray-700",i?.subLabel),style:h?.subLabel,children:P?.subLabel}),g=(P,M)=>ra(ay,{children:[a&&a(P),u&&ko(Ee,{name:u,className:qe("cleen-w-5 cleen-h-5",M?"cleen-text-primary":"cleen-text-gray-700",i?.rightIcon),style:h?.rightIcon})]});return ko("div",{className:qe("cleen",p),style:f,...b,children:e?ko("div",{className:qe("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",i?.container),style:h?.container,children:o?.map(P=>{let M=P?.id===I?.id;return ra("div",{className:qe("cleen-flex cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary/5 cleen-w-max",M?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-gray-200",i?.box),style:h?.box,onClick:()=>{v(P),n?.(P)},children:[y(P,M),P?.label&&x(P,M),P?.subLabel&&C(P,M),g(P,M)]},P?.id)})}):ko("div",{className:qe("cleen-grid cleen-gap-3 cleen-w-full",i?.container),style:{gridTemplateColumns:"1fr auto 1fr",...h?.container},children:o?.map(P=>{let M=P?.id===I?.id;return ra("div",{className:qe("cleen-grid cleen-col-span-full cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary/5",M?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-gray-200",i?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...h?.box},onClick:()=>{v(P),n?.(P)},children:[ko("div",{className:qe("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",i?.leftIconContainer),style:h?.leftIconContainer,children:y(P,M)}),ko("div",{className:qe("cleen-flex cleen-items-center cleen-justify-center",i?.labelContainer),style:h?.labelContainer,children:P?.label&&x(P,M)}),ra("div",{className:qe("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",i?.rightIconContainer),style:h?.rightIconContainer,children:[P?.subLabel&&C(P,M),g(P,M)]})]},P?.id)})})})};import{cn as Bo}from"@cleen/ui-core";import{forwardRef as mw,useEffect as uw,useId as hw,useRef as fw,useState as gw}from"react";import{cn as ly}from"@cleen/ui-core";import{forwardRef as pw}from"react";import{jsx as cy,jsxs as dw}from"react/jsx-runtime";var ic=pw(function({checked:o,className:r,classNames:n,style:l,styles:a,...c},s){return dw("div",{className:ly("group cleen-flex cleen-size-5 cleen-min-h-5 cleen-min-w-5 cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-border-gray-300 focus-within:cleen-ring-2 focus-within:cleen-ring-primary focus-within:cleen-ring-offset-1",o?"cleen-bg-primary":"cleen-bg-white",r),style:l,children:[cy("input",{ref:s,type:"radio",checked:o,className:"cleen-sr-only",...c}),cy("span",{className:ly("cleen-size-2 cleen-rounded-full cleen-bg-white",n?.innerCircle),style:a?.innerCircle})]})});import{jsx as co,jsxs as pc}from"react/jsx-runtime";var vw=mw(function({required:o,radios:r,label:n,labelTooltip:l,className:a,classNames:c,style:s,styles:u,name:p,direction:i="vertical",radioPosition:f="left",defaultActiveId:h,value:b,infoLabels:I,onChange:v},y){let x=b!==void 0,[C,g]=gw(h??r[0]?.id),P=hw(),M=`${P}-label`,B=p??`cleen-radio-group-${P}`;uw(()=>{!x&&h!==void 0&&g(h)},[h,x]);let w=x?b:C,k=S=>w!=null&&w==S,D=S=>{x||g(S),v?.(S)},E=fw([]),N=r?.findIndex(S=>k(S.id)),R=N>=0?N:0,F=S=>{let z=r[S];z&&(D(z.id),E.current[S]?.focus())},T=(S,z)=>{let L=r.length;if(L)switch(S.key){case"ArrowDown":case"ArrowRight":S.preventDefault(),F((z+1)%L);break;case"ArrowUp":case"ArrowLeft":S.preventDefault(),F((z-1+L)%L);break;default:break}};return co("div",{className:Bo("cleen",a),style:s,ref:y,children:pc("div",{className:c?.container,style:u?.container,children:[n&&co(ee,{id:M,htmlFor:P,required:o,tooltip:l,className:Bo("cleen-mb-1.5",c?.label?.className),classNames:c?.label?.classNames,...u?.label,children:n}),co("div",{id:P,role:"radiogroup","aria-labelledby":n?M:void 0,className:Bo("cleen-flex cleen-flex-wrap cleen-gap-2.5",i==="vertical"&&"cleen-flex-col cleen-w-fit",c?.radios),style:u?.radios,children:r?.map((S,z)=>{let L=`${P}-${z}`,O=S.radioPosition??f;return pc("div",{className:Bo("cleen-flex cleen-gap-2 hover:cleen-bg-gray-100 cleen-p-5 cleen-border cleen-border-gray-200 hover:cleen-border-gray-300 cleen-rounded-xl cleen-transition-all cleen-duration-200 cleen-cursor-pointer",i==="horizontal"&&"cleen-flex-1",k(S?.id)&&"cleen-border-primary hover:cleen-border-primary",c?.radioContainer,S?.className,k(S?.id)&&c?.radioActive),style:{...u?.radioContainer,...S?.style},onClick:_=>{_.target instanceof Element&&!_.target.closest("label, input")&&E.current[z]?.click()},children:[S.leftIcon,O==="left"&&co(ic,{ref:_=>{E.current[z]=_},id:L,name:B,value:S.id,checked:k(S.id),tabIndex:z===R?0:-1,onChange:()=>D(S.id),onKeyDown:_=>T(_,z),className:Bo(c?.radioOuterCheckBox,S?.classNames?.outerCheckBox),style:{...u?.radioOuterCheckBox,...S?.styles?.outerCheckBox}}),pc("label",{htmlFor:L,className:Bo("cleen-flex-1 cleen-cursor-pointer",c?.radioLabelsContainer,S?.classNames?.labelsContainer),style:{...u?.radioLabelsContainer,...S?.styles?.labelsContainer},children:[pc("div",{className:"cleen-flex cleen-items-center cleen-gap-1",children:[co("span",{className:Bo("cleen-font-semibold cleen-text-gray-700 cleen-text-sm",c?.radioTitle,S?.classNames?.title),style:{...u?.radioTitle,...S?.styles?.title},children:S.title}),co("span",{className:Bo("cleen-font-normal cleen-text-gray-600 cleen-text-xs",c?.radiotPostTitle,S?.classNames?.postTitle),style:{...u?.radiotPostTitle,...S?.styles?.postTitle},children:S.postTitle})]}),co("span",{className:Bo("cleen-font-normal cleen-text-gray-600 cleen-text-sm",c?.radioSubTitle,S?.classNames?.subTitle),style:{...u?.radioSubTitle,...S?.styles?.subTitle},children:S?.subTitle})]}),O==="right"&&co(ic,{ref:_=>{E.current[z]=_},id:L,name:B,value:S.id,checked:k(S.id),tabIndex:z===R?0:-1,onChange:()=>D(S.id),onKeyDown:_=>T(_,z),className:c?.radioOuterCheckBox,style:u?.radioOuterCheckBox}),O==="hidden"&&co(ic,{ref:_=>{E.current[z]=_},id:L,name:B,value:S.id,checked:k(S.id),tabIndex:z===R?0:-1,onChange:()=>D(S.id),onKeyDown:_=>T(_,z),className:"cleen-sr-only"}),S.rightIcon]},S?.id)})}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&co(Y,{...I})]})})});import{cn as Bn,ColorHelpers as yw}from"@cleen/ui-core";import{forwardRef as Iw,useRef as bw,useState as Cw}from"react";import{jsx as zt,jsxs as sy}from"react/jsx-runtime";var xw=Iw(function({id:o,required:r,label:n,labelTooltip:l,labels:a,infoLabels:c,value:s,onChange:u,amount:p=5,options:i=[],gap:f,size:h=36,readonly:b,color:I="rgb(var(--cleen-primary))",className:v,style:y,classNames:x,styles:C,...g},P){let[M,B]=Cw(0),w=s!==void 0,k=w?s:M,D=i?.length>0?i:Array.from({length:p},(L,O)=>O+1),E=bw([]),N=D.findIndex(L=>L===k),R=N>=0?N:0,F=L=>{w||B(L),u?.(L)},T=L=>{let O=D[L];O!==void 0&&(F(O),E.current[L]?.focus())},S=(L,O)=>{if(b)return;let _=D.length;if(_)switch(L.key){case"ArrowRight":case"ArrowUp":L.preventDefault(),T((O+1)%_);break;case"ArrowLeft":case"ArrowDown":L.preventDefault(),T((O-1+_)%_);break;case"Home":L.preventDefault(),T(0);break;case"End":L.preventDefault(),T(_-1);break;default:break}},z=typeof n=="string"?n:"Rating";return zt("div",{className:Bn("cleen",v),style:y,ref:P,...g,children:sy("div",{className:Bn("cleen-space-y-2",x?.container),style:C?.container,children:[n&&zt(ee,{htmlFor:o,required:r,tooltip:l,className:Bn("cleen-mb-1.5",x?.label?.className),classNames:x?.label?.classNames,...C?.label,children:n}),sy("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[zt("div",{role:"radiogroup","aria-label":z,className:Bn("cleen-flex cleen-flex-wrap cleen-gap-3",x?.list),style:{...f?{gap:f}:{},...C?.list},children:D?.map((L,O)=>zt("button",{id:o,ref:_=>{E.current[O]=_},role:"radio","aria-checked":k===L,"aria-label":`${L}`,tabIndex:O===R?0:-1,onClick:()=>F(L),onKeyDown:_=>S(_,O),className:Bn("cleen-flex cleen-justify-center cleen-items-center cleen-border cleen-border-gray-200 hover:cleen-border-gray-300 cleen-rounded-full cleen-text-gray-900 cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",b&&"cleen-cursor-default cleen-pointer-events-none",x?.item),style:{width:h,height:h,...k===L?{borderColor:I,backgroundColor:yw.trasparentize(I,.9),color:I}:{},...C?.item},type:"button",children:zt("span",{className:Bn("cleen-font-medium cleen-text-sm",x?.value),style:C?.value,children:L})},L))}),a?.helperText&&zt("span",{className:"cleen-text-sm cleen-text-gray-600",children:a.helperText})]}),(c?.errorMessage||c?.infoMessage||c?.subtitle)&&zt(Y,{...c})]})})});import{useState as Pw}from"react";import{components as Sw}from"react-select";import{jsx as Pu,jsxs as iy}from"react/jsx-runtime";var py=e=>{let[o,r]=Pw(!1),n=e.data;return Pu("div",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:Pu(Sw.Option,{...e,children:iy("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[iy("div",{className:"cleen-flex-1",children:[n?.label,n?.sublabel&&Pu("p",{className:"cleen-text-xs",children:n?.sublabel})]}),typeof n?.icon=="function"?n.icon({...e,isHovered:o}):n?.icon]})})})};import{components as Mw}from"react-select";import{jsx as Su,jsxs as ww}from"react/jsx-runtime";var dy=e=>{let o=e.data;return Su(Mw.SingleValue,{...e,children:ww("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Su("p",{children:o?.label}),o?.sublabel&&Su("p",{className:"cleen-text-xs cleen-text-gray-600 cleen-line-clamp-1",children:o?.sublabel})]})})};import{cn as aa,ZIndex as gy}from"@cleen/ui-core";import{forwardRef as Rw,useId as Dw,useState as vy}from"react";import Lw from"react-select";import{components as kw}from"react-select";import{jsx as Mu,jsxs as my}from"react/jsx-runtime";var uy=({isLoading:e,inputValue:o,options:r,createNewOptionCallback:n,createNewOptionLabelStringCb:l,children:a,...c})=>{let s=o?.trim().toLowerCase(),u=r?.some(p=>p?.labelString?p.labelString.toLowerCase()===s:typeof p?.label=="string"?p.label.toLowerCase()===s:!1);return Mu("div",{className:"cleen",children:my(kw.MenuList,{options:r,...c,children:[a,n&&!e&&o&&o?.length>0&&!u&&my("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[Mu(So,{}),Mu("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{n(o)},children:l?.(o)||o})]})]})})};import{components as Bw}from"react-select";import{jsx as hy}from"react/jsx-runtime";var fy=({isLoading:e,noDataFound:o,...r})=>hy(Bw.NoOptionsMessage,{...r,children:e?hy(te,{}):o||"No data found"});import{jsx as ot,jsxs as Iy}from"react/jsx-runtime";var yy=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),Tw=Rw(function({label:o,labelTooltip:r,sublabel:n,id:l,name:a,required:c,className:s,classNames:u,isLoading:p=!1,disabled:i,emboldenOptions:f=!1,labels:h,components:b,style:I,styles:v,infoLabels:y,createNewOptionCallback:x,createNewOptionLabelStringCb:C,...g},P){let[M,B]=vy(!1),[w,k]=vy(""),D=Dw(),E=g.inputId??l??a??D,N=(F,T)=>{if(!yy(F.data))return!1;let{labelString:S,label:z}=F.data;return S?S.toLowerCase().includes(T.toLowerCase()):typeof z=="string"?z.toLowerCase().includes(T.toLowerCase()):!1},R=F=>yy(F)?F.labelString??(typeof F.label=="string"?F.label:""):"";return ot("div",{className:aa("cleen",s),style:I,ref:P,children:Iy("div",{className:aa("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",u?.cleenContainer),style:v?.cleenContainer,children:[(o||n)&&Iy("div",{className:aa("cleen-flex cleen-flex-col cleen-gap-1",u?.labels?.container),style:v?.labels?.container,children:[o&&ot(ee,{htmlFor:E,required:c,tooltip:r,...u?.labels?.label,...v?.labels?.label,children:o}),n&&ot("span",{className:aa("cleen-font-normal cleen-text-gray-600 cleen-text-sm",u?.labels?.sublabel),style:v?.labels?.sublabel,children:n})]}),ot(Lw,{...x&&{menuIsOpen:M,inputValue:w,onInputChange:F=>k(F),onMenuOpen:()=>B(!0),onMenuClose:()=>B(!1)},...!g.filterOption&&{filterOption:N},...!g.getOptionLabel&&{getOptionLabel:R},id:l||a,classNames:u,isDisabled:i,menuPortalTarget:document.body,menuPosition:"fixed",...g,inputId:E,className:aa("cleen-shadow-none cleen-font-normal cleen-text-gray-900 cleen-text-sm",u?.inputOuterContainer),styles:{...v,control:(F,T)=>{let S={...F,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:f&&T.hasValue?"600":"400",borderColor:y?.errorMessage?"rgba(var(--cleen-error), 0.5)":"rgb(var(--cleen-gray-300))",color:T.isDisabled?"rgb(var(--cleen-gray-500))":"rgb(var(--cleen-gray-900))",backgroundColor:T.isDisabled?"rgb(var(--cleen-gray-100))":"rgba(var(--cleen-background))",boxShadow:T.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:x?"rgba(var(--cleen-gray-900))":"transparent","&:hover":{borderColor:"rgb(var(--cleen-gray-200))"}};return v?.control?v?.control(S,T):S},menuPortal:(F,T)=>{let S={...F,zIndex:gy.SELECT,...v?.menuPortal};return v?.menuPortal?v?.menuPortal(S,T):S},menu:(F,T)=>{let S={...F,backgroundColor:"rgba(var(--cleen-white))",border:"1px solid rgba(var(--cleen-gray-200))",zIndex:gy.SELECT,...v?.menu};return v?.menu?v?.menu(S,T):S},option:(F,T)=>{let S={...F,backgroundColor:T.isSelected?"rgba(var(--cleen-primary))":T.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:T.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-gray-900))",fontWeight:f?"600":"400","&:hover":T.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:T.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-gray-600))"},"&:hover p":{color:"rgba(var(--cleen-white))"},"&:active":{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))"}};return v?.option?v?.option(S,T):S},menuList:(F,T)=>{let S={...F,"::-webkit-scrollbar":{width:"6px",height:"0px"},"::-webkit-scrollbar-track":{background:"rgb(var(--cleen-background))"},"::-webkit-scrollbar-thumb":{background:"rgba(var(--cleen-gray-200))"},"::-webkit-scrollbar-thumb:hover":{background:"rgba(var(--cleen-gray-400))"},padding:0,borderRadius:4,...v?.menuList};return v?.menuList?v?.menuList(S,T):S},singleValue:(F,T)=>{let S={...F,color:T.isDisabled?"rgba(var(--cleen-gray-500))":"rgba(var(--cleen-black))"};return v?.singleValue?v?.singleValue(S,T):S},input:(F,T)=>{let S={...F,color:"rgba(var(--cleen-gray-900))"};return v?.input?v?.input(S,T):S}},components:{IndicatorSeparator:()=>null,SingleValue:F=>ot(dy,{...F}),NoOptionsMessage:F=>ot(fy,{isLoading:p,noDataFound:h?.noDataFound,...F}),MenuList:F=>ot(uy,{isLoading:p,inputValue:w,createNewOptionCallback:x,createNewOptionLabelStringCb:C,...F}),Option:py,...b}}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&ot(Y,{...y})]})})});import{jsx as by,jsxs as Nw}from"react/jsx-runtime";function Cy({children:e,title:o,className:r="",renderHeader:n}){return Nw("div",{className:`cleen-w-full cleen-h-full ${r}`,"data-testid":`drawer-container-${o}`,children:[n?n(o):by("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-gray-900",children:o}),by("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as Ro}from"@cleen/ui-core";import{forwardRef as Fw,useState as Ew}from"react";import{Fragment as _w,jsx as Xe,jsxs as dc}from"react/jsx-runtime";function Aw({icon:e,iconSrc:o,iconName:r,iconSize:n=24,title:l,className:a,style:c}){return e?Xe("span",{className:Ro("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",a),style:{width:n,height:n,...c},children:e}):o?Xe("img",{src:o,alt:l,width:n,height:n,className:a,style:c}):r?Xe(Ee,{name:r,width:n,height:n,className:a,style:c}):null}function xy({item:e,depth:o,iconSize:r=24,classNames:n,styles:l}){let[a,c]=Ew(!1),s={...e,classNames:{...n,...e.classNames},styles:{...l,...e.styles}},u=Array.isArray(s?.items)&&s.items.length>0,p=s?.iconSize??r,i=o>0?{paddingLeft:12+o*28}:{},f=dc(_w,{children:[dc("div",{className:Ro("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",s?.classNames?.containerInner),style:s?.styles?.containerInner,children:[Xe(Aw,{icon:s?.icon,iconSrc:s?.iconSrc,iconName:s?.iconName,iconSize:p,title:s?.name,className:Ro("cleen-text-gray-700 group-hover/row:cleen-text-gray-900 [&_path]:cleen-stroke-[1.5] [&_path]:[vector-effect:non-scaling-stroke] cleen-transition-all cleen-duration-200",s?.isActive&&"cleen-text-gray-900",s?.classNames?.icon),style:s?.styles?.icon}),Xe("span",{className:Ro("cleen-font-semibold cleen-text-gray-800 group-hover/row:cleen-text-gray-900 cleen-text-sm cleen-truncate cleen-transition-colors cleen-duration-200",s?.isActive&&"cleen-text-gray-900",s?.classNames?.name),style:s?.styles?.name,children:s?.name})]}),["string","number"].includes(typeof s?.badgeCount)&&Xe(Le,{color:s?.badgeColor,label:String(s?.badgeCount),...s?.classNames?.badge,...s?.styles?.badge})]});return u?dc("details",{className:s?.classNames?.container,style:s?.styles?.container,children:[dc("summary",{className:Ro("cleen-group/row [&::-webkit-details-marker]:cleen-hidden cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-gray-100 cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer cleen-list-none",o===0?"cleen-px-3":void 0,s?.classNames?.parentItemContainer),style:{...i,...s?.styles?.parentItemContainer},onClick:()=>c(h=>!h),children:[f,Xe(Ee,{name:"ChevronDown",className:Ro("cleen-w-5 cleen-h-5 cleen-text-gray-700 group-hover/row:cleen-text-gray-900 cleen-transition-all cleen-shrink-0",{"cleen-rotate-180":a},s?.classNames?.chevron),style:s?.styles?.chevron})]}),Xe("div",{className:Ro("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",s?.classNames?.childItemsContainer),style:s?.styles?.childItemsContainer,children:s.items.map(h=>Xe(xy,{item:h,depth:o+1,iconSize:r,classNames:n,styles:l},h?.id??h?.name))})]}):Xe("div",{className:Ro("cleen-group/row cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-primary/5 cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer",o===0?"cleen-px-3 hover:cleen-bg-gray-100":void 0,s?.isActive&&o===0&&"cleen-bg-gray-100",s?.disabled&&"cleen-opacity-50 cleen-pointer-events-none",s?.classNames?.container),style:{...i,...s?.styles?.container},onClick:()=>s?.onClick?.(s),children:f})}var zw=Fw(function({title:o,icon:r,iconName:n,iconSrc:l,iconSize:a=24,badgeColor:c="gray",badgeCount:s,items:u,onClick:p,isActive:i=!1,disabled:f,className:h,classNames:b,style:I,styles:v},y){let x={id:"root",name:o,icon:r,iconName:n,iconSrc:l,iconSize:a,badgeColor:c,badgeCount:s,isActive:i,disabled:f,onClick:p?()=>p():void 0,classNames:b,styles:v,items:u};return Xe("div",{className:Ro("cleen",h),style:I,ref:y,children:Xe(xy,{item:x,depth:0,iconSize:a,classNames:b,styles:v})})}),Ow=zw;import{cn as Do}from"@cleen/ui-core";import{useEffect as Vw,useRef as Ww,useState as $w}from"react";import{cn as la}from"@cleen/ui-core";import{useMemo as Hw}from"react";import{Link as Uw}from"react-router-dom";import{jsx as ca,jsxs as Gw}from"react/jsx-runtime";function sa({item:e,activeId:o,onClick:r,countBadge:n,classNames:l,styles:a,renderIcon:c}){let s=o===e?.id,u=Hw(()=>e?c?c(e,s):e.icon?e.icon:e.iconSrc?ca("img",{src:e.iconSrc,alt:e?.name||e?.label,className:la("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,s&&"cleen-text-primary"),style:a?.icon}):e.iconName?ca(Ee,{name:e.iconName,className:la("cleen-w-6 cleen-h-6 cleen-text-gray-700 [&_path]:cleen-stroke-[1.5] [&_path]:[vector-effect:non-scaling-stroke] cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,s&&"cleen-text-primary"),style:a?.icon}):null:null,[e,s,c,l?.icon,a?.icon]),p=Gw("div",{"data-testid":`nav-item-${e?.id}`,className:la("cleen-group cleen-relative cleen-p-2 cleen-cursor-pointer cleen-rounded-md cleen-w-12 cleen-h-12 cleen-flex cleen-justify-center cleen-items-center cleen-select-none cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary/10",l?.container,s&&"cleen-bg-primary/10"),style:a?.container,onClick:()=>{e?.path||r?.(e)},children:[u,n&&ca("div",{className:la("cleen-absolute -cleen-top-1 -cleen-right-1 cleen-flex cleen-items-center cleen-justify-center cleen-w-4 cleen-h-4 cleen-bg-white cleen-rounded-md cleen-border cleen-border-gray-200 cleen-font-normal cleen-text-[8px] cleen-text-gray-900",l?.badge),style:a?.badge,children:n})]});return ca(ue,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-gray-900))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:la("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...a?.tooltip,label:e?.label,children:e?.path?ca(Uw,{to:e.path,children:p}):p})}import{jsx as Lo,jsxs as Ot}from"react/jsx-runtime";function Py({navigationItems:e,bottomNavigationItems:o=[],drawerContent:r={},logo:n,onLogoClick:l,userAvatar:a,userInfo:c,drawerFooter:s,drawerWidth:u=330,direction:p="right",defaultActiveId:i=null,activeId:f,onActiveChange:h,closeOnOutsideClick:b=!0,closeOnBlur:I=!0,className:v,classNames:y,style:x,styles:C,renderSidebarItem:g}){let[P,M]=$w(i),B=Ww(null),w=f!==void 0?f:P,k=!!w,D=N=>{let R=w===N.id?null:N.id;f===void 0&&M(R),h?.(R)};Vw(()=>{if(!b||!k)return;let N=R=>{B.current&&!B.current.contains(R.target)&&(f===void 0&&M(null),h?.(null))};return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[b,k,f,h]);let E=N=>{!I||!k||B.current&&!B.current.contains(N.relatedTarget)&&(f===void 0&&M(null),h?.(null))};return Ot("div",{className:Do("cleen",v),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:p==="left"?"row-reverse":"row",...x},ref:B,onBlur:E,tabIndex:I?0:void 0,children:[Ot("div",{className:Do("cleen-flex cleen-flex-col cleen-items-center cleen-h-full",p==="right"?"cleen-border-r cleen-border-r-gray-200":"cleen-border-l cleen-border-l-gray-200",y?.navigation),style:C?.navigation,children:[n&&Lo("div",{className:Do("cleen-flex cleen-justify-center cleen-items-center cleen-pt-8 cleen-pb-6 cleen-w-full cleen-cursor-pointer",y?.logo),style:C?.logo,onClick:l,children:n}),Ot("div",{className:Do("cleen-flex cleen-flex-col cleen-flex-1 cleen-justify-between cleen-gap-2 cleen-px-4 cleen-overflow-y-auto cleen-no-scrollbar",y?.navigationItems),style:C?.navigationItems,children:[Lo("nav",{className:Do("cleen-flex cleen-flex-col cleen-gap-2",y?.upperNavigationItemsWrapper),style:C?.upperNavigationItemsWrapper,children:e.map(N=>Ot("div",{children:[g?g(N,w===N.id,D):Lo(sa,{item:N,activeId:w,onClick:D,classNames:{...y?.navigationItem,...N?.classNames},styles:{...C?.navigationItem,...N?.styles}}),N?.withBottomDivider&&Lo("div",{className:"cleen-bg-gray-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},N.id))}),Ot("div",{className:Do("cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",y?.bottomNavigationItemsWrapper),style:C?.bottomNavigationItemsWrapper,children:[o.map(N=>Ot("div",{children:[g?g(N,w===N.id,D):Lo(sa,{item:N,activeId:w,onClick:D,countBadge:N.badgeCount,classNames:{...y?.navigationItem,...N?.classNames},styles:{...C?.navigationItem,...N?.styles}}),N?.withBottomDivider&&Lo("div",{className:"cleen-bg-gray-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},N.id)),a&&Lo("div",{className:"cleen-mt-6 cleen-mb-8",children:a})]})]})]}),Ot("div",{className:Do("cleen-flex cleen-flex-col cleen-bg-sidebar cleen-h-full cleen-overflow-hidden cleen-transition-all cleen-duration-100",{"cleen-border-r cleen-border-r-gray-200":k&&p==="right","cleen-border-l cleen-border-l-gray-200":k&&p==="left"},y?.drawer),style:{...C?.drawer,width:k?`${u}px`:"0px",visibility:k?"visible":"hidden"},children:[w&&r[w]&&Lo("div",{className:Do("cleen-flex-1 cleen-overflow-auto",y?.drawerContent),style:C?.drawerContent,children:r[w]}),w&&(s||c)&&Lo("div",{className:Do("cleen-mt-auto cleen-flex cleen-justify-between cleen-items-start cleen-gap-4 cleen-px-5 cleen-pt-4 cleen-pb-8 cleen-border-gray-200 cleen-border-t cleen-w-full",y?.drawerFooter),style:C?.drawerFooter,children:typeof s=="function"?s(w):s||c})]})]})}var Q=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as Sy}from"@cleen/ui-core";import{forwardRef as qw}from"react";import{jsx as My}from"react/jsx-runtime";var Xw={none:"cleen-rounded-none",sm:"cleen-rounded-sm",md:"cleen-rounded-md",lg:"cleen-rounded-lg",xl:"cleen-rounded-xl","2xl":"cleen-rounded-2xl",full:"cleen-rounded-full"},Kw=qw(function({width:o,height:r,roundness:n="md",variant:l="default",className:a,style:c},s){let u=Q(l),p={...o!==void 0?{width:typeof o=="number"?`${o}px`:o}:{},...r!==void 0?{height:typeof r=="number"?`${r}px`:r}:{},...c};return My("div",{ref:s,className:Sy("cleen",a),children:My("div",{className:Sy("cleen-bg-gray-100",Xw[n],o===void 0&&"cleen-w-full",r===void 0&&"cleen-h-4",u),style:p})})});import{cn as wu}from"@cleen/ui-core";import{forwardRef as Zw}from"react";import{jsx as mc,jsxs as Qw}from"react/jsx-runtime";var ku=Zw(function({className:o,style:r,variant:n="default",itemCount:l=1},a){let c=Q(n);return mc("div",{ref:a,className:wu("cleen",o),style:r,children:mc("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((s,u)=>Qw("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[mc("div",{className:wu("cleen-bg-gray-100 cleen-rounded-full cleen-size-12 cleen-border cleen-border-gray-200",c)}),mc("div",{className:wu("cleen-bg-gray-100 cleen-rounded cleen-w-14 cleen-h-3",c)})]},u))})})});import{cn as wy}from"@cleen/ui-core";import{forwardRef as Jw}from"react";import{jsx as Bu}from"react/jsx-runtime";var Ru=Jw(function({className:o,style:r,variant:n="default",itemCount:l=1},a){let c=Q(n);return Bu("div",{ref:a,className:wy("cleen",o),style:r,children:Bu("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((s,u)=>Bu("div",{className:wy("cleen-bg-gray-100 cleen-rounded-full cleen-h-6 cleen-w-16",c)},u))})})});import{cn as ky}from"@cleen/ui-core";import{forwardRef as Yw}from"react";import{jsx as _t,jsxs as uc}from"react/jsx-runtime";var Du=Yw(function({className:o,style:r,variant:n="default"},l){let a=Q(n);return _t("div",{ref:l,className:ky("cleen",o),style:r,children:uc("div",{className:ky("cleen-relative cleen-bg-gray-100 cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",a),children:[_t("div",{className:"cleen-h-48 cleen-w-full"}),uc("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-flex-col cleen-justify-center cleen-items-start cleen-gap-4 cleen-px-8",children:[_t("div",{className:"cleen-bg-gray-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),uc("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[_t("div",{className:"cleen-bg-gray-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),_t("div",{className:"cleen-bg-gray-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),uc("div",{className:"cleen-flex cleen-gap-3",children:[_t("div",{className:"cleen-bg-gray-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),_t("div",{className:"cleen-bg-gray-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as By}from"@cleen/ui-core";import{forwardRef as jw}from"react";import{jsx as Lu}from"react/jsx-runtime";var Tu=jw(function({className:o,style:r,variant:n="default",itemCount:l=1},a){let c=Q(n);return Lu("div",{ref:a,className:By("cleen",o),style:r,children:Lu("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((s,u)=>Lu("div",{className:By("cleen-bg-gray-100 cleen-rounded-lg cleen-h-10 cleen-w-28",c)},u))})})});import{cn as hc}from"@cleen/ui-core";import{forwardRef as ek}from"react";import{jsx as fc,jsxs as Ry}from"react/jsx-runtime";var ia=ek(function({className:o,style:r,variant:n="default"},l){let a=Q(n);return fc("div",{ref:l,className:hc("cleen",o),style:r,children:Ry("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-w-full",children:[fc("div",{className:hc("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-100 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-min-w-10 cleen-size-10",a)}),Ry("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[fc("div",{className:hc("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-4",a)}),fc("div",{className:hc("cleen-bg-gray-100 cleen-rounded cleen-w-1/2 cleen-h-3",a)})]})]})})});import{cn as Rn}from"@cleen/ui-core";import{forwardRef as ok}from"react";import{jsx as Dn,jsxs as gc}from"react/jsx-runtime";var vc=ok(({className:e,style:o,variant:r="default"},n)=>{let l=Q(r);return Dn("div",{ref:n,className:Rn("cleen",e),style:o,children:gc("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray-200 cleen-rounded-lg",children:[gc("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[Dn("div",{className:Rn("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-100 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-size-10",l)}),gc("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Dn("div",{className:Rn("cleen-bg-gray-100 cleen-rounded cleen-w-1/2 cleen-h-5",l)}),Dn("div",{className:Rn("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),gc("div",{className:"cleen-space-y-2 cleen-w-full",children:[Dn("div",{className:Rn("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-2",l)}),Dn("div",{className:Rn("cleen-bg-gray-100 cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});vc.displayName="AssessmentHeaderSkeleton";import{cn as so}from"@cleen/ui-core";import{forwardRef as tk}from"react";import{jsx as io,jsxs as Ln}from"react/jsx-runtime";var Nu=tk(function({className:o,style:r,variant:n="default"},l){let a=Q(n);return io("div",{ref:l,className:so("cleen",o),style:r,children:Ln("div",{className:"cleen-flex cleen-flex-col cleen-bg-white cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-overflow-hidden cleen-w-full",children:[io("div",{className:so("cleen-bg-gray-100 cleen-w-full cleen-h-40",a)}),Ln("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[Ln("div",{className:"cleen-flex cleen-gap-2",children:[io("div",{className:so("cleen-bg-gray-100 cleen-rounded-full cleen-w-16 cleen-h-5",a)}),io("div",{className:so("cleen-bg-gray-100 cleen-rounded-full cleen-w-12 cleen-h-5",a)})]}),Ln("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[io("div",{className:so("cleen-bg-gray-100 cleen-rounded cleen-w-4/5 cleen-h-5",a)}),io("div",{className:so("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-3",a)}),io("div",{className:so("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-3",a)})]}),Ln("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[Ln("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[io("div",{className:so("cleen-bg-gray-100 cleen-rounded-full cleen-size-7 cleen-shrink-0",a)}),io("div",{className:so("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-3",a)})]}),io("div",{className:so("cleen-bg-gray-100 cleen-rounded-lg cleen-w-16 cleen-h-7",a)})]})]})]})})});import{forwardRef as nk}from"react";import{cn as rk}from"@cleen/ui-core";import{jsx as Fu}from"react/jsx-runtime";var Eu=nk(function({className:o,style:r,itemCount:n=3,variant:l="default"},a){return Fu("div",{ref:a,className:rk("cleen",o),style:r,children:Fu("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:n}).map((c,s)=>Fu(ia,{variant:l},s))})})});import{cn as Ht}from"@cleen/ui-core";import{forwardRef as ak}from"react";import{jsx as Ke,jsxs as pa}from"react/jsx-runtime";var Dy=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],Au=ak(function({className:o,style:r,variant:n="default"},l){let a=Q(n);return Ke("div",{ref:l,className:Ht("cleen",o),style:r,children:pa("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-bg-white cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-px-4 cleen-pt-4 cleen-pb-3 cleen-w-full",children:[pa("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[Ke("div",{className:Ht("cleen-bg-gray-100 cleen-rounded cleen-w-32 cleen-h-5",a)}),Ke("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((c,s)=>pa("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[Ke("div",{className:Ht("cleen-bg-gray-100 cleen-rounded-full cleen-size-2.5",a)}),Ke("div",{className:Ht("cleen-bg-gray-100 cleen-rounded cleen-h-3",a),style:{width:c}})]},s))})]}),pa("div",{className:"cleen-flex cleen-gap-3",children:[Ke("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-end cleen-py-1",style:{height:120},children:[0,1,2,3].map(c=>Ke("div",{className:Ht("cleen-bg-gray-100 cleen-rounded cleen-w-6 cleen-h-2",a)},c))}),pa("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[Ke("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:Dy.map((c,s)=>Ke("div",{className:Ht("cleen-bg-gray-100 cleen-rounded-t cleen-flex-1",c,a)},s))}),Ke("div",{className:"cleen-w-full cleen-h-px cleen-bg-gray-100"}),Ke("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:Dy.map((c,s)=>Ke("div",{className:Ht("cleen-bg-gray-100 cleen-rounded cleen-flex-1 cleen-h-2",a)},s))})]})]})]})})});import{cn as Ut}from"@cleen/ui-core";import{forwardRef as lk}from"react";import{jsx as To,jsxs as yc}from"react/jsx-runtime";var zu=lk(({variant:e="default",itemCount:o=3,className:r,style:n},l)=>{let a=Q(e);return To("div",{ref:l,className:Ut("cleen",r),style:n,children:To(le,{className:"cleen-max-h-fit",children:yc("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[yc("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[To("div",{className:Ut("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-6",a)}),To("div",{className:Ut("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-4",a)})]}),To("div",{className:"cleen-space-y-6",children:Array.from({length:o}).map((c,s)=>yc("div",{className:"cleen-space-y-3",children:[To("div",{className:Ut("cleen-bg-gray-100 cleen-rounded cleen-w-2/3 cleen-h-4",a)}),To("div",{className:Ut("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-10",a)})]},s))}),yc("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[To("div",{className:Ut("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-10",a)}),To("div",{className:Ut("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-10",a)})]})]})})})});import{cn as Ic}from"@cleen/ui-core";import{forwardRef as ck}from"react";import{jsx as da,jsxs as sk}from"react/jsx-runtime";var Ou=ck(function({className:o,style:r,variant:n="default",itemCount:l=5},a){let c=Q(n),s=["cleen-w-1/12","cleen-w-3/12","cleen-w-2/12","cleen-w-3/12","cleen-w-2/12","cleen-w-1/12"];return da("div",{ref:a,className:Ic("cleen",o),style:r,children:sk("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-overflow-hidden",children:[da("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-bg-gray-100 cleen-border-b cleen-border-gray-200",children:s.map((u,p)=>da("div",{className:Ic("cleen-bg-gray-100 cleen-rounded cleen-h-4 cleen-flex-shrink-0",u,c)},p))}),Array.from({length:l}).map((u,p)=>da("div",{className:Ic("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",p<l-1?"cleen-border-b cleen-border-gray-200":""),children:s.map((i,f)=>da("div",{className:Ic("cleen-bg-gray-100 cleen-rounded cleen-h-4 cleen-flex-shrink-0",f===s.length-1?"cleen-rounded-full":"cleen-rounded",i,c)},f))},p))]})})});import{cn as bc}from"@cleen/ui-core";import{forwardRef as ik}from"react";import{jsx as ma,jsxs as Ly}from"react/jsx-runtime";var _u=ik(function({className:o,style:r,variant:n="default",itemCount:l=4},a){let c=Q(n);return ma("div",{ref:a,className:bc("cleen",o),style:r,children:Ly("div",{className:"cleen-flex cleen-flex-col cleen-gap-5 cleen-w-full cleen-bg-white cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-px-6 cleen-py-6",children:[Array.from({length:l}).map((s,u)=>Ly("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[ma("div",{className:bc("cleen-bg-gray-100 cleen-rounded cleen-w-1/4 cleen-h-3",c)}),ma("div",{className:bc("cleen-bg-gray-100 cleen-rounded-lg cleen-w-full cleen-h-10",c)})]},u)),ma("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:ma("div",{className:bc("cleen-bg-gray-100 cleen-rounded-lg cleen-w-28 cleen-h-10",c)})})]})})});import{cn as Ty}from"@cleen/ui-core";import{forwardRef as pk}from"react";import{jsx as Hu}from"react/jsx-runtime";var dk=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-light-green))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],Uu=pk(function({className:o,style:r,variant:n="default",colors:l=dk},a){let c=Q(n);return Hu("div",{ref:a,className:Ty("cleen",o),style:r,children:Hu("div",{className:Ty("cleen-p-1 cleen-size-full cleen-rounded-lg cleen-animate-[cleen-rotate-gradient-angle_2.5s_linear_infinite]",c),style:{background:`conic-gradient(from var(--cleen--gradient-angle),${l.join(",")})`},children:Hu("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as Cc}from"@cleen/ui-core";import{forwardRef as mk}from"react";import{jsx as Tn,jsxs as Ny}from"react/jsx-runtime";var Gu=mk(function({className:o,style:r,variant:n="default"},l){let a=Q(n);return Tn("div",{ref:l,className:Cc("cleen",o),style:r,children:Ny("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Tn("div",{className:Cc("cleen-relative cleen-bg-gray-100 cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:Tn("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Ny("div",{className:Cc("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[Tn("div",{className:"cleen-bg-gray-200 cleen-rounded-full cleen-size-8"}),Tn("div",{className:"cleen-bg-gray-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),Tn("div",{className:Cc("cleen-bg-gray-100 cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",a)})]})})});import{cn as ze}from"@cleen/ui-core";import{forwardRef as uk}from"react";import{jsx as Fe,jsxs as No}from"react/jsx-runtime";var Vu=uk(function({className:o,style:r,variant:n="default"},l){let a=Q(n);return Fe("div",{ref:l,className:ze("cleen",o),style:r,children:No("div",{className:ze("cleen-flex cleen-flex-col cleen-items-start cleen-gap-4 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-h-fit",o),style:r,children:[No("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Fe("div",{className:ze("cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray-100 cleen-p-2 cleen-rounded-full cleen-size-8",a)}),Fe("div",{className:ze("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-3",a)})]}),No("div",{className:"cleen-space-y-3 cleen-w-full",children:[No("div",{children:[Fe("div",{className:ze("cleen-bg-gray-100 cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),Fe(le,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:No("div",{className:"cleen-space-y-2",children:[Fe("div",{className:ze("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-3",a)}),Fe("div",{className:ze("cleen-bg-gray-100 cleen-rounded cleen-w-5/6 cleen-h-3",a)})]})})]}),No("div",{children:[Fe("div",{className:ze("cleen-bg-gray-100 cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),No("div",{className:"cleen-space-y-2",children:[Fe("div",{className:ze("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-3",a)}),Fe("div",{className:ze("cleen-bg-gray-100 cleen-rounded cleen-w-2/3 cleen-h-3",a)})]})]}),No("div",{children:[Fe("div",{className:ze("cleen-bg-gray-100 cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),Fe(le,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:No("div",{className:"cleen-space-y-2",children:[Fe("div",{className:ze("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-3",a)}),Fe("div",{className:ze("cleen-bg-gray-100 cleen-rounded cleen-w-4/5 cleen-h-3",a)})]})})]})]})]})})});import{cn as Wu}from"@cleen/ui-core";import{forwardRef as hk}from"react";import{jsx as $u,jsxs as fk}from"react/jsx-runtime";var qu=hk(function({className:o,style:r,variant:n="default"},l){let a=Q(n);return $u("div",{ref:l,className:Wu("cleen",o),style:r,children:fk("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[$u("div",{className:Wu("cleen-bg-gray-100 cleen-rounded cleen-w-1/4 cleen-h-3",a)}),$u("div",{className:Wu("cleen-bg-gray-100 cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-gray-200",a)})]})})});import{cn as ua}from"@cleen/ui-core";import{forwardRef as gk}from"react";import{jsx as Nn,jsxs as Fy}from"react/jsx-runtime";var Xu=gk(function({className:o,style:r,variant:n="default",itemCount:l=5},a){let c=Q(n),s=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return Nn("div",{ref:a,className:ua("cleen",o),style:r,children:Nn("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-gray-200",children:Array.from({length:l}).map((u,p)=>Fy("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[Nn("div",{className:ua("cleen-bg-gray-100 cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-gray-200",c)}),Fy("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[Nn("div",{className:ua("cleen-bg-gray-100 cleen-rounded cleen-h-4",s[p%s.length],c)}),Nn("div",{className:ua("cleen-bg-gray-100 cleen-rounded cleen-h-3 cleen-w-2/5",c)})]}),Nn("div",{className:ua("cleen-bg-gray-100 cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",c)})]},p))})})});import{cn as Ey}from"@cleen/ui-core";import{forwardRef as vk}from"react";import{jsx as Zu}from"react/jsx-runtime";var Ku=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],Qu=vk(function({className:o,style:r,variant:n="default",itemCount:l},a){let c=Q(n),s=l??Ku.length;return Zu("div",{ref:a,className:Ey("cleen",o),style:r,children:Zu("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:s}).map((u,p)=>{let i=p<Ku.length?Ku[p]:p===s-1?"cleen-w-3/5":"cleen-w-full";return Zu("div",{className:Ey("cleen-bg-gray-100 cleen-rounded cleen-h-3",i,c)},p)})})})});import{cn as Ay}from"@cleen/ui-core";import{forwardRef as yk}from"react";import{jsx as zy}from"react/jsx-runtime";var Ju=yk(function({className:o,style:r,variant:n="default"},l){let a=Q(n);return zy("div",{ref:l,className:Ay("cleen",o),style:r,children:zy("div",{className:Ay("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-4",a)})})});import{cn as Gt}from"@cleen/ui-core";import{forwardRef as Ik}from"react";import{jsx as po,jsxs as xc}from"react/jsx-runtime";var Yu=Ik(function({className:o,style:r,variant:n="default"},l){let a=Q(n);return po("div",{ref:l,className:Gt("cleen",o),style:r,children:xc("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[po("div",{className:Gt("cleen-relative cleen-bg-gray-100 cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:po("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:po("div",{className:"cleen-bg-gray-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:po("div",{className:"cleen-w-0 cleen-h-0 cleen-ml-1 cleen-border-y-[8px] cleen-border-y-transparent cleen-border-l-[14px] cleen-border-l-gray-400"})})})}),xc("div",{className:"cleen-flex cleen-gap-3",children:[po("div",{className:Gt("cleen-bg-gray-100 cleen-rounded-lg cleen-size-10 cleen-shrink-0",a)}),xc("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[po("div",{className:Gt("cleen-bg-gray-100 cleen-rounded cleen-w-full cleen-h-4",a)}),po("div",{className:Gt("cleen-bg-gray-100 cleen-rounded cleen-w-3/4 cleen-h-3",a)}),xc("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[po("div",{className:Gt("cleen-bg-gray-100 cleen-rounded cleen-w-14 cleen-h-3",a)}),po("div",{className:Gt("cleen-bg-gray-100 cleen-rounded cleen-w-10 cleen-h-3",a)})]})]})]})]})})});import{cn as ha}from"@cleen/ui-core";import{forwardRef as bk}from"react";import{jsx as fa,jsxs as ju}from"react/jsx-runtime";var Pc=bk(function({variant:o="default",className:r,style:n},l){let a=Q(o);return fa("div",{ref:l,className:ha("cleen",r),style:n,children:ju("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray-200 cleen-rounded-xl cleen-w-full cleen-h-full",children:[ju("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-2 cleen-py-0.5 cleen-border cleen-border-gray-200 cleen-rounded-full",children:[fa("div",{className:ha("cleen-bg-gray-100 cleen-rounded-full cleen-size-1.5",a)}),fa("div",{className:ha("cleen-bg-gray-100 cleen-rounded cleen-w-20 cleen-h-3",a)})]}),ju("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[fa("div",{className:ha("cleen-bg-gray-100 cleen-rounded cleen-w-24 cleen-h-8",a)}),fa("div",{className:ha("cleen-bg-gray-100 cleen-rounded cleen-w-12 cleen-h-4",a)})]})]})})});Pc.displayName="SkeletonBadgeCard";import{forwardRef as Ck}from"react";import{jsx as pe}from"react/jsx-runtime";var xk=Ck(function({className:o,style:r,variant:n="default",itemCount:l=3,colors:a,skeleton:c="card",isShowing:s=!1,children:u},p){if(!s)return u;let i={ref:p,variant:n,itemCount:l,colors:a,className:o,style:r};switch(c){case"card2":return pe(vc,{...i});case"card3":return pe(Nu,{...i});case"cardStack":return pe(Eu,{...i});case"contentCard":return pe(zu,{...i});case"infoCard":return pe(Vu,{...i});case"widgetCard":return pe(Pc,{...i});case"image":return pe(Gu,{...i});case"video":return pe(Yu,{...i});case"avatar":return pe(ku,{...i});case"dataGrid":return pe(Ou,{...i});case"text":return pe(Ju,{...i});case"paragraph":return pe(Qu,{...i});case"list":return pe(Xu,{...i});case"form":return pe(_u,{...i});case"banner":return pe(Du,{...i});case"chart":return pe(Au,{...i});case"button":return pe(Tu,{...i});case"badge":return pe(Ru,{...i});case"input":return pe(qu,{...i});case"glowingCard":return pe(Uu,{...i});default:return pe(ia,{...i})}});import{cn as tt}from"@cleen/ui-core";import{forwardRef as Pk,useCallback as eh,useEffect as Sk,useRef as Oy,useState as _y}from"react";import{jsx as nt,jsxs as Sc}from"react/jsx-runtime";var Mk=Pk(function({id:o,required:r,minValue:n=0,maxValue:l=100,step:a=1,defaultValue:c=0,value:s,variant:u="default",onChange:p,onChangeEnd:i,className:f,classNames:h,style:b,styles:I,disabled:v=!1,label:y,labelTooltip:x,labels:C,tooltip:g,infoLabels:P},M){let[B,w]=_y(c??n),k=s!==void 0?s:B,D=Oy(null),[E,N]=_y(!1),R=Oy(!1),F=(k-n)/(l-n)*100,T=Math.min(100,Math.max(0,F)),S=eh($=>{let U=Math.round(($-n)/a)*a+n;return Math.min(l,Math.max(n,U))},[n,l,a]),z=eh(($,U)=>{let V=S($);s===void 0&&w(V),p?.(V),U&&i?.(V)},[S,s,p,i]),L=eh($=>{let U=D.current;if(!U)return n;let V=U.getBoundingClientRect(),J=($-V.left)/V.width;return S(n+J*(l-n))},[n,l,S]),O=$=>{if(v)return;let U;switch($.key){case"ArrowRight":case"ArrowUp":U=k+a;break;case"ArrowLeft":case"ArrowDown":U=k-a;break;case"Home":U=n;break;case"End":U=l;break;default:return}$.preventDefault(),z(U,!0)},_=$=>{v||($.preventDefault(),N(!0))},H=$=>{if(v||R.current){R.current=!1;return}z(L($.clientX),!0)},G=$=>{v||($.preventDefault(),N(!0))};Sk(()=>{if(!E)return;let $=A=>{z(L(A.clientX))},U=A=>{N(!1),R.current=!0,i?.(S(L(A.clientX)))},V=A=>{A.touches.length>0&&z(L(A.touches[0].clientX))},J=A=>{N(!1),R.current=!0,i?.(S(L(A.changedTouches[0].clientX)))};return document.addEventListener("mousemove",$),document.addEventListener("mouseup",U),document.addEventListener("touchmove",V),document.addEventListener("touchend",J),()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",U),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",J)}},[E,S,L,z,i]);let q=$=>nt("span",{className:"cleen-font-medium cleen-text-xs cleen-text-gray-900",children:$});return nt("div",{className:tt("cleen",f),style:b,ref:M,children:Sc("div",{className:tt("cleen-w-full",h?.container),style:I?.container,children:[y&&nt(ee,{htmlFor:o,required:r,tooltip:x,...h?.label,...I?.label,children:y}),Sc("div",{className:tt({"cleen-flex cleen-items-center cleen-gap-2":u==="inline"},h?.slider),style:I?.slider,children:[u==="inline"&&C?.minLabel!==void 0&&q(C?.minLabel),Sc("div",{ref:D,className:tt("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":v,"cleen-flex-1":u==="inline"},h?.track),style:I?.track,"aria-disabled":v,onClick:H,children:[nt("div",{className:tt("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-gray-200 dark:cleen-bg-black cleen-rounded-sm -cleen-translate-y-1/2",v?"cleen-cursor-not-allowed":"cleen-cursor-pointer",h?.path),style:I?.path,children:nt("div",{className:tt("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",h?.filledTrack),style:{width:`${T}%`,...I?.filledTrack}})}),nt(ue,{invertColors:!0,...g,label:C?.tooltip?.(k)??k,className:tt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",g?.className),style:{left:`calc(${T}% - 8px)`,...g?.style},isOpen:E||g?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:nt("div",{id:o,className:tt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-gray-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",v?"cleen-cursor-not-allowed":"cleen-cursor-pointer",h?.thumb),style:I?.thumb,tabIndex:v?-1:0,role:"slider","aria-valuenow":k,"aria-valuemin":n,"aria-valuemax":l,"aria-disabled":v,"aria-label":typeof y=="string"?y:"Slider","aria-labelledby":o,onMouseDown:_,onTouchStart:G,onKeyDown:O})})]}),u==="inline"?C?.maxLabel&&q(C?.maxLabel):(C?.minLabel||C?.maxLabel)&&Sc("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[C?.minLabel&&q(C?.minLabel),C?.maxLabel&&q(C?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&nt(Y,{...P})]})})});import{cn as mo}from"@cleen/ui-core";import{forwardRef as wk,useCallback as oh,useEffect as kk,useRef as Bk,useState as Hy}from"react";import{jsx as uo,jsxs as Mc}from"react/jsx-runtime";var Rk=wk(function({id:o,required:r,minValue:n=0,maxValue:l=100,step:a=1,defaultValue:c=[n,l],value:s,variant:u="default",onChange:p,onChangeEnd:i,className:f,classNames:h,style:b,styles:I,disabled:v=!1,label:y,labelTooltip:x,labels:C,tooltips:g,infoLabels:P},M){let[B,w]=Hy(c??[n,l]),k=s!==void 0?s:B,D=Bk(null),[E,N]=Hy(null),R=oh(U=>{let V=Math.round((U-n)/a)*a+n;return Math.min(l,Math.max(n,V))},[n,l,a]),F=(k[0]-n)/(l-n)*100,T=Math.min(100,Math.max(0,F)),S=(k[1]-n)/(l-n)*100,z=Math.min(100,Math.max(0,S)),L=oh(U=>{let V=[R(Math.min(U[0],U[1])),R(Math.max(U[0],U[1]))];s===void 0&&w(V),p?.(V)},[R,s,p]),O=oh(U=>{let V=D.current;if(!V)return n;let J=V.getBoundingClientRect(),A=(U-J.left)/J.width;return R(n+A*(l-n))},[n,l,R]),_=U=>V=>{if(v)return;let J=U==="min"?k[0]:k[1],A;switch(V.key){case"ArrowRight":case"ArrowUp":A=J+a;break;case"ArrowLeft":case"ArrowDown":A=J-a;break;case"Home":A=n;break;case"End":A=l;break;default:return}V.preventDefault();let Z=U==="min"?[Math.min(A,k[1]),k[1]]:[k[0],Math.max(A,k[0])];L(Z),i?.([R(Z[0]),R(Z[1])])},H=U=>V=>{v||(V.preventDefault(),N(U))},G=U=>{if(v)return;let V=O(U.clientX),J=Math.abs(V-k[0]),A=Math.abs(V-k[1]);J<A?L([V,k[1]]):L([k[0],V])},q=U=>V=>{v||(V.preventDefault(),N(U))};kk(()=>{if(!E)return;let U=Z=>{let ce=O(Z.clientX);L(E==="min"?[ce,k[1]]:[k[0],ce])},V=Z=>{let ce=O(Z.clientX),ge=E==="min"?[ce,k[1]]:[k[0],ce];N(null),i?.(ge)},J=Z=>{if(Z.touches.length>0){let ce=O(Z.touches[0].clientX);L(E==="min"?[ce,k[1]]:[k[0],ce])}},A=Z=>{let ce=O(Z.changedTouches[0].clientX),ge=E==="min"?[ce,k[1]]:[k[0],ce];N(null),i?.(ge)};return document.addEventListener("mousemove",U),document.addEventListener("mouseup",V),document.addEventListener("touchmove",J),document.addEventListener("touchend",A),()=>{document.removeEventListener("mousemove",U),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",J),document.removeEventListener("touchend",A)}},[E,k,O,L,i]);let $=U=>uo("span",{className:"cleen-font-medium cleen-text-xs cleen-text-gray-900",children:U});return uo("div",{className:mo("cleen",f),style:b,ref:M,children:Mc("div",{className:mo("cleen-w-full",h?.container),style:I?.container,children:[y&&uo(ee,{htmlFor:o,required:r,tooltip:x,...h?.label,...I?.label,children:y}),Mc("div",{className:mo({"cleen-flex cleen-items-center cleen-gap-2":u==="inline"},h?.slider),style:I?.slider,children:[u==="inline"&&C?.minLabel!==void 0&&$(C?.minLabel),Mc("div",{ref:D,className:mo("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":v,"cleen-flex-1":u==="inline"},h?.track),style:I?.track,"aria-disabled":v,onClick:G,children:[uo("div",{className:mo("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-gray-200 dark:cleen-bg-black cleen-rounded-sm -cleen-translate-y-1/2",v?"cleen-cursor-not-allowed":"cleen-cursor-pointer"),children:uo("div",{className:mo("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",h?.filledTrack),style:{left:`${T}%`,width:`${z-T}%`,...I?.filledTrack}})}),uo(ue,{invertColors:!0,isOpen:E==="min"||g?.min?.isOpen||g?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...g?.shared,...g?.min,label:C?.tooltip?.(k[0])??k[0]?.toString(),className:mo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",g?.shared?.className,g?.min?.className),style:{left:`calc(${T}% - 8px)`,...g?.shared?.style,...g?.min?.style},children:uo("div",{className:mo("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-gray-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",v?"cleen-cursor-not-allowed":"cleen-cursor-pointer",h?.thumb),style:I?.thumb,tabIndex:v?-1:0,role:"slider","aria-valuenow":k[0],"aria-valuemin":n,"aria-valuemax":k[1],"aria-disabled":v,"aria-label":typeof y=="string"?`${y} minimum value`:"Minimum value",onMouseDown:H("min"),onTouchStart:q("min"),onKeyDown:_("min")})}),uo(ue,{invertColors:!0,isOpen:E==="max"||g?.max?.isOpen||g?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...g?.shared,...g?.max,label:C?.tooltip?.(k[1])??k[1]?.toString(),className:mo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",g?.shared?.className,g?.max?.className),style:{left:`calc(${z}% - 8px)`,...g?.shared?.style,...g?.max?.style},children:uo("div",{className:mo("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-gray-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",v?"cleen-cursor-not-allowed":"cleen-cursor-pointer",h?.thumb),style:I?.thumb,tabIndex:v?-1:0,role:"slider","aria-valuenow":k[1],"aria-valuemin":k[0],"aria-valuemax":l,"aria-disabled":v,"aria-label":typeof y=="string"?`${y} maximum value`:"Maximum value",onMouseDown:H("max"),onTouchStart:q("max"),onKeyDown:_("max")})})]}),u==="inline"?C?.maxLabel&&$(C?.maxLabel):(C?.minLabel||C?.maxLabel)&&Mc("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[C?.minLabel&&$(C?.minLabel),C?.maxLabel&&$(C?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&uo(Y,{...P})]})})});import{cn as Fn}from"@cleen/ui-core";import{forwardRef as Dk,useRef as Lk,useState as Uy}from"react";import{jsx as Vt,jsxs as Nk}from"react/jsx-runtime";var Tk=Dk(function({label:o,infoLabels:r,value:n,onChange:l,amount:a=5,gap:c,size:s,readonly:u,color:p="rgb(var(--cleen-yellow))",className:i,style:f,classNames:h,styles:b,...I},v){let[y,x]=Uy(0),C=n!==void 0,g=C?n:y,[P,M]=Uy(null),B=P!==null?P+1:g,w=!u,k=Lk([]),D=g>0?g-1:0,E=T=>{C||x(T),l?.(T)},N=T=>{T<0||T>=a||(E(T+1),k.current[T]?.focus())},R=(T,S)=>{switch(T.key){case"ArrowRight":case"ArrowUp":T.preventDefault(),N((S+1)%a);break;case"ArrowLeft":case"ArrowDown":T.preventDefault(),N((S-1+a)%a);break;case"Home":T.preventDefault(),N(0);break;case"End":T.preventDefault(),N(a-1);break;default:break}},F=typeof o=="string"?o:"Rating";return Vt("div",{className:Fn("cleen",i),style:f,ref:v,...I,children:Nk("div",{className:Fn("cleen-space-y-2",h?.container),style:b?.container,children:[o&&Vt("span",{className:Fn("cleen-font-medium cleen-text-sm cleen-text-gray-900",h?.label),style:b?.label,children:o}),Vt("div",{role:w?"radiogroup":"img","aria-label":w?F:`${F}: ${g} out of ${a}`,className:Fn("cleen-flex cleen-gap-3",h?.list),style:{...c?{gap:c}:{},...b?.list},children:Array.from({length:a},(T,S)=>{let z=Vt(Mr,{"aria-hidden":"true",className:Fn("cleen-size-5 cleen-text-gray-700 cleen-transition-colors",h?.star),style:{...s?{width:s,height:s}:{},...b?.star,fill:(u?g:B)>S?p:"transparent"}});return w?Vt("button",{type:"button",ref:L=>{k.current[S]=L},role:"radio","aria-checked":g===S+1,"aria-label":`${S+1} ${S+1===1?"star":"stars"}`,tabIndex:S===D?0:-1,onMouseEnter:()=>M(S),onMouseLeave:()=>M(null),onClick:()=>E(S+1),onKeyDown:L=>R(L,S),className:Fn("focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary focus-visible:cleen-rounded"),children:z},S):Vt("span",{className:"cleen-cursor-default",children:z},S)})}),(r?.errorMessage||r?.infoMessage||r?.subtitle)&&Vt(Y,{...r})]})})});import{cn as Fo}from"@cleen/ui-core";import{forwardRef as Fk}from"react";import{jsx as rt,jsxs as Gy}from"react/jsx-runtime";var Vy=Fk(({steps:e,activeStep:o=0,orientation:r="horizontal",color:n="rgb(var(--cleen-primary))",className:l,classNames:a,style:c,styles:s,...u},p)=>{let i=r==="vertical";return rt("div",{ref:p,className:Fo("cleen",l),style:{...c,width:"100%"},...u,children:rt("div",{className:Fo("cleen-flex cleen-w-full",i?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",a?.container),style:{width:"100%",...s?.container},children:e?.map((f,h)=>{let b=h+1<o,I=h+1===o;return Gy("div",{className:Fo("cleen-relative cleen-flex cleen-flex-1",i?"cleen-flex-row cleen-items-start":"cleen-flex-col cleen-items-center cleen-text-center",a?.step),style:s?.step,children:[h<e?.length-1&&rt("div",{className:Fo("cleen-absolute cleen-bg-gray-200 cleen-transition-all cleen-duration-300",i?"cleen-left-3 cleen-top-7 cleen-w-[2px] cleen-h-[calc(100%-4px)]":"cleen-top-3 cleen-left-[calc(50%+14px)] cleen-h-[2px] cleen-w-[calc(100%+4px)]",b&&"cleen-bg-primary",a?.connector),style:{backgroundColor:b?n:void 0,...s?.connector}}),rt("div",{className:Fo("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",b||I?"cleen-border-[2px]":"cleen-border-gray-200",a?.circle),style:{borderColor:I||b?n:void 0,backgroundColor:b?n:"transparent",...s?.circle},children:b?rt("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):rt("span",{className:Fo("cleen-w-2 cleen-h-2 cleen-rounded-full",I?"cleen-bg-white":"cleen-bg-gray-200"),style:{backgroundColor:I?n:void 0}})}),Gy("div",{className:Fo("cleen-flex cleen-flex-col",i?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[f.title&&rt("div",{className:Fo("cleen-font-medium cleen-text-sm",I?"cleen-text-primary":"cleen-text-gray-900",a?.title),style:{color:I?n:void 0,...s?.title},children:f.title}),f.subtitle&&rt("div",{className:Fo("cleen-text-xs cleen-text-gray-600",a?.subtitle),style:{color:I?n:void 0,...s?.subtitle},children:f.subtitle})]})]},h)})})})});Vy.displayName="Stepper";export{Jy as AdvancedProgressBar,u4 as AudioPlayback,b4 as AudioRecorder,zl as Avatar,M4 as AvatarRow,B4 as Breadcrumb,re as Button,F1 as Calendar,U4 as CalendarDropdown,c4 as CanvasButton,le as Card,kS as CardIcon,TS as CardMedia,X4 as Carousel,E1 as Checkbox,t5 as CheckboxGroup,Ee as CleenIcon,FM as CleenNotificationContainer,Cg as Collapsible,i5 as ColorPicker,h5 as CreditCardInput,So as Divider,_1 as Drawer,Cy as DrawerContainer,Ow as DrawerContentTitle,Xr as Dropdown,K5 as Dropzone,n4 as EditableCard,I1 as EditableText,x1 as EditableTextArea,o3 as FileCard,K1 as FileStackedProgressTracker,G3 as FilterDrawer,Fv as FormGroup,j3 as GroupSelector,Gc as Icon48AlertFeatured,Vc as Icon48SuccessFeatured,it as IconAlertCircle,$c as IconAlertOctagon,Xc as IconAlertTriangle,Kc as IconApps,Qc as IconArchive,Jc as IconArrowBarDown,Yc as IconArrowBarLeft,jc as IconArrowBarRight,es as IconArrowBarToDown,os as IconArrowBarToLeft,ts as IconArrowBarToRight,ns as IconArrowBarToUp,rs as IconArrowBarUp,ls as IconArrowDown,cs as IconArrowDownLeft,is as IconArrowDownNarrow,ps as IconArrowDownRight,ms as IconArrowLeft,hs as IconArrowLeftNarrow,gs as IconArrowRight,ys as IconArrowRightNarrow,bs as IconArrowUp,Cs as IconArrowUpLeft,Ps as IconArrowUpNarrow,Ss as IconArrowUpRight,Ms as IconAttachment,ws as IconBarChart,ks as IconBarChartSquare,Bs as IconBell,Rs as IconBold,Es as IconBookOpen,Ds as IconBookmark,Ec as IconBookmarkCheck,Ac as IconBookmarkCheckFill,Ls as IconBookmarkFill,Ts as IconBookmarkMinus,Oc as IconBookmarkPlus,Fs as IconBookmarkX,As as IconBoxLines,Os as IconBoxText,Hs as IconBracketsCheck,Us as IconBracketsEllipses,Gs as IconBrickWall,Vs as IconBriefcase,_c as IconBuilding,Ws as IconCalculator,$n as IconCalendar,$s as IconCertificate,vo as IconCheck,pt as IconCheckCircle,qs as IconCheckCircleBroken,Xs as IconCheckFill,Ks as IconCheckVerified,Zs as IconCheckVerifiedFill,Qs as IconChevronDown,Js as IconChevronDownDouble,Ys as IconChevronDownLeft,js as IconChevronDownLeftDouble,ei as IconChevronDownRight,oi as IconChevronDownRightDouble,yo as IconChevronLeft,ti as IconChevronLeftDouble,Je as IconChevronRight,qn as IconChevronRightDouble,ni as IconChevronSelectorVertical,Io as IconChevronUp,ri as IconChevronUpDouble,ai as IconChevronUpLeft,li as IconChevronUpLeftDouble,ci as IconChevronUpRight,si as IconChevronUpRightDouble,ii as IconClick,pi as IconClock,di as IconClockFastForward,ui as IconClockPlay,hi as IconClockRewind,fi as IconClone,vi as IconCode,yi as IconCodeBrowser,bi as IconCodeCircle,xi as IconColors,Hc as IconColumnEdit,Pi as IconCopy,Si as IconCopy2,wi as IconCopyCheck,ki as IconCreditCard,Bi as IconCube,Ri as IconCubeOutline,Kn as IconCursorBox,Di as IconDataflow,Li as IconDataflow2,Ti as IconDataflow3,Fi as IconDistributeHorizontal,Ei as IconDollar,zi as IconDollarCircle,Oi as IconDot,_i as IconDotFill,Hi as IconDotsGrid,Gi as IconDotsHorizontal,jt as IconDotsVertical,$i as IconDownload,qi as IconEdit,Ki as IconEditable,Zi as IconExpand,Ji as IconExternalLink,ji as IconExternalLink2,ep as IconEye,tp as IconEyeHidden,np as IconEyeHidden2,rp as IconFaceAngry,ap as IconFaceLaugh,lp as IconFaceSmile,mt as IconFile,sp as IconFileCheck,Yn as IconFileCsv,ip as IconFileDownload,jn as IconFileJson,pp as IconFileList,Ge as IconFileMusic,ut as IconFilePdf,or as IconFileSpreadsheet,Co as IconFileText,up as IconFileUpload,nr as IconFileXls,rr as IconFileXlsx,to as IconFileZip,mp as IconFiles,hp as IconFilter,ar as IconFilter2,gp as IconFlag,vp as IconFlag2,yp as IconFlagFill,Ip as IconFocus,bp as IconFolder,Cp as IconFolderExport,xp as IconFolderImport,Pp as IconGraduationCap,Sp as IconGripVertical,Mp as IconHand,wp as IconHandShield,kp as IconHash,Bp as IconHeadsetMic,Rp as IconHeart,Dp as IconHeartFill,Tp as IconHouse,cr as IconHouseLine,we as IconImage,Np as IconImage2,Fp as IconImageCheck,Ep as IconImageOff,Ap as IconImport,zp as IconInbox,_p as IconInfoCircle,Up as IconInfoHexagon,Vp as IconItalic,$p as IconLayersMultiple,qp as IconLayersSingle,Xp as IconLayout,Zp as IconLayout2,Qp as IconLayoutColumns,Jp as IconLayoutCustom,jp as IconLayoutStuffed,ed as IconLayoutTile,od as IconLifeBuoy,nd as IconLightbulb,rd as IconLightning,ad as IconLightningFast,ld as IconLineChart,cd as IconLineChartBar,sd as IconLineChartBreakoutSquare,pd as IconLineChartUp,dd as IconLines,md as IconLinesCheck,ud as IconLinesPlay,fd as IconLink,gd as IconLink2,vd as IconLinkOff,yd as IconListBullet,Id as IconListOrder,Cd as IconLock,xd as IconLockFill,Sd as IconLogIn,wd as IconLogOut,Bd as IconLogOut2,Rd as IconMagicWand,Dd as IconMail,Ld as IconMapPin,Td as IconMaximize,Nd as IconMaximize2,Fd as IconMessageCircle,Ad as IconMessageSquare,zd as IconMessageSquare2,Od as IconMessageXSquare,hr as IconMicrophone,_d as IconMinimize,Hd as IconMinimize2,Ud as IconMinusCircle,Vd as IconMobile,Wd as IconMonitor,$d as IconMonitor2,qd as IconMoon,Xd as IconMoonCircle,Ye as IconMovie,Dr as IconName,Kd as IconNavigationPointer,Zd as IconNotificationBox,tm as IconPCSetup,Qd as IconPackage,Jd as IconPalette,Yd as IconPasscodeLock,ht as IconPause,em as IconPauseCircle,rm as IconPen,am as IconPercentageCircle,lm as IconPerspective,sm as IconPhoneCall,yr as IconPin,ft as IconPlay,pm as IconPlayCircle,dm as IconPlus,Go as IconPlusCircle,hm as IconPrinter,fm as IconPulse,Ir as IconQuestionCircle,vm as IconQuote,ym as IconRadioButton,Im as IconRadioButtonFill,bm as IconReceipt,Cm as IconReceiptCheck,xm as IconRedo,Pm as IconRefresh,Sm as IconRefresh2,Mm as IconRefresh3,wm as IconRepeat,km as IconReplace,Bm as IconReplay,Dm as IconRestore,Tm as IconRocket,Nm as IconRoundChart,Fm as IconRoundChart2,Am as IconRoute,Om as IconSave,_m as IconScanDots,br as IconScissors,gt as IconSearch,Hm as IconSend,Um as IconServer,Gm as IconSettings,Vm as IconSettings2,Wm as IconShare,$m as IconShieldLightning,Xm as IconShieldPlus,Zm as IconShieldRemove,Qm as IconShoppingBag,Jm as IconShoppingCart,Ym as IconShrink,jm as IconShuffle,e0 as IconSkipForward,o0 as IconSlashCircle,t0 as IconSlashOctagon,n0 as IconSocialAndroid,r0 as IconSocialApple,a0 as IconSocialGithub,l0 as IconSocialGlobe,c0 as IconSocialGoogle,i0 as IconSocialInstagram,p0 as IconSocialLinkedin,m0 as IconSocialMastercard,u0 as IconSocialReact,h0 as IconSocialVisa,f0 as IconSocialX,g0 as IconSpeedometer,v0 as IconStairs,Mr as IconStar,y0 as IconStarFill,I0 as IconStarHalf,b0 as IconStars,wr as IconStop,C0 as IconStrikethrough,x0 as IconSun,P0 as IconSwap,S0 as IconSwitchHorizontal,w0 as IconTable,k0 as IconTag,B0 as IconTarget,D0 as IconTarget2,T0 as IconTextFormat,N0 as IconTextFormat2,F0 as IconTextHighlight,E0 as IconThumbsDown,A0 as IconThumbsUp,z0 as IconThumbsUpFill,O0 as IconToggle,_0 as IconTranslate,Ve as IconTrash,H0 as IconTrending,U0 as IconUnderline,G0 as IconUndo,W0 as IconUnlock,It as IconUploadCloud,Br as IconUser,X0 as IconUserCheck,K0 as IconUserDollar,Q0 as IconUserEdit,J0 as IconUserPlus,Y0 as IconUserRight,o1 as IconUserSquare,Uc as IconUserVoice,j0 as IconUsers,t1 as IconUsersUp,n1 as IconVideo,a1 as IconVideoChat,c1 as IconVolume,s1 as IconVolumeDown,i1 as IconVolumeMute,p1 as IconWrench,Be as IconX,d1 as IconXCircle,m1 as IconXCircleFill,u1 as IconXSquare,h1 as IconZoomIn,g1 as IconZoomOut,Y as InfoLabels,de as Input,ee as Label,te as Loader,sM as Lookup,uM as Markdown,Mn as Menu,xM as Modal,XM as Pagination,Iu as PaginationGoToPage,bu as PaginationPageSize,Le as PillBadge,ow as Popover,Sn as ProgressBar,ry as ProgressCircle,iw as RadioBoxGroup,vw as RadioButtonGroup,xw as Rating,Tw as Select,Py as Sidebar,sa as SidebarItem,Kw as Skeleton,ku as SkeletonAvatar,Ru as SkeletonBadge,Du as SkeletonBanner,Tu as SkeletonButton,ia as SkeletonCard,vc as SkeletonCard2,Nu as SkeletonCard3,Eu as SkeletonCardStack,Au as SkeletonChart,zu as SkeletonContentCard,Ou as SkeletonDataGrid,_u as SkeletonForm,Uu as SkeletonGlowingCard,Gu as SkeletonImage,Vu as SkeletonInfoCard,qu as SkeletonInput,Xu as SkeletonList,Qu as SkeletonParagraph,Ju as SkeletonText,Yu as SkeletonVideo,Pc as SkeletonWidgetCard,xk as SkeletonWrapper,Mk as Slider,Rk as SliderRange,q1 as StackedProgressTracker,U1 as StackedProgressTrackerRow,G1 as StackedProgressTrackerStatusFilter,Tk as StarRating,Vy as Stepper,du as Switch,Jr as TRACKER_STATUS_FILTER_ORDER,iu as Tabs,C1 as TextArea,ue as Tooltip,Zr as TrackerItemStatus,Qr as TrackerStatusFilter,v1 as getFileIcon,A1 as parseRgbaString,LM as showNotification};