@cleen/ui 0.1.269 → 0.1.270

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 So,useAnimateNumber as xy}from"@cleen/ui-core";import{forwardRef as Py,useMemo as c1}from"react";import{cn as $a,usePositionClose as vy,ZIndex as Iy}from"@cleen/ui-core";import{useEffect as t1,useRef as bi,useState as o1}from"react";import{createPortal as by}from"react-dom";import{jsx as yi,jsxs as n1}from"react/jsx-runtime";var ye=({bg:e,label:t,color:n,closeOnClick:r=!0,hideOnMouseDown:l=!0,isOpen:a,children:c,hasArrow:i,placement:d="top",offset:p=8,className:s,classNames:g,isDisabled:f,openDelay:b=0,invertColors:I=!1,extraUpdateTriggers:h,allowNonDescendantHover:v=!0,zIndex:C=Iy.TOOLTIP,style:x,styles:y,onClick:P,onMouseEnter:w,onMouseLeave:L,...B})=>{let[M,D]=o1(a??!1),[N,S]=o1(!1),R=bi(null),F=bi(null),T=bi(null),{positionStyles:k,isMounted:_,optimalPosition:E}=vy({triggerRef:F,targetRef:R,position:d,isOpen:M&&!f,offset:p,extraUpdateTriggers:h});t1(()=>{D(a??!1)},[a]);let O=U=>{P?.(U),r&&D(!1)},A=(U,G)=>{if(a!==void 0)return;let W=F.current?.contains(U.target);!v&&!W||(G?(w?.(U),b&&b>0?T.current=setTimeout(()=>{D(!0)},b):D(!0)):(T.current&&(clearTimeout(T.current),T.current=null),D(!1),L?.(U)))};return t1(()=>{let U=()=>{l&&S(!0)},G=()=>{S(!1)};return document.addEventListener("mousedown",U),document.addEventListener("mouseup",G),()=>{document.removeEventListener("mousedown",U),document.removeEventListener("mouseup",G)}},[]),n1("div",{className:$a("cleen",s),style:x,children:[yi("div",{ref:F,className:$a("cleen-relative cleen-max-w-fit",g?.container),style:y?.container,onClick:O,onMouseEnter:U=>A(U,!0),onMouseLeave:U=>A(U,!1),...B,children:c}),t!==void 0&&M&&!f&&!N&&by(yi("div",{className:"cleen",children:n1("div",{ref:R,className:$a("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-primary-foreground":"cleen-bg-surface after:cleen-border-surface cleen-text-primary",{"cleen-opacity-0":!_,"cleen-opacity-100":_},g?.labelContainer),style:{zIndex:C,top:`${k.top}px`,left:`${k.left}px`,...e&&{backgroundColor:e},...n&&{color:n},...y?.labelContainer},children:[t,yi("div",{className:$a(i?["cleen-absolute cleen-border-[6px] cleen-border-surface",{"cleen-border-b-transparent cleen-border-x-transparent cleen-top-full cleen-drop-shadow-[0_1px_0.5px_rgba(var(--cleen-black),0.1)]":E==="top"||E==="top-left"||E==="top-right","cleen-left-[calc(50%-6px)]":E==="top"||E==="bottom","cleen-left-[6px]":E==="top-left"||E==="bottom-left","cleen-right-[6px]":E==="top-right"||E==="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)]":E==="bottom"||E==="bottom-left"||E==="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)]":E==="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)]":E==="right"}]:"cleen-hidden"),style:{}})]})}),document.body)]})};import{cn as lr}from"@cleen/ui-core";var kt=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),Bt=(e,t,n)=>{let r=Number.isFinite(t)?t:0,l=Number.isFinite(n)?n:100;return l===r?0:(e-r)/(l-r)*100};import{cn as Wa}from"@cleen/ui-core";import{jsx as Ci}from"react/jsx-runtime";var qa=({serie:e,minValue:t,maxValue:n,color:r,trackHeight:l,className:a,style:c})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,d=Number.isFinite(i)?i:t,p=kt(Bt(d,t,n)),s=Math.max(2,e?.height??l*1.5),g={left:`${p}%`,top:"50%"};return e.tooltip?Ci(ye,{invertColors:!0,...e.tooltip,className:Wa("cleen-absolute cleen-z-10 -cleen-translate-x-1/2 -cleen-translate-y-1/2",e.tooltip.className),style:{...g,...e.tooltip.style},classNames:{...e.tooltip.classNames,labelContainer:Wa("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:Ci("div",{className:Wa("cleen-rounded-full",a),style:{width:s,height:s,backgroundColor:r,...c}})}):Ci("div",{className:Wa("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",a),style:{width:s,height:s,backgroundColor:r,...g,...c}})};import{jsx as Xa}from"react/jsx-runtime";var r1=({serie:e,minValue:t,maxValue:n,animatedGlobal:r=t,renderAnimated:l,color:a,trackHeight:c,trackRadius:i,className:d,style:p})=>{if(e.type!=="bar")return null;let s=typeof e.start=="number"?e.start:t,g=typeof e.end=="number"?e.end:n,f=kt(Bt(s,t,n)),b=kt(Bt(g,t,n));b<f&&([f,b]=[b,f]);let I=Math.max(0,l?r-f:b-f);if(I<1&&!l||l&&r>=b&&I===0)return Xa(qa,{serie:{...e,type:"clamp",value:f},color:a,trackHeight:c,minValue:t,maxValue:n,className:d,style:p});let h={left:`${f}%`,top:e?.height?(c-e.height)/2:0,width:`${I}%`,height:e?.height??"100%"},v={width:"100%",height:"100%"},C={background:a,borderRadius:e?.radius??i??(e?.height??c)/2};return e.tooltip?Xa(ye,{invertColors:!0,...e.tooltip,className:lr("cleen-absolute",e.tooltip.className),style:{...h,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:lr("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:lr("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:Xa("div",{className:lr("cleen-relative cleen-size-full",d),style:{...C,...v,...p}})}):Xa("div",{className:lr("cleen-absolute cleen-pointer-events-none",d),style:{...C,...h,...p}})};import{cn as yy}from"@cleen/ui-core";import{jsx as Cy}from"react/jsx-runtime";var a1=({serie:e,minValue:t,maxValue:n,className:r,style:l})=>{let a=0;if(e.type==="clamp"){let c=typeof e.value=="number"?e.value:0,i=Number.isFinite(c)?c:t;a=kt(Bt(i,t,n))}else{let c=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:n,d=kt(Bt(c,t,n)),p=kt(Bt(i,t,n));a=(d+p)/2}return Cy("div",{className:yy("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",r),style:{left:`${a}%`,...l},children:e.label})};var l1={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as pn,jsxs as i1}from"react/jsx-runtime";var Sy=Py(function({series:t=[],track:n,renderAnimated:r,renderAnimatedDuration:l=1e3,className:a,classNames:c,style:i,styles:d,minValue:p=0,maxValue:s=100,...g},f){let b=c1(()=>({...l1,...n}),[n]),I=c1(()=>t.reduce((x,y)=>{if(y.type==="bar"){let P=typeof y.end=="number"?y.end:s,w=Math.max(p,Math.min(P,s));if(w>x)return w}return x},0),[t,p,s]),h=xy({targetNumber:I,defaultNumber:p,duration:l,disabled:!r}),{bars:v,clamps:C}=t.reduce((x,y,P)=>{if(y==null||!y.type)return x;let w=y.color??"var(--cleen-primary)";switch(y.type){case"clamp":x.clamps.push(pn(qa,{serie:y,color:w,trackHeight:b.height,minValue:p,maxValue:s,className:So(c?.clamp,y.className),style:{...d?.clamp,...y.style}},`clamp-${P}`));break;case"bar":x.bars.push(pn(r1,{serie:y,color:w,trackHeight:b.height,trackRadius:b.radius,minValue:p,maxValue:s,renderAnimated:r,animatedGlobal:h,className:So(c?.bar,y.className),style:{...d?.bar,...y.style}},`bar-${P}`));break;default:break}return x},{clamps:[],bars:[]});return pn("div",{className:So("cleen",a),style:i,ref:f,...g,children:i1("div",{className:So("cleen-relative cleen-w-full",c?.container),style:d?.container,children:[i1("div",{className:So("cleen-relative cleen-size-full",c?.trackWrapper),style:d?.trackWrapper,children:[pn("div",{className:So("cleen-relative cleen-w-full",c?.track),style:{height:b.height,backgroundColor:b.color,borderRadius:b.radius??b.height/2,...d?.track},children:v}),C]}),t.some(x=>!!x.label)&&pn("div",{"aria-hidden":!0,className:So("cleen-relative cleen-mt-2 cleen-h-5",c?.labels),style:d?.labels,children:t.map((x,y)=>!x||!x.type||!x.label?null:pn(a1,{serie:x,minValue:p,maxValue:s,className:c?.label,style:d?.label},`label-${y}`))})]})})});import{cn as xi}from"@cleen/ui-core";import{jsx as Pi}from"react/jsx-runtime";var wy={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"},My={slow:1.3,normal:.65,fast:.4},le=({isFullscreen:e,size:t="xs",stroke:n,speed:r="normal",className:l,classNames:a,style:c,styles:i,color:d,...p})=>Pi("div",{className:xi("cleen",l),style:c,children:Pi("div",{className:xi("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:i?.container,...p,children:Pi("span",{className:xi("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 t=="string"&&wy[t],a?.loader),style:{...d&&{borderInlineColor:d,borderTopColor:d},...typeof t=="number"&&{width:t,height:t},...typeof n=="number"&&{borderWidth:n},animationDuration:`${typeof r=="number"?r:My[r]}s`,...i?.loader}})})});import{cn as Si,useWidthDynamicResize as ky}from"@cleen/ui-core";import{forwardRef as By,useImperativeHandle as Ny,useRef as Ry}from"react";var s1={primary:"cleen-text-primary-foreground cleen-shadow-sm cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]",secondary:"cleen-border cleen-border-border cleen-text-foreground hover:cleen-bg-surface hover:cleen-border-muted-foreground disabled:cleen-bg-surface disabled:cleen-text-muted-foreground","secondary-blue":"cleen-border cleen-border-blue cleen-text-blue hover:cleen-bg-blue hover:cleen-text-white disabled:cleen-bg-blue disabled:cleen-text-white","secondary-success":"cleen-border cleen-border-success cleen-text-success hover:cleen-bg-success hover:cleen-text-white disabled:cleen-bg-success disabled:cleen-text-white","secondary-error":"cleen-border cleen-border-error cleen-text-error hover:cleen-bg-error hover:cleen-text-white disabled:cleen-bg-error disabled:cleen-text-white",borderless:"cleen-text-foreground hover:cleen-bg-primary-100 hover:cleen-translate-y-0","borderless-blue":"cleen-text-blue-800 hover:cleen-bg-blue-dark-100 hover:cleen-translate-y-0","borderless-success":"cleen-text-success hover:cleen-bg-success-bg hover:cleen-translate-y-0","borderless-error":"cleen-text-error hover:cleen-bg-error-bg hover:cleen-translate-y-0",error:"cleen-text-white cleen-shadow-sm cleen-bg-error hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-error)),black_12%)]",success:"cleen-text-white cleen-shadow-sm cleen-bg-success hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-success)),black_12%)]",warning:"cleen-text-white cleen-shadow-sm cleen-bg-warning hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-warning)),black_12%)]",black:"cleen-text-white cleen-shadow-sm cleen-bg-black hover:cleen-bg-gray-modern-800",purple:"cleen-text-white cleen-shadow-sm cleen-bg-purple hover:cleen-bg-purple-800",indigo:"cleen-text-white cleen-shadow-sm cleen-bg-indigo hover:cleen-bg-indigo-800",yellow:"cleen-text-black cleen-shadow-sm cleen-bg-yellow hover:cleen-bg-yellow-500"},p1={primary:"rgb(var(--cleen-primary-foreground))",borderless:"rgb(var(--cleen-foreground))","borderless-blue":"rgb(var(--cleen-blue))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))",secondary:"rgb(var(--cleen-foreground))","secondary-blue":"rgb(var(--cleen-blue))","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-black))"};import{jsx as d1,jsxs as Ty}from"react/jsx-runtime";var J=By(function({type:t="button",label:n,onClick:r,className:l,classNames:a,style:c,styles:i,disabled:d=!1,leftIcon:p,rightIcon:s,loaderColor:g,isLoading:f=!1,variant:b="primary",fullWidth:I=!1,children:h,...v},C){let x=Ry(null);return Ny(C,()=>x.current),ky({ref:x,skip:I},[f,p,s,I]),d1("div",{className:Si("cleen",l),style:c,children:Ty("button",{type:t,ref:x,className:Si("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-px-4 cleen-py-2 cleen-rounded-lg focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2 cleen-font-semibold cleen-text-sm cleen-text-nowrap cleen-leading-6 cleen-transition-all hover:-cleen-translate-y-[1px] cleen-duration-200 cleen-ease-in-out",s1[b],{"cleen-w-full cleen-flex-1":I,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":d||f},a?.container),style:i?.container,disabled:f||d,onClick:r,...v,children:[f&&d1(le,{size:"xs",color:g||p1[b],className:Si("cleen-mr-1.5 cleen-w-fit",a?.loaderContainer),style:i?.loaderContainer,classNames:{loader:a?.loader},styles:{loader:i?.loader}}),p||null,n||h,s||null]})})});var m1={primary:"cleen-text-primary-foreground cleen-shadow-sm cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]",secondary:"cleen-border-border cleen-text-foreground hover:cleen-bg-surface hover:cleen-border-muted-foreground group-aria-disabled:cleen-bg-surface group-aria-disabled:cleen-text-muted-foreground","secondary-blue":"cleen-border-blue cleen-text-blue hover:cleen-bg-blue hover:cleen-text-white group-aria-disabled:cleen-bg-blue group-aria-disabled:cleen-text-white","secondary-success":"cleen-border-success cleen-text-success hover:cleen-bg-success hover:cleen-text-white group-aria-disabled:cleen-bg-success group-aria-disabled:cleen-text-white","secondary-error":"cleen-border-error cleen-text-error hover:cleen-bg-error hover:cleen-text-white group-aria-disabled:cleen-bg-error group-aria-disabled:cleen-text-white",borderless:"cleen-border-0 cleen-text-foreground hover:cleen-bg-primary-100","borderless-blue":"cleen-border-0 cleen-text-blue-800 hover:cleen-bg-blue-dark-100","borderless-success":"cleen-border-0 cleen-text-success hover:cleen-bg-success-bg","borderless-error":"cleen-border-0 cleen-text-error hover:cleen-bg-error-bg",error:"cleen-text-white cleen-shadow-sm cleen-bg-error hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-error)),black_12%)]",success:"cleen-text-white cleen-shadow-sm cleen-bg-success hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-success)),black_12%)]",warning:"cleen-text-white cleen-shadow-sm cleen-bg-warning hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-warning)),black_12%)]",black:"cleen-text-white cleen-shadow-sm cleen-bg-black hover:cleen-bg-gray-modern-800",purple:"cleen-text-white cleen-shadow-sm cleen-bg-purple hover:cleen-bg-purple-800",indigo:"cleen-text-white cleen-shadow-sm cleen-bg-indigo hover:cleen-bg-indigo-800",yellow:"cleen-text-black cleen-shadow-sm cleen-bg-yellow hover:cleen-bg-yellow-500"},u1={primary:"rgb(var(--cleen-primary-foreground))",borderless:"rgb(var(--cleen-foreground))","borderless-blue":"rgb(var(--cleen-blue))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))",secondary:"rgb(var(--cleen-foreground))","secondary-blue":"rgb(var(--cleen-blue))","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-black))"};import{cn as Qt,ColorHelpers as Vy}from"@cleen/ui-core";function dn(e,t,n){return Math.min(Math.max(e,n),t)}var wi=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},cr=wi;function Ly(e){if(typeof e!="string")throw new cr(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=Uy.test(e)?Fy(e):e;let n=Ay.exec(t);if(n){let c=Array.from(n).slice(1);return[...c.slice(0,3).map(i=>parseInt(ir(i,2),16)),parseInt(ir(c[3]||"f",2),16)/255]}let r=Oy.exec(t);if(r){let c=Array.from(r).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,16)),parseInt(c[3]||"ff",16)/255]}let l=zy.exec(t);if(l){let c=Array.from(l).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,10)),parseFloat(c[3]||"1")]}let a=_y.exec(t);if(a){let[c,i,d,p]=Array.from(a).slice(1).map(parseFloat);if(dn(0,100,i)!==i)throw new cr(e);if(dn(0,100,d)!==d)throw new cr(e);return[...Hy(c,i,d),Number.isNaN(p)?1:p]}throw new cr(e)}function Dy(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}var f1=e=>parseInt(e.replace(/_/g,""),36),Ey="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,t)=>{let n=f1(t.substring(0,3)),r=f1(t.substring(3)).toString(16),l="";for(let a=0;a<6-r.length;a++)l+="0";return e[n]=`${l}${r}`,e},{});function Fy(e){let t=e.toLowerCase().trim(),n=Ey[Dy(t)];if(!n)throw new cr(e);return`#${n}`}var ir=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Ay=new RegExp(`^#${ir("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Oy=new RegExp(`^#${ir("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),zy=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ir(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),_y=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Uy=/^[a-z]+$/i,h1=e=>Math.round(e*255),Hy=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(h1);let l=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),c=a*(1-Math.abs(l%2-1)),i=0,d=0,p=0;l>=0&&l<1?(i=a,d=c):l>=1&&l<2?(i=c,d=a):l>=2&&l<3?(d=a,p=c):l>=3&&l<4?(d=c,p=a):l>=4&&l<5?(i=c,p=a):l>=5&&l<6&&(i=a,p=c);let s=r-a/2,g=i+s,f=d+s,b=p+s;return[g,f,b].map(h1)};function Gy(e,t,n,r){return`rgba(${dn(0,255,e).toFixed()}, ${dn(0,255,t).toFixed()}, ${dn(0,255,n).toFixed()}, ${parseFloat(dn(0,1,r).toFixed(3))})`}function sr(e,t){let[n,r,l,a]=Ly(e);return Gy(n,r,l,a-t)}import{forwardRef as $y,useMemo as Wy}from"react";import{jsx as mn,jsxs as g1}from"react/jsx-runtime";var me=$y(function({header:t,footer:n,color:r,isGlass:l=!1,hoverable:a=!1,p:c,gap:i,radius:d=8,children:p,className:s,classNames:g,style:f,styles:b,...I},h){let{cardColor:v,backgroundColor:C,borderColor:x}=Wy(()=>{let y=Vy.getComputedColor(r);return y?{cardColor:y,backgroundColor:sr(y,.9),borderColor:sr(y,.8)}:{cardColor:y}},[r]);return mn("div",{className:Qt("cleen",s),style:f,ref:h,...I,children:g1("div",{className:Qt("cleen-bg-background cleen-pt-6 cleen-border cleen-border-border cleen-flex cleen-flex-col cleen-gap-6 cleen-flex-grow cleen-transition-all cleen-duration-200",a&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",n?.content?"cleen-pb-3":"cleen-pb-6",g?.container),style:{...v&&{backgroundColor:C,borderColor:x,color:v},...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},...i!==void 0&&{gap:i},borderRadius:d,...b?.container},children:[(t?.content||t?.title)&&g1("div",{className:Qt("cleen-px-6",g?.header?.content),style:{...v&&{color:v},...c!==void 0&&{paddingInline:c},...b?.header?.content},children:[t?.title&&mn("div",{className:Qt("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",g?.header?.title),style:{...v&&{color:v},...b?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&mn("hr",{className:Qt("cleen-text-neutral-200",g?.header?.divider),style:{...v&&{color:x},...b?.header?.divider}}),p&&mn("div",{className:Qt("cleen-px-6",g?.childrenContainer),style:{...c!==void 0&&{paddingInline:c},...b?.childrenContainer},children:p}),n?.content&&n?.hasDivider&&mn("hr",{className:Qt("cleen-text-neutral-200",g?.footer?.divider),style:{...v&&{color:x},...b?.footer?.divider}}),n?.content&&mn("div",{className:Qt("cleen-px-6 -cleen-mt-3 cleen-text-foreground",g?.footer?.content),style:{...v&&{color:v},...c!==void 0&&{paddingInline:c},...b?.footer?.content},children:n.content})]})})});import{jsx as qy}from"react/jsx-runtime";function o({size:e=24,width:t,height:n,strokeWidth:r=1.5,isFilled:l=!1,children:a,...c}){return delete c.color1,delete c.color2,qy("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:n??e,viewBox:"0 0 24 24",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:l?0:r,strokeLinecap:"round",strokeLinejoin:"round",...c,children:a})}import{jsx as v1,jsxs as Xy}from"react/jsx-runtime";var Mi=e=>Xy(o,{...e,children:[v1("path",{d:"M9 10.5l2 2l4 -4"}),v1("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as I1}from"react/jsx-runtime";var ki=e=>I1(o,{isFilled:!0,...e,children:I1("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 Bi,jsxs as Ky}from"react/jsx-runtime";var Ni=e=>Ky(o,{...e,children:[Bi("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),Bi("path",{d:"M16 19h6"}),Bi("path",{d:"M19 16v6"})]});import{jsx as Jt,jsxs as Zy}from"react/jsx-runtime";var Ri=e=>Zy(o,{...e,children:[Jt("path",{d:"M3 21l18 0"}),Jt("path",{d:"M9 8l1 0"}),Jt("path",{d:"M9 12l1 0"}),Jt("path",{d:"M9 16l1 0"}),Jt("path",{d:"M14 8l1 0"}),Jt("path",{d:"M14 12l1 0"}),Jt("path",{d:"M14 16l1 0"}),Jt("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as b1,jsxs as Yy}from"react/jsx-runtime";var Ti=e=>Yy(o,{...e,children:[b1("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"}),b1("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 Ka,jsxs as Qy}from"react/jsx-runtime";var Li=e=>Qy(o,{...e,children:[Ka("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Ka("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Ka("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),Ka("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as pr,jsxs as Jy}from"react/jsx-runtime";var Di=e=>Jy(o,{viewBox:"0 0 48 48",...e,children:[pr("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),pr("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),pr("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),pr("path",{d:"M24 18v8"}),pr("path",{d:"M24 30h.01"})]});import{jsx as Za,jsxs as jy}from"react/jsx-runtime";var Ei=e=>jy(o,{viewBox:"0 0 48 48",...e,children:[Za("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Za("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Za("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Za("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as Fi,jsxs as eC}from"react/jsx-runtime";var wo=e=>eC(o,{...e,children:[Fi("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Fi("path",{d:"M12 8v4"}),Fi("path",{d:"M12 16h.01"})]});import{jsx as y1}from"react/jsx-runtime";var Ai=e=>y1(o,{isFilled:!0,...e,children:y1("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 Oi,jsxs as tC}from"react/jsx-runtime";var zi=e=>tC(o,{...e,children:[Oi("path",{d:"M12 9v4"}),Oi("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"}),Oi("path",{d:"M12 16h.01"})]});import{jsx as dr,jsxs as oC}from"react/jsx-runtime";var _i=e=>oC(o,{...e,children:[dr("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"}),dr("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"}),dr("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"}),dr("path",{d:"M14 7l6 0"}),dr("path",{d:"M17 4l0 6"})]});import{jsx as Ui,jsxs as nC}from"react/jsx-runtime";var Hi=e=>nC(o,{...e,children:[Ui("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"}),Ui("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),Ui("path",{d:"M10 12l4 0"})]});import{jsx as Ya,jsxs as rC}from"react/jsx-runtime";var Gi=e=>rC(o,{...e,children:[Ya("path",{d:"M12 20l0 -10"}),Ya("path",{d:"M12 20l4 -4"}),Ya("path",{d:"M12 20l-4 -4"}),Ya("path",{d:"M4 4l16 0"})]});import{jsx as Qa,jsxs as aC}from"react/jsx-runtime";var Vi=e=>aC(o,{...e,children:[Qa("path",{d:"M4 12l10 0"}),Qa("path",{d:"M4 12l4 4"}),Qa("path",{d:"M4 12l4 -4"}),Qa("path",{d:"M20 4l0 16"})]});import{jsx as Ja,jsxs as lC}from"react/jsx-runtime";var $i=e=>lC(o,{...e,children:[Ja("path",{d:"M20 12l-10 0"}),Ja("path",{d:"M20 12l-4 4"}),Ja("path",{d:"M20 12l-4 -4"}),Ja("path",{d:"M4 4l0 16"})]});import{jsx as ja,jsxs as cC}from"react/jsx-runtime";var Wi=e=>cC(o,{...e,children:[ja("path",{d:"M4 20l16 0"}),ja("path",{d:"M12 14l0 -10"}),ja("path",{d:"M12 14l4 -4"}),ja("path",{d:"M12 14l-4 -4"})]});import{jsx as el,jsxs as iC}from"react/jsx-runtime";var qi=e=>iC(o,{...e,children:[el("path",{d:"M10 12l10 0"}),el("path",{d:"M10 12l4 4"}),el("path",{d:"M10 12l4 -4"}),el("path",{d:"M4 4l0 16"})]});import{jsx as tl,jsxs as sC}from"react/jsx-runtime";var Xi=e=>sC(o,{...e,children:[tl("path",{d:"M14 12l-10 0"}),tl("path",{d:"M14 12l-4 4"}),tl("path",{d:"M14 12l-4 -4"}),tl("path",{d:"M20 4l0 16"})]});import{jsx as ol,jsxs as pC}from"react/jsx-runtime";var Ki=e=>pC(o,{...e,children:[ol("path",{d:"M12 10l0 10"}),ol("path",{d:"M12 10l4 4"}),ol("path",{d:"M12 10l-4 4"}),ol("path",{d:"M4 4l16 0"})]});import{jsx as nl,jsxs as dC}from"react/jsx-runtime";var Zi=e=>dC(o,{...e,children:[nl("path",{d:"M12 4l0 10"}),nl("path",{d:"M12 4l4 4"}),nl("path",{d:"M12 4l-4 4"}),nl("path",{d:"M4 20l16 0"})]});import{jsx as Yi,jsxs as mC}from"react/jsx-runtime";var Qi=e=>mC(o,{...e,children:[Yi("path",{d:"M12 5l0 14"}),Yi("path",{d:"M18 13l-6 6"}),Yi("path",{d:"M6 13l6 6"})]});import{jsx as C1,jsxs as uC}from"react/jsx-runtime";var Ji=e=>uC(o,{...e,children:[C1("path",{d:"M17 7l-10 10"}),C1("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as ji,jsxs as fC}from"react/jsx-runtime";var es=e=>fC(o,{...e,children:[ji("path",{d:"M12 5l0 14"}),ji("path",{d:"M16 15l-4 4"}),ji("path",{d:"M8 15l4 4"})]});import{jsx as x1,jsxs as hC}from"react/jsx-runtime";var ts=e=>hC(o,{...e,children:[x1("path",{d:"M7 7l10 10"}),x1("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as os,jsxs as gC}from"react/jsx-runtime";var ns=e=>gC(o,{...e,children:[os("path",{d:"M5 12l14 0"}),os("path",{d:"M5 12l6 6"}),os("path",{d:"M5 12l6 -6"})]});import{jsx as rs,jsxs as vC}from"react/jsx-runtime";var as=e=>vC(o,{...e,children:[rs("path",{d:"M5 12l14 0"}),rs("path",{d:"M5 12l4 4"}),rs("path",{d:"M5 12l4 -4"})]});import{jsx as ls,jsxs as IC}from"react/jsx-runtime";var cs=e=>IC(o,{...e,children:[ls("path",{d:"M5 12l14 0"}),ls("path",{d:"M13 18l6 -6"}),ls("path",{d:"M13 6l6 6"})]});import{jsx as is,jsxs as bC}from"react/jsx-runtime";var ss=e=>bC(o,{...e,children:[is("path",{d:"M5 12l14 0"}),is("path",{d:"M15 16l4 -4"}),is("path",{d:"M15 8l4 4"})]});import{jsx as ps,jsxs as yC}from"react/jsx-runtime";var ds=e=>yC(o,{...e,children:[ps("path",{d:"M12 5l0 14"}),ps("path",{d:"M18 11l-6 -6"}),ps("path",{d:"M6 11l6 -6"})]});import{jsx as P1,jsxs as CC}from"react/jsx-runtime";var ms=e=>CC(o,{...e,children:[P1("path",{d:"M7 7l10 10"}),P1("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as us,jsxs as xC}from"react/jsx-runtime";var fs=e=>xC(o,{...e,children:[us("path",{d:"M12 5l0 14"}),us("path",{d:"M16 9l-4 -4"}),us("path",{d:"M8 9l4 -4"})]});import{jsx as S1,jsxs as PC}from"react/jsx-runtime";var hs=e=>PC(o,{...e,children:[S1("path",{d:"M17 7l-10 10"}),S1("path",{d:"M8 7l9 0l0 9"})]});import{jsx as w1}from"react/jsx-runtime";var gs=e=>w1(o,{...e,children:w1("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 rl,jsxs as SC}from"react/jsx-runtime";var vs=e=>SC(o,{...e,children:[rl("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"}),rl("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"}),rl("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"}),rl("path",{d:"M4 20h14"})]});import{jsx as mr,jsxs as wC}from"react/jsx-runtime";var Is=e=>wC(o,{...e,children:[mr("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"}),mr("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"}),mr("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"}),mr("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"}),mr("path",{d:"M7 18.5h10"})]});import{jsx as M1,jsxs as MC}from"react/jsx-runtime";var bs=e=>MC(o,{...e,children:[M1("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"}),M1("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as k1,jsxs as kC}from"react/jsx-runtime";var ys=e=>kC(o,{...e,children:[k1("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),k1("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as B1}from"react/jsx-runtime";var Cs=e=>B1(o,{...e,children:B1("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as N1}from"react/jsx-runtime";var xs=e=>N1(o,{isFilled:!0,...e,children:N1("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 R1,jsxs as BC}from"react/jsx-runtime";var Ps=e=>BC(o,{...e,children:[R1("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),R1("path",{d:"M16 19h6"})]});import{jsx as Ss,jsxs as NC}from"react/jsx-runtime";var ws=e=>NC(o,{...e,children:[Ss("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),Ss("path",{d:"M20.5 21.5l-5 -5"}),Ss("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as ur,jsxs as RC}from"react/jsx-runtime";var Ms=e=>RC(o,{...e,children:[ur("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),ur("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),ur("path",{d:"M3 6l0 13"}),ur("path",{d:"M12 6l0 13"}),ur("path",{d:"M21 6l0 13"})]});import{jsx as al,jsxs as TC}from"react/jsx-runtime";var ks=e=>TC(o,{...e,children:[al("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"}),al("path",{d:"M9 13h-2"}),al("path",{d:"M13 10h-6"}),al("path",{d:"M11 7h-4"})]});import{jsx as Bs,jsxs as LC}from"react/jsx-runtime";var Ns=e=>LC(o,{...e,children:[Bs("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"}),Bs("path",{d:"M10 8h4"}),Bs("path",{d:"M12 8v8"})]});import{jsx as Rs,jsxs as DC}from"react/jsx-runtime";var Ts=e=>DC(o,{...e,children:[Rs("path",{d:"M9 12l2 2l4 -4"}),Rs("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Rs("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as fr,jsxs as EC}from"react/jsx-runtime";var Ls=e=>EC(o,{...e,children:[fr("path",{d:"M15 12h.01"}),fr("path",{d:"M12 12h.01"}),fr("path",{d:"M9 12h.01"}),fr("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),fr("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Nt,jsxs as FC}from"react/jsx-runtime";var Ds=e=>FC(o,{...e,children:[Nt("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"}),Nt("path",{d:"M4 8h16"}),Nt("path",{d:"M20 12h-16"}),Nt("path",{d:"M4 16h16"}),Nt("path",{d:"M9 4v4"}),Nt("path",{d:"M14 8v4"}),Nt("path",{d:"M8 12v4"}),Nt("path",{d:"M16 12v4"}),Nt("path",{d:"M11 16v4"})]});import{jsx as ll,jsxs as AC}from"react/jsx-runtime";var Es=e=>AC(o,{...e,children:[ll("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"}),ll("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),ll("path",{d:"M12 12l0 .01"}),ll("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as jt,jsxs as OC}from"react/jsx-runtime";var Fs=e=>OC(o,{...e,children:[jt("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"}),jt("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"}),jt("path",{d:"M8 14l0 .01"}),jt("path",{d:"M12 14l0 .01"}),jt("path",{d:"M16 14l0 .01"}),jt("path",{d:"M8 17l0 .01"}),jt("path",{d:"M12 17l0 .01"}),jt("path",{d:"M16 17l0 .01"})]});import{jsx as un,jsxs as zC}from"react/jsx-runtime";var hr=e=>zC(o,{...e,children:[un("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"}),un("path",{d:"M16 3v4"}),un("path",{d:"M8 3v4"}),un("path",{d:"M4 11h16"}),un("path",{d:"M11 15h1"}),un("path",{d:"M12 15v3"})]});import{jsx as fn,jsxs as _C}from"react/jsx-runtime";var As=e=>_C(o,{...e,children:[fn("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),fn("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),fn("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"}),fn("path",{d:"M6 9l12 0"}),fn("path",{d:"M6 12l3 0"}),fn("path",{d:"M6 15l2 0"})]});import{jsx as T1}from"react/jsx-runtime";var Rt=e=>T1(o,{...e,children:T1("path",{d:"M5 12l5 5l10 -10"})});import{jsx as L1,jsxs as UC}from"react/jsx-runtime";var Mo=e=>UC(o,{...e,children:[L1("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),L1("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as D1,jsxs as HC}from"react/jsx-runtime";var Os=e=>HC(o,{...e,children:[D1("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),D1("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as E1}from"react/jsx-runtime";var zs=e=>E1(o,{isFilled:!0,...e,children:E1("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 F1,jsxs as GC}from"react/jsx-runtime";var _s=e=>GC(o,{...e,children:[F1("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"}),F1("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as A1}from"react/jsx-runtime";var Us=e=>A1(o,{isFilled:!0,...e,children:A1("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 O1}from"react/jsx-runtime";var gr=e=>O1(o,{...e,children:O1("path",{d:"M6 9l6 6l6 -6"})});import{jsx as z1,jsxs as VC}from"react/jsx-runtime";var Hs=e=>VC(o,{...e,children:[z1("path",{d:"M7 7l5 5l5 -5"}),z1("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as _1}from"react/jsx-runtime";var Gs=e=>_1(o,{...e,children:_1("path",{d:"M8 8v8h8"})});import{jsx as U1,jsxs as $C}from"react/jsx-runtime";var Vs=e=>$C(o,{...e,children:[U1("path",{d:"M11 5v8h8"}),U1("path",{d:"M7 9v8h8"})]});import{jsx as H1}from"react/jsx-runtime";var $s=e=>H1(o,{...e,children:H1("path",{d:"M16 8v8h-8"})});import{jsx as G1,jsxs as WC}from"react/jsx-runtime";var Ws=e=>WC(o,{...e,children:[G1("path",{d:"M13 5v8h-8"}),G1("path",{d:"M17 9v8h-8"})]});import{jsx as V1}from"react/jsx-runtime";var Tt=e=>V1(o,{...e,children:V1("path",{d:"M15 6l-6 6l6 6"})});import{jsx as $1,jsxs as qC}from"react/jsx-runtime";var qs=e=>qC(o,{...e,children:[$1("path",{d:"M11 7l-5 5l5 5"}),$1("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as W1}from"react/jsx-runtime";var rt=e=>W1(o,{...e,children:W1("path",{d:"M9 6l6 6l-6 6"})});import{jsx as q1,jsxs as XC}from"react/jsx-runtime";var vr=e=>XC(o,{...e,children:[q1("path",{d:"M7 7l5 5l-5 5"}),q1("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as X1,jsxs as KC}from"react/jsx-runtime";var Xs=e=>KC(o,{...e,children:[X1("path",{d:"M8 9l4 -4l4 4"}),X1("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as K1}from"react/jsx-runtime";var Lt=e=>K1(o,{...e,children:K1("path",{d:"M6 15l6 -6l6 6"})});import{jsx as Z1,jsxs as ZC}from"react/jsx-runtime";var Ks=e=>ZC(o,{...e,children:[Z1("path",{d:"M7 11l5 -5l5 5"}),Z1("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as Y1}from"react/jsx-runtime";var Zs=e=>Y1(o,{...e,children:Y1("path",{d:"M8 16v-8h8"})});import{jsx as Q1,jsxs as YC}from"react/jsx-runtime";var Ys=e=>YC(o,{...e,children:[Q1("path",{d:"M7 15v-8h8"}),Q1("path",{d:"M11 19v-8h8"})]});import{jsx as J1}from"react/jsx-runtime";var Qs=e=>J1(o,{...e,children:J1("path",{d:"M8 8h8v8"})});import{jsx as j1,jsxs as QC}from"react/jsx-runtime";var Js=e=>QC(o,{...e,children:[j1("path",{d:"M9 7h8v8"}),j1("path",{d:"M5 11h8v8"})]});import{jsx as hn,jsxs as JC}from"react/jsx-runtime";var js=e=>JC(o,{...e,children:[hn("path",{d:"M3 12l3 0"}),hn("path",{d:"M12 3l0 3"}),hn("path",{d:"M7.8 7.8l-2.2 -2.2"}),hn("path",{d:"M16.2 7.8l2.2 -2.2"}),hn("path",{d:"M7.8 16.2l-2.2 2.2"}),hn("path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9"})]});import{jsx as e2,jsxs as jC}from"react/jsx-runtime";var ep=e=>jC(o,{...e,children:[e2("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),e2("path",{d:"M12 7v5l3 3"})]});import{jsx as cl,jsxs as ex}from"react/jsx-runtime";var tp=e=>ex(o,{...e,children:[cl("path",{d:"M12 7v5l2 2"}),cl("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),cl("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),cl("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as op,jsxs as tx}from"react/jsx-runtime";var np=e=>tx(o,{...e,children:[op("path",{d:"M12 7v5l2 2"}),op("path",{d:"M17 22l5 -3l-5 -3z"}),op("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as t2,jsxs as ox}from"react/jsx-runtime";var rp=e=>ox(o,{...e,children:[t2("path",{d:"M12 8l0 4l2 2"}),t2("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as Ir,jsxs as nx}from"react/jsx-runtime";var ap=e=>nx(o,{...e,children:[Ir("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Ir("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"}),Ir("path",{d:"M11 14h6"}),Ir("path",{d:"M14 11v6"}),Ir("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 lp,jsxs as rx}from"react/jsx-runtime";var cp=e=>rx(o,{...e,children:[lp("path",{d:"M7 8l-4 4l4 4"}),lp("path",{d:"M17 8l4 4l-4 4"}),lp("path",{d:"M14 4l-4 16"})]});import{jsx as gn,jsxs as ax}from"react/jsx-runtime";var ip=e=>ax(o,{...e,children:[gn("path",{d:"M4 8h16"}),gn("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"}),gn("path",{d:"M8 4v4"}),gn("path",{d:"M9 12l-2 2l2 2"}),gn("path",{d:"M15 12l2 2l-2 2"}),gn("path",{d:"M13 11l-2 6"})]});import{jsx as sp,jsxs as lx}from"react/jsx-runtime";var pp=e=>lx(o,{...e,children:[sp("path",{d:"M10 14l-2 -2l2 -2"}),sp("path",{d:"M14 10l2 2l-2 2"}),sp("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as dp,jsxs as cx}from"react/jsx-runtime";var mp=e=>cx(o,{...e,children:[dp("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),dp("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),dp("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as o2,jsxs as ix}from"react/jsx-runtime";var up=e=>ix(o,{...e,children:[o2("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"}),o2("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 n2,jsxs as sx}from"react/jsx-runtime";var fp=e=>sx(o,{...e,children:[n2("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"}),n2("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 hp,jsxs as px}from"react/jsx-runtime";var gp=e=>px(o,{...e,children:[hp("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"}),hp("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"}),hp("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as il,jsxs as dx}from"react/jsx-runtime";var vp=e=>dx(o,{...e,children:[il("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"}),il("path",{d:"M3 10l18 0"}),il("path",{d:"M7 15l.01 0"}),il("path",{d:"M11 15l2 0"})]});import{jsx as sl,jsxs as mx}from"react/jsx-runtime";var Ip=e=>mx(o,{...e,children:[sl("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"}),sl("path",{d:"M12 22v-10"}),sl("path",{d:"M12 12l8.73 -5.04"}),sl("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as qe,jsxs as ux}from"react/jsx-runtime";var bp=e=>ux(o,{...e,children:[qe("path",{d:"M6 17.6l-2 -1.1v-2.5"}),qe("path",{d:"M4 10v-2.5l2 -1.1"}),qe("path",{d:"M10 4.1l2 -1.1l2 1.1"}),qe("path",{d:"M18 6.4l2 1.1v2.5"}),qe("path",{d:"M20 14v2.5l-2 1.12"}),qe("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),qe("path",{d:"M12 12l2 -1.1"}),qe("path",{d:"M18 8.6l2 -1.1"}),qe("path",{d:"M12 12l0 2.5"}),qe("path",{d:"M12 18.5l0 2.5"}),qe("path",{d:"M12 12l-2 -1.12"}),qe("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as r2,jsxs as fx}from"react/jsx-runtime";var br=e=>fx(o,{...e,children:[r2("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"}),r2("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 ko,jsxs as hx}from"react/jsx-runtime";var yp=e=>hx(o,{...e,children:[ko("path",{d:"M5 2h5v4h-5z"}),ko("path",{d:"M15 10h5v4h-5z"}),ko("path",{d:"M5 18h5v4h-5z"}),ko("path",{d:"M5 10h5v4h-5z"}),ko("path",{d:"M10 12h5"}),ko("path",{d:"M7.5 6v4"}),ko("path",{d:"M7.5 14v4"})]});import{jsx as Xe,jsxs as gx}from"react/jsx-runtime";var Cp=e=>gx(o,{...e,children:[Xe("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xe("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xe("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xe("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xe("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xe("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xe("path",{d:"M5 17l2 -3"}),Xe("path",{d:"M9 10l2 -3"}),Xe("path",{d:"M13 7l2 3"}),Xe("path",{d:"M17 14l2 3"}),Xe("path",{d:"M15 14l-2 3"}),Xe("path",{d:"M9 14l2 3"})]});import{jsx as yr,jsxs as vx}from"react/jsx-runtime";var xp=e=>vx(o,{...e,children:[yr("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"}),yr("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"}),yr("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"}),yr("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),yr("path",{d:"M12 9l0 3"})]});import{jsx as Pp,jsxs as Ix}from"react/jsx-runtime";var Sp=e=>Ix(o,{...e,children:[Pp("path",{d:"M4 4l16 0"}),Pp("path",{d:"M4 20l16 0"}),Pp("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 a2,jsxs as bx}from"react/jsx-runtime";var wp=e=>bx(o,{...e,children:[a2("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"}),a2("path",{d:"M12 3v3m0 12v3"})]});import{jsx as Mp,jsxs as yx}from"react/jsx-runtime";var kp=e=>yx(o,{...e,children:[Mp("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Mp("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"}),Mp("path",{d:"M12 7v10"})]});import{jsx as l2}from"react/jsx-runtime";var Bp=e=>l2(o,{...e,children:l2("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as c2}from"react/jsx-runtime";var Np=e=>c2(o,{isFilled:!0,...e,children:c2("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 Dt,jsxs as Cx}from"react/jsx-runtime";var Rp=e=>Cx(o,{...e,children:[Dt("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dt("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dt("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dt("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dt("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dt("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dt("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dt("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dt("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Tp,jsxs as xx}from"react/jsx-runtime";var Lp=e=>xx(o,{...e,children:[Tp("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Tp("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Tp("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Dp,jsxs as Px}from"react/jsx-runtime";var vn=e=>Px(o,{...e,children:[Dp("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dp("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dp("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ep,jsxs as Sx}from"react/jsx-runtime";var Fp=e=>Sx(o,{...e,children:[Ep("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),Ep("path",{d:"M7 11l5 5l5 -5"}),Ep("path",{d:"M12 4l0 12"})]});import{jsx as i2,jsxs as wx}from"react/jsx-runtime";var Ap=e=>wx(o,{...e,children:[i2("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),i2("path",{d:"M13.5 6.5l4 4"})]});import{jsx as Op,jsxs as Mx}from"react/jsx-runtime";var zp=e=>Mx(o,{...e,children:[Op("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),Op("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),Op("path",{d:"M16 5l3 3"})]});import{jsx as eo,jsxs as kx}from"react/jsx-runtime";var _p=e=>kx(o,{...e,children:[eo("path",{d:"M16 4l4 0l0 4"}),eo("path",{d:"M14 10l6 -6"}),eo("path",{d:"M8 20l-4 0l0 -4"}),eo("path",{d:"M4 20l6 -6"}),eo("path",{d:"M16 20l4 0l0 -4"}),eo("path",{d:"M14 14l6 6"}),eo("path",{d:"M8 4l-4 0l0 4"}),eo("path",{d:"M4 4l6 6"})]});import{jsx as Up,jsxs as Bx}from"react/jsx-runtime";var Hp=e=>Bx(o,{...e,children:[Up("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),Up("path",{d:"M11 13l9 -9"}),Up("path",{d:"M15 4h5v5"})]});import{jsx as Gp,jsxs as Nx}from"react/jsx-runtime";var Vp=e=>Nx(o,{...e,children:[Gp("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"}),Gp("path",{d:"M15 9l-6 6"}),Gp("path",{d:"M10 9l5 0l0 5"})]});import{jsx as s2,jsxs as Rx}from"react/jsx-runtime";var $p=e=>Rx(o,{...e,children:[s2("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),s2("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 Wp,jsxs as Tx}from"react/jsx-runtime";var qp=e=>Tx(o,{...e,children:[Wp("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),Wp("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"}),Wp("path",{d:"M3 3l18 18"})]});import{jsx as Cr,jsxs as Lx}from"react/jsx-runtime";var Xp=e=>Lx(o,{...e,children:[Cr("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),Cr("path",{d:"M3 15l2.5 -3.8"}),Cr("path",{d:"M21 14.976l-2.492 -3.776"}),Cr("path",{d:"M9 17l.5 -4"}),Cr("path",{d:"M15 17l-.5 -4"})]});import{jsx as pl,jsxs as Dx}from"react/jsx-runtime";var Kp=e=>Dx(o,{...e,children:[pl("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),pl("path",{d:"M8 9l2 1"}),pl("path",{d:"M16 9l-2 1"}),pl("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as In,jsxs as Ex}from"react/jsx-runtime";var Zp=e=>Ex(o,{...e,children:[In("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),In("path",{d:"M7 8.5l3 3"}),In("path",{d:"M7 11.5l3 -3"}),In("path",{d:"M14 8.5l3 3"}),In("path",{d:"M14 11.5l3 -3"}),In("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as dl,jsxs as Fx}from"react/jsx-runtime";var Yp=e=>Fx(o,{...e,children:[dl("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),dl("path",{d:"M9 10l.01 0"}),dl("path",{d:"M15 10l.01 0"}),dl("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as p2,jsxs as Ax}from"react/jsx-runtime";var Bo=e=>Ax(o,{...e,children:[p2("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),p2("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 Qp,jsxs as Ox}from"react/jsx-runtime";var Jp=e=>Ox(o,{...e,children:[Qp("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Qp("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"}),Qp("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as xr,jsxs as zx}from"react/jsx-runtime";var Pr=e=>zx(o,{...e,children:[xr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),xr("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),xr("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),xr("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"}),xr("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as ml,jsxs as _x}from"react/jsx-runtime";var jp=e=>_x(o,{...e,children:[ml("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ml("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"}),ml("path",{d:"M12 17v-6"}),ml("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as bn,jsxs as Ux}from"react/jsx-runtime";var Sr=e=>Ux(o,{...e,children:[bn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),bn("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),bn("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),bn("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"}),bn("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"}),bn("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as ul,jsxs as Hx}from"react/jsx-runtime";var ed=e=>Hx(o,{...e,children:[ul("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ul("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"}),ul("path",{d:"M9 17h6"}),ul("path",{d:"M9 13h6"})]});import{jsx as fl,jsxs as Gx}from"react/jsx-runtime";var Ke=e=>Gx(o,{...e,children:[fl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),fl("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"}),fl("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fl("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as yn,jsxs as Vx}from"react/jsx-runtime";var No=e=>Vx(o,{...e,children:[yn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),yn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),yn("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),yn("path",{d:"M17 18h2"}),yn("path",{d:"M20 15h-3v6"}),yn("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as td,jsxs as $x}from"react/jsx-runtime";var od=e=>$x(o,{...e,children:[td("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),td("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"}),td("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 wr,jsxs as Wx}from"react/jsx-runtime";var Mr=e=>Wx(o,{...e,children:[wr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),wr("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"}),wr("path",{d:"M8 11h8v7h-8z"}),wr("path",{d:"M8 15h8"}),wr("path",{d:"M11 11v7"})]});import{jsx as kr,jsxs as qx}from"react/jsx-runtime";var Et=e=>qx(o,{...e,children:[kr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),kr("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"}),kr("path",{d:"M9 9l1 0"}),kr("path",{d:"M9 13l6 0"}),kr("path",{d:"M9 17l6 0"})]});import{jsx as hl,jsxs as Xx}from"react/jsx-runtime";var nd=e=>Xx(o,{...e,children:[hl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),hl("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"}),hl("path",{d:"M12 11v6"}),hl("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as Cn,jsxs as Kx}from"react/jsx-runtime";var Br=e=>Kx(o,{...e,children:[Cn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Cn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Cn("path",{d:"M4 15l4 6"}),Cn("path",{d:"M4 21l4 -6"}),Cn("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"}),Cn("path",{d:"M11 15v6h3"})]});import{jsx as to,jsxs as Zx}from"react/jsx-runtime";var Nr=e=>Zx(o,{...e,children:[to("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),to("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),to("path",{d:"M4 16l3 5"}),to("path",{d:"M4 21l3 -5"}),to("path",{d:"M8.5 16v5h2"}),to("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"}),to("path",{d:"M16.5 16l3 5"}),to("path",{d:"M16.5 21l3 -5"})]});import{jsx as oo,jsxs as Yx}from"react/jsx-runtime";var mt=e=>Yx(o,{...e,children:[oo("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"}),oo("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"}),oo("path",{d:"M11 5l-1 0"}),oo("path",{d:"M13 7l-1 0"}),oo("path",{d:"M11 9l-1 0"}),oo("path",{d:"M13 11l-1 0"}),oo("path",{d:"M11 13l-1 0"}),oo("path",{d:"M13 15l-1 0"})]});import{jsx as d2}from"react/jsx-runtime";var rd=e=>d2(o,{...e,children:d2("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 ad,jsxs as Qx}from"react/jsx-runtime";var Rr=e=>Qx(o,{...e,children:[ad("path",{d:"M4 6h16"}),ad("path",{d:"M6 12h12"}),ad("path",{d:"M9 18h6"})]});import{jsx as m2,jsxs as Jx}from"react/jsx-runtime";var ld=e=>Jx(o,{...e,children:[m2("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"}),m2("path",{d:"M5 21v-7"})]});import{jsx as u2}from"react/jsx-runtime";var cd=e=>u2(o,{...e,children:u2("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as f2}from"react/jsx-runtime";var id=e=>f2(o,{isFilled:!0,...e,children:f2("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 Tr,jsxs as jx}from"react/jsx-runtime";var sd=e=>jx(o,{...e,children:[Tr("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Tr("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Tr("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Tr("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Tr("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as h2}from"react/jsx-runtime";var pd=e=>h2(o,{...e,children:h2("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 gl,jsxs as eP}from"react/jsx-runtime";var dd=e=>eP(o,{...e,children:[gl("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"}),gl("path",{d:"M1 12.5l7 0"}),gl("path",{d:"M1 12.5l2 2"}),gl("path",{d:"M1 12.5l2 -2"})]});import{jsx as vl,jsxs as tP}from"react/jsx-runtime";var md=e=>tP(o,{...e,children:[vl("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"}),vl("path",{d:"M2 13l7 0"}),vl("path",{d:"M9 13l-2 2"}),vl("path",{d:"M9 13l-2 -2"})]});import{jsx as g2,jsxs as oP}from"react/jsx-runtime";var ud=e=>oP(o,{...e,children:[g2("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),g2("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as xn,jsxs as nP}from"react/jsx-runtime";var fd=e=>nP(o,{...e,children:[xn("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),xn("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),xn("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),xn("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),xn("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),xn("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Il,jsxs as rP}from"react/jsx-runtime";var hd=e=>rP(o,{...e,children:[Il("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Il("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Il("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Il("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 Pn,jsxs as aP}from"react/jsx-runtime";var gd=e=>aP(o,{...e,children:[Pn("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Pn("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Pn("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Pn("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),Pn("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"}),Pn("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 bl,jsxs as lP}from"react/jsx-runtime";var vd=e=>lP(o,{...e,children:[bl("path",{d:"M5 9l14 0"}),bl("path",{d:"M5 15l14 0"}),bl("path",{d:"M11 4l-4 16"}),bl("path",{d:"M17 4l-4 16"})]});import{jsx as yl,jsxs as cP}from"react/jsx-runtime";var Id=e=>cP(o,{...e,children:[yl("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),yl("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),yl("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"}),yl("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 v2}from"react/jsx-runtime";var bd=e=>v2(o,{...e,children:v2("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 I2}from"react/jsx-runtime";var yd=e=>I2(o,{isFilled:!0,...e,children:I2("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 Cd,jsxs as iP}from"react/jsx-runtime";var xd=e=>iP(o,{...e,children:[Cd("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),Cd("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),Cd("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as b2,jsxs as sP}from"react/jsx-runtime";var Lr=e=>sP(o,{...e,children:[b2("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"}),b2("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Cl,jsxs as pP}from"react/jsx-runtime";var Re=e=>pP(o,{...e,children:[Cl("path",{d:"M15 8h.01"}),Cl("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"}),Cl("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Cl("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as Dr,jsxs as dP}from"react/jsx-runtime";var Pd=e=>dP(o,{...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 16l16 0"}),Dr("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),Dr("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),Dr("path",{d:"M14 7l.01 0"})]});import{jsx as Er,jsxs as mP}from"react/jsx-runtime";var Sd=e=>mP(o,{...e,children:[Er("path",{d:"M15 8h.01"}),Er("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"}),Er("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),Er("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),Er("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Fr,jsxs as uP}from"react/jsx-runtime";var wd=e=>uP(o,{...e,children:[Fr("path",{d:"M15 8h.01"}),Fr("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"}),Fr("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Fr("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),Fr("path",{d:"M3 3l18 18"})]});import{jsx as y2,jsxs as fP}from"react/jsx-runtime";var Md=e=>fP(o,{...e,children:[y2("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),y2("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 C2,jsxs as hP}from"react/jsx-runtime";var kd=e=>hP(o,{...e,children:[C2("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"}),C2("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as Bd,jsxs as gP}from"react/jsx-runtime";var Nd=e=>gP(o,{...e,children:[Bd("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Bd("path",{d:"M12 9h.01"}),Bd("path",{d:"M11 12h1v4h1"})]});import{jsx as Rd,jsxs as vP}from"react/jsx-runtime";var Td=e=>vP(o,{...e,children:[Rd("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"}),Rd("path",{d:"M12 9h.01"}),Rd("path",{d:"M11 12h1v4h1"})]});import{jsx as Ld,jsxs as IP}from"react/jsx-runtime";var Dd=e=>IP(o,{...e,children:[Ld("path",{d:"M11 5l6 0"}),Ld("path",{d:"M7 19l6 0"}),Ld("path",{d:"M14 5l-4 14"})]});import{jsx as Ed,jsxs as bP}from"react/jsx-runtime";var Fd=e=>bP(o,{...e,children:[Ed("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),Ed("path",{d:"M4 12l8 4l8 -4"}),Ed("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as x2,jsxs as yP}from"react/jsx-runtime";var Ad=e=>yP(o,{...e,children:[x2("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),x2("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as P2,jsxs as CP}from"react/jsx-runtime";var Od=e=>CP(o,{...e,children:[P2("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"}),P2("path",{d:"M9 4l0 16"})]});import{jsx as zd,jsxs as xP}from"react/jsx-runtime";var _d=e=>xP(o,{...e,children:[zd("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"}),zd("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"}),zd("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 xl,jsxs as PP}from"react/jsx-runtime";var Ud=e=>PP(o,{...e,children:[xl("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"}),xl("path",{d:"M4 9h8"}),xl("path",{d:"M12 15h8"}),xl("path",{d:"M12 4v16"})]});import{jsx as Ar,jsxs as SP}from"react/jsx-runtime";var Hd=e=>SP(o,{...e,children:[Ar("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"}),Ar("path",{d:"M4 12h8"}),Ar("path",{d:"M12 15h8"}),Ar("path",{d:"M12 9h8"}),Ar("path",{d:"M12 4v16"})]});import{jsx as Gd,jsxs as wP}from"react/jsx-runtime";var Vd=e=>wP(o,{...e,children:[Gd("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"}),Gd("path",{d:"M10 4l4 16"}),Gd("path",{d:"M12 12l-8 2"})]});import{jsx as Pl,jsxs as MP}from"react/jsx-runtime";var $d=e=>MP(o,{...e,children:[Pl("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"}),Pl("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"}),Pl("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"}),Pl("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 Sn,jsxs as kP}from"react/jsx-runtime";var Wd=e=>kP(o,{...e,children:[Sn("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Sn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Sn("path",{d:"M15 15l3.35 3.35"}),Sn("path",{d:"M9 15l-3.35 3.35"}),Sn("path",{d:"M5.65 5.65l3.35 3.35"}),Sn("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as qd,jsxs as BP}from"react/jsx-runtime";var Xd=e=>BP(o,{...e,children:[qd("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),qd("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"}),qd("path",{d:"M9.7 17l4.6 0"})]});import{jsx as S2}from"react/jsx-runtime";var Kd=e=>S2(o,{...e,children:S2("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as w2,jsxs as NP}from"react/jsx-runtime";var Zd=e=>NP(o,{...e,children:[w2("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),w2("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as M2,jsxs as RP}from"react/jsx-runtime";var Yd=e=>RP(o,{...e,children:[M2("path",{d:"M4 19l16 0"}),M2("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as wn,jsxs as TP}from"react/jsx-runtime";var Qd=e=>TP(o,{...e,children:[wn("path",{d:"M3 3v18h18"}),wn("path",{d:"M20 18v3"}),wn("path",{d:"M16 16v5"}),wn("path",{d:"M12 13v8"}),wn("path",{d:"M8 16v5"}),wn("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as Mn,jsxs as LP}from"react/jsx-runtime";var Jd=e=>LP(o,{...e,children:[Mn("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"}),Mn("path",{d:"M3 13c0 0, 8 0, 12 -4"}),Mn("path",{d:"M12 8h4v4"}),Mn("path",{d:"M15 2v1.44"}),Mn("path",{d:"M18.75 4.75l1.2 -1.2"}),Mn("path",{d:"M20 9h1.44"})]});import{jsx as jd,jsxs as DP}from"react/jsx-runtime";var em=e=>DP(o,{...e,children:[jd("path",{d:"M4 19l16 0"}),jd("path",{d:"M4 16l6 -6l4 4l5 -5"}),jd("path",{d:"M15 8h5v5"})]});import{jsx as k2,jsxs as EP}from"react/jsx-runtime";var tm=e=>EP(o,{...e,children:[k2("path",{d:"M5 10h14"}),k2("path",{d:"M5 14h14"})]});import{jsx as kn,jsxs as FP}from"react/jsx-runtime";var om=e=>FP(o,{...e,children:[kn("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),kn("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),kn("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),kn("path",{d:"M11 6l9 0"}),kn("path",{d:"M11 12l9 0"}),kn("path",{d:"M11 18l9 0"})]});import{jsx as Sl,jsxs as AP}from"react/jsx-runtime";var nm=e=>AP(o,{...e,children:[Sl("path",{d:"M12 10v8l8 -4z"}),Sl("path",{d:"M4 6h16"}),Sl("path",{d:"M4 12h4.5"}),Sl("path",{d:"M4 18h4.5"})]});import{jsx as rm,jsxs as OP}from"react/jsx-runtime";var am=e=>OP(o,{...e,children:[rm("path",{d:"M9 15l6 -6"}),rm("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),rm("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 B2,jsxs as zP}from"react/jsx-runtime";var lm=e=>zP(o,{...e,children:[B2("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),B2("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as wl,jsxs as _P}from"react/jsx-runtime";var cm=e=>_P(o,{...e,children:[wl("path",{d:"M9 15l3 -3m2 -2l1 -1"}),wl("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),wl("path",{d:"M3 3l18 18"}),wl("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 Bn,jsxs as UP}from"react/jsx-runtime";var im=e=>UP(o,{...e,children:[Bn("path",{d:"M9 6l11 0"}),Bn("path",{d:"M9 12l11 0"}),Bn("path",{d:"M9 18l11 0"}),Bn("path",{d:"M5 6l0 .01"}),Bn("path",{d:"M5 12l0 .01"}),Bn("path",{d:"M5 18l0 .01"})]});import{jsx as Or,jsxs as HP}from"react/jsx-runtime";var sm=e=>HP(o,{...e,children:[Or("path",{d:"M11 6h9"}),Or("path",{d:"M11 12h9"}),Or("path",{d:"M12 18h8"}),Or("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),Or("path",{d:"M6 10v-6l-2 2"})]});import{jsx as pm,jsxs as GP}from"react/jsx-runtime";var dm=e=>GP(o,{...e,children:[pm("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"}),pm("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),pm("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as N2}from"react/jsx-runtime";var mm=e=>N2(o,{isFilled:!0,...e,children:N2("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 um,jsxs as VP}from"react/jsx-runtime";var fm=e=>VP(o,{...e,children:[um("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"}),um("path",{d:"M3 12h13l-3 -3"}),um("path",{d:"M13 15l3 -3"})]});import{jsx as hm,jsxs as $P}from"react/jsx-runtime";var gm=e=>$P(o,{...e,children:[hm("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"}),hm("path",{d:"M9 12h12l-3 -3"}),hm("path",{d:"M18 15l3 -3"})]});import{jsx as vm,jsxs as WP}from"react/jsx-runtime";var Im=e=>WP(o,{...e,children:[vm("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"}),vm("path",{d:"M15 12h-12l3 -3"}),vm("path",{d:"M6 15l-3 -3"})]});import{jsx as Ml,jsxs as qP}from"react/jsx-runtime";var bm=e=>qP(o,{...e,children:[Ml("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Ml("path",{d:"M15 6l3 3"}),Ml("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"}),Ml("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 R2,jsxs as XP}from"react/jsx-runtime";var ym=e=>XP(o,{...e,children:[R2("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"}),R2("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as kl,jsxs as KP}from"react/jsx-runtime";var Cm=e=>KP(o,{...e,children:[kl("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),kl("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),kl("path",{d:"M3 19l6 -6"}),kl("path",{d:"M15 13l6 6"})]});import{jsx as T2,jsxs as ZP}from"react/jsx-runtime";var xm=e=>ZP(o,{...e,children:[T2("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),T2("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 Bl,jsxs as YP}from"react/jsx-runtime";var Pm=e=>YP(o,{...e,children:[Bl("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Bl("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Bl("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Bl("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Nl,jsxs as QP}from"react/jsx-runtime";var Sm=e=>QP(o,{...e,children:[Nl("path",{d:"M16 4l4 0l0 4"}),Nl("path",{d:"M14 10l6 -6"}),Nl("path",{d:"M8 20l-4 0l0 -4"}),Nl("path",{d:"M4 20l6 -6"})]});import{jsx as L2}from"react/jsx-runtime";var wm=e=>L2(o,{...e,children:L2("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 Mm,jsxs as JP}from"react/jsx-runtime";var km=e=>JP(o,{...e,children:[Mm("path",{d:"M8 9h8"}),Mm("path",{d:"M8 13h6"}),Mm("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 Rl,jsxs as jP}from"react/jsx-runtime";var Bm=e=>jP(o,{...e,children:[Rl("path",{d:"M12 11v.01"}),Rl("path",{d:"M8 11v.01"}),Rl("path",{d:"M16 11v.01"}),Rl("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 zr,jsxs as eS}from"react/jsx-runtime";var Nm=e=>eS(o,{...e,children:[zr("path",{d:"M8 9h8"}),zr("path",{d:"M8 13h6"}),zr("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"}),zr("path",{d:"M22 22l-5 -5"}),zr("path",{d:"M17 22l5 -5"})]});import{jsx as Tl,jsxs as tS}from"react/jsx-runtime";var _r=e=>tS(o,{...e,children:[Tl("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"}),Tl("path",{d:"M5 10a7 7 0 0 0 14 0"}),Tl("path",{d:"M8 21l8 0"}),Tl("path",{d:"M12 17l0 4"})]});import{jsx as Ll,jsxs as oS}from"react/jsx-runtime";var Rm=e=>oS(o,{...e,children:[Ll("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),Ll("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),Ll("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),Ll("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Dl,jsxs as nS}from"react/jsx-runtime";var Tm=e=>nS(o,{...e,children:[Dl("path",{d:"M18 10h-4v-4"}),Dl("path",{d:"M20 4l-6 6"}),Dl("path",{d:"M6 14h4v4"}),Dl("path",{d:"M10 14l-6 6"})]});import{jsx as D2,jsxs as rS}from"react/jsx-runtime";var Lm=e=>rS(o,{...e,children:[D2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),D2("path",{d:"M9 12l6 0"})]});import{jsx as Dm,jsxs as aS}from"react/jsx-runtime";var Em=e=>aS(o,{...e,children:[Dm("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"}),Dm("path",{d:"M11 4h2"}),Dm("path",{d:"M12 17v.01"})]});import{jsx as El,jsxs as lS}from"react/jsx-runtime";var Fm=e=>lS(o,{...e,children:[El("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"}),El("path",{d:"M7 20h10"}),El("path",{d:"M9 16v4"}),El("path",{d:"M15 16v4"})]});import{jsx as Ur,jsxs as cS}from"react/jsx-runtime";var Am=e=>cS(o,{...e,children:[Ur("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"}),Ur("path",{d:"M3 13h18"}),Ur("path",{d:"M8 21h8"}),Ur("path",{d:"M10 17l-.5 4"}),Ur("path",{d:"M14 17l.5 4"})]});import{jsx as E2}from"react/jsx-runtime";var Om=e=>E2(o,{...e,children:E2("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 F2,jsxs as iS}from"react/jsx-runtime";var zm=e=>iS(o,{...e,children:[F2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),F2("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 no,jsxs as sS}from"react/jsx-runtime";var at=e=>sS(o,{...e,children:[no("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"}),no("path",{d:"M8 4l0 16"}),no("path",{d:"M16 4l0 16"}),no("path",{d:"M4 8l4 0"}),no("path",{d:"M4 16l4 0"}),no("path",{d:"M4 12l16 0"}),no("path",{d:"M16 8l4 0"}),no("path",{d:"M16 16l4 0"})]});import{jsx as A2}from"react/jsx-runtime";var _m=e=>A2(o,{...e,children:A2("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 O2,jsxs as pS}from"react/jsx-runtime";var Um=e=>pS(o,{...e,children:[O2("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),O2("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as Hr,jsxs as dS}from"react/jsx-runtime";var Hm=e=>dS(o,{...e,children:[Hr("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),Hr("path",{d:"M12 12l8 -4.5"}),Hr("path",{d:"M12 12l0 9"}),Hr("path",{d:"M12 12l-8 -4.5"}),Hr("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as Fl,jsxs as mS}from"react/jsx-runtime";var Gm=e=>mS(o,{...e,children:[Fl("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"}),Fl("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Fl("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Fl("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Gr,jsxs as uS}from"react/jsx-runtime";var Vm=e=>uS(o,{...e,children:[Gr("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"}),Gr("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),Gr("path",{d:"M15 16h.01"}),Gr("path",{d:"M12.01 16h.01"}),Gr("path",{d:"M9.02 16h.01"})]});import{jsx as z2,jsxs as fS}from"react/jsx-runtime";var Ro=e=>fS(o,{...e,children:[z2("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"}),z2("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 $m,jsxs as hS}from"react/jsx-runtime";var Wm=e=>hS(o,{...e,children:[$m("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),$m("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"}),$m("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 qm,jsxs as gS}from"react/jsx-runtime";var Xm=e=>gS(o,{...e,children:[qm("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"}),qm("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),qm("path",{d:"M16 9h2"})]});import{jsx as Km,jsxs as vS}from"react/jsx-runtime";var Zm=e=>vS(o,{...e,children:[Km("path",{d:"M14 6l7 7l-4 4"}),Km("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"}),Km("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as Al,jsxs as IS}from"react/jsx-runtime";var Ym=e=>IS(o,{...e,children:[Al("path",{d:"M9 15l6 -6"}),Al("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),Al("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),Al("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as _2}from"react/jsx-runtime";var Qm=e=>_2(o,{...e,children:_2("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 Jm,jsxs as bS}from"react/jsx-runtime";var jm=e=>bS(o,{...e,children:[Jm("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"}),Jm("path",{d:"M15 7a2 2 0 0 1 2 2"}),Jm("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as eu,jsxs as yS}from"react/jsx-runtime";var Vr=e=>yS(o,{...e,children:[eu("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),eu("path",{d:"M9 15l-4.5 4.5"}),eu("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as U2}from"react/jsx-runtime";var To=e=>U2(o,{...e,children:U2("path",{d:"M7 4v16l13 -8z"})});import{jsx as H2,jsxs as CS}from"react/jsx-runtime";var tu=e=>CS(o,{...e,children:[H2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),H2("path",{d:"M9 8v8l8 -4z"})]});import{jsx as G2,jsxs as xS}from"react/jsx-runtime";var $r=e=>xS(o,{...e,children:[G2("path",{d:"M12 5l0 14"}),G2("path",{d:"M5 12l14 0"})]});import{jsx as ou,jsxs as PS}from"react/jsx-runtime";var ro=e=>PS(o,{...e,children:[ou("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),ou("path",{d:"M9 12h6"}),ou("path",{d:"M12 9v6"})]});import{jsx as nu,jsxs as SS}from"react/jsx-runtime";var ru=e=>SS(o,{...e,children:[nu("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"}),nu("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),nu("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 V2}from"react/jsx-runtime";var au=e=>V2(o,{...e,children:V2("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as lu,jsxs as wS}from"react/jsx-runtime";var Wr=e=>wS(o,{...e,children:[lu("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),lu("path",{d:"M12 16v.01"}),lu("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as $2,jsxs as MS}from"react/jsx-runtime";var cu=e=>MS(o,{...e,children:[$2("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"}),$2("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 W2,jsxs as kS}from"react/jsx-runtime";var iu=e=>kS(o,{...e,children:[W2("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),W2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as q2}from"react/jsx-runtime";var su=e=>q2(o,{isFilled:!0,...e,children:q2("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 X2}from"react/jsx-runtime";var pu=e=>X2(o,{...e,children:X2("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 K2,jsxs as BS}from"react/jsx-runtime";var du=e=>BS(o,{...e,children:[K2("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"}),K2("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as Z2,jsxs as NS}from"react/jsx-runtime";var mu=e=>NS(o,{...e,children:[Z2("path",{d:"M15 14l4 -4l-4 -4"}),Z2("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as Y2}from"react/jsx-runtime";var uu=e=>Y2(o,{...e,children:Y2("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as Q2,jsxs as RS}from"react/jsx-runtime";var fu=e=>RS(o,{...e,children:[Q2("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),Q2("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as J2,jsxs as TS}from"react/jsx-runtime";var hu=e=>TS(o,{...e,children:[J2("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),J2("path",{d:"M20 4v5h-5"})]});import{jsx as j2,jsxs as LS}from"react/jsx-runtime";var gu=e=>LS(o,{...e,children:[j2("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),j2("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as Ol,jsxs as DS}from"react/jsx-runtime";var vu=e=>DS(o,{...e,children:[Ol("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"}),Ol("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"}),Ol("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),Ol("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as eg}from"react/jsx-runtime";var Iu=e=>eg(o,{...e,children:eg("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as bu,jsxs as ES}from"react/jsx-runtime";var yu=e=>ES(o,{...e,children:[bu("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),bu("path",{d:"M3 4.001v5h5"}),bu("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Cu,jsxs as FS}from"react/jsx-runtime";var xu=e=>FS(o,{...e,children:[Cu("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"}),Cu("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),Cu("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as tg,jsxs as AS}from"react/jsx-runtime";var Pu=e=>AS(o,{...e,children:[tg("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"}),tg("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 og,jsxs as OS}from"react/jsx-runtime";var Su=e=>OS(o,{...e,children:[og("path",{d:"M12 3v9h9"}),og("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as wu,jsxs as zS}from"react/jsx-runtime";var Mu=e=>zS(o,{...e,children:[wu("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),wu("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),wu("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 ku,jsxs as _S}from"react/jsx-runtime";var Bu=e=>_S(o,{...e,children:[ku("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"}),ku("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ku("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as ao,jsxs as US}from"react/jsx-runtime";var Nu=e=>US(o,{...e,children:[ao("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),ao("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),ao("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),ao("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),ao("path",{d:"M5 11h1v2h-1z"}),ao("path",{d:"M10 11l0 2"}),ao("path",{d:"M14 11h1v2h-1z"}),ao("path",{d:"M19 11l0 2"})]});import{jsx as zl,jsxs as HS}from"react/jsx-runtime";var qr=e=>HS(o,{...e,children:[zl("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),zl("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),zl("path",{d:"M8.6 8.6l10.4 10.4"}),zl("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as ng,jsxs as GS}from"react/jsx-runtime";var Ft=e=>GS(o,{...e,children:[ng("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),ng("path",{d:"M21 21l-6 -6"})]});import{jsx as rg,jsxs as VS}from"react/jsx-runtime";var Ru=e=>VS(o,{...e,children:[rg("path",{d:"M10 14l11 -11"}),rg("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 _l,jsxs as $S}from"react/jsx-runtime";var Tu=e=>$S(o,{...e,children:[_l("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"}),_l("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"}),_l("path",{d:"M7 8l0 .01"}),_l("path",{d:"M7 16l0 .01"})]});import{jsx as ag,jsxs as WS}from"react/jsx-runtime";var Lu=e=>WS(o,{...e,children:[ag("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"}),ag("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as At,jsxs as qS}from"react/jsx-runtime";var Du=e=>qS(o,{...e,children:[At("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),At("path",{d:"M4 6l8 0"}),At("path",{d:"M16 6l4 0"}),At("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),At("path",{d:"M4 12l2 0"}),At("path",{d:"M10 12l10 0"}),At("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),At("path",{d:"M4 18l11 0"}),At("path",{d:"M19 18l1 0"})]});import{jsx as Xr,jsxs as XS}from"react/jsx-runtime";var Eu=e=>XS(o,{...e,children:[Xr("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Xr("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Xr("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Xr("path",{d:"M8.7 10.7l6.6 -3.4"}),Xr("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as lg,jsxs as KS}from"react/jsx-runtime";var Fu=e=>KS(o,{...e,children:[lg("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"}),lg("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as Au,jsxs as ZS}from"react/jsx-runtime";var Ou=e=>ZS(o,{...e,children:[Au("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"}),Au("path",{d:"M16 19h6"}),Au("path",{d:"M19 16v6"})]});import{jsx as zu,jsxs as YS}from"react/jsx-runtime";var _u=e=>YS(o,{...e,children:[zu("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"}),zu("path",{d:"M22 22l-5 -5"}),zu("path",{d:"M17 22l5 -5"})]});import{jsx as cg,jsxs as QS}from"react/jsx-runtime";var Uu=e=>QS(o,{...e,children:[cg("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"}),cg("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as Ul,jsxs as JS}from"react/jsx-runtime";var Hu=e=>JS(o,{...e,children:[Ul("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ul("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ul("path",{d:"M17 17h-11v-14h-2"}),Ul("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as lo,jsxs as jS}from"react/jsx-runtime";var Gu=e=>jS(o,{...e,children:[lo("path",{d:"M5 9l4 0l0 -4"}),lo("path",{d:"M3 3l6 6"}),lo("path",{d:"M5 15l4 0l0 4"}),lo("path",{d:"M3 21l6 -6"}),lo("path",{d:"M19 9l-4 0l0 -4"}),lo("path",{d:"M15 9l6 -6"}),lo("path",{d:"M19 15l-4 0l0 4"}),lo("path",{d:"M15 15l6 6"})]});import{jsx as Hl,jsxs as e4}from"react/jsx-runtime";var Vu=e=>e4(o,{...e,children:[Hl("path",{d:"M18 4l3 3l-3 3"}),Hl("path",{d:"M18 20l3 -3l-3 -3"}),Hl("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),Hl("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 ig,jsxs as t4}from"react/jsx-runtime";var $u=e=>t4(o,{...e,children:[ig("path",{d:"M4 5v14l12 -7z"}),ig("path",{d:"M20 5l0 14"})]});import{jsx as sg,jsxs as o4}from"react/jsx-runtime";var Wu=e=>o4(o,{...e,children:[sg("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),sg("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as pg,jsxs as n4}from"react/jsx-runtime";var qu=e=>n4(o,{...e,children:[pg("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"}),pg("path",{d:"M5 5 L19 19"})]});import{jsx as Lo,jsxs as r4}from"react/jsx-runtime";var Xu=e=>r4(o,{...e,children:[Lo("path",{d:"M4 10l0 6"}),Lo("path",{d:"M20 10l0 6"}),Lo("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),Lo("path",{d:"M8 3l1 2"}),Lo("path",{d:"M16 3l-1 2"}),Lo("path",{d:"M9 18l0 3"}),Lo("path",{d:"M15 18l0 3"})]});import{jsx as dg,jsxs as a4}from"react/jsx-runtime";var Ku=e=>a4(o,{...e,children:[dg("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"}),dg("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as mg}from"react/jsx-runtime";var Zu=e=>mg(o,{...e,children:mg("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 Kr,jsxs as l4}from"react/jsx-runtime";var Yu=e=>l4(o,{...e,children:[Kr("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Kr("path",{d:"M3.6 9h16.8"}),Kr("path",{d:"M3.6 15h16.8"}),Kr("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),Kr("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as ug}from"react/jsx-runtime";var Qu=e=>ug(o,{...e,children:ug("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 Ju,jsxs as c4}from"react/jsx-runtime";var ju=e=>c4(o,{...e,children:[Ju("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"}),Ju("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Ju("path",{d:"M16.5 7.5v.01"})]});import{jsx as Zr,jsxs as i4}from"react/jsx-runtime";var ef=e=>i4(o,{...e,children:[Zr("path",{d:"M8 11v5"}),Zr("path",{d:"M8 8v.01"}),Zr("path",{d:"M12 16v-5"}),Zr("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),Zr("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 tf,jsxs as s4}from"react/jsx-runtime";var of=e=>s4(o,{...e,children:[tf("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),tf("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),tf("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 Do,jsxs as p4}from"react/jsx-runtime";var nf=e=>p4(o,{...e,children:[Do("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"}),Do("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"}),Do("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"}),Do("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"}),Do("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"}),Do("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"}),Do("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"})]});import{jsx as Yr,jsxs as d4}from"react/jsx-runtime";var rf=e=>d4(o,{...e,children:[Yr("path",{d:"M21 15l-1 -6l-2.5 6"}),Yr("path",{d:"M9 15l1 -6"}),Yr("path",{d:"M3 9h1v6h.5l2.5 -6"}),Yr("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"}),Yr("path",{d:"M18 14h2.7"})]});import{jsx as fg,jsxs as m4}from"react/jsx-runtime";var af=e=>m4(o,{...e,children:[fg("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),fg("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as Gl,jsxs as u4}from"react/jsx-runtime";var lf=e=>u4(o,{...e,children:[Gl("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Gl("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gl("path",{d:"M13.41 10.59l2.59 -2.59"}),Gl("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as hg}from"react/jsx-runtime";var cf=e=>hg(o,{...e,children:hg("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as gg}from"react/jsx-runtime";var Qr=e=>gg(o,{...e,children:gg("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 vg}from"react/jsx-runtime";var sf=e=>vg(o,{isFilled:!0,...e,children:vg("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 Ig}from"react/jsx-runtime";var pf=e=>Ig(o,{isFilled:!0,...e,children:Ig("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 bg}from"react/jsx-runtime";var df=e=>bg(o,{...e,children:bg("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 yg}from"react/jsx-runtime";var Jr=e=>yg(o,{...e,children:yg("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 Cg,jsxs as f4}from"react/jsx-runtime";var mf=e=>f4(o,{...e,children:[Cg("path",{d:"M5 12l14 0"}),Cg("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 xg,jsxs as h4}from"react/jsx-runtime";var uf=e=>h4(o,{...e,children:[xg("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),xg("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 Pg,jsxs as g4}from"react/jsx-runtime";var ff=e=>g4(o,{...e,children:[Pg("path",{d:"M7 10h14l-4 -4"}),Pg("path",{d:"M17 14h-14l4 4"})]});import{jsx as Vl,jsxs as v4}from"react/jsx-runtime";var hf=e=>v4(o,{...e,children:[Vl("path",{d:"M16 3l4 4l-4 4"}),Vl("path",{d:"M10 7l10 0"}),Vl("path",{d:"M8 13l-4 4l4 4"}),Vl("path",{d:"M4 17l9 0"})]});import{jsx as gf,jsxs as I4}from"react/jsx-runtime";var vf=e=>I4(o,{...e,children:[gf("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"}),gf("path",{d:"M3 10h18"}),gf("path",{d:"M10 3v18"})]});import{jsx as Sg,jsxs as b4}from"react/jsx-runtime";var jr=e=>b4(o,{...e,children:[Sg("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Sg("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 Nn,jsxs as y4}from"react/jsx-runtime";var If=e=>y4(o,{...e,children:[Nn("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Nn("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),Nn("path",{d:"M12 2l0 2"}),Nn("path",{d:"M12 20l0 2"}),Nn("path",{d:"M20 12l2 0"}),Nn("path",{d:"M2 12l2 0"})]});import{jsx as bf,jsxs as C4}from"react/jsx-runtime";var yf=e=>C4(o,{...e,children:[bf("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bf("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),bf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Cf,jsxs as x4}from"react/jsx-runtime";var xf=e=>x4(o,{...e,children:[Cf("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),Cf("path",{d:"M9 11h6"}),Cf("path",{d:"M5 19h14"})]});import{jsx as wg,jsxs as P4}from"react/jsx-runtime";var Pf=e=>P4(o,{...e,children:[wg("path",{d:"M6 4l12 0"}),wg("path",{d:"M12 4l0 16"})]});import{jsx as $l,jsxs as S4}from"react/jsx-runtime";var Sf=e=>S4(o,{...e,children:[$l("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),$l("path",{d:"M12.5 5.5l4 4"}),$l("path",{d:"M4.5 13.5l4 4"}),$l("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as Mg}from"react/jsx-runtime";var wf=e=>Mg(o,{...e,children:Mg("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 kg}from"react/jsx-runtime";var Mf=e=>kg(o,{...e,children:kg("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 Bg,jsxs as w4}from"react/jsx-runtime";var kf=e=>w4(o,{isFilled:!0,...e,children:[Bg("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"}),Bg("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 Ng,jsxs as M4}from"react/jsx-runtime";var Bf=e=>M4(o,{...e,children:[Ng("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ng("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 Rn,jsxs as k4}from"react/jsx-runtime";var Nf=e=>k4(o,{...e,children:[Rn("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),Rn("path",{d:"M4 6.371h7"}),Rn("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),Rn("path",{d:"M12 20l4 -9l4 9"}),Rn("path",{d:"M19.1 18h-6.2"}),Rn("path",{d:"M6.694 3l.793 .582"})]});import{jsx as ea,jsxs as B4}from"react/jsx-runtime";var Ze=e=>B4(o,{...e,children:[ea("path",{d:"M4 7l16 0"}),ea("path",{d:"M10 11l0 6"}),ea("path",{d:"M14 11l0 6"}),ea("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),ea("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as Rg,jsxs as N4}from"react/jsx-runtime";var Rf=e=>N4(o,{...e,children:[Rg("path",{d:"M3 17l6 -6l4 4l8 -8"}),Rg("path",{d:"M14 7l7 0l0 7"})]});import{jsx as Tg,jsxs as R4}from"react/jsx-runtime";var Tf=e=>R4(o,{...e,children:[Tg("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),Tg("path",{d:"M5 19h14"})]});import{jsx as Lg,jsxs as T4}from"react/jsx-runtime";var Lf=e=>T4(o,{...e,children:[Lg("path",{d:"M9 14l-4 -4l4 -4"}),Lg("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as Df,jsxs as L4}from"react/jsx-runtime";var Ef=e=>L4(o,{...e,children:[Df("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"}),Df("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Df("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as Ff,jsxs as D4}from"react/jsx-runtime";var Eo=e=>D4(o,{...e,children:[Ff("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"}),Ff("path",{d:"M9 15l3 -3l3 3"}),Ff("path",{d:"M12 12l0 9"})]});import{jsx as Dg,jsxs as E4}from"react/jsx-runtime";var ta=e=>E4(o,{...e,children:[Dg("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Dg("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as Af,jsxs as F4}from"react/jsx-runtime";var Of=e=>F4(o,{...e,children:[Af("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Af("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),Af("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Wl,jsxs as A4}from"react/jsx-runtime";var zf=e=>A4(o,{...e,children:[Wl("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Wl("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Wl("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),Wl("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as _f,jsxs as O4}from"react/jsx-runtime";var Uf=e=>O4(o,{...e,children:[_f("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),_f("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),_f("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 ql,jsxs as z4}from"react/jsx-runtime";var Hf=e=>z4(o,{...e,children:[ql("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),ql("path",{d:"M16 19h6"}),ql("path",{d:"M19 16v6"}),ql("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as Xl,jsxs as _4}from"react/jsx-runtime";var Gf=e=>_4(o,{...e,children:[Xl("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Xl("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Xl("path",{d:"M16 22l5 -5"}),Xl("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as Kl,jsxs as U4}from"react/jsx-runtime";var Vf=e=>U4(o,{...e,children:[Kl("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Kl("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Kl("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Kl("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as $f,jsxs as H4}from"react/jsx-runtime";var Wf=e=>H4(o,{...e,children:[$f("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),$f("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),$f("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 oa,jsxs as G4}from"react/jsx-runtime";var qf=e=>G4(o,{...e,children:[oa("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),oa("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),oa("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),oa("path",{d:"M19 22v-6"}),oa("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as Eg,jsxs as V4}from"react/jsx-runtime";var Xf=e=>V4(o,{...e,children:[Eg("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"}),Eg("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 Kf,jsxs as $4}from"react/jsx-runtime";var Zf=e=>$4(o,{...e,children:[Kf("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Kf("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Kf("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 Yf,jsxs as W4}from"react/jsx-runtime";var Qf=e=>W4(o,{...e,children:[Yf("path",{d:"M15 8a5 5 0 0 1 0 8"}),Yf("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),Yf("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 Fg,jsxs as q4}from"react/jsx-runtime";var Jf=e=>q4(o,{...e,children:[Fg("path",{d:"M15 8a5 5 0 0 1 0 8"}),Fg("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 Ag,jsxs as X4}from"react/jsx-runtime";var jf=e=>X4(o,{...e,children:[Ag("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"}),Ag("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as Og}from"react/jsx-runtime";var eh=e=>Og(o,{...e,children:Og("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 zg,jsxs as K4}from"react/jsx-runtime";var Ae=e=>K4(o,{...e,children:[zg("path",{d:"M18 6l-12 12"}),zg("path",{d:"M6 6l12 12"})]});import{jsx as _g,jsxs as Z4}from"react/jsx-runtime";var th=e=>Z4(o,{...e,children:[_g("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),_g("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Ug}from"react/jsx-runtime";var oh=e=>Ug(o,{isFilled:!0,...e,children:Ug("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 Hg,jsxs as Y4}from"react/jsx-runtime";var nh=e=>Y4(o,{...e,children:[Hg("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"}),Hg("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as Zl,jsxs as Q4}from"react/jsx-runtime";var rh=e=>Q4(o,{...e,children:[Zl("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Zl("path",{d:"M7 10l6 0"}),Zl("path",{d:"M10 7l0 6"}),Zl("path",{d:"M21 21l-6 -6"})]});import{jsx as ah,jsxs as J4}from"react/jsx-runtime";var lh=e=>J4(o,{...e,children:[ah("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),ah("path",{d:"M7 10l6 0"}),ah("path",{d:"M21 21l-6 -6"})]});var ut=(m=>(m["48AlertFeatured"]="48AlertFeatured",m["48SuccessFeatured"]="48SuccessFeatured",m.AlertCircle="AlertCircle",m.AlertOctagon="AlertOctagon",m.AlertTriangle="AlertTriangle",m.Apps="Apps",m.ArrowBarDown="ArrowBarDown",m.ArrowBarLeft="ArrowBarLeft",m.ArrowBarRight="ArrowBarRight",m.ArrowBarToDown="ArrowBarToDown",m.ArrowBarToLeft="ArrowBarToLeft",m.ArrowBarToRight="ArrowBarToRight",m.ArrowBarToUp="ArrowBarToUp",m.ArrowBarUp="ArrowBarUp",m.Archive="Archive",m.ArrowDown="ArrowDown",m.ArrowDownLeft="ArrowDownLeft",m.ArrowDownNarrow="ArrowDownNarrow",m.ArrowDownRight="ArrowDownRight",m.ArrowLeft="ArrowLeft",m.ArrowLeftNarrow="ArrowLeftNarrow",m.ArrowRight="ArrowRight",m.ArrowRightNarrow="ArrowRightNarrow",m.ArrowUp="ArrowUp",m.ArrowUpLeft="ArrowUpLeft",m.ArrowUpNarrow="ArrowUpNarrow",m.ArrowUpRight="ArrowUpRight",m.Attachment="Attachment",m.BarChart="BarChart",m.BarChartSquare="BarChartSquare",m.Bell="Bell",m.Bold="Bold",m.Bookmark="Bookmark",m.BookmarkCheck="BookmarkCheck",m.BookmarkCheckFill="BookmarkCheckFill",m.BookmarkFill="BookmarkFill",m.BookmarkMinus="BookmarkMinus",m.BookmarkPlus="BookmarkPlus",m.BookmarkX="BookmarkX",m.BookOpen="BookOpen",m.BoxLines="BoxLines",m.BoxText="BoxText",m.BracketsCheck="BracketsCheck",m.BracketsEllipses="BracketsEllipses",m.BrickWall="BrickWall",m.Briefcase="Briefcase",m.Building="Building",m.Calculator="Calculator",m.Calendar="Calendar",m.Certificate="Certificate",m.Check="Check",m.CheckCircle="CheckCircle",m.CheckCircleBroken="CheckCircleBroken",m.CheckFill="CheckFill",m.CheckVerified="CheckVerified",m.CheckVerifiedFill="CheckVerifiedFill",m.ChevronDown="ChevronDown",m.ChevronDownDouble="ChevronDownDouble",m.ChevronDownLeft="ChevronDownLeft",m.ChevronDownLeftDouble="ChevronDownLeftDouble",m.ChevronDownRight="ChevronDownRight",m.ChevronDownRightDouble="ChevronDownRightDouble",m.ChevronLeft="ChevronLeft",m.ChevronLeftDouble="ChevronLeftDouble",m.ChevronRight="ChevronRight",m.ChevronRightDouble="ChevronRightDouble",m.ChevronSelectorVertical="ChevronSelectorVertical",m.ChevronUp="ChevronUp",m.ChevronUpDouble="ChevronUpDouble",m.ChevronUpLeft="ChevronUpLeft",m.ChevronUpLeftDouble="ChevronUpLeftDouble",m.ChevronUpRight="ChevronUpRight",m.ChevronUpRightDouble="ChevronUpRightDouble",m.Click="Click",m.Clock="Clock",m.ClockFastForward="ClockFastForward",m.ClockPlay="ClockPlay",m.ClockRewind="ClockRewind",m.Clone="Clone",m.Code="Code",m.CodeBrowser="CodeBrowser",m.CodeCircle="CodeCircle",m.Colors="Colors",m.ColumnEdit="ColumnEdit",m.Copy="Copy",m.Copy2="Copy2",m.CopyCheck="CopyCheck",m.CreditCard="CreditCard",m.Cube="Cube",m.CubeOutline="CubeOutline",m.CursorBox="CursorBox",m.Dataflow="Dataflow",m.Dataflow2="Dataflow2",m.Dataflow3="Dataflow3",m.DistributeHorizontal="DistributeHorizontal",m.Dollar="Dollar",m.DollarCircle="DollarCircle",m.Dot="Dot",m.DotFill="DotFill",m.DotsGrid="DotsGrid",m.DotsHorizontal="DotsHorizontal",m.DotsVertical="DotsVertical",m.Download="Download",m.Edit="Edit",m.Editable="Editable",m.Expand="Expand",m.ExternalLink="ExternalLink",m.ExternalLink2="ExternalLink2",m.Eye="Eye",m.EyeHidden="EyeHidden",m.EyeHidden2="EyeHidden2",m.FaceAngry="FaceAngry",m.FaceLaugh="FaceLaugh",m.FaceSmile="FaceSmile",m.File="File",m.FileCheck="FileCheck",m.FileCsv="FileCsv",m.FileDownload="FileDownload",m.FileJson="FileJson",m.FileList="FileList",m.FileMusic="FileMusic",m.FilePdf="FilePdf",m.Files="Files",m.FileSpreadsheet="FileSpreadsheet",m.FileText="FileText",m.FileUpload="FileUpload",m.FileXls="FileXls",m.FileXlsx="FileXlsx",m.FileZip="FileZip",m.Filter="Filter",m.Filter2="Filter2",m.Flag="Flag",m.Flag2="Flag2",m.FlagFill="FlagFill",m.Focus="Focus",m.Folder="Folder",m.FolderExport="FolderExport",m.FolderImport="FolderImport",m.GraduationCap="GraduationCap",m.GripVertical="GripVertical",m.Hand="Hand",m.HandShield="HandShield",m.Hash="Hash",m.HeadsetMic="HeadsetMic",m.Heart="Heart",m.HeartFill="HeartFill",m.House="House",m.HouseLine="HouseLine",m.Image="Image",m.Image2="Image2",m.ImageCheck="ImageCheck",m.ImageOff="ImageOff",m.Import="Import",m.Inbox="Inbox",m.InfoCircle="InfoCircle",m.InfoHexagon="InfoHexagon",m.Italic="Italic",m.LayersMultiple="LayersMultiple",m.LayersSingle="LayersSingle",m.Layout="Layout",m.Layout2="Layout2",m.LayoutColumns="LayoutColumns",m.LayoutCustom="LayoutCustom",m.LayoutStuffed="LayoutStuffed",m.LayoutTile="LayoutTile",m.LifeBuoy="LifeBuoy",m.Lightbulb="Lightbulb",m.Lightning="Lightning",m.LightningFast="LightningFast",m.LineChart="LineChart",m.LineChartBar="LineChartBar",m.LineChartBreakoutSquare="LineChartBreakoutSquare",m.LineChartUp="LineChartUp",m.Lines="Lines",m.LinesCheck="LinesCheck",m.LinesPlay="LinesPlay",m.Link="Link",m.Link2="Link2",m.LinkOff="LinkOff",m.ListBullet="ListBullet",m.ListOrder="ListOrder",m.Lock="Lock",m.LockFill="LockFill",m.LogIn="LogIn",m.LogOut="LogOut",m.LogOut2="LogOut2",m.MagicWand="MagicWand",m.Mail="Mail",m.MailOpen="MailOpen",m.MapPin="MapPin",m.Maximize="Maximize",m.Maximize2="Maximize2",m.MessageCircle="MessageCircle",m.MessageSquare="MessageSquare",m.MessageSquare2="MessageSquare2",m.MessageXSquare="MessageXSquare",m.Microphone="Microphone",m.Minimize="Minimize",m.Minimize2="Minimize2",m.MinusCircle="MinusCircle",m.Mobile="Mobile",m.Monitor="Monitor",m.Monitor2="Monitor2",m.Moon="Moon",m.MoonCircle="MoonCircle",m.Movie="Movie",m.NavigationPointer="NavigationPointer",m.NotificationBox="NotificationBox",m.Package="Package",m.Palette="Palette",m.PasscodeLock="PasscodeLock",m.Pause="Pause",m.PauseCircle="PauseCircle",m.PCSetup="PCSetup",m.Pen="Pen",m.PercentageCircle="PercentageCircle",m.Perspective="Perspective",m.PhoneCall="PhoneCall",m.Pin="Pin",m.Play="Play",m.PlayCircle="PlayCircle",m.Plus="Plus",m.PlusCircle="PlusCircle",m.Printer="Printer",m.Pulse="Pulse",m.QuestionCircle="QuestionCircle",m.Quote="Quote",m.RadioButton="RadioButton",m.RadioButtonFill="RadioButtonFill",m.Receipt="Receipt",m.ReceiptCheck="ReceiptCheck",m.Redo="Redo",m.Refresh="Refresh",m.Refresh2="Refresh2",m.Refresh3="Refresh3",m.Repeat="Repeat",m.Replace="Replace",m.Replay="Replay",m.Restore="Restore",m.Rocket="Rocket",m.RoundChart="RoundChart",m.RoundChart2="RoundChart2",m.Route="Route",m.Save="Save",m.ScanDots="ScanDots",m.Scissors="Scissors",m.Search="Search",m.Send="Send",m.Server="Server",m.Settings="Settings",m.Settings2="Settings2",m.Share="Share",m.ShieldLightning="ShieldLightning",m.ShieldPlus="ShieldPlus",m.ShieldRemove="ShieldRemove",m.ShoppingBag="ShoppingBag",m.ShoppingCart="ShoppingCart",m.Shrink="Shrink",m.Shuffle="Shuffle",m.SkipForward="SkipForward",m.SlashCircle="SlashCircle",m.SlashOctagon="SlashOctagon",m.SocialAndroid="SocialAndroid",m.SocialApple="SocialApple",m.SocialGithub="SocialGithub",m.SocialGlobe="SocialGlobe",m.SocialGoogle="SocialGoogle",m.SocialInstagram="SocialInstagram",m.SocialLinkedin="SocialLinkedin",m.SocialMastercard="SocialMastercard",m.SocialReact="SocialReact",m.SocialVisa="SocialVisa",m.SocialX="SocialX",m.Speedometer="Speedometer",m.Stairs="Stairs",m.Star="Star",m.StarFill="StarFill",m.StarHalf="StarHalf",m.Stars="Stars",m.Stop="Stop",m.Strikethrough="Strikethrough",m.Sun="Sun",m.Swap="Swap",m.SwitchHorizontal="SwitchHorizontal",m.Table="Table",m.Tag="Tag",m.Target="Target",m.Target2="Target2",m.TextFormat="TextFormat",m.TextFormat2="TextFormat2",m.TextHighlight="TextHighlight",m.ThumbsDown="ThumbsDown",m.ThumbsUp="ThumbsUp",m.ThumbsUpFill="ThumbsUpFill",m.Toggle="Toggle",m.Translate="Translate",m.Trash="Trash",m.Trending="Trending",m.Underline="Underline",m.Undo="Undo",m.Unlock="Unlock",m.UploadCloud="UploadCloud",m.User="User",m.UserCheck="UserCheck",m.UserDollar="UserDollar",m.UserEdit="UserEdit",m.UserPlus="UserPlus",m.UserRight="UserRight",m.Users="Users",m.UserSquare="UserSquare",m.UsersUp="UsersUp",m.UserVoice="UserVoice",m.Video="Video",m.VideoChat="VideoChat",m.Volume="Volume",m.VolumeDown="VolumeDown",m.VolumeMute="VolumeMute",m.Wrench="Wrench",m.X="X",m.XCircle="XCircle",m.XCircleFill="XCircleFill",m.XSquare="XSquare",m.ZoomIn="ZoomIn",m.ZoomOut="ZoomOut",m))(ut||{});import{jsx as u}from"react/jsx-runtime";function ge({name:e,...t}){switch(e){case"48AlertFeatured":return u(Di,{...t});case"48SuccessFeatured":return u(Ei,{...t});case"AlertCircle":return u(wo,{...t});case"AlertOctagon":return u(Ai,{...t});case"AlertTriangle":return u(zi,{...t});case"ArrowBarDown":return u(Gi,{...t});case"ArrowBarLeft":return u(Vi,{...t});case"ArrowBarRight":return u($i,{...t});case"ArrowBarToDown":return u(Wi,{...t});case"ArrowBarToLeft":return u(qi,{...t});case"ArrowBarToRight":return u(Xi,{...t});case"ArrowBarToUp":return u(Ki,{...t});case"ArrowBarUp":return u(Zi,{...t});case"Apps":return u(_i,{...t});case"Archive":return u(Hi,{...t});case"ArrowDown":return u(Qi,{...t});case"ArrowDownLeft":return u(Ji,{...t});case"ArrowDownNarrow":return u(es,{...t});case"ArrowDownRight":return u(ts,{...t});case"ArrowLeft":return u(ns,{...t});case"ArrowLeftNarrow":return u(as,{...t});case"ArrowRight":return u(cs,{...t});case"ArrowRightNarrow":return u(ss,{...t});case"ArrowUp":return u(ds,{...t});case"ArrowUpLeft":return u(ms,{...t});case"ArrowUpNarrow":return u(fs,{...t});case"ArrowUpRight":return u(hs,{...t});case"Attachment":return u(gs,{...t});case"BarChart":return u(vs,{...t});case"BarChartSquare":return u(Is,{...t});case"Bell":return u(bs,{...t});case"Bold":return u(ys,{...t});case"BookOpen":return u(Ms,{...t});case"Bookmark":return u(Cs,{...t});case"BookmarkCheck":return u(Mi,{...t});case"BookmarkCheckFill":return u(ki,{...t});case"BookmarkFill":return u(xs,{...t});case"BookmarkMinus":return u(Ps,{...t});case"BookmarkPlus":return u(Ni,{...t});case"BookmarkX":return u(ws,{...t});case"BoxLines":return u(ks,{...t});case"BoxText":return u(Ns,{...t});case"BracketsCheck":return u(Ts,{...t});case"BracketsEllipses":return u(Ls,{...t});case"BrickWall":return u(Ds,{...t});case"Briefcase":return u(Es,{...t});case"Building":return u(Ri,{...t});case"Calculator":return u(Fs,{...t});case"Calendar":return u(hr,{...t});case"Certificate":return u(As,{...t});case"Check":return u(Rt,{...t});case"CheckCircle":return u(Mo,{...t});case"CheckCircleBroken":return u(Os,{...t});case"CheckFill":return u(zs,{...t});case"CheckVerified":return u(_s,{...t});case"CheckVerifiedFill":return u(Us,{...t});case"ChevronDown":return u(gr,{...t});case"ChevronDownDouble":return u(Hs,{...t});case"ChevronDownLeft":return u(Gs,{...t});case"ChevronDownLeftDouble":return u(Vs,{...t});case"ChevronDownRight":return u($s,{...t});case"ChevronDownRightDouble":return u(Ws,{...t});case"ChevronLeft":return u(Tt,{...t});case"ChevronLeftDouble":return u(qs,{...t});case"ChevronRight":return u(rt,{...t});case"ChevronRightDouble":return u(vr,{...t});case"ChevronSelectorVertical":return u(Xs,{...t});case"ChevronUp":return u(Lt,{...t});case"ChevronUpDouble":return u(Ks,{...t});case"ChevronUpLeft":return u(Zs,{...t});case"ChevronUpLeftDouble":return u(Ys,{...t});case"ChevronUpRight":return u(Qs,{...t});case"ChevronUpRightDouble":return u(Js,{...t});case"Click":return u(js,{...t});case"Clock":return u(ep,{...t});case"ClockFastForward":return u(tp,{...t});case"ClockPlay":return u(np,{...t});case"ClockRewind":return u(rp,{...t});case"Clone":return u(ap,{...t});case"Code":return u(cp,{...t});case"CodeBrowser":return u(ip,{...t});case"CodeCircle":return u(pp,{...t});case"Colors":return u(mp,{...t});case"ColumnEdit":return u(Ti,{...t});case"Copy":return u(up,{...t});case"Copy2":return u(fp,{...t});case"CopyCheck":return u(gp,{...t});case"Files":return u(od,{...t});case"CreditCard":return u(vp,{...t});case"Cube":return u(Ip,{...t});case"CubeOutline":return u(bp,{...t});case"CursorBox":return u(br,{...t});case"Dataflow":return u(yp,{...t});case"Dataflow2":return u(Cp,{...t});case"Dataflow3":return u(xp,{...t});case"DistributeHorizontal":return u(Sp,{...t});case"Dollar":return u(wp,{...t});case"DollarCircle":return u(kp,{...t});case"Dot":return u(Bp,{...t});case"DotFill":return u(Np,{...t});case"DotsGrid":return u(Rp,{...t});case"DotsHorizontal":return u(Lp,{...t});case"DotsVertical":return u(vn,{...t});case"Download":return u(Fp,{...t});case"Edit":return u(Ap,{...t});case"Editable":return u(zp,{...t});case"Expand":return u(_p,{...t});case"ExternalLink":return u(Hp,{...t});case"ExternalLink2":return u(Vp,{...t});case"Eye":return u($p,{...t});case"EyeHidden":return u(qp,{...t});case"EyeHidden2":return u(Xp,{...t});case"FaceAngry":return u(Kp,{...t});case"FaceLaugh":return u(Zp,{...t});case"FaceSmile":return u(Yp,{...t});case"File":return u(Bo,{...t});case"FileCheck":return u(Jp,{...t});case"FileCsv":return u(Pr,{...t});case"FileDownload":return u(jp,{...t});case"FileJson":return u(Sr,{...t});case"FileList":return u(ed,{...t});case"FileMusic":return u(Ke,{...t});case"FilePdf":return u(No,{...t});case"FileSpreadsheet":return u(Mr,{...t});case"FileText":return u(Et,{...t});case"FileUpload":return u(nd,{...t});case"FileXls":return u(Br,{...t});case"FileXlsx":return u(Nr,{...t});case"FileZip":return u(mt,{...t});case"Filter":return u(rd,{...t});case"Filter2":return u(Rr,{...t});case"Flag":return u(ld,{...t});case"Flag2":return u(cd,{...t});case"FlagFill":return u(id,{...t});case"Focus":return u(sd,{...t});case"Folder":return u(pd,{...t});case"FolderExport":return u(dd,{...t});case"FolderImport":return u(md,{...t});case"GraduationCap":return u(ud,{...t});case"GripVertical":return u(fd,{...t});case"Hand":return u(hd,{...t});case"HandShield":return u(gd,{...t});case"Hash":return u(vd,{...t});case"HeadsetMic":return u(Id,{...t});case"Heart":return u(bd,{...t});case"HeartFill":return u(yd,{...t});case"House":return u(xd,{...t});case"HouseLine":return u(Lr,{...t});case"Image":return u(Re,{...t});case"Image2":return u(Pd,{...t});case"ImageCheck":return u(Sd,{...t});case"ImageOff":return u(wd,{...t});case"Import":return u(Md,{...t});case"Inbox":return u(kd,{...t});case"InfoCircle":return u(Nd,{...t});case"InfoHexagon":return u(Td,{...t});case"Italic":return u(Dd,{...t});case"LayersMultiple":return u(Fd,{...t});case"LayersSingle":return u(Ad,{...t});case"Layout":return u(Od,{...t});case"Layout2":return u(_d,{...t});case"LayoutColumns":return u(Ud,{...t});case"LayoutCustom":return u(Hd,{...t});case"LayoutStuffed":return u(Vd,{...t});case"LayoutTile":return u($d,{...t});case"LifeBuoy":return u(Wd,{...t});case"Lightbulb":return u(Xd,{...t});case"Lightning":return u(Kd,{...t});case"LightningFast":return u(Zd,{...t});case"LineChartBar":return u(Qd,{...t});case"LineChartBreakoutSquare":return u(Jd,{...t});case"LineChart":return u(Yd,{...t});case"LineChartUp":return u(em,{...t});case"Lines":return u(tm,{...t});case"LinesCheck":return u(om,{...t});case"LinesPlay":return u(nm,{...t});case"Link":return u(am,{...t});case"Link2":return u(lm,{...t});case"LinkOff":return u(cm,{...t});case"ListBullet":return u(im,{...t});case"ListOrder":return u(sm,{...t});case"Lock":return u(dm,{...t});case"LockFill":return u(mm,{...t});case"LogIn":return u(fm,{...t});case"LogOut":return u(gm,{...t});case"LogOut2":return u(Im,{...t});case"MagicWand":return u(bm,{...t});case"Mail":return u(ym,{...t});case"MailOpen":return u(Cm,{...t});case"MapPin":return u(xm,{...t});case"Maximize":return u(Pm,{...t});case"Maximize2":return u(Sm,{...t});case"MessageCircle":return u(wm,{...t});case"MessageSquare":return u(km,{...t});case"MessageSquare2":return u(Bm,{...t});case"MessageXSquare":return u(Nm,{...t});case"Microphone":return u(_r,{...t});case"Minimize":return u(Rm,{...t});case"Minimize2":return u(Tm,{...t});case"MinusCircle":return u(Lm,{...t});case"Mobile":return u(Em,{...t});case"Monitor":return u(Fm,{...t});case"Monitor2":return u(Am,{...t});case"Moon":return u(Om,{...t});case"MoonCircle":return u(zm,{...t});case"Movie":return u(at,{...t});case"NavigationPointer":return u(_m,{...t});case"NotificationBox":return u(Um,{...t});case"Package":return u(Hm,{...t});case"Palette":return u(Gm,{...t});case"PasscodeLock":return u(Vm,{...t});case"Pause":return u(Ro,{...t});case"PauseCircle":return u(Wm,{...t});case"PCSetup":return u(Xm,{...t});case"Pen":return u(Zm,{...t});case"PercentageCircle":return u(Ym,{...t});case"Perspective":return u(Qm,{...t});case"PhoneCall":return u(jm,{...t});case"Pin":return u(Vr,{...t});case"Play":return u(To,{...t});case"PlayCircle":return u(tu,{...t});case"Plus":return u($r,{...t});case"PlusCircle":return u(ro,{...t});case"Printer":return u(ru,{...t});case"Pulse":return u(au,{...t});case"QuestionCircle":return u(Wr,{...t});case"Quote":return u(cu,{...t});case"RadioButton":return u(iu,{...t});case"RadioButtonFill":return u(su,{...t});case"Receipt":return u(pu,{...t});case"ReceiptCheck":return u(du,{...t});case"Redo":return u(mu,{...t});case"Refresh":return u(uu,{...t});case"Refresh2":return u(fu,{...t});case"Refresh3":return u(hu,{...t});case"Repeat":return u(gu,{...t});case"Replace":return u(vu,{...t});case"Replay":return u(Iu,{...t});case"Restore":return u(yu,{...t});case"Rocket":return u(xu,{...t});case"RoundChart":return u(Pu,{...t});case"RoundChart2":return u(Su,{...t});case"Route":return u(Mu,{...t});case"Save":return u(Bu,{...t});case"ScanDots":return u(Nu,{...t});case"Scissors":return u(qr,{...t});case"Search":return u(Ft,{...t});case"Send":return u(Ru,{...t});case"Server":return u(Tu,{...t});case"Settings":return u(Lu,{...t});case"Settings2":return u(Du,{...t});case"Share":return u(Eu,{...t});case"ShieldLightning":return u(Fu,{...t});case"ShieldPlus":return u(Ou,{...t});case"ShieldRemove":return u(_u,{...t});case"ShoppingBag":return u(Uu,{...t});case"ShoppingCart":return u(Hu,{...t});case"Shrink":return u(Gu,{...t});case"Shuffle":return u(Vu,{...t});case"SkipForward":return u($u,{...t});case"SlashCircle":return u(Wu,{...t});case"SlashOctagon":return u(qu,{...t});case"SocialAndroid":return u(Xu,{...t});case"SocialApple":return u(Ku,{...t});case"SocialGithub":return u(Zu,{...t});case"SocialGlobe":return u(Yu,{...t});case"SocialGoogle":return u(Qu,{...t});case"SocialInstagram":return u(ju,{...t});case"SocialLinkedin":return u(ef,{...t});case"SocialMastercard":return u(of,{...t});case"SocialReact":return u(nf,{...t});case"SocialVisa":return u(rf,{...t});case"SocialX":return u(af,{...t});case"Speedometer":return u(lf,{...t});case"Stairs":return u(cf,{...t});case"Star":return u(Qr,{...t});case"StarFill":return u(sf,{...t});case"StarHalf":return u(pf,{...t});case"Stars":return u(df,{...t});case"Stop":return u(Jr,{...t});case"Strikethrough":return u(mf,{...t});case"Sun":return u(uf,{...t});case"Swap":return u(ff,{...t});case"SwitchHorizontal":return u(hf,{...t});case"Table":return u(vf,{...t});case"Tag":return u(jr,{...t});case"Target":return u(If,{...t});case"Target2":return u(yf,{...t});case"TextFormat":return u(xf,{...t});case"TextFormat2":return u(Pf,{...t});case"TextHighlight":return u(Sf,{...t});case"ThumbsDown":return u(wf,{...t});case"ThumbsUp":return u(Mf,{...t});case"ThumbsUpFill":return u(kf,{...t});case"Toggle":return u(Bf,{...t});case"Translate":return u(Nf,{...t});case"Trash":return u(Ze,{...t});case"Trending":return u(Rf,{...t});case"Underline":return u(Tf,{...t});case"Undo":return u(Lf,{...t});case"Unlock":return u(Ef,{...t});case"UploadCloud":return u(Eo,{...t});case"User":return u(ta,{...t});case"UserCheck":return u(Of,{...t});case"UserDollar":return u(zf,{...t});case"UserEdit":return u(Uf,{...t});case"UserPlus":return u(Hf,{...t});case"UserRight":return u(Gf,{...t});case"UserSquare":return u(Wf,{...t});case"Users":return u(Vf,{...t});case"UsersUp":return u(qf,{...t});case"UserVoice":return u(Li,{...t});case"Video":return u(Xf,{...t});case"VideoChat":return u(Zf,{...t});case"Volume":return u(Qf,{...t});case"VolumeDown":return u(Jf,{...t});case"VolumeMute":return u(jf,{...t});case"Wrench":return u(eh,{...t});case"X":return u(Ae,{...t});case"XCircle":return u(th,{...t});case"XCircleFill":return u(oh,{...t});case"XSquare":return u(nh,{...t});case"ZoomIn":return u(rh,{...t});case"ZoomOut":return u(lh,{...t});default:return null}}var Gg=Bo,Vg={png:Re,jpg:Re,jpeg:Re,gif:Re,bmp:Re,webp:Re,svg:Re,avif:Re,heic:Re,ico:Re,tif:Re,tiff:Re,mp4:at,mov:at,webm:at,avi:at,mkv:at,m4v:at,ogv:at,mp3:Ke,wav:Ke,ogg:Ke,oga:Ke,m4a:Ke,aac:Ke,flac:Ke,weba:Ke,pdf:No,doc:Et,docx:Et,txt:Et,rtf:Et,odt:Et,json:Sr,csv:Pr,xls:Br,xlsx:Nr,ods:Mr,zip:mt,rar:mt,"7z":mt,tar:mt,gz:mt,tgz:mt};var ch=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&Vg[t]||Gg};import{cn as ih,ColorHelpers as j4}from"@cleen/ui-core";import{forwardRef as e5}from"react";import{Fragment as o5,jsx as na,jsxs as n5}from"react/jsx-runtime";var t5=e5(function({iconName:t,iconSrc:n,icon:r,iconSize:l=20,header:a,color:c,children:i,classNames:d,styles:p,...s},g){let f=j4.getComputedColor(c);return na(me,{ref:g,classNames:{...d,header:{...d?.header,title:ih("cleen-flex cleen-gap-4",d?.header?.title)}},header:{...a,title:n5(o5,{children:[na("div",{className:ih("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-border cleen-bg-background",d?.iconHolder),style:{...f&&{backgroundColor:sr(f,.85),color:f,borderColor:"transparent"},...p?.iconHolder},children:r||(t?na(ge,{name:t,className:"cleen-text-foreground",style:{width:l,height:l,...f&&{color:f}}}):n?na("img",{src:n,alt:"Icon",className:"cleen-text-foreground",style:{width:l,height:l,...f&&{color:f}}}):null)}),a?.title]})},color:c,...s,children:i&&na("div",{className:ih("cleen-flex-1",d?.content),style:p?.content,children:i})})});import{cn as Tn}from"@cleen/ui-core";import{forwardRef as r5,useMemo as a5}from"react";import{jsx as ra}from"react/jsx-runtime";var l5=r5(function({media:t,header:n,color:r,children:l,classNames:a,styles:c,...i},d){let p=a5(()=>{switch(t?.type){case"image":return ra("img",{...t,alt:t.alt??"Card media",className:Tn("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"video":return ra("video",{playsInline:!0,controls:!0,...t,className:Tn("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"iframe":return ra("iframe",{...t,title:t.title??"Card iframe",className:Tn("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});default:return null}},[t,a?.media,c?.media]);return ra(me,{ref:d,color:r,classNames:{...a,container:Tn("cleen-pt-0",a?.container),header:{...a?.header,content:Tn("cleen-p-0",a?.header?.content)}},header:{...n,...p&&{content:ra("div",{className:Tn("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",a?.media?.container),style:c?.media?.container,children:p})}},...i,children:l})});import{cn as aa}from"@cleen/ui-core";import{jsx as Yl,jsxs as c5}from"react/jsx-runtime";var oe=({className:e,classNames:t,style:n,styles:r,infoMessage:l,errorMessage:a,subtitle:c,...i})=>Yl("div",{className:aa("cleen",e),style:n,children:c5("div",{className:aa(t?.container),style:r?.container,...i,children:[l&&Yl("div",{className:aa("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:r?.infoMessage,role:"note",children:l}),a&&Yl("div",{className:aa("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:r?.errorMessage,role:"alert",children:a}),c&&Yl("div",{className:aa("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:r?.subtitle,children:c})]})});import{cn as la}from"@cleen/ui-core";import{jsx as ca,jsxs as i5}from"react/jsx-runtime";var re=({required:e=!1,tooltip:t,children:n,className:r,classNames:l,style:a,styles:c,...i})=>ca("div",{className:la("cleen",r),style:a,children:i5("label",{...i,className:la("cleen-w-full cleen-flex cleen-gap-1 cleen-items-center cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-leading-6",l?.container),style:c?.container,children:[ca("div",{className:la({"cleen-flex-1":!e&&!t},l?.label),style:c?.label,children:n}),e&&ca("span",{className:la("cleen-text-primary",l?.required),style:c?.required,children:"*"}),t&&ca(ye,{hasArrow:!0,placement:"top",label:t,color:"rgb(var(--cleen-neutral-600))",...l?.tooltip,style:c?.tooltip?.style,styles:{...c?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...c?.tooltip?.styles?.labelContainer}},children:ca(Wr,{className:la("cleen-size-3 cleen-text-neutral-500 hover:cleen-text-neutral-900 cleen-transition-colors cleen-cursor-help",l?.questionIcon),style:c?.questionIcon})})]})});import{cn as Ot}from"@cleen/ui-core";import{forwardRef as s5,useEffect as p5,useId as d5,useMemo as m5,useState as $g}from"react";import{jsx as co,jsxs as Ql}from"react/jsx-runtime";var ue=s5(function({name:t,id:n,type:r,label:l,labelTooltip:a,defaultValue:c,value:i,files:d,disabled:p,required:s,className:g,classNames:f,style:b,styles:I,autoComplete:h="off",isFocusedBorder:v,maxLength:C,minLength:x,maxLengthLabelThreshold:y=.5,uploadLabel:P="Choose a file",leftIcon:w,rightIcon:L,topRightIcon:B,inputOverlay:M,infoLabels:D,maxLengthLabel:N,minLengthLabel:S,onChange:R,...F},T){let k=i!==void 0||d!==void 0,[_,E]=$g(c??""),[O,A]=$g(null),U=k?i:_,G=k?d:O;p5(()=>{k||E(i??c??"")},[i,c,k]);let W=z=>{let Y=z.target.value;if(r==="file"&&z.target.files){k||A(z.target.files),R?.(z);return}(!C||Y.length<=C)&&(k||E(Y),R?.(z))},q=m5(()=>x&&S&&(U?.toString()?.length??0)<x?S(x-(U?.toString()?.length??0)):!C||!N||(U?.toString()?.length??0)/C<y?D?.subtitle:N?.(C-(U?.toString()?.length??0)),[U,C,y,D?.subtitle]),H=d5(),V=!!(D?.errorMessage||D?.infoMessage||q),Q=V?`${H}-info`:void 0;return co("div",{className:Ot("cleen",g),style:b,children:Ql("div",{className:Ot("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-normal",f?.container),style:I?.container,children:[(l||B)&&Ql("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[co(re,{htmlFor:n||t,required:s,tooltip:a,className:Ot("cleen-w-full",f?.label?.className),classNames:f?.label?.classNames,...I?.label,children:l}),B]}),Ql("label",{className:Ot("cleen-relative cleen-flex cleen-items-stretch cleen-bg-background cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-all cleen-duration-200 cleen-overflow-hidden focus-within:cleen-ring-4 focus-within:cleen-ring-primary-100 focus-within:cleen-ring-offset-0",{"has-[:focus]:cleen-border has-[:focus]:cleen-border-primary/30":v},p&&"cleen-bg-muted",{"cleen-cursor-pointer":r==="file"&&!p},D?.errorMessage?["cleen-border-error/70 focus-within:cleen-ring-error-bg",!p&&"hover:cleen-border-error"]:["cleen-border-border focus-within:cleen-border-primary-400",!p&&"hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary"],f?.inputContainer),style:I?.inputContainer,children:[w&&co("div",{className:Ot("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-neutral-400":"cleen-text-muted-foreground",f?.leftIconContainer),style:I?.leftIconContainer,children:w}),Ql("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[co("input",{id:n||t,name:t,type:r,disabled:p,maxLength:C,autoComplete:h,value:U,className:Ot("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-neutral-400 sm:cleen-text-sm focus:cleen-ring-transparent focus:cleen-outline-none cleen-my-auto",w?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":w,"cleen-rounded-r-none":L,"cleen-hidden":r==="file"},p?"cleen-text-neutral-400":"cleen-text-foreground",f?.input),style:I?.input,onChange:W,required:s,"aria-invalid":D?.errorMessage?!0:void 0,"aria-describedby":Q,ref:T,...F}),M&&co("div",{className:Ot("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",w?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",f?.inputOverlay),style:I?.inputOverlay,children:M}),r==="file"&&co("p",{className:Ot("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",p?"cleen-text-neutral-400":"cleen-text-muted-foreground",G&&G.length>0&&"cleen-text-foreground"),children:G&&G.length>0?Array.from(G).map(z=>z.name).join(", "):P})]}),L&&co("div",{className:Ot("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-neutral-400":"cleen-text-muted-foreground",f?.rightIconContainer),style:I?.rightIconContainer,children:L})]}),V&&co(oe,{id:Q,...D,subtitle:q})]})})});import{cn as ia,useOutsideClick as u5}from"@cleen/ui-core";import{forwardRef as f5,useEffect as Wg,useImperativeHandle as h5,useMemo as g5,useRef as v5,useState as Jl}from"react";import{jsx as sa,jsxs as I5}from"react/jsx-runtime";var sh=f5(function({value:t,defaultValue:n,defaultIsEditing:r=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:i,canEdit:d=!0,onSave:p,onCancel:s,onChange:g,inputProps:f,blurOnOutsideClick:b=!0,saveOnBlur:I=!0,isLoading:h,customLoader:v=sa(le,{}),selectAllOnEdit:C=!1,renderText:x,className:y,classNames:P,style:w,styles:L,...B},M){let D=t!==void 0,[N,S]=Jl(n??""),R=D?t??"":N,[F,T]=Jl(!1),k=h??F,_=g5(()=>typeof x=="function"?x(R):x||R||i||c,[R,x,c,i]),[E,O]=Jl(r),A=l!==void 0,U=A?l:E,[G,W]=Jl(R),q=v5(null);h5(M,()=>({...q.current,save:V,cancel:H})),Wg(()=>{D||S(n??"")},[n,D]),Wg(()=>{U||W(R)},[R,U]);let H=async()=>{A||O(!1),a?.(!1),W(R),await s?.()},V=async()=>{if(!k){if(R===G){await s?.(),A||O(!1),a?.(!1);return}T(!0),D||S(G);try{await p?.(G),A||O(!1),a?.(!1)}finally{T(!1)}}},Q=async z=>{z.key==="Enter"&&(z.preventDefault(),await V()),z.key==="Escape"&&(z.stopPropagation(),z.preventDefault(),await H()),f?.onKeyDown?.(z)};return u5({refs:[q],enabled:b&&U,handler:async()=>{I?await V():await H()}}),sa("div",{className:ia("cleen",y),style:w,ref:q,...B,children:U?I5("div",{className:ia("cleen-relative cleen-h-full",P?.container),style:L?.container,children:[sa(ue,{value:G,onChange:z=>{W(z.target.value),g?.(z.target.value)},autoFocus:!0,placeholder:c,className:P?.input?.className,classNames:{...P?.input?.classNames,inputContainer:ia("cleen-border-primary hover:cleen-border-primary/60",P?.input?.classNames?.inputContainer)},...L?.input,...f,onFocus:z=>{f?.onFocus?.(z),C&&z.target.select()},disabled:k||f?.disabled,onKeyDown:Q}),k&&sa("div",{className:ia("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:L?.loaderContainer,children:v})]}):sa("div",{onClick:()=>{d&&(A||O(!0),a?.(!0))},className:ia("cleen-min-h-6 cleen-text-foreground",d&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!R&&"cleen-text-muted-foreground",P?.preview),style:L?.preview,children:_})})});import{cn as Ln}from"@cleen/ui-core";import{forwardRef as b5,useEffect as qg,useId as y5,useMemo as C5,useRef as x5,useState as P5}from"react";import{jsx as Fo,jsxs as ph}from"react/jsx-runtime";var dh=b5(function({name:t,id:n,value:r,defaultValue:l,label:a,labelTooltip:c,disabled:i,required:d,infoLabels:p,topRightElement:s,labelRightElement:g,textareaOverlay:f,onChange:b,minHeight:I,maxHeight:h=200,autoResize:v=!0,maxLength:C,minLength:x,maxLengthLabelThreshold:y=.5,maxLengthLabel:P,minLengthLabel:w,className:L,classNames:B,style:M,styles:D,...N},S){let R=r!==void 0,[F,T]=P5(typeof l=="string"?l:""),k=x5(null),_=S??k,E=R?r:F;qg(()=>{R||T(r??(typeof l=="string"?l:""))},[r,l,R]);let O=z=>{z.style.height="auto";let Y=Math.min(z.scrollHeight,h);z.style.height=`${Y}px`},A=z=>{O(z.target)};qg(()=>{!v||!k.current||O(k.current)},[v,E,h]);let U=z=>{z.preventDefault()},G=z=>{z.preventDefault();let Y=z.dataTransfer?.getData("text/plain");R?b?.(`${r??""}${Y}`):(T(de=>`${de}${Y}`),b?.(`${F}${Y}`))},W=z=>{let Y=z.target.value;(!C||Y.length<=C)&&(R||T(Y),b?.(Y),v&&A(z))},q=C5(()=>x&&w&&(E?.length??0)<x?w(x-(E?.length??0)):!C||!P||(E?.toString()?.length??0)/C<y?p?.subtitle:P?.(C-(E?.toString()?.length??0)),[E,C,y,p?.subtitle]),H=y5(),V=!!(p?.errorMessage||p?.infoMessage||q),Q=V?`${H}-info`:void 0;return Fo("div",{className:Ln("cleen",L),style:M,children:ph("div",{className:Ln("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",B?.container),style:D?.container,children:[(a||g)&&ph("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[a&&Fo(re,{htmlFor:n||t,required:d,tooltip:c,className:Ln("cleen-w-full",B?.label?.className),classNames:B?.label?.classNames,...D?.label,children:a}),g&&Fo("div",{className:"cleen-ml-auto",children:g})]}),ph("div",{className:Ln("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/70 hover:cleen-border-error":"cleen-border-border hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary",B?.textareaContainer),style:D?.textareaContainer,children:[s&&Fo("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:s}),f&&Fo("div",{className:Ln("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",i?"cleen-bg-muted":"cleen-bg-background"),children:f}),Fo("textarea",{id:n||t,name:t,ref:_,disabled:i,value:E,minLength:x,maxLength:C,"aria-invalid":p?.errorMessage?!0:void 0,"aria-describedby":Q,className:Ln("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-muted-foreground sm:cleen-text-sm cleen-text-base",i?"cleen-bg-muted cleen-text-neutral-400":"cleen-bg-background cleen-text-foreground",B?.textarea),style:{...I&&{minHeight:`${I}px`},...D?.textarea},onFocus:z=>z.currentTarget.setSelectionRange(z.currentTarget.value.length,z.currentTarget.value.length),onDragOver:U,onDrop:G,...N,onChange:W})]}),V&&Fo(oe,{id:Q,...p,subtitle:q})]})})});import{cn as pa,useOutsideClick as S5}from"@cleen/ui-core";import{forwardRef as w5,useEffect as Xg,useImperativeHandle as M5,useMemo as k5,useRef as B5,useState as jl}from"react";import{jsx as da,jsxs as N5}from"react/jsx-runtime";var mh=w5(function({value:t,defaultValue:n,defaultIsEditing:r=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:i,canEdit:d=!0,onSave:p,onCancel:s,onChange:g,textAreaProps:f,blurOnOutsideClick:b=!0,saveOnBlur:I=!0,isLoading:h,customLoader:v=da(le,{size:"md"}),selectAllOnEdit:C=!1,renderText:x,className:y,classNames:P,style:w,styles:L,...B},M){let D=t!==void 0,[N,S]=jl(n??""),R=D?t??"":N,[F,T]=jl(!1),k=h??F,_=k5(()=>typeof x=="function"?x(R):x||R||i||c,[R,x,c,i]),[E,O]=jl(r),A=l!==void 0,U=A?l:E,[G,W]=jl(R),q=B5(null);M5(M,()=>({...q.current,save:V,cancel:H})),Xg(()=>{D||S(n??"")},[n,D]),Xg(()=>{U||W(R)},[R,U]);let H=async()=>{A||O(!1),a?.(!1),W(R),await s?.()},V=async()=>{if(!k){if(R===G){await s?.(),A||O(!1),a?.(!1);return}T(!0),D||S(G);try{await p?.(G),A||O(!1),a?.(!1)}finally{T(!1)}}},Q=async z=>{z.key==="Escape"&&(z.preventDefault(),z.stopPropagation(),await H()),z.key==="Enter"&&(z.metaKey||z.ctrlKey)&&(z.preventDefault(),await V()),f?.onKeyDown?.(z)};return S5({refs:[q],enabled:b&&U,handler:async()=>{I?await V():await H()}}),da("div",{className:pa("cleen",y),style:w,ref:q,...B,children:U?N5("div",{className:pa("cleen-relative cleen-h-full",P?.container),style:L?.container,children:[da(dh,{value:G,onChange:z=>{W(z),g?.(z)},autoFocus:!0,placeholder:c,className:P?.textArea?.className,classNames:{...P?.textArea?.classNames,textareaContainer:pa("cleen-border-primary hover:cleen-border-primary/60",P?.textArea?.classNames?.textareaContainer)},...L?.textArea,...f,onFocus:z=>{f?.onFocus?.(z),C&&z.target.select()},disabled:k||f?.disabled,onKeyDown:Q}),k&&da("div",{className:pa("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:L?.loaderContainer,children:v})]}):da("div",{onClick:()=>{d&&(A||O(!0),a?.(!0))},className:pa("cleen-min-h-6 cleen-text-foreground cleen-whitespace-pre-wrap",d&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!R&&"cleen-text-muted-foreground",P?.preview),style:L?.preview,children:_})})});import"@cleen/ui-core";import{forwardRef as R5}from"react";import{Fragment as L5,jsx as uh,jsxs as D5}from"react/jsx-runtime";var T5=R5(function({header:t,color:n,children:r,description:l,onSave:a,isDescriptionHidden:c=!1,titleProps:i,descriptionProps:d,classNames:p,styles:s,...g},f){let b=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return uh(me,{ref:f,color:n,header:{...t,title:uh(sh,{value:b??"",onSave:async I=>{await a?.("title",I)},...p?.titleTextInput,...s?.titleTextInput,...i})},classNames:p,styles:s,...g,children:(!c||r)&&D5(L5,{children:[uh(mh,{value:l??"",onSave:async I=>{await a?.("description",I)},...d,textAreaProps:d?.textAreaProps,...p?.descriptionTextInput,...s?.descriptionTextInput}),r]})})});import{cn as ma}from"@cleen/ui-core";import{forwardRef as E5}from"react";import{jsx as ec}from"react/jsx-runtime";var F5=E5(function({type:t="button",label:n,onClick:r,containerRef:l,className:a,classNames:c,style:i,styles:d,disabled:p=!1,loaderOptions:s,isLoading:g=!1,variant:f="primary",children:b,...I},h){return ec("div",{className:ma("cleen",a),style:i,ref:l,children:ec("button",{type:t,ref:h,disabled:g||p,onClick:r,className:ma("cleen-size-full",c?.container),style:d?.container,...I,children:ec(me,{p:0,className:ma("cleen-size-full cleen-group",c?.card?.className),classNames:{...c?.card?.classNames,container:ma("focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2 cleen-size-full cleen-font-semibold cleen-transition-colors cleen-duration-200",m1[f],c?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":p||g}),childrenContainer:ma("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",c?.card?.classNames?.childrenContainer)},"aria-disabled":p||g,...d?.card,children:g?ec(le,{size:"lg",...s,color:s?.color||u1[f],...c?.loader,...d?.loader}):n||b})})})});import{cn as ua,ColorHelpers as Kg,formatAudioTime as Zg}from"@cleen/ui-core";import{useWavesurfer as A5}from"@wavesurfer/react";import{forwardRef as O5,useCallback as z5,useRef as _5}from"react";import{jsx as fa,jsxs as Yg}from"react/jsx-runtime";var U5={waveColor:Kg.getComputedColor("var(--cleen-neutral-200)"),progressColor:Kg.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},H5=O5(function({url:t,options:n,className:r,classNames:l,style:a,styles:c,...i},d){let p=_5(null),{wavesurfer:s,isPlaying:g,isReady:f,currentTime:b}=A5({...U5,...n,container:p,url:t}),I=f?s?.getDuration()??0:0,h=z5(()=>{s?.playPause()},[s]);return fa("div",{ref:d,className:ua("cleen",r),style:a,...i,children:Yg("div",{className:ua("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-rounded-xl cleen-bg-surface cleen-border cleen-border-border",l?.container),style:c?.container,children:[fa(J,{type:"button",onClick:h,disabled:!f,"aria-label":g?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:ua("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...c?.playButton,children:g?fa(Ro,{className:"cleen-fill-current"}):fa(To,{className:"cleen-fill-current"})}),fa("div",{ref:p,className:ua("cleen-flex-1 cleen-min-w-0",l?.waveform),style:c?.waveform}),Yg("span",{className:ua("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",l?.timestamp),style:c?.timestamp,children:[Zg(b),"\xA0/\xA0",Zg(I)]})]})})});import{ColorHelpers as G5}from"@cleen/ui-core";var Qg=G5.getComputedColor("var(--cleen-primary)"),Jg="rgba(var(--cleen-primary), 0.15)",jg={waveColor:Qg,progressColor:Qg,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var ev={startRecording:"Click to start recording"};import{cn as $e,formatAudioTime as ic,trimBlob as $5}from"@cleen/ui-core";import{useWavesurfer as W5}from"@wavesurfer/react";import{forwardRef as q5,useCallback as En,useEffect as bh,useMemo as X5,useRef as nv,useState as sc}from"react";function fh(e,t,n,r){return new(n||(n=Promise))((function(l,a){function c(p){try{d(r.next(p))}catch(s){a(s)}}function i(p){try{d(r.throw(p))}catch(s){a(s)}}function d(p){var s;p.done?l(p.value):(s=p.value,s instanceof n?s:new n((function(g){g(s)}))).then(c,i)}d((r=r.apply(e,t||[])).next())}))}var tc=class{constructor(){this.listeners={}}on(t,n,r){if(this.listeners[t]||(this.listeners[t]=new Set),r?.once){let l=(...a)=>{this.un(t,l),n(...a)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var r;(r=this.listeners[t])===null||r===void 0||r.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((r=>r(...n)))}},gh=class extends tc{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},vh=class extends tc{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let t=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(t))};t()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}},hh=100,V5=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],oc=class e extends gh{constructor(t){var n,r,l,a,c,i;super(Object.assign(Object.assign({},t),{audioBitsPerSecond:(n=t.audioBitsPerSecond)!==null&&n!==void 0?n:128e3,scrollingWaveform:(r=t.scrollingWaveform)!==null&&r!==void 0&&r,scrollingWaveformWindow:(l=t.scrollingWaveformWindow)!==null&&l!==void 0?l:5,continuousWaveform:(a=t.continuousWaveform)!==null&&a!==void 0&&a,renderRecordedAudio:(c=t.renderRecordedAudio)===null||c===void 0||c,mediaRecorderTimeslice:(i=t.mediaRecorderTimeslice)!==null&&i!==void 0?i: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 vh,this.subscriptions.push(this.timer.on("tick",(()=>{let d=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+d,this.emit("record-progress",this.duration)})))}static create(t){return new e(t||{})}renderMicStream(t){var n;let r=new AudioContext,l=r.createMediaStreamSource(t),a=r.createAnalyser();l.connect(a),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(a.fftSize=32);let c=a.frequencyBinCount,i=new Float32Array(c),d=0;this.wavesurfer&&((n=this.originalOptions)!==null&&n!==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,b;if(!this.isWaveformPaused){if(a.getFloatTimeDomainData(i),this.options.scrollingWaveform){let I=Math.floor((this.options.scrollingWaveformWindow||0)*hh),h=0;for(let C=0;C<c;C++){let x=Math.abs(i[C]);x>h&&(h=x)}this.dataWindow||(this.dataWindow=new Float32Array(I));let v=new Float32Array(I);if(this.dataWindow&&this.dataWindow.length>0){let C=I-1,x=this.dataWindow.slice(-C);v.set(x,0)}v[I-1]=h,this.dataWindow=v}else if(this.options.continuousWaveform){if(!this.dataWindow){let h=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*hh):((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 I=0;for(let h=0;h<c;h++){let v=Math.abs(i[h]);v>I&&(I=v)}if(d+1>this.dataWindow.length){let h=new Float32Array(2*this.dataWindow.length);h.set(this.dataWindow,0),this.dataWindow=h}this.dataWindow[d]=I,d++}else this.dataWindow=i;if(this.wavesurfer){let I=((b=(f=this.dataWindow)===null||f===void 0?void 0:f.length)!==null&&b!==void 0?b:0)/hh;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((h=>{console.error("Error rendering real-time recording data:",h)}))}}}),10);return{onDestroy:()=>{clearInterval(p),l?.disconnect(),r?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return fh(this,void 0,void 0,(function*(){let n;this.micStream&&this.stopMic();try{n=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(l){throw new Error("Error accessing the microphone: "+l.message)}let r=this.renderMicStream(n);return this.micStream=r,this.unsubscribeDestroy=this.once("destroy",r.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",r.onEnd),this.stream=n,n}))}stopMic(){var t,n,r;(t=this.micStream)===null||t===void 0||t.onDestroy(),(n=this.unsubscribeDestroy)===null||n===void 0||n.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((l=>l.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(t){return fh(this,void 0,void 0,(function*(){let n=this.stream||(yield this.startMic(t));this.dataWindow=null;let r=this.mediaRecorder||new MediaRecorder(n,{mimeType:this.options.mimeType||V5.find((c=>MediaRecorder.isTypeSupported(c))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=r,this.stopRecording();let l=[];r.ondataavailable=c=>{c.data.size>0&&l.push(c.data),this.emit("record-data-available",c.data)};let a=c=>{var i;let d=new Blob(l,{type:r.mimeType});this.emit(c,d),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(d),(i=this.wavesurfer)===null||i===void 0||i.load(this.recordedBlobUrl))};r.onpause=()=>a("record-pause"),r.onstop=()=>a("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 t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="recording"}isPaused(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="paused"}isActive(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)!=="inactive"}stopRecording(){var t;this.isActive()&&((t=this.mediaRecorder)===null||t===void 0||t.stop(),this.timer.stop())}pauseRecording(){var t,n;this.isRecording()&&(this.isWaveformPaused=!0,(t=this.mediaRecorder)===null||t===void 0||t.requestData(),(n=this.mediaRecorder)===null||n===void 0||n.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var t;this.isPaused()&&(this.isWaveformPaused=!1,(t=this.mediaRecorder)===null||t===void 0||t.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit("record-resume"))}static getAvailableAudioDevices(){return fh(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((t=>t.filter((n=>n.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 ac=class{constructor(){this.listeners={}}on(t,n,r){if(this.listeners[t]||(this.listeners[t]=new Set),r?.once){let l=(...a)=>{this.un(t,l),n(...a)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var r;(r=this.listeners[t])===null||r===void 0||r.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((r=>r(...n)))}},Ih=class extends ac{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}};function tv(e,t){let n=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[r,l]of Object.entries(t))if(r==="children"&&l)for(let[a,c]of Object.entries(l))c instanceof Node?n.appendChild(c):typeof c=="string"?n.appendChild(document.createTextNode(c)):n.appendChild(tv(a,c));else r==="style"?Object.assign(n.style,l):r==="textContent"?n.textContent=l:n.setAttribute(r,l.toString());return n}function ha(e,t,n){let r=tv(e,t||{});return n?.appendChild(r),r}function ov(e){let t=e,n=new Set;return{get value(){return t},set(r){Object.is(t,r)||(t=r,n.forEach((l=>l(t))))},update(r){this.set(r(t))},subscribe:r=>(n.add(r),()=>n.delete(r))}}function nc(e,t){let n,r=()=>{n&&(n(),n=void 0),n=e()},l=t.map((a=>a.subscribe(r)));return r(),()=>{n&&(n(),n=void 0),l.forEach((a=>a()))}}function Dn(e,t){let n=ov(null),r=l=>{n.set(l)};return e.addEventListener(t,r),n._cleanup=()=>{e.removeEventListener(t,r)},n}function Ao(e){let t=e._cleanup;typeof t=="function"&&t()}function rc(e,t={}){let{threshold:n=3,mouseButton:r=0,touchDelay:l=100}=t,a=ov(null),c=new Map,i=matchMedia("(pointer: coarse)").matches,d=()=>{},p=s=>{if(s.button!==r||(c.set(s.pointerId,s),c.size>1))return;let g=s.clientX,f=s.clientY,b=!1,I=Date.now(),h=e.getBoundingClientRect(),{left:v,top:C}=h,x=B=>{if(B.defaultPrevented||c.size>1||i&&Date.now()-I<l)return;let M=B.clientX,D=B.clientY,N=M-g,S=D-f;(b||Math.abs(N)>n||Math.abs(S)>n)&&(B.preventDefault(),B.stopPropagation(),b||(a.set({type:"start",x:g-v,y:f-C}),b=!0),a.set({type:"move",x:M-v,y:D-C,deltaX:N,deltaY:S}),g=M,f=D)},y=B=>{if(c.delete(B.pointerId),b){let M=B.clientX,D=B.clientY;a.set({type:"end",x:M-v,y:D-C})}d()},P=B=>{c.delete(B.pointerId),B.relatedTarget&&B.relatedTarget!==document.documentElement||y(B)},w=B=>{b&&(B.stopPropagation(),B.preventDefault())},L=B=>{B.defaultPrevented||c.size>1||b&&B.preventDefault()};document.addEventListener("pointermove",x),document.addEventListener("pointerup",y),document.addEventListener("pointerout",P),document.addEventListener("pointercancel",P),document.addEventListener("touchmove",L,{passive:!1}),document.addEventListener("click",w,{capture:!0}),d=()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",y),document.removeEventListener("pointerout",P),document.removeEventListener("pointercancel",P),document.removeEventListener("touchmove",L),setTimeout((()=>{document.removeEventListener("click",w,{capture:!0})}),10)}};return e.addEventListener("pointerdown",p),{signal:a,cleanup:()=>{d(),e.removeEventListener("pointerdown",p),c.clear(),Ao(a)}}}var lc=class extends ac{constructor(t,n,r=0){var l,a,c,i,d,p,s,g,f,b;super(),this.totalDuration=n,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=t.id||`region-${Math.random().toString(32).slice(2)}`,this.start=this.clampPosition(t.start),this.end=this.clampPosition((l=t.end)!==null&&l!==void 0?l:t.start),this.drag=(a=t.drag)===null||a===void 0||a,this.resize=(c=t.resize)===null||c===void 0||c,this.resizeStart=(i=t.resizeStart)===null||i===void 0||i,this.resizeEnd=(d=t.resizeEnd)===null||d===void 0||d,this.color=(p=t.color)!==null&&p!==void 0?p:"rgba(0, 0, 0, 0.1)",this.minLength=(s=t.minLength)!==null&&s!==void 0?s:this.minLength,this.maxLength=(g=t.maxLength)!==null&&g!==void 0?g:this.maxLength,this.channelIdx=(f=t.channelIdx)!==null&&f!==void 0?f:-1,this.contentEditable=(b=t.contentEditable)!==null&&b!==void 0?b:this.contentEditable,this.element=this.initElement(),this.setContent(t.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(t){return Math.max(0,Math.min(this.totalDuration,t))}setPart(){var t;let n=this.start===this.end;(t=this.element)===null||t===void 0||t.setAttribute("part",`${n?"marker":"region"} ${this.id}`)}addResizeHandles(t){let n={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},r=ha("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},n),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},t),l=ha("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},n),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},t),a=rc(r,{threshold:1}),c=rc(l,{threshold:1}),i=nc((()=>{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]),d=nc((()=>{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((()=>{i(),d(),a.cleanup(),c.cleanup()}))}removeResizeHandles(t){let n=t.querySelector('[part*="region-handle-left"]'),r=t.querySelector('[part*="region-handle-right"]');n&&t.removeChild(n),r&&t.removeChild(r)}initElement(){if(this.isRemoved)return null;let t=this.start===this.end,n=0,r=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(r=100/this.numberOfChannels,n=r*this.channelIdx);let l=ha("div",{style:{position:"absolute",top:`${n}%`,height:`${r}%`,backgroundColor:t?"none":this.color,borderLeft:t?"2px solid "+this.color:"none",borderRadius:"2px",boxSizing:"border-box",transition:"background-color 0.2s ease",cursor:this.drag?"grab":"default",pointerEvents:"all"}});return!t&&this.resize&&this.addResizeHandles(l),l}renderPosition(){if(!this.element)return;let t=this.start/this.totalDuration,n=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*t+"%",this.element.style.right=100*n+"%"}toggleCursor(t){var n;this.drag&&(!((n=this.element)===null||n===void 0)&&n.style)&&(this.element.style.cursor=t?"grabbing":"grab")}initMouseEvents(){let{element:t}=this;if(!t)return;let n=Dn(t,"click"),r=Dn(t,"mouseenter"),l=Dn(t,"mouseleave"),a=Dn(t,"dblclick"),c=Dn(t,"pointerdown"),i=Dn(t,"pointerup"),d=n.subscribe((v=>v&&this.emit("click",v))),p=r.subscribe((v=>v&&this.emit("over",v))),s=l.subscribe((v=>v&&this.emit("leave",v))),g=a.subscribe((v=>v&&this.emit("dblclick",v))),f=c.subscribe((v=>v&&this.toggleCursor(!0))),b=i.subscribe((v=>v&&this.toggleCursor(!1)));this.subscriptions.push((()=>{d(),p(),s(),g(),f(),b(),Ao(n),Ao(r),Ao(l),Ao(a),Ao(c),Ao(i)}));let I=rc(t),h=nc((()=>{let v=I.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")))}),[I.signal]);this.subscriptions.push((()=>{h(),I.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(t,n,r){var l;if(!(!((l=this.element)===null||l===void 0)&&l.parentElement))return;let{width:a}=this.element.parentElement.getBoundingClientRect(),c=t/a*this.totalDuration,i=n&&n!=="start"?this.start:this.start+c,d=n&&n!=="end"?this.end:this.end+c,p=r!==void 0;p&&this.updatingSide&&this.updatingSide!==n&&(this.updatingSide==="start"?i=r:d=r),i=Math.max(0,i),d=Math.min(this.totalDuration,d);let s=d-i;this.updatingSide=n;let g=s>=this.minLength&&s<=this.maxLength;i<=d&&(g||p)&&(this.start=i,this.end=d,this.renderPosition(),this.emit("update",n))}onMove(t){this.drag&&this._onUpdate(t)}onResize(t,n){this.resize&&(this.resizeStart||n!=="start")&&(this.resizeEnd||n!=="end")&&this._onUpdate(t,n)}onEndResizing(t){this.resize&&(this.emit("update-end",t),this.updatingSide=void 0)}onContentClick(t){t.stopPropagation(),t.target.focus(),this.emit("click",t)}onContentBlur(){this.emit("update-end")}_setTotalDuration(t){this.totalDuration=t,this.renderPosition()}play(t){this.emit("play",t&&this.end!==this.start?this.end:void 0)}getContent(t=!1){var n;return t?this.content||void 0:this.element instanceof HTMLElement?((n=this.content)===null||n===void 0?void 0:n.innerHTML)||void 0:""}setContent(t){var n;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(n=this.content)===null||n===void 0||n.remove(),t){if(typeof t=="string"){let r=this.start===this.end;this.content=ha("div",{style:{padding:`0.2em ${r?.2:.4}em`,display:"inline-block"},textContent:t})}else this.content=t;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(t){var n,r;if(this.element){if(t.color&&(this.color=t.color,this.element.style.backgroundColor=this.color),t.drag!==void 0&&(this.drag=t.drag,this.element.style.cursor=this.drag?"grab":"default"),t.start!==void 0||t.end!==void 0){let l=this.start===this.end;this.start=this.clampPosition((n=t.start)!==null&&n!==void 0?n:this.start),this.end=this.clampPosition((r=t.end)!==null&&r!==void 0?r:l?this.start:this.end),this.renderPosition(),this.setPart()}if(t.content&&this.setContent(t.content),t.id&&(this.id=t.id,this.setPart()),t.resize!==void 0&&t.resize!==this.resize){let l=this.start===this.end;this.resize=t.resize,this.resize&&!l?this.addResizeHandles(this.element):this.removeResizeHandles(this.element)}t.resizeStart!==void 0&&(this.resizeStart=t.resizeStart),t.resizeEnd!==void 0&&(this.resizeEnd=t.resizeEnd)}}remove(){this.isRemoved=!0,this.emit("remove"),this.subscriptions.forEach((t=>t())),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()}},cc=class e extends Ih{constructor(t){super(t),this.regions=[],this.regionsContainer=this.initRegionsContainer()}static create(t){return new e(t)}onInit(){if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");this.wavesurfer.getWrapper().appendChild(this.regionsContainer),this.subscriptions.push(this.wavesurfer.on("ready",(n=>{this.regions.forEach((r=>r._setTotalDuration(n)))})));let t=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(n=>{let r=this.regions.filter((l=>l.start<=n&&(l.end===l.start?l.start+.05:l.end)>=n));r.forEach((l=>{t.includes(l)||this.emit("region-in",l)})),t.forEach((l=>{r.includes(l)||this.emit("region-out",l)})),t=r})))}initRegionsContainer(){return ha("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(t){t.content&&setTimeout((()=>{let n=t.content,r=n.getBoundingClientRect(),l=this.regions.map((a=>{if(a===t||!a.content)return 0;let c=a.content.getBoundingClientRect();return r.left<c.left+c.width&&c.left<r.left+r.width?c.height:0})).reduce(((a,c)=>a+c),0);n.style.marginTop=`${l}px`}),10)}adjustScroll(t){var n,r;if(!t.element)return;let l=(r=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper())===null||r===void 0?void 0:r.parentElement;if(!l)return;let{clientWidth:a,scrollWidth:c}=l;if(c<=a)return;let i=l.getBoundingClientRect(),d=t.element.getBoundingClientRect(),p=d.left-i.left,s=d.right-i.left;p<0?l.scrollLeft+=p:s>a&&(l.scrollLeft+=s-a)}virtualAppend(t,n,r){let l=()=>{if(!this.wavesurfer)return;let a=this.wavesurfer.getWidth(),c=this.wavesurfer.getScroll(),i=n.clientWidth,d=this.wavesurfer.getDuration(),p=Math.round(t.start/d*i),s=p+(Math.round((t.end-t.start)/d*i)||1)>c&&p<c+a;s&&!r.parentElement?n.appendChild(r):!s&&r.parentElement&&r.remove()};setTimeout((()=>{if(!this.wavesurfer||!t.element)return;l();let a=this.wavesurfer.on("scroll",l),c=this.wavesurfer.on("zoom",l),i=this.wavesurfer.on("resize",l);this.subscriptions.push(a,c,i),t.once("remove",(()=>{a(),c(),i()}))}),0)}saveRegion(t){if(!t.element)return;this.virtualAppend(t,this.regionsContainer,t.element),this.avoidOverlapping(t),this.regions.push(t);let n=[t.on("update",(r=>{r||this.adjustScroll(t),this.emit("region-update",t,r)})),t.on("update-end",(r=>{this.avoidOverlapping(t),this.emit("region-updated",t,r)})),t.on("play",(r=>{var l;(l=this.wavesurfer)===null||l===void 0||l.play(t.start,r)})),t.on("click",(r=>{this.emit("region-clicked",t,r)})),t.on("dblclick",(r=>{this.emit("region-double-clicked",t,r)})),t.on("content-changed",(()=>{this.emit("region-content-changed",t)})),t.once("remove",(()=>{n.forEach((r=>r())),this.regions=this.regions.filter((r=>r!==t)),this.emit("region-removed",t)}))];this.subscriptions.push(...n),this.emit("region-created",t)}addRegion(t){var n,r;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let l=this.wavesurfer.getDuration(),a=(r=(n=this.wavesurfer)===null||n===void 0?void 0:n.getDecodedData())===null||r===void 0?void 0:r.numberOfChannels,c=new lc(t,l,a);return this.emit("region-initialized",c),l?this.saveRegion(c):this.subscriptions.push(this.wavesurfer.once("ready",(i=>{c._setTotalDuration(i),this.saveRegion(c)}))),c}enableDragSelection(t,n=3){var r;let l=(r=this.wavesurfer)===null||r===void 0?void 0:r.getWrapper();if(!(l&&l instanceof HTMLElement))return()=>{};let a=null,c=0,i=0,d=rc(l,{threshold:n}),p=nc((()=>{var s,g;let f=d.signal.value;if(f)if(f.type==="start"){if(c=f.x,!this.wavesurfer)return;let b=this.wavesurfer.getDuration(),I=(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();i=c/h*b;let v=f.x/h*b,C=(f.x+5)/h*b;a=new lc(Object.assign(Object.assign({},t),{start:v,end:C}),b,I),this.emit("region-initialized",a),a.element&&this.regionsContainer.appendChild(a.element)}else f.type==="move"&&f.deltaX!==void 0?a&&a._onUpdate(f.deltaX,f.x>c?"end":"start",i):f.type==="end"&&a&&(this.saveRegion(a),a.updatingSide=void 0,a=null)}),[d.signal]);return()=>{p(),d.cleanup()}}clearRegions(){this.regions.slice().forEach((t=>t.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as Z5,jsx as ke,jsxs as ga}from"react/jsx-runtime";var K5=q5(function({onFinalize:t,recordOptions:n,options:r,labels:l=ev,className:a,classNames:c,style:i,styles:d,...p},s){let g=nv(null),[f,b]=sc("idle"),[I,h]=sc(null),[v,C]=sc(null),[x,y]=sc(!1),P=nv("idle");P.current=f;let w=X5(()=>[oc.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...n}),cc.create()],[]),[L,B]=w,{wavesurfer:M,isPlaying:D,isReady:N,currentTime:S}=W5({...jg,...r,container:g,plugins:w}),R=N?M?.getDuration()??0:0;bh(()=>{let U=[L.on("record-start",()=>b("recording")),L.on("record-end",G=>{b("recorded"),h(G)}),B.on("region-clicked",(G,W)=>{W.stopPropagation(),G.play(!0)})];return()=>U.forEach(G=>G?.())},[B,L]),bh(()=>M?M.on("ready",()=>{if(P.current!=="recorded")return;let G=M.getDuration();B.clearRegions();let W=B.addRegion({start:0,end:G,color:r?.regionColor??Jg,drag:!1,resize:!0});C({start:W.start,end:W.end})}):void 0,[M,B,r]),bh(()=>B.on("region-updated",G=>{C({start:G.start,end:G.end})}),[B]);let F=En(async()=>{await L.startRecording()},[L]),T=En(()=>{L.stopRecording()},[L]),k=En(()=>{M?.playPause()},[M]),_=En(async()=>{if(!(!I||!v||!M)){y(!0);try{let U=await $5(I,v.start,v.end),G=URL.createObjectURL(U);h(U),M.load(G)}finally{y(!1)}}},[I,v,M]),E=En(()=>{B.clearRegions(),M?.empty(),h(null),C(null),b("idle")},[M,B]),O=En(()=>{if(I){let U=URL.createObjectURL(I);t?.(I,U)}},[t,I]),A=!v||v.start<=0&&v.end>=R;return ke("div",{ref:s,className:$e("cleen wavesurfer-handle",a),style:i,...p,children:ga("div",{className:$e("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",c?.container),style:d?.container,children:[f==="idle"&&ga(Z5,{children:[ke("button",{type:"button",onClick:F,"aria-label":"Start recording",className:$e("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.startButton),style:d?.startButton,children:ke(_r,{className:"cleen-size-8 cleen-text-primary"})}),ke("p",{className:$e("cleen-text-neutral-600 cleen-text-sm cleen-select-none",c?.startLabel),style:d?.startLabel,children:l.startRecording})]}),f==="recording"&&ke("button",{type:"button",onClick:T,"aria-label":"Stop recording",className:$e("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.stopButton),style:d?.stopButton,children:ke(Jr,{className:"cleen-size-8 cleen-text-primary"})}),ke("div",{ref:g,className:$e("cleen-w-full cleen-min-w-0 cleen-waveform",f==="idle"&&"cleen-hidden",c?.waveform),style:d?.waveform}),f==="recorded"&&ga("div",{className:$e("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",c?.recordedContainer),style:d?.recordedContainer,children:[ke(J,{type:"button",onClick:k,disabled:!N,"aria-label":D?"Pause":"Play",className:c?.playPauseButton?.className,classNames:{...c?.playPauseButton?.classNames,container:$e("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.playPauseButton?.classNames?.container)},...d?.playPauseButton,children:D?ke(Ro,{className:"cleen-fill-current"}):ke(To,{className:"cleen-fill-current"})}),ga("span",{className:$e("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.timestamp),style:d?.timestamp,children:[ic(S),"\xA0/\xA0",ic(R)]}),ke("span",{className:"cleen-flex-1"}),!A&&v&&ga("span",{className:$e("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.trimmedTimestamp),style:d?.trimmedTimestamp,children:[ic(v.start),"\u2013",ic(v.end)]}),ke(J,{type:"button",onClick:E,variant:"secondary","aria-label":"Discard recording",className:c?.discardButton?.className,classNames:{...c?.discardButton?.classNames,container:$e("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.discardButton?.classNames?.container)},...d?.discardButton,children:ke(Ze,{className:"cleen-text-error"})}),ke(J,{type:"button",onClick:_,disabled:A||x||!N,"aria-label":"Apply trim",variant:"secondary",className:c?.trimButton?.className,classNames:{...c?.trimButton?.classNames,container:$e("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.trimButton?.classNames?.container)},...d?.trimButton,children:ke(qr,{})}),ke(J,{type:"button",onClick:O,"aria-label":"Finalize recording",className:c?.finalizeButton?.className,classNames:{...c?.finalizeButton?.classNames,container:$e("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.finalizeButton?.classNames?.container)},...d?.finalizeButton,children:ke(Rt,{})})]})]})})});import{cn as pc}from"@cleen/ui-core";import{forwardRef as Y5,useMemo as Q5}from"react";var rv={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 va}from"react/jsx-runtime";var dc=Y5(function({title:t,name:n,src:r,alt:l,size:a="md",initialsLength:c=2,isSelected:i=!1,showBorder:d=!1,fallback:p=va(ta,{}),className:s,classNames:g,style:f,styles:b,onClick:I,...h},v){let C=Q5(()=>(c===2?n?.split(" ").map(x=>x.charAt(0).toUpperCase()).join("").slice(0,c):n?.charAt(0).toUpperCase())||p,[n,c,p]);return va("div",{className:pc("cleen",s),style:f,ref:v,...h,children:va("div",{onClick:I,className:pc("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof a=="string"&&rv[a],{"cleen-border-2 cleen-border-white":d,"cleen-cursor-pointer":!!I},g?.avatar,d&&i&&["cleen-border-primary",g?.avatarSelected]),style:{...typeof a=="number"&&{width:a,height:a,fontSize:a*.4,lineHeight:`${a}px`},...b?.avatar,...d&&i&&b?.avatarSelected},title:t||n,children:r?va("img",{src:r,alt:l||n,className:pc("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",g?.image),style:b?.image}):va("span",{className:pc("cleen-select-none cleen-text-neutral-700",g?.fallback),style:b?.fallback,children:C})})})});import{cn as av}from"@cleen/ui-core";import{forwardRef as J5}from"react";import{jsx as yh,jsxs as ew}from"react/jsx-runtime";var j5=J5(function({avatars:t,size:n="md",selectedAvatars:r=[],onAvatarToggle:l,gap:a=4,maxVisible:c,maxExtra:i=99,showBorder:d=!0,initialsLength:p,fallback:s,className:g,classNames:f,style:b,styles:I,...h},v){let C=c?t?.slice(0,c):t,x=c&&t&&t.length>c?Math.min(t.length-c,i):0;return yh("div",{className:av("cleen",g),style:b,ref:v,...h,children:ew("div",{className:av("cleen-flex cleen-items-center",f?.row),style:{gap:a,...I?.row},children:[C?.map((y,P)=>{let w=r.includes(y?.id??"");return yh(dc,{name:y.name,src:y.src,size:n,isSelected:w,showBorder:d,initialsLength:p,fallback:s,onClick:()=>l?.(y.id??""),...f?.avatar,style:{zIndex:C.length-P,...I?.avatar?.style},styles:I?.avatar?.styles,...y},y.id||P)}),x>0&&yh(dc,{size:n,fallback:`+${x}`,...f?.extra,...I?.extra})]})})});import{cn as io}from"@cleen/ui-core";import{forwardRef as tw}from"react";import{Link as lv}from"react-router-dom";import{jsx as Ia,jsxs as mc}from"react/jsx-runtime";var ow=tw(function({root:t={path:"/",icon:Ia(Lr,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:n,className:r,classNames:l,style:a,styles:c,...i},d){return!n||n.length===0?null:Ia("div",{className:io("cleen",r),style:a,ref:d,...i,children:Ia("nav",{className:io("cleen-hidden sm:cleen-flex",l?.container),style:c?.container,"aria-label":"Breadcrumb",children:mc("ol",{role:"list",className:io("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:c?.list,children:[t&&Ia("li",{className:io("cleen-flex cleen-items-center",l?.rootItem),style:c?.rootItem,children:mc(lv,{to:t?.path,className:io("cleen-text-sm cleen-text-neutral-400 cleen-flex cleen-items-center cleen-gap-2 cleen-transition-colors cleen-duration-200 hover:cleen-text-neutral-600",l?.rootLink),style:c?.rootLink,"aria-current":"page",children:[t?.icon,t?.label]})}),n.map(({path:p,icon:s,label:g,id:f},b)=>{let I=b===n.length-1,h=g||p.charAt(0).toUpperCase()+p.slice(1);return mc("li",{className:io("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:c?.item,children:[(t||!t&&b!==0)&&Ia(rt,{className:io("cleen-h-5 cleen-w-5 cleen-text-neutral-300",l?.chevron),style:c?.chevron,"aria-hidden":"true"}),mc(lv,{to:p,className:io("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-neutral-50 cleen-py-1 cleen-px-2 cleen-text-neutral-700 cleen-font-semibold":"cleen-text-neutral-600 cleen-font-medium",l?.link),style:c?.link,"aria-current":I?"page":void 0,children:[s,h]})]},f||p)})]})})})});var uc=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:n,max:r}=t,l=new Date,a=new Date(l.getFullYear(),l.getMonth(),l.getDate());if(n){let c=n==="today"?a:n;if(c>=e)return c}if(r){let c=r==="today"?a:r;if(c<=e)return c}return e};import{cn as fc}from"@cleen/ui-core";import{forwardRef as nw,useState as Ch}from"react";import{DayPicker as cv,MonthGrid as rw}from"react-day-picker";import{Fragment as aw,jsx as Oo,jsxs as Ph}from"react/jsx-runtime";var xh=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),Sh=nw(function({label:t,labelTooltip:n,infoLabels:r,required:l,withDateInput:a=!1,withTodayButton:c=!1,selected:i,onSelect:d,month:p,labels:s,className:g,style:f,classNames:b,styles:I,mode:h="single",min:v,max:C,disabled:x,disabledDates:y,components:P,...w},L){let B=i!==void 0,M=h==="single",[D,N]=Ch(),[S,R]=Ch(),F=B?i:M?D:S,[T,k]=Ch(p),_=(A,U)=>{B||(M&&(A===void 0||A instanceof Date)?N(A):M||R(A)),d?.(A,U)},E={MonthGrid:A=>Ph(aw,{children:[(c||a)&&Ph("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[a&&Oo(ue,{value:h==="single"?xh(F):F?.from||F?.to?`${xh(F?.from)??"..."} - ${xh(F?.to)??"..."}`:void 0,placeholder:s?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),c&&Oo(J,{variant:"secondary",onClick:()=>k(new Date),children:s?.today??"Today"})]}),Oo(rw,{...A})]}),...P},O={navLayout:"around",...w,className:fc("cleen-text-foreground",b?.calendar?.className),classNames:{...b?.calendar?.classNames,nav:fc("cleen-text-error",b?.calendar?.classNames?.nav)},disabled:v||C?{before:v==="today"?new Date:v,after:C==="today"?new Date:C}:y||x,components:E,month:T,onMonthChange:k,...I?.calendar};return Ph("div",{ref:L,className:fc("cleen",g),style:f,children:[t&&Oo(re,{required:l,tooltip:n,className:fc("cleen-mb-1.5",b?.label?.className),classNames:b?.label?.classNames,...I?.label,children:t}),M?Oo(cv,{mode:"single",...O,selected:F,onSelect:(A,U)=>{if(v||C){_(uc(A,{min:v,max:C}),U);return}_(A,U)}}):Oo(cv,{mode:"range",...O,selected:F,onSelect:(A,U)=>{if(v||C){_({from:uc(A?.from,{min:v,max:C}),to:uc(A?.to,{min:v,max:C})},U);return}_(A,U)}}),(r?.errorMessage||r?.infoMessage||r?.subtitle)&&Oo(oe,{...r})]})});import{cn as Fn,useOutsideClick as lw,usePositionClose as cw,ZIndex as iw}from"@cleen/ui-core";import{forwardRef as sw,useEffect as pw,useRef as iv,useState as dw}from"react";import{createPortal as mw}from"react-dom";import{jsx as zo,jsxs as sv}from"react/jsx-runtime";var ba=sw(function({type:t="button",required:n,label:r,title:l,titleTooltip:a,disabled:c=!1,leftIcon:i,rightIcon:d=zo(br,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:p=!0,fullWidthDropdown:s,offset:g=4,isOpen:f,onOpenChange:b,keepOpenOnClickContent:I=!0,zIndex:h=iw.DROPDOWN,infoLabels:v,className:C,classNames:x,style:y,styles:P,children:w,...L},B){let[M,D]=dw(!1),N=f!==void 0?f:M,S=iv(null),R=iv(null),{positionStyles:F,isMounted:T}=cw({triggerRef:R,targetRef:S,position:"bottom-left",isOpen:N,offset:g});lw({refs:[S,R],handler:()=>{D(!1),b?.(!1)},enabled:N}),pw(()=>{let E=O=>{O.key==="Escape"&&N&&(D(!1),b?.(!1))};return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E)}},[N,b]);let k=()=>{let E=!N;f===void 0&&D(E),b?.(E)},_=()=>{I||(f===void 0&&D(!1),b?.(!1))};return sv("div",{className:Fn("cleen",C),style:y,ref:B,...L,children:[l&&zo(re,{required:n,tooltip:a,className:Fn("cleen-mb-1.5",x?.title?.className),classNames:x?.title?.classNames,...P?.title,children:l}),zo("div",{className:Fn("cleen-inline-block cleen-relative",p&&"cleen-w-full"),ref:R,children:sv("button",{type:t,className:Fn("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-border cleen-rounded-md cleen-w-full cleen-text-foreground cleen-text-base cleen-transition-colors cleen-duration-200 hover:cleen-bg-neutral-25 hover:cleen-border-muted-foreground",{"cleen-w-full cleen-flex-1":p,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":c},p&&"cleen-w-full",x?.trigger),style:P?.trigger,disabled:c,"aria-haspopup":"dialog","aria-expanded":N,onClick:k,children:[i,zo("div",{className:Fn("cleen-flex-1 cleen-text-left",x?.label),style:P?.label,children:r}),d]})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&zo(oe,{...v}),w&&N&&mw(zo("div",{className:"cleen",children:zo("div",{ref:S,className:Fn("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!T},x?.dropdown),style:{zIndex:h,top:`${F.top}px`,left:`${F.left}px`,minWidth:s&&R.current?.offsetWidth?`${R.current.offsetWidth}px`:void 0,...P?.dropdown},onClick:_,children:w})}),document.body)]})});import{cn as pv}from"@cleen/ui-core";import{forwardRef as uw,useMemo as fw,useState as hc}from"react";import{jsx as _o,jsxs as dv}from"react/jsx-runtime";var hw=uw(function({label:t,placeholder:n,infoLabels:r,required:l,selected:a,onSelect:c,onSelectInternal:i,leftIcon:d,rightIcon:p=_o(hr,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:s,style:g,classNames:f,styles:b,mode:I="single",min:h,max:v,disabled:C,disabledDates:x,...y},P){let w=a!==void 0,L=I==="single",[B,M]=hc(!1),[D,N]=hc(),[S,R]=hc(),F=w?a:L?D:S,[T,k]=hc(),_=O=>{w||(L&&(O===void 0||O instanceof Date)?N(O):L||R(O)),c?.(O)},E=fw(()=>{if(!F)return n;if(L)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 n},[n,F,L]);return dv("div",{ref:P,className:pv("cleen",s),style:g,children:[_o(ba,{title:t,label:E,isOpen:B,onOpenChange:O=>{k(F),M(O)},leftIcon:d,rightIcon:p,className:f?.dropdown?.className,classNames:{...f?.dropdown?.classNames,dropdown:pv("cleen-p-0 cleen-border-0",f?.dropdown?.classNames?.dropdown)},required:l,disabled:C,...b?.dropdown,children:_o(me,{footer:{hasDivider:!0,content:dv("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[_o(J,{variant:"secondary",onClick:()=>M(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),_o(J,{onClick:()=>{_(T),M(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...f?.card,...b?.card,children:_o(Sh,{mode:I,...y,selected:T,onSelect:(O,A)=>k(i?.(O,A)??O),min:h,max:v,disabledDates:x,...f?.calendar,...b?.calendar})})}),(r?.errorMessage||r?.infoMessage||r?.subtitle)&&_o(oe,{...r})]})});import"react";import{cn as An}from"@cleen/ui-core";import gw from"embla-carousel-auto-scroll";import vw from"embla-carousel-autoplay";import Iw from"embla-carousel-react";import{forwardRef as bw,useEffect as yw,useMemo as mv,useState as uv}from"react";import{jsx as Uo,jsxs as xw}from"react/jsx-runtime";var Cw=bw(function({options:t,slideAmount:n=3,slideSize:r,prevBtn:l,nextBtn:a,autoPlay:c=!1,autoPlayOptions:i,autoScroll:d=!1,autoScrollOptions:p,children:s,className:g,classNames:f,style:b,styles:I,...h},v){let C=mv(()=>{let R=[];return c&&R.push(vw(i)),d&&R.push(gw(p)),R},[c,d,i,p]),[x,y]=Iw({skipSnaps:!0,...t},C),[P,w]=uv(!0),[L,B]=uv(!0),M=()=>y?.scrollPrev(),D=()=>y?.scrollNext(),N=R=>{w(!R?.canScrollPrev()),B(!R?.canScrollNext())};yw(()=>{y&&(N(y),y.on("reInit",N),y.on("select",N))},[y]);let S=mv(()=>r?`${r}%`:`${100/n}%`,[r,n]);return Uo("div",{className:An("cleen",g),style:b,ref:v,...h,children:xw("div",{className:An("cleen-flex cleen-gap-2",f?.container),style:I?.container,children:[Uo("button",{className:An("cleen-text-foreground",f?.prevBtn,P&&"cleen-opacity-50"),onClick:M,disabled:P,style:I?.prevBtn,children:l||Uo(Tt,{})}),Uo("div",{className:An("cleen-flex-1 cleen-overflow-hidden",f?.viewport),style:I?.viewport,ref:x,children:Uo("div",{className:An("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:{...I?.list,"--cleen-carousel-slide-size":S},children:s})}),Uo("button",{className:An("cleen-text-foreground",f?.nextBtn,L&&"cleen-opacity-50"),onClick:D,disabled:L,style:I?.nextBtn,children:a||Uo(rt,{})})]})})});import{cn as Ho}from"@cleen/ui-core";import{forwardRef as Pw,useEffect as gv,useId as Sw,useRef as ww,useState as Mw}from"react";var fv={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)]"},hv={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 kw,jsx as ft,jsxs as gc}from"react/jsx-runtime";var ya=Pw(function({id:t,name:n,required:r,checked:l,defaultChecked:a=!1,className:c,classNames:i,style:d,styles:p,onChange:s,disabled:g,title:f,titleTooltip:b,label:I,sublabel:h,variant:v="primary",allowIndeterminate:C=!1,fullTriggerArea:x=!1,infoLabels:y,inputRef:P,...w},L){let B=Sw(),M=t??B,D=typeof l=="boolean"||l===null,[N,S]=Mw(a),R=ww(null),F=O=>{R.current=O,P&&(P.current=O)};gv(()=>{D||S(a)},[a,D]);let T=D?l:N;gv(()=>{R.current&&(R.current.indeterminate=C&&T===null)},[C,T]);let k=O=>{let A;if(C)switch(T){case!0:A=null;break;case!1:A=!0;break;default:A=!1;break}else A=!T;D||S(A),s?.({...O,target:{...O.target,checked:A}})},_=gc(kw,{children:[gc("label",{className:Ho("cleen-bg-background cleen-transition-all cleen-duration-200 hover:cleen-bg-surface hover:cleen-shadow-[0px_0px_0px_4px_rgb(var(--cleen-neutral-100))] cleen-border cleen-border-neutral-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",{[fv[v]]:T,[hv[v]]:T===null},g&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:p?.checkbox,children:[ft("input",{ref:F,type:"checkbox",disabled:g,className:"cleen-sr-only",checked:T===!0,onChange:k,id:M,name:n,...w}),T===null?ft("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"}):T?ft(Rt,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(I||h)&&gc("div",{children:[ft("label",{htmlFor:M,className:Ho("cleen-block cleen-text-foreground",i?.label),style:p?.label,children:I}),ft("label",{htmlFor:M,className:Ho("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:p?.sublabel,children:h})]})]}),E={className:Ho("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":g},i?.checkboxContainer),style:p?.checkboxContainer};return ft("div",{className:Ho("cleen",c),style:d,ref:L,children:gc("div",{className:Ho(i?.container),style:p?.container,children:[f&&ft(re,{htmlFor:M,required:r,tooltip:b,className:Ho("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...p?.title,children:f}),x?ft("div",{...E,onClick:O=>{O.target instanceof Element&&!O.target.closest("label")&&R.current?.click()},children:_}):ft("div",{...E,children:_}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&ft(oe,{...y})]})})});import{cn as Ca}from"@cleen/ui-core";import{forwardRef as Bw,useId as Nw,useMemo as Rw,useState as Tw}from"react";import{jsx as On,jsxs as Dw}from"react/jsx-runtime";var Lw=Bw(function({id:t,required:n,label:r,labelTooltip:l,checkboxes:a,allowIndeterminate:c,infoLabels:i,requiresAtLeastOneOptions:d,classNames:p,styles:s,onChange:g,...f},b){let I=Nw(),h=t??I,[v,C]=Tw(!1),x=Rw(()=>d&&v&&a?.every(P=>P.checked===!1)?d.title:i?.errorMessage,[d,i?.errorMessage,a,v]),y=(P,w)=>{let L={...w,checked:P.target.checked},B;a&&w?.id&&(B=[...a].map(M=>M.id===w.id?L:M)),g?.(L,B),C(!0)};return On("div",{className:Ca("cleen"),...f,ref:b,children:Dw("div",{className:Ca("cleen-flex cleen-flex-col cleen-gap-2",p?.container),style:s?.container,children:[r&&On(re,{htmlFor:h,required:n,tooltip:l,className:Ca("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...s?.label,children:r}),On("div",{className:Ca("cleen-flex cleen-flex-col cleen-gap-3",p?.checkboxes),style:s?.checkboxes,children:a?.map((P,w)=>On("div",{className:Ca("cleen-flex",p?.checkboxContainer),style:s?.checkboxContainer,children:On(ya,{allowIndeterminate:c,...P,id:`${h}-${w}`,fullTriggerArea:!0,onChange:L=>y(L,P)})},P.id))}),(x||i?.infoMessage||i?.subtitle)&&On(oe,{...i,errorMessage:x})]})})});import{cn as Go}from"@cleen/ui-core";import{forwardRef as Ew,useState as vv}from"react";import{jsx as zn,jsxs as Iv}from"react/jsx-runtime";var bv=Ew(({sections:e,defaultOpenIndex:t,allowExpandAll:n=!1,className:r,classNames:l,style:a,styles:c,...i},d)=>{let[p,s]=vv(t??null),[g,f]=vv(()=>new Set(e.map((h,v)=>v))),b=h=>n?g.has(h):p===h,I=(h,v)=>{v.onClick?.(),v.items?.length&&(n?f(C=>{let x=new Set(C);return x.has(h)?x.delete(h):x.add(h),x}):s(p===h?null:h))};return zn("div",{ref:d,className:Go("cleen",r),style:{...a,width:"100%"},...i,children:zn("div",{className:Go("cleen-w-full",l?.container),style:c?.container,children:e.map((h,v)=>Iv("div",{className:Go("cleen-mb-3",l?.section),style:c?.section,children:[Iv("div",{onClick:()=>I(v,h),className:Go("cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-font-medium cleen-text-md cleen-text-foreground cleen-p-2 cleen-rounded-lg cleen-cursor-pointer hover:cleen-bg-muted cleen-transition-colors",l?.sectionHeader),style:c?.sectionHeader,children:[zn("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:h?.title}),h?.items?.length?zn(Lt,{className:Go("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!b(v)})}):null]}),b(v)&&h?.items&&zn("div",{className:Go("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",l?.sectionBody),style:c?.sectionBody,children:h?.items?.map((C,x)=>zn("div",{className:Go("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-foreground cleen-cursor-pointer hover:cleen-bg-muted cleen-transition-colors",l?.item),style:c?.item,onClick:C?.onClick,children:C?.content},C?.key??x))})]},h?.key??v))})})});bv.displayName="Collapsible";function wh(e){let t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?{r:Number(t[1]),g:Number(t[2]),b:Number(t[3]),a:t[4]!==void 0?Number(t[4]):1}:{r:0,g:0,b:0,a:1}}function yv(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as vc}from"@cleen/ui-core";import{useEffect as Fw,useState as Aw}from"react";import{HexAlphaColorPicker as Ow,RgbaColorPicker as zw}from"react-colorful";import{jsx as _n,jsxs as Uw}from"react/jsx-runtime";var Cv="rgba(0, 0, 0, 1)",xv="#000000ff",_w=({required:e,value:t,defaultValue:n,onChange:r,colorModel:l="rgba",disabled:a,label:c,labelTooltip:i,className:d,classNames:p,style:s,styles:g,infoLabels:f,...b})=>{let I=t!==void 0,h=n??(l==="hexa"?xv:Cv),[v,C]=Aw(h),x=I?t:v;Fw(()=>{I||C(n??(l==="hexa"?xv:Cv))},[n,I,l]);let y=w=>{let L=yv(w);I||C(L),r?.(L)},P=w=>{I||C(w),r?.(w)};return _n("div",{className:vc("cleen",d),style:s,...b,children:Uw("div",{className:vc("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",p?.container),style:g?.container,children:[c&&_n(re,{required:e,tooltip:i,className:vc("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...g?.label,children:c}),_n("div",{className:vc("cleen-rounded-md",a&&"cleen-opacity-50 cleen-pointer-events-none",p?.picker),style:g?.picker,children:l==="hexa"?_n(Ow,{color:x,onChange:P}):_n(zw,{color:wh(x),onChange:y})}),(f?.errorMessage||f?.infoMessage||f?.subtitle)&&_n(oe,{...f})]})})};import{cn as Ye}from"@cleen/ui-core";import{forwardRef as Hw,useMemo as Gw,useState as Vw}from"react";var Mh=(e="")=>e.replace(/\D+/g,""),Pv=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function Sv(e,t="other"){if(!e)return e;let n=Mh(e),r;switch(t){case"amex":r=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,15)}`;break;case"dinersclub":r=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,14)}`;break;default:r=`${n.slice(0,4)} ${n.slice(4,8)} ${n.slice(8,12)} ${n.slice(12,19)}`;break}return r.trim()}var wv=e=>Mh(e);function Mv(e){let t=Mh(e);if(!t||parseInt(t.charAt(0),10)>=2)return"";if(t.length<2)return t;let n=t.slice(0,2);if(parseInt(n,10)<1||parseInt(n,10)>12)return t.slice(0,1);if(t.length<3)return n;if(t.length===3)return`${n}/${t.charAt(2)}`;let r=t.length===6?t.slice(-2):t.slice(2,4),l=new Date,a=l.getFullYear()%100,c=l.getMonth()+1;return parseInt(r,10)<a||parseInt(r,10)===a&&parseInt(n,10)<c?`${n}/${r.charAt(0)}`:`${n}/${r}`}import{jsx as so,jsxs as kv}from"react/jsx-runtime";var $w=Hw(function({labels:t,value:n,isLoading:r,errors:l,className:a,classNames:c,style:i,styles:d,infoLabels:p,onChange:s,onFieldFocus:g,...f},b){let[I,h]=Vw({number:"",expiry:"",cvc:""}),v=!!n,C=v?n:I,x=Gw(()=>Pv(C.number),[C.number]),y=w=>{let{name:L}=w.target,{value:B}=w.target;switch(L){case"number":B=Sv(B,x);break;case"expiry":B=Mv(B);break;case"cvc":B=wv(B);break;default:return}v||h(M=>({...M,[L]:B})),s?.({...n,[L]:B})},P=w=>{g?.(w.target.name)};return so("div",{className:Ye("cleen",a),style:i,ref:b,...f,children:so("div",{className:Ye("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:d?.container,children:r?so("div",{className:Ye("cleen-py-4",c?.loader?.container),style:d?.loader?.container,children:so(le,{...c?.loader?.component,...d?.loader?.component})}):kv("form",{className:Ye("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",c?.form?.container),style:d?.form?.container,onSubmit:w=>w.preventDefault(),children:[so(ue,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:Ye("cleen-w-full",c?.form?.cardNumber?.className),classNames:{...c?.form?.cardNumber?.classNames,inputContainer:Ye({"cleen-border-error":l?.number},c?.form?.cardNumber?.classNames?.inputContainer),input:Ye({"cleen-text-error":l?.number},c?.form?.cardNumber?.classNames?.input)},...d?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:C.number,onChange:y,onFocus:P,infoLabels:{errorMessage:l?.number}}),kv("div",{className:Ye("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",c?.form?.cvcExpiryContainer),style:d?.form?.cvcExpiryContainer,children:[so(ue,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:c?.form?.expiry?.className,classNames:{...c?.form?.expiry?.classNames,inputContainer:Ye({"cleen-border-error":l?.expiry},c?.form?.expiry?.classNames?.inputContainer),input:Ye({"cleen-text-error":l?.expiry},c?.form?.expiry?.classNames?.input)},...d?.form?.expiry,placeholder:"00/00",value:C.expiry,onChange:y,onFocus:P,infoLabels:{errorMessage:l?.expiry}}),so(ue,{label:t?.cvc,name:"cvc",type:"tel",inputMode:"numeric",autoComplete:"cc-csc",maxLength:x==="amex"?4:3,className:c?.form?.cvc?.className,classNames:{...c?.form?.cvc?.classNames,inputContainer:Ye({"cleen-border-error":l?.cvc},c?.form?.cvc?.classNames?.inputContainer),input:Ye({"cleen-text-error":l?.cvc},c?.form?.cvc?.classNames?.input)},...d?.form?.cvc,placeholder:"***",value:C.cvc,onChange:y,onFocus:P,infoLabels:{errorMessage:l?.cvc}})]}),(p?.infoMessage||p?.errorMessage||p?.subtitle)&&so(oe,{...p})]})})})});import{cn as Bv}from"@cleen/ui-core";import{jsx as Nv}from"react/jsx-runtime";var lt=({isHorizontal:e=!0,className:t,classNames:n,style:r,styles:l,...a})=>Nv("div",{className:Bv("cleen",t),style:r,children:Nv("div",{className:Bv("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",n?.container),style:l?.container,...a})});import{cn as po,useBodyScrollLock as Ww,useCleenOverlays as Rv,ZIndex as qw}from"@cleen/ui-core";import{forwardRef as Xw,useCallback as Kw,useEffect as kh,useId as Zw,useRef as Yw,useState as Tv}from"react";import{createPortal as Qw}from"react-dom";import{jsx as Un,jsxs as Ic}from"react/jsx-runtime";var Jw={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},Lv=300,Bh=Xw(function({title:t,subtitle:n,children:r,headerCloseBtn:l,footer:a,isOpen:c=!1,onClose:i,closeOnOverlayClick:d=!0,position:p="right",zIndex:s=qw.DRAWER,size:g="lg",p:f,gap:b,className:I,classNames:h,style:v,styles:C,...x},y){let[P,w]=Tv(c),[L,B]=Tv(c),M=Yw(null),D=Zw(),{addOverlay:N,removeOverlay:S}=Rv(),R=Kw(()=>{w(!1),setTimeout(()=>i?.(),Lv)},[i]);return kh(()=>{if(c){B(!0);let F=setTimeout(()=>w(!0),1);return()=>clearTimeout(F)}else{w(!1);let F=setTimeout(()=>B(!1),Lv);return()=>clearTimeout(F)}},[c]),kh(()=>{if(c)return N(D),()=>S(D)},[N,S,c,D]),kh(()=>{let F=T=>{let{overlays:k}=Rv.getState();T.key==="Escape"&&k[k.length-1]===D&&R()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[R,D]),Ww(L),L?Qw(Ic("div",{className:po("cleen",I),style:v,ref:y,...x,children:[Un("div",{className:po("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",h?.overlay),onClick:()=>{d&&R()},style:{zIndex:s-1,...C?.overlay},"aria-hidden":"true"}),Ic("div",{className:po("cleen-top-0 cleen-fixed cleen-flex cleen-flex-col cleen-gap-6 cleen-bg-surface 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",h?.drawer),style:{zIndex:s,width:typeof g=="number"?g:Jw[g],...b!==void 0&&{gap:b},...C?.drawer},ref:M,children:[Ic("div",{className:po("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},...C?.header},children:[Ic("div",{className:"cleen-flex cleen-flex-col",children:[Un("span",{className:po("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",h?.title),style:C?.title,children:t}),Un("span",{className:po("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",h?.subtitle),style:C?.subtitle,children:n})]}),l||Un(Ae,{onClick:R,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),Un("div",{className:po("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",h?.content),style:{...f!==void 0&&{paddingInline:f},...C?.content},children:r}),a&&Un("div",{className:po("cleen-flex cleen-justify-end cleen-items-center cleen-gap-2 cleen-bg-sidebar cleen-px-6 cleen-py-4 cleen-border-border cleen-border-t",h?.footer),style:{...f!==void 0&&{paddingInline:f,paddingBlock:b},...C?.footer},children:a})]})]}),document.body):null});import{cn as Vo,useAnimateNumber as jw}from"@cleen/ui-core";import{forwardRef as e3,useEffect as t3,useMemo as o3,useRef as n3,useState as r3}from"react";import{jsx as bc,jsxs as Nh}from"react/jsx-runtime";var Hn=e3(({percentage:e,title:t,barColor:n,backgroundColor:r="rgb(var(--cleen-neutral-200))",textColor:l="rgb(var(--cleen-foreground))",invertProgressColors:a=!1,showPercentage:c=!1,renderAnimated:i=!1,renderAnimatedDuration:d=1e3,className:p,classNames:s,style:g,styles:f,...b},I)=>{let h=Math.max(0,Math.min(e,100)),v=n3(h),[C,x]=r3(i?0:h),y=jw({targetNumber:C,duration:d,disabled:!i});t3(()=>{if(i){setTimeout(()=>x(h),0);return}v.current!==h&&(x(h),v.current=h)},[h,i]);let P=o3(()=>{if(n)return n;switch(h<=30?"red":h<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))"}},[h,a,n]);return bc("div",{ref:I,className:Vo("cleen",p),style:g,children:Nh("div",{className:Vo("cleen-w-full",s?.container),style:f?.container,...b,children:[t&&bc("div",{className:Vo("cleen-mb-1 cleen-font-semibold cleen-text-xs",s?.title),style:f?.title,children:t}),Nh("div",{className:Vo("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",s?.wrapper||s?.progress),style:f?.wrapper??f?.progress,children:[bc("div",{className:Vo("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",s?.track),style:{backgroundColor:r,...f?.track},children:bc("div",{className:Vo("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",s?.fill),style:{width:`${C}%`,backgroundColor:P,...i&&{transitionDuration:`${d}ms`},...f?.fill}})}),c&&Nh("span",{className:Vo("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",s?.text),style:{color:l,...f?.text},children:[Math.round(y),"%"]})]})]})})});Hn.displayName="ProgressBar";import{cn as mo,FileEntryStatus as $o}from"@cleen/ui-core";import{useMemo as Dv}from"react";import{Fragment as Ev,jsx as Be,jsxs as Wo}from"react/jsx-runtime";var Fv=({fileEntry:e,onRemove:t,onFileClick:n,labels:r,classNames:l,styles:a})=>{let{id:c,file:i,name:d,size:p,url:s,type:g,status:f,progress:b=0,preExisting:I}=e,h=f===$o.UPLOADING,v=f===$o.ERROR,C=f===$o.DONE,x=f===$o.DELETING,y=p?p*b/100:0,P=Dv(()=>{switch(f){case $o.UPLOADING:return Wo(Ev,{children:[Be(Eo,{className:"cleen-size-4"}),Be("span",{children:r?.uploading})]});case $o.DONE:return Be(Mo,{className:"cleen-size-4"});case $o.ERROR:return Be(wo,{className:"cleen-size-4"});default:return null}},[f,r]),w=()=>{if(n){n(e);return}s&&window.open(s,"_blank","noopener,noreferrer")},L=d||i?.name||"",[B,M]=L.split("."),D=Dv(()=>g?.startsWith("image/")&&s?Be("img",{src:s,alt:L,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):g==="application/pdf"?Be(No,{className:"cleen-size-8"}):Be(Bo,{className:"cleen-size-8"}),[L,g,s]);return Be(me,{p:12,className:l?.card?.className,classNames:{...l?.card?.classNames,container:mo(l?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":C})},...a?.card,onClick:C?w:void 0,children:Wo("div",{className:mo("cleen-space-y-1",l?.container),style:a?.container,children:[Wo("div",{className:mo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.nameContainer),style:a?.nameContainer,children:[D,Wo("div",{className:mo("cleen-text-foreground 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:B}),Wo("span",{className:"cleen-whitespace-nowrap",children:[".",M]})]}),Be("div",{className:"cleen-flex-1"}),!h&&(x?Be(le,{color:"rgb(var(--cleen-error))",className:mo("cleen-shrink-0")}):Be(Ze,{className:mo("cleen-size-4 cleen-shrink-0 cleen-text-neutral-600 hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer"),onClick:N=>{N.stopPropagation(),t?.(c)}}))]}),Wo("div",{className:mo("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",l?.statusContainer),style:a?.statusContainer,children:[!!p&&(h?Be("p",{children:r?.uploadProgress?.(y,p)}):C&&Be("p",{children:r?.uploaded?.(p)})),!I&&Wo(Ev,{children:[Be("span",{children:"|"}),Be("div",{className:mo("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":v,"cleen-text-success":C},l?.statusText),style:a?.statusText,children:P})]})]}),h&&Be(Hn,{barColor:"rgb(var(--cleen-primary))",percentage:b,showPercentage:!0,...l?.progressBar,...a?.progressBar})]})},c)};var yc=e=>{if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,r)).toFixed(1))} ${n[r]}`};var Av={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${yc(e)} of ${yc(t)}`,uploaded:e=>yc(e)};var Ov={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 xa=(a=>(a.PENDING="pending",a.IN_PROGRESS="inProgress",a.DONE="done",a.ERROR="error",a.REMOVING="removing",a))(xa||{});import{cn as qo}from"@cleen/ui-core";import{jsx as uo,jsxs as zv}from"react/jsx-runtime";var Rh=({item:e,labels:t,classNames:n,styles:r})=>{let{status:l,progress:a=0,icon:c,name:i}=e,d=l==="inProgress",p=l==="done",s=l==="error",g=l==="removing",f=l==="pending";return zv("div",{className:qo("cleen-flex cleen-items-center cleen-gap-3",n?.container),style:r?.container,children:[c,zv("div",{className:qo("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",n?.infoContainer),style:r?.infoContainer,children:[uo("p",{className:qo("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",n?.name),style:r?.name,children:i}),d&&uo(Hn,{barColor:"rgb(var(--cleen-primary))",percentage:a,...n?.progressBar,...r?.progressBar})]}),d&&uo("span",{className:qo("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",n?.progressText),style:r?.progressText,children:t?.itemProgress?.(a)}),g&&uo(le,{color:"rgb(var(--cleen-error))"}),p&&uo(Mo,{className:qo("cleen-size-5 cleen-shrink-0 cleen-text-success",n?.statusIcon),style:r?.statusIcon}),s&&uo(wo,{className:qo("cleen-size-5 cleen-shrink-0 cleen-text-error",n?.statusIcon),style:r?.statusIcon}),f&&uo("div",{className:qo("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",n?.statusIcon),style:r?.statusIcon,children:Array.from({length:3}).map((b,I)=>uo("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${I*.1}s`}},I))})]})};var Pa=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(Pa||{}),Sa=["notStarted","inProgress","completed","all"];import{cn as Cc}from"@cleen/ui-core";import{jsx as _v,jsxs as a3}from"react/jsx-runtime";var Th=({value:e,onChange:t,counts:n,labels:r,classNames:l,styles:a})=>_v("div",{role:"group","aria-label":r?.statusFilter,className:Cc("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-0.5 cleen-bg-muted cleen-p-0.5 cleen-border cleen-border-border cleen-rounded-md",l?.container),style:a?.container,children:Sa.map(c=>{let i=c===e;return a3("button",{type:"button","aria-pressed":i,onClick:()=>t(c),className:Cc("cleen-flex cleen-items-center cleen-gap-1 cleen-px-2 cleen-py-0.5 cleen-rounded cleen-font-medium cleen-text-muted-foreground cleen-text-xs cleen-whitespace-nowrap cleen-transition-colors hover:cleen-text-foreground focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.option,i&&Cc("cleen-bg-background cleen-text-foreground cleen-shadow-sm",l?.optionActive)),style:{...a?.option,...i&&a?.optionActive},children:[r?.statusFilterOptions?.[c],n&&_v("span",{className:Cc("cleen-text-neutral-400 cleen-tabular-nums",l?.optionCount),style:a?.optionCount,children:n[c]})]},c)})});var Uv={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 Hv=e=>e.status==="inProgress"||e.status==="pending",Gv=e=>e.length>0&&e.every(t=>t.status==="done"),Lh=(e,t)=>{switch(t){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 l3,cn as ct,useControlled as Vv,useDisclosure as c3}from"@cleen/ui-core";import{forwardRef as i3,useEffect as $v,useMemo as Dh,useRef as s3}from"react";import{jsx as ht,jsxs as Eh}from"react/jsx-runtime";var Fh=i3(function({items:t,title:n,maxVisibleItems:r=5,isExpanded:l,defaultExpanded:a=!1,onExpandedChange:c,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:d,showHeader:p=!0,showStatusFilter:s=!1,showStatusFilterCounts:g=!1,statusFilter:f,defaultStatusFilter:b="inProgress",onStatusFilterChange:I,labels:h,className:v,classNames:C,style:x,styles:y,...P},w){let{isOpen:L,toggle:B,close:M}=c3(),{value:D,handleChange:N}=Vv({value:l,defaultValue:a,onChange:c});$v(()=>{t.length>0&&M()},[t.length,M]);let S=l3(Uv,h),{value:R,handleChange:F}=Vv({value:f,defaultValue:b,onChange:I}),T=s3(i);T.current=i;let k=Gv(t);$v(()=>{if(d==null||!T.current||!k)return;if(d<=0){T.current();return}let W=setTimeout(()=>T.current?.(),d);return()=>clearTimeout(W)},[k,d]);let _=Dh(()=>t.filter(Hv).length,[t]),E=Dh(()=>!s||!R?t:t.filter(W=>Lh(W,R)),[t,s,R]),O=Dh(()=>{if(g)return Sa.reduce((W,q)=>({...W,[q]:t.filter(H=>Lh(H,q)).length}),{})},[t,g]);if(!t.length)return null;let A=Math.max(E.length-r,0),U=D||!A?E:E.slice(0,r),G=n??(_?S?.processing?.(_):S?.completed);return ht(me,{p:16,gap:12,ref:w,className:ct(v,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:ct(C?.card?.classNames?.childrenContainer,{"cleen-hidden":L})},style:x,styles:y?.card?.styles,header:p?{hasDivider:!L,content:Eh("div",{className:ct("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",C?.header),style:y?.header,children:[ht("p",{className:ct("cleen-font-semibold cleen-text-foreground cleen-text-sm",C?.title),style:y?.title,children:G}),Eh("div",{className:ct("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:y?.headerButtons,children:[ht("button",{type:"button","aria-label":S?.contract,onClick:B,className:ct("cleen-text-muted-foreground hover:cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.contractButton),style:y?.contractButton,children:ht(Lt,{className:ct("cleen-size-5 cleen-transition-transform",L&&"cleen-rotate-180")})}),i&&ht("button",{type:"button","aria-label":S?.dismiss,onClick:i,className:ct("cleen-text-muted-foreground hover:cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.dismissButton),style:y?.dismissButton,children:ht(Ae,{className:"cleen-size-4"})})]})]})}:void 0,...P,children:Eh("div",{className:ct("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:y?.list,children:[s&&R&&ht(Th,{value:R,onChange:F,counts:O,labels:S,classNames:C?.statusFilter,styles:y?.statusFilter}),!U.length&&ht("p",{className:ct("cleen-text-muted-foreground cleen-text-xs",C?.emptyStatusFilter),style:y?.emptyStatusFilter,children:S?.emptyStatusFilter}),U.map(W=>ht(Rh,{item:W,labels:S,classNames:C?.row,styles:y?.row},W.id)),!!A&&ht("button",{type:"button","aria-expanded":D,onClick:()=>N(!D),className:ct("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",C?.expandButton),style:y?.expandButton,children:D?S?.showLess:S?.showMore?.(A)})]})})});import{FileEntryStatus as zt}from"@cleen/ui-core";var p3=[{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"]}],Wv={label:"FILE",className:"cleen-bg-neutral-500"},d3={[zt.QUEUED]:"inProgress",[zt.UPLOADING]:"inProgress",[zt.PAUSED]:"inProgress",[zt.DONE]:"done",[zt.ERROR]:"error",[zt.DELETING]:"removing"},Ah=e=>e.name||e.file?.name||"",qv=e=>{let t=Ah(e).split(".").pop()?.toLowerCase()??"",n=p3.find(({extensions:r})=>r.includes(t));return n?{label:n.label,className:n.className}:{label:t?t.slice(0,4).toUpperCase():Wv.label,className:Wv.className}},Xv=e=>e.status===zt.QUEUED||e.status===zt.UPLOADING||e.status===zt.PAUSED,Kv=e=>d3[e.status]??"pending",Zv=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as m3}from"@cleen/ui-core";import{jsx as u3}from"react/jsx-runtime";var Yv=({fileEntry:e,className:t,style:n})=>{let r=qv(e);return u3("div",{className:m3("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,t),style:n,children:r.label})};import{jsx as f3}from"react/jsx-runtime";var Qv=(e,t)=>({id:e.id,name:Ah(e),progress:e.progress,status:Kv(e),icon:f3(Yv,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as h3}from"@cleen/ui-core";import{forwardRef as g3,useMemo as Jv}from"react";import{jsx as v3}from"react/jsx-runtime";var Oh=g3(function({files:t,title:n,maxVisibleFiles:r=5,labels:l,classNames:a,styles:c,...i},d){let p=Jv(()=>Zv(t),[t]),s=h3(Ov,l),g=Jv(()=>p.map(I=>Qv(I,{className:a?.row?.typeBadge,style:c?.row?.typeBadge})),[p,a?.row?.typeBadge,c?.row?.typeBadge]),f=p.filter(Xv).length,b=n??(f?s?.uploading?.(f):s?.completed);return v3(Fh,{ref:d,items:g,title:b,maxVisibleItems:r,labels:{showMore:s?.showMore,showLess:s?.showLess,dismiss:s?.dismiss,contract:s?.contract,itemProgress:s?.uploadProgress},classNames:a,styles:c,...i})});import{applyDefaults as I3,cn as ze,FileEntryStatus as b3,useFileUpload as y3}from"@cleen/ui-core";import{forwardRef as C3,useEffect as x3,useMemo as jv,useRef as eI,useState as zh}from"react";import{createPortal as P3}from"react-dom";import{jsx as _e,jsxs as xc}from"react/jsx-runtime";var S3=C3(function({required:t,icon:n,files:r,initialFiles:l=[],onFilesChange:a,onFileUpload:c,onFilesUpload:i,onFileRemove:d,onFileClick:p,infoLabels:s,containerRef:g,label:f,labelTooltip:b,labels:I,showUploadedFiles:h=!1,showProgressTracker:v=!1,progressTracker:C,className:x,classNames:y,style:P,styles:w,multiple:L,disabled:B,loadingWhileUploading:M,isLoading:D,readOnly:N,onChange:S,id:R,name:F,...T},k){let _=eI(null),{files:E,addFiles:O,remove:A}=y3({files:r,onFilesChange:a,initialFiles:l,onFileUpload:c,onFilesUpload:i,onFileRemove:d}),U=jv(()=>D||M&&Array.from(E.values()).some(K=>K.status===b3.UPLOADING),[E,M,D]),[G,W]=zh(!1),[q,H]=zh([]),[V,Q]=zh(!1),z=eI(new Set(E.keys()));x3(()=>{let K=Array.from(E.keys()),we=K.filter(Ee=>!z.current.has(Ee));z.current=new Set(K),H(Ee=>{let Me=Ee.filter(nt=>E.has(nt));return we.length?V?we:[...Me,...we.filter(nt=>!Me.includes(nt))]:Me.length===Ee.length?Ee:Me}),we.length&&Q(!1)},[E,V]);let Y=jv(()=>q.map(K=>E.get(K)).filter(K=>!!K),[q,E]),de=()=>{Q(!0),H([]),C?.onDismiss?.()},Ie=!B&&!N&&!U,xe=K=>{let we=Array.from(K.target.files??[]);O(we),S?.(K)},wt=K=>{A(K)},tt=()=>{Ie&&_.current?.click()},j=K=>{if(!K.length)return;let we=L?K:K.slice(0,1);if(!_.current||typeof DataTransfer>"u"){O(we);return}let Ee=new DataTransfer;we.forEach(Me=>Ee.items.add(Me));try{_.current.files=Ee.files}catch{O(we);return}O(we),S?.({target:_.current,currentTarget:_.current})},ce=K=>{K.preventDefault(),K.stopPropagation(),W(!1),Ie&&j(Array.from(K.dataTransfer.files??[]))},st=K=>{K.preventDefault(),K.stopPropagation(),Ie&&W(!0)},pt=K=>{K.preventDefault(),K.stopPropagation(),Ie&&W(!0)},De=K=>{K.preventDefault(),K.stopPropagation(),Ie&&W(!1)},Mt=K=>{Ie&&(K.key!=="Enter"&&K.key!==" "||(K.preventDefault(),tt()))},ot=I3(Av,I);return xc("div",{className:ze("cleen",x),style:P,ref:g,children:[_e("input",{id:R||F,name:F,ref:K=>{if(_.current=K,typeof k=="function"){k(K);return}k&&(k.current=K)},type:"file",multiple:L,disabled:B||U,readOnly:N,className:ze("cleen-hidden",y?.input),style:w?.input,onChange:xe,...T}),f&&_e(re,{htmlFor:R||F,required:t,tooltip:b,className:ze("cleen-mb-1.5",y?.label?.className),classNames:y?.label?.classNames,...w?.label,children:f}),xc("div",{className:ze("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":U}),children:[_e(me,{tabIndex:Ie?0:-1,role:"button","aria-label":typeof f=="string"?f:"Upload file","aria-disabled":B||N||U,onClick:tt,onKeyDown:Mt,onDrop:ce,onDragEnter:st,onDragOver:pt,onDragLeave:De,p:16,className:ze("cleen-rounded-lg focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",y?.card?.className),classNames:{...y?.card?.classNames,container:ze("cleen-transition-colors",B?"cleen-cursor-not-allowed cleen-bg-muted":"cleen-cursor-pointer hover:cleen-bg-surface hover:cleen-border-muted-foreground",y?.card?.classNames?.container,G&&["cleen-border-muted-foreground cleen-bg-surface",y?.cardDragActive]),childrenContainer:ze({"cleen-blur-sm":U},y?.card?.classNames?.childrenContainer)},style:w?.card?.style,styles:{...w?.card?.styles,container:{...w?.card?.styles?.container,...G?w?.cardDragActive:void 0}},children:xc("div",{className:ze("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",y?.dropArea),style:w?.dropArea,"aria-disabled":B||N||U,children:[_e("div",{className:ze("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-border cleen-border-border cleen-rounded-xl cleen-size-11 cleen-text-neutral-700",y?.iconContainer),style:w?.iconContainer,children:n||_e(Eo,{className:"cleen-size-5"})}),xc("p",{className:ze("cleen-font-medium cleen-text-sm",y?.textContainer),style:w?.textContainer,children:[_e("span",{className:ze(B?"cleen-text-muted-foreground":"cleen-text-primary",y?.primaryText),style:w?.primaryText,children:ot?.primaryText})," ",_e("span",{className:ze("cleen-text-foreground",y?.secondaryText),style:w?.secondaryText,children:ot?.secondaryText})]}),_e("p",{className:ze("cleen-text-neutral-600 cleen-text-xs",y?.helperText),style:w?.helperText,children:ot?.helperText})]})}),U&&_e(le,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),h&&E.size>0&&_e("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(E.values()).map(K=>_e(Fv,{fileEntry:K,onRemove:wt,onFileClick:p,labels:ot,classNames:y?.fileCard,styles:w?.fileCard},K.id))}),v&&!V&&Y.length>0&&P3(_e("div",{className:"cleen",children:_e(Oh,{...C,files:Y,onDismiss:de,className:ze("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",y?.progressTracker?.className),classNames:y?.progressTracker?.classNames,...w?.progressTracker})}),document.body),(s?.errorMessage||s?.infoMessage||s?.subtitle)&&_e(oe,{...s})]})});var w3=e=>{let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;let n={dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat("en-US",n).format(t)}catch{return new Intl.DateTimeFormat("en-US",n).format(t)}},tI={uploaded:e=>`Uploaded: ${w3(e)}`};var _h={"image/":"image","video/":"video","audio/":"audio"},Uh={"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"},oI={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"},nI=["http:","https:","blob:"];var M3=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in Uh)return Uh[t];let n=Object.keys(_h).find(r=>t.startsWith(r));return n?_h[n]:void 0},Hh=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},k3=e=>{let t=Hh(e);return t?oI[t]:void 0},rI=e=>M3(e.type)??k3(e.name)??"generic",aI=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return nI.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as _t,formatFileSize as B3}from"@cleen/ui-core";import{forwardRef as N3,useMemo as lI,useState as R3}from"react";import{Fragment as L3,jsx as gt,jsxs as Pc}from"react/jsx-runtime";var T3=N3(function({file:t,preview:n=!1,onRemove:r,description:l,labels:a,className:c,classNames:i,style:d,styles:p,...s},g){let[f,b]=R3(),I=lI(()=>({...tI,...a}),[a]),h=rI(t),v=ch(Hh(t.name)),C=aI(t.url)?t.url:void 0,x=t.previewUrl||t.url,y=n&&(h==="image"||h==="video")&&!!x&&f!==x,P=lI(()=>{if(l!=null)return l;let M=[];if(t.size!=null&&M.push(B3(t.size)),t.uploadedAt!=null){let D=I?.uploaded(t.uploadedAt);D&&M.push(D)}return M.length>0?M.join(" \u2022 "):null},[l,t.uploadedAt,t.size,I]),w=M=>{M.stopPropagation(),r?.(t)},L=_t("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-items-center cleen-gap-3 cleen-py-2 cleen-px-3 cleen-rounded-lg",C&&"cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-inset focus-visible:cleen-ring-primary",i?.main),B=Pc(L3,{children:[Pc("div",{className:_t("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",i?.media),style:p?.media,children:[y&&(h==="image"||h==="video"&&t.previewUrl)&&gt("img",{src:x,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>b(x)}),y&&h==="video"&&!t.previewUrl&&gt("video",{src:x,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>b(x)}),!y&&gt(v,{"aria-hidden":!0,className:_t("cleen-size-5",i?.icon),style:p?.icon})]}),Pc("div",{className:_t("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:p?.content,children:[gt("span",{className:_t("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:p?.title,title:t.name,children:t.name}),P!==null&&gt("span",{className:_t("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:p?.description,children:P})]})]});return gt("div",{className:_t("cleen",c),style:d,ref:g,...s,children:Pc("div",{className:_t("cleen-flex cleen-w-full cleen-min-w-0 cleen-items-center cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-transition-all cleen-duration-200",C&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",i?.container),style:p?.container,children:[C?gt("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:L,style:p?.main,children:B}):gt("div",{className:L,style:p?.main,children:B}),r&&gt("button",{type:"button",className:_t("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-muted focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-error",i?.removeButton),style:p?.removeButton,onClick:w,children:gt(Ae,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Sc={filterName:"",exposed:!1};import{createContext as D3}from"react";var Qe=D3({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as E3}from"@cleen/ui-core";import{useContext as F3,useState as A3}from"react";import{Fragment as O3,jsx as wa,jsxs as Gh}from"react/jsx-runtime";var cI={min:3,max:50},iI=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:n,setIsSaveFiltersStep:r,handleCloseSaveFilter:l,setError:a,onSave:c,classNames:i,styles:d,labels:p,withSavedFilters:s=!0,onCancel:g,onApply:f}=F3(Qe),[b,I]=A3(!1),h=async()=>{try{if(t.filterName.length<cI.min){a?.("filterName",p?.saveStep?.validation?.tooShort);return}if(t.filterName.length>cI.max){a?.("filterName",p?.saveStep?.validation?.tooLong);return}I(!0),await c?.(t),r(!1)}catch(v){console.error("Error saving filters:",v)}finally{I(!1)}};return e?Gh("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[wa(J,{onClick:()=>r(!1),variant:"secondary",...i?.saveFilter?.backBtn,...d?.saveFilter?.backBtn,children:p?.saveStep?.back}),wa(J,{onClick:h,isLoading:b,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...d?.saveFilter?.saveBtn,children:p?.saveStep?.save})]}):Gh(O3,{children:[s&&wa(J,{onClick:()=>{n(Sc),r(!0)},variant:"borderless-blue",...i?.saveBtn,...d?.saveBtn,children:p?.save}),Gh("div",{className:E3("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!s}),children:[wa(J,{onClick:()=>{g?.(),l()},variant:"secondary",...i?.cancelBtn,...d?.cancelBtn,children:p?.cancel}),wa(J,{onClick:()=>{f?.(),l()},...i?.applyBtn,...d?.applyBtn,children:p?.apply})]})]})};import{cn as wc}from"@cleen/ui-core";import{Link as z3}from"react-router-dom";import{Fragment as pI,jsx as Xo,jsxs as Vh}from"react/jsx-runtime";var sI=({item:e,classNames:t,styles:n})=>({disabled:e?.disabled,className:wc("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-foreground 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-muted cleen-cursor-pointer",{"cleen-text-error hover:cleen-bg-error-bg":e?.danger},t?.container),style:n?.container,children:Vh(pI,{children:[e?.icon,Xo("span",{className:wc("cleen-flex-1",t?.label),style:n?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),$h=({item:e,isLast:t,handleClick:n,onEnterSubmenu:r,classNames:l,styles:a})=>{switch(e?.type){case"group":return Vh(pI,{children:[e?.label&&Xo("p",{className:wc("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",l?.groupLabel),style:a?.groupDivider,children:e?.label}),e?.items?.map((c,i,d)=>Xo($h,{item:c,handleClick:n,onEnterSubmenu:r,isLast:i===d.length-1},c?.id||i)),!t&&Xo("hr",{className:wc("cleen-text-neutral-200",l?.groupDivider),style:a?.groupDivider})]});case"button":{let c=e?.submenu&&e?.submenu?.length>0;return Vh("button",{type:"button",onClick:()=>{c?r?.(e.submenu,e?.label):n?.(e)},...sI({item:e,classNames:l,styles:a}),children:[e?.icon,Xo("span",{className:"cleen-flex-1",children:e?.label}),c&&Xo(rt,{className:"cleen-size-4 cleen-text-neutral-400"})]})}case"link":return Xo(z3,{to:"",...sI({item:e,classNames:l,styles:a})});default:return null}};import{cn as _3}from"@cleen/ui-core";import{useEffect as dI,useState as mI}from"react";import{Fragment as U3,jsx as uI,jsxs as fI}from"react/jsx-runtime";var hI=({items:e,keepOpenOnClick:t,hideMenu:n,classNames:r,styles:l})=>{let[a,c]=mI([]),[i,d]=mI(e),p=(f,b)=>{c(I=>[...I,{items:i,title:b}]),d(f)},s=()=>{let f=a[a?.length-1];f&&(d(f?.items),c(b=>b?.slice(0,-1)))};dI(()=>{d(e),c([])},[e]),dI(()=>{let f=b=>{if(b.key==="Escape")if(a.length>0){let I=a?.[a?.length-1];d(I?.items),c(h=>h?.slice(0,-1))}else n()};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,a]);let g=f=>{f?.onClick?.(),t||n()};return fI(U3,{children:[a?.length>0&&fI("button",{onClick:s,className:_3("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-sm cleen-text-foreground hover:cleen-bg-neutral-50",r?.submenuButton),style:l?.submenuButton,children:[uI(Tt,{className:"cleen-size-4 cleen-text-neutral-300"}),a?.[a?.length-1]?.title]}),i?.map((f,b,I)=>uI($h,{item:f,isLast:b===I?.length-1,handleClick:g,onEnterSubmenu:p,classNames:r?.item,styles:l?.item},f?.id||b))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as H3,cn as Wh,useDisclosure as G3,useOutsideClick as V3,usePositionClose as $3,ZIndex as W3}from"@cleen/ui-core";import{forwardRef as q3,useRef as gI}from"react";import{createPortal as X3}from"react-dom";import{jsx as Mc,jsxs as K3}from"react/jsx-runtime";var Gn=q3(function({items:t=[],position:n="bottom-left",keepOpenOnClick:r=!0,triggerRef:l,menuRef:a,ignoreClickOutside:c=!1,zIndex:i=W3.MENU,children:d,className:p,classNames:s,style:g,styles:f,...b},I){let{isOpen:h,toggle:v,close:C}=G3(),x=gI(null),y=gI(null),P=l??x,w=a??y,{positionStyles:L,isMounted:B}=$3({triggerRef:P,targetRef:w,position:n,isOpen:h});V3({refs:[P,w],handler:C,enabled:h});let M=()=>{v()};return K3("div",{className:Wh("cleen",p),style:g,ref:I,...b,children:[Mc("div",{ref:P,onClick:M,className:Wh("cleen-size-fit",s?.trigger,h&&s?.triggerOpen),style:{...f?.trigger,...h?f?.triggerOpen:{}},children:d}),h&&X3(Mc("div",{className:"cleen",...c&&{[H3]:"true"},children:Mc("div",{ref:w,className:Wh("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!B},s?.menu),style:{zIndex:i,top:`${L.top}px`,left:`${L.left}px`,...f?.menu},children:Mc(hI,{items:t,keepOpenOnClick:r,hideMenu:C,classNames:s,styles:f})})}),document.body)]})});import{cn as kc,ColorHelpers as Bc}from"@cleen/ui-core";import{useMemo as Z3}from"react";var qh=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow"],Xh={primary:"cleen-border-primary-300 cleen-bg-primary-50 cleen-text-primary",blue:"cleen-border-blue-300 cleen-bg-blue-50 cleen-text-blue-700","lighter-blue":"cleen-border-blue-light-300 cleen-bg-blue-light-50 cleen-text-blue-light-700",indigo:"cleen-border-indigo-300 cleen-bg-indigo-50 cleen-text-indigo-700",green:"cleen-border-success/30 cleen-bg-success-bg cleen-text-success",red:"cleen-border-error/30 cleen-bg-error-bg cleen-text-error",purple:"cleen-border-purple-300 cleen-bg-purple-50 cleen-text-purple-700",pink:"cleen-border-pink-300 cleen-bg-pink-50 cleen-text-pink-700",orange:"cleen-border-orange-300 cleen-bg-orange-50 cleen-text-orange-700",yellow:"cleen-border-yellow-500 cleen-bg-yellow-50 cleen-text-yellow-700 dark:cleen-text-yellow-500",gray:"cleen-border-border cleen-bg-muted cleen-text-neutral-600"},vI={primary:"cleen-bg-primary cleen-text-primary-foreground cleen-border-primary",blue:"cleen-bg-blue-500 cleen-text-white cleen-border-blue-500","lighter-blue":"cleen-bg-blue-light-300 cleen-text-black cleen-border-blue-light-300",indigo:"cleen-bg-indigo-500 cleen-text-white cleen-border-indigo-500",green:"cleen-bg-success cleen-text-white cleen-border-success",red:"cleen-bg-error cleen-text-white cleen-border-error",purple:"cleen-bg-purple-500 cleen-text-white cleen-border-purple-500",pink:"cleen-bg-pink-500 cleen-text-white cleen-border-pink-500",orange:"cleen-bg-orange-400 cleen-text-black dark:cleen-text-white cleen-border-orange-400",yellow:"cleen-bg-yellow-400 cleen-text-black dark:cleen-text-white cleen-border-yellow-400",gray:"cleen-bg-neutral-500 cleen-text-white cleen-border-neutral-500"},II={primary:"cleen-bg-primary",blue:"cleen-bg-blue-700","lighter-blue":"cleen-bg-blue-light-700",indigo:"cleen-bg-indigo-700",green:"cleen-bg-success",red:"cleen-bg-error",purple:"cleen-bg-purple-700",pink:"cleen-bg-pink-700",orange:"cleen-bg-orange-700",yellow:"cleen-bg-yellow-700 dark:cleen-bg-yellow-500",gray:"cleen-bg-neutral-600"},bI={primary:"cleen-bg-primary-foreground",blue:"cleen-bg-white","lighter-blue":"cleen-bg-black",indigo:"cleen-bg-white",green:"cleen-bg-white",red:"cleen-bg-white",purple:"cleen-bg-white",pink:"cleen-bg-white",orange:"cleen-bg-black dark:cleen-bg-white",yellow:"cleen-bg-black dark:cleen-bg-white",gray:"cleen-bg-white"},yI={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var CI=(e,t)=>!e&&!t?"primary":t?qh[t%qh.length]:e;import{jsx as Kh,jsxs as Y3}from"react/jsx-runtime";var Te=({className:e,classNames:t,style:n,styles:r,label:l,color:a="primary",variant:c="rounded",showDot:i=!1,icon:d,removeable:p=!1,withBorder:s=!0,filled:g=!1,onRemoveClicked:f,onClick:b,colorByIndex:I,children:h,...v})=>{let{variantClass:C,dotVariantClass:x,dotVariantStyle:y,variantStyle:P}=Z3(()=>{let w={};if(a in Xh){let L=CI(a,I);w.variantClass=g?vI[L]:Xh[L],w.dotVariantClass=g?bI[L]:II[L]}else w.variantStyle={borderColor:g?a:Bc.trasparentize(a,.8),backgroundColor:g?a:Bc.trasparentize(a,.95),color:g?Bc.adjustColorForContrast(a,.5):a},w.dotVariantStyle={backgroundColor:g?Bc.adjustColorForContrast(a,.5):a};return w},[a,I,g]);return Kh("div",{className:kc("cleen",e),style:n,children:Y3("span",{className:kc("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",{"cleen-border":s},C,yI[c],{"hover:cleen-opacity-80 cleen-cursor-pointer":b||p},t?.container),style:{...P,...r?.container},onClick:b,...v,children:[i&&Kh("span",{className:kc("cleen-size-2 cleen-rounded-[50%]",x,t?.dot),style:{...y,...r?.dot}}),d,l??h,p&&Kh(Ae,{className:kc("cleen-size-3 cleen-cursor-pointer cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-transition-transform cleen-duration-200 hover:cleen-scale-125",t?.removable),style:r?.removable,onClick:f})]})})};import{cn as J3}from"@cleen/ui-core";import{useContext as j3,useState as xI}from"react";import{jsx as vt,jsxs as eM}from"react/jsx-runtime";var PI=({filter:e,activeTabId:t})=>{let[n,r]=xI(!1),[l,a]=xI(!1),{labels:c,onFilterDelete:i,onFilterPin:d,onFilterSelect:p,onFilterUnpin:s,setIsFiltersDropdownOpen:g}=j3(Qe),f=async()=>{try{if(!i)return;r(!0),await i(e.filterID)}catch(I){console.error("Error while deleting filter:",I)}finally{r(!1)}},b=async()=>{try{a(!0),e?.isPinned?await s?.(e.filterID):await d?.(e.filterID)}catch(I){console.error("Error while pinning/unpinnning filter:",I)}finally{a(!1)}};return vt("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:eM("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{p?.(e),g(!1)},children:[vt("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),l?vt(le,{classNames:{loader:"cleen-size-5"}}):vt(Te,{color:"gray",onClick:I=>{I.stopPropagation(),b()},icon:vt(Vr,{name:"pin",className:J3("cleen-size-3.5 group-hover:cleen-text-neutral-700 cleen-transition-colors cleen-cursor-pointer",e?.isPinned?"cleen-text-neutral-600":"cleen-text-neutral-300")}),classNames:{container:"cleen-font-bold"},label:e?.isPinned?c?.savedFilters?.filter?.unpin:c?.savedFilters?.filter?.pin}),t==="mine"&&vt(Gn,{items:[{id:"duplicate",type:"button",label:c?.savedFilters?.filter?.cancelDelete,icon:vt(Ae,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:c?.savedFilters?.filter?.delete,icon:vt(Ze,{}),danger:!0,onClick:()=>f()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:I=>I.stopPropagation(),className:"cleen-flex",children:n?vt(le,{size:"sm",color:"rgb(var(--cleen-error))"}):vt(Ze,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as fo}from"@cleen/ui-core";import{forwardRef as tM,useMemo as wI,useState as oM}from"react";import{cn as Zh}from"@cleen/ui-core";var Ma={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"}},SI=e=>{let t=e==="vertical";return{underlined:{list:Zh("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:Zh("cleen-px-1 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200",t?"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-muted-foreground hover:cleen-text-neutral-700 hover:cleen-border-border",tabDisabled:"cleen-border-transparent cleen-text-neutral-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-muted-foreground hover:cleen-bg-muted",tabDisabled:"cleen-text-neutral-300 cleen-cursor-not-allowed"},stretched:{list:"cleen-rounded-md cleen-overflow-hidden cleen-border cleen-border-border",tab:Zh("cleen-flex-1 cleen-px-3 cleen-py-2 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200 cleen-border-border cleen-justify-center",t?"[&:not(:first-child)]:cleen-border-t":"[&:not(:first-child)]:cleen-border-l"),tabActive:"cleen-bg-primary/10 cleen-text-primary",tabInactive:"cleen-text-neutral-600 hover:cleen-bg-muted",tabDisabled:"cleen-text-neutral-300 cleen-cursor-not-allowed"}}};import{jsx as Nc,jsxs as MI}from"react/jsx-runtime";var Yh=tM(function({tabs:t,variant:n="underlined",direction:r="horizontal",currentTabIndex:l,onTabChange:a,className:c,classNames:i,style:d,styles:p,...s},g){let[f,b]=oM(0),h=l!==void 0?l:f,v=wI(()=>t?.[h],[t,h]),C=(y,P)=>{b(y),a?.(y,P)},x=wI(()=>SI(r),[r]);return Nc("div",{className:fo("cleen",c),style:d,ref:g,...s,children:MI("div",{className:fo(Ma[r].container,i?.container),style:p?.container,children:[Nc("nav",{className:fo(x[n].list,Ma[r].list,i?.list),"aria-label":"Tabs",style:p?.list,children:t?.map((y,P)=>{let w=h===P,L=y?.isDisabled;return MI("span",{onClick:()=>!L&&C(P,y),className:fo("cleen-flex cleen-items-center cleen-gap-2 cleen-whitespace-nowrap",!L&&"cleen-cursor-pointer",x[n].tab,Ma[r].tab,i?.tab,L?fo(x[n].tabDisabled,i?.tabDisabled):w?fo(x[n].tabActive,i?.tabActive):fo(x[n].tabInactive,i?.tabInactive)),style:{...p?.tab,...L?p?.tabDisabled:w?p?.tabActive:p?.tabInactive},"aria-current":w?"page":void 0,"aria-disabled":L,children:[y?.label,!!y?.badge?.label&&Nc(Te,{variant:"rounded",color:w?"blue":"gray",...i?.count,...p?.count,...y.badge})]},y?.id||P)})}),!!v?.content&&Nc("div",{className:fo("h-full",Ma[r].content,i?.content),style:p?.content,children:v?.content})]})})});import{useContext as nM,useState as rM}from"react";import{jsx as Ko,jsxs as lM}from"react/jsx-runtime";var aM=e=>{let t={isFeatured:null,isMine:null,isPinned:null,isShared:null};switch(e){case"featured":t.isFeatured=!0;break;case"mine":t.isMine=!0;break;case"pinned":t.isPinned=!0;break;case"shared":t.isShared=!0;break;case"all":default:break}return t},kI=({selectedSavedFilter:e,filters:t,isFiltersFetching:n,onFilterCategoryChange:r})=>{let[l,a]=rM("all"),{labels:c,classNames:i,styles:d,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:s}=nM(Qe);return Ko(ba,{isOpen:p,onOpenChange:s,leftIcon:Ko(Rr,{className:"cleen-size-5"}),label:e?.title??c?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...d?.dropdown,children:lM("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[Ko(Yh,{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:(g,f)=>{a(f?.id),r?.(aM(f?.id))},classNames:{list:"cleen-mb-2"}}),Ko("div",{className:"flex flex-col",children:n?Ko(le,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(g=>Ko(PI,{filter:g,activeTabId:l},g.filterID)):Ko("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:c?.savedFilters?.noFilters})})]})})};import{cn as Ut}from"@cleen/ui-core";import{forwardRef as cM,useEffect as iM,useId as sM,useState as pM}from"react";import{jsx as Zo,jsxs as Qh}from"react/jsx-runtime";var Jh=cM(function({id:t,name:n,required:r,checked:l,defaultChecked:a=!1,onChange:c,title:i,label:d,labelTooltip:p,sublabel:s,disabled:g,classNames:f,className:b,style:I,styles:h,infoLabels:v,...C},x){let y=typeof l=="boolean",[P,w]=pM(a);iM(()=>{y||w(a)},[a,y]);let L=y?l:P,B=sM(),M=i?`${B}-title`:void 0,D=d?`${B}-label`:void 0,N=[M,D].filter(Boolean).join(" ")||void 0,S=()=>{g||(y||w(!P),c?.(!L))};return Zo("div",{className:Ut("cleen",b),style:I,children:Qh("div",{className:Ut("cleen-flex cleen-flex-col",f?.container),style:h?.container,children:[i&&Zo(re,{id:M,htmlFor:t||n,required:r,tooltip:p,className:Ut("cleen-mb-1.5",f?.title?.className),classNames:f?.title?.classNames,...h?.title,children:i}),Qh("div",{className:Ut("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",f?.switchContainer),style:h?.switchContainer,children:[Zo("button",{id:t||n,type:"button",role:"switch","aria-checked":L,"aria-labelledby":N,disabled:g,onClick:S,className:Ut("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",L?"cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]":"cleen-bg-neutral-200 hover:cleen-bg-neutral-300",f?.switch),style:h?.switch,ref:x,...C,children:Zo("span",{"aria-hidden":"true",className:Ut("cleen-inline-block cleen-bg-primary-foreground 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",L?"cleen-translate-x-5":"cleen-translate-x-0",f?.check),style:h?.check})}),(d||s)&&Qh("div",{className:Ut("cleen-flex cleen-flex-col cleen-text-sm",f?.labelContainer),style:h?.labelContainer,children:[d&&Zo("span",{id:D,className:Ut("cleen-font-semibold cleen-text-foreground",f?.label),style:h?.label,children:d}),s&&Zo("span",{className:Ut("cleen-font-normal cleen-text-muted-foreground",f?.sublabel),style:h?.sublabel,children:s})]})]}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Zo(oe,{...v})]})})});import{useContext as dM}from"react";import{Fragment as mM,jsx as BI,jsxs as uM}from"react/jsx-runtime";var NI=()=>{let{classNames:e,styles:t,labels:n,saveStepValues:r,setSaveStepValues:l,errors:a,clearError:c}=dM(Qe);return uM(mM,{children:[BI(ue,{value:r.filterName,onChange:i=>{l(d=>({...d,filterName:i.target.value})),a?.filterName&&c?.("filterName")},label:n?.saveStep?.filterNameInput?.label,placeholder:n?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:a?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),BI(Jh,{checked:r.exposed,onChange:i=>l(d=>({...d,exposed:i})),title:n?.saveStep?.exposureSwitch?.title,label:n?.saveStep?.exposureSwitch?.label,sublabel:n?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var RI={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 fM}from"@cleen/ui-core";import{useState as jh}from"react";import{jsx as hM}from"react/jsx-runtime";var TI=({children:e,value:t})=>{let[n,r]=jh(!1),[l,a]=jh(Sc),{errors:c,setError:i,clearError:d}=fM({}),[p,s]=jh(!1),g=()=>{r(!1),t?.onClose?.()};return hM(Qe.Provider,{value:{isSaveFiltersStep:n,setIsSaveFiltersStep:r,saveStepValues:l,setSaveStepValues:a,handleCloseSaveFilter:g,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:s,errors:c,setError:i,clearError:d,...t},children:e})};import{applyDefaults as gM,cn as LI}from"@cleen/ui-core";import{forwardRef as DI,useContext as vM}from"react";import{Fragment as yM,jsx as ho,jsxs as CM}from"react/jsx-runtime";var IM=DI(function({selectedSavedFilter:t,savedFilters:n,isFiltersFetching:r,children:l,classNames:a,styles:c,labels:i,withSavedFilters:d=!0,onClear:p,onSave:s,onCancel:g,onApply:f,onClose:b,filterDateFormatter:I,onFilterCategoryChange:h,onFilterDelete:v,onFilterPin:C,onFilterSelect:x,onFilterUnpin:y,...P},w){return ho(TI,{value:{selectedSavedFilter:t,savedFilters:n,isFiltersFetching:r,classNames:a,styles:c,labels:gM(RI,i),withSavedFilters:d,onClear:p,onSave:s,onCancel:g,onApply:f,onClose:b,filterDateFormatter:I,onFilterCategoryChange:h,onFilterDelete:v,onFilterPin:C,onFilterSelect:x,onFilterUnpin:y},children:ho(bM,{...P,ref:w,children:l})})}),bM=DI(function({children:t,...n},r){let{handleCloseSaveFilter:l,isSaveFiltersStep:a,selectedSavedFilter:c,savedFilters:i,isFiltersFetching:d,classNames:p,styles:s,labels:g,withSavedFilters:f=!0,onClear:b,onFilterCategoryChange:I,onFilterSelect:h}=vM(Qe);return ho(Bh,{footer:ho(iI,{}),headerCloseBtn:ho(J,{onClick:()=>{b?.(),h?.(void 0)},leftIcon:ho(Ze,{}),variant:"secondary",...p?.clearBtn,...s?.clearBtn,children:g?.clear}),classNames:{...p,content:LI("cleen-space-y-4",p?.content),footer:LI("cleen-justify-between",p?.footer)},onClose:l,ref:r,...n,title:a?g?.saveStep?.title:n.title,subtitle:a?g?.saveStep?.subtitle:n.subtitle,children:a?ho(NI,{}):CM(yM,{children:[f&&ho(kI,{filters:i,selectedSavedFilter:c,onFilterCategoryChange:I,isFiltersFetching:d}),t]})})});import{cn as Vn}from"@cleen/ui-core";import{forwardRef as xM}from"react";import{jsx as Rc,jsxs as EI}from"react/jsx-runtime";var FI=xM(({title:e,titleTooltip:t,subtitle:n,required:r,labelProps:l,children:a,className:c,classNames:i,style:d,styles:p,...s},g)=>Rc("div",{ref:g,className:Vn("cleen",c),style:{...d,width:"100%"},...s,children:EI("div",{className:Vn("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:p?.container,children:[EI("div",{className:Vn("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:p?.titleColumn,children:[Rc(re,{...l,required:r,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:Vn("cleen-truncate",i?.title?.classNames?.label)},...p?.title,children:e}),n&&Rc("div",{className:Vn("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-w-full cleen-font-normal cleen-text-neutral-600 cleen-text-sm",i?.subtitle),style:p?.subtitle,children:n})]}),Rc("div",{className:Vn("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:p?.controlsRow,children:a})]})}));FI.displayName="FormGroup";import{cn as Pe,useDebounce as PM,useOutsideClick as SM,usePositionClose as wM,ZIndex as MM}from"@cleen/ui-core";import{useEffect as Tc,useMemo as e0,useRef as t0,useState as it}from"react";import{createPortal as kM}from"react-dom";import{Fragment as RM,jsx as Z,jsxs as Ue}from"react/jsx-runtime";function BM(e){return e!==null&&typeof e=="object"}function Le(e,t){if(BM(e)&&t in e)return e[t]}function AI(e,t){let n=Le(e,t);return Array.isArray(n)?n:[]}function OI(e,t){let n=e?.[t];if(typeof n=="string"||typeof n=="number")return n;let r=e?.data?.[t];return typeof r=="string"||typeof r=="number"?r:null}var NM=({position:e="bottom-right",labels:t,groups:n=[],selectedItemID:r=null,groupThreeDotMenuOptions:l=[],itemThreeDotMenuOptions:a=[],refetchData:c,onGroupSave:i,onItemSave:d,onGroupThreeDotMenuClick:p,onItemThreeDotMenuClick:s,onSearchChange:g,onItemSelect:f,groupIDKey:b,groupTitleKey:I,itemsKey:h,itemIDKey:v,itemGroupIDKey:C,itemTitleKey:x,itemSubtitleKey:y,newValueMinLength:P=2,isLoading:w=!1,isGroupSaving:L=!1,isItemSaving:B=!1,selectedColor:M="rgb(var(--cleen-primary-100))",hasFiltering:D=!0,zIndex:N=MM.POPOVER,className:S,classNames:R,style:F,styles:T})=>{let[k,_]=it(!1),[E,O]=it(!1),[A,U]=it(!1),[G,W]=it(!1),[q,H]=it(null),[V,Q]=it(null),[z,Y]=it(""),[de,Ie]=it(""),[xe,wt]=it(null),tt=t0(void 0),[j,ce]=it(""),[st]=PM(j,500),[pt,De]=it(""),Mt=t0(null),ot=t0(null),{positionStyles:K,isMounted:we}=wM({triggerRef:Mt,targetRef:ot,position:e,isOpen:k,offset:10});SM({refs:[ot],handler:()=>_(!1),enabled:k});let Ee=e0(()=>n??[],[n]),Me=e0(()=>{let $=new Map;for(let ee of Ee){let ie=Le(ee,b);ie!=null&&$.set(ie,AI(ee,h))}return $},[Ee,b,h]),nt=e0(()=>{let $=[];return q==null?$=Array.from(Me?.values()).flat():$=Me?.get(q)??[],D&&pt.trim()!==""&&($=$.filter(ee=>{let ie=String(Le(ee,x)??""),Fe=y?String(Le(ee,y)??""):"";return ie.toLowerCase().includes(pt?.toLowerCase()??"")||Fe.toLowerCase().includes(pt?.toLowerCase()??"")})),$},[q,Me,pt,x,y,D]);Tc(()=>{let $=tt.current!==r;if(tt.current=r,r==null){$&&(Q(null),H(null));return}let ie=Array.from(Me?.values())?.flat()?.find(Fe=>Le(Fe,v)===r);if(ie){let Fe=Le(ie,C)??null;Q(ie),H(Fe)}else $&&Q(null)},[r,Me,v,C]),Tc(()=>{if(xe==null)return;let ee=Array.from(Me?.values())?.flat()?.find(Fe=>Le(Fe,v)===xe);if(!ee)return;let ie=Le(ee,C);H(typeof ie=="string"||typeof ie=="number"?ie:null),Q(ee),wt(null),f?.(ee)},[xe,Me,v,C,f]),Tc(()=>{g&&g(st??"")},[st,g]),Tc(()=>{k||(O(!1),U(!1),Y(""),Ie(""))},[k]);let dt=$=>{$===q?(H(null),Q(null),f?.(null)):(Q(null),H($),f?.(null))},gi=$=>{let ee=Le($,C);H(typeof ee=="string"||typeof ee=="number"?ee:null),Q($),f?.($),_(!1)};async function Va(){if(!i)return;let $={[I]:z};try{let ee=await i($);if(ee?.success){O(!1),Y(""),c&&await c();let ie=OI(ee,b);ie!=null&&(H(ie),Q(null),f?.(null))}}catch{}}async function ne(){if(!d)return;let $={[x]:de,...q!=null?{[C]:q}:{}};try{let ee=await d($);ee?.success&&(U(!1),Ie(""),wt(OI(ee,v)),c&&await c())}catch{}}return Z("div",{className:Pe("cleen",S),style:F,children:Ue("div",{ref:Mt,className:Pe("cleen-relative cleen-w-full cleen-cursor-pointer",R?.container),style:T?.container,onClick:$=>{$.stopPropagation(),_(!0)},children:[Z(ue,{placeholder:t?.inputPlaceholder,rightIcon:Z(Lt,{className:Pe("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!k})}),value:j,onChange:$=>{H(null),Q(null),ce($.target.value)},classNames:{input:k?"":"cleen-cursor-pointer"},className:R?.input,style:T?.input}),k&&kM(Z("div",{className:"cleen",children:Ue("div",{ref:ot,className:Pe("cleen-overflow-hidden cleen-flex cleen-items-start cleen-justify-start cleen-w-[500px] cleen-h-[344px] cleen-bg-surface cleen-border cleen-border-border cleen-rounded-lg cleen-shadow-xl cleen-cursor-default","cleen-absolute",{"cleen-opacity-0":!we},R?.columnsContainer),style:{zIndex:N,top:`${K.top}px`,left:`${K.left}px`,...T?.columnsContainer},children:[Ue("div",{className:"cleen-w-1/2 cleen-h-full",children:[Z("div",{className:Pe("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:w?Z("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:Z(le,{size:"sm"})}):n?.map(($,ee)=>{let ie=Le($,b),Fe=ie===q,vi=String(Le($,I)??""),Ii=AI($,h)?.length??0;return Ue("div",{className:Pe("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 cleen-transition-colors hover:cleen-bg-neutral-50",R?.groupItem),style:{...T?.groupItem||{},...Fe?{backgroundColor:M}:{}},onClick:be=>{be.stopPropagation(),be.preventDefault(),dt(ie??null)},children:[Ue("div",{className:Pe("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[Z("span",{className:Pe("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",R?.groupItemTitle),style:T?.groupItemTitle,children:vi}),Z(Te,{color:"lighter-blue",label:Ii})]}),l?.length>0&&Z("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:be=>{be.stopPropagation(),p?.($)},children:Z(Gn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(be=>{let ar=be?.disabledOptionCallback?.($);return{...be,type:"button",label:Z("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:be?.label}),onClick:()=>{ar||be?.onClick($)},disabled:ar}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-surface cleen-rounded-md",children:Z(vn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${ee}-${String(ie??ee)}`)})}),Z(lt,{isHorizontal:!0}),E?Ue("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[Z(ue,{leftIcon:Z(ro,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:z,onChange:$=>Y($.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),Z("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?L?Z(le,{}):z?.length>P?Z(J,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{Va()},classNames:{container:"cleen-w-max cleen-h-7"}}):Z("div",{}):Z("div",{})})]}):Ue("div",{className:Pe("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer cleen-transition-colors hover:cleen-bg-neutral-50",R?.newGroupButton),style:T?.newGroupButton,onClick:()=>O(!0),children:[Z(ro,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),Z("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),Z(lt,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),Ue("div",{className:"cleen-w-1/2 cleen-h-full",children:[Ue("div",{className:Pe("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&&Ue(RM,{children:[Z(ue,{leftIcon:Z(Ft,{className:"cleen-size-5"}),className:Pe("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!G}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:$=>De($.target.value),placeholder:t?.filterPlaceholder}),Z("button",{type:"button",className:Pe("cleen-w-full cleen-py-0.5 cleen-transition-all cleen-bg-neutral-50 hover:cleen-bg-muted cleen-border-t cleen-border-border",{"-cleen-mt-10 cleen-border-transparent":!G}),onClick:()=>W($=>!$),children:Z(vr,{className:Pe("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",G?"-cleen-rotate-90":"cleen-rotate-90")})})]}),w?Z("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:Z(le,{size:"sm"})}):nt?.map(($,ee)=>{let ie=Le($,v),Fe=V&&Le(V,v)===ie,vi=String(Le($,x)??""),Ii=y?String(Le($,y)??""):"";return Ue("div",{className:Pe("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-neutral-50 cleen-transition-colors",R?.item),style:{...T?.item||{},...Fe?{backgroundColor:M}:{}},onClick:be=>{be.stopPropagation(),be.preventDefault(),gi($)},children:[Ue("div",{className:Pe("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",a?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[Z("span",{className:Pe("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",R?.itemTitle),style:T?.itemTitle,children:vi}),Z("span",{className:Pe("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",R?.itemSubtitle),style:T?.itemSubtitle,children:Ii})]}),a?.length>0&&Z("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:be=>{be.stopPropagation(),s?.($)},children:Z(Gn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:a?.map(be=>{let ar=be?.disabledOptionCallback?.($);return{...be,type:"button",label:Z("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:be?.label}),onClick:()=>{ar||be?.onClick($)},disabled:ar}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-surface cleen-rounded-md",children:Z(vn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${ee}-${String(ie??ee)}`)})]}),Z(lt,{isHorizontal:!0}),A?Ue("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[Z(ue,{leftIcon:Z(ro,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:de,onChange:$=>Ie($.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),Z("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:d?B?Z(le,{}):de?.length>P?Z(J,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{ne()},classNames:{container:"cleen-w-max cleen-h-7"}}):Z("div",{}):Z("div",{})})]}):Ue("div",{className:Pe("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:()=>U(!0),children:[Z(ro,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),Z("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!k&&V&&Z("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-surface",onClick:()=>_(!0),children:Z("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(Le(V,x)??"")})})]})})};import{cn as Ne,useDebounce as TM,useOutsideClick as LM,usePositionClose as DM,ZIndex as EM}from"@cleen/ui-core";import{forwardRef as FM,useEffect as UI,useId as AM,useMemo as HI,useRef as Lc,useState as Dc}from"react";import{createPortal as OM}from"react-dom";import{cn as Yo}from"@cleen/ui-core";import{jsx as go,jsxs as zI}from"react/jsx-runtime";var _I=({options:e,selection:t,classNames:n,styles:r,onChoose:l,displaySubtextInline:a=!0,activeIndex:c=-1,getOptionId:i,onActiveIndexChange:d,...p})=>go("div",{...p,children:go("div",{className:Yo("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",n?.container),style:r?.container,children:e?.map((s,g)=>{let f=t?.some(I=>I?.value===s?.value),b=g===c;return zI("li",{id:i?.(g),role:"option","aria-selected":f,className:Yo("cleen-flex cleen-justify-between cleen-items-center hover:cleen-bg-muted cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-cursor-pointer cleen-select-none",{"cleen-bg-muted hover:cleen-bg-neutral-200":f,"cleen-bg-muted":b},n?.item),style:r?.item,onMouseEnter:()=>d?.(g),onClick:()=>l?.(s,f),children:[zI("div",{className:Yo("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",n?.labels,!a&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:r?.labels,children:[s?.leadingBadgeValue&&go(Te,{color:"gray",label:s?.leadingBadgeValue}),s?.icon,s?.label&&go("span",{className:Yo("cleen-font-medium cleen-text-foreground cleen-text-base",!a&&"cleen-w-full cleen-truncate"),children:s?.label}),s?.preSublabel&&go("span",{className:Yo("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!a&&"cleen-w-full cleen-truncate"),children:s?.preSublabel}),s?.sublabel&&go("span",{className:Yo("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!a&&"cleen-w-full cleen-truncate"),children:s?.sublabel})]}),f&&go("div",{className:n?.checkContainer,style:r?.checkContainer,children:go(Rt,{className:Yo("cleen-text-primary",n?.check),style:r?.check})})]},s.value)})})});import{Fragment as _M,jsx as Ce,jsxs as Ec}from"react/jsx-runtime";var zM=FM(function({id:t,name:n,label:r,labelTooltip:l,labels:a,options:c,value:i,displaySelected:d="under",isLoading:p=!1,required:s,internalFiltering:g=!1,closeOnReachingLimit:f=!0,limit:b,getCustomBadgeLabel:I,displaySubtextInline:h=!0,selectedBadgeColor:v="blue",debounceDelay:C=0,characterThreshold:x=2,disabled:y=!1,isNoDataVisibleOnCreateNew:P=!0,zIndex:w=EM.DROPDOWN,className:L,classNames:B,style:M,styles:D,infoLabels:N,menuDetachedFromPortal:S,onInputChange:R,onChange:F,onCreateNewOption:T,createNewOptionLabelString:k,onLookupBlur:_,triggerBlurOnlyWhenOpen:E=!0,menuRef:O,...A},U){let[G,W]=Dc(!1),q=Lc(null),H=Lc(null),V=O??q,{positionStyles:Q,isMounted:z}=DM({triggerRef:H,targetRef:V,position:"bottom-left",isOpen:G,offset:4});LM({refs:[V,H],handler:()=>{W(!1),_?.()},enabled:E?G:!0});let[Y,de]=Dc(""),Ie=TM(Y,C),xe=C?Ie:Y,wt=Lc(xe),tt=Lc(!1),j=()=>{tt.current=!1,de("")},ce=Array.isArray(i),[st,pt]=Dc([]),De=ce?i:st,Mt=["inside","inside-badge"].includes(d),ot=(ne,$=!1)=>{if($){let ie=De.filter(Fe=>Fe.value!==ne.value);ce||pt(ie),F?.(ie);return}let ee;if(b===1)ee=[ne];else{if(b&&De.length>=b)return;ee=[...De,ne]}ce||pt(ee),F?.(ee),f&&b&&ee.length>=b&&(j(),W(!1))},K=HI(()=>g?c?.filter(ne=>ne?.label?.match(new RegExp(xe,"i"))):c,[c,xe,g]),we=HI(()=>k&&T&&!p&&Y?.length>0&&!K?.some(ne=>ne?.label===Y)?typeof k=="function"?k(Y):k:null,[k,T,p,Y,K]);UI(()=>{if(wt.current!==xe)if(wt.current=xe,xe.length<x)W(!1);else{R?.(xe);let ne=!!H.current?.contains(document.activeElement);tt.current&&ne&&W(!0)}},[xe,R,x]);let Ee=AM(),Me=ne=>`${Ee}-option-${ne}`,[nt,dt]=Dc(-1);UI(()=>{dt(-1)},[xe,G]);let gi=ne=>{let $=K?.length??0;switch(ne.key){case"ArrowDown":if(!$)return;if(ne.preventDefault(),!G){W(!0),dt(0);return}dt(ee=>(ee+1)%$);break;case"ArrowUp":if(!$)return;if(ne.preventDefault(),!G){W(!0),dt($-1);return}dt(ee=>(ee-1+$)%$);break;case"Home":if(!G||!$)return;ne.preventDefault(),dt(0);break;case"End":if(!G||!$)return;ne.preventDefault(),dt($-1);break;case"Enter":{if(!G||nt<0)return;let ee=K?.[nt];if(!ee)return;ne.preventDefault();let ie=De?.some(Fe=>Fe.value===ee.value);ot(ee,ie);break}case"Escape":G&&(ne.preventDefault(),W(!1));break;default:break}},Va=Ec("ul",{id:Ee,role:"listbox",className:Ne("cleen-flex cleen-flex-col cleen-gap-0.5 cleen-bg-background cleen-shadow-[0px_12px_16px_-4px_rgba(var(--cleen-neutral-100))] cleen-px-1.5 cleen-pt-1 cleen-pb-0.5 cleen-border cleen-border-border cleen-rounded-lg",B?.menu?.container),style:D?.menu?.container,children:[p?Ce(le,{className:Ne("cleen-py-3",B?.menu?.loader),style:D?.menu?.loader}):!K||K?.length===0?!!a?.noDataFound&&(P||!we)&&Ce("div",{className:Ne("cleen-flex cleen-justify-center cleen-items-center cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-text-center cleen-pointer-events-none cleen-select-none",B?.menu?.noDataFound),style:D?.menu?.noDataFound,children:a?.noDataFound}):Ce(_I,{options:K,selection:De,onChoose:ot,displaySubtextInline:h,activeIndex:nt,getOptionId:Me,onActiveIndexChange:dt,...B?.menu?.list,...D?.menu?.list}),we&&Ec("div",{className:Ne("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",B?.createNewOption?.container),style:D?.createNewOption?.container,children:[Ce(lt,{...B?.createNewOption?.divider,...D?.createNewOption?.divider}),Ce("span",{className:Ne("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",B?.createNewOption?.value),style:D?.createNewOption?.value,onClick:()=>{let ne=T?.(Y);typeof ne=="boolean"&&!ne||(j(),W(!1))},children:we})]})]});return Ce("div",{className:Ne("cleen",L),style:M,children:Ec("div",{className:Ne("cleen-flex cleen-flex-col cleen-w-full",B?.container),style:D?.container,children:[r&&Ce(re,{htmlFor:t||n,required:s,tooltip:l,className:Ne("cleen-mb-1.5",B?.label?.className),classNames:B?.label?.classNames,...D?.label,children:r}),Ce("div",{ref:H,className:Ne("cleen-relative cleen-flex cleen-items-center",B?.input?.container),style:D?.input?.container,children:Ce(ue,{id:t||n,type:"search",autoFocus:!1,autoComplete:"off",className:Ne("cleen-w-full",B?.input?.component?.className),classNames:{...B?.input?.component?.classNames,inputContainer:Ne({"cleen-flex-wrap":Mt},B?.input?.component?.classNames?.inputContainer),input:Ne({"cleen-pl-2":Mt},B?.input?.component?.classNames?.input),leftIconContainer:Ne({"cleen-pr-0":Mt},B?.input?.component?.classNames?.leftIconContainer)},...D?.input?.component,leftIcon:Ec(_M,{children:[Ce(Ft,{}),Mt&&(De||[])?.length>0&&Ce("div",{className:Ne("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{W(!G)},children:d==="inside-badge"?De?.map(ne=>Ce(Te,{label:ne?.label,color:"blue",variant:"semiRounded"},ne.value)):Ce("span",{className:Ne("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:De?.map(ne=>ne?.label).join(", ")})})," "]}),onFocus:()=>{xe.length>=x&&Y.length>=x&&W(!0)},value:Y,onChange:ne=>{tt.current=!0,de(ne.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":G,"aria-controls":G?Ee:void 0,"aria-activedescendant":G&&nt>=0?Me(nt):void 0,onKeyDown:gi,ref:U,required:s,disabled:y,...A})}),G&&(S?Ce("div",{ref:V,children:Va}):OM(Ce("div",{className:"cleen",children:Ce("div",{ref:V,className:Ne("cleen-absolute",{"cleen-opacity-0":!z}),style:{zIndex:w,top:`${Q.top}px`,left:`${Q.left}px`,minWidth:H.current?.offsetWidth?`${H.current.offsetWidth}px`:void 0},children:Va})}),document.body)),d==="under"&&De?.length>0&&Ce("span",{className:Ne("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",B?.pillbadge?.container),style:D?.pillbadge?.container,children:De?.map(ne=>Ce(Te,{label:I?I(ne):ne?.label,color:v,removeable:!y,onRemoveClicked:()=>{if(y)return;let $=De?.filter(ee=>ee?.value!==ne?.value);ce||pt($),F?.($)},...B?.pillbadge?.component,...D?.pillbadge?.component},ne.value))}),(N?.errorMessage||N?.infoMessage||N?.subtitle)&&Ce(oe,{...N})]})})});import{cn as pe}from"@cleen/ui-core";import{forwardRef as UM}from"react";import HM from"react-markdown";import GM from"remark-gfm";import{jsx as se}from"react/jsx-runtime";var VM=UM(function({components:t,children:n,className:r,classNames:l,style:a,styles:c,...i},d){let p={h1:({children:s})=>se("h1",{className:pe("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:s}),h2:({children:s})=>se("h2",{className:pe("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:s}),h3:({children:s})=>se("h3",{className:pe("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:s}),h4:({children:s})=>se("h4",{className:pe("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:s}),h5:({children:s})=>se("h5",{className:pe("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:s}),h6:({children:s})=>se("h6",{className:pe("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:s}),p:({children:s})=>se("p",{className:pe("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:s}),a:({href:s,children:g})=>se("a",{href:s,className:pe("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:g}),ul:({children:s})=>se("ul",{className:pe("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:s}),ol:({children:s})=>se("ol",{className:pe("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:s}),li:({children:s})=>se("li",{className:pe("cleen-mb-1"),children:s}),blockquote:({children:s})=>se("blockquote",{className:pe("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-neutral-700 cleen-mb-4"),children:s}),code:({className:s,children:g,...f})=>s?se("code",{className:pe("cleen-font-mono cleen-text-sm"),...f,children:g}):se("code",{className:pe("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...f,children:g}),pre:({children:s})=>se("pre",{className:pe("cleen-bg-muted dark:cleen-bg-neutral-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:s}),hr:()=>se("hr",{className:pe("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:s,alt:g})=>se("img",{src:s,alt:g,className:pe("cleen-max-w-full cleen-rounded")}),strong:({children:s})=>se("strong",{className:pe("cleen-font-semibold"),children:s}),em:({children:s})=>se("em",{className:pe("cleen-italic"),children:s}),table:({children:s})=>se("div",{className:pe("cleen-overflow-x-auto cleen-mb-4"),children:se("table",{className:pe("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:s})}),thead:({children:s})=>se("thead",{className:pe("cleen-border-b cleen-border-border"),children:s}),th:({children:s})=>se("th",{className:pe("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:s}),td:({children:s})=>se("td",{className:pe("cleen-p-2 cleen-border-b cleen-border-border"),children:s}),input:({type:s,checked:g,disabled:f})=>s==="checkbox"?se("input",{type:"checkbox",checked:g,disabled:f,readOnly:!0,className:pe("cleen-mr-2 cleen-align-middle")}):se("input",{type:s})};return se("div",{ref:d,className:pe("cleen",r,l?.container),style:{...a,...c?.container},...i,children:se(HM,{...i,remarkPlugins:[GM],components:{...p,...t},children:n})})});import{cn as Qo,useBodyScrollLock as $M,useCleenOverlays as GI,ZIndex as WM}from"@cleen/ui-core";import{forwardRef as qM,useCallback as XM,useEffect as o0,useId as KM,useRef as ZM,useState as VI}from"react";import{createPortal as YM}from"react-dom";import{jsx as ka,jsxs as WI}from"react/jsx-runtime";var QM={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},$I=300,JM=qM(function({isOpen:t=!1,onClose:n,closeOnOverlayClick:r=!0,closeButtonIcon:l=ka(Ae,{className:"cleen-size-5"}),header:a,footer:c,zIndex:i=WM.MODAL,size:d="md",color:p,p:s,gap:g,radius:f=16,className:b,classNames:I,style:h,styles:v,children:C,...x},y){let[P,w]=VI(t),[L,B]=VI(t),M=ZM(null),D=KM(),{addOverlay:N,removeOverlay:S}=GI(),R=XM(()=>{w(!1),setTimeout(()=>n?.(),$I)},[n]);return o0(()=>{if(t){B(!0);let F=setTimeout(()=>w(!0),1);return()=>clearTimeout(F)}else{w(!1);let F=setTimeout(()=>B(!1),$I);return()=>clearTimeout(F)}},[t]),o0(()=>{if(t)return N(D),()=>S(D)},[N,S,t,D]),o0(()=>{let F=T=>{let{overlays:k}=GI.getState();T.key==="Escape"&&k[k.length-1]===D&&R()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[R,D]),$M(L),L?YM(WI("div",{className:Qo("cleen",b),style:h,ref:y,...x,children:[ka("div",{className:Qo("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",I?.overlay),style:{zIndex:i,...v?.overlay},onClick:()=>{r&&R()},"aria-hidden":"true"}),ka("div",{className:Qo("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:i,...v?.container},"aria-modal":"true",role:"dialog",children:WI(me,{header:a,footer:c,color:p,p:s,gap:g,radius:f,className:Qo("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 d=="number"?d:QM[d],...v?.modal?.style},classNames:{...I?.modal?.classNames,container:Qo("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",I?.modal?.classNames?.container),childrenContainer:Qo("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",I?.modal?.classNames?.childrenContainer)},styles:v?.modal?.styles,ref:M,children:[C,l&&ka("div",{className:Qo("cleen-top-3 cleen-right-3 cleen-absolute"),children:ka(J,{variant:"borderless",onClick:R,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:l})})]})})]}),document.body):null});import{Fragment as jM,jsxs as qI}from"react/jsx-runtime";var XI={default:{duration:3e3,progressBar:!0},success:{duration:3e3,progressBar:!0},info:{duration:3e3,progressBar:!0},warning:{duration:4e3,progressBar:!0},error:{duration:2e4,progressBar:!1}},Fc={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},KI=3,ZI=180,YI=15e3,$n="general",Ba={[$n]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},QI={primary:"cleen-bg-primary-50 cleen-text-primary",success:"cleen-bg-success-bg cleen-text-success",warning:"cleen-bg-warning-bg cleen-text-warning",error:"cleen-bg-error-bg cleen-text-error",info:"cleen-bg-info-bg cleen-text-info",neutral:"cleen-bg-muted cleen-text-muted-foreground"},JI={"top-left":"cleen-top-6 cleen-left-6 cleen-items-start","top-right":"cleen-top-6 cleen-right-6 cleen-items-end","top-center":"cleen-top-6 cleen-left-1/2 -cleen-translate-x-1/2 cleen-items-center","bottom-left":"cleen-bottom-6 cleen-left-6 cleen-items-start","bottom-right":"cleen-bottom-6 cleen-right-6 cleen-items-end","bottom-center":"cleen-bottom-6 cleen-left-1/2 -cleen-translate-x-1/2 cleen-items-center"},Na={region:"Notifications",critical:"Critical",action:"Action",dismiss:"Dismiss",dismissAll:"Dismiss all",close:"Dismiss notification",dismissGroup:"Dismiss group",showAll:"Show all",collapse:"Collapse",expand:"Expand",openNotifications:"Open notifications",more:e=>`+${e} more`,moreBehind:e=>qI(jM,{children:[qI("b",{className:"cleen-text-foreground",children:["+",e," more"]})," behind this one"]}),overflow:e=>`${e} more`,listTitle:e=>`${e} notifications`,groupTitle:(e,t)=>`${e} ${t.pluralLabel}`,review:e=>`Review ${e.pluralLabel}`,needAction:e=>`${e} need your action`},He="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var n0={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},jI=({exitDuration:e=ZI}={})=>{let t=n0,n=new Set,r=new Map,l=new Map,a=0,c=N=>{t={...t,...N},n.forEach(S=>S())},i=N=>{let S=r.get(N);!S||S.handle||t.paused||(S.startedAt=Date.now(),S.handle=setTimeout(()=>v(N),S.remaining))},d=N=>{let S=r.get(N);S?.handle&&(clearTimeout(S.handle),S.remaining=Math.max(0,S.remaining-(Date.now()-(S.startedAt??Date.now()))),S.handle=null,S.startedAt=null)},p=N=>{let S=r.get(N);S?.handle&&clearTimeout(S.handle),r.delete(N)},s=N=>{p(N.id),!(N.priority!=="normal"||N.duration===!1||N.duration<=0)&&(r.set(N.id,{duration:N.duration,remaining:N.duration,startedAt:null,handle:null,revision:++a}),i(N.id))},g=N=>{let S=l.get(N);S&&(l.delete(N),S.ids.delete(N),S.ids.size||clearTimeout(S.handle))},f=N=>{N.forEach(F=>l.delete(F));let S=t.toasts.filter(F=>!N.includes(F.id)),R=S.some(F=>!F.leaving);c({toasts:S,...!R&&{ui:n0.ui}})},b=N=>{g(N.id);let S=t.toasts.some(R=>R.id===N.id);return s(N),c({toasts:S?t.toasts.map(R=>R.id===N.id?N:R):[...t.toasts,N]}),N.id},I=(N,S)=>{let R=t.toasts.find(T=>T.id===N);if(!R||R.leaving)return;let F={...R,...S};("priority"in S||"duration"in S)&&s(F),c({toasts:t.toasts.map(T=>T.id===N?F:T)})},h=N=>{let S=t.toasts.filter(T=>N.includes(T.id)&&!T.leaving);if(!S.length)return;S.forEach(T=>p(T.id));let R=S.filter(T=>T.animationType==="none"||e<=0).map(T=>T.id),F=S.filter(T=>!R.includes(T.id)).map(T=>T.id);if(F.length){let T=t.toasts.filter(E=>!E.leaving).length;c({toasts:t.toasts.map(E=>F.includes(E.id)?{...E,leaving:!0,leavingFromCount:T}:E)});let k=new Set(F),_=setTimeout(()=>f([...k]),e);F.forEach(E=>l.set(E,{handle:_,ids:k}))}R.length&&f(R)},v=N=>h([N]);return{add:b,update:I,dismiss:v,dismissMany:h,clear:()=>h(t.toasts.map(N=>N.id)),pauseAll:()=>{t.paused||(r.forEach((N,S)=>d(S)),c({paused:!0}))},resumeAll:()=>{t.paused&&(c({paused:!1}),r.forEach((N,S)=>i(S)))},setExpanded:N=>c({ui:{...t.ui,expanded:N}}),toggleGroup:N=>{let{expandedGroups:S}=t.ui;c({ui:{...t.ui,expandedGroups:S.includes(N)?S.filter(R=>R!==N):[...S,N]}})},resetUi:()=>c({ui:n0.ui}),getTimer:N=>{let S=r.get(N);if(!S)return;let R=S.startedAt?Date.now()-S.startedAt:0;return{duration:S.duration,remaining:Math.max(0,S.remaining-R),revision:S.revision}},subscribe:N=>(n.add(N),()=>{n.delete(N)}),getSnapshot:()=>t}},ae=jI();var ek=0,eb=({id:e,variant:t="default",priority:n,actions:r,duration:l,closeButton:a=!0,hideProgressBar:c,animationType:i="slide",...d})=>{let p=XI[t];return ae.add({...d,id:e??`cleen-notification-${++ek}`,variant:t,actions:r,priority:n??(r?.length?"important":"normal"),duration:l??p.duration,closeButton:a,progressBar:c===void 0?p.progressBar:!c,animationType:i,createdAt:Date.now()})},tk=(e,{hideProgressBar:t,...n})=>ae.update(e,{...n,...t!==void 0&&{progressBar:!t}}),Jo={show:eb,update:tk,dismiss:ae.dismiss,dismissMany:ae.dismissMany,clear:ae.clear};import{useSyncExternalStore as ok}from"react";var Ac=()=>ok(ae.subscribe,ae.getSnapshot,ae.getSnapshot);import{useMemo as nk}from"react";var rk=()=>{let{toasts:e,paused:t}=Ac();return{toasts:nk(()=>e.filter(r=>!r.leaving),[e]),paused:t,show:Jo.show,update:Jo.update,dismiss:Jo.dismiss,dismissMany:Jo.dismissMany,clear:Jo.clear}};var tb={critical:0,important:1,normal:2},r0=e=>e.filter(t=>!t.leaving),Oc=e=>[...e].reverse(),nb=e=>[...e].sort((t,n)=>tb[t.priority]-tb[n.priority]),Wn=e=>!!e.actions?.length&&e.priority!=="normal",rb=e=>e.category??$n,jo=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),a0=e=>e.map(jo),ob=(e,t)=>(e.leavingFromCount??0)>t,qn=(e,t,n)=>{let r=r0(e);if(r.length>t)return n(r);let l=e.filter(a=>a.leaving&&ob(a,t));return!r.length&&l.length>t?n(l).map(a=>({...a,exiting:!0})):a0(e.filter(a=>!a.leaving||!ob(a,t)))};var l0=(e,t,n)=>qn(e,n,r=>{let l=nb(Oc(r)),a=l.filter(h=>h.priority==="critical"),c=l.filter(h=>h.priority!=="critical"),i=new Map;c.forEach(h=>{let v=rb(h);i.set(v,[...i.get(v)??[],h])});let d=h=>Number(i.get(h).some(Wn)),p=h=>i.get(h).length,s=[...i.keys()].sort((h,v)=>d(v)-d(h)||p(v)-p(h)),g=Math.max(0,n-Math.min(a.length,1)),f=s.slice(0,g),b=[...a.slice(1),...s.slice(g).flatMap(h=>i.get(h))],I=a.slice(0,1).map(jo);return f.forEach(h=>{let v=i.get(h);I.push(v.length===1?jo(v[0]):{type:"group",key:`group-${h}`,category:h,toasts:v,expanded:t.expandedGroups.includes(h)})}),I.push({type:"footer",key:"footer",overflow:b,toasts:r}),I});var c0=(e,t,n=1/0)=>qn(e,n,r=>[...a0(r),{type:"footer",key:"footer",overflow:[],toasts:r}]);var i0=(e,t,n)=>qn(e,n,r=>{let l=Oc(r);if(t.expanded)return[{type:"list",key:"list",toasts:l}];let a=l.filter(s=>s.priority==="critical"),c=l.filter(s=>s.priority!=="critical"),[i,...d]=c,p=a.map(jo);return i&&d.length?p.push({type:"deck",key:"deck",top:i,hidden:d}):i&&p.push(jo(i)),p});var ab={list:c0,stack:i0,group:l0};import{createContext as ak,useContext as lk}from"react";var s0=ak({categories:Ba,labels:Na,hiddenElements:[],now:Date.now(),paused:!1}),fe=()=>lk(s0);import{cn as ck,getTimeAgoLabel as ik}from"@cleen/ui-core";var X=(e,t,n,r)=>{let l=r?.classNames,a=r?.styles,c=e.styles?.[t]||a?.[t]?{...e.styles?.[t],...a?.[t]}:void 0;return{className:ck(n,e.classNames?.[t],l?.[t]),style:c,"data-slot":t}},It=({className:e,style:t,...n})=>({classNames:{container:e},styles:{container:t},...n}),Xn=(e,t)=>e.categories[t]??{...e.categories[$n],label:t,pluralLabel:t},zc=(e,t,n)=>{let r=Math.floor(Math.max(0,t-e));return typeof n.timeAgo=="function"?n.timeAgo(r):ik(r,n?.timeAgoStamps)},lb=e=>{if(e.animationType!=="none")return e.leaving?"motion-safe:cleen-animate-toast-out motion-reduce:cleen-opacity-0":"motion-safe:cleen-animate-toast-in"};import{cn as sk}from"@cleen/ui-core";import{jsx as cb}from"react/jsx-runtime";var _c=({toast:e})=>{let t=fe();if(t.hiddenElements.includes("badges"))return null;let n=e.priority==="critical";if(!n&&!Wn(e))return null;let r=X(t,"badge",void 0,e);return cb("span",{...X(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:cb(Te,{color:n?"red":"primary",variant:"full",label:n?t.labels.critical:t.labels.action,classNames:{container:sk("cleen-px-1.5 cleen-py-0 cleen-text-[10.5px] cleen-font-semibold cleen-leading-4",r.className)},styles:{container:r.style},"data-slot":r["data-slot"]})})};import{cn as ib}from"@cleen/ui-core";import{Fragment as pk,jsx as vo}from"react/jsx-runtime";var sb=({icon:e,tone:t="neutral",size:n="md",className:r,...l})=>{let a=n==="sm"?14:18;return vo("span",{className:ib("cleen-inline-flex cleen-shrink-0 cleen-items-center cleen-justify-center",n==="sm"?"cleen-size-[26px] cleen-rounded-md":"cleen-size-[34px] cleen-rounded-lg",QI[t],r),"aria-hidden":"true",...l,children:vo(ge,{name:e,width:a,height:a})})},p0=({category:e,...t})=>{let n=fe(),r=Xn(n,e);return vo(sb,{icon:r.icon,tone:r.tone,...t})},Uc=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return vo(pk,{children:e.icon});if(e.category)return vo(p0,{category:e.category,size:t});let n=Fc[e.variant];return n?vo(sb,{icon:n.name,tone:n.tone,size:t}):null},en=({icon:e,label:t,className:n,...r})=>vo("button",{type:"button","aria-label":t,title:t,className:ib("cleen-inline-flex cleen-size-[26px] cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-muted-foreground cleen-transition-colors hover:cleen-bg-muted hover:cleen-text-foreground focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary",n),...r,children:vo(ge,{name:e,width:14,height:14,strokeWidth:2})});import{cn as d0}from"@cleen/ui-core";import{Fragment as dk,jsx as Ra,jsxs as m0}from"react/jsx-runtime";var pb=({toast:e,children:t})=>{let n=fe(),r=e.title!==void 0&&e.title!==null,l=e.icon===void 0&&(!!e.category||!!Fc[e.variant]),a=Ra(Uc,{toast:e}),c=Ra(_c,{toast:e});return m0(dk,{children:[(e.icon!==void 0||l||e.variant!=="default")&&Ra("span",{...X(n,"icon",d0("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!l}),e),children:a}),m0("div",{...X(n,"body",d0("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[r?m0("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[Ra("span",{...X(n,"title","cleen-min-w-0 cleen-max-w-full cleen-break-words cleen-text-sm cleen-font-semibold cleen-leading-[18px] cleen-text-foreground",e),children:e.title}),c]}):c,Ra("span",{...X(n,"message",d0("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":r,"cleen-text-foreground":!r}),e),children:e.message}),t]})]})};import{useState as mk}from"react";import{jsx as uk}from"react/jsx-runtime";var db=({toast:e})=>{let t=fe(),[n]=mk(()=>ae.getTimer(e.id));if(!n)return null;let r=X(t,"progressBar","cleen-pointer-events-none cleen-absolute cleen-bottom-0 cleen-inset-x-0 cleen-h-0.5 cleen-origin-left cleen-rounded-full cleen-bg-primary-300 cleen-animate-toast-progress motion-reduce:cleen-hidden",e);return uk("span",{"aria-hidden":"true",...r,style:{animationDuration:`${n.duration}ms`,animationDelay:`-${n.duration-n.remaining}ms`,animationPlayState:t.paused?"paused":"running",...r.style}})};import{cn as fk}from"@cleen/ui-core";import{jsx as Gc,jsxs as Hc}from"react/jsx-runtime";var Vc=({toast:e,inDeck:t=!1})=>{let n=fe(),{labels:r,hiddenElements:l}=n,a=e.priority==="critical",c=!!e.actions?.length,i=()=>ae.dismiss(e.id),d=g=>{g.key==="Escape"&&(g.stopPropagation(),i())},p=!!e.category&&!l.includes("meta"),s=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!l.includes("progressBar");return Hc("div",{role:a?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||c?void 0:0,onKeyDown:d,...X(n,"toast",fk("cleen-overflow-hidden cleen-pointer-events-auto cleen-relative cleen-flex cleen-w-full cleen-gap-3 cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-py-3 cleen-pl-3.5 cleen-pr-3 cleen-text-foreground cleen-shadow-xl focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary",{"cleen-border-error cleen-shadow-[0_0_0_3px_rgba(var(--cleen-error),0.12)]":a,"cleen-z-10":t},!(t&&e.leaving)&&lb(e),e.className),e),children:[Hc(pb,{toast:e,children:[p&&Hc("span",{...X(n,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[Xn(n,e.category).label," \xB7"," ",zc(e.createdAt,n.now,r)]}),c&&Hc("div",{...X(n,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((g,f)=>{let b=X(n,"action",He,e);return Gc(J,{variant:g.variant??(f?"secondary":"primary"),label:g.label,onClick:()=>{g.onClick?.(e),i()},...It(b)},`${g.label}-${f}`)}),Gc(J,{variant:"secondary",label:r.dismiss,onClick:i,...It(X(n,"dismissButton",He,e))})]})]}),e.closeButton&&Gc(en,{icon:"X",label:r.close,onClick:i,...X(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),s&&Gc(db,{toast:e},ae.getTimer(e.id)?.revision)]})};import{Fragment as hk,jsx as Kn,jsxs as $c}from"react/jsx-runtime";var mb="cleen-pointer-events-none cleen-absolute cleen-rounded-b-xl cleen-border cleen-border-t-0 cleen-border-border cleen-bg-background cleen-shadow-lg",ub=({top:e,hidden:t})=>{let n=fe(),{labels:r}=n,l=[e.id,...t.map(a=>a.id)];return $c(hk,{children:[$c("div",{...X(n,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[Kn(Vc,{toast:e,inDeck:!0}),Kn("span",{"aria-hidden":"true",...X(n,"deckPeek",`${mb} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&Kn("span",{"aria-hidden":"true",...X(n,"deckPeek",`${mb} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!n.hiddenElements.includes("deckMoreBar")&&$c("div",{...X(n,"deckMoreBar","cleen-pointer-events-auto cleen-mt-1.5 cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-gap-2 cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-py-2 cleen-pl-3 cleen-pr-2.5 cleen-text-xs cleen-font-medium cleen-text-muted-foreground cleen-shadow-lg"),children:[Kn("span",{...X(n,"deckMoreLabel"),children:r.moreBehind(t.length)}),$c("span",{className:"cleen-flex cleen-gap-1",children:[Kn(J,{variant:"secondary",label:r.showAll,"aria-expanded":!1,onClick:()=>ae.setExpanded(!0),...It(X(n,"deckShowAllButton",He))}),Kn(J,{variant:"borderless",label:r.dismissAll,onClick:()=>ae.dismissMany(l),...It(X(n,"deckDismissAllButton",He))})]})]})]})};import{cn as gk}from"@cleen/ui-core";import{Fragment as vk,jsx as Wc,jsxs as Ik}from"react/jsx-runtime";var fb=({count:e})=>{let t=fe(),{labels:n,onViewAll:r}=t;if(t.hiddenElements.includes("overflowPill"))return null;let l=Ik(vk,{children:[n.overflow(e),Wc("span",{className:"cleen-inline-flex cleen-h-5 cleen-min-w-5 cleen-items-center cleen-justify-center cleen-rounded-full cleen-bg-primary cleen-px-1.5 cleen-text-primary-foreground",children:Wc(ge,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),a=X(t,"overflowPill",gk("cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-gap-2 cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-pl-3 cleen-pr-1.5 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors motion-safe:cleen-animate-toast-in",{"hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary":r}));return r?Wc("button",{type:"button",onClick:()=>r(),...a,children:l}):Wc("span",{...a,children:l})};import{jsx as hb,jsxs as bk}from"react/jsx-runtime";var gb=({overflow:e,toasts:t})=>{let n=fe(),r=!n.hiddenElements.includes("dismissAllButton");return!r&&!e.length?null:bk("div",{...X(n,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[r&&hb("button",{type:"button",onClick:()=>ae.dismissMany(t.map(l=>l.id)),...X(n,"dismissAllButton","cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-px-3 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary motion-safe:cleen-animate-toast-in"),children:n.labels.dismissAll}),e.length>0&&hb(fb,{count:e.length})]})};import{jsx as tn,jsxs as qc}from"react/jsx-runtime";var Xc=({toast:e,onDismiss:t})=>{let n=fe(),r=e.actions?.[0],l=e.title!==void 0&&e.title!==null;return qc("div",{...X(n,"row","cleen-flex cleen-items-start cleen-gap-2.5 cleen-border-b cleen-border-border cleen-py-2.5 cleen-pl-3.5 cleen-pr-3 last:cleen-border-b-0 hover:cleen-bg-surface"),children:[tn("span",{...X(n,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:tn(Uc,{toast:e,size:"sm"})}),qc("div",{...X(n,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[qc("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[tn("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:l?e.title:e.message}),tn(_c,{toast:e})]}),l&&tn("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),qc("span",{...X(n,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[r&&tn(en,{icon:"ArrowRight",label:r.label,onClick:()=>{r.onClick?.(e),t(e.id)}}),tn(en,{icon:"X",label:n.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as yk,useLayoutEffect as Ck,useRef as xk}from"react";var Pk='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',Kc=(e,t,n)=>{let r=xk(!1);return yk(()=>{e.current?.focus({preventScroll:!0})},[e]),Ck(()=>{let i=document.activeElement;r.current&&e.current&&(!i||i===document.body)&&e.current.focus({preventScroll:!0})},[e,t]),{onFocus:()=>{r.current=!0},onBlur:i=>{let d=i.relatedTarget;d&&!i.currentTarget.contains(d)&&(r.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),n();return}if(i.key!=="Tab"||!e.current)return;let d=[...e.current.querySelectorAll(Pk)],p=d[0],s=d[d.length-1];!p||!s||(i.shiftKey&&document.activeElement===p?(i.preventDefault(),s.focus()):!i.shiftKey&&(document.activeElement===s||document.activeElement===e.current)&&(i.preventDefault(),p.focus()))}}};import{useRef as Sk}from"react";import{Fragment as Mk,jsx as Oe,jsxs as Ht}from"react/jsx-runtime";var u0=3,wk=({toasts:e,onCollapse:t})=>{let n=Sk(null),r=Kc(n,e.length,t);return Oe("div",{ref:n,tabIndex:-1,...r,className:"cleen-max-h-[min(40vh,320px)] cleen-overflow-auto cleen-border-y cleen-border-border focus-visible:cleen-outline-none",children:e.map(l=>Oe(Xc,{toast:l,onDismiss:ae.dismiss},l.id))})},vb=({category:e,toasts:t,expanded:n})=>{let r=fe(),{labels:l,onViewAll:a,hiddenElements:c}=r,i=Xn(r,e),d=t.map(b=>b.id),p=t.filter(Wn).length,s=Math.min(...t.map(b=>b.createdAt)),g=()=>ae.dismissMany(d),f=()=>ae.toggleGroup(e);return Ht("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:b=>{b.key==="Escape"&&!n&&(b.stopPropagation(),g())},...X(r,"group","cleen-pointer-events-auto cleen-relative cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl motion-safe:cleen-animate-toast-in"),children:[Ht("div",{...X(r,"groupHeader","cleen-flex cleen-items-center cleen-gap-2.5 cleen-pb-2 cleen-pl-3 cleen-pr-10 cleen-pt-2.5"),children:[Oe(p0,{category:e,...X(r,"groupIcon")}),Ht("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[Ht("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[Oe("span",{...X(r,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:l.groupTitle(t.length,i)}),Oe("span",{...X(r,"groupCount","cleen-inline-flex cleen-h-5 cleen-min-w-5 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-full cleen-bg-primary cleen-px-1.5 cleen-text-[11px] cleen-font-semibold cleen-text-primary-foreground"),children:t.length})]}),!c.includes("meta")&&Ht("span",{...X(r,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[p>0&&Ht(Mk,{children:[l.needAction(p)," \xB7 "]}),zc(s,r.now,l)]})]})]}),n?Oe(wk,{toasts:t,onCollapse:f}):Ht("div",{...X(r,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,u0).map(b=>Ht("div",{...X(r,"groupPreviewLine","cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5 cleen-text-[12.5px] cleen-leading-[17px] cleen-text-foreground"),children:[Oe("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),Oe("span",{className:"cleen-min-w-0 cleen-truncate",children:b.title??b.message})]},b.id)),t.length>u0&&!c.includes("groupMore")&&Oe("span",{...X(r,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:l.more(t.length-u0)})]}),Ht("div",{...X(r,"groupFooter","cleen-flex cleen-items-center cleen-gap-1.5 cleen-pb-2.5 cleen-pl-14 cleen-pr-3 cleen-pt-1.5"),children:[a&&Oe(J,{variant:"primary",label:l.review(i),rightIcon:Oe(ge,{name:"ArrowRight",width:14,height:14}),onClick:()=>a(e),...It(X(r,"groupReviewButton",He))}),Oe(J,{variant:"secondary",label:n?l.collapse:l.expand,"aria-expanded":n,onClick:f,...It(X(r,"groupToggleButton",He))}),Oe("span",{className:"cleen-flex-1"}),Oe(J,{variant:"borderless",label:l.dismiss,onClick:g,...It(X(r,"groupDismissButton",He))})]}),Oe(en,{icon:"X",label:l.dismissGroup,onClick:g,...X(r,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as kk}from"react";import{jsx as Io,jsxs as Zc}from"react/jsx-runtime";var Ib=({toasts:e})=>{let t=fe(),{labels:n,onViewAll:r}=t,l=kk(null),a=()=>ae.setExpanded(!1),c=Kc(l,e.length,a);return Zc("div",{ref:l,tabIndex:-1,role:"group","aria-label":n.region,...c,...X(t,"list","cleen-pointer-events-auto cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl focus-visible:cleen-outline-none motion-safe:cleen-animate-toast-in"),children:[Zc("div",{...X(t,"listHeader","cleen-flex cleen-items-center cleen-gap-2 cleen-border-b cleen-border-border cleen-py-2 cleen-pl-3.5 cleen-pr-2.5 cleen-text-[13px] cleen-font-semibold"),children:[Zc("span",{children:[n.listTitle(e.length)," "]}),Io("span",{className:"cleen-flex-1"}),Io(J,{variant:"borderless",label:n.collapse,"aria-expanded":!0,leftIcon:Io(ge,{name:"ChevronUp",width:14,height:14}),onClick:a,classNames:{container:He}})]}),Io("div",{...X(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>Io(Xc,{toast:i,onDismiss:ae.dismiss},i.id))}),Zc("div",{...X(t,"listFooter","cleen-flex cleen-gap-1.5 cleen-border-t cleen-border-border cleen-bg-surface cleen-px-2.5 cleen-py-2"),children:[r&&Io(J,{variant:"secondary",label:n.openNotifications,onClick:()=>r(),classNames:{container:He}}),Io("span",{className:"cleen-flex-1"}),Io(J,{variant:"secondary",label:n.dismissAll,onClick:()=>ae.dismissMany(e.map(i=>i.id)),classNames:{container:He}})]})]})};import{useEffect as Bk,useState as Nk}from"react";var bb=e=>{let[t,n]=Nk(()=>Date.now());return Bk(()=>{if(!e)return;n(Date.now());let r=setInterval(()=>n(Date.now()),YI);return()=>clearInterval(r)},[e]),t};import{cn as h0}from"@cleen/ui-core";import{forwardRef as Rk,useCallback as Tk,useEffect as f0,useMemo as yb,useRef as Cb}from"react";import{jsx as Gt}from"react/jsx-runtime";var Lk=e=>{switch(e.type){case"toast":return Gt(Vc,{toast:e.toast},e.key);case"deck":return Gt(ub,{top:e.top,hidden:e.hidden},e.key);case"list":return Gt(Ib,{toasts:e.toasts},e.key);case"group":return Gt(vb,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return Gt(gb,{overflow:e.overflow,toasts:e.toasts},e.key)}},Dk=(e,t)=>Gt("div",{"aria-hidden":"true",className:h0("cleen-flex cleen-flex-col cleen-gap-2.5",t,e.exiting&&e.type!=="toast"&&["cleen-pointer-events-none motion-safe:cleen-animate-toast-out motion-reduce:cleen-opacity-0"]),children:Lk(e)},e.key),Ek=Rk(function({layout:t="list",maxVisible:n=KI,position:r="bottom-right",categories:l,onViewAll:a,labels:c,classNames:i,styles:d,hiddenElements:p,className:s,style:g,...f},b){let I=Ac(),h=r0(I.toasts).length,v=bb(I.toasts.length>0),C=Cb(null),x=Cb(!1),y=yb(()=>ab[t](I.toasts,I.ui,n),[t,I.toasts,I.ui,n]),P=yb(()=>({categories:{...Ba,...l},labels:{...Na,...c},classNames:i,styles:d,hiddenElements:p??[],onViewAll:a,now:v,paused:I.paused}),[l,c,i,d,p,a,v,I.paused]);f0(()=>{let{expanded:M,expandedGroups:D}=I.ui,N=I.toasts.some(S=>S.leaving);h<=n&&!N&&(M||D.length)&&ae.resetUi()},[h,n,I.toasts,I.ui]);let w=Tk(()=>{let M=document.activeElement,D=!!(M&&C.current?.contains(M))&&!!M?.matches(":focus-visible");x.current||D?ae.pauseAll():ae.resumeAll()},[]);f0(()=>{h||(x.current=!1),w()},[h,w]),f0(()=>{let M=D=>{x.current&&!C.current?.contains(D.target)&&(x.current=!1,w())};return document.addEventListener("pointermove",M,{passive:!0}),()=>document.removeEventListener("pointermove",M)},[w]);let L=M=>{x.current=M,w()},B=()=>requestAnimationFrame(w);return Gt("div",{className:h0("cleen",s),style:g,ref:b,children:Gt(s0.Provider,{value:P,children:Gt("div",{role:"region","aria-live":"polite","aria-label":P.labels.region,ref:C,onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),onFocus:B,onBlur:B,...X(P,"region",h0("cleen-pointer-events-none cleen-fixed cleen-z-[9999] cleen-flex cleen-w-[380px] cleen-max-w-[calc(100vw-32px)] cleen-flex-col cleen-gap-2.5 cleen-text-sm",JI[r])),...f,children:y.map(M=>Dk(M,r.endsWith("left")?"cleen-items-start":r.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as xb}from"@cleen/ui-core";import{forwardRef as Fk,useState as Ak}from"react";import{jsx as g0,jsxs as Ok}from"react/jsx-runtime";var v0=Fk(({totalPages:e,labels:t,onGoToPage:n,classNames:r,styles:l,...a},c)=>{let[i,d]=Ak(""),p=()=>{let g=parseInt(i,10);isNaN(g)||(n?.(Math.min(Math.max(g,1),e)),d(""))},s=g=>{g.key==="Enter"?p():g.key==="Escape"&&d("")};return g0("div",{className:"cleen",...a,children:Ok("div",{className:xb("cleen-flex cleen-items-center cleen-gap-2",r?.container),style:l?.container,children:[g0("span",{className:xb("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",r?.label),style:l?.label,children:t?.goToPage}),g0(ue,{ref:c,type:"number",min:1,max:e,value:i,onChange:g=>d(g.target.value),onKeyDown:s,...r?.input,...l?.input})]})})});import{cn as Yc,useOutsideClick as zk,usePositionClose as _k}from"@cleen/ui-core";import{forwardRef as Uk,useRef as Pb,useState as Sb}from"react";import{createPortal as Hk}from"react-dom";import{jsx as Zn,jsxs as Vk}from"react/jsx-runtime";var Gk=[10,20,50,100],I0=Uk(({pageSize:e,pageSizes:t=Gk,labels:n,onPageSizeChange:r,classNames:l,styles:a,...c},i)=>{let[d,p]=Sb(e??t?.[0]??void 0),[s,g]=Sb(!1),f=Pb(null),b=Pb(null),{positionStyles:I,isMounted:h}=_k({triggerRef:f,targetRef:b,isOpen:s,position:"top-left"});return zk({refs:[f,b],handler:()=>g(!1),enabled:s}),Zn("div",{className:"cleen",ref:i,...c,children:Vk("div",{className:Yc("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",l?.container),style:a?.container,children:[Zn(ye,{label:n?.itemsPerPage?.(d),classNames:{labelContainer:"cleen-min-w-max"},children:Zn("div",{className:Yc("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted hover:cleen-bg-neutral-200 cleen-p-2 cleen-rounded-lg cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-sm cleen-text-neutral-700 cleen-transition-colors cleen-cursor-pointer",l?.trigger),style:a?.trigger,onClick:()=>g(v=>!v),ref:f,children:d})}),s&&Hk(Zn("div",{className:"cleen",children:Zn("div",{ref:b,className:Yc("cleen-flex cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute cleen-z-50",{"cleen-opacity-0":!h},l?.menu),style:{top:`${I.top}px`,left:`${I.left}px`,...a?.menu},children:t?.filter(v=>v!==d)?.map(v=>Zn("div",{className:Yc("cleen-flex cleen-justify-center cleen-items-center hover:cleen-bg-muted cleen-p-2 cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",l?.menuItem),style:a?.menuItem,onClick:()=>{p(v),r?.(v),g(!1)},children:v},v))})}),document.body)]})})});var wb={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as bo}from"@cleen/ui-core";import{forwardRef as $k,useCallback as Qc,useMemo as Wk,useRef as qk}from"react";import{jsx as Ge,jsxs as Kk}from"react/jsx-runtime";var Xk=$k(({currentPage:e,totalPages:t,pageSize:n,pageSizes:r,hasGotoPage:l=!0,hasPageSizeSelector:a=!0,onPageChange:c,onPageSizeChange:i,labels:d=wb,classNames:p,styles:s,...g},f)=>{let b=qk(null),I=Qc(()=>{e<t&&c?.(e+1)},[e,t,c]),h=Qc(()=>{e>1&&c?.(e-1)},[e,c]),v=Qc(y=>Ge("span",{className:bo("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-cursor-pointer",y===e&&"cleen-bg-muted hover:cleen-bg-neutral-200",p?.pageButton,y===e?p?.activePageButton:""),style:{...s?.pageButton,...y===e?s?.activePageButton:{}},onClick:()=>c?.(y),children:y},`page-${y}`),[e,c,p,s]),C=Qc(y=>Ge("span",{className:bo("cleen-flex cleen-justify-center cleen-self-end cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.ellipsis),style:s?.ellipsis,onClick:()=>b.current?.focus(),children:"..."},y),[p,s]),x=Wk(()=>{if(isNaN(e)||isNaN(t))return[];let y=[];if(y.push(Ge(ye,{label:d.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ge("span",{className:bo("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-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.navButton),style:s?.navButton,onClick:h,children:Ge(Tt,{})})},"prev")),t<=7)for(let P=1;P<=t;P++)y.push(v(P));else if(y.push(v(1)),e<=3){for(let P=2;P<5;P++)y.push(v(P));y.push(C("dots-end")),y.push(v(t))}else if(e>=t-2){y.push(C("dots-start"));for(let P=t-3;P<=t;P++)y.push(v(P))}else y.push(C("dots-start")),y.push(v(e-1)),y.push(v(e)),y.push(v(e+1)),y.push(C("dots-end")),y.push(v(t));return y.push(Ge(ye,{label:d.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ge("span",{className:bo("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-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.navButton),style:s?.navButton,onClick:I,children:Ge(rt,{})})},"next")),y},[e,t,d,p,s,C,v,I,h]);return Ge("div",{className:"cleen",ref:f,...g,children:Kk("div",{className:bo("cleen-flex cleen-justify-between cleen-gap-4",p?.container),style:s?.container,children:[a?Ge(I0,{pageSize:n,labels:d,onPageSizeChange:i,pageSizes:r,className:bo("cleen-flex-1",p?.pageSizeSelector?.className),classNames:p?.pageSizeSelector?.classNames,...s?.pageSizeSelector}):Ge("div",{className:"cleen-flex-1"}),Ge("div",{className:bo("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",p?.buttonsContainer),style:s?.buttonsContainer,children:x}),l?Ge(v0,{ref:b,totalPages:t,onGoToPage:c,labels:d,className:bo("cleen-flex cleen-flex-1 cleen-justify-end",p?.goToPage?.className),classNames:p?.goToPage?.classNames,...s?.goToPage}):Ge("div",{className:"cleen-flex-1"})]})})});import{cn as b0,useDisclosure as Zk,useOutsideClick as Yk,usePositionClose as Qk,ZIndex as Jk}from"@cleen/ui-core";import{forwardRef as jk,useRef as Mb}from"react";import{createPortal as e6}from"react-dom";import{jsx as y0,jsxs as t6}from"react/jsx-runtime";var C0=jk(function({isOpen:t,onOpenChange:n,content:r,position:l="bottom-left",offset:a,zIndex:c=Jk.POPOVER,children:i,className:d,classNames:p,style:s,styles:g,...f},b){let{isOpen:I,toggle:h,close:v}=Zk({value:t,setValue:n}),C=Mb(null),x=Mb(null),{positionStyles:y,isMounted:P}=Qk({triggerRef:C,targetRef:x,position:l,isOpen:I,offset:a});Yk({refs:[C,x],handler:v,enabled:I});let w=L=>{L.stopPropagation(),h()};return t6("div",{className:b0("cleen",d),style:s,ref:b,...f,children:[y0("div",{ref:C,onClick:w,className:b0("cleen-size-fit",p?.trigger,I&&p?.triggerOpen),style:{...g?.trigger,...I?g?.triggerOpen:{}},children:i}),I&&e6(y0("div",{className:"cleen",onClick:L=>L.stopPropagation(),onPointerDown:L=>L.stopPropagation(),onMouseDown:L=>L.stopPropagation(),onTouchStart:L=>L.stopPropagation(),children:y0("div",{ref:x,className:b0("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!P},p?.popover),style:{zIndex:c,top:`${y.top}px`,left:`${y.left}px`,...g?.popover},onClick:L=>L.stopPropagation(),children:r})}),document.body)]})});import{cn as kb}from"@cleen/ui-core";import{forwardRef as o6,useEffect as n6,useState as r6}from"react";import{jsx as Jc,jsxs as Bb}from"react/jsx-runtime";var a6={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},Nb=o6(({isFullscreen:e,percentage:t,duration:n=1e3,radius:r,stroke:l=16,size:a="md",color:c="rgb(var(--cleen-primary))",emptyColor:i="rgb(var(--cleen-neutral-200))",textColor:d="rgb(var(--cleen-foreground))",textHidden:p=!1,fontSize:s,renderText:g,className:f,classNames:b,style:I,styles:h,...v},C)=>{let x=r??a6[a]/2,y=x-l/2,P=y*2*Math.PI,[w,L]=r6(0);n6(()=>{let M=null;if(n===0){L(t);return}let D=N=>{M||(M=N);let S=N-M,R=Math.min(S/n*t,t);L(R),R<t&&requestAnimationFrame(D)};requestAnimationFrame(D)},[t,n]);let B=P-w/100*P;return Jc("div",{ref:C,className:kb("cleen",f),style:I,...v,children:Bb("div",{className:kb("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:h?.container,children:[Bb("svg",{height:x*2,width:x*2,style:{transform:"rotate(-90deg)"},children:[Jc("circle",{stroke:i,fill:"transparent",strokeWidth:l,r:y,cx:x,cy:x}),Jc("circle",{stroke:c,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:P,strokeDashoffset:B,r:y,cx:x,cy:x})]}),!p&&Jc("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:s??x/2.5,color:d},children:g?g(w):`${Math.round(w)}%`})]})})});Nb.displayName="ProgressCircle";import{cn as Je}from"@cleen/ui-core";import{useEffect as l6,useState as c6}from"react";import{Fragment as Rb,jsx as Vt,jsxs as Ta}from"react/jsx-runtime";var i6=({horizontal:e,boxes:t,selectedBox:n,onBoxClick:r,leftElement:l,rightElement:a,leftIcon:c,leftIconName:i,rightIconName:d,className:p,classNames:s,style:g,styles:f,...b})=>{let[I,h]=c6(n);l6(()=>{h(n)},[n]);let v=(P,w)=>Ta(Rb,{children:[l&&l(P),c||(i?Vt(ge,{name:i,className:Je("cleen-w-5 cleen-h-5",w?"cleen-text-primary":"cleen-text-neutral-700",s?.leftIcon),style:f?.leftIcon}):null)]}),C=(P,w)=>Vt("span",{className:Je("cleen-font-semibold",w?"cleen-text-primary":"cleen-text-neutral-700",s?.label),style:f?.label,children:P?.label}),x=(P,w)=>Vt("span",{className:Je("cleen-font-semibold cleen-text-16px",w?"cleen-text-primary":"cleen-text-neutral-700",s?.subLabel),style:f?.subLabel,children:P?.subLabel}),y=(P,w)=>Ta(Rb,{children:[a&&a(P),d&&Vt(ge,{name:d,className:Je("cleen-w-5 cleen-h-5",w?"cleen-text-primary":"cleen-text-neutral-700",s?.rightIcon),style:f?.rightIcon})]});return Vt("div",{className:Je("cleen",p),style:g,...b,children:e?Vt("div",{className:Je("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",s?.container),style:f?.container,children:t?.map(P=>{let w=P?.id===I?.id;return Ta("div",{className:Je("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-100 cleen-w-max",w?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",s?.box),style:f?.box,onClick:()=>{h(P),r?.(P)},children:[v(P,w),P?.label&&C(P,w),P?.subLabel&&x(P,w),y(P,w)]},P?.id)})}):Vt("div",{className:Je("cleen-grid cleen-gap-3 cleen-w-full",s?.container),style:{gridTemplateColumns:"1fr auto 1fr",...f?.container},children:t?.map(P=>{let w=P?.id===I?.id;return Ta("div",{className:Je("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-50",w?"cleen-bg-primary-100 cleen-border-muted-foreground":"cleen-bg-surface cleen-border-border",s?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...f?.box},onClick:()=>{h(P),r?.(P)},children:[Vt("div",{className:Je("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",s?.leftIconContainer),style:f?.leftIconContainer,children:v(P,w)}),Vt("div",{className:Je("cleen-flex cleen-items-center cleen-justify-center",s?.labelContainer),style:f?.labelContainer,children:P?.label&&C(P,w)}),Ta("div",{className:Je("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",s?.rightIconContainer),style:f?.rightIconContainer,children:[P?.subLabel&&x(P,w),y(P,w)]})]},P?.id)})})})};import{cn as $t}from"@cleen/ui-core";import{forwardRef as d6,useEffect as m6,useId as u6,useRef as f6,useState as h6}from"react";import{cn as Tb}from"@cleen/ui-core";import{forwardRef as s6}from"react";import{jsx as Lb,jsxs as p6}from"react/jsx-runtime";var jc=s6(function({checked:t,className:n,classNames:r,style:l,styles:a,...c},i){return p6("div",{className:Tb("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-neutral-300 focus-within:cleen-ring-2 focus-within:cleen-ring-primary focus-within:cleen-ring-offset-1",t?"cleen-bg-primary":"cleen-bg-surface",n),style:l,children:[Lb("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...c}),Lb("span",{className:Tb("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",r?.innerCircle),style:a?.innerCircle})]})});import{jsx as bt,jsxs as ei}from"react/jsx-runtime";var g6=d6(function({required:t,radios:n,label:r,labelTooltip:l,className:a,classNames:c,style:i,styles:d,name:p,direction:s="vertical",radioPosition:g="left",defaultActiveId:f,value:b,infoLabels:I,onChange:h},v){let C=b!==void 0,[x,y]=h6(f??n[0]?.id),P=u6(),w=`${P}-label`,L=p??`cleen-radio-group-${P}`;m6(()=>{!C&&f!==void 0&&y(f)},[f,C]);let B=C?b:x,M=k=>B!=null&&B==k,D=k=>{C||y(k),h?.(k)},N=f6([]),S=n?.findIndex(k=>M(k.id)),R=S>=0?S:0,F=k=>{let _=n[k];_&&(D(_.id),N.current[k]?.focus())},T=(k,_)=>{let E=n.length;if(E)switch(k.key){case"ArrowDown":case"ArrowRight":k.preventDefault(),F((_+1)%E);break;case"ArrowUp":case"ArrowLeft":k.preventDefault(),F((_-1+E)%E);break;default:break}};return bt("div",{className:$t("cleen",a),style:i,ref:v,children:ei("div",{className:c?.container,style:d?.container,children:[r&&bt(re,{id:w,htmlFor:P,required:t,tooltip:l,className:$t("cleen-mb-1.5",c?.label?.className),classNames:c?.label?.classNames,...d?.label,children:r}),bt("div",{id:P,role:"radiogroup","aria-labelledby":r?w:void 0,className:$t("cleen-flex cleen-flex-wrap cleen-gap-2.5",s==="vertical"&&"cleen-flex-col cleen-w-fit",c?.radios),style:d?.radios,children:n?.map((k,_)=>{let E=`${P}-${_}`,O=k.radioPosition??g;return ei("div",{className:$t("cleen-flex cleen-gap-2 hover:cleen-bg-muted cleen-p-5 cleen-border cleen-border-border hover:cleen-border-neutral-300 cleen-rounded-xl cleen-transition-all cleen-duration-200 cleen-cursor-pointer",s==="horizontal"&&"cleen-flex-1",M(k?.id)&&"cleen-border-primary hover:cleen-border-primary",c?.radioContainer,k?.className,M(k?.id)&&c?.radioActive),style:{...d?.radioContainer,...k?.style},onClick:A=>{A.target instanceof Element&&!A.target.closest("label, input")&&N.current[_]?.click()},children:[k.leftIcon,O==="left"&&bt(jc,{ref:A=>{N.current[_]=A},id:E,name:L,value:k.id,checked:M(k.id),tabIndex:_===R?0:-1,onChange:()=>D(k.id),onKeyDown:A=>T(A,_),className:$t(c?.radioOuterCheckBox,k?.classNames?.outerCheckBox),style:{...d?.radioOuterCheckBox,...k?.styles?.outerCheckBox}}),ei("label",{htmlFor:E,className:$t("cleen-flex-1 cleen-cursor-pointer",c?.radioLabelsContainer,k?.classNames?.labelsContainer),style:{...d?.radioLabelsContainer,...k?.styles?.labelsContainer},children:[ei("div",{className:"cleen-flex cleen-items-center cleen-gap-1",children:[bt("span",{className:$t("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",c?.radioTitle,k?.classNames?.title),style:{...d?.radioTitle,...k?.styles?.title},children:k.title}),bt("span",{className:$t("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",c?.radiotPostTitle,k?.classNames?.postTitle),style:{...d?.radiotPostTitle,...k?.styles?.postTitle},children:k.postTitle})]}),bt("span",{className:$t("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",c?.radioSubTitle,k?.classNames?.subTitle),style:{...d?.radioSubTitle,...k?.styles?.subTitle},children:k?.subTitle})]}),O==="right"&&bt(jc,{ref:A=>{N.current[_]=A},id:E,name:L,value:k.id,checked:M(k.id),tabIndex:_===R?0:-1,onChange:()=>D(k.id),onKeyDown:A=>T(A,_),className:c?.radioOuterCheckBox,style:d?.radioOuterCheckBox}),O==="hidden"&&bt(jc,{ref:A=>{N.current[_]=A},id:E,name:L,value:k.id,checked:M(k.id),tabIndex:_===R?0:-1,onChange:()=>D(k.id),onKeyDown:A=>T(A,_),className:"cleen-sr-only"}),k.rightIcon]},k?.id)})}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&bt(oe,{...I})]})})});import{cn as Yn,ColorHelpers as v6}from"@cleen/ui-core";import{forwardRef as I6,useRef as b6,useState as y6}from"react";import{jsx as on,jsxs as Db}from"react/jsx-runtime";var C6=I6(function({id:t,required:n,label:r,labelTooltip:l,labels:a,infoLabels:c,value:i,onChange:d,amount:p=5,options:s=[],gap:g,size:f=36,readonly:b,color:I="rgb(var(--cleen-primary))",className:h,style:v,classNames:C,styles:x,...y},P){let[w,L]=y6(0),B=i!==void 0,M=B?i:w,D=s?.length>0?s:Array.from({length:p},(E,O)=>O+1),N=b6([]),S=D.findIndex(E=>E===M),R=S>=0?S:0,F=E=>{B||L(E),d?.(E)},T=E=>{let O=D[E];O!==void 0&&(F(O),N.current[E]?.focus())},k=(E,O)=>{if(b)return;let A=D.length;if(A)switch(E.key){case"ArrowRight":case"ArrowUp":E.preventDefault(),T((O+1)%A);break;case"ArrowLeft":case"ArrowDown":E.preventDefault(),T((O-1+A)%A);break;case"Home":E.preventDefault(),T(0);break;case"End":E.preventDefault(),T(A-1);break;default:break}},_=typeof r=="string"?r:"Rating";return on("div",{className:Yn("cleen",h),style:v,ref:P,...y,children:Db("div",{className:Yn("cleen-space-y-2",C?.container),style:x?.container,children:[r&&on(re,{htmlFor:t,required:n,tooltip:l,className:Yn("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...x?.label,children:r}),Db("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[on("div",{role:"radiogroup","aria-label":_,className:Yn("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...g?{gap:g}:{},...x?.list},children:D?.map((E,O)=>on("button",{id:t,ref:A=>{N.current[O]=A},role:"radio","aria-checked":M===E,"aria-label":`${E}`,tabIndex:O===R?0:-1,onClick:()=>F(E),onKeyDown:A=>k(A,O),className:Yn("cleen-flex cleen-justify-center cleen-items-center cleen-border cleen-border-border hover:cleen-border-muted-foreground cleen-rounded-full cleen-text-foreground 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",C?.item),style:{width:f,height:f,...M===E?{borderColor:I,backgroundColor:v6.trasparentize(I,.9),color:I}:{},...x?.item},type:"button",children:on("span",{className:Yn("cleen-font-medium cleen-text-sm",C?.value),style:x?.value,children:E})},E))}),a?.helperText&&on("span",{className:"cleen-text-sm cleen-text-neutral-600",children:a.helperText})]}),(c?.errorMessage||c?.infoMessage||c?.subtitle)&&on(oe,{...c})]})})});import{useState as x6}from"react";import{components as P6}from"react-select";import{jsx as x0,jsxs as Eb}from"react/jsx-runtime";var Fb=e=>{let[t,n]=x6(!1),r=e.data;return x0("div",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:x0(P6.Option,{...e,children:Eb("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[Eb("div",{className:"cleen-flex-1",children:[r?.label,r?.sublabel&&x0("p",{className:"cleen-text-xs",children:r?.sublabel})]}),typeof r?.icon=="function"?r.icon({...e,isHovered:t}):r?.icon]})})})};import{components as S6}from"react-select";import{jsx as P0,jsxs as w6}from"react/jsx-runtime";var Ab=e=>{let t=e.data;return P0(S6.SingleValue,{...e,children:w6("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[P0("p",{children:t?.label}),t?.sublabel&&P0("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as La,ZIndex as Hb}from"@cleen/ui-core";import{forwardRef as B6,useId as N6,useState as Gb}from"react";import R6 from"react-select";import{components as M6}from"react-select";import{jsx as S0,jsxs as Ob}from"react/jsx-runtime";var zb=({isLoading:e,inputValue:t,options:n,createNewOptionCallback:r,createNewOptionLabelStringCb:l,children:a,...c})=>{let i=t?.trim().toLowerCase(),d=n?.some(p=>p?.labelString?p.labelString.toLowerCase()===i:typeof p?.label=="string"?p.label.toLowerCase()===i:!1);return S0("div",{className:"cleen",children:Ob(M6.MenuList,{options:n,...c,children:[a,r&&!e&&t&&t?.length>0&&!d&&Ob("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[S0(lt,{}),S0("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{r(t)},children:l?.(t)||t})]})]})})};import{components as k6}from"react-select";import{jsx as _b}from"react/jsx-runtime";var Ub=({isLoading:e,noDataFound:t,...n})=>_b(k6.NoOptionsMessage,{...n,children:e?_b(le,{}):t||"No data found"});import{jsx as yo,jsxs as $b}from"react/jsx-runtime";var Vb=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),T6=B6(function({label:t,labelTooltip:n,sublabel:r,id:l,name:a,required:c,className:i,classNames:d,isLoading:p=!1,disabled:s,emboldenOptions:g=!1,labels:f,components:b,style:I,styles:h,infoLabels:v,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...y},P){let[w,L]=Gb(!1),[B,M]=Gb(""),D=N6(),N=y.inputId??l??a??D,S=(F,T)=>{if(!Vb(F.data))return!1;let{labelString:k,label:_}=F.data;return k?k.toLowerCase().includes(T.toLowerCase()):typeof _=="string"?_.toLowerCase().includes(T.toLowerCase()):!1},R=F=>Vb(F)?F.labelString??(typeof F.label=="string"?F.label:""):"";return yo("div",{className:La("cleen",i),style:I,ref:P,children:$b("div",{className:La("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",d?.cleenContainer),style:h?.cleenContainer,children:[(t||r)&&$b("div",{className:La("cleen-flex cleen-flex-col cleen-gap-1",d?.labels?.container),style:h?.labels?.container,children:[t&&yo(re,{htmlFor:N,required:c,tooltip:n,...d?.labels?.label,...h?.labels?.label,children:t}),r&&yo("span",{className:La("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",d?.labels?.sublabel),style:h?.labels?.sublabel,children:r})]}),yo(R6,{...C&&{menuIsOpen:w,inputValue:B,onInputChange:F=>M(F),onMenuOpen:()=>L(!0),onMenuClose:()=>L(!1)},...!y.filterOption&&{filterOption:S},...!y.getOptionLabel&&{getOptionLabel:R},id:l||a,classNames:d,isDisabled:s,menuPortalTarget:document.body,menuPosition:"fixed",...y,inputId:N,className:La("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",d?.inputOuterContainer),styles:{...h,control:(F,T)=>{let k={...F,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:g&&T.hasValue?"600":"400",borderColor:v?.errorMessage?"rgba(var(--cleen-error), 0.7)":"rgb(var(--cleen-border))",color:T.isDisabled?"rgb(var(--cleen-neutral-500))":"rgb(var(--cleen-foreground))",backgroundColor:T.isDisabled?"rgb(var(--cleen-neutral-100))":"rgba(var(--cleen-background))",boxShadow:T.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:C?"rgba(var(--cleen-foreground))":"transparent","&:hover":{borderColor:v?.errorMessage?"rgba(var(--cleen-error))":"rgb(var(--cleen-border))"}};return h?.control?h?.control(k,T):k},menuPortal:(F,T)=>{let k={...F,zIndex:Hb.SELECT,...h?.menuPortal};return h?.menuPortal?h?.menuPortal(k,T):k},menu:(F,T)=>{let k={...F,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:Hb.SELECT,...h?.menu};return h?.menu?h?.menu(k,T):k},option:(F,T)=>{let k={...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-foreground))",fontWeight:g?"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-neutral-600))"},"&:hover p":{color:"rgba(var(--cleen-white))"},"&:active":{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))"}};return h?.option?h?.option(k,T):k},menuList:(F,T)=>{let k={...F,"::-webkit-scrollbar":{width:"6px",height:"0px"},"::-webkit-scrollbar-track":{background:"rgb(var(--cleen-background))"},"::-webkit-scrollbar-thumb":{background:"rgba(var(--cleen-neutral-200))"},"::-webkit-scrollbar-thumb:hover":{background:"rgba(var(--cleen-neutral-400))"},padding:0,borderRadius:4,...h?.menuList};return h?.menuList?h?.menuList(k,T):k},singleValue:(F,T)=>{let k={...F,color:T.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return h?.singleValue?h?.singleValue(k,T):k},input:(F,T)=>{let k={...F,color:"rgba(var(--cleen-foreground))"};return h?.input?h?.input(k,T):k}},components:{IndicatorSeparator:()=>null,SingleValue:F=>yo(Ab,{...F}),NoOptionsMessage:F=>yo(Ub,{isLoading:p,noDataFound:f?.noDataFound,...F}),MenuList:F=>yo(zb,{isLoading:p,inputValue:B,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...F}),Option:Fb,...b}}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&yo(oe,{...v})]})})});import{jsx as Wb,jsxs as L6}from"react/jsx-runtime";function qb({children:e,title:t,className:n="",renderHeader:r}){return L6("div",{className:`cleen-w-full cleen-h-full ${n}`,"data-testid":`drawer-container-${t}`,children:[r?r(t):Wb("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),Wb("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as Wt}from"@cleen/ui-core";import{forwardRef as D6,useState as E6}from"react";import{Fragment as z6,jsx as je,jsxs as ti}from"react/jsx-runtime";function F6({icon:e,iconSrc:t,iconName:n,iconSize:r=24,title:l,className:a,style:c}){return e?je("span",{className:Wt("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",a),style:{width:r,height:r,...c},children:e}):t?je("img",{src:t,alt:l,width:r,height:r,className:a,style:c}):n?je(ge,{name:n,width:r,height:r,className:a,style:c}):null}function Xb({item:e,depth:t,iconSize:n=24,classNames:r,styles:l}){let[a,c]=E6(!1),i={...e,classNames:{...r,...e.classNames},styles:{...l,...e.styles}},d=Array.isArray(i?.items)&&i.items.length>0,p=i?.iconSize??n,s=t>0?{paddingLeft:12+t*28}:{},g=ti(z6,{children:[ti("div",{className:Wt("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[je(F6,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:p,title:i?.name,className:Wt("cleen-text-neutral-700 group-hover/row:cleen-text-foreground [&_path]:cleen-stroke-[1.5] [&_path]:[vector-effect:non-scaling-stroke] cleen-transition-all cleen-duration-200",i?.isActive&&"cleen-text-foreground",i?.classNames?.icon),style:i?.styles?.icon}),je("span",{className:Wt("cleen-font-semibold cleen-text-neutral-800 group-hover/row:cleen-text-foreground cleen-text-sm cleen-truncate cleen-transition-colors cleen-duration-200",i?.isActive&&"cleen-text-foreground",i?.classNames?.name),style:i?.styles?.name,children:i?.name})]}),["string","number"].includes(typeof i?.badgeCount)&&je(Te,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return d?ti("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[ti("summary",{className:Wt("cleen-group/row [&::-webkit-details-marker]:cleen-hidden cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-muted cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer cleen-list-none",t===0?"cleen-px-3":void 0,i?.classNames?.parentItemContainer),style:{...s,...i?.styles?.parentItemContainer},onClick:()=>c(f=>!f),children:[g,je(ge,{name:"ChevronDown",className:Wt("cleen-w-5 cleen-h-5 cleen-text-neutral-700 group-hover/row:cleen-text-foreground cleen-transition-all cleen-shrink-0",{"cleen-rotate-180":a},i?.classNames?.chevron),style:i?.styles?.chevron})]}),je("div",{className:Wt("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(f=>je(Xb,{item:f,depth:t+1,iconSize:n,classNames:r,styles:l},f?.id??f?.name))})]}):je("div",{className:Wt("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",t===0?"cleen-px-3 hover:cleen-bg-muted":void 0,i?.isActive&&t===0&&"cleen-bg-muted",i?.disabled&&"cleen-opacity-50 cleen-pointer-events-none",i?.classNames?.container),style:{...s,...i?.styles?.container},onClick:()=>i?.onClick?.(i),children:g})}var A6=D6(function({title:t,icon:n,iconName:r,iconSrc:l,iconSize:a=24,badgeColor:c="gray",badgeCount:i,items:d,onClick:p,isActive:s=!1,disabled:g,className:f,classNames:b,style:I,styles:h},v){let C={id:"root",name:t,icon:n,iconName:r,iconSrc:l,iconSize:a,badgeColor:c,badgeCount:i,isActive:s,disabled:g,onClick:p?()=>p():void 0,classNames:b,styles:h,items:d};return je("div",{className:Wt("cleen",f),style:I,ref:v,children:je(Xb,{item:C,depth:0,iconSize:a,classNames:b,styles:h})})}),O6=A6;import{cn as qt}from"@cleen/ui-core";import{useEffect as G6,useRef as V6,useState as $6}from"react";import{cn as Da}from"@cleen/ui-core";import{useMemo as _6}from"react";import{Link as U6}from"react-router-dom";import{jsx as Ea,jsxs as H6}from"react/jsx-runtime";function Fa({item:e,activeId:t,onClick:n,countBadge:r,classNames:l,styles:a,renderIcon:c}){let i=t===e?.id,d=_6(()=>e?c?c(e,i):e.icon?e.icon:e.iconSrc?Ea("img",{src:e.iconSrc,alt:e?.name||e?.label,className:Da("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,i&&"cleen-text-primary"),style:a?.icon}):e.iconName?Ea(ge,{name:e.iconName,className:Da("cleen-w-6 cleen-h-6 cleen-text-neutral-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,i&&"cleen-text-primary"),style:a?.icon}):null:null,[e,i,c,l?.icon,a?.icon]),p=H6("div",{"data-testid":`nav-item-${e?.id}`,className:Da("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,i&&"cleen-bg-primary/10"),style:a?.container,onClick:()=>{e?.path||n?.(e)},children:[d,r&&Ea("div",{className:Da("cleen-absolute -cleen-top-1 -cleen-right-1 cleen-flex cleen-items-center cleen-justify-center cleen-w-4 cleen-h-4 cleen-bg-surface cleen-rounded-md cleen-border cleen-border-border cleen-font-normal cleen-text-[8px] cleen-text-foreground",l?.badge),style:a?.badge,children:r})]});return Ea(ye,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:Da("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...a?.tooltip,label:e?.label,children:e?.path?Ea(U6,{to:e.path,children:p}):p})}import{jsx as Xt,jsxs as nn}from"react/jsx-runtime";function Kb({navigationItems:e,bottomNavigationItems:t=[],drawerContent:n={},logo:r,onLogoClick:l,userAvatar:a,userInfo:c,drawerFooter:i,drawerWidth:d=330,direction:p="right",defaultActiveId:s=null,activeId:g,onActiveChange:f,closeOnOutsideClick:b=!0,closeOnBlur:I=!0,className:h,classNames:v,style:C,styles:x,renderSidebarItem:y}){let[P,w]=$6(s),L=V6(null),B=g!==void 0?g:P,M=!!B,D=S=>{let R=B===S.id?null:S.id;g===void 0&&w(R),f?.(R)};G6(()=>{if(!b||!M)return;let S=R=>{L.current&&!L.current.contains(R.target)&&(g===void 0&&w(null),f?.(null))};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[b,M,g,f]);let N=S=>{!I||!M||L.current&&!L.current.contains(S.relatedTarget)&&(g===void 0&&w(null),f?.(null))};return nn("div",{className:qt("cleen",h),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:p==="left"?"row-reverse":"row",...C},ref:L,onBlur:N,tabIndex:I?0:void 0,children:[nn("div",{className:qt("cleen-flex cleen-flex-col cleen-items-center cleen-h-full",p==="right"?"cleen-border-r cleen-border-r-border":"cleen-border-l cleen-border-l-border",v?.navigation),style:x?.navigation,children:[r&&Xt("div",{className:qt("cleen-flex cleen-justify-center cleen-items-center cleen-pt-8 cleen-pb-6 cleen-w-full cleen-cursor-pointer",v?.logo),style:x?.logo,onClick:l,children:r}),nn("div",{className:qt("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:x?.navigationItems,children:[Xt("nav",{className:qt("cleen-flex cleen-flex-col cleen-gap-2",v?.upperNavigationItemsWrapper),style:x?.upperNavigationItemsWrapper,children:e.map(S=>nn("div",{children:[y?y(S,B===S.id,D):Xt(Fa,{item:S,activeId:B,onClick:D,countBadge:S.badgeCount,classNames:{...v?.navigationItem,...S?.classNames},styles:{...x?.navigationItem,...S?.styles}}),S?.withBottomDivider&&Xt("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},S.id))}),nn("div",{className:qt("cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",v?.bottomNavigationItemsWrapper),style:x?.bottomNavigationItemsWrapper,children:[t.map(S=>nn("div",{children:[y?y(S,B===S.id,D):Xt(Fa,{item:S,activeId:B,onClick:D,countBadge:S.badgeCount,classNames:{...v?.navigationItem,...S?.classNames},styles:{...x?.navigationItem,...S?.styles}}),S?.withBottomDivider&&Xt("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},S.id)),a&&Xt("div",{className:"cleen-mt-6 cleen-mb-8",children:a})]})]})]}),nn("div",{className:qt("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-border":M&&p==="right","cleen-border-l cleen-border-l-border":M&&p==="left"},v?.drawer),style:{...x?.drawer,width:M?`${d}px`:"0px",visibility:M?"visible":"hidden"},children:[B&&n[B]&&Xt("div",{className:qt("cleen-flex-1 cleen-overflow-auto",v?.drawerContent),style:x?.drawerContent,children:n[B]}),B&&(i||c)&&Xt("div",{className:qt("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-border cleen-border-t cleen-w-full",v?.drawerFooter),style:x?.drawerFooter,children:typeof i=="function"?i(B):i||c})]})]})}var te=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as Zb}from"@cleen/ui-core";import{forwardRef as W6}from"react";import{jsx as Yb}from"react/jsx-runtime";var q6={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"},X6=W6(function({width:t,height:n,roundness:r="md",variant:l="default",className:a,style:c},i){let d=te(l),p={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...n!==void 0?{height:typeof n=="number"?`${n}px`:n}:{},...c};return Yb("div",{ref:i,className:Zb("cleen",a),children:Yb("div",{className:Zb("cleen-bg-muted",q6[r],t===void 0&&"cleen-w-full",n===void 0&&"cleen-h-4",d),style:p})})});import{cn as w0}from"@cleen/ui-core";import{forwardRef as K6}from"react";import{jsx as oi,jsxs as Z6}from"react/jsx-runtime";var M0=K6(function({className:t,style:n,variant:r="default",itemCount:l=1},a){let c=te(r);return oi("div",{ref:a,className:w0("cleen",t),style:n,children:oi("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((i,d)=>Z6("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[oi("div",{className:w0("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",c)}),oi("div",{className:w0("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",c)})]},d))})})});import{cn as Qb}from"@cleen/ui-core";import{forwardRef as Y6}from"react";import{jsx as k0}from"react/jsx-runtime";var B0=Y6(function({className:t,style:n,variant:r="default",itemCount:l=1},a){let c=te(r);return k0("div",{ref:a,className:Qb("cleen",t),style:n,children:k0("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((i,d)=>k0("div",{className:Qb("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",c)},d))})})});import{cn as Jb}from"@cleen/ui-core";import{forwardRef as Q6}from"react";import{jsx as rn,jsxs as ni}from"react/jsx-runtime";var N0=Q6(function({className:t,style:n,variant:r="default"},l){let a=te(r);return rn("div",{ref:l,className:Jb("cleen",t),style:n,children:ni("div",{className:Jb("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",a),children:[rn("div",{className:"cleen-h-48 cleen-w-full"}),ni("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:[rn("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),ni("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[rn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),rn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),ni("div",{className:"cleen-flex cleen-gap-3",children:[rn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),rn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as jb}from"@cleen/ui-core";import{forwardRef as J6}from"react";import{jsx as R0}from"react/jsx-runtime";var T0=J6(function({className:t,style:n,variant:r="default",itemCount:l=1},a){let c=te(r);return R0("div",{ref:a,className:jb("cleen",t),style:n,children:R0("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((i,d)=>R0("div",{className:jb("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",c)},d))})})});import{cn as ri}from"@cleen/ui-core";import{forwardRef as j6}from"react";import{jsx as ai,jsxs as ey}from"react/jsx-runtime";var Aa=j6(function({className:t,style:n,variant:r="default"},l){let a=te(r);return ai("div",{ref:l,className:ri("cleen",t),style:n,children:ey("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-w-full",children:[ai("div",{className:ri("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-min-w-10 cleen-size-10",a)}),ey("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[ai("div",{className:ri("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",a)}),ai("div",{className:ri("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",a)})]})]})})});import{cn as Qn}from"@cleen/ui-core";import{forwardRef as eB}from"react";import{jsx as Jn,jsxs as li}from"react/jsx-runtime";var ci=eB(({className:e,style:t,variant:n="default"},r)=>{let l=te(n);return Jn("div",{ref:r,className:Qn("cleen",e),style:t,children:li("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-lg",children:[li("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[Jn("div",{className:Qn("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",l)}),li("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Jn("div",{className:Qn("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",l)}),Jn("div",{className:Qn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),li("div",{className:"cleen-space-y-2 cleen-w-full",children:[Jn("div",{className:Qn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",l)}),Jn("div",{className:Qn("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});ci.displayName="AssessmentHeaderSkeleton";import{cn as yt}from"@cleen/ui-core";import{forwardRef as tB}from"react";import{jsx as Ct,jsxs as jn}from"react/jsx-runtime";var L0=tB(function({className:t,style:n,variant:r="default"},l){let a=te(r);return Ct("div",{ref:l,className:yt("cleen",t),style:n,children:jn("div",{className:"cleen-flex cleen-flex-col cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden cleen-w-full",children:[Ct("div",{className:yt("cleen-bg-muted cleen-w-full cleen-h-40",a)}),jn("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[jn("div",{className:"cleen-flex cleen-gap-2",children:[Ct("div",{className:yt("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",a)}),Ct("div",{className:yt("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",a)})]}),jn("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Ct("div",{className:yt("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",a)}),Ct("div",{className:yt("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),Ct("div",{className:yt("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)})]}),jn("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[jn("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Ct("div",{className:yt("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",a)}),Ct("div",{className:yt("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",a)})]}),Ct("div",{className:yt("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",a)})]})]})]})})});import{forwardRef as oB}from"react";import{cn as nB}from"@cleen/ui-core";import{jsx as D0}from"react/jsx-runtime";var E0=oB(function({className:t,style:n,itemCount:r=3,variant:l="default"},a){return D0("div",{ref:a,className:nB("cleen",t),style:n,children:D0("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:r}).map((c,i)=>D0(Aa,{variant:l},i))})})});import{cn as an}from"@cleen/ui-core";import{forwardRef as rB}from"react";import{jsx as et,jsxs as Oa}from"react/jsx-runtime";var ty=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],F0=rB(function({className:t,style:n,variant:r="default"},l){let a=te(r);return et("div",{ref:l,className:an("cleen",t),style:n,children:Oa("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-px-4 cleen-pt-4 cleen-pb-3 cleen-w-full",children:[Oa("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[et("div",{className:an("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",a)}),et("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((c,i)=>Oa("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[et("div",{className:an("cleen-bg-muted cleen-rounded-full cleen-size-2.5",a)}),et("div",{className:an("cleen-bg-muted cleen-rounded cleen-h-3",a),style:{width:c}})]},i))})]}),Oa("div",{className:"cleen-flex cleen-gap-3",children:[et("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=>et("div",{className:an("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",a)},c))}),Oa("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[et("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:ty.map((c,i)=>et("div",{className:an("cleen-bg-muted cleen-rounded-t cleen-flex-1",c,a)},i))}),et("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),et("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:ty.map((c,i)=>et("div",{className:an("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",a)},i))})]})]})]})})});import{cn as ln}from"@cleen/ui-core";import{forwardRef as aB}from"react";import{jsx as Kt,jsxs as ii}from"react/jsx-runtime";var A0=aB(({variant:e="default",itemCount:t=3,className:n,style:r},l)=>{let a=te(e);return Kt("div",{ref:l,className:ln("cleen",n),style:r,children:Kt(me,{className:"cleen-max-h-fit",children:ii("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[ii("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Kt("div",{className:ln("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",a)}),Kt("div",{className:ln("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",a)})]}),Kt("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((c,i)=>ii("div",{className:"cleen-space-y-3",children:[Kt("div",{className:ln("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",a)}),Kt("div",{className:ln("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",a)})]},i))}),ii("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[Kt("div",{className:ln("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",a)}),Kt("div",{className:ln("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",a)})]})]})})})});import{cn as si}from"@cleen/ui-core";import{forwardRef as lB}from"react";import{jsx as za,jsxs as cB}from"react/jsx-runtime";var O0=lB(function({className:t,style:n,variant:r="default",itemCount:l=5},a){let c=te(r),i=["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 za("div",{ref:a,className:si("cleen",t),style:n,children:cB("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[za("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-bg-muted cleen-border-b cleen-border-border",children:i.map((d,p)=>za("div",{className:si("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",d,c)},p))}),Array.from({length:l}).map((d,p)=>za("div",{className:si("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",p<l-1?"cleen-border-b cleen-border-border":""),children:i.map((s,g)=>za("div",{className:si("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",g===i.length-1?"cleen-rounded-full":"cleen-rounded",s,c)},g))},p))]})})});import{cn as pi}from"@cleen/ui-core";import{forwardRef as iB}from"react";import{jsx as _a,jsxs as oy}from"react/jsx-runtime";var z0=iB(function({className:t,style:n,variant:r="default",itemCount:l=4},a){let c=te(r);return _a("div",{ref:a,className:pi("cleen",t),style:n,children:oy("div",{className:"cleen-flex cleen-flex-col cleen-gap-5 cleen-w-full cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-px-6 cleen-py-6",children:[Array.from({length:l}).map((i,d)=>oy("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[_a("div",{className:pi("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",c)}),_a("div",{className:pi("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",c)})]},d)),_a("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:_a("div",{className:pi("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",c)})})]})})});import{cn as ny}from"@cleen/ui-core";import{forwardRef as sB}from"react";import{jsx as _0}from"react/jsx-runtime";var pB=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],U0=sB(function({className:t,style:n,variant:r="default",colors:l=pB},a){let c=te(r);return _0("div",{ref:a,className:ny("cleen",t),style:n,children:_0("div",{className:ny("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:_0("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as di}from"@cleen/ui-core";import{forwardRef as dB}from"react";import{jsx as er,jsxs as ry}from"react/jsx-runtime";var H0=dB(function({className:t,style:n,variant:r="default"},l){let a=te(r);return er("div",{ref:l,className:di("cleen",t),style:n,children:ry("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[er("div",{className:di("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:er("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:ry("div",{className:di("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[er("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),er("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),er("div",{className:di("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",a)})]})})});import{cn as We}from"@cleen/ui-core";import{forwardRef as mB}from"react";import{jsx as Ve,jsxs as Zt}from"react/jsx-runtime";var G0=mB(function({className:t,style:n,variant:r="default"},l){let a=te(r);return Ve("div",{ref:l,className:We("cleen",t),style:n,children:Zt("div",{className:We("cleen-flex cleen-flex-col cleen-items-start cleen-gap-4 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-h-fit",t),style:n,children:[Zt("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Ve("div",{className:We("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",a)}),Ve("div",{className:We("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",a)})]}),Zt("div",{className:"cleen-space-y-3 cleen-w-full",children:[Zt("div",{children:[Ve("div",{className:We("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),Ve(me,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:Zt("div",{className:"cleen-space-y-2",children:[Ve("div",{className:We("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),Ve("div",{className:We("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",a)})]})})]}),Zt("div",{children:[Ve("div",{className:We("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),Zt("div",{className:"cleen-space-y-2",children:[Ve("div",{className:We("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)}),Ve("div",{className:We("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",a)})]})]}),Zt("div",{children:[Ve("div",{className:We("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),Ve(me,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:Zt("div",{className:"cleen-space-y-2",children:[Ve("div",{className:We("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),Ve("div",{className:We("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",a)})]})})]})]})]})})});import{cn as V0}from"@cleen/ui-core";import{forwardRef as uB}from"react";import{jsx as $0,jsxs as fB}from"react/jsx-runtime";var W0=uB(function({className:t,style:n,variant:r="default"},l){let a=te(r);return $0("div",{ref:l,className:V0("cleen",t),style:n,children:fB("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[$0("div",{className:V0("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",a)}),$0("div",{className:V0("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",a)})]})})});import{cn as Ua}from"@cleen/ui-core";import{forwardRef as hB}from"react";import{jsx as tr,jsxs as ay}from"react/jsx-runtime";var q0=hB(function({className:t,style:n,variant:r="default",itemCount:l=5},a){let c=te(r),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return tr("div",{ref:a,className:Ua("cleen",t),style:n,children:tr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:l}).map((d,p)=>ay("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[tr("div",{className:Ua("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",c)}),ay("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[tr("div",{className:Ua("cleen-bg-muted cleen-rounded cleen-h-4",i[p%i.length],c)}),tr("div",{className:Ua("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",c)})]}),tr("div",{className:Ua("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",c)})]},p))})})});import{cn as ly}from"@cleen/ui-core";import{forwardRef as gB}from"react";import{jsx as K0}from"react/jsx-runtime";var X0=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],Z0=gB(function({className:t,style:n,variant:r="default",itemCount:l},a){let c=te(r),i=l??X0.length;return K0("div",{ref:a,className:ly("cleen",t),style:n,children:K0("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((d,p)=>{let s=p<X0.length?X0[p]:p===i-1?"cleen-w-3/5":"cleen-w-full";return K0("div",{className:ly("cleen-bg-muted cleen-rounded cleen-h-3",s,c)},p)})})})});import{cn as cy}from"@cleen/ui-core";import{forwardRef as vB}from"react";import{jsx as iy}from"react/jsx-runtime";var Y0=vB(function({className:t,style:n,variant:r="default"},l){let a=te(r);return iy("div",{ref:l,className:cy("cleen",t),style:n,children:iy("div",{className:cy("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",a)})})});import{cn}from"@cleen/ui-core";import{forwardRef as IB}from"react";import{jsx as xt,jsxs as mi}from"react/jsx-runtime";var Q0=IB(function({className:t,style:n,variant:r="default"},l){let a=te(r);return xt("div",{ref:l,className:cn("cleen",t),style:n,children:mi("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[xt("div",{className:cn("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:xt("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:xt("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:xt("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-neutral-400"})})})}),mi("div",{className:"cleen-flex cleen-gap-3",children:[xt("div",{className:cn("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",a)}),mi("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[xt("div",{className:cn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",a)}),xt("div",{className:cn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)}),mi("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[xt("div",{className:cn("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",a)}),xt("div",{className:cn("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",a)})]})]})]})]})})});import{cn as Ha}from"@cleen/ui-core";import{forwardRef as bB}from"react";import{jsx as Ga,jsxs as J0}from"react/jsx-runtime";var ui=bB(function({variant:t="default",className:n,style:r},l){let a=te(t);return Ga("div",{ref:l,className:Ha("cleen",n),style:r,children:J0("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-w-full cleen-h-full",children:[J0("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-2 cleen-py-0.5 cleen-border cleen-border-border cleen-rounded-full",children:[Ga("div",{className:Ha("cleen-bg-muted cleen-rounded-full cleen-size-1.5",a)}),Ga("div",{className:Ha("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",a)})]}),J0("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[Ga("div",{className:Ha("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",a)}),Ga("div",{className:Ha("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",a)})]})]})})});ui.displayName="SkeletonBadgeCard";import{forwardRef as yB}from"react";import{jsx as he}from"react/jsx-runtime";var CB=yB(function({className:t,style:n,variant:r="default",itemCount:l=3,colors:a,skeleton:c="card",isShowing:i=!1,children:d},p){if(!i)return d;let s={ref:p,variant:r,itemCount:l,colors:a,className:t,style:n};switch(c){case"card2":return he(ci,{...s});case"card3":return he(L0,{...s});case"cardStack":return he(E0,{...s});case"contentCard":return he(A0,{...s});case"infoCard":return he(G0,{...s});case"widgetCard":return he(ui,{...s});case"image":return he(H0,{...s});case"video":return he(Q0,{...s});case"avatar":return he(M0,{...s});case"dataGrid":return he(O0,{...s});case"text":return he(Y0,{...s});case"paragraph":return he(Z0,{...s});case"list":return he(q0,{...s});case"form":return he(z0,{...s});case"banner":return he(N0,{...s});case"chart":return he(F0,{...s});case"button":return he(T0,{...s});case"badge":return he(B0,{...s});case"input":return he(W0,{...s});case"glowingCard":return he(U0,{...s});default:return he(Aa,{...s})}});import{cn as Co}from"@cleen/ui-core";import{forwardRef as xB,useCallback as j0,useEffect as PB,useRef as sy,useState as py}from"react";import{jsx as xo,jsxs as fi}from"react/jsx-runtime";var SB=xB(function({id:t,required:n,minValue:r=0,maxValue:l=100,step:a=1,defaultValue:c=0,value:i,variant:d="default",onChange:p,onChangeEnd:s,className:g,classNames:f,style:b,styles:I,disabled:h=!1,label:v,labelTooltip:C,labels:x,tooltip:y,infoLabels:P},w){let[L,B]=py(c??r),M=i!==void 0?i:L,D=sy(null),[N,S]=py(!1),R=sy(!1),F=(M-r)/(l-r)*100,T=Math.min(100,Math.max(0,F)),k=j0(q=>{let H=Math.round((q-r)/a)*a+r;return Math.min(l,Math.max(r,H))},[r,l,a]),_=j0((q,H)=>{let V=k(q);i===void 0&&B(V),p?.(V),H&&s?.(V)},[k,i,p,s]),E=j0(q=>{let H=D.current;if(!H)return r;let V=H.getBoundingClientRect(),Q=(q-V.left)/V.width;return k(r+Q*(l-r))},[r,l,k]),O=q=>{if(h)return;let H;switch(q.key){case"ArrowRight":case"ArrowUp":H=M+a;break;case"ArrowLeft":case"ArrowDown":H=M-a;break;case"Home":H=r;break;case"End":H=l;break;default:return}q.preventDefault(),_(H,!0)},A=q=>{h||(q.preventDefault(),S(!0))},U=q=>{if(h||R.current){R.current=!1;return}_(E(q.clientX),!0)},G=q=>{h||(q.preventDefault(),S(!0))};PB(()=>{if(!N)return;let q=z=>{_(E(z.clientX))},H=z=>{S(!1),R.current=!0,s?.(k(E(z.clientX)))},V=z=>{z.touches.length>0&&_(E(z.touches[0].clientX))},Q=z=>{S(!1),R.current=!0,s?.(k(E(z.changedTouches[0].clientX)))};return document.addEventListener("mousemove",q),document.addEventListener("mouseup",H),document.addEventListener("touchmove",V),document.addEventListener("touchend",Q),()=>{document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",Q)}},[N,k,E,_,s]);let W=q=>xo("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:q});return xo("div",{className:Co("cleen",g),style:b,ref:w,children:fi("div",{className:Co("cleen-w-full",f?.container),style:I?.container,children:[v&&xo(re,{htmlFor:t,required:n,tooltip:C,...f?.label,...I?.label,children:v}),fi("div",{className:Co({"cleen-flex cleen-items-center cleen-gap-2":d==="inline"},f?.slider),style:I?.slider,children:[d==="inline"&&x?.minLabel!==void 0&&W(x?.minLabel),fi("div",{ref:D,className:Co("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":d==="inline"},f?.track),style:I?.track,"aria-disabled":h,onClick:U,children:[xo("div",{className:Co("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",f?.path),style:I?.path,children:xo("div",{className:Co("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",f?.filledTrack),style:{width:`${T}%`,...I?.filledTrack}})}),xo(ye,{invertColors:!0,...y,label:x?.tooltip?.(M)??M,className:Co("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",y?.className),style:{left:`calc(${T}% - 8px)`,...y?.style},isOpen:N||y?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:xo("div",{id:t,className:Co("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-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:I?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":M,"aria-valuemin":r,"aria-valuemax":l,"aria-disabled":h,"aria-label":typeof v=="string"?v:"Slider","aria-labelledby":t,onMouseDown:A,onTouchStart:G,onKeyDown:O})})]}),d==="inline"?x?.maxLabel&&W(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&fi("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[x?.minLabel&&W(x?.minLabel),x?.maxLabel&&W(x?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&xo(oe,{...P})]})})});import{cn as Pt}from"@cleen/ui-core";import{forwardRef as wB,useCallback as e1,useEffect as MB,useRef as kB,useState as dy}from"react";import{jsx as St,jsxs as hi}from"react/jsx-runtime";var BB=wB(function({id:t,required:n,minValue:r=0,maxValue:l=100,step:a=1,defaultValue:c=[r,l],value:i,variant:d="default",onChange:p,onChangeEnd:s,className:g,classNames:f,style:b,styles:I,disabled:h=!1,label:v,labelTooltip:C,labels:x,tooltips:y,infoLabels:P},w){let[L,B]=dy(c??[r,l]),M=i!==void 0?i:L,D=kB(null),[N,S]=dy(null),R=e1(H=>{let V=Math.round((H-r)/a)*a+r;return Math.min(l,Math.max(r,V))},[r,l,a]),F=(M[0]-r)/(l-r)*100,T=Math.min(100,Math.max(0,F)),k=(M[1]-r)/(l-r)*100,_=Math.min(100,Math.max(0,k)),E=e1(H=>{let V=[R(Math.min(H[0],H[1])),R(Math.max(H[0],H[1]))];i===void 0&&B(V),p?.(V)},[R,i,p]),O=e1(H=>{let V=D.current;if(!V)return r;let Q=V.getBoundingClientRect(),z=(H-Q.left)/Q.width;return R(r+z*(l-r))},[r,l,R]),A=H=>V=>{if(h)return;let Q=H==="min"?M[0]:M[1],z;switch(V.key){case"ArrowRight":case"ArrowUp":z=Q+a;break;case"ArrowLeft":case"ArrowDown":z=Q-a;break;case"Home":z=r;break;case"End":z=l;break;default:return}V.preventDefault();let Y=H==="min"?[Math.min(z,M[1]),M[1]]:[M[0],Math.max(z,M[0])];E(Y),s?.([R(Y[0]),R(Y[1])])},U=H=>V=>{h||(V.preventDefault(),S(H))},G=H=>{if(h)return;let V=O(H.clientX),Q=Math.abs(V-M[0]),z=Math.abs(V-M[1]);Q<z?E([V,M[1]]):E([M[0],V])},W=H=>V=>{h||(V.preventDefault(),S(H))};MB(()=>{if(!N)return;let H=Y=>{let de=O(Y.clientX);E(N==="min"?[de,M[1]]:[M[0],de])},V=Y=>{let de=O(Y.clientX),Ie=N==="min"?[de,M[1]]:[M[0],de];S(null),s?.(Ie)},Q=Y=>{if(Y.touches.length>0){let de=O(Y.touches[0].clientX);E(N==="min"?[de,M[1]]:[M[0],de])}},z=Y=>{let de=O(Y.changedTouches[0].clientX),Ie=N==="min"?[de,M[1]]:[M[0],de];S(null),s?.(Ie)};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",V),document.addEventListener("touchmove",Q),document.addEventListener("touchend",z),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",Q),document.removeEventListener("touchend",z)}},[N,M,O,E,s]);let q=H=>St("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return St("div",{className:Pt("cleen",g),style:b,ref:w,children:hi("div",{className:Pt("cleen-w-full",f?.container),style:I?.container,children:[v&&St(re,{htmlFor:t,required:n,tooltip:C,...f?.label,...I?.label,children:v}),hi("div",{className:Pt({"cleen-flex cleen-items-center cleen-gap-2":d==="inline"},f?.slider),style:I?.slider,children:[d==="inline"&&x?.minLabel!==void 0&&q(x?.minLabel),hi("div",{ref:D,className:Pt("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":d==="inline"},f?.track),style:I?.track,"aria-disabled":h,onClick:G,children:[St("div",{className:Pt("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer"),children:St("div",{className:Pt("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",f?.filledTrack),style:{left:`${T}%`,width:`${_-T}%`,...I?.filledTrack}})}),St(ye,{invertColors:!0,isOpen:N==="min"||y?.min?.isOpen||y?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...y?.shared,...y?.min,label:x?.tooltip?.(M[0])??M[0]?.toString(),className:Pt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",y?.shared?.className,y?.min?.className),style:{left:`calc(${T}% - 8px)`,...y?.shared?.style,...y?.min?.style},children:St("div",{className:Pt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-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:I?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":M[0],"aria-valuemin":r,"aria-valuemax":M[1],"aria-disabled":h,"aria-label":typeof v=="string"?`${v} minimum value`:"Minimum value",onMouseDown:U("min"),onTouchStart:W("min"),onKeyDown:A("min")})}),St(ye,{invertColors:!0,isOpen:N==="max"||y?.max?.isOpen||y?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...y?.shared,...y?.max,label:x?.tooltip?.(M[1])??M[1]?.toString(),className:Pt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",y?.shared?.className,y?.max?.className),style:{left:`calc(${_}% - 8px)`,...y?.shared?.style,...y?.max?.style},children:St("div",{className:Pt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-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:I?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":M[1],"aria-valuemin":M[0],"aria-valuemax":l,"aria-disabled":h,"aria-label":typeof v=="string"?`${v} maximum value`:"Maximum value",onMouseDown:U("max"),onTouchStart:W("max"),onKeyDown:A("max")})})]}),d==="inline"?x?.maxLabel&&q(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&hi("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[x?.minLabel&&q(x?.minLabel),x?.maxLabel&&q(x?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&St(oe,{...P})]})})});import{cn as or}from"@cleen/ui-core";import{forwardRef as NB,useRef as RB,useState as my}from"react";import{jsx as sn,jsxs as LB}from"react/jsx-runtime";var TB=NB(function({label:t,infoLabels:n,value:r,onChange:l,amount:a=5,gap:c,size:i,readonly:d,color:p="rgb(var(--cleen-yellow))",className:s,style:g,classNames:f,styles:b,...I},h){let[v,C]=my(0),x=r!==void 0,y=x?r:v,[P,w]=my(null),L=P!==null?P+1:y,B=!d,M=RB([]),D=y>0?y-1:0,N=T=>{x||C(T),l?.(T)},S=T=>{T<0||T>=a||(N(T+1),M.current[T]?.focus())},R=(T,k)=>{switch(T.key){case"ArrowRight":case"ArrowUp":T.preventDefault(),S((k+1)%a);break;case"ArrowLeft":case"ArrowDown":T.preventDefault(),S((k-1+a)%a);break;case"Home":T.preventDefault(),S(0);break;case"End":T.preventDefault(),S(a-1);break;default:break}},F=typeof t=="string"?t:"Rating";return sn("div",{className:or("cleen",s),style:g,ref:h,...I,children:LB("div",{className:or("cleen-space-y-2",f?.container),style:b?.container,children:[t&&sn("span",{className:or("cleen-font-medium cleen-text-sm cleen-text-foreground",f?.label),style:b?.label,children:t}),sn("div",{role:B?"radiogroup":"img","aria-label":B?F:`${F}: ${y} out of ${a}`,className:or("cleen-flex cleen-gap-3",f?.list),style:{...c?{gap:c}:{},...b?.list},children:Array.from({length:a},(T,k)=>{let _=sn(Qr,{"aria-hidden":"true",className:or("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",f?.star),style:{...i?{width:i,height:i}:{},...b?.star,fill:(d?y:L)>k?p:"transparent"}});return B?sn("button",{type:"button",ref:E=>{M.current[k]=E},role:"radio","aria-checked":y===k+1,"aria-label":`${k+1} ${k+1===1?"star":"stars"}`,tabIndex:k===D?0:-1,onMouseEnter:()=>w(k),onMouseLeave:()=>w(null),onClick:()=>N(k+1),onKeyDown:E=>R(E,k),className:or("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:_},k):sn("span",{className:"cleen-cursor-default",children:_},k)})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&sn(oe,{...n})]})})});import{cn as Yt}from"@cleen/ui-core";import{forwardRef as DB}from"react";import{jsx as Po,jsxs as uy}from"react/jsx-runtime";var fy=DB(({steps:e,activeStep:t=0,orientation:n="horizontal",color:r="rgb(var(--cleen-primary))",className:l,classNames:a,style:c,styles:i,...d},p)=>{let s=n==="vertical";return Po("div",{ref:p,className:Yt("cleen",l),style:{...c,width:"100%"},...d,children:Po("div",{className:Yt("cleen-flex cleen-w-full",s?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",a?.container),style:{width:"100%",...i?.container},children:e?.map((g,f)=>{let b=f+1<t,I=f+1===t;return uy("div",{className:Yt("cleen-relative cleen-flex cleen-flex-1",s?"cleen-flex-row cleen-items-start":"cleen-flex-col cleen-items-center cleen-text-center",a?.step),style:i?.step,children:[f<e?.length-1&&Po("div",{className:Yt("cleen-absolute cleen-bg-neutral-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)]",b&&"cleen-bg-primary",a?.connector),style:{backgroundColor:b?r:void 0,...i?.connector}}),Po("div",{className:Yt("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-border",a?.circle),style:{borderColor:I||b?r:void 0,backgroundColor:b?r:"transparent",...i?.circle},children:b?Po("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):Po("span",{className:Yt("cleen-w-2 cleen-h-2 cleen-rounded-full",I?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:I?r:void 0}})}),uy("div",{className:Yt("cleen-flex cleen-flex-col",s?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[g.title&&Po("div",{className:Yt("cleen-font-medium cleen-text-sm",I?"cleen-text-primary":"cleen-text-foreground",a?.title),style:{color:I?r:void 0,...i?.title},children:g.title}),g.subtitle&&Po("div",{className:Yt("cleen-text-xs cleen-text-neutral-600",a?.subtitle),style:{color:I?r:void 0,...i?.subtitle},children:g.subtitle})]})]},f)})})})});fy.displayName="Stepper";import{cn as Se}from"@cleen/ui-core";import{forwardRef as EB,useMemo as gy,useState as nr}from"react";var hy={trigger:"Filter by tags",noMatches:"No matching tags",searchPlaceholder:"Search or create a tag",noData:"There are no tags yet",footer:"Select tags to filter",selected:e=>`${e} selected`,create:e=>`Create \u201C${e}\u201D`,clear:"Clear",done:"Done"};import{Fragment as OB,jsx as ve,jsxs as rr}from"react/jsx-runtime";var FB=[],AB=EB(function({items:t=FB,value:n,defaultValue:r,onApply:l,onCreate:a,isLoading:c=!1,icon:i,disabled:d=!1,isOpen:p,onOpenChange:s,position:g="bottom-left",zIndex:f,labels:b,className:I,classNames:h,style:v,styles:C,...x},y){let P={...hy,...b},[w,L]=nr(r??[]),B=n??w,[M,D]=nr(!1),N=p??M,[S,R]=nr(B),[F,T]=nr(""),[k,_]=nr([]),[E,O]=nr(!1),A=gy(()=>[...t,...k.filter(j=>!t.some(ce=>ce.id===j.id))],[t,k]),U=F.trim(),G=gy(()=>{let j=U.toLowerCase();return j?A.filter(ce=>ce.label.toLowerCase().includes(j)):A},[A,U]),W=!!U&&!A.some(j=>j.label.toLowerCase()===U.toLowerCase())&&!!a,q=c||E,H=B.length,V=H>0,Q=j=>{j&&(R(B),T("")),p===void 0&&D(j),s?.(j)},z=j=>{R(ce=>ce.includes(j)?ce.filter(st=>st!==j):[...ce,j])},Y=async()=>{if(!(!a||!U||q)){O(!0);try{let j=await a(U);j&&(_(ce=>ce.some(st=>st.id===j.id)?ce:[...ce,j]),R(ce=>ce.includes(j.id)?ce:[...ce,j.id]),T(""))}finally{O(!1)}}},de=j=>{j.key==="Enter"&&W&&(j.preventDefault(),Y())},Ie=()=>{R([])},xe=()=>{let j=A.filter(ce=>S.includes(ce.id));n===void 0&&L(S),l?.(S,j),Q(!1)},wt=rr(OB,{children:[W&&ve("div",{className:"cleen-p-1.5",children:ve(J,{variant:"borderless-blue",fullWidth:!0,isLoading:q,leftIcon:ve($r,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{Y()},classNames:{container:Se("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",h?.createButton)},styles:{container:C?.createButton},children:ve("span",{className:"cleen-truncate",children:P.create(U)})})}),G.length===0?W?null:ve("p",{className:Se("cleen-px-3 cleen-py-4 cleen-text-gray-500 cleen-text-sm cleen-text-center cleen-opacity-50",h?.noData),style:C?.noData,children:A.length===0?P.noData:P.noMatches}):ve("ul",{className:Se("cleen-flex cleen-flex-col cleen-py-1 cleen-max-h-[300px] cleen-overflow-y-auto cleen-[scrollbar-width:thin] [&::-webkit-scrollbar]:cleen-w-1 [&::-webkit-scrollbar-track]:cleen-bg-transparent [&::-webkit-scrollbar-thumb]:cleen-rounded-full [&::-webkit-scrollbar-thumb]:cleen-bg-neutral-200",h?.list),style:C?.list,children:G.map(j=>rr("li",{onClick:()=>z(j.id),className:Se("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 hover:cleen-bg-muted cleen-px-3 cleen-py-2 cleen-transition-colors cleen-cursor-pointer",h?.item),style:C?.item,children:[ve(ya,{className:"cleen-flex-1 cleen-min-w-0",classNames:{container:"cleen-min-w-0",checkboxContainer:"cleen-items-center cleen-min-w-0 [&>div]:cleen-flex-1 [&>div]:cleen-min-w-0",checkbox:h?.checkbox,label:Se("cleen-text-sm cleen-truncate cleen-cursor-pointer",h?.itemLabel)},styles:{checkbox:C?.checkbox,label:C?.itemLabel},checked:S.includes(j.id),onClick:ce=>ce.stopPropagation(),label:ve("span",{title:j.label,className:"cleen-select-none",children:j.label}),fullTriggerArea:!0}),j.count!==void 0&&ve("span",{className:Se("cleen-shrink-0 cleen-text-gray-500 cleen-text-sm cleen-tabular-nums cleen-opacity-50 cleen-select-none",h?.count),style:C?.count,children:j.count})]},j.id))})]}),tt=rr("div",{className:Se("cleen-flex cleen-flex-col",h?.content),style:C?.content,role:"dialog",children:[ve(ue,{autoFocus:!0,value:F,onChange:j=>T(j.target.value),onKeyDown:de,placeholder:P.searchPlaceholder,"aria-label":P.searchPlaceholder,leftIcon:ve(Ft,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:Se("cleen-shrink-0 cleen-p-1.5 cleen-py-1",h?.search),style:C?.search,classNames:{inputContainer:"cleen-border-0 cleen-shadow-none cleen-rounded-none focus-within:cleen-ring-0",input:"cleen-text-sm"}}),ve(lt,{className:Se("cleen-shrink-0",h?.divider),style:C?.divider}),ve("div",{className:"cleen-flex-1 cleen-min-h-0",children:wt}),rr("div",{className:Se("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-3 cleen-py-2 cleen-border-t cleen-border-border cleen-shrink-0",h?.footer),style:C?.footer,children:[ve("span",{className:Se("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",h?.footerText),style:C?.footerText,children:S.length>0?P.selected(S.length):P.footer}),rr("div",{className:Se("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",h?.footerActions),style:C?.footerActions,children:[ve(J,{variant:"secondary",onClick:Ie,disabled:S.length===0,classNames:{container:Se("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",h?.clearButton)},styles:{container:C?.clearButton},children:P.clear}),ve(J,{variant:"primary",onClick:xe,classNames:{container:Se("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",h?.doneButton)},styles:{container:C?.doneButton},children:P.done})]})]})]});return ve(C0,{ref:y,isOpen:N,onOpenChange:Q,position:g,zIndex:f,content:tt,className:I,style:v,classNames:{trigger:Se(d&&"cleen-pointer-events-none"),popover:Se("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",h?.popover)},styles:{popover:C?.popover},...x,children:rr("button",{type:"button",disabled:d,"aria-label":P.trigger,"aria-haspopup":"dialog","aria-expanded":N,className:Se("cleen-flex cleen-items-center cleen-gap-1 cleen-bg-background cleen-shadow-sm cleen-px-2.5 cleen-py-2 cleen-border cleen-border-border cleen-rounded-lg cleen-text-muted-foreground cleen-transition-colors cleen-duration-200 hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2",{"cleen-border-primary-300 cleen-bg-primary-50 cleen-text-primary hover:cleen-bg-primary-100":V,"cleen-opacity-50 cleen-cursor-not-allowed":d},h?.trigger,V&&h?.triggerActive),style:{...C?.trigger,...V?C?.triggerActive:{}},children:[i??ve(jr,{className:"cleen-size-4 cleen-shrink-0"}),V&&ve("span",{className:Se("cleen-flex cleen-justify-center cleen-items-center cleen-bg-primary cleen-px-1.5 cleen-rounded-full cleen-min-w-5 cleen-h-5 cleen-font-semibold cleen-text-primary-foreground cleen-text-xs",h?.badge),style:C?.badge,children:H}),ve(gr,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});export{Sy as AdvancedProgressBar,H5 as AudioPlayback,K5 as AudioRecorder,dc as Avatar,j5 as AvatarRow,ow as Breadcrumb,J as Button,Sh as Calendar,hw as CalendarDropdown,F5 as CanvasButton,me as Card,t5 as CardIcon,l5 as CardMedia,Cw as Carousel,ya as Checkbox,Lw as CheckboxGroup,ge as CleenIcon,Ek as CleenNotificationContainer,bv as Collapsible,_w as ColorPicker,$w as CreditCardInput,Ba as DEFAULT_NOTIFICATION_CATEGORIES,Na as DEFAULT_NOTIFICATION_LABELS,lt as Divider,Bh as Drawer,qb as DrawerContainer,O6 as DrawerContentTitle,ba as Dropdown,S3 as Dropzone,T5 as EditableCard,sh as EditableText,mh as EditableTextArea,T3 as FileCard,Oh as FileStackedProgressTracker,IM as FilterDrawer,FI as FormGroup,NM as GroupSelector,Di as Icon48AlertFeatured,Ei as Icon48SuccessFeatured,wo as IconAlertCircle,Ai as IconAlertOctagon,zi as IconAlertTriangle,_i as IconApps,Hi as IconArchive,Gi as IconArrowBarDown,Vi as IconArrowBarLeft,$i as IconArrowBarRight,Wi as IconArrowBarToDown,qi as IconArrowBarToLeft,Xi as IconArrowBarToRight,Ki as IconArrowBarToUp,Zi as IconArrowBarUp,Qi as IconArrowDown,Ji as IconArrowDownLeft,es as IconArrowDownNarrow,ts as IconArrowDownRight,ns as IconArrowLeft,as as IconArrowLeftNarrow,cs as IconArrowRight,ss as IconArrowRightNarrow,ds as IconArrowUp,ms as IconArrowUpLeft,fs as IconArrowUpNarrow,hs as IconArrowUpRight,gs as IconAttachment,vs as IconBarChart,Is as IconBarChartSquare,bs as IconBell,ys as IconBold,Ms as IconBookOpen,Cs as IconBookmark,Mi as IconBookmarkCheck,ki as IconBookmarkCheckFill,xs as IconBookmarkFill,Ps as IconBookmarkMinus,Ni as IconBookmarkPlus,ws as IconBookmarkX,ks as IconBoxLines,Ns as IconBoxText,Ts as IconBracketsCheck,Ls as IconBracketsEllipses,Ds as IconBrickWall,Es as IconBriefcase,Ri as IconBuilding,Fs as IconCalculator,hr as IconCalendar,As as IconCertificate,Rt as IconCheck,Mo as IconCheckCircle,Os as IconCheckCircleBroken,zs as IconCheckFill,_s as IconCheckVerified,Us as IconCheckVerifiedFill,gr as IconChevronDown,Hs as IconChevronDownDouble,Gs as IconChevronDownLeft,Vs as IconChevronDownLeftDouble,$s as IconChevronDownRight,Ws as IconChevronDownRightDouble,Tt as IconChevronLeft,qs as IconChevronLeftDouble,rt as IconChevronRight,vr as IconChevronRightDouble,Xs as IconChevronSelectorVertical,Lt as IconChevronUp,Ks as IconChevronUpDouble,Zs as IconChevronUpLeft,Ys as IconChevronUpLeftDouble,Qs as IconChevronUpRight,Js as IconChevronUpRightDouble,js as IconClick,ep as IconClock,tp as IconClockFastForward,np as IconClockPlay,rp as IconClockRewind,ap as IconClone,cp as IconCode,ip as IconCodeBrowser,pp as IconCodeCircle,mp as IconColors,Ti as IconColumnEdit,up as IconCopy,fp as IconCopy2,gp as IconCopyCheck,vp as IconCreditCard,Ip as IconCube,bp as IconCubeOutline,br as IconCursorBox,yp as IconDataflow,Cp as IconDataflow2,xp as IconDataflow3,Sp as IconDistributeHorizontal,wp as IconDollar,kp as IconDollarCircle,Bp as IconDot,Np as IconDotFill,Rp as IconDotsGrid,Lp as IconDotsHorizontal,vn as IconDotsVertical,Fp as IconDownload,Ap as IconEdit,zp as IconEditable,_p as IconExpand,Hp as IconExternalLink,Vp as IconExternalLink2,$p as IconEye,qp as IconEyeHidden,Xp as IconEyeHidden2,Kp as IconFaceAngry,Zp as IconFaceLaugh,Yp as IconFaceSmile,Bo as IconFile,Jp as IconFileCheck,Pr as IconFileCsv,jp as IconFileDownload,Sr as IconFileJson,ed as IconFileList,Ke as IconFileMusic,No as IconFilePdf,Mr as IconFileSpreadsheet,Et as IconFileText,nd as IconFileUpload,Br as IconFileXls,Nr as IconFileXlsx,mt as IconFileZip,od as IconFiles,rd as IconFilter,Rr as IconFilter2,ld as IconFlag,cd as IconFlag2,id as IconFlagFill,sd as IconFocus,pd as IconFolder,dd as IconFolderExport,md as IconFolderImport,ud as IconGraduationCap,fd as IconGripVertical,hd as IconHand,gd as IconHandShield,vd as IconHash,Id as IconHeadsetMic,bd as IconHeart,yd as IconHeartFill,xd as IconHouse,Lr as IconHouseLine,Re as IconImage,Pd as IconImage2,Sd as IconImageCheck,wd as IconImageOff,Md as IconImport,kd as IconInbox,Nd as IconInfoCircle,Td as IconInfoHexagon,Dd as IconItalic,Fd as IconLayersMultiple,Ad as IconLayersSingle,Od as IconLayout,_d as IconLayout2,Ud as IconLayoutColumns,Hd as IconLayoutCustom,Vd as IconLayoutStuffed,$d as IconLayoutTile,Wd as IconLifeBuoy,Xd as IconLightbulb,Kd as IconLightning,Zd as IconLightningFast,Yd as IconLineChart,Qd as IconLineChartBar,Jd as IconLineChartBreakoutSquare,em as IconLineChartUp,tm as IconLines,om as IconLinesCheck,nm as IconLinesPlay,am as IconLink,lm as IconLink2,cm as IconLinkOff,im as IconListBullet,sm as IconListOrder,dm as IconLock,mm as IconLockFill,fm as IconLogIn,gm as IconLogOut,Im as IconLogOut2,bm as IconMagicWand,ym as IconMail,Cm as IconMailOpen,xm as IconMapPin,Pm as IconMaximize,Sm as IconMaximize2,wm as IconMessageCircle,km as IconMessageSquare,Bm as IconMessageSquare2,Nm as IconMessageXSquare,_r as IconMicrophone,Rm as IconMinimize,Tm as IconMinimize2,Lm as IconMinusCircle,Em as IconMobile,Fm as IconMonitor,Am as IconMonitor2,Om as IconMoon,zm as IconMoonCircle,at as IconMovie,ut as IconName,_m as IconNavigationPointer,Um as IconNotificationBox,Xm as IconPCSetup,Hm as IconPackage,Gm as IconPalette,Vm as IconPasscodeLock,Ro as IconPause,Wm as IconPauseCircle,Zm as IconPen,Ym as IconPercentageCircle,Qm as IconPerspective,jm as IconPhoneCall,Vr as IconPin,To as IconPlay,tu as IconPlayCircle,$r as IconPlus,ro as IconPlusCircle,ru as IconPrinter,au as IconPulse,Wr as IconQuestionCircle,cu as IconQuote,iu as IconRadioButton,su as IconRadioButtonFill,pu as IconReceipt,du as IconReceiptCheck,mu as IconRedo,uu as IconRefresh,fu as IconRefresh2,hu as IconRefresh3,gu as IconRepeat,vu as IconReplace,Iu as IconReplay,yu as IconRestore,xu as IconRocket,Pu as IconRoundChart,Su as IconRoundChart2,Mu as IconRoute,Bu as IconSave,Nu as IconScanDots,qr as IconScissors,Ft as IconSearch,Ru as IconSend,Tu as IconServer,Lu as IconSettings,Du as IconSettings2,Eu as IconShare,Fu as IconShieldLightning,Ou as IconShieldPlus,_u as IconShieldRemove,Uu as IconShoppingBag,Hu as IconShoppingCart,Gu as IconShrink,Vu as IconShuffle,$u as IconSkipForward,Wu as IconSlashCircle,qu as IconSlashOctagon,Xu as IconSocialAndroid,Ku as IconSocialApple,Zu as IconSocialGithub,Yu as IconSocialGlobe,Qu as IconSocialGoogle,ju as IconSocialInstagram,ef as IconSocialLinkedin,of as IconSocialMastercard,nf as IconSocialReact,rf as IconSocialVisa,af as IconSocialX,lf as IconSpeedometer,cf as IconStairs,Qr as IconStar,sf as IconStarFill,pf as IconStarHalf,df as IconStars,Jr as IconStop,mf as IconStrikethrough,uf as IconSun,ff as IconSwap,hf as IconSwitchHorizontal,vf as IconTable,jr as IconTag,If as IconTarget,yf as IconTarget2,xf as IconTextFormat,Pf as IconTextFormat2,Sf as IconTextHighlight,wf as IconThumbsDown,Mf as IconThumbsUp,kf as IconThumbsUpFill,Bf as IconToggle,Nf as IconTranslate,Ze as IconTrash,Rf as IconTrending,Tf as IconUnderline,Lf as IconUndo,Ef as IconUnlock,Eo as IconUploadCloud,ta as IconUser,Of as IconUserCheck,zf as IconUserDollar,Uf as IconUserEdit,Hf as IconUserPlus,Gf as IconUserRight,Wf as IconUserSquare,Li as IconUserVoice,Vf as IconUsers,qf as IconUsersUp,Xf as IconVideo,Zf as IconVideoChat,Qf as IconVolume,Jf as IconVolumeDown,jf as IconVolumeMute,eh as IconWrench,Ae as IconX,th as IconXCircle,oh as IconXCircleFill,nh as IconXSquare,rh as IconZoomIn,lh as IconZoomOut,oe as InfoLabels,ue as Input,re as Label,le as Loader,zM as Lookup,VM as Markdown,Gn as Menu,JM as Modal,$n as NOTIFICATION_GENERAL_CATEGORY,Xk as Pagination,v0 as PaginationGoToPage,I0 as PaginationPageSize,Te as PillBadge,C0 as Popover,Hn as ProgressBar,Nb as ProgressCircle,i6 as RadioBoxGroup,g6 as RadioButtonGroup,C6 as Rating,T6 as Select,Kb as Sidebar,Fa as SidebarItem,X6 as Skeleton,M0 as SkeletonAvatar,B0 as SkeletonBadge,N0 as SkeletonBanner,T0 as SkeletonButton,Aa as SkeletonCard,ci as SkeletonCard2,L0 as SkeletonCard3,E0 as SkeletonCardStack,F0 as SkeletonChart,A0 as SkeletonContentCard,O0 as SkeletonDataGrid,z0 as SkeletonForm,U0 as SkeletonGlowingCard,H0 as SkeletonImage,G0 as SkeletonInfoCard,W0 as SkeletonInput,q0 as SkeletonList,Z0 as SkeletonParagraph,Y0 as SkeletonText,Q0 as SkeletonVideo,ui as SkeletonWidgetCard,CB as SkeletonWrapper,SB as Slider,BB as SliderRange,Fh as StackedProgressTracker,Rh as StackedProgressTrackerRow,Th as StackedProgressTrackerStatusFilter,TB as StarRating,fy as Stepper,Jh as Switch,Sa as TRACKER_STATUS_FILTER_ORDER,Yh as Tabs,AB as TagFilter,dh as TextArea,ye as Tooltip,xa as TrackerItemStatus,Pa as TrackerStatusFilter,jI as createNotificationStore,ch as getFileIcon,l0 as groupLayout,c0 as listLayout,Jo as notification,ae as notificationStore,wh as parseRgbaString,eb as showNotification,i0 as stackLayout,rk as useNotifications};
1
+ import{cn as To,useAnimateNumber as OC}from"@cleen/ui-core";import{forwardRef as _C,useMemo as W1}from"react";import{cn as gl,usePositionClose as LC,ZIndex as EC}from"@cleen/ui-core";import{useEffect as z1,useRef as es,useState as V1}from"react";import{createPortal as DC}from"react-dom";import{jsx as ts,jsxs as H1}from"react/jsx-runtime";var ve=({bg:e,label:t,color:n,closeOnClick:o=!0,hideOnMouseDown:l=!0,isOpen:a,children:c,hasArrow:i,placement:d="top",offset:s=8,className:p,classNames:g,isDisabled:m,openDelay:b=0,invertColors:v=!1,extraUpdateTriggers:h,allowNonDescendantHover:y=!0,zIndex:C=EC.TOOLTIP,style:x,styles:I,onClick:P,onMouseEnter:w,onMouseLeave:R,...B})=>{let[S,E]=V1(a??!1),[N,M]=V1(!1),T=es(null),F=es(null),L=es(null),{positionStyles:k,isMounted:z,optimalPosition:D}=LC({triggerRef:F,targetRef:T,position:d,isOpen:S&&!m,offset:s,extraUpdateTriggers:h});z1(()=>{E(a??!1)},[a]);let A=V=>{P?.(V),o&&E(!1)},O=(V,G)=>{if(a!==void 0)return;let W=F.current?.contains(V.target);!y&&!W||(G?(w?.(V),b&&b>0?L.current=setTimeout(()=>{E(!0)},b):E(!0)):(L.current&&(clearTimeout(L.current),L.current=null),E(!1),R?.(V)))};return z1(()=>{let V=()=>{l&&M(!0)},G=()=>{M(!1)};return document.addEventListener("mousedown",V),document.addEventListener("mouseup",G),()=>{document.removeEventListener("mousedown",V),document.removeEventListener("mouseup",G)}},[]),H1("div",{className:gl("cleen",p),style:x,children:[ts("div",{ref:F,className:gl("cleen-relative cleen-max-w-fit",g?.container),style:I?.container,onClick:A,onMouseEnter:V=>O(V,!0),onMouseLeave:V=>O(V,!1),...B,children:c}),t!==void 0&&S&&!m&&!N&&DC(ts("div",{className:"cleen",children:H1("div",{ref:T,className:gl("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",v?"cleen-bg-primary after:cleen-border-primary cleen-text-primary-foreground":"cleen-bg-surface after:cleen-border-surface cleen-text-primary",{"cleen-opacity-0":!z,"cleen-opacity-100":z},g?.labelContainer),style:{zIndex:C,top:`${k.top}px`,left:`${k.left}px`,...e&&{backgroundColor:e},...n&&{color:n},...I?.labelContainer},children:[t,ts("div",{className:gl(i?["cleen-absolute cleen-border-[6px] cleen-border-surface",{"cleen-border-b-transparent cleen-border-x-transparent cleen-top-full cleen-drop-shadow-[0_1px_0.5px_rgba(var(--cleen-black),0.1)]":D==="top"||D==="top-left"||D==="top-right","cleen-left-[calc(50%-6px)]":D==="top"||D==="bottom","cleen-left-[6px]":D==="top-left"||D==="bottom-left","cleen-right-[6px]":D==="top-right"||D==="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)]":D==="bottom"||D==="bottom-left"||D==="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)]":D==="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)]":D==="right"}]:"cleen-hidden"),style:{}})]})}),document.body)]})};import{cn as xr}from"@cleen/ui-core";var Rt=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),Lt=(e,t,n)=>{let o=Number.isFinite(t)?t:0,l=Number.isFinite(n)?n:100;return l===o?0:(e-o)/(l-o)*100};import{cn as vl}from"@cleen/ui-core";import{jsx as os}from"react/jsx-runtime";var bl=({serie:e,minValue:t,maxValue:n,color:o,trackHeight:l,className:a,style:c})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,d=Number.isFinite(i)?i:t,s=Rt(Lt(d,t,n)),p=Math.max(2,e?.height??l*1.5),g={left:`${s}%`,top:"50%"};return e.tooltip?os(ve,{invertColors:!0,...e.tooltip,className:vl("cleen-absolute cleen-z-10 -cleen-translate-x-1/2 -cleen-translate-y-1/2",e.tooltip.className),style:{...g,...e.tooltip.style},classNames:{...e.tooltip.classNames,labelContainer:vl("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:os("div",{className:vl("cleen-rounded-full",a),style:{width:p,height:p,backgroundColor:o,...c}})}):os("div",{className:vl("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",a),style:{width:p,height:p,backgroundColor:o,...g,...c}})};import{jsx as yl}from"react/jsx-runtime";var U1=({serie:e,minValue:t,maxValue:n,animatedGlobal:o=t,renderAnimated:l,color:a,trackHeight:c,trackRadius:i,className:d,style:s})=>{if(e.type!=="bar")return null;let p=typeof e.start=="number"?e.start:t,g=typeof e.end=="number"?e.end:n,m=Rt(Lt(p,t,n)),b=Rt(Lt(g,t,n));b<m&&([m,b]=[b,m]);let v=Math.max(0,l?o-m:b-m);if(v<1&&!l||l&&o>=b&&v===0)return yl(bl,{serie:{...e,type:"clamp",value:m},color:a,trackHeight:c,minValue:t,maxValue:n,className:d,style:s});let h={left:`${m}%`,top:e?.height?(c-e.height)/2:0,width:`${v}%`,height:e?.height??"100%"},y={width:"100%",height:"100%"},C={background:a,borderRadius:e?.radius??i??(e?.height??c)/2};return e.tooltip?yl(ve,{invertColors:!0,...e.tooltip,className:xr("cleen-absolute",e.tooltip.className),style:{...h,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:xr("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:xr("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:yl("div",{className:xr("cleen-relative cleen-size-full",d),style:{...C,...y,...s}})}):yl("div",{className:xr("cleen-absolute cleen-pointer-events-none",d),style:{...C,...h,...s}})};import{cn as FC}from"@cleen/ui-core";import{jsx as AC}from"react/jsx-runtime";var G1=({serie:e,minValue:t,maxValue:n,className:o,style:l})=>{let a=0;if(e.type==="clamp"){let c=typeof e.value=="number"?e.value:0,i=Number.isFinite(c)?c:t;a=Rt(Lt(i,t,n))}else{let c=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:n,d=Rt(Lt(c,t,n)),s=Rt(Lt(i,t,n));a=(d+s)/2}return AC("div",{className:FC("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",o),style:{left:`${a}%`,...l},children:e.label})};var $1={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as In,jsxs as q1}from"react/jsx-runtime";var zC=_C(function({series:t=[],track:n,renderAnimated:o,renderAnimatedDuration:l=1e3,className:a,classNames:c,style:i,styles:d,minValue:s=0,maxValue:p=100,...g},m){let b=W1(()=>({...$1,...n}),[n]),v=W1(()=>t.reduce((x,I)=>{if(I.type==="bar"){let P=typeof I.end=="number"?I.end:p,w=Math.max(s,Math.min(P,p));if(w>x)return w}return x},0),[t,s,p]),h=OC({targetNumber:v,defaultNumber:s,duration:l,disabled:!o}),{bars:y,clamps:C}=t.reduce((x,I,P)=>{if(I==null||!I.type)return x;let w=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":x.clamps.push(In(bl,{serie:I,color:w,trackHeight:b.height,minValue:s,maxValue:p,className:To(c?.clamp,I.className),style:{...d?.clamp,...I.style}},`clamp-${P}`));break;case"bar":x.bars.push(In(U1,{serie:I,color:w,trackHeight:b.height,trackRadius:b.radius,minValue:s,maxValue:p,renderAnimated:o,animatedGlobal:h,className:To(c?.bar,I.className),style:{...d?.bar,...I.style}},`bar-${P}`));break;default:break}return x},{clamps:[],bars:[]});return In("div",{className:To("cleen",a),style:i,ref:m,...g,children:q1("div",{className:To("cleen-relative cleen-w-full",c?.container),style:d?.container,children:[q1("div",{className:To("cleen-relative cleen-size-full",c?.trackWrapper),style:d?.trackWrapper,children:[In("div",{className:To("cleen-relative cleen-w-full",c?.track),style:{height:b.height,backgroundColor:b.color,borderRadius:b.radius??b.height/2,...d?.track},children:y}),C]}),t.some(x=>!!x.label)&&In("div",{"aria-hidden":!0,className:To("cleen-relative cleen-mt-2 cleen-h-5",c?.labels),style:d?.labels,children:t.map((x,I)=>!x||!x.type||!x.label?null:In(G1,{serie:x,minValue:s,maxValue:p,className:c?.label,style:d?.label},`label-${I}`))})]})})});import{cn as ns}from"@cleen/ui-core";import{jsx as rs}from"react/jsx-runtime";var VC={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"},HC={slow:1.3,normal:.65,fast:.4},le=({isFullscreen:e,size:t="xs",stroke:n,speed:o="normal",className:l,classNames:a,style:c,styles:i,color:d,...s})=>rs("div",{className:ns("cleen",l),style:c,children:rs("div",{className:ns("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:i?.container,...s,children:rs("span",{className:ns("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 t=="string"&&VC[t],a?.loader),style:{...d&&{borderInlineColor:d,borderTopColor:d},...typeof t=="number"&&{width:t,height:t},...typeof n=="number"&&{borderWidth:n},animationDuration:`${typeof o=="number"?o:HC[o]}s`,...i?.loader}})})});import{cn as as,useWidthDynamicResize as UC}from"@cleen/ui-core";import{forwardRef as GC,useImperativeHandle as $C,useRef as WC}from"react";var X1={primary:"cleen-text-primary-foreground cleen-shadow-sm cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]",secondary:"cleen-border cleen-border-border cleen-text-foreground hover:cleen-bg-surface hover:cleen-border-muted-foreground disabled:cleen-bg-surface disabled:cleen-text-muted-foreground","secondary-blue":"cleen-border cleen-border-blue cleen-text-blue hover:cleen-bg-blue hover:cleen-text-white disabled:cleen-bg-blue disabled:cleen-text-white","secondary-success":"cleen-border cleen-border-success cleen-text-success hover:cleen-bg-success hover:cleen-text-white disabled:cleen-bg-success disabled:cleen-text-white","secondary-error":"cleen-border cleen-border-error cleen-text-error hover:cleen-bg-error hover:cleen-text-white disabled:cleen-bg-error disabled:cleen-text-white",borderless:"cleen-text-foreground hover:cleen-bg-primary-100 hover:cleen-translate-y-0","borderless-blue":"cleen-text-blue-800 hover:cleen-bg-blue-dark-100 hover:cleen-translate-y-0","borderless-success":"cleen-text-success hover:cleen-bg-success-bg hover:cleen-translate-y-0","borderless-error":"cleen-text-error hover:cleen-bg-error-bg hover:cleen-translate-y-0",error:"cleen-text-white cleen-shadow-sm cleen-bg-error hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-error)),black_12%)]",success:"cleen-text-white cleen-shadow-sm cleen-bg-success hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-success)),black_12%)]",warning:"cleen-text-white cleen-shadow-sm cleen-bg-warning hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-warning)),black_12%)]",black:"cleen-text-white cleen-shadow-sm cleen-bg-black hover:cleen-bg-gray-modern-800",purple:"cleen-text-white cleen-shadow-sm cleen-bg-purple hover:cleen-bg-purple-800",indigo:"cleen-text-white cleen-shadow-sm cleen-bg-indigo hover:cleen-bg-indigo-800",yellow:"cleen-text-black cleen-shadow-sm cleen-bg-yellow hover:cleen-bg-yellow-500"},K1={primary:"rgb(var(--cleen-primary-foreground))",borderless:"rgb(var(--cleen-foreground))","borderless-blue":"rgb(var(--cleen-blue))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))",secondary:"rgb(var(--cleen-foreground))","secondary-blue":"rgb(var(--cleen-blue))","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-black))"};import{jsx as Y1,jsxs as qC}from"react/jsx-runtime";var te=GC(function({type:t="button",label:n,onClick:o,className:l,classNames:a,style:c,styles:i,disabled:d=!1,leftIcon:s,rightIcon:p,loaderColor:g,isLoading:m=!1,variant:b="primary",fullWidth:v=!1,children:h,...y},C){let x=WC(null);return $C(C,()=>x.current),UC({ref:x,skip:v},[m,s,p,v]),Y1("div",{className:as("cleen",l),style:c,children:qC("button",{type:t,ref:x,className:as("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-px-4 cleen-py-2 cleen-rounded-lg focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2 cleen-font-semibold cleen-text-sm cleen-text-nowrap cleen-leading-6 cleen-transition-all hover:-cleen-translate-y-[1px] cleen-duration-200 cleen-ease-in-out",X1[b],{"cleen-w-full cleen-flex-1":v,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":d||m},a?.container),style:i?.container,disabled:m||d,onClick:o,...y,children:[m&&Y1(le,{size:"xs",color:g||K1[b],className:as("cleen-mr-1.5 cleen-w-fit",a?.loaderContainer),style:i?.loaderContainer,classNames:{loader:a?.loader},styles:{loader:i?.loader}}),s||null,n||h,p||null]})})});var Z1={primary:"cleen-text-primary-foreground cleen-shadow-sm cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]",secondary:"cleen-border-border cleen-text-foreground hover:cleen-bg-surface hover:cleen-border-muted-foreground group-aria-disabled:cleen-bg-surface group-aria-disabled:cleen-text-muted-foreground","secondary-blue":"cleen-border-blue cleen-text-blue hover:cleen-bg-blue hover:cleen-text-white group-aria-disabled:cleen-bg-blue group-aria-disabled:cleen-text-white","secondary-success":"cleen-border-success cleen-text-success hover:cleen-bg-success hover:cleen-text-white group-aria-disabled:cleen-bg-success group-aria-disabled:cleen-text-white","secondary-error":"cleen-border-error cleen-text-error hover:cleen-bg-error hover:cleen-text-white group-aria-disabled:cleen-bg-error group-aria-disabled:cleen-text-white",borderless:"cleen-border-0 cleen-text-foreground hover:cleen-bg-primary-100","borderless-blue":"cleen-border-0 cleen-text-blue-800 hover:cleen-bg-blue-dark-100","borderless-success":"cleen-border-0 cleen-text-success hover:cleen-bg-success-bg","borderless-error":"cleen-border-0 cleen-text-error hover:cleen-bg-error-bg",error:"cleen-text-white cleen-shadow-sm cleen-bg-error hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-error)),black_12%)]",success:"cleen-text-white cleen-shadow-sm cleen-bg-success hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-success)),black_12%)]",warning:"cleen-text-white cleen-shadow-sm cleen-bg-warning hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-warning)),black_12%)]",black:"cleen-text-white cleen-shadow-sm cleen-bg-black hover:cleen-bg-gray-modern-800",purple:"cleen-text-white cleen-shadow-sm cleen-bg-purple hover:cleen-bg-purple-800",indigo:"cleen-text-white cleen-shadow-sm cleen-bg-indigo hover:cleen-bg-indigo-800",yellow:"cleen-text-black cleen-shadow-sm cleen-bg-yellow hover:cleen-bg-yellow-500"},Q1={primary:"rgb(var(--cleen-primary-foreground))",borderless:"rgb(var(--cleen-foreground))","borderless-blue":"rgb(var(--cleen-blue))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))",secondary:"rgb(var(--cleen-foreground))","secondary-blue":"rgb(var(--cleen-blue))","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-black))"};import{cn as oo,ColorHelpers as rx}from"@cleen/ui-core";function Cn(e,t,n){return Math.min(Math.max(e,n),t)}var ls=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},Pr=ls;function XC(e){if(typeof e!="string")throw new Pr(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=tx.test(e)?ZC(e):e;let n=QC.exec(t);if(n){let c=Array.from(n).slice(1);return[...c.slice(0,3).map(i=>parseInt(Sr(i,2),16)),parseInt(Sr(c[3]||"f",2),16)/255]}let o=JC.exec(t);if(o){let c=Array.from(o).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,16)),parseInt(c[3]||"ff",16)/255]}let l=jC.exec(t);if(l){let c=Array.from(l).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,10)),parseFloat(c[3]||"1")]}let a=ex.exec(t);if(a){let[c,i,d,s]=Array.from(a).slice(1).map(parseFloat);if(Cn(0,100,i)!==i)throw new Pr(e);if(Cn(0,100,d)!==d)throw new Pr(e);return[...ox(c,i,d),Number.isNaN(s)?1:s]}throw new Pr(e)}function KC(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}var J1=e=>parseInt(e.replace(/_/g,""),36),YC="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,t)=>{let n=J1(t.substring(0,3)),o=J1(t.substring(3)).toString(16),l="";for(let a=0;a<6-o.length;a++)l+="0";return e[n]=`${l}${o}`,e},{});function ZC(e){let t=e.toLowerCase().trim(),n=YC[KC(t)];if(!n)throw new Pr(e);return`#${n}`}var Sr=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),QC=new RegExp(`^#${Sr("([a-f0-9])",3)}([a-f0-9])?$`,"i"),JC=new RegExp(`^#${Sr("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),jC=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Sr(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,tx=/^[a-z]+$/i,j1=e=>Math.round(e*255),ox=(e,t,n)=>{let o=n/100;if(t===0)return[o,o,o].map(j1);let l=(e%360+360)%360/60,a=(1-Math.abs(2*o-1))*(t/100),c=a*(1-Math.abs(l%2-1)),i=0,d=0,s=0;l>=0&&l<1?(i=a,d=c):l>=1&&l<2?(i=c,d=a):l>=2&&l<3?(d=a,s=c):l>=3&&l<4?(d=c,s=a):l>=4&&l<5?(i=c,s=a):l>=5&&l<6&&(i=a,s=c);let p=o-a/2,g=i+p,m=d+p,b=s+p;return[g,m,b].map(j1)};function nx(e,t,n,o){return`rgba(${Cn(0,255,e).toFixed()}, ${Cn(0,255,t).toFixed()}, ${Cn(0,255,n).toFixed()}, ${parseFloat(Cn(0,1,o).toFixed(3))})`}function wr(e,t){let[n,o,l,a]=XC(e);return nx(n,o,l,a-t)}import{forwardRef as ax,useMemo as lx}from"react";import{jsx as xn,jsxs as eg}from"react/jsx-runtime";var ue=ax(function({header:t,footer:n,color:o,isGlass:l=!1,hoverable:a=!1,p:c,gap:i,radius:d=8,children:s,className:p,classNames:g,style:m,styles:b,...v},h){let{cardColor:y,backgroundColor:C,borderColor:x}=lx(()=>{let I=rx.getComputedColor(o);return I?{cardColor:I,backgroundColor:wr(I,.9),borderColor:wr(I,.8)}:{cardColor:I}},[o]);return xn("div",{className:oo("cleen",p),style:m,ref:h,...v,children:eg("div",{className:oo("cleen-bg-background cleen-pt-6 cleen-border cleen-border-border cleen-flex cleen-flex-col cleen-gap-6 cleen-flex-grow cleen-transition-all cleen-duration-200",a&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",n?.content?"cleen-pb-3":"cleen-pb-6",g?.container),style:{...y&&{backgroundColor:C,borderColor:x,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},...i!==void 0&&{gap:i},borderRadius:d,...b?.container},children:[(t?.content||t?.title)&&eg("div",{className:oo("cleen-px-6",g?.header?.content),style:{...y&&{color:y},...c!==void 0&&{paddingInline:c},...b?.header?.content},children:[t?.title&&xn("div",{className:oo("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",g?.header?.title),style:{...y&&{color:y},...b?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&xn("hr",{className:oo("cleen-text-neutral-200",g?.header?.divider),style:{...y&&{color:x},...b?.header?.divider}}),s&&xn("div",{className:oo("cleen-px-6",g?.childrenContainer),style:{...c!==void 0&&{paddingInline:c},...b?.childrenContainer},children:s}),n?.content&&n?.hasDivider&&xn("hr",{className:oo("cleen-text-neutral-200",g?.footer?.divider),style:{...y&&{color:x},...b?.footer?.divider}}),n?.content&&xn("div",{className:oo("cleen-px-6 -cleen-mt-3 cleen-text-foreground",g?.footer?.content),style:{...y&&{color:y},...c!==void 0&&{paddingInline:c},...b?.footer?.content},children:n.content})]})})});import{jsx as cx}from"react/jsx-runtime";function r({size:e=24,width:t,height:n,strokeWidth:o=1.5,isFilled:l=!1,children:a,...c}){return delete c.color1,delete c.color2,cx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:n??e,viewBox:"0 0 24 24",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:l?0:o,strokeLinecap:"round",strokeLinejoin:"round",...c,children:a})}import{jsx as tg,jsxs as ix}from"react/jsx-runtime";var cs=e=>ix(r,{...e,children:[tg("path",{d:"M9 10.5l2 2l4 -4"}),tg("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as og}from"react/jsx-runtime";var is=e=>og(r,{isFilled:!0,...e,children:og("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 ss,jsxs as sx}from"react/jsx-runtime";var ps=e=>sx(r,{...e,children:[ss("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),ss("path",{d:"M16 19h6"}),ss("path",{d:"M19 16v6"})]});import{jsx as no,jsxs as px}from"react/jsx-runtime";var ds=e=>px(r,{...e,children:[no("path",{d:"M3 21l18 0"}),no("path",{d:"M9 8l1 0"}),no("path",{d:"M9 12l1 0"}),no("path",{d:"M9 16l1 0"}),no("path",{d:"M14 8l1 0"}),no("path",{d:"M14 12l1 0"}),no("path",{d:"M14 16l1 0"}),no("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as ng,jsxs as dx}from"react/jsx-runtime";var ms=e=>dx(r,{...e,children:[ng("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"}),ng("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 Il,jsxs as mx}from"react/jsx-runtime";var us=e=>mx(r,{...e,children:[Il("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Il("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Il("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),Il("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as Mr,jsxs as ux}from"react/jsx-runtime";var fs=e=>ux(r,{viewBox:"0 0 48 48",...e,children:[Mr("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Mr("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Mr("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Mr("path",{d:"M24 18v8"}),Mr("path",{d:"M24 30h.01"})]});import{jsx as Cl,jsxs as fx}from"react/jsx-runtime";var hs=e=>fx(r,{viewBox:"0 0 48 48",...e,children:[Cl("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Cl("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Cl("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Cl("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as gs,jsxs as hx}from"react/jsx-runtime";var Ro=e=>hx(r,{...e,children:[gs("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),gs("path",{d:"M12 8v4"}),gs("path",{d:"M12 16h.01"})]});import{jsx as rg}from"react/jsx-runtime";var vs=e=>rg(r,{isFilled:!0,...e,children:rg("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 bs,jsxs as gx}from"react/jsx-runtime";var ys=e=>gx(r,{...e,children:[bs("path",{d:"M12 9v4"}),bs("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"}),bs("path",{d:"M12 16h.01"})]});import{jsx as kr,jsxs as vx}from"react/jsx-runtime";var Is=e=>vx(r,{...e,children:[kr("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"}),kr("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"}),kr("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"}),kr("path",{d:"M14 7l6 0"}),kr("path",{d:"M17 4l0 6"})]});import{jsx as Cs,jsxs as bx}from"react/jsx-runtime";var xs=e=>bx(r,{...e,children:[Cs("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"}),Cs("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),Cs("path",{d:"M10 12l4 0"})]});import{jsx as xl,jsxs as yx}from"react/jsx-runtime";var Ps=e=>yx(r,{...e,children:[xl("path",{d:"M12 20l0 -10"}),xl("path",{d:"M12 20l4 -4"}),xl("path",{d:"M12 20l-4 -4"}),xl("path",{d:"M4 4l16 0"})]});import{jsx as Pl,jsxs as Ix}from"react/jsx-runtime";var Ss=e=>Ix(r,{...e,children:[Pl("path",{d:"M4 12l10 0"}),Pl("path",{d:"M4 12l4 4"}),Pl("path",{d:"M4 12l4 -4"}),Pl("path",{d:"M20 4l0 16"})]});import{jsx as Sl,jsxs as Cx}from"react/jsx-runtime";var ws=e=>Cx(r,{...e,children:[Sl("path",{d:"M20 12l-10 0"}),Sl("path",{d:"M20 12l-4 4"}),Sl("path",{d:"M20 12l-4 -4"}),Sl("path",{d:"M4 4l0 16"})]});import{jsx as wl,jsxs as xx}from"react/jsx-runtime";var Ms=e=>xx(r,{...e,children:[wl("path",{d:"M4 20l16 0"}),wl("path",{d:"M12 14l0 -10"}),wl("path",{d:"M12 14l4 -4"}),wl("path",{d:"M12 14l-4 -4"})]});import{jsx as Ml,jsxs as Px}from"react/jsx-runtime";var ks=e=>Px(r,{...e,children:[Ml("path",{d:"M10 12l10 0"}),Ml("path",{d:"M10 12l4 4"}),Ml("path",{d:"M10 12l4 -4"}),Ml("path",{d:"M4 4l0 16"})]});import{jsx as kl,jsxs as Sx}from"react/jsx-runtime";var Bs=e=>Sx(r,{...e,children:[kl("path",{d:"M14 12l-10 0"}),kl("path",{d:"M14 12l-4 4"}),kl("path",{d:"M14 12l-4 -4"}),kl("path",{d:"M20 4l0 16"})]});import{jsx as Bl,jsxs as wx}from"react/jsx-runtime";var Ns=e=>wx(r,{...e,children:[Bl("path",{d:"M12 10l0 10"}),Bl("path",{d:"M12 10l4 4"}),Bl("path",{d:"M12 10l-4 4"}),Bl("path",{d:"M4 4l16 0"})]});import{jsx as Nl,jsxs as Mx}from"react/jsx-runtime";var Ts=e=>Mx(r,{...e,children:[Nl("path",{d:"M12 4l0 10"}),Nl("path",{d:"M12 4l4 4"}),Nl("path",{d:"M12 4l-4 4"}),Nl("path",{d:"M4 20l16 0"})]});import{jsx as Rs,jsxs as kx}from"react/jsx-runtime";var Ls=e=>kx(r,{...e,children:[Rs("path",{d:"M12 5l0 14"}),Rs("path",{d:"M18 13l-6 6"}),Rs("path",{d:"M6 13l6 6"})]});import{jsx as ag,jsxs as Bx}from"react/jsx-runtime";var Es=e=>Bx(r,{...e,children:[ag("path",{d:"M17 7l-10 10"}),ag("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as Ds,jsxs as Nx}from"react/jsx-runtime";var Fs=e=>Nx(r,{...e,children:[Ds("path",{d:"M12 5l0 14"}),Ds("path",{d:"M16 15l-4 4"}),Ds("path",{d:"M8 15l4 4"})]});import{jsx as lg,jsxs as Tx}from"react/jsx-runtime";var As=e=>Tx(r,{...e,children:[lg("path",{d:"M7 7l10 10"}),lg("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as Os,jsxs as Rx}from"react/jsx-runtime";var _s=e=>Rx(r,{...e,children:[Os("path",{d:"M5 12l14 0"}),Os("path",{d:"M5 12l6 6"}),Os("path",{d:"M5 12l6 -6"})]});import{jsx as zs,jsxs as Lx}from"react/jsx-runtime";var Vs=e=>Lx(r,{...e,children:[zs("path",{d:"M5 12l14 0"}),zs("path",{d:"M5 12l4 4"}),zs("path",{d:"M5 12l4 -4"})]});import{jsx as Hs,jsxs as Ex}from"react/jsx-runtime";var Us=e=>Ex(r,{...e,children:[Hs("path",{d:"M5 12l14 0"}),Hs("path",{d:"M13 18l6 -6"}),Hs("path",{d:"M13 6l6 6"})]});import{jsx as Gs,jsxs as Dx}from"react/jsx-runtime";var $s=e=>Dx(r,{...e,children:[Gs("path",{d:"M5 12l14 0"}),Gs("path",{d:"M15 16l4 -4"}),Gs("path",{d:"M15 8l4 4"})]});import{jsx as Ws,jsxs as Fx}from"react/jsx-runtime";var qs=e=>Fx(r,{...e,children:[Ws("path",{d:"M12 5l0 14"}),Ws("path",{d:"M18 11l-6 -6"}),Ws("path",{d:"M6 11l6 -6"})]});import{jsx as cg,jsxs as Ax}from"react/jsx-runtime";var Xs=e=>Ax(r,{...e,children:[cg("path",{d:"M7 7l10 10"}),cg("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as Ks,jsxs as Ox}from"react/jsx-runtime";var Ys=e=>Ox(r,{...e,children:[Ks("path",{d:"M12 5l0 14"}),Ks("path",{d:"M16 9l-4 -4"}),Ks("path",{d:"M8 9l4 -4"})]});import{jsx as ig,jsxs as _x}from"react/jsx-runtime";var Zs=e=>_x(r,{...e,children:[ig("path",{d:"M17 7l-10 10"}),ig("path",{d:"M8 7l9 0l0 9"})]});import{jsx as sg}from"react/jsx-runtime";var Qs=e=>sg(r,{...e,children:sg("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 Tl,jsxs as zx}from"react/jsx-runtime";var Js=e=>zx(r,{...e,children:[Tl("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"}),Tl("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"}),Tl("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"}),Tl("path",{d:"M4 20h14"})]});import{jsx as Br,jsxs as Vx}from"react/jsx-runtime";var js=e=>Vx(r,{...e,children:[Br("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"}),Br("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"}),Br("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"}),Br("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"}),Br("path",{d:"M7 18.5h10"})]});import{jsx as pg,jsxs as Hx}from"react/jsx-runtime";var ep=e=>Hx(r,{...e,children:[pg("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"}),pg("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as dg,jsxs as Ux}from"react/jsx-runtime";var tp=e=>Ux(r,{...e,children:[dg("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),dg("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as mg}from"react/jsx-runtime";var op=e=>mg(r,{...e,children:mg("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as ug}from"react/jsx-runtime";var np=e=>ug(r,{isFilled:!0,...e,children:ug("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 fg,jsxs as Gx}from"react/jsx-runtime";var rp=e=>Gx(r,{...e,children:[fg("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),fg("path",{d:"M16 19h6"})]});import{jsx as ap,jsxs as $x}from"react/jsx-runtime";var lp=e=>$x(r,{...e,children:[ap("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),ap("path",{d:"M20.5 21.5l-5 -5"}),ap("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as Nr,jsxs as Wx}from"react/jsx-runtime";var cp=e=>Wx(r,{...e,children:[Nr("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Nr("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Nr("path",{d:"M3 6l0 13"}),Nr("path",{d:"M12 6l0 13"}),Nr("path",{d:"M21 6l0 13"})]});import{jsx as Rl,jsxs as qx}from"react/jsx-runtime";var ip=e=>qx(r,{...e,children:[Rl("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"}),Rl("path",{d:"M9 13h-2"}),Rl("path",{d:"M13 10h-6"}),Rl("path",{d:"M11 7h-4"})]});import{jsx as sp,jsxs as Xx}from"react/jsx-runtime";var pp=e=>Xx(r,{...e,children:[sp("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"}),sp("path",{d:"M10 8h4"}),sp("path",{d:"M12 8v8"})]});import{jsx as dp,jsxs as Kx}from"react/jsx-runtime";var mp=e=>Kx(r,{...e,children:[dp("path",{d:"M9 12l2 2l4 -4"}),dp("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),dp("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Tr,jsxs as Yx}from"react/jsx-runtime";var up=e=>Yx(r,{...e,children:[Tr("path",{d:"M15 12h.01"}),Tr("path",{d:"M12 12h.01"}),Tr("path",{d:"M9 12h.01"}),Tr("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Tr("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Et,jsxs as Zx}from"react/jsx-runtime";var fp=e=>Zx(r,{...e,children:[Et("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"}),Et("path",{d:"M4 8h16"}),Et("path",{d:"M20 12h-16"}),Et("path",{d:"M4 16h16"}),Et("path",{d:"M9 4v4"}),Et("path",{d:"M14 8v4"}),Et("path",{d:"M8 12v4"}),Et("path",{d:"M16 12v4"}),Et("path",{d:"M11 16v4"})]});import{jsx as Ll,jsxs as Qx}from"react/jsx-runtime";var hp=e=>Qx(r,{...e,children:[Ll("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"}),Ll("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),Ll("path",{d:"M12 12l0 .01"}),Ll("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as ro,jsxs as Jx}from"react/jsx-runtime";var gp=e=>Jx(r,{...e,children:[ro("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"}),ro("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"}),ro("path",{d:"M8 14l0 .01"}),ro("path",{d:"M12 14l0 .01"}),ro("path",{d:"M16 14l0 .01"}),ro("path",{d:"M8 17l0 .01"}),ro("path",{d:"M12 17l0 .01"}),ro("path",{d:"M16 17l0 .01"})]});import{jsx as Pn,jsxs as jx}from"react/jsx-runtime";var Rr=e=>jx(r,{...e,children:[Pn("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"}),Pn("path",{d:"M16 3v4"}),Pn("path",{d:"M8 3v4"}),Pn("path",{d:"M4 11h16"}),Pn("path",{d:"M11 15h1"}),Pn("path",{d:"M12 15v3"})]});import{jsx as Sn,jsxs as eP}from"react/jsx-runtime";var vp=e=>eP(r,{...e,children:[Sn("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Sn("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),Sn("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"}),Sn("path",{d:"M6 9l12 0"}),Sn("path",{d:"M6 12l3 0"}),Sn("path",{d:"M6 15l2 0"})]});import{jsx as hg}from"react/jsx-runtime";var Dt=e=>hg(r,{...e,children:hg("path",{d:"M5 12l5 5l10 -10"})});import{jsx as gg,jsxs as tP}from"react/jsx-runtime";var Lo=e=>tP(r,{...e,children:[gg("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),gg("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as vg,jsxs as oP}from"react/jsx-runtime";var bp=e=>oP(r,{...e,children:[vg("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),vg("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as bg}from"react/jsx-runtime";var yp=e=>bg(r,{isFilled:!0,...e,children:bg("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 yg,jsxs as nP}from"react/jsx-runtime";var Ip=e=>nP(r,{...e,children:[yg("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"}),yg("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as Ig}from"react/jsx-runtime";var Cp=e=>Ig(r,{isFilled:!0,...e,children:Ig("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 Cg}from"react/jsx-runtime";var Lr=e=>Cg(r,{...e,children:Cg("path",{d:"M6 9l6 6l6 -6"})});import{jsx as xg,jsxs as rP}from"react/jsx-runtime";var xp=e=>rP(r,{...e,children:[xg("path",{d:"M7 7l5 5l5 -5"}),xg("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as Pg}from"react/jsx-runtime";var Pp=e=>Pg(r,{...e,children:Pg("path",{d:"M8 8v8h8"})});import{jsx as Sg,jsxs as aP}from"react/jsx-runtime";var Sp=e=>aP(r,{...e,children:[Sg("path",{d:"M11 5v8h8"}),Sg("path",{d:"M7 9v8h8"})]});import{jsx as wg}from"react/jsx-runtime";var wp=e=>wg(r,{...e,children:wg("path",{d:"M16 8v8h-8"})});import{jsx as Mg,jsxs as lP}from"react/jsx-runtime";var Mp=e=>lP(r,{...e,children:[Mg("path",{d:"M13 5v8h-8"}),Mg("path",{d:"M17 9v8h-8"})]});import{jsx as kg}from"react/jsx-runtime";var Ft=e=>kg(r,{...e,children:kg("path",{d:"M15 6l-6 6l6 6"})});import{jsx as Bg,jsxs as cP}from"react/jsx-runtime";var kp=e=>cP(r,{...e,children:[Bg("path",{d:"M11 7l-5 5l5 5"}),Bg("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as Ng}from"react/jsx-runtime";var dt=e=>Ng(r,{...e,children:Ng("path",{d:"M9 6l6 6l-6 6"})});import{jsx as Tg,jsxs as iP}from"react/jsx-runtime";var Er=e=>iP(r,{...e,children:[Tg("path",{d:"M7 7l5 5l-5 5"}),Tg("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as Rg,jsxs as sP}from"react/jsx-runtime";var Bp=e=>sP(r,{...e,children:[Rg("path",{d:"M8 9l4 -4l4 4"}),Rg("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as Lg}from"react/jsx-runtime";var At=e=>Lg(r,{...e,children:Lg("path",{d:"M6 15l6 -6l6 6"})});import{jsx as Eg,jsxs as pP}from"react/jsx-runtime";var Np=e=>pP(r,{...e,children:[Eg("path",{d:"M7 11l5 -5l5 5"}),Eg("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as Dg}from"react/jsx-runtime";var Tp=e=>Dg(r,{...e,children:Dg("path",{d:"M8 16v-8h8"})});import{jsx as Fg,jsxs as dP}from"react/jsx-runtime";var Rp=e=>dP(r,{...e,children:[Fg("path",{d:"M7 15v-8h8"}),Fg("path",{d:"M11 19v-8h8"})]});import{jsx as Ag}from"react/jsx-runtime";var Lp=e=>Ag(r,{...e,children:Ag("path",{d:"M8 8h8v8"})});import{jsx as Og,jsxs as mP}from"react/jsx-runtime";var Ep=e=>mP(r,{...e,children:[Og("path",{d:"M9 7h8v8"}),Og("path",{d:"M5 11h8v8"})]});import{jsx as wn,jsxs as uP}from"react/jsx-runtime";var Dp=e=>uP(r,{...e,children:[wn("path",{d:"M3 12l3 0"}),wn("path",{d:"M12 3l0 3"}),wn("path",{d:"M7.8 7.8l-2.2 -2.2"}),wn("path",{d:"M16.2 7.8l2.2 -2.2"}),wn("path",{d:"M7.8 16.2l-2.2 2.2"}),wn("path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9"})]});import{jsx as _g,jsxs as fP}from"react/jsx-runtime";var Fp=e=>fP(r,{...e,children:[_g("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),_g("path",{d:"M12 7v5l3 3"})]});import{jsx as El,jsxs as hP}from"react/jsx-runtime";var Ap=e=>hP(r,{...e,children:[El("path",{d:"M12 7v5l2 2"}),El("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),El("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),El("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as Op,jsxs as gP}from"react/jsx-runtime";var _p=e=>gP(r,{...e,children:[Op("path",{d:"M12 7v5l2 2"}),Op("path",{d:"M17 22l5 -3l-5 -3z"}),Op("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as zg,jsxs as vP}from"react/jsx-runtime";var zp=e=>vP(r,{...e,children:[zg("path",{d:"M12 8l0 4l2 2"}),zg("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as Dr,jsxs as bP}from"react/jsx-runtime";var Vp=e=>bP(r,{...e,children:[Dr("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Dr("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"}),Dr("path",{d:"M11 14h6"}),Dr("path",{d:"M14 11v6"}),Dr("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 Hp,jsxs as yP}from"react/jsx-runtime";var Up=e=>yP(r,{...e,children:[Hp("path",{d:"M7 8l-4 4l4 4"}),Hp("path",{d:"M17 8l4 4l-4 4"}),Hp("path",{d:"M14 4l-4 16"})]});import{jsx as Mn,jsxs as IP}from"react/jsx-runtime";var Gp=e=>IP(r,{...e,children:[Mn("path",{d:"M4 8h16"}),Mn("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"}),Mn("path",{d:"M8 4v4"}),Mn("path",{d:"M9 12l-2 2l2 2"}),Mn("path",{d:"M15 12l2 2l-2 2"}),Mn("path",{d:"M13 11l-2 6"})]});import{jsx as $p,jsxs as CP}from"react/jsx-runtime";var Wp=e=>CP(r,{...e,children:[$p("path",{d:"M10 14l-2 -2l2 -2"}),$p("path",{d:"M14 10l2 2l-2 2"}),$p("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as qp,jsxs as xP}from"react/jsx-runtime";var Xp=e=>xP(r,{...e,children:[qp("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),qp("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),qp("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as Vg,jsxs as PP}from"react/jsx-runtime";var Kp=e=>PP(r,{...e,children:[Vg("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"}),Vg("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 Hg,jsxs as SP}from"react/jsx-runtime";var Yp=e=>SP(r,{...e,children:[Hg("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"}),Hg("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 Zp,jsxs as wP}from"react/jsx-runtime";var Qp=e=>wP(r,{...e,children:[Zp("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"}),Zp("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"}),Zp("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as Dl,jsxs as MP}from"react/jsx-runtime";var Jp=e=>MP(r,{...e,children:[Dl("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"}),Dl("path",{d:"M3 10l18 0"}),Dl("path",{d:"M7 15l.01 0"}),Dl("path",{d:"M11 15l2 0"})]});import{jsx as Fl,jsxs as kP}from"react/jsx-runtime";var jp=e=>kP(r,{...e,children:[Fl("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"}),Fl("path",{d:"M12 22v-10"}),Fl("path",{d:"M12 12l8.73 -5.04"}),Fl("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as je,jsxs as BP}from"react/jsx-runtime";var ed=e=>BP(r,{...e,children:[je("path",{d:"M6 17.6l-2 -1.1v-2.5"}),je("path",{d:"M4 10v-2.5l2 -1.1"}),je("path",{d:"M10 4.1l2 -1.1l2 1.1"}),je("path",{d:"M18 6.4l2 1.1v2.5"}),je("path",{d:"M20 14v2.5l-2 1.12"}),je("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),je("path",{d:"M12 12l2 -1.1"}),je("path",{d:"M18 8.6l2 -1.1"}),je("path",{d:"M12 12l0 2.5"}),je("path",{d:"M12 18.5l0 2.5"}),je("path",{d:"M12 12l-2 -1.12"}),je("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as Ug,jsxs as NP}from"react/jsx-runtime";var Fr=e=>NP(r,{...e,children:[Ug("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"}),Ug("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 Eo,jsxs as TP}from"react/jsx-runtime";var td=e=>TP(r,{...e,children:[Eo("path",{d:"M5 2h5v4h-5z"}),Eo("path",{d:"M15 10h5v4h-5z"}),Eo("path",{d:"M5 18h5v4h-5z"}),Eo("path",{d:"M5 10h5v4h-5z"}),Eo("path",{d:"M10 12h5"}),Eo("path",{d:"M7.5 6v4"}),Eo("path",{d:"M7.5 14v4"})]});import{jsx as et,jsxs as RP}from"react/jsx-runtime";var od=e=>RP(r,{...e,children:[et("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),et("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),et("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),et("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),et("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),et("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),et("path",{d:"M5 17l2 -3"}),et("path",{d:"M9 10l2 -3"}),et("path",{d:"M13 7l2 3"}),et("path",{d:"M17 14l2 3"}),et("path",{d:"M15 14l-2 3"}),et("path",{d:"M9 14l2 3"})]});import{jsx as Ar,jsxs as LP}from"react/jsx-runtime";var nd=e=>LP(r,{...e,children:[Ar("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"}),Ar("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"}),Ar("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"}),Ar("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),Ar("path",{d:"M12 9l0 3"})]});import{jsx as rd,jsxs as EP}from"react/jsx-runtime";var ad=e=>EP(r,{...e,children:[rd("path",{d:"M4 4l16 0"}),rd("path",{d:"M4 20l16 0"}),rd("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 Gg,jsxs as DP}from"react/jsx-runtime";var ld=e=>DP(r,{...e,children:[Gg("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"}),Gg("path",{d:"M12 3v3m0 12v3"})]});import{jsx as cd,jsxs as FP}from"react/jsx-runtime";var id=e=>FP(r,{...e,children:[cd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),cd("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"}),cd("path",{d:"M12 7v10"})]});import{jsx as $g}from"react/jsx-runtime";var sd=e=>$g(r,{...e,children:$g("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as Wg}from"react/jsx-runtime";var pd=e=>Wg(r,{isFilled:!0,...e,children:Wg("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 Ot,jsxs as AP}from"react/jsx-runtime";var dd=e=>AP(r,{...e,children:[Ot("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ot("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ot("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ot("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ot("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ot("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ot("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ot("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ot("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as md,jsxs as OP}from"react/jsx-runtime";var ud=e=>OP(r,{...e,children:[md("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),md("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),md("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as fd,jsxs as _P}from"react/jsx-runtime";var kn=e=>_P(r,{...e,children:[fd("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fd("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fd("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as hd,jsxs as zP}from"react/jsx-runtime";var gd=e=>zP(r,{...e,children:[hd("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),hd("path",{d:"M7 11l5 5l5 -5"}),hd("path",{d:"M12 4l0 12"})]});import{jsx as qg,jsxs as VP}from"react/jsx-runtime";var vd=e=>VP(r,{...e,children:[qg("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),qg("path",{d:"M13.5 6.5l4 4"})]});import{jsx as bd,jsxs as HP}from"react/jsx-runtime";var yd=e=>HP(r,{...e,children:[bd("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),bd("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),bd("path",{d:"M16 5l3 3"})]});import{jsx as ao,jsxs as UP}from"react/jsx-runtime";var Id=e=>UP(r,{...e,children:[ao("path",{d:"M16 4l4 0l0 4"}),ao("path",{d:"M14 10l6 -6"}),ao("path",{d:"M8 20l-4 0l0 -4"}),ao("path",{d:"M4 20l6 -6"}),ao("path",{d:"M16 20l4 0l0 -4"}),ao("path",{d:"M14 14l6 6"}),ao("path",{d:"M8 4l-4 0l0 4"}),ao("path",{d:"M4 4l6 6"})]});import{jsx as Cd,jsxs as GP}from"react/jsx-runtime";var xd=e=>GP(r,{...e,children:[Cd("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),Cd("path",{d:"M11 13l9 -9"}),Cd("path",{d:"M15 4h5v5"})]});import{jsx as Pd,jsxs as $P}from"react/jsx-runtime";var Sd=e=>$P(r,{...e,children:[Pd("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"}),Pd("path",{d:"M15 9l-6 6"}),Pd("path",{d:"M10 9l5 0l0 5"})]});import{jsx as Xg,jsxs as WP}from"react/jsx-runtime";var wd=e=>WP(r,{...e,children:[Xg("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),Xg("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 Md,jsxs as qP}from"react/jsx-runtime";var kd=e=>qP(r,{...e,children:[Md("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),Md("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"}),Md("path",{d:"M3 3l18 18"})]});import{jsx as Or,jsxs as XP}from"react/jsx-runtime";var Bd=e=>XP(r,{...e,children:[Or("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),Or("path",{d:"M3 15l2.5 -3.8"}),Or("path",{d:"M21 14.976l-2.492 -3.776"}),Or("path",{d:"M9 17l.5 -4"}),Or("path",{d:"M15 17l-.5 -4"})]});import{jsx as Al,jsxs as KP}from"react/jsx-runtime";var Nd=e=>KP(r,{...e,children:[Al("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),Al("path",{d:"M8 9l2 1"}),Al("path",{d:"M16 9l-2 1"}),Al("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as Bn,jsxs as YP}from"react/jsx-runtime";var Td=e=>YP(r,{...e,children:[Bn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Bn("path",{d:"M7 8.5l3 3"}),Bn("path",{d:"M7 11.5l3 -3"}),Bn("path",{d:"M14 8.5l3 3"}),Bn("path",{d:"M14 11.5l3 -3"}),Bn("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Ol,jsxs as ZP}from"react/jsx-runtime";var Rd=e=>ZP(r,{...e,children:[Ol("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Ol("path",{d:"M9 10l.01 0"}),Ol("path",{d:"M15 10l.01 0"}),Ol("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Kg,jsxs as QP}from"react/jsx-runtime";var Do=e=>QP(r,{...e,children:[Kg("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Kg("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 Ld,jsxs as JP}from"react/jsx-runtime";var Ed=e=>JP(r,{...e,children:[Ld("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ld("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"}),Ld("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as _r,jsxs as jP}from"react/jsx-runtime";var zr=e=>jP(r,{...e,children:[_r("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),_r("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),_r("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),_r("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"}),_r("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as _l,jsxs as eS}from"react/jsx-runtime";var Dd=e=>eS(r,{...e,children:[_l("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),_l("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"}),_l("path",{d:"M12 17v-6"}),_l("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as Nn,jsxs as tS}from"react/jsx-runtime";var Vr=e=>tS(r,{...e,children:[Nn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Nn("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Nn("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),Nn("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"}),Nn("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"}),Nn("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as zl,jsxs as oS}from"react/jsx-runtime";var Fd=e=>oS(r,{...e,children:[zl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),zl("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"}),zl("path",{d:"M9 17h6"}),zl("path",{d:"M9 13h6"})]});import{jsx as Vl,jsxs as nS}from"react/jsx-runtime";var tt=e=>nS(r,{...e,children:[Vl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Vl("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"}),Vl("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Vl("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as Tn,jsxs as rS}from"react/jsx-runtime";var Fo=e=>rS(r,{...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 Ad,jsxs as aS}from"react/jsx-runtime";var Od=e=>aS(r,{...e,children:[Ad("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),Ad("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"}),Ad("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 Hr,jsxs as lS}from"react/jsx-runtime";var Ur=e=>lS(r,{...e,children:[Hr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Hr("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"}),Hr("path",{d:"M8 11h8v7h-8z"}),Hr("path",{d:"M8 15h8"}),Hr("path",{d:"M11 11v7"})]});import{jsx as Gr,jsxs as cS}from"react/jsx-runtime";var _t=e=>cS(r,{...e,children:[Gr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Gr("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"}),Gr("path",{d:"M9 9l1 0"}),Gr("path",{d:"M9 13l6 0"}),Gr("path",{d:"M9 17l6 0"})]});import{jsx as Hl,jsxs as iS}from"react/jsx-runtime";var _d=e=>iS(r,{...e,children:[Hl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Hl("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"}),Hl("path",{d:"M12 11v6"}),Hl("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as Rn,jsxs as sS}from"react/jsx-runtime";var $r=e=>sS(r,{...e,children:[Rn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Rn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Rn("path",{d:"M4 15l4 6"}),Rn("path",{d:"M4 21l4 -6"}),Rn("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"}),Rn("path",{d:"M11 15v6h3"})]});import{jsx as lo,jsxs as pS}from"react/jsx-runtime";var Wr=e=>pS(r,{...e,children:[lo("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),lo("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),lo("path",{d:"M4 16l3 5"}),lo("path",{d:"M4 21l3 -5"}),lo("path",{d:"M8.5 16v5h2"}),lo("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"}),lo("path",{d:"M16.5 16l3 5"}),lo("path",{d:"M16.5 21l3 -5"})]});import{jsx as co,jsxs as dS}from"react/jsx-runtime";var bt=e=>dS(r,{...e,children:[co("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"}),co("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"}),co("path",{d:"M11 5l-1 0"}),co("path",{d:"M13 7l-1 0"}),co("path",{d:"M11 9l-1 0"}),co("path",{d:"M13 11l-1 0"}),co("path",{d:"M11 13l-1 0"}),co("path",{d:"M13 15l-1 0"})]});import{jsx as Yg}from"react/jsx-runtime";var zd=e=>Yg(r,{...e,children:Yg("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 Vd,jsxs as mS}from"react/jsx-runtime";var qr=e=>mS(r,{...e,children:[Vd("path",{d:"M4 6h16"}),Vd("path",{d:"M6 12h12"}),Vd("path",{d:"M9 18h6"})]});import{jsx as Zg,jsxs as uS}from"react/jsx-runtime";var Hd=e=>uS(r,{...e,children:[Zg("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"}),Zg("path",{d:"M5 21v-7"})]});import{jsx as Qg}from"react/jsx-runtime";var Ud=e=>Qg(r,{...e,children:Qg("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as Jg}from"react/jsx-runtime";var Gd=e=>Jg(r,{isFilled:!0,...e,children:Jg("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 Xr,jsxs as fS}from"react/jsx-runtime";var $d=e=>fS(r,{...e,children:[Xr("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Xr("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Xr("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Xr("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Xr("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as jg}from"react/jsx-runtime";var Wd=e=>jg(r,{...e,children:jg("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 Ul,jsxs as hS}from"react/jsx-runtime";var qd=e=>hS(r,{...e,children:[Ul("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"}),Ul("path",{d:"M1 12.5l7 0"}),Ul("path",{d:"M1 12.5l2 2"}),Ul("path",{d:"M1 12.5l2 -2"})]});import{jsx as Gl,jsxs as gS}from"react/jsx-runtime";var Xd=e=>gS(r,{...e,children:[Gl("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"}),Gl("path",{d:"M2 13l7 0"}),Gl("path",{d:"M9 13l-2 2"}),Gl("path",{d:"M9 13l-2 -2"})]});import{jsx as e2,jsxs as vS}from"react/jsx-runtime";var Kd=e=>vS(r,{...e,children:[e2("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),e2("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as Ln,jsxs as bS}from"react/jsx-runtime";var Yd=e=>bS(r,{...e,children:[Ln("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ln("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ln("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ln("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ln("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ln("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as $l,jsxs as yS}from"react/jsx-runtime";var Zd=e=>yS(r,{...e,children:[$l("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),$l("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),$l("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),$l("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 En,jsxs as IS}from"react/jsx-runtime";var Qd=e=>IS(r,{...e,children:[En("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),En("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),En("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),En("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),En("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"}),En("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 Wl,jsxs as CS}from"react/jsx-runtime";var Jd=e=>CS(r,{...e,children:[Wl("path",{d:"M5 9l14 0"}),Wl("path",{d:"M5 15l14 0"}),Wl("path",{d:"M11 4l-4 16"}),Wl("path",{d:"M17 4l-4 16"})]});import{jsx as ql,jsxs as xS}from"react/jsx-runtime";var jd=e=>xS(r,{...e,children:[ql("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),ql("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),ql("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"}),ql("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 t2}from"react/jsx-runtime";var em=e=>t2(r,{...e,children:t2("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 o2}from"react/jsx-runtime";var tm=e=>o2(r,{isFilled:!0,...e,children:o2("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 om,jsxs as PS}from"react/jsx-runtime";var nm=e=>PS(r,{...e,children:[om("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),om("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),om("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as n2,jsxs as SS}from"react/jsx-runtime";var Kr=e=>SS(r,{...e,children:[n2("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"}),n2("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Xl,jsxs as wS}from"react/jsx-runtime";var De=e=>wS(r,{...e,children:[Xl("path",{d:"M15 8h.01"}),Xl("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"}),Xl("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Xl("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as Yr,jsxs as MS}from"react/jsx-runtime";var rm=e=>MS(r,{...e,children:[Yr("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"}),Yr("path",{d:"M4 16l16 0"}),Yr("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),Yr("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),Yr("path",{d:"M14 7l.01 0"})]});import{jsx as Zr,jsxs as kS}from"react/jsx-runtime";var am=e=>kS(r,{...e,children:[Zr("path",{d:"M15 8h.01"}),Zr("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"}),Zr("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),Zr("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),Zr("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Qr,jsxs as BS}from"react/jsx-runtime";var lm=e=>BS(r,{...e,children:[Qr("path",{d:"M15 8h.01"}),Qr("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"}),Qr("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Qr("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),Qr("path",{d:"M3 3l18 18"})]});import{jsx as r2,jsxs as NS}from"react/jsx-runtime";var cm=e=>NS(r,{...e,children:[r2("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),r2("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 a2,jsxs as TS}from"react/jsx-runtime";var im=e=>TS(r,{...e,children:[a2("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"}),a2("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as sm,jsxs as RS}from"react/jsx-runtime";var pm=e=>RS(r,{...e,children:[sm("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),sm("path",{d:"M12 9h.01"}),sm("path",{d:"M11 12h1v4h1"})]});import{jsx as dm,jsxs as LS}from"react/jsx-runtime";var mm=e=>LS(r,{...e,children:[dm("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"}),dm("path",{d:"M12 9h.01"}),dm("path",{d:"M11 12h1v4h1"})]});import{jsx as um,jsxs as ES}from"react/jsx-runtime";var fm=e=>ES(r,{...e,children:[um("path",{d:"M11 5l6 0"}),um("path",{d:"M7 19l6 0"}),um("path",{d:"M14 5l-4 14"})]});import{jsx as hm,jsxs as DS}from"react/jsx-runtime";var gm=e=>DS(r,{...e,children:[hm("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),hm("path",{d:"M4 12l8 4l8 -4"}),hm("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as l2,jsxs as FS}from"react/jsx-runtime";var vm=e=>FS(r,{...e,children:[l2("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),l2("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as c2,jsxs as AS}from"react/jsx-runtime";var bm=e=>AS(r,{...e,children:[c2("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"}),c2("path",{d:"M9 4l0 16"})]});import{jsx as ym,jsxs as OS}from"react/jsx-runtime";var Im=e=>OS(r,{...e,children:[ym("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"}),ym("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"}),ym("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 Kl,jsxs as _S}from"react/jsx-runtime";var Cm=e=>_S(r,{...e,children:[Kl("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"}),Kl("path",{d:"M4 9h8"}),Kl("path",{d:"M12 15h8"}),Kl("path",{d:"M12 4v16"})]});import{jsx as Jr,jsxs as zS}from"react/jsx-runtime";var xm=e=>zS(r,{...e,children:[Jr("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"}),Jr("path",{d:"M4 12h8"}),Jr("path",{d:"M12 15h8"}),Jr("path",{d:"M12 9h8"}),Jr("path",{d:"M12 4v16"})]});import{jsx as Pm,jsxs as VS}from"react/jsx-runtime";var Sm=e=>VS(r,{...e,children:[Pm("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"}),Pm("path",{d:"M10 4l4 16"}),Pm("path",{d:"M12 12l-8 2"})]});import{jsx as Yl,jsxs as HS}from"react/jsx-runtime";var wm=e=>HS(r,{...e,children:[Yl("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"}),Yl("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"}),Yl("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"}),Yl("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 Dn,jsxs as US}from"react/jsx-runtime";var Mm=e=>US(r,{...e,children:[Dn("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Dn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Dn("path",{d:"M15 15l3.35 3.35"}),Dn("path",{d:"M9 15l-3.35 3.35"}),Dn("path",{d:"M5.65 5.65l3.35 3.35"}),Dn("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as km,jsxs as GS}from"react/jsx-runtime";var Bm=e=>GS(r,{...e,children:[km("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),km("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"}),km("path",{d:"M9.7 17l4.6 0"})]});import{jsx as i2}from"react/jsx-runtime";var Nm=e=>i2(r,{...e,children:i2("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as s2,jsxs as $S}from"react/jsx-runtime";var Tm=e=>$S(r,{...e,children:[s2("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),s2("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as p2,jsxs as WS}from"react/jsx-runtime";var Rm=e=>WS(r,{...e,children:[p2("path",{d:"M4 19l16 0"}),p2("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as Fn,jsxs as qS}from"react/jsx-runtime";var Lm=e=>qS(r,{...e,children:[Fn("path",{d:"M3 3v18h18"}),Fn("path",{d:"M20 18v3"}),Fn("path",{d:"M16 16v5"}),Fn("path",{d:"M12 13v8"}),Fn("path",{d:"M8 16v5"}),Fn("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as An,jsxs as XS}from"react/jsx-runtime";var Em=e=>XS(r,{...e,children:[An("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"}),An("path",{d:"M3 13c0 0, 8 0, 12 -4"}),An("path",{d:"M12 8h4v4"}),An("path",{d:"M15 2v1.44"}),An("path",{d:"M18.75 4.75l1.2 -1.2"}),An("path",{d:"M20 9h1.44"})]});import{jsx as Dm,jsxs as KS}from"react/jsx-runtime";var Fm=e=>KS(r,{...e,children:[Dm("path",{d:"M4 19l16 0"}),Dm("path",{d:"M4 16l6 -6l4 4l5 -5"}),Dm("path",{d:"M15 8h5v5"})]});import{jsx as d2,jsxs as YS}from"react/jsx-runtime";var Am=e=>YS(r,{...e,children:[d2("path",{d:"M5 10h14"}),d2("path",{d:"M5 14h14"})]});import{jsx as On,jsxs as ZS}from"react/jsx-runtime";var Om=e=>ZS(r,{...e,children:[On("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),On("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),On("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),On("path",{d:"M11 6l9 0"}),On("path",{d:"M11 12l9 0"}),On("path",{d:"M11 18l9 0"})]});import{jsx as Zl,jsxs as QS}from"react/jsx-runtime";var _m=e=>QS(r,{...e,children:[Zl("path",{d:"M12 10v8l8 -4z"}),Zl("path",{d:"M4 6h16"}),Zl("path",{d:"M4 12h4.5"}),Zl("path",{d:"M4 18h4.5"})]});import{jsx as zm,jsxs as JS}from"react/jsx-runtime";var Vm=e=>JS(r,{...e,children:[zm("path",{d:"M9 15l6 -6"}),zm("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),zm("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 m2,jsxs as jS}from"react/jsx-runtime";var Hm=e=>jS(r,{...e,children:[m2("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),m2("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Ql,jsxs as e4}from"react/jsx-runtime";var Um=e=>e4(r,{...e,children:[Ql("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Ql("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Ql("path",{d:"M3 3l18 18"}),Ql("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 _n,jsxs as t4}from"react/jsx-runtime";var Gm=e=>t4(r,{...e,children:[_n("path",{d:"M9 6l11 0"}),_n("path",{d:"M9 12l11 0"}),_n("path",{d:"M9 18l11 0"}),_n("path",{d:"M5 6l0 .01"}),_n("path",{d:"M5 12l0 .01"}),_n("path",{d:"M5 18l0 .01"})]});import{jsx as jr,jsxs as o4}from"react/jsx-runtime";var $m=e=>o4(r,{...e,children:[jr("path",{d:"M11 6h9"}),jr("path",{d:"M11 12h9"}),jr("path",{d:"M12 18h8"}),jr("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),jr("path",{d:"M6 10v-6l-2 2"})]});import{jsx as Wm,jsxs as n4}from"react/jsx-runtime";var qm=e=>n4(r,{...e,children:[Wm("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"}),Wm("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Wm("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as u2}from"react/jsx-runtime";var Xm=e=>u2(r,{isFilled:!0,...e,children:u2("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 Km,jsxs as r4}from"react/jsx-runtime";var Ym=e=>r4(r,{...e,children:[Km("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"}),Km("path",{d:"M3 12h13l-3 -3"}),Km("path",{d:"M13 15l3 -3"})]});import{jsx as Zm,jsxs as a4}from"react/jsx-runtime";var Qm=e=>a4(r,{...e,children:[Zm("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"}),Zm("path",{d:"M9 12h12l-3 -3"}),Zm("path",{d:"M18 15l3 -3"})]});import{jsx as Jm,jsxs as l4}from"react/jsx-runtime";var jm=e=>l4(r,{...e,children:[Jm("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"}),Jm("path",{d:"M15 12h-12l3 -3"}),Jm("path",{d:"M6 15l-3 -3"})]});import{jsx as Jl,jsxs as c4}from"react/jsx-runtime";var eu=e=>c4(r,{...e,children:[Jl("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Jl("path",{d:"M15 6l3 3"}),Jl("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"}),Jl("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 f2,jsxs as i4}from"react/jsx-runtime";var tu=e=>i4(r,{...e,children:[f2("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"}),f2("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as jl,jsxs as s4}from"react/jsx-runtime";var ou=e=>s4(r,{...e,children:[jl("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),jl("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),jl("path",{d:"M3 19l6 -6"}),jl("path",{d:"M15 13l6 6"})]});import{jsx as h2,jsxs as p4}from"react/jsx-runtime";var nu=e=>p4(r,{...e,children:[h2("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),h2("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 ec,jsxs as d4}from"react/jsx-runtime";var ea=e=>d4(r,{...e,children:[ec("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),ec("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),ec("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),ec("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as tc,jsxs as m4}from"react/jsx-runtime";var ru=e=>m4(r,{...e,children:[tc("path",{d:"M16 4l4 0l0 4"}),tc("path",{d:"M14 10l6 -6"}),tc("path",{d:"M8 20l-4 0l0 -4"}),tc("path",{d:"M4 20l6 -6"})]});import{jsx as g2}from"react/jsx-runtime";var au=e=>g2(r,{...e,children:g2("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 lu,jsxs as u4}from"react/jsx-runtime";var cu=e=>u4(r,{...e,children:[lu("path",{d:"M8 9h8"}),lu("path",{d:"M8 13h6"}),lu("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 oc,jsxs as f4}from"react/jsx-runtime";var iu=e=>f4(r,{...e,children:[oc("path",{d:"M12 11v.01"}),oc("path",{d:"M8 11v.01"}),oc("path",{d:"M16 11v.01"}),oc("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 ta,jsxs as h4}from"react/jsx-runtime";var su=e=>h4(r,{...e,children:[ta("path",{d:"M8 9h8"}),ta("path",{d:"M8 13h6"}),ta("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"}),ta("path",{d:"M22 22l-5 -5"}),ta("path",{d:"M17 22l5 -5"})]});import{jsx as nc,jsxs as g4}from"react/jsx-runtime";var oa=e=>g4(r,{...e,children:[nc("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"}),nc("path",{d:"M5 10a7 7 0 0 0 14 0"}),nc("path",{d:"M8 21l8 0"}),nc("path",{d:"M12 17l0 4"})]});import{jsx as rc,jsxs as v4}from"react/jsx-runtime";var na=e=>v4(r,{...e,children:[rc("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),rc("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),rc("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),rc("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as ac,jsxs as b4}from"react/jsx-runtime";var pu=e=>b4(r,{...e,children:[ac("path",{d:"M18 10h-4v-4"}),ac("path",{d:"M20 4l-6 6"}),ac("path",{d:"M6 14h4v4"}),ac("path",{d:"M10 14l-6 6"})]});import{jsx as v2,jsxs as y4}from"react/jsx-runtime";var du=e=>y4(r,{...e,children:[v2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),v2("path",{d:"M9 12l6 0"})]});import{jsx as mu,jsxs as I4}from"react/jsx-runtime";var uu=e=>I4(r,{...e,children:[mu("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"}),mu("path",{d:"M11 4h2"}),mu("path",{d:"M12 17v.01"})]});import{jsx as lc,jsxs as C4}from"react/jsx-runtime";var fu=e=>C4(r,{...e,children:[lc("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"}),lc("path",{d:"M7 20h10"}),lc("path",{d:"M9 16v4"}),lc("path",{d:"M15 16v4"})]});import{jsx as ra,jsxs as x4}from"react/jsx-runtime";var hu=e=>x4(r,{...e,children:[ra("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"}),ra("path",{d:"M3 13h18"}),ra("path",{d:"M8 21h8"}),ra("path",{d:"M10 17l-.5 4"}),ra("path",{d:"M14 17l.5 4"})]});import{jsx as b2}from"react/jsx-runtime";var gu=e=>b2(r,{...e,children:b2("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 y2,jsxs as P4}from"react/jsx-runtime";var vu=e=>P4(r,{...e,children:[y2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),y2("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 io,jsxs as S4}from"react/jsx-runtime";var mt=e=>S4(r,{...e,children:[io("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"}),io("path",{d:"M8 4l0 16"}),io("path",{d:"M16 4l0 16"}),io("path",{d:"M4 8l4 0"}),io("path",{d:"M4 16l4 0"}),io("path",{d:"M4 12l16 0"}),io("path",{d:"M16 8l4 0"}),io("path",{d:"M16 16l4 0"})]});import{jsx as I2}from"react/jsx-runtime";var bu=e=>I2(r,{...e,children:I2("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 C2,jsxs as w4}from"react/jsx-runtime";var yu=e=>w4(r,{...e,children:[C2("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),C2("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as aa,jsxs as M4}from"react/jsx-runtime";var Iu=e=>M4(r,{...e,children:[aa("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),aa("path",{d:"M12 12l8 -4.5"}),aa("path",{d:"M12 12l0 9"}),aa("path",{d:"M12 12l-8 -4.5"}),aa("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as cc,jsxs as k4}from"react/jsx-runtime";var Cu=e=>k4(r,{...e,children:[cc("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"}),cc("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),cc("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),cc("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as la,jsxs as B4}from"react/jsx-runtime";var xu=e=>B4(r,{...e,children:[la("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"}),la("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),la("path",{d:"M15 16h.01"}),la("path",{d:"M12.01 16h.01"}),la("path",{d:"M9.02 16h.01"})]});import{jsx as x2,jsxs as N4}from"react/jsx-runtime";var ut=e=>N4(r,{...e,children:[x2("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"}),x2("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 Pu,jsxs as T4}from"react/jsx-runtime";var Su=e=>T4(r,{...e,children:[Pu("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Pu("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"}),Pu("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 wu,jsxs as R4}from"react/jsx-runtime";var Mu=e=>R4(r,{...e,children:[wu("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"}),wu("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),wu("path",{d:"M16 9h2"})]});import{jsx as ku,jsxs as L4}from"react/jsx-runtime";var Bu=e=>L4(r,{...e,children:[ku("path",{d:"M14 6l7 7l-4 4"}),ku("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"}),ku("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as ic,jsxs as E4}from"react/jsx-runtime";var Nu=e=>E4(r,{...e,children:[ic("path",{d:"M9 15l6 -6"}),ic("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),ic("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),ic("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as P2}from"react/jsx-runtime";var Tu=e=>P2(r,{...e,children:P2("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 Ru,jsxs as D4}from"react/jsx-runtime";var Lu=e=>D4(r,{...e,children:[Ru("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"}),Ru("path",{d:"M15 7a2 2 0 0 1 2 2"}),Ru("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as Eu,jsxs as F4}from"react/jsx-runtime";var ca=e=>F4(r,{...e,children:[Eu("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),Eu("path",{d:"M9 15l-4.5 4.5"}),Eu("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as S2}from"react/jsx-runtime";var ft=e=>S2(r,{...e,children:S2("path",{d:"M7 4v16l13 -8z"})});import{jsx as w2,jsxs as A4}from"react/jsx-runtime";var Du=e=>A4(r,{...e,children:[w2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),w2("path",{d:"M9 8v8l8 -4z"})]});import{jsx as M2,jsxs as O4}from"react/jsx-runtime";var ia=e=>O4(r,{...e,children:[M2("path",{d:"M12 5l0 14"}),M2("path",{d:"M5 12l14 0"})]});import{jsx as Fu,jsxs as _4}from"react/jsx-runtime";var so=e=>_4(r,{...e,children:[Fu("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Fu("path",{d:"M9 12h6"}),Fu("path",{d:"M12 9v6"})]});import{jsx as Au,jsxs as z4}from"react/jsx-runtime";var Ou=e=>z4(r,{...e,children:[Au("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"}),Au("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),Au("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 k2}from"react/jsx-runtime";var _u=e=>k2(r,{...e,children:k2("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as zu,jsxs as V4}from"react/jsx-runtime";var sa=e=>V4(r,{...e,children:[zu("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),zu("path",{d:"M12 16v.01"}),zu("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as B2,jsxs as H4}from"react/jsx-runtime";var Vu=e=>H4(r,{...e,children:[B2("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"}),B2("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 N2,jsxs as U4}from"react/jsx-runtime";var Hu=e=>U4(r,{...e,children:[N2("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),N2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as T2}from"react/jsx-runtime";var Uu=e=>T2(r,{isFilled:!0,...e,children:T2("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 R2}from"react/jsx-runtime";var Gu=e=>R2(r,{...e,children:R2("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 L2,jsxs as G4}from"react/jsx-runtime";var $u=e=>G4(r,{...e,children:[L2("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"}),L2("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as E2,jsxs as $4}from"react/jsx-runtime";var Wu=e=>$4(r,{...e,children:[E2("path",{d:"M15 14l4 -4l-4 -4"}),E2("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as D2}from"react/jsx-runtime";var pa=e=>D2(r,{...e,children:D2("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as F2,jsxs as W4}from"react/jsx-runtime";var qu=e=>W4(r,{...e,children:[F2("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),F2("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as A2,jsxs as q4}from"react/jsx-runtime";var Xu=e=>q4(r,{...e,children:[A2("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),A2("path",{d:"M20 4v5h-5"})]});import{jsx as O2,jsxs as X4}from"react/jsx-runtime";var Ku=e=>X4(r,{...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 sc,jsxs as K4}from"react/jsx-runtime";var Yu=e=>K4(r,{...e,children:[sc("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"}),sc("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"}),sc("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),sc("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as _2}from"react/jsx-runtime";var da=e=>_2(r,{...e,children:_2("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Zu,jsxs as Y4}from"react/jsx-runtime";var Qu=e=>Y4(r,{...e,children:[Zu("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Zu("path",{d:"M3 4.001v5h5"}),Zu("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ju,jsxs as Z4}from"react/jsx-runtime";var ju=e=>Z4(r,{...e,children:[Ju("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"}),Ju("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),Ju("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as z2,jsxs as Q4}from"react/jsx-runtime";var ef=e=>Q4(r,{...e,children:[z2("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"}),z2("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 V2,jsxs as J4}from"react/jsx-runtime";var tf=e=>J4(r,{...e,children:[V2("path",{d:"M12 3v9h9"}),V2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as of,jsxs as j4}from"react/jsx-runtime";var nf=e=>j4(r,{...e,children:[of("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),of("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),of("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 rf,jsxs as e5}from"react/jsx-runtime";var af=e=>e5(r,{...e,children:[rf("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"}),rf("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rf("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as po,jsxs as t5}from"react/jsx-runtime";var lf=e=>t5(r,{...e,children:[po("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),po("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),po("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),po("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),po("path",{d:"M5 11h1v2h-1z"}),po("path",{d:"M10 11l0 2"}),po("path",{d:"M14 11h1v2h-1z"}),po("path",{d:"M19 11l0 2"})]});import{jsx as pc,jsxs as o5}from"react/jsx-runtime";var ma=e=>o5(r,{...e,children:[pc("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),pc("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),pc("path",{d:"M8.6 8.6l10.4 10.4"}),pc("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as H2,jsxs as n5}from"react/jsx-runtime";var zt=e=>n5(r,{...e,children:[H2("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),H2("path",{d:"M21 21l-6 -6"})]});import{jsx as U2,jsxs as r5}from"react/jsx-runtime";var cf=e=>r5(r,{...e,children:[U2("path",{d:"M10 14l11 -11"}),U2("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 dc,jsxs as a5}from"react/jsx-runtime";var sf=e=>a5(r,{...e,children:[dc("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"}),dc("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"}),dc("path",{d:"M7 8l0 .01"}),dc("path",{d:"M7 16l0 .01"})]});import{jsx as G2,jsxs as l5}from"react/jsx-runtime";var pf=e=>l5(r,{...e,children:[G2("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"}),G2("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as Vt,jsxs as c5}from"react/jsx-runtime";var df=e=>c5(r,{...e,children:[Vt("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Vt("path",{d:"M4 6l8 0"}),Vt("path",{d:"M16 6l4 0"}),Vt("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Vt("path",{d:"M4 12l2 0"}),Vt("path",{d:"M10 12l10 0"}),Vt("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Vt("path",{d:"M4 18l11 0"}),Vt("path",{d:"M19 18l1 0"})]});import{jsx as ua,jsxs as i5}from"react/jsx-runtime";var mf=e=>i5(r,{...e,children:[ua("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),ua("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),ua("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),ua("path",{d:"M8.7 10.7l6.6 -3.4"}),ua("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as $2,jsxs as s5}from"react/jsx-runtime";var uf=e=>s5(r,{...e,children:[$2("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"}),$2("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as ff,jsxs as p5}from"react/jsx-runtime";var hf=e=>p5(r,{...e,children:[ff("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"}),ff("path",{d:"M16 19h6"}),ff("path",{d:"M19 16v6"})]});import{jsx as gf,jsxs as d5}from"react/jsx-runtime";var vf=e=>d5(r,{...e,children:[gf("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"}),gf("path",{d:"M22 22l-5 -5"}),gf("path",{d:"M17 22l5 -5"})]});import{jsx as W2,jsxs as m5}from"react/jsx-runtime";var bf=e=>m5(r,{...e,children:[W2("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"}),W2("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as mc,jsxs as u5}from"react/jsx-runtime";var yf=e=>u5(r,{...e,children:[mc("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),mc("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),mc("path",{d:"M17 17h-11v-14h-2"}),mc("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as mo,jsxs as f5}from"react/jsx-runtime";var If=e=>f5(r,{...e,children:[mo("path",{d:"M5 9l4 0l0 -4"}),mo("path",{d:"M3 3l6 6"}),mo("path",{d:"M5 15l4 0l0 4"}),mo("path",{d:"M3 21l6 -6"}),mo("path",{d:"M19 9l-4 0l0 -4"}),mo("path",{d:"M15 9l6 -6"}),mo("path",{d:"M19 15l-4 0l0 4"}),mo("path",{d:"M15 15l6 6"})]});import{jsx as uc,jsxs as h5}from"react/jsx-runtime";var Cf=e=>h5(r,{...e,children:[uc("path",{d:"M18 4l3 3l-3 3"}),uc("path",{d:"M18 20l3 -3l-3 -3"}),uc("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),uc("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 q2,jsxs as g5}from"react/jsx-runtime";var xf=e=>g5(r,{...e,children:[q2("path",{d:"M4 5v14l12 -7z"}),q2("path",{d:"M20 5l0 14"})]});import{jsx as X2,jsxs as v5}from"react/jsx-runtime";var Pf=e=>v5(r,{...e,children:[X2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),X2("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as K2,jsxs as b5}from"react/jsx-runtime";var Sf=e=>b5(r,{...e,children:[K2("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"}),K2("path",{d:"M5 5 L19 19"})]});import{jsx as Ao,jsxs as y5}from"react/jsx-runtime";var wf=e=>y5(r,{...e,children:[Ao("path",{d:"M4 10l0 6"}),Ao("path",{d:"M20 10l0 6"}),Ao("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),Ao("path",{d:"M8 3l1 2"}),Ao("path",{d:"M16 3l-1 2"}),Ao("path",{d:"M9 18l0 3"}),Ao("path",{d:"M15 18l0 3"})]});import{jsx as Y2,jsxs as I5}from"react/jsx-runtime";var Mf=e=>I5(r,{...e,children:[Y2("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"}),Y2("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as Z2}from"react/jsx-runtime";var kf=e=>Z2(r,{...e,children:Z2("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 fa,jsxs as C5}from"react/jsx-runtime";var Bf=e=>C5(r,{...e,children:[fa("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),fa("path",{d:"M3.6 9h16.8"}),fa("path",{d:"M3.6 15h16.8"}),fa("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),fa("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as Q2}from"react/jsx-runtime";var Nf=e=>Q2(r,{...e,children:Q2("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 Tf,jsxs as x5}from"react/jsx-runtime";var Rf=e=>x5(r,{...e,children:[Tf("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"}),Tf("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Tf("path",{d:"M16.5 7.5v.01"})]});import{jsx as ha,jsxs as P5}from"react/jsx-runtime";var Lf=e=>P5(r,{...e,children:[ha("path",{d:"M8 11v5"}),ha("path",{d:"M8 8v.01"}),ha("path",{d:"M12 16v-5"}),ha("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),ha("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 Ef,jsxs as S5}from"react/jsx-runtime";var Df=e=>S5(r,{...e,children:[Ef("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Ef("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),Ef("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 Oo,jsxs as w5}from"react/jsx-runtime";var Ff=e=>w5(r,{...e,children:[Oo("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"}),Oo("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"}),Oo("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"}),Oo("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"}),Oo("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"}),Oo("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"}),Oo("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"})]});import{jsx as ga,jsxs as M5}from"react/jsx-runtime";var Af=e=>M5(r,{...e,children:[ga("path",{d:"M21 15l-1 -6l-2.5 6"}),ga("path",{d:"M9 15l1 -6"}),ga("path",{d:"M3 9h1v6h.5l2.5 -6"}),ga("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"}),ga("path",{d:"M18 14h2.7"})]});import{jsx as J2,jsxs as k5}from"react/jsx-runtime";var Of=e=>k5(r,{...e,children:[J2("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),J2("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as fc,jsxs as B5}from"react/jsx-runtime";var _f=e=>B5(r,{...e,children:[fc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),fc("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fc("path",{d:"M13.41 10.59l2.59 -2.59"}),fc("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as j2}from"react/jsx-runtime";var zf=e=>j2(r,{...e,children:j2("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as ev}from"react/jsx-runtime";var va=e=>ev(r,{...e,children:ev("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 tv}from"react/jsx-runtime";var Vf=e=>tv(r,{isFilled:!0,...e,children:tv("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 ov}from"react/jsx-runtime";var Hf=e=>ov(r,{isFilled:!0,...e,children:ov("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 nv}from"react/jsx-runtime";var Uf=e=>nv(r,{...e,children:nv("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 rv}from"react/jsx-runtime";var ba=e=>rv(r,{...e,children:rv("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 av,jsxs as N5}from"react/jsx-runtime";var Gf=e=>N5(r,{...e,children:[av("path",{d:"M5 12l14 0"}),av("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 lv,jsxs as T5}from"react/jsx-runtime";var $f=e=>T5(r,{...e,children:[lv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),lv("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 cv,jsxs as R5}from"react/jsx-runtime";var Wf=e=>R5(r,{...e,children:[cv("path",{d:"M7 10h14l-4 -4"}),cv("path",{d:"M17 14h-14l4 4"})]});import{jsx as hc,jsxs as L5}from"react/jsx-runtime";var qf=e=>L5(r,{...e,children:[hc("path",{d:"M16 3l4 4l-4 4"}),hc("path",{d:"M10 7l10 0"}),hc("path",{d:"M8 13l-4 4l4 4"}),hc("path",{d:"M4 17l9 0"})]});import{jsx as Xf,jsxs as E5}from"react/jsx-runtime";var Kf=e=>E5(r,{...e,children:[Xf("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"}),Xf("path",{d:"M3 10h18"}),Xf("path",{d:"M10 3v18"})]});import{jsx as iv,jsxs as D5}from"react/jsx-runtime";var ya=e=>D5(r,{...e,children:[iv("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),iv("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 zn,jsxs as F5}from"react/jsx-runtime";var Yf=e=>F5(r,{...e,children:[zn("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),zn("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),zn("path",{d:"M12 2l0 2"}),zn("path",{d:"M12 20l0 2"}),zn("path",{d:"M20 12l2 0"}),zn("path",{d:"M2 12l2 0"})]});import{jsx as Zf,jsxs as A5}from"react/jsx-runtime";var Qf=e=>A5(r,{...e,children:[Zf("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zf("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Zf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Jf,jsxs as O5}from"react/jsx-runtime";var jf=e=>O5(r,{...e,children:[Jf("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),Jf("path",{d:"M9 11h6"}),Jf("path",{d:"M5 19h14"})]});import{jsx as sv,jsxs as _5}from"react/jsx-runtime";var eh=e=>_5(r,{...e,children:[sv("path",{d:"M6 4l12 0"}),sv("path",{d:"M12 4l0 16"})]});import{jsx as gc,jsxs as z5}from"react/jsx-runtime";var th=e=>z5(r,{...e,children:[gc("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),gc("path",{d:"M12.5 5.5l4 4"}),gc("path",{d:"M4.5 13.5l4 4"}),gc("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as pv}from"react/jsx-runtime";var oh=e=>pv(r,{...e,children:pv("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 dv}from"react/jsx-runtime";var nh=e=>dv(r,{...e,children:dv("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 mv,jsxs as V5}from"react/jsx-runtime";var rh=e=>V5(r,{isFilled:!0,...e,children:[mv("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"}),mv("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 uv,jsxs as H5}from"react/jsx-runtime";var ah=e=>H5(r,{...e,children:[uv("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),uv("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 Vn,jsxs as U5}from"react/jsx-runtime";var lh=e=>U5(r,{...e,children:[Vn("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),Vn("path",{d:"M4 6.371h7"}),Vn("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),Vn("path",{d:"M12 20l4 -9l4 9"}),Vn("path",{d:"M19.1 18h-6.2"}),Vn("path",{d:"M6.694 3l.793 .582"})]});import{jsx as Ia,jsxs as G5}from"react/jsx-runtime";var ot=e=>G5(r,{...e,children:[Ia("path",{d:"M4 7l16 0"}),Ia("path",{d:"M10 11l0 6"}),Ia("path",{d:"M14 11l0 6"}),Ia("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),Ia("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as fv,jsxs as $5}from"react/jsx-runtime";var ch=e=>$5(r,{...e,children:[fv("path",{d:"M3 17l6 -6l4 4l8 -8"}),fv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as hv,jsxs as W5}from"react/jsx-runtime";var ih=e=>W5(r,{...e,children:[hv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),hv("path",{d:"M5 19h14"})]});import{jsx as gv,jsxs as q5}from"react/jsx-runtime";var sh=e=>q5(r,{...e,children:[gv("path",{d:"M9 14l-4 -4l4 -4"}),gv("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as ph,jsxs as X5}from"react/jsx-runtime";var dh=e=>X5(r,{...e,children:[ph("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"}),ph("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),ph("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as mh,jsxs as K5}from"react/jsx-runtime";var _o=e=>K5(r,{...e,children:[mh("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"}),mh("path",{d:"M9 15l3 -3l3 3"}),mh("path",{d:"M12 12l0 9"})]});import{jsx as vv,jsxs as Y5}from"react/jsx-runtime";var Ca=e=>Y5(r,{...e,children:[vv("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),vv("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as uh,jsxs as Z5}from"react/jsx-runtime";var fh=e=>Z5(r,{...e,children:[uh("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),uh("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),uh("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as vc,jsxs as Q5}from"react/jsx-runtime";var hh=e=>Q5(r,{...e,children:[vc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),vc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),vc("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),vc("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as gh,jsxs as J5}from"react/jsx-runtime";var vh=e=>J5(r,{...e,children:[gh("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),gh("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),gh("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 bc,jsxs as j5}from"react/jsx-runtime";var bh=e=>j5(r,{...e,children:[bc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),bc("path",{d:"M16 19h6"}),bc("path",{d:"M19 16v6"}),bc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as yc,jsxs as ew}from"react/jsx-runtime";var yh=e=>ew(r,{...e,children:[yc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),yc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),yc("path",{d:"M16 22l5 -5"}),yc("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as Ic,jsxs as tw}from"react/jsx-runtime";var Ih=e=>tw(r,{...e,children:[Ic("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Ic("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Ic("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Ic("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as Ch,jsxs as ow}from"react/jsx-runtime";var xh=e=>ow(r,{...e,children:[Ch("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Ch("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),Ch("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 xa,jsxs as nw}from"react/jsx-runtime";var Ph=e=>nw(r,{...e,children:[xa("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),xa("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),xa("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),xa("path",{d:"M19 22v-6"}),xa("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as bv,jsxs as rw}from"react/jsx-runtime";var Sh=e=>rw(r,{...e,children:[bv("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"}),bv("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 wh,jsxs as aw}from"react/jsx-runtime";var Mh=e=>aw(r,{...e,children:[wh("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),wh("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),wh("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 kh,jsxs as lw}from"react/jsx-runtime";var Pa=e=>lw(r,{...e,children:[kh("path",{d:"M15 8a5 5 0 0 1 0 8"}),kh("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),kh("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 yv,jsxs as cw}from"react/jsx-runtime";var Sa=e=>cw(r,{...e,children:[yv("path",{d:"M15 8a5 5 0 0 1 0 8"}),yv("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 Iv,jsxs as iw}from"react/jsx-runtime";var wa=e=>iw(r,{...e,children:[Iv("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"}),Iv("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as Cv}from"react/jsx-runtime";var Bh=e=>Cv(r,{...e,children:Cv("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 xv,jsxs as sw}from"react/jsx-runtime";var Ae=e=>sw(r,{...e,children:[xv("path",{d:"M18 6l-12 12"}),xv("path",{d:"M6 6l12 12"})]});import{jsx as Pv,jsxs as pw}from"react/jsx-runtime";var Nh=e=>pw(r,{...e,children:[Pv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Pv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Sv}from"react/jsx-runtime";var Th=e=>Sv(r,{isFilled:!0,...e,children:Sv("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 wv,jsxs as dw}from"react/jsx-runtime";var Rh=e=>dw(r,{...e,children:[wv("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"}),wv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as Cc,jsxs as mw}from"react/jsx-runtime";var Lh=e=>mw(r,{...e,children:[Cc("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Cc("path",{d:"M7 10l6 0"}),Cc("path",{d:"M10 7l0 6"}),Cc("path",{d:"M21 21l-6 -6"})]});import{jsx as Eh,jsxs as uw}from"react/jsx-runtime";var Dh=e=>uw(r,{...e,children:[Eh("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Eh("path",{d:"M7 10l6 0"}),Eh("path",{d:"M21 21l-6 -6"})]});var yt=(u=>(u["48AlertFeatured"]="48AlertFeatured",u["48SuccessFeatured"]="48SuccessFeatured",u.AlertCircle="AlertCircle",u.AlertOctagon="AlertOctagon",u.AlertTriangle="AlertTriangle",u.Apps="Apps",u.ArrowBarDown="ArrowBarDown",u.ArrowBarLeft="ArrowBarLeft",u.ArrowBarRight="ArrowBarRight",u.ArrowBarToDown="ArrowBarToDown",u.ArrowBarToLeft="ArrowBarToLeft",u.ArrowBarToRight="ArrowBarToRight",u.ArrowBarToUp="ArrowBarToUp",u.ArrowBarUp="ArrowBarUp",u.Archive="Archive",u.ArrowDown="ArrowDown",u.ArrowDownLeft="ArrowDownLeft",u.ArrowDownNarrow="ArrowDownNarrow",u.ArrowDownRight="ArrowDownRight",u.ArrowLeft="ArrowLeft",u.ArrowLeftNarrow="ArrowLeftNarrow",u.ArrowRight="ArrowRight",u.ArrowRightNarrow="ArrowRightNarrow",u.ArrowUp="ArrowUp",u.ArrowUpLeft="ArrowUpLeft",u.ArrowUpNarrow="ArrowUpNarrow",u.ArrowUpRight="ArrowUpRight",u.Attachment="Attachment",u.BarChart="BarChart",u.BarChartSquare="BarChartSquare",u.Bell="Bell",u.Bold="Bold",u.Bookmark="Bookmark",u.BookmarkCheck="BookmarkCheck",u.BookmarkCheckFill="BookmarkCheckFill",u.BookmarkFill="BookmarkFill",u.BookmarkMinus="BookmarkMinus",u.BookmarkPlus="BookmarkPlus",u.BookmarkX="BookmarkX",u.BookOpen="BookOpen",u.BoxLines="BoxLines",u.BoxText="BoxText",u.BracketsCheck="BracketsCheck",u.BracketsEllipses="BracketsEllipses",u.BrickWall="BrickWall",u.Briefcase="Briefcase",u.Building="Building",u.Calculator="Calculator",u.Calendar="Calendar",u.Certificate="Certificate",u.Check="Check",u.CheckCircle="CheckCircle",u.CheckCircleBroken="CheckCircleBroken",u.CheckFill="CheckFill",u.CheckVerified="CheckVerified",u.CheckVerifiedFill="CheckVerifiedFill",u.ChevronDown="ChevronDown",u.ChevronDownDouble="ChevronDownDouble",u.ChevronDownLeft="ChevronDownLeft",u.ChevronDownLeftDouble="ChevronDownLeftDouble",u.ChevronDownRight="ChevronDownRight",u.ChevronDownRightDouble="ChevronDownRightDouble",u.ChevronLeft="ChevronLeft",u.ChevronLeftDouble="ChevronLeftDouble",u.ChevronRight="ChevronRight",u.ChevronRightDouble="ChevronRightDouble",u.ChevronSelectorVertical="ChevronSelectorVertical",u.ChevronUp="ChevronUp",u.ChevronUpDouble="ChevronUpDouble",u.ChevronUpLeft="ChevronUpLeft",u.ChevronUpLeftDouble="ChevronUpLeftDouble",u.ChevronUpRight="ChevronUpRight",u.ChevronUpRightDouble="ChevronUpRightDouble",u.Click="Click",u.Clock="Clock",u.ClockFastForward="ClockFastForward",u.ClockPlay="ClockPlay",u.ClockRewind="ClockRewind",u.Clone="Clone",u.Code="Code",u.CodeBrowser="CodeBrowser",u.CodeCircle="CodeCircle",u.Colors="Colors",u.ColumnEdit="ColumnEdit",u.Copy="Copy",u.Copy2="Copy2",u.CopyCheck="CopyCheck",u.CreditCard="CreditCard",u.Cube="Cube",u.CubeOutline="CubeOutline",u.CursorBox="CursorBox",u.Dataflow="Dataflow",u.Dataflow2="Dataflow2",u.Dataflow3="Dataflow3",u.DistributeHorizontal="DistributeHorizontal",u.Dollar="Dollar",u.DollarCircle="DollarCircle",u.Dot="Dot",u.DotFill="DotFill",u.DotsGrid="DotsGrid",u.DotsHorizontal="DotsHorizontal",u.DotsVertical="DotsVertical",u.Download="Download",u.Edit="Edit",u.Editable="Editable",u.Expand="Expand",u.ExternalLink="ExternalLink",u.ExternalLink2="ExternalLink2",u.Eye="Eye",u.EyeHidden="EyeHidden",u.EyeHidden2="EyeHidden2",u.FaceAngry="FaceAngry",u.FaceLaugh="FaceLaugh",u.FaceSmile="FaceSmile",u.File="File",u.FileCheck="FileCheck",u.FileCsv="FileCsv",u.FileDownload="FileDownload",u.FileJson="FileJson",u.FileList="FileList",u.FileMusic="FileMusic",u.FilePdf="FilePdf",u.Files="Files",u.FileSpreadsheet="FileSpreadsheet",u.FileText="FileText",u.FileUpload="FileUpload",u.FileXls="FileXls",u.FileXlsx="FileXlsx",u.FileZip="FileZip",u.Filter="Filter",u.Filter2="Filter2",u.Flag="Flag",u.Flag2="Flag2",u.FlagFill="FlagFill",u.Focus="Focus",u.Folder="Folder",u.FolderExport="FolderExport",u.FolderImport="FolderImport",u.GraduationCap="GraduationCap",u.GripVertical="GripVertical",u.Hand="Hand",u.HandShield="HandShield",u.Hash="Hash",u.HeadsetMic="HeadsetMic",u.Heart="Heart",u.HeartFill="HeartFill",u.House="House",u.HouseLine="HouseLine",u.Image="Image",u.Image2="Image2",u.ImageCheck="ImageCheck",u.ImageOff="ImageOff",u.Import="Import",u.Inbox="Inbox",u.InfoCircle="InfoCircle",u.InfoHexagon="InfoHexagon",u.Italic="Italic",u.LayersMultiple="LayersMultiple",u.LayersSingle="LayersSingle",u.Layout="Layout",u.Layout2="Layout2",u.LayoutColumns="LayoutColumns",u.LayoutCustom="LayoutCustom",u.LayoutStuffed="LayoutStuffed",u.LayoutTile="LayoutTile",u.LifeBuoy="LifeBuoy",u.Lightbulb="Lightbulb",u.Lightning="Lightning",u.LightningFast="LightningFast",u.LineChart="LineChart",u.LineChartBar="LineChartBar",u.LineChartBreakoutSquare="LineChartBreakoutSquare",u.LineChartUp="LineChartUp",u.Lines="Lines",u.LinesCheck="LinesCheck",u.LinesPlay="LinesPlay",u.Link="Link",u.Link2="Link2",u.LinkOff="LinkOff",u.ListBullet="ListBullet",u.ListOrder="ListOrder",u.Lock="Lock",u.LockFill="LockFill",u.LogIn="LogIn",u.LogOut="LogOut",u.LogOut2="LogOut2",u.MagicWand="MagicWand",u.Mail="Mail",u.MailOpen="MailOpen",u.MapPin="MapPin",u.Maximize="Maximize",u.Maximize2="Maximize2",u.MessageCircle="MessageCircle",u.MessageSquare="MessageSquare",u.MessageSquare2="MessageSquare2",u.MessageXSquare="MessageXSquare",u.Microphone="Microphone",u.Minimize="Minimize",u.Minimize2="Minimize2",u.MinusCircle="MinusCircle",u.Mobile="Mobile",u.Monitor="Monitor",u.Monitor2="Monitor2",u.Moon="Moon",u.MoonCircle="MoonCircle",u.Movie="Movie",u.NavigationPointer="NavigationPointer",u.NotificationBox="NotificationBox",u.Package="Package",u.Palette="Palette",u.PasscodeLock="PasscodeLock",u.Pause="Pause",u.PauseCircle="PauseCircle",u.PCSetup="PCSetup",u.Pen="Pen",u.PercentageCircle="PercentageCircle",u.Perspective="Perspective",u.PhoneCall="PhoneCall",u.Pin="Pin",u.Play="Play",u.PlayCircle="PlayCircle",u.Plus="Plus",u.PlusCircle="PlusCircle",u.Printer="Printer",u.Pulse="Pulse",u.QuestionCircle="QuestionCircle",u.Quote="Quote",u.RadioButton="RadioButton",u.RadioButtonFill="RadioButtonFill",u.Receipt="Receipt",u.ReceiptCheck="ReceiptCheck",u.Redo="Redo",u.Refresh="Refresh",u.Refresh2="Refresh2",u.Refresh3="Refresh3",u.Repeat="Repeat",u.Replace="Replace",u.Replay="Replay",u.Restore="Restore",u.Rocket="Rocket",u.RoundChart="RoundChart",u.RoundChart2="RoundChart2",u.Route="Route",u.Save="Save",u.ScanDots="ScanDots",u.Scissors="Scissors",u.Search="Search",u.Send="Send",u.Server="Server",u.Settings="Settings",u.Settings2="Settings2",u.Share="Share",u.ShieldLightning="ShieldLightning",u.ShieldPlus="ShieldPlus",u.ShieldRemove="ShieldRemove",u.ShoppingBag="ShoppingBag",u.ShoppingCart="ShoppingCart",u.Shrink="Shrink",u.Shuffle="Shuffle",u.SkipForward="SkipForward",u.SlashCircle="SlashCircle",u.SlashOctagon="SlashOctagon",u.SocialAndroid="SocialAndroid",u.SocialApple="SocialApple",u.SocialGithub="SocialGithub",u.SocialGlobe="SocialGlobe",u.SocialGoogle="SocialGoogle",u.SocialInstagram="SocialInstagram",u.SocialLinkedin="SocialLinkedin",u.SocialMastercard="SocialMastercard",u.SocialReact="SocialReact",u.SocialVisa="SocialVisa",u.SocialX="SocialX",u.Speedometer="Speedometer",u.Stairs="Stairs",u.Star="Star",u.StarFill="StarFill",u.StarHalf="StarHalf",u.Stars="Stars",u.Stop="Stop",u.Strikethrough="Strikethrough",u.Sun="Sun",u.Swap="Swap",u.SwitchHorizontal="SwitchHorizontal",u.Table="Table",u.Tag="Tag",u.Target="Target",u.Target2="Target2",u.TextFormat="TextFormat",u.TextFormat2="TextFormat2",u.TextHighlight="TextHighlight",u.ThumbsDown="ThumbsDown",u.ThumbsUp="ThumbsUp",u.ThumbsUpFill="ThumbsUpFill",u.Toggle="Toggle",u.Translate="Translate",u.Trash="Trash",u.Trending="Trending",u.Underline="Underline",u.Undo="Undo",u.Unlock="Unlock",u.UploadCloud="UploadCloud",u.User="User",u.UserCheck="UserCheck",u.UserDollar="UserDollar",u.UserEdit="UserEdit",u.UserPlus="UserPlus",u.UserRight="UserRight",u.Users="Users",u.UserSquare="UserSquare",u.UsersUp="UsersUp",u.UserVoice="UserVoice",u.Video="Video",u.VideoChat="VideoChat",u.Volume="Volume",u.VolumeDown="VolumeDown",u.VolumeMute="VolumeMute",u.Wrench="Wrench",u.X="X",u.XCircle="XCircle",u.XCircleFill="XCircleFill",u.XSquare="XSquare",u.ZoomIn="ZoomIn",u.ZoomOut="ZoomOut",u))(yt||{});import{jsx as f}from"react/jsx-runtime";function ye({name:e,...t}){switch(e){case"48AlertFeatured":return f(fs,{...t});case"48SuccessFeatured":return f(hs,{...t});case"AlertCircle":return f(Ro,{...t});case"AlertOctagon":return f(vs,{...t});case"AlertTriangle":return f(ys,{...t});case"ArrowBarDown":return f(Ps,{...t});case"ArrowBarLeft":return f(Ss,{...t});case"ArrowBarRight":return f(ws,{...t});case"ArrowBarToDown":return f(Ms,{...t});case"ArrowBarToLeft":return f(ks,{...t});case"ArrowBarToRight":return f(Bs,{...t});case"ArrowBarToUp":return f(Ns,{...t});case"ArrowBarUp":return f(Ts,{...t});case"Apps":return f(Is,{...t});case"Archive":return f(xs,{...t});case"ArrowDown":return f(Ls,{...t});case"ArrowDownLeft":return f(Es,{...t});case"ArrowDownNarrow":return f(Fs,{...t});case"ArrowDownRight":return f(As,{...t});case"ArrowLeft":return f(_s,{...t});case"ArrowLeftNarrow":return f(Vs,{...t});case"ArrowRight":return f(Us,{...t});case"ArrowRightNarrow":return f($s,{...t});case"ArrowUp":return f(qs,{...t});case"ArrowUpLeft":return f(Xs,{...t});case"ArrowUpNarrow":return f(Ys,{...t});case"ArrowUpRight":return f(Zs,{...t});case"Attachment":return f(Qs,{...t});case"BarChart":return f(Js,{...t});case"BarChartSquare":return f(js,{...t});case"Bell":return f(ep,{...t});case"Bold":return f(tp,{...t});case"BookOpen":return f(cp,{...t});case"Bookmark":return f(op,{...t});case"BookmarkCheck":return f(cs,{...t});case"BookmarkCheckFill":return f(is,{...t});case"BookmarkFill":return f(np,{...t});case"BookmarkMinus":return f(rp,{...t});case"BookmarkPlus":return f(ps,{...t});case"BookmarkX":return f(lp,{...t});case"BoxLines":return f(ip,{...t});case"BoxText":return f(pp,{...t});case"BracketsCheck":return f(mp,{...t});case"BracketsEllipses":return f(up,{...t});case"BrickWall":return f(fp,{...t});case"Briefcase":return f(hp,{...t});case"Building":return f(ds,{...t});case"Calculator":return f(gp,{...t});case"Calendar":return f(Rr,{...t});case"Certificate":return f(vp,{...t});case"Check":return f(Dt,{...t});case"CheckCircle":return f(Lo,{...t});case"CheckCircleBroken":return f(bp,{...t});case"CheckFill":return f(yp,{...t});case"CheckVerified":return f(Ip,{...t});case"CheckVerifiedFill":return f(Cp,{...t});case"ChevronDown":return f(Lr,{...t});case"ChevronDownDouble":return f(xp,{...t});case"ChevronDownLeft":return f(Pp,{...t});case"ChevronDownLeftDouble":return f(Sp,{...t});case"ChevronDownRight":return f(wp,{...t});case"ChevronDownRightDouble":return f(Mp,{...t});case"ChevronLeft":return f(Ft,{...t});case"ChevronLeftDouble":return f(kp,{...t});case"ChevronRight":return f(dt,{...t});case"ChevronRightDouble":return f(Er,{...t});case"ChevronSelectorVertical":return f(Bp,{...t});case"ChevronUp":return f(At,{...t});case"ChevronUpDouble":return f(Np,{...t});case"ChevronUpLeft":return f(Tp,{...t});case"ChevronUpLeftDouble":return f(Rp,{...t});case"ChevronUpRight":return f(Lp,{...t});case"ChevronUpRightDouble":return f(Ep,{...t});case"Click":return f(Dp,{...t});case"Clock":return f(Fp,{...t});case"ClockFastForward":return f(Ap,{...t});case"ClockPlay":return f(_p,{...t});case"ClockRewind":return f(zp,{...t});case"Clone":return f(Vp,{...t});case"Code":return f(Up,{...t});case"CodeBrowser":return f(Gp,{...t});case"CodeCircle":return f(Wp,{...t});case"Colors":return f(Xp,{...t});case"ColumnEdit":return f(ms,{...t});case"Copy":return f(Kp,{...t});case"Copy2":return f(Yp,{...t});case"CopyCheck":return f(Qp,{...t});case"Files":return f(Od,{...t});case"CreditCard":return f(Jp,{...t});case"Cube":return f(jp,{...t});case"CubeOutline":return f(ed,{...t});case"CursorBox":return f(Fr,{...t});case"Dataflow":return f(td,{...t});case"Dataflow2":return f(od,{...t});case"Dataflow3":return f(nd,{...t});case"DistributeHorizontal":return f(ad,{...t});case"Dollar":return f(ld,{...t});case"DollarCircle":return f(id,{...t});case"Dot":return f(sd,{...t});case"DotFill":return f(pd,{...t});case"DotsGrid":return f(dd,{...t});case"DotsHorizontal":return f(ud,{...t});case"DotsVertical":return f(kn,{...t});case"Download":return f(gd,{...t});case"Edit":return f(vd,{...t});case"Editable":return f(yd,{...t});case"Expand":return f(Id,{...t});case"ExternalLink":return f(xd,{...t});case"ExternalLink2":return f(Sd,{...t});case"Eye":return f(wd,{...t});case"EyeHidden":return f(kd,{...t});case"EyeHidden2":return f(Bd,{...t});case"FaceAngry":return f(Nd,{...t});case"FaceLaugh":return f(Td,{...t});case"FaceSmile":return f(Rd,{...t});case"File":return f(Do,{...t});case"FileCheck":return f(Ed,{...t});case"FileCsv":return f(zr,{...t});case"FileDownload":return f(Dd,{...t});case"FileJson":return f(Vr,{...t});case"FileList":return f(Fd,{...t});case"FileMusic":return f(tt,{...t});case"FilePdf":return f(Fo,{...t});case"FileSpreadsheet":return f(Ur,{...t});case"FileText":return f(_t,{...t});case"FileUpload":return f(_d,{...t});case"FileXls":return f($r,{...t});case"FileXlsx":return f(Wr,{...t});case"FileZip":return f(bt,{...t});case"Filter":return f(zd,{...t});case"Filter2":return f(qr,{...t});case"Flag":return f(Hd,{...t});case"Flag2":return f(Ud,{...t});case"FlagFill":return f(Gd,{...t});case"Focus":return f($d,{...t});case"Folder":return f(Wd,{...t});case"FolderExport":return f(qd,{...t});case"FolderImport":return f(Xd,{...t});case"GraduationCap":return f(Kd,{...t});case"GripVertical":return f(Yd,{...t});case"Hand":return f(Zd,{...t});case"HandShield":return f(Qd,{...t});case"Hash":return f(Jd,{...t});case"HeadsetMic":return f(jd,{...t});case"Heart":return f(em,{...t});case"HeartFill":return f(tm,{...t});case"House":return f(nm,{...t});case"HouseLine":return f(Kr,{...t});case"Image":return f(De,{...t});case"Image2":return f(rm,{...t});case"ImageCheck":return f(am,{...t});case"ImageOff":return f(lm,{...t});case"Import":return f(cm,{...t});case"Inbox":return f(im,{...t});case"InfoCircle":return f(pm,{...t});case"InfoHexagon":return f(mm,{...t});case"Italic":return f(fm,{...t});case"LayersMultiple":return f(gm,{...t});case"LayersSingle":return f(vm,{...t});case"Layout":return f(bm,{...t});case"Layout2":return f(Im,{...t});case"LayoutColumns":return f(Cm,{...t});case"LayoutCustom":return f(xm,{...t});case"LayoutStuffed":return f(Sm,{...t});case"LayoutTile":return f(wm,{...t});case"LifeBuoy":return f(Mm,{...t});case"Lightbulb":return f(Bm,{...t});case"Lightning":return f(Nm,{...t});case"LightningFast":return f(Tm,{...t});case"LineChartBar":return f(Lm,{...t});case"LineChartBreakoutSquare":return f(Em,{...t});case"LineChart":return f(Rm,{...t});case"LineChartUp":return f(Fm,{...t});case"Lines":return f(Am,{...t});case"LinesCheck":return f(Om,{...t});case"LinesPlay":return f(_m,{...t});case"Link":return f(Vm,{...t});case"Link2":return f(Hm,{...t});case"LinkOff":return f(Um,{...t});case"ListBullet":return f(Gm,{...t});case"ListOrder":return f($m,{...t});case"Lock":return f(qm,{...t});case"LockFill":return f(Xm,{...t});case"LogIn":return f(Ym,{...t});case"LogOut":return f(Qm,{...t});case"LogOut2":return f(jm,{...t});case"MagicWand":return f(eu,{...t});case"Mail":return f(tu,{...t});case"MailOpen":return f(ou,{...t});case"MapPin":return f(nu,{...t});case"Maximize":return f(ea,{...t});case"Maximize2":return f(ru,{...t});case"MessageCircle":return f(au,{...t});case"MessageSquare":return f(cu,{...t});case"MessageSquare2":return f(iu,{...t});case"MessageXSquare":return f(su,{...t});case"Microphone":return f(oa,{...t});case"Minimize":return f(na,{...t});case"Minimize2":return f(pu,{...t});case"MinusCircle":return f(du,{...t});case"Mobile":return f(uu,{...t});case"Monitor":return f(fu,{...t});case"Monitor2":return f(hu,{...t});case"Moon":return f(gu,{...t});case"MoonCircle":return f(vu,{...t});case"Movie":return f(mt,{...t});case"NavigationPointer":return f(bu,{...t});case"NotificationBox":return f(yu,{...t});case"Package":return f(Iu,{...t});case"Palette":return f(Cu,{...t});case"PasscodeLock":return f(xu,{...t});case"Pause":return f(ut,{...t});case"PauseCircle":return f(Su,{...t});case"PCSetup":return f(Mu,{...t});case"Pen":return f(Bu,{...t});case"PercentageCircle":return f(Nu,{...t});case"Perspective":return f(Tu,{...t});case"PhoneCall":return f(Lu,{...t});case"Pin":return f(ca,{...t});case"Play":return f(ft,{...t});case"PlayCircle":return f(Du,{...t});case"Plus":return f(ia,{...t});case"PlusCircle":return f(so,{...t});case"Printer":return f(Ou,{...t});case"Pulse":return f(_u,{...t});case"QuestionCircle":return f(sa,{...t});case"Quote":return f(Vu,{...t});case"RadioButton":return f(Hu,{...t});case"RadioButtonFill":return f(Uu,{...t});case"Receipt":return f(Gu,{...t});case"ReceiptCheck":return f($u,{...t});case"Redo":return f(Wu,{...t});case"Refresh":return f(pa,{...t});case"Refresh2":return f(qu,{...t});case"Refresh3":return f(Xu,{...t});case"Repeat":return f(Ku,{...t});case"Replace":return f(Yu,{...t});case"Replay":return f(da,{...t});case"Restore":return f(Qu,{...t});case"Rocket":return f(ju,{...t});case"RoundChart":return f(ef,{...t});case"RoundChart2":return f(tf,{...t});case"Route":return f(nf,{...t});case"Save":return f(af,{...t});case"ScanDots":return f(lf,{...t});case"Scissors":return f(ma,{...t});case"Search":return f(zt,{...t});case"Send":return f(cf,{...t});case"Server":return f(sf,{...t});case"Settings":return f(pf,{...t});case"Settings2":return f(df,{...t});case"Share":return f(mf,{...t});case"ShieldLightning":return f(uf,{...t});case"ShieldPlus":return f(hf,{...t});case"ShieldRemove":return f(vf,{...t});case"ShoppingBag":return f(bf,{...t});case"ShoppingCart":return f(yf,{...t});case"Shrink":return f(If,{...t});case"Shuffle":return f(Cf,{...t});case"SkipForward":return f(xf,{...t});case"SlashCircle":return f(Pf,{...t});case"SlashOctagon":return f(Sf,{...t});case"SocialAndroid":return f(wf,{...t});case"SocialApple":return f(Mf,{...t});case"SocialGithub":return f(kf,{...t});case"SocialGlobe":return f(Bf,{...t});case"SocialGoogle":return f(Nf,{...t});case"SocialInstagram":return f(Rf,{...t});case"SocialLinkedin":return f(Lf,{...t});case"SocialMastercard":return f(Df,{...t});case"SocialReact":return f(Ff,{...t});case"SocialVisa":return f(Af,{...t});case"SocialX":return f(Of,{...t});case"Speedometer":return f(_f,{...t});case"Stairs":return f(zf,{...t});case"Star":return f(va,{...t});case"StarFill":return f(Vf,{...t});case"StarHalf":return f(Hf,{...t});case"Stars":return f(Uf,{...t});case"Stop":return f(ba,{...t});case"Strikethrough":return f(Gf,{...t});case"Sun":return f($f,{...t});case"Swap":return f(Wf,{...t});case"SwitchHorizontal":return f(qf,{...t});case"Table":return f(Kf,{...t});case"Tag":return f(ya,{...t});case"Target":return f(Yf,{...t});case"Target2":return f(Qf,{...t});case"TextFormat":return f(jf,{...t});case"TextFormat2":return f(eh,{...t});case"TextHighlight":return f(th,{...t});case"ThumbsDown":return f(oh,{...t});case"ThumbsUp":return f(nh,{...t});case"ThumbsUpFill":return f(rh,{...t});case"Toggle":return f(ah,{...t});case"Translate":return f(lh,{...t});case"Trash":return f(ot,{...t});case"Trending":return f(ch,{...t});case"Underline":return f(ih,{...t});case"Undo":return f(sh,{...t});case"Unlock":return f(dh,{...t});case"UploadCloud":return f(_o,{...t});case"User":return f(Ca,{...t});case"UserCheck":return f(fh,{...t});case"UserDollar":return f(hh,{...t});case"UserEdit":return f(vh,{...t});case"UserPlus":return f(bh,{...t});case"UserRight":return f(yh,{...t});case"UserSquare":return f(xh,{...t});case"Users":return f(Ih,{...t});case"UsersUp":return f(Ph,{...t});case"UserVoice":return f(us,{...t});case"Video":return f(Sh,{...t});case"VideoChat":return f(Mh,{...t});case"Volume":return f(Pa,{...t});case"VolumeDown":return f(Sa,{...t});case"VolumeMute":return f(wa,{...t});case"Wrench":return f(Bh,{...t});case"X":return f(Ae,{...t});case"XCircle":return f(Nh,{...t});case"XCircleFill":return f(Th,{...t});case"XSquare":return f(Rh,{...t});case"ZoomIn":return f(Lh,{...t});case"ZoomOut":return f(Dh,{...t});default:return null}}var Mv=Do,kv={png:De,jpg:De,jpeg:De,gif:De,bmp:De,webp:De,svg:De,avif:De,heic:De,ico:De,tif:De,tiff:De,mp4:mt,mov:mt,webm:mt,avi:mt,mkv:mt,m4v:mt,ogv:mt,mp3:tt,wav:tt,ogg:tt,oga:tt,m4a:tt,aac:tt,flac:tt,weba:tt,pdf:Fo,doc:_t,docx:_t,txt:_t,rtf:_t,odt:_t,json:Vr,csv:zr,xls:$r,xlsx:Wr,ods:Ur,zip:bt,rar:bt,"7z":bt,tar:bt,gz:bt,tgz:bt};var Fh=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&kv[t]||Mv};import{cn as Ah,ColorHelpers as fw}from"@cleen/ui-core";import{forwardRef as hw}from"react";import{Fragment as vw,jsx as Ma,jsxs as bw}from"react/jsx-runtime";var gw=hw(function({iconName:t,iconSrc:n,icon:o,iconSize:l=20,header:a,color:c,children:i,classNames:d,styles:s,...p},g){let m=fw.getComputedColor(c);return Ma(ue,{ref:g,classNames:{...d,header:{...d?.header,title:Ah("cleen-flex cleen-gap-4",d?.header?.title)}},header:{...a,title:bw(vw,{children:[Ma("div",{className:Ah("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-border cleen-bg-background",d?.iconHolder),style:{...m&&{backgroundColor:wr(m,.85),color:m,borderColor:"transparent"},...s?.iconHolder},children:o||(t?Ma(ye,{name:t,className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):n?Ma("img",{src:n,alt:"Icon",className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):null)}),a?.title]})},color:c,...p,children:i&&Ma("div",{className:Ah("cleen-flex-1",d?.content),style:s?.content,children:i})})});import{cn as Hn}from"@cleen/ui-core";import{forwardRef as yw,useMemo as Iw}from"react";import{jsx as ka}from"react/jsx-runtime";var Cw=yw(function({media:t,header:n,color:o,children:l,classNames:a,styles:c,...i},d){let s=Iw(()=>{switch(t?.type){case"image":return ka("img",{...t,alt:t.alt??"Card media",className:Hn("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"video":return ka("video",{playsInline:!0,controls:!0,...t,className:Hn("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"iframe":return ka("iframe",{...t,title:t.title??"Card iframe",className:Hn("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});default:return null}},[t,a?.media,c?.media]);return ka(ue,{ref:d,color:o,classNames:{...a,container:Hn("cleen-pt-0",a?.container),header:{...a?.header,content:Hn("cleen-p-0",a?.header?.content)}},header:{...n,...s&&{content:ka("div",{className:Hn("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",a?.media?.container),style:c?.media?.container,children:s})}},...i,children:l})});import{cn as Ba}from"@cleen/ui-core";import{jsx as xc,jsxs as xw}from"react/jsx-runtime";var re=({className:e,classNames:t,style:n,styles:o,infoMessage:l,errorMessage:a,subtitle:c,...i})=>xc("div",{className:Ba("cleen",e),style:n,children:xw("div",{className:Ba(t?.container),style:o?.container,...i,children:[l&&xc("div",{className:Ba("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:o?.infoMessage,role:"note",children:l}),a&&xc("div",{className:Ba("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:o?.errorMessage,role:"alert",children:a}),c&&xc("div",{className:Ba("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:o?.subtitle,children:c})]})});import{cn as Na}from"@cleen/ui-core";import{jsx as Ta,jsxs as Pw}from"react/jsx-runtime";var ce=({required:e=!1,tooltip:t,children:n,className:o,classNames:l,style:a,styles:c,...i})=>Ta("div",{className:Na("cleen",o),style:a,children:Pw("label",{...i,className:Na("cleen-w-full cleen-flex cleen-gap-1 cleen-items-center cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-leading-6",l?.container),style:c?.container,children:[Ta("div",{className:Na({"cleen-flex-1":!e&&!t},l?.label),style:c?.label,children:n}),e&&Ta("span",{className:Na("cleen-text-primary",l?.required),style:c?.required,children:"*"}),t&&Ta(ve,{hasArrow:!0,placement:"top",label:t,color:"rgb(var(--cleen-neutral-600))",...l?.tooltip,style:c?.tooltip?.style,styles:{...c?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...c?.tooltip?.styles?.labelContainer}},children:Ta(sa,{className:Na("cleen-size-3 cleen-text-neutral-500 hover:cleen-text-neutral-900 cleen-transition-colors cleen-cursor-help",l?.questionIcon),style:c?.questionIcon})})]})});import{cn as Ht}from"@cleen/ui-core";import{forwardRef as Sw,useEffect as ww,useId as Mw,useMemo as kw,useState as Bv}from"react";import{jsx as uo,jsxs as Pc}from"react/jsx-runtime";var he=Sw(function({name:t,id:n,type:o,label:l,labelTooltip:a,defaultValue:c,value:i,files:d,disabled:s,required:p,className:g,classNames:m,style:b,styles:v,autoComplete:h="off",isFocusedBorder:y,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,uploadLabel:P="Choose a file",leftIcon:w,rightIcon:R,topRightIcon:B,inputOverlay:S,infoLabels:E,maxLengthLabel:N,minLengthLabel:M,onChange:T,...F},L){let k=i!==void 0||d!==void 0,[z,D]=Bv(c??""),[A,O]=Bv(null),V=k?i:z,G=k?d:A;ww(()=>{k||D(i??c??"")},[i,c,k]);let W=_=>{let Z=_.target.value;if(o==="file"&&_.target.files){k||O(_.target.files),T?.(_);return}(!C||Z.length<=C)&&(k||D(Z),T?.(_))},q=kw(()=>x&&M&&(V?.toString()?.length??0)<x?M(x-(V?.toString()?.length??0)):!C||!N||(V?.toString()?.length??0)/C<I?E?.subtitle:N?.(C-(V?.toString()?.length??0)),[V,C,I,E?.subtitle]),H=Mw(),U=!!(E?.errorMessage||E?.infoMessage||q),j=U?`${H}-info`:void 0;return uo("div",{className:Ht("cleen",g),style:b,children:Pc("div",{className:Ht("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-normal",m?.container),style:v?.container,children:[(l||B)&&Pc("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[uo(ce,{htmlFor:n||t,required:p,tooltip:a,className:Ht("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...v?.label,children:l}),B]}),Pc("label",{className:Ht("cleen-relative cleen-flex cleen-items-stretch cleen-bg-background cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-all cleen-duration-200 cleen-overflow-hidden focus-within:cleen-ring-4 focus-within:cleen-ring-primary-100 focus-within:cleen-ring-offset-0",{"has-[:focus]:cleen-border has-[:focus]:cleen-border-primary/30":y},s&&"cleen-bg-muted",{"cleen-cursor-pointer":o==="file"&&!s},E?.errorMessage?["cleen-border-error/70 focus-within:cleen-ring-error-bg",!s&&"hover:cleen-border-error"]:["cleen-border-border focus-within:cleen-border-primary-400",!s&&"hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary"],m?.inputContainer),style:v?.inputContainer,children:[w&&uo("div",{className:Ht("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",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.leftIconContainer),style:v?.leftIconContainer,children:w}),Pc("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[uo("input",{id:n||t,name:t,type:o,disabled:s,maxLength:C,autoComplete:h,value:V,className:Ht("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-neutral-400 sm:cleen-text-sm focus:cleen-ring-transparent focus:cleen-outline-none cleen-my-auto",w?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":w,"cleen-rounded-r-none":R,"cleen-hidden":o==="file"},s?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:v?.input,onChange:W,required:p,"aria-invalid":E?.errorMessage?!0:void 0,"aria-describedby":j,ref:L,...F}),S&&uo("div",{className:Ht("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",w?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",m?.inputOverlay),style:v?.inputOverlay,children:S}),o==="file"&&uo("p",{className:Ht("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",G&&G.length>0&&"cleen-text-foreground"),children:G&&G.length>0?Array.from(G).map(_=>_.name).join(", "):P})]}),R&&uo("div",{className:Ht("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",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.rightIconContainer),style:v?.rightIconContainer,children:R})]}),U&&uo(re,{id:j,...E,subtitle:q})]})})});import{cn as Ra,useOutsideClick as Bw}from"@cleen/ui-core";import{forwardRef as Nw,useEffect as Nv,useImperativeHandle as Tw,useMemo as Rw,useRef as Lw,useState as Sc}from"react";import{jsx as La,jsxs as Ew}from"react/jsx-runtime";var Oh=Nw(function({value:t,defaultValue:n,defaultIsEditing:o=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:i,canEdit:d=!0,onSave:s,onCancel:p,onChange:g,inputProps:m,blurOnOutsideClick:b=!0,saveOnBlur:v=!0,isLoading:h,customLoader:y=La(le,{}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:w,styles:R,...B},S){let E=t!==void 0,[N,M]=Sc(n??""),T=E?t??"":N,[F,L]=Sc(!1),k=h??F,z=Rw(()=>typeof x=="function"?x(T):x||T||i||c,[T,x,c,i]),[D,A]=Sc(o),O=l!==void 0,V=O?l:D,[G,W]=Sc(T),q=Lw(null);Tw(S,()=>({...q.current,save:U,cancel:H})),Nv(()=>{E||M(n??"")},[n,E]),Nv(()=>{V||W(T)},[T,V]);let H=async()=>{O||A(!1),a?.(!1),W(T),await p?.()},U=async()=>{if(!k){if(T===G){await p?.(),O||A(!1),a?.(!1);return}L(!0),E||M(G);try{await s?.(G),O||A(!1),a?.(!1)}finally{L(!1)}}},j=async _=>{_.key==="Enter"&&(_.preventDefault(),await U()),_.key==="Escape"&&(_.stopPropagation(),_.preventDefault(),await H()),m?.onKeyDown?.(_)};return Bw({refs:[q],enabled:b&&V,handler:async()=>{v?await U():await H()}}),La("div",{className:Ra("cleen",I),style:w,ref:q,...B,children:V?Ew("div",{className:Ra("cleen-relative cleen-h-full",P?.container),style:R?.container,children:[La(he,{value:G,onChange:_=>{W(_.target.value),g?.(_.target.value)},autoFocus:!0,placeholder:c,className:P?.input?.className,classNames:{...P?.input?.classNames,inputContainer:Ra("cleen-border-primary hover:cleen-border-primary/60",P?.input?.classNames?.inputContainer)},...R?.input,...m,onFocus:_=>{m?.onFocus?.(_),C&&_.target.select()},disabled:k||m?.disabled,onKeyDown:j}),k&&La("div",{className:Ra("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:R?.loaderContainer,children:y})]}):La("div",{onClick:()=>{d&&(O||A(!0),a?.(!0))},className:Ra("cleen-min-h-6 cleen-text-foreground",d&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!T&&"cleen-text-muted-foreground",P?.preview),style:R?.preview,children:z})})});import{cn as Un}from"@cleen/ui-core";import{forwardRef as Dw,useEffect as Tv,useId as Fw,useMemo as Aw,useRef as Ow,useState as _w}from"react";import{jsx as zo,jsxs as _h}from"react/jsx-runtime";var zh=Dw(function({name:t,id:n,value:o,defaultValue:l,label:a,labelTooltip:c,disabled:i,required:d,infoLabels:s,topRightElement:p,labelRightElement:g,textareaOverlay:m,onChange:b,minHeight:v,maxHeight:h=200,autoResize:y=!0,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,maxLengthLabel:P,minLengthLabel:w,className:R,classNames:B,style:S,styles:E,...N},M){let T=o!==void 0,[F,L]=_w(typeof l=="string"?l:""),k=Ow(null),z=M??k,D=T?o:F;Tv(()=>{T||L(o??(typeof l=="string"?l:""))},[o,l,T]);let A=_=>{_.style.height="auto";let Z=Math.min(_.scrollHeight,h);_.style.height=`${Z}px`},O=_=>{A(_.target)};Tv(()=>{!y||!k.current||A(k.current)},[y,D,h]);let V=_=>{_.preventDefault()},G=_=>{_.preventDefault();let Z=_.dataTransfer?.getData("text/plain");T?b?.(`${o??""}${Z}`):(L(pe=>`${pe}${Z}`),b?.(`${F}${Z}`))},W=_=>{let Z=_.target.value;(!C||Z.length<=C)&&(T||L(Z),b?.(Z),y&&O(_))},q=Aw(()=>x&&w&&(D?.length??0)<x?w(x-(D?.length??0)):!C||!P||(D?.toString()?.length??0)/C<I?s?.subtitle:P?.(C-(D?.toString()?.length??0)),[D,C,I,s?.subtitle]),H=Fw(),U=!!(s?.errorMessage||s?.infoMessage||q),j=U?`${H}-info`:void 0;return zo("div",{className:Un("cleen",R),style:S,children:_h("div",{className:Un("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",B?.container),style:E?.container,children:[(a||g)&&_h("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[a&&zo(ce,{htmlFor:n||t,required:d,tooltip:c,className:Un("cleen-w-full",B?.label?.className),classNames:B?.label?.classNames,...E?.label,children:a}),g&&zo("div",{className:"cleen-ml-auto",children:g})]}),_h("div",{className:Un("cleen-relative cleen-flex cleen-items-center cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-colors cleen-duration-200",s?.errorMessage?"cleen-border-error/70 hover:cleen-border-error":"cleen-border-border hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary",B?.textareaContainer),style:E?.textareaContainer,children:[p&&zo("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:p}),m&&zo("div",{className:Un("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",i?"cleen-bg-muted":"cleen-bg-background"),children:m}),zo("textarea",{id:n||t,name:t,ref:z,disabled:i,value:D,minLength:x,maxLength:C,"aria-invalid":s?.errorMessage?!0:void 0,"aria-describedby":j,className:Un("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-muted-foreground sm:cleen-text-sm cleen-text-base",i?"cleen-bg-muted cleen-text-neutral-400":"cleen-bg-background cleen-text-foreground",B?.textarea),style:{...v&&{minHeight:`${v}px`},...E?.textarea},onFocus:_=>_.currentTarget.setSelectionRange(_.currentTarget.value.length,_.currentTarget.value.length),onDragOver:V,onDrop:G,...N,onChange:W})]}),U&&zo(re,{id:j,...s,subtitle:q})]})})});import{cn as Ea,useOutsideClick as zw}from"@cleen/ui-core";import{forwardRef as Vw,useEffect as Rv,useImperativeHandle as Hw,useMemo as Uw,useRef as Gw,useState as wc}from"react";import{jsx as Da,jsxs as $w}from"react/jsx-runtime";var Vh=Vw(function({value:t,defaultValue:n,defaultIsEditing:o=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:i,canEdit:d=!0,onSave:s,onCancel:p,onChange:g,textAreaProps:m,blurOnOutsideClick:b=!0,saveOnBlur:v=!0,isLoading:h,customLoader:y=Da(le,{size:"md"}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:w,styles:R,...B},S){let E=t!==void 0,[N,M]=wc(n??""),T=E?t??"":N,[F,L]=wc(!1),k=h??F,z=Uw(()=>typeof x=="function"?x(T):x||T||i||c,[T,x,c,i]),[D,A]=wc(o),O=l!==void 0,V=O?l:D,[G,W]=wc(T),q=Gw(null);Hw(S,()=>({...q.current,save:U,cancel:H})),Rv(()=>{E||M(n??"")},[n,E]),Rv(()=>{V||W(T)},[T,V]);let H=async()=>{O||A(!1),a?.(!1),W(T),await p?.()},U=async()=>{if(!k){if(T===G){await p?.(),O||A(!1),a?.(!1);return}L(!0),E||M(G);try{await s?.(G),O||A(!1),a?.(!1)}finally{L(!1)}}},j=async _=>{_.key==="Escape"&&(_.preventDefault(),_.stopPropagation(),await H()),_.key==="Enter"&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),await U()),m?.onKeyDown?.(_)};return zw({refs:[q],enabled:b&&V,handler:async()=>{v?await U():await H()}}),Da("div",{className:Ea("cleen",I),style:w,ref:q,...B,children:V?$w("div",{className:Ea("cleen-relative cleen-h-full",P?.container),style:R?.container,children:[Da(zh,{value:G,onChange:_=>{W(_),g?.(_)},autoFocus:!0,placeholder:c,className:P?.textArea?.className,classNames:{...P?.textArea?.classNames,textareaContainer:Ea("cleen-border-primary hover:cleen-border-primary/60",P?.textArea?.classNames?.textareaContainer)},...R?.textArea,...m,onFocus:_=>{m?.onFocus?.(_),C&&_.target.select()},disabled:k||m?.disabled,onKeyDown:j}),k&&Da("div",{className:Ea("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:R?.loaderContainer,children:y})]}):Da("div",{onClick:()=>{d&&(O||A(!0),a?.(!0))},className:Ea("cleen-min-h-6 cleen-text-foreground cleen-whitespace-pre-wrap",d&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!T&&"cleen-text-muted-foreground",P?.preview),style:R?.preview,children:z})})});import"@cleen/ui-core";import{forwardRef as Ww}from"react";import{Fragment as Xw,jsx as Hh,jsxs as Kw}from"react/jsx-runtime";var qw=Ww(function({header:t,color:n,children:o,description:l,onSave:a,isDescriptionHidden:c=!1,titleProps:i,descriptionProps:d,classNames:s,styles:p,...g},m){let b=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return Hh(ue,{ref:m,color:n,header:{...t,title:Hh(Oh,{value:b??"",onSave:async v=>{await a?.("title",v)},...s?.titleTextInput,...p?.titleTextInput,...i})},classNames:s,styles:p,...g,children:(!c||o)&&Kw(Xw,{children:[Hh(Vh,{value:l??"",onSave:async v=>{await a?.("description",v)},...d,textAreaProps:d?.textAreaProps,...s?.descriptionTextInput,...p?.descriptionTextInput}),o]})})});import{cn as Fa}from"@cleen/ui-core";import{forwardRef as Yw}from"react";import{jsx as Mc}from"react/jsx-runtime";var Zw=Yw(function({type:t="button",label:n,onClick:o,containerRef:l,className:a,classNames:c,style:i,styles:d,disabled:s=!1,loaderOptions:p,isLoading:g=!1,variant:m="primary",children:b,...v},h){return Mc("div",{className:Fa("cleen",a),style:i,ref:l,children:Mc("button",{type:t,ref:h,disabled:g||s,onClick:o,className:Fa("cleen-size-full",c?.container),style:d?.container,...v,children:Mc(ue,{p:0,className:Fa("cleen-size-full cleen-group",c?.card?.className),classNames:{...c?.card?.classNames,container:Fa("focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2 cleen-size-full cleen-font-semibold cleen-transition-colors cleen-duration-200",Z1[m],c?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||g}),childrenContainer:Fa("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",c?.card?.classNames?.childrenContainer)},"aria-disabled":s||g,...d?.card,children:g?Mc(le,{size:"lg",...p,color:p?.color||Q1[m],...c?.loader,...d?.loader}):n||b})})})});import{cn as Aa,ColorHelpers as Lv,formatAudioTime as Ev}from"@cleen/ui-core";import{useWavesurfer as Qw}from"@wavesurfer/react";import{forwardRef as Jw,useCallback as jw,useRef as eM}from"react";import{jsx as Oa,jsxs as Dv}from"react/jsx-runtime";var tM={waveColor:Lv.getComputedColor("var(--cleen-neutral-200)"),progressColor:Lv.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},oM=Jw(function({url:t,options:n,className:o,classNames:l,style:a,styles:c,...i},d){let s=eM(null),{wavesurfer:p,isPlaying:g,isReady:m,currentTime:b}=Qw({...tM,...n,container:s,url:t}),v=m?p?.getDuration()??0:0,h=jw(()=>{p?.playPause()},[p]);return Oa("div",{ref:d,className:Aa("cleen",o),style:a,...i,children:Dv("div",{className:Aa("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-rounded-xl cleen-bg-surface cleen-border cleen-border-border",l?.container),style:c?.container,children:[Oa(te,{type:"button",onClick:h,disabled:!m,"aria-label":g?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:Aa("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...c?.playButton,children:g?Oa(ut,{className:"cleen-fill-current"}):Oa(ft,{className:"cleen-fill-current"})}),Oa("div",{ref:s,className:Aa("cleen-flex-1 cleen-min-w-0",l?.waveform),style:c?.waveform}),Dv("span",{className:Aa("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",l?.timestamp),style:c?.timestamp,children:[Ev(b),"\xA0/\xA0",Ev(v)]})]})})});import{ColorHelpers as nM}from"@cleen/ui-core";var Fv=nM.getComputedColor("var(--cleen-primary)"),Av="rgba(var(--cleen-primary), 0.15)",Ov={waveColor:Fv,progressColor:Fv,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var _v={startRecording:"Click to start recording"};import{cn as Ke,formatAudioTime as Dc,trimBlob as aM}from"@cleen/ui-core";import{useWavesurfer as lM}from"@wavesurfer/react";import{forwardRef as cM,useCallback as $n,useEffect as Xh,useMemo as iM,useRef as Hv,useState as Fc}from"react";function Uh(e,t,n,o){return new(n||(n=Promise))((function(l,a){function c(s){try{d(o.next(s))}catch(p){a(p)}}function i(s){try{d(o.throw(s))}catch(p){a(p)}}function d(s){var p;s.done?l(s.value):(p=s.value,p instanceof n?p:new n((function(g){g(p)}))).then(c,i)}d((o=o.apply(e,t||[])).next())}))}var kc=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let l=(...a)=>{this.un(t,l),n(...a)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},$h=class extends kc{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},Wh=class extends kc{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let t=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(t))};t()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}},Gh=100,rM=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],Bc=class e extends $h{constructor(t){var n,o,l,a,c,i;super(Object.assign(Object.assign({},t),{audioBitsPerSecond:(n=t.audioBitsPerSecond)!==null&&n!==void 0?n:128e3,scrollingWaveform:(o=t.scrollingWaveform)!==null&&o!==void 0&&o,scrollingWaveformWindow:(l=t.scrollingWaveformWindow)!==null&&l!==void 0?l:5,continuousWaveform:(a=t.continuousWaveform)!==null&&a!==void 0&&a,renderRecordedAudio:(c=t.renderRecordedAudio)===null||c===void 0||c,mediaRecorderTimeslice:(i=t.mediaRecorderTimeslice)!==null&&i!==void 0?i: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 Wh,this.subscriptions.push(this.timer.on("tick",(()=>{let d=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+d,this.emit("record-progress",this.duration)})))}static create(t){return new e(t||{})}renderMicStream(t){var n;let o=new AudioContext,l=o.createMediaStreamSource(t),a=o.createAnalyser();l.connect(a),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(a.fftSize=32);let c=a.frequencyBinCount,i=new Float32Array(c),d=0;this.wavesurfer&&((n=this.originalOptions)!==null&&n!==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 s=setInterval((()=>{var p,g,m,b;if(!this.isWaveformPaused){if(a.getFloatTimeDomainData(i),this.options.scrollingWaveform){let v=Math.floor((this.options.scrollingWaveformWindow||0)*Gh),h=0;for(let C=0;C<c;C++){let x=Math.abs(i[C]);x>h&&(h=x)}this.dataWindow||(this.dataWindow=new Float32Array(v));let y=new Float32Array(v);if(this.dataWindow&&this.dataWindow.length>0){let C=v-1,x=this.dataWindow.slice(-C);y.set(x,0)}y[v-1]=h,this.dataWindow=y}else if(this.options.continuousWaveform){if(!this.dataWindow){let h=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*Gh):((g=(p=this.wavesurfer)===null||p===void 0?void 0:p.getWidth())!==null&&g!==void 0?g:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(h)}let v=0;for(let h=0;h<c;h++){let y=Math.abs(i[h]);y>v&&(v=y)}if(d+1>this.dataWindow.length){let h=new Float32Array(2*this.dataWindow.length);h.set(this.dataWindow,0),this.dataWindow=h}this.dataWindow[d]=v,d++}else this.dataWindow=i;if(this.wavesurfer){let v=((b=(m=this.dataWindow)===null||m===void 0?void 0:m.length)!==null&&b!==void 0?b:0)/Gh;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:v).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(s),l?.disconnect(),o?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return Uh(this,void 0,void 0,(function*(){let n;this.micStream&&this.stopMic();try{n=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(l){throw new Error("Error accessing the microphone: "+l.message)}let o=this.renderMicStream(n);return this.micStream=o,this.unsubscribeDestroy=this.once("destroy",o.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",o.onEnd),this.stream=n,n}))}stopMic(){var t,n,o;(t=this.micStream)===null||t===void 0||t.onDestroy(),(n=this.unsubscribeDestroy)===null||n===void 0||n.call(this),(o=this.unsubscribeRecordEnd)===null||o===void 0||o.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(t){return Uh(this,void 0,void 0,(function*(){let n=this.stream||(yield this.startMic(t));this.dataWindow=null;let o=this.mediaRecorder||new MediaRecorder(n,{mimeType:this.options.mimeType||rM.find((c=>MediaRecorder.isTypeSupported(c))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=o,this.stopRecording();let l=[];o.ondataavailable=c=>{c.data.size>0&&l.push(c.data),this.emit("record-data-available",c.data)};let a=c=>{var i;let d=new Blob(l,{type:o.mimeType});this.emit(c,d),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(d),(i=this.wavesurfer)===null||i===void 0||i.load(this.recordedBlobUrl))};o.onpause=()=>a("record-pause"),o.onstop=()=>a("record-end"),o.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 t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="recording"}isPaused(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="paused"}isActive(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)!=="inactive"}stopRecording(){var t;this.isActive()&&((t=this.mediaRecorder)===null||t===void 0||t.stop(),this.timer.stop())}pauseRecording(){var t,n;this.isRecording()&&(this.isWaveformPaused=!0,(t=this.mediaRecorder)===null||t===void 0||t.requestData(),(n=this.mediaRecorder)===null||n===void 0||n.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var t;this.isPaused()&&(this.isWaveformPaused=!1,(t=this.mediaRecorder)===null||t===void 0||t.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit("record-resume"))}static getAvailableAudioDevices(){return Uh(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((t=>t.filter((n=>n.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 Rc=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let l=(...a)=>{this.un(t,l),n(...a)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},qh=class extends Rc{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}};function zv(e,t){let n=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[o,l]of Object.entries(t))if(o==="children"&&l)for(let[a,c]of Object.entries(l))c instanceof Node?n.appendChild(c):typeof c=="string"?n.appendChild(document.createTextNode(c)):n.appendChild(zv(a,c));else o==="style"?Object.assign(n.style,l):o==="textContent"?n.textContent=l:n.setAttribute(o,l.toString());return n}function _a(e,t,n){let o=zv(e,t||{});return n?.appendChild(o),o}function Vv(e){let t=e,n=new Set;return{get value(){return t},set(o){Object.is(t,o)||(t=o,n.forEach((l=>l(t))))},update(o){this.set(o(t))},subscribe:o=>(n.add(o),()=>n.delete(o))}}function Nc(e,t){let n,o=()=>{n&&(n(),n=void 0),n=e()},l=t.map((a=>a.subscribe(o)));return o(),()=>{n&&(n(),n=void 0),l.forEach((a=>a()))}}function Gn(e,t){let n=Vv(null),o=l=>{n.set(l)};return e.addEventListener(t,o),n._cleanup=()=>{e.removeEventListener(t,o)},n}function Vo(e){let t=e._cleanup;typeof t=="function"&&t()}function Tc(e,t={}){let{threshold:n=3,mouseButton:o=0,touchDelay:l=100}=t,a=Vv(null),c=new Map,i=matchMedia("(pointer: coarse)").matches,d=()=>{},s=p=>{if(p.button!==o||(c.set(p.pointerId,p),c.size>1))return;let g=p.clientX,m=p.clientY,b=!1,v=Date.now(),h=e.getBoundingClientRect(),{left:y,top:C}=h,x=B=>{if(B.defaultPrevented||c.size>1||i&&Date.now()-v<l)return;let S=B.clientX,E=B.clientY,N=S-g,M=E-m;(b||Math.abs(N)>n||Math.abs(M)>n)&&(B.preventDefault(),B.stopPropagation(),b||(a.set({type:"start",x:g-y,y:m-C}),b=!0),a.set({type:"move",x:S-y,y:E-C,deltaX:N,deltaY:M}),g=S,m=E)},I=B=>{if(c.delete(B.pointerId),b){let S=B.clientX,E=B.clientY;a.set({type:"end",x:S-y,y:E-C})}d()},P=B=>{c.delete(B.pointerId),B.relatedTarget&&B.relatedTarget!==document.documentElement||I(B)},w=B=>{b&&(B.stopPropagation(),B.preventDefault())},R=B=>{B.defaultPrevented||c.size>1||b&&B.preventDefault()};document.addEventListener("pointermove",x),document.addEventListener("pointerup",I),document.addEventListener("pointerout",P),document.addEventListener("pointercancel",P),document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("click",w,{capture:!0}),d=()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",P),document.removeEventListener("pointercancel",P),document.removeEventListener("touchmove",R),setTimeout((()=>{document.removeEventListener("click",w,{capture:!0})}),10)}};return e.addEventListener("pointerdown",s),{signal:a,cleanup:()=>{d(),e.removeEventListener("pointerdown",s),c.clear(),Vo(a)}}}var Lc=class extends Rc{constructor(t,n,o=0){var l,a,c,i,d,s,p,g,m,b;super(),this.totalDuration=n,this.numberOfChannels=o,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=t.id||`region-${Math.random().toString(32).slice(2)}`,this.start=this.clampPosition(t.start),this.end=this.clampPosition((l=t.end)!==null&&l!==void 0?l:t.start),this.drag=(a=t.drag)===null||a===void 0||a,this.resize=(c=t.resize)===null||c===void 0||c,this.resizeStart=(i=t.resizeStart)===null||i===void 0||i,this.resizeEnd=(d=t.resizeEnd)===null||d===void 0||d,this.color=(s=t.color)!==null&&s!==void 0?s:"rgba(0, 0, 0, 0.1)",this.minLength=(p=t.minLength)!==null&&p!==void 0?p:this.minLength,this.maxLength=(g=t.maxLength)!==null&&g!==void 0?g:this.maxLength,this.channelIdx=(m=t.channelIdx)!==null&&m!==void 0?m:-1,this.contentEditable=(b=t.contentEditable)!==null&&b!==void 0?b:this.contentEditable,this.element=this.initElement(),this.setContent(t.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(t){return Math.max(0,Math.min(this.totalDuration,t))}setPart(){var t;let n=this.start===this.end;(t=this.element)===null||t===void 0||t.setAttribute("part",`${n?"marker":"region"} ${this.id}`)}addResizeHandles(t){let n={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},o=_a("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},n),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},t),l=_a("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},n),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},t),a=Tc(o,{threshold:1}),c=Tc(l,{threshold:1}),i=Nc((()=>{let s=a.signal.value;s&&(s.type==="move"&&s.deltaX!==void 0?this.onResize(s.deltaX,"start"):s.type==="end"&&this.onEndResizing("start"))}),[a.signal]),d=Nc((()=>{let s=c.signal.value;s&&(s.type==="move"&&s.deltaX!==void 0?this.onResize(s.deltaX,"end"):s.type==="end"&&this.onEndResizing("end"))}),[c.signal]);this.subscriptions.push((()=>{i(),d(),a.cleanup(),c.cleanup()}))}removeResizeHandles(t){let n=t.querySelector('[part*="region-handle-left"]'),o=t.querySelector('[part*="region-handle-right"]');n&&t.removeChild(n),o&&t.removeChild(o)}initElement(){if(this.isRemoved)return null;let t=this.start===this.end,n=0,o=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(o=100/this.numberOfChannels,n=o*this.channelIdx);let l=_a("div",{style:{position:"absolute",top:`${n}%`,height:`${o}%`,backgroundColor:t?"none":this.color,borderLeft:t?"2px solid "+this.color:"none",borderRadius:"2px",boxSizing:"border-box",transition:"background-color 0.2s ease",cursor:this.drag?"grab":"default",pointerEvents:"all"}});return!t&&this.resize&&this.addResizeHandles(l),l}renderPosition(){if(!this.element)return;let t=this.start/this.totalDuration,n=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*t+"%",this.element.style.right=100*n+"%"}toggleCursor(t){var n;this.drag&&(!((n=this.element)===null||n===void 0)&&n.style)&&(this.element.style.cursor=t?"grabbing":"grab")}initMouseEvents(){let{element:t}=this;if(!t)return;let n=Gn(t,"click"),o=Gn(t,"mouseenter"),l=Gn(t,"mouseleave"),a=Gn(t,"dblclick"),c=Gn(t,"pointerdown"),i=Gn(t,"pointerup"),d=n.subscribe((y=>y&&this.emit("click",y))),s=o.subscribe((y=>y&&this.emit("over",y))),p=l.subscribe((y=>y&&this.emit("leave",y))),g=a.subscribe((y=>y&&this.emit("dblclick",y))),m=c.subscribe((y=>y&&this.toggleCursor(!0))),b=i.subscribe((y=>y&&this.toggleCursor(!1)));this.subscriptions.push((()=>{d(),s(),p(),g(),m(),b(),Vo(n),Vo(o),Vo(l),Vo(a),Vo(c),Vo(i)}));let v=Tc(t),h=Nc((()=>{let y=v.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")))}),[v.signal]);this.subscriptions.push((()=>{h(),v.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(t,n,o){var l;if(!(!((l=this.element)===null||l===void 0)&&l.parentElement))return;let{width:a}=this.element.parentElement.getBoundingClientRect(),c=t/a*this.totalDuration,i=n&&n!=="start"?this.start:this.start+c,d=n&&n!=="end"?this.end:this.end+c,s=o!==void 0;s&&this.updatingSide&&this.updatingSide!==n&&(this.updatingSide==="start"?i=o:d=o),i=Math.max(0,i),d=Math.min(this.totalDuration,d);let p=d-i;this.updatingSide=n;let g=p>=this.minLength&&p<=this.maxLength;i<=d&&(g||s)&&(this.start=i,this.end=d,this.renderPosition(),this.emit("update",n))}onMove(t){this.drag&&this._onUpdate(t)}onResize(t,n){this.resize&&(this.resizeStart||n!=="start")&&(this.resizeEnd||n!=="end")&&this._onUpdate(t,n)}onEndResizing(t){this.resize&&(this.emit("update-end",t),this.updatingSide=void 0)}onContentClick(t){t.stopPropagation(),t.target.focus(),this.emit("click",t)}onContentBlur(){this.emit("update-end")}_setTotalDuration(t){this.totalDuration=t,this.renderPosition()}play(t){this.emit("play",t&&this.end!==this.start?this.end:void 0)}getContent(t=!1){var n;return t?this.content||void 0:this.element instanceof HTMLElement?((n=this.content)===null||n===void 0?void 0:n.innerHTML)||void 0:""}setContent(t){var n;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(n=this.content)===null||n===void 0||n.remove(),t){if(typeof t=="string"){let o=this.start===this.end;this.content=_a("div",{style:{padding:`0.2em ${o?.2:.4}em`,display:"inline-block"},textContent:t})}else this.content=t;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=o=>this.onContentClick(o),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(t){var n,o;if(this.element){if(t.color&&(this.color=t.color,this.element.style.backgroundColor=this.color),t.drag!==void 0&&(this.drag=t.drag,this.element.style.cursor=this.drag?"grab":"default"),t.start!==void 0||t.end!==void 0){let l=this.start===this.end;this.start=this.clampPosition((n=t.start)!==null&&n!==void 0?n:this.start),this.end=this.clampPosition((o=t.end)!==null&&o!==void 0?o:l?this.start:this.end),this.renderPosition(),this.setPart()}if(t.content&&this.setContent(t.content),t.id&&(this.id=t.id,this.setPart()),t.resize!==void 0&&t.resize!==this.resize){let l=this.start===this.end;this.resize=t.resize,this.resize&&!l?this.addResizeHandles(this.element):this.removeResizeHandles(this.element)}t.resizeStart!==void 0&&(this.resizeStart=t.resizeStart),t.resizeEnd!==void 0&&(this.resizeEnd=t.resizeEnd)}}remove(){this.isRemoved=!0,this.emit("remove"),this.subscriptions.forEach((t=>t())),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()}},Ec=class e extends qh{constructor(t){super(t),this.regions=[],this.regionsContainer=this.initRegionsContainer()}static create(t){return new e(t)}onInit(){if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");this.wavesurfer.getWrapper().appendChild(this.regionsContainer),this.subscriptions.push(this.wavesurfer.on("ready",(n=>{this.regions.forEach((o=>o._setTotalDuration(n)))})));let t=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(n=>{let o=this.regions.filter((l=>l.start<=n&&(l.end===l.start?l.start+.05:l.end)>=n));o.forEach((l=>{t.includes(l)||this.emit("region-in",l)})),t.forEach((l=>{o.includes(l)||this.emit("region-out",l)})),t=o})))}initRegionsContainer(){return _a("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(t){t.content&&setTimeout((()=>{let n=t.content,o=n.getBoundingClientRect(),l=this.regions.map((a=>{if(a===t||!a.content)return 0;let c=a.content.getBoundingClientRect();return o.left<c.left+c.width&&c.left<o.left+o.width?c.height:0})).reduce(((a,c)=>a+c),0);n.style.marginTop=`${l}px`}),10)}adjustScroll(t){var n,o;if(!t.element)return;let l=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper())===null||o===void 0?void 0:o.parentElement;if(!l)return;let{clientWidth:a,scrollWidth:c}=l;if(c<=a)return;let i=l.getBoundingClientRect(),d=t.element.getBoundingClientRect(),s=d.left-i.left,p=d.right-i.left;s<0?l.scrollLeft+=s:p>a&&(l.scrollLeft+=p-a)}virtualAppend(t,n,o){let l=()=>{if(!this.wavesurfer)return;let a=this.wavesurfer.getWidth(),c=this.wavesurfer.getScroll(),i=n.clientWidth,d=this.wavesurfer.getDuration(),s=Math.round(t.start/d*i),p=s+(Math.round((t.end-t.start)/d*i)||1)>c&&s<c+a;p&&!o.parentElement?n.appendChild(o):!p&&o.parentElement&&o.remove()};setTimeout((()=>{if(!this.wavesurfer||!t.element)return;l();let a=this.wavesurfer.on("scroll",l),c=this.wavesurfer.on("zoom",l),i=this.wavesurfer.on("resize",l);this.subscriptions.push(a,c,i),t.once("remove",(()=>{a(),c(),i()}))}),0)}saveRegion(t){if(!t.element)return;this.virtualAppend(t,this.regionsContainer,t.element),this.avoidOverlapping(t),this.regions.push(t);let n=[t.on("update",(o=>{o||this.adjustScroll(t),this.emit("region-update",t,o)})),t.on("update-end",(o=>{this.avoidOverlapping(t),this.emit("region-updated",t,o)})),t.on("play",(o=>{var l;(l=this.wavesurfer)===null||l===void 0||l.play(t.start,o)})),t.on("click",(o=>{this.emit("region-clicked",t,o)})),t.on("dblclick",(o=>{this.emit("region-double-clicked",t,o)})),t.on("content-changed",(()=>{this.emit("region-content-changed",t)})),t.once("remove",(()=>{n.forEach((o=>o())),this.regions=this.regions.filter((o=>o!==t)),this.emit("region-removed",t)}))];this.subscriptions.push(...n),this.emit("region-created",t)}addRegion(t){var n,o;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let l=this.wavesurfer.getDuration(),a=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getDecodedData())===null||o===void 0?void 0:o.numberOfChannels,c=new Lc(t,l,a);return this.emit("region-initialized",c),l?this.saveRegion(c):this.subscriptions.push(this.wavesurfer.once("ready",(i=>{c._setTotalDuration(i),this.saveRegion(c)}))),c}enableDragSelection(t,n=3){var o;let l=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper();if(!(l&&l instanceof HTMLElement))return()=>{};let a=null,c=0,i=0,d=Tc(l,{threshold:n}),s=Nc((()=>{var p,g;let m=d.signal.value;if(m)if(m.type==="start"){if(c=m.x,!this.wavesurfer)return;let b=this.wavesurfer.getDuration(),v=(g=(p=this.wavesurfer)===null||p===void 0?void 0:p.getDecodedData())===null||g===void 0?void 0:g.numberOfChannels,{width:h}=this.wavesurfer.getWrapper().getBoundingClientRect();i=c/h*b;let y=m.x/h*b,C=(m.x+5)/h*b;a=new Lc(Object.assign(Object.assign({},t),{start:y,end:C}),b,v),this.emit("region-initialized",a),a.element&&this.regionsContainer.appendChild(a.element)}else m.type==="move"&&m.deltaX!==void 0?a&&a._onUpdate(m.deltaX,m.x>c?"end":"start",i):m.type==="end"&&a&&(this.saveRegion(a),a.updatingSide=void 0,a=null)}),[d.signal]);return()=>{s(),d.cleanup()}}clearRegions(){this.regions.slice().forEach((t=>t.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as pM,jsx as Re,jsxs as za}from"react/jsx-runtime";var sM=cM(function({onFinalize:t,recordOptions:n,options:o,labels:l=_v,className:a,classNames:c,style:i,styles:d,...s},p){let g=Hv(null),[m,b]=Fc("idle"),[v,h]=Fc(null),[y,C]=Fc(null),[x,I]=Fc(!1),P=Hv("idle");P.current=m;let w=iM(()=>[Bc.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...n}),Ec.create()],[]),[R,B]=w,{wavesurfer:S,isPlaying:E,isReady:N,currentTime:M}=lM({...Ov,...o,container:g,plugins:w}),T=N?S?.getDuration()??0:0;Xh(()=>{let V=[R.on("record-start",()=>b("recording")),R.on("record-end",G=>{b("recorded"),h(G)}),B.on("region-clicked",(G,W)=>{W.stopPropagation(),G.play(!0)})];return()=>V.forEach(G=>G?.())},[B,R]),Xh(()=>S?S.on("ready",()=>{if(P.current!=="recorded")return;let G=S.getDuration();B.clearRegions();let W=B.addRegion({start:0,end:G,color:o?.regionColor??Av,drag:!1,resize:!0});C({start:W.start,end:W.end})}):void 0,[S,B,o]),Xh(()=>B.on("region-updated",G=>{C({start:G.start,end:G.end})}),[B]);let F=$n(async()=>{await R.startRecording()},[R]),L=$n(()=>{R.stopRecording()},[R]),k=$n(()=>{S?.playPause()},[S]),z=$n(async()=>{if(!(!v||!y||!S)){I(!0);try{let V=await aM(v,y.start,y.end),G=URL.createObjectURL(V);h(V),S.load(G)}finally{I(!1)}}},[v,y,S]),D=$n(()=>{B.clearRegions(),S?.empty(),h(null),C(null),b("idle")},[S,B]),A=$n(()=>{if(v){let V=URL.createObjectURL(v);t?.(v,V)}},[t,v]),O=!y||y.start<=0&&y.end>=T;return Re("div",{ref:p,className:Ke("cleen wavesurfer-handle",a),style:i,...s,children:za("div",{className:Ke("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",c?.container),style:d?.container,children:[m==="idle"&&za(pM,{children:[Re("button",{type:"button",onClick:F,"aria-label":"Start recording",className:Ke("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.startButton),style:d?.startButton,children:Re(oa,{className:"cleen-size-8 cleen-text-primary"})}),Re("p",{className:Ke("cleen-text-neutral-600 cleen-text-sm cleen-select-none",c?.startLabel),style:d?.startLabel,children:l.startRecording})]}),m==="recording"&&Re("button",{type:"button",onClick:L,"aria-label":"Stop recording",className:Ke("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.stopButton),style:d?.stopButton,children:Re(ba,{className:"cleen-size-8 cleen-text-primary"})}),Re("div",{ref:g,className:Ke("cleen-w-full cleen-min-w-0 cleen-waveform",m==="idle"&&"cleen-hidden",c?.waveform),style:d?.waveform}),m==="recorded"&&za("div",{className:Ke("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",c?.recordedContainer),style:d?.recordedContainer,children:[Re(te,{type:"button",onClick:k,disabled:!N,"aria-label":E?"Pause":"Play",className:c?.playPauseButton?.className,classNames:{...c?.playPauseButton?.classNames,container:Ke("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.playPauseButton?.classNames?.container)},...d?.playPauseButton,children:E?Re(ut,{className:"cleen-fill-current"}):Re(ft,{className:"cleen-fill-current"})}),za("span",{className:Ke("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.timestamp),style:d?.timestamp,children:[Dc(M),"\xA0/\xA0",Dc(T)]}),Re("span",{className:"cleen-flex-1"}),!O&&y&&za("span",{className:Ke("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.trimmedTimestamp),style:d?.trimmedTimestamp,children:[Dc(y.start),"\u2013",Dc(y.end)]}),Re(te,{type:"button",onClick:D,variant:"secondary","aria-label":"Discard recording",className:c?.discardButton?.className,classNames:{...c?.discardButton?.classNames,container:Ke("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.discardButton?.classNames?.container)},...d?.discardButton,children:Re(ot,{className:"cleen-text-error"})}),Re(te,{type:"button",onClick:z,disabled:O||x||!N,"aria-label":"Apply trim",variant:"secondary",className:c?.trimButton?.className,classNames:{...c?.trimButton?.classNames,container:Ke("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.trimButton?.classNames?.container)},...d?.trimButton,children:Re(ma,{})}),Re(te,{type:"button",onClick:A,"aria-label":"Finalize recording",className:c?.finalizeButton?.className,classNames:{...c?.finalizeButton?.classNames,container:Ke("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.finalizeButton?.classNames?.container)},...d?.finalizeButton,children:Re(Dt,{})})]})]})})});import{cn as Ac}from"@cleen/ui-core";import{forwardRef as dM,useMemo as mM}from"react";var Uv={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 Va}from"react/jsx-runtime";var Oc=dM(function({title:t,name:n,src:o,alt:l,size:a="md",initialsLength:c=2,isSelected:i=!1,showBorder:d=!1,fallback:s=Va(Ca,{}),className:p,classNames:g,style:m,styles:b,onClick:v,...h},y){let C=mM(()=>(c===2?n?.split(" ").map(x=>x.charAt(0).toUpperCase()).join("").slice(0,c):n?.charAt(0).toUpperCase())||s,[n,c,s]);return Va("div",{className:Ac("cleen",p),style:m,ref:y,...h,children:Va("div",{onClick:v,className:Ac("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof a=="string"&&Uv[a],{"cleen-border-2 cleen-border-white":d,"cleen-cursor-pointer":!!v},g?.avatar,d&&i&&["cleen-border-primary",g?.avatarSelected]),style:{...typeof a=="number"&&{width:a,height:a,fontSize:a*.4,lineHeight:`${a}px`},...b?.avatar,...d&&i&&b?.avatarSelected},title:t||n,children:o?Va("img",{src:o,alt:l||n,className:Ac("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",g?.image),style:b?.image}):Va("span",{className:Ac("cleen-select-none cleen-text-neutral-700",g?.fallback),style:b?.fallback,children:C})})})});import{cn as Gv}from"@cleen/ui-core";import{forwardRef as uM}from"react";import{jsx as Kh,jsxs as hM}from"react/jsx-runtime";var fM=uM(function({avatars:t,size:n="md",selectedAvatars:o=[],onAvatarToggle:l,gap:a=4,maxVisible:c,maxExtra:i=99,showBorder:d=!0,initialsLength:s,fallback:p,className:g,classNames:m,style:b,styles:v,...h},y){let C=c?t?.slice(0,c):t,x=c&&t&&t.length>c?Math.min(t.length-c,i):0;return Kh("div",{className:Gv("cleen",g),style:b,ref:y,...h,children:hM("div",{className:Gv("cleen-flex cleen-items-center",m?.row),style:{gap:a,...v?.row},children:[C?.map((I,P)=>{let w=o.includes(I?.id??"");return Kh(Oc,{name:I.name,src:I.src,size:n,isSelected:w,showBorder:d,initialsLength:s,fallback:p,onClick:()=>l?.(I.id??""),...m?.avatar,style:{zIndex:C.length-P,...v?.avatar?.style},styles:v?.avatar?.styles,...I},I.id||P)}),x>0&&Kh(Oc,{size:n,fallback:`+${x}`,...m?.extra,...v?.extra})]})})});import{cn as fo}from"@cleen/ui-core";import{forwardRef as gM}from"react";import{Link as $v}from"react-router-dom";import{jsx as Ha,jsxs as _c}from"react/jsx-runtime";var vM=gM(function({root:t={path:"/",icon:Ha(Kr,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:n,className:o,classNames:l,style:a,styles:c,...i},d){return!n||n.length===0?null:Ha("div",{className:fo("cleen",o),style:a,ref:d,...i,children:Ha("nav",{className:fo("cleen-hidden sm:cleen-flex",l?.container),style:c?.container,"aria-label":"Breadcrumb",children:_c("ol",{role:"list",className:fo("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:c?.list,children:[t&&Ha("li",{className:fo("cleen-flex cleen-items-center",l?.rootItem),style:c?.rootItem,children:_c($v,{to:t?.path,className:fo("cleen-text-sm cleen-text-neutral-400 cleen-flex cleen-items-center cleen-gap-2 cleen-transition-colors cleen-duration-200 hover:cleen-text-neutral-600",l?.rootLink),style:c?.rootLink,"aria-current":"page",children:[t?.icon,t?.label]})}),n.map(({path:s,icon:p,label:g,id:m},b)=>{let v=b===n.length-1,h=g||s.charAt(0).toUpperCase()+s.slice(1);return _c("li",{className:fo("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:c?.item,children:[(t||!t&&b!==0)&&Ha(dt,{className:fo("cleen-h-5 cleen-w-5 cleen-text-neutral-300",l?.chevron),style:c?.chevron,"aria-hidden":"true"}),_c($v,{to:s,className:fo("cleen-transition-colors cleen-duration-200 hover:cleen-text-primary cleen-text-sm cleen-flex cleen-items-center cleen-gap-2",v?"cleen-rounded-md cleen-bg-neutral-50 cleen-py-1 cleen-px-2 cleen-text-neutral-700 cleen-font-semibold":"cleen-text-neutral-600 cleen-font-medium",l?.link),style:c?.link,"aria-current":v?"page":void 0,children:[p,h]})]},m||s)})]})})})});var zc=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:n,max:o}=t,l=new Date,a=new Date(l.getFullYear(),l.getMonth(),l.getDate());if(n){let c=n==="today"?a:n;if(c>=e)return c}if(o){let c=o==="today"?a:o;if(c<=e)return c}return e};import{cn as Vc}from"@cleen/ui-core";import{forwardRef as bM,useState as Yh}from"react";import{DayPicker as Wv,MonthGrid as yM}from"react-day-picker";import{Fragment as IM,jsx as Ho,jsxs as Qh}from"react/jsx-runtime";var Zh=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),Jh=bM(function({label:t,labelTooltip:n,infoLabels:o,required:l,withDateInput:a=!1,withTodayButton:c=!1,selected:i,onSelect:d,month:s,labels:p,className:g,style:m,classNames:b,styles:v,mode:h="single",min:y,max:C,disabled:x,disabledDates:I,components:P,...w},R){let B=i!==void 0,S=h==="single",[E,N]=Yh(),[M,T]=Yh(),F=B?i:S?E:M,[L,k]=Yh(s),z=(O,V)=>{B||(S&&(O===void 0||O instanceof Date)?N(O):S||T(O)),d?.(O,V)},D={MonthGrid:O=>Qh(IM,{children:[(c||a)&&Qh("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[a&&Ho(he,{value:h==="single"?Zh(F):F?.from||F?.to?`${Zh(F?.from)??"..."} - ${Zh(F?.to)??"..."}`:void 0,placeholder:p?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),c&&Ho(te,{variant:"secondary",onClick:()=>k(new Date),children:p?.today??"Today"})]}),Ho(yM,{...O})]}),...P},A={navLayout:"around",...w,className:Vc("cleen-text-foreground",b?.calendar?.className),classNames:{...b?.calendar?.classNames,nav:Vc("cleen-text-error",b?.calendar?.classNames?.nav)},disabled:y||C?{before:y==="today"?new Date:y,after:C==="today"?new Date:C}:I||x,components:D,month:L,onMonthChange:k,...v?.calendar};return Qh("div",{ref:R,className:Vc("cleen",g),style:m,children:[t&&Ho(ce,{required:l,tooltip:n,className:Vc("cleen-mb-1.5",b?.label?.className),classNames:b?.label?.classNames,...v?.label,children:t}),S?Ho(Wv,{mode:"single",...A,selected:F,onSelect:(O,V)=>{if(y||C){z(zc(O,{min:y,max:C}),V);return}z(O,V)}}):Ho(Wv,{mode:"range",...A,selected:F,onSelect:(O,V)=>{if(y||C){z({from:zc(O?.from,{min:y,max:C}),to:zc(O?.to,{min:y,max:C})},V);return}z(O,V)}}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Ho(re,{...o})]})});import{cn as Wn,useOutsideClick as CM,usePositionClose as xM,ZIndex as PM}from"@cleen/ui-core";import{forwardRef as SM,useEffect as wM,useRef as qv,useState as MM}from"react";import{createPortal as kM}from"react-dom";import{jsx as Uo,jsxs as Xv}from"react/jsx-runtime";var Ua=SM(function({type:t="button",required:n,label:o,title:l,titleTooltip:a,disabled:c=!1,leftIcon:i,rightIcon:d=Uo(Fr,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:s=!0,fullWidthDropdown:p,offset:g=4,isOpen:m,onOpenChange:b,keepOpenOnClickContent:v=!0,zIndex:h=PM.DROPDOWN,infoLabels:y,className:C,classNames:x,style:I,styles:P,children:w,...R},B){let[S,E]=MM(!1),N=m!==void 0?m:S,M=qv(null),T=qv(null),{positionStyles:F,isMounted:L}=xM({triggerRef:T,targetRef:M,position:"bottom-left",isOpen:N,offset:g});CM({refs:[M,T],handler:()=>{E(!1),b?.(!1)},enabled:N}),wM(()=>{let D=A=>{A.key==="Escape"&&N&&(E(!1),b?.(!1))};return document.addEventListener("keydown",D),()=>{document.removeEventListener("keydown",D)}},[N,b]);let k=()=>{let D=!N;m===void 0&&E(D),b?.(D)},z=()=>{v||(m===void 0&&E(!1),b?.(!1))};return Xv("div",{className:Wn("cleen",C),style:I,ref:B,...R,children:[l&&Uo(ce,{required:n,tooltip:a,className:Wn("cleen-mb-1.5",x?.title?.className),classNames:x?.title?.classNames,...P?.title,children:l}),Uo("div",{className:Wn("cleen-inline-block cleen-relative",s&&"cleen-w-full"),ref:T,children:Xv("button",{type:t,className:Wn("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-border cleen-rounded-md cleen-w-full cleen-text-foreground cleen-text-base cleen-transition-colors cleen-duration-200 hover:cleen-bg-neutral-25 hover:cleen-border-muted-foreground",{"cleen-w-full cleen-flex-1":s,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":c},s&&"cleen-w-full",x?.trigger),style:P?.trigger,disabled:c,"aria-haspopup":"dialog","aria-expanded":N,onClick:k,children:[i,Uo("div",{className:Wn("cleen-flex-1 cleen-text-left",x?.label),style:P?.label,children:o}),d]})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&Uo(re,{...y}),w&&N&&kM(Uo("div",{className:"cleen",children:Uo("div",{ref:M,className:Wn("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!L},x?.dropdown),style:{zIndex:h,top:`${F.top}px`,left:`${F.left}px`,minWidth:p&&T.current?.offsetWidth?`${T.current.offsetWidth}px`:void 0,...P?.dropdown},onClick:z,children:w})}),document.body)]})});import{cn as Kv}from"@cleen/ui-core";import{forwardRef as BM,useMemo as NM,useState as Hc}from"react";import{jsx as Go,jsxs as Yv}from"react/jsx-runtime";var TM=BM(function({label:t,placeholder:n,infoLabels:o,required:l,selected:a,onSelect:c,onSelectInternal:i,leftIcon:d,rightIcon:s=Go(Rr,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:p,style:g,classNames:m,styles:b,mode:v="single",min:h,max:y,disabled:C,disabledDates:x,...I},P){let w=a!==void 0,R=v==="single",[B,S]=Hc(!1),[E,N]=Hc(),[M,T]=Hc(),F=w?a:R?E:M,[L,k]=Hc(),z=A=>{w||(R&&(A===void 0||A instanceof Date)?N(A):R||T(A)),c?.(A)},D=NM(()=>{if(!F)return n;if(R)return F?.toLocaleDateString();{let A=F;if(A.from&&A.to)return`${A.from.toLocaleDateString()} - ${A.to.toLocaleDateString()}`;if(A.from)return A.from.toLocaleDateString()}return n},[n,F,R]);return Yv("div",{ref:P,className:Kv("cleen",p),style:g,children:[Go(Ua,{title:t,label:D,isOpen:B,onOpenChange:A=>{k(F),S(A)},leftIcon:d,rightIcon:s,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:Kv("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:l,disabled:C,...b?.dropdown,children:Go(ue,{footer:{hasDivider:!0,content:Yv("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[Go(te,{variant:"secondary",onClick:()=>S(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),Go(te,{onClick:()=>{z(L),S(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...b?.card,children:Go(Jh,{mode:v,...I,selected:L,onSelect:(A,O)=>k(i?.(A,O)??A),min:h,max:y,disabledDates:x,...m?.calendar,...b?.calendar})})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Go(re,{...o})]})});import"react";import{cn as qn}from"@cleen/ui-core";import RM from"embla-carousel-auto-scroll";import LM from"embla-carousel-autoplay";import EM from"embla-carousel-react";import{forwardRef as DM,useEffect as FM,useMemo as Zv,useState as Qv}from"react";import{jsx as $o,jsxs as OM}from"react/jsx-runtime";var AM=DM(function({options:t,slideAmount:n=3,slideSize:o,prevBtn:l,nextBtn:a,autoPlay:c=!1,autoPlayOptions:i,autoScroll:d=!1,autoScrollOptions:s,children:p,className:g,classNames:m,style:b,styles:v,...h},y){let C=Zv(()=>{let T=[];return c&&T.push(LM(i)),d&&T.push(RM(s)),T},[c,d,i,s]),[x,I]=EM({skipSnaps:!0,...t},C),[P,w]=Qv(!0),[R,B]=Qv(!0),S=()=>I?.scrollPrev(),E=()=>I?.scrollNext(),N=T=>{w(!T?.canScrollPrev()),B(!T?.canScrollNext())};FM(()=>{I&&(N(I),I.on("reInit",N),I.on("select",N))},[I]);let M=Zv(()=>o?`${o}%`:`${100/n}%`,[o,n]);return $o("div",{className:qn("cleen",g),style:b,ref:y,...h,children:OM("div",{className:qn("cleen-flex cleen-gap-2",m?.container),style:v?.container,children:[$o("button",{className:qn("cleen-text-foreground",m?.prevBtn,P&&"cleen-opacity-50"),onClick:S,disabled:P,style:v?.prevBtn,children:l||$o(Ft,{})}),$o("div",{className:qn("cleen-flex-1 cleen-overflow-hidden",m?.viewport),style:v?.viewport,ref:x,children:$o("div",{className:qn("cleen-flex [&>*]:cleen-flex-[0_0] cleen-gap-2 [&>*]:cleen-min-w-0 cleen-touch-pinch-zoom [&>*]:cleen-basis-[var(--cleen-carousel-slide-size)]",m?.list),style:{...v?.list,"--cleen-carousel-slide-size":M},children:p})}),$o("button",{className:qn("cleen-text-foreground",m?.nextBtn,R&&"cleen-opacity-50"),onClick:E,disabled:R,style:v?.nextBtn,children:a||$o(dt,{})})]})})});import{cn as Wo}from"@cleen/ui-core";import{forwardRef as _M,useEffect as eb,useId as zM,useRef as VM,useState as HM}from"react";var Jv={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)]"},jv={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 UM,jsx as It,jsxs as Uc}from"react/jsx-runtime";var Ga=_M(function({id:t,name:n,required:o,checked:l,defaultChecked:a=!1,className:c,classNames:i,style:d,styles:s,onChange:p,disabled:g,title:m,titleTooltip:b,label:v,sublabel:h,variant:y="primary",allowIndeterminate:C=!1,fullTriggerArea:x=!1,infoLabels:I,inputRef:P,...w},R){let B=zM(),S=t??B,E=typeof l=="boolean"||l===null,[N,M]=HM(a),T=VM(null),F=A=>{T.current=A,P&&(P.current=A)};eb(()=>{E||M(a)},[a,E]);let L=E?l:N;eb(()=>{T.current&&(T.current.indeterminate=C&&L===null)},[C,L]);let k=A=>{let O;if(C)switch(L){case!0:O=null;break;case!1:O=!0;break;default:O=!1;break}else O=!L;E||M(O),p?.({...A,target:{...A.target,checked:O}})},z=Uc(UM,{children:[Uc("label",{className:Wo("cleen-bg-background cleen-transition-all cleen-duration-200 hover:cleen-bg-surface hover:cleen-shadow-[0px_0px_0px_4px_rgb(var(--cleen-neutral-100))] cleen-border cleen-border-neutral-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",{[Jv[y]]:L,[jv[y]]:L===null},g&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:s?.checkbox,children:[It("input",{ref:F,type:"checkbox",disabled:g,className:"cleen-sr-only",checked:L===!0,onChange:k,id:S,name:n,...w}),L===null?It("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?It(Dt,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(v||h)&&Uc("div",{children:[It("label",{htmlFor:S,className:Wo("cleen-block cleen-text-foreground",i?.label),style:s?.label,children:v}),It("label",{htmlFor:S,className:Wo("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:s?.sublabel,children:h})]})]}),D={className:Wo("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":g},i?.checkboxContainer),style:s?.checkboxContainer};return It("div",{className:Wo("cleen",c),style:d,ref:R,children:Uc("div",{className:Wo(i?.container),style:s?.container,children:[m&&It(ce,{htmlFor:S,required:o,tooltip:b,className:Wo("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...s?.title,children:m}),x?It("div",{...D,onClick:A=>{A.target instanceof Element&&!A.target.closest("label")&&T.current?.click()},children:z}):It("div",{...D,children:z}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&It(re,{...I})]})})});import{cn as $a}from"@cleen/ui-core";import{forwardRef as GM,useId as $M,useMemo as WM,useState as qM}from"react";import{jsx as Xn,jsxs as KM}from"react/jsx-runtime";var XM=GM(function({id:t,required:n,label:o,labelTooltip:l,checkboxes:a,allowIndeterminate:c,infoLabels:i,requiresAtLeastOneOptions:d,classNames:s,styles:p,onChange:g,...m},b){let v=$M(),h=t??v,[y,C]=qM(!1),x=WM(()=>d&&y&&a?.every(P=>P.checked===!1)?d.title:i?.errorMessage,[d,i?.errorMessage,a,y]),I=(P,w)=>{let R={...w,checked:P.target.checked},B;a&&w?.id&&(B=[...a].map(S=>S.id===w.id?R:S)),g?.(R,B),C(!0)};return Xn("div",{className:$a("cleen"),...m,ref:b,children:KM("div",{className:$a("cleen-flex cleen-flex-col cleen-gap-2",s?.container),style:p?.container,children:[o&&Xn(ce,{htmlFor:h,required:n,tooltip:l,className:$a("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...p?.label,children:o}),Xn("div",{className:$a("cleen-flex cleen-flex-col cleen-gap-3",s?.checkboxes),style:p?.checkboxes,children:a?.map((P,w)=>Xn("div",{className:$a("cleen-flex",s?.checkboxContainer),style:p?.checkboxContainer,children:Xn(Ga,{allowIndeterminate:c,...P,id:`${h}-${w}`,fullTriggerArea:!0,onChange:R=>I(R,P)})},P.id))}),(x||i?.infoMessage||i?.subtitle)&&Xn(re,{...i,errorMessage:x})]})})});import{cn as qo}from"@cleen/ui-core";import{forwardRef as YM,useState as tb}from"react";import{jsx as Kn,jsxs as ob}from"react/jsx-runtime";var nb=YM(({sections:e,defaultOpenIndex:t,allowExpandAll:n=!1,className:o,classNames:l,style:a,styles:c,...i},d)=>{let[s,p]=tb(t??null),[g,m]=tb(()=>new Set(e.map((h,y)=>y))),b=h=>n?g.has(h):s===h,v=(h,y)=>{y.onClick?.(),y.items?.length&&(n?m(C=>{let x=new Set(C);return x.has(h)?x.delete(h):x.add(h),x}):p(s===h?null:h))};return Kn("div",{ref:d,className:qo("cleen",o),style:{...a,width:"100%"},...i,children:Kn("div",{className:qo("cleen-w-full",l?.container),style:c?.container,children:e.map((h,y)=>ob("div",{className:qo("cleen-mb-3",l?.section),style:c?.section,children:[ob("div",{onClick:()=>v(y,h),className:qo("cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-font-medium cleen-text-md cleen-text-foreground cleen-p-2 cleen-rounded-lg cleen-cursor-pointer hover:cleen-bg-muted cleen-transition-colors",l?.sectionHeader),style:c?.sectionHeader,children:[Kn("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:h?.title}),h?.items?.length?Kn(At,{className:qo("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!b(y)})}):null]}),b(y)&&h?.items&&Kn("div",{className:qo("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",l?.sectionBody),style:c?.sectionBody,children:h?.items?.map((C,x)=>Kn("div",{className:qo("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-foreground cleen-cursor-pointer hover:cleen-bg-muted cleen-transition-colors",l?.item),style:c?.item,onClick:C?.onClick,children:C?.content},C?.key??x))})]},h?.key??y))})})});nb.displayName="Collapsible";function jh(e){let t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?{r:Number(t[1]),g:Number(t[2]),b:Number(t[3]),a:t[4]!==void 0?Number(t[4]):1}:{r:0,g:0,b:0,a:1}}function rb(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as Gc}from"@cleen/ui-core";import{useEffect as ZM,useState as QM}from"react";import{HexAlphaColorPicker as JM,RgbaColorPicker as jM}from"react-colorful";import{jsx as Yn,jsxs as t3}from"react/jsx-runtime";var ab="rgba(0, 0, 0, 1)",lb="#000000ff",e3=({required:e,value:t,defaultValue:n,onChange:o,colorModel:l="rgba",disabled:a,label:c,labelTooltip:i,className:d,classNames:s,style:p,styles:g,infoLabels:m,...b})=>{let v=t!==void 0,h=n??(l==="hexa"?lb:ab),[y,C]=QM(h),x=v?t:y;ZM(()=>{v||C(n??(l==="hexa"?lb:ab))},[n,v,l]);let I=w=>{let R=rb(w);v||C(R),o?.(R)},P=w=>{v||C(w),o?.(w)};return Yn("div",{className:Gc("cleen",d),style:p,...b,children:t3("div",{className:Gc("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",s?.container),style:g?.container,children:[c&&Yn(ce,{required:e,tooltip:i,className:Gc("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...g?.label,children:c}),Yn("div",{className:Gc("cleen-rounded-md",a&&"cleen-opacity-50 cleen-pointer-events-none",s?.picker),style:g?.picker,children:l==="hexa"?Yn(JM,{color:x,onChange:P}):Yn(jM,{color:jh(x),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&Yn(re,{...m})]})})};import{cn as nt}from"@cleen/ui-core";import{forwardRef as o3,useMemo as n3,useState as r3}from"react";var e0=(e="")=>e.replace(/\D+/g,""),cb=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function ib(e,t="other"){if(!e)return e;let n=e0(e),o;switch(t){case"amex":o=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,15)}`;break;case"dinersclub":o=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,14)}`;break;default:o=`${n.slice(0,4)} ${n.slice(4,8)} ${n.slice(8,12)} ${n.slice(12,19)}`;break}return o.trim()}var sb=e=>e0(e);function pb(e){let t=e0(e);if(!t||parseInt(t.charAt(0),10)>=2)return"";if(t.length<2)return t;let n=t.slice(0,2);if(parseInt(n,10)<1||parseInt(n,10)>12)return t.slice(0,1);if(t.length<3)return n;if(t.length===3)return`${n}/${t.charAt(2)}`;let o=t.length===6?t.slice(-2):t.slice(2,4),l=new Date,a=l.getFullYear()%100,c=l.getMonth()+1;return parseInt(o,10)<a||parseInt(o,10)===a&&parseInt(n,10)<c?`${n}/${o.charAt(0)}`:`${n}/${o}`}import{jsx as ho,jsxs as db}from"react/jsx-runtime";var a3=o3(function({labels:t,value:n,isLoading:o,errors:l,className:a,classNames:c,style:i,styles:d,infoLabels:s,onChange:p,onFieldFocus:g,...m},b){let[v,h]=r3({number:"",expiry:"",cvc:""}),y=!!n,C=y?n:v,x=n3(()=>cb(C.number),[C.number]),I=w=>{let{name:R}=w.target,{value:B}=w.target;switch(R){case"number":B=ib(B,x);break;case"expiry":B=pb(B);break;case"cvc":B=sb(B);break;default:return}y||h(S=>({...S,[R]:B})),p?.({...n,[R]:B})},P=w=>{g?.(w.target.name)};return ho("div",{className:nt("cleen",a),style:i,ref:b,...m,children:ho("div",{className:nt("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:d?.container,children:o?ho("div",{className:nt("cleen-py-4",c?.loader?.container),style:d?.loader?.container,children:ho(le,{...c?.loader?.component,...d?.loader?.component})}):db("form",{className:nt("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",c?.form?.container),style:d?.form?.container,onSubmit:w=>w.preventDefault(),children:[ho(he,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:nt("cleen-w-full",c?.form?.cardNumber?.className),classNames:{...c?.form?.cardNumber?.classNames,inputContainer:nt({"cleen-border-error":l?.number},c?.form?.cardNumber?.classNames?.inputContainer),input:nt({"cleen-text-error":l?.number},c?.form?.cardNumber?.classNames?.input)},...d?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:C.number,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.number}}),db("div",{className:nt("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",c?.form?.cvcExpiryContainer),style:d?.form?.cvcExpiryContainer,children:[ho(he,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:c?.form?.expiry?.className,classNames:{...c?.form?.expiry?.classNames,inputContainer:nt({"cleen-border-error":l?.expiry},c?.form?.expiry?.classNames?.inputContainer),input:nt({"cleen-text-error":l?.expiry},c?.form?.expiry?.classNames?.input)},...d?.form?.expiry,placeholder:"00/00",value:C.expiry,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.expiry}}),ho(he,{label:t?.cvc,name:"cvc",type:"tel",inputMode:"numeric",autoComplete:"cc-csc",maxLength:x==="amex"?4:3,className:c?.form?.cvc?.className,classNames:{...c?.form?.cvc?.classNames,inputContainer:nt({"cleen-border-error":l?.cvc},c?.form?.cvc?.classNames?.inputContainer),input:nt({"cleen-text-error":l?.cvc},c?.form?.cvc?.classNames?.input)},...d?.form?.cvc,placeholder:"***",value:C.cvc,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.cvc}})]}),(s?.infoMessage||s?.errorMessage||s?.subtitle)&&ho(re,{...s})]})})})});import{cn as mb}from"@cleen/ui-core";import{jsx as ub}from"react/jsx-runtime";var ht=({isHorizontal:e=!0,className:t,classNames:n,style:o,styles:l,...a})=>ub("div",{className:mb("cleen",t),style:o,children:ub("div",{className:mb("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",n?.container),style:l?.container,...a})});import{cn as go,useBodyScrollLock as l3,useCleenOverlays as fb,ZIndex as c3}from"@cleen/ui-core";import{forwardRef as i3,useCallback as s3,useEffect as t0,useId as p3,useRef as d3,useState as hb}from"react";import{createPortal as m3}from"react-dom";import{jsx as Zn,jsxs as $c}from"react/jsx-runtime";var u3={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},gb=300,o0=i3(function({title:t,subtitle:n,children:o,headerCloseBtn:l,footer:a,isOpen:c=!1,onClose:i,closeOnOverlayClick:d=!0,position:s="right",zIndex:p=c3.DRAWER,size:g="lg",p:m,gap:b,className:v,classNames:h,style:y,styles:C,...x},I){let[P,w]=hb(c),[R,B]=hb(c),S=d3(null),E=p3(),{addOverlay:N,removeOverlay:M}=fb(),T=s3(()=>{w(!1),setTimeout(()=>i?.(),gb)},[i]);return t0(()=>{if(c){B(!0);let F=setTimeout(()=>w(!0),1);return()=>clearTimeout(F)}else{w(!1);let F=setTimeout(()=>B(!1),gb);return()=>clearTimeout(F)}},[c]),t0(()=>{if(c)return N(E),()=>M(E)},[N,M,c,E]),t0(()=>{let F=L=>{let{overlays:k}=fb.getState();L.key==="Escape"&&k[k.length-1]===E&&T()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[T,E]),l3(R),R?m3($c("div",{className:go("cleen",v),style:y,ref:I,...x,children:[Zn("div",{className:go("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",h?.overlay),onClick:()=>{d&&T()},style:{zIndex:p-1,...C?.overlay},"aria-hidden":"true"}),$c("div",{className:go("cleen-top-0 cleen-fixed cleen-flex cleen-flex-col cleen-gap-6 cleen-bg-surface cleen-shadow-l cleen-h-dvh cleen-transition-transform cleen-duration-300 cleen-ease-in-out cleen-transform",s==="right"?"cleen-right-0":"cleen-left-0",P?"cleen-translate-x-0":s==="right"?"cleen-translate-x-full":"-cleen-translate-x-full",h?.drawer),style:{zIndex:p,width:typeof g=="number"?g:u3[g],...b!==void 0&&{gap:b},...C?.drawer},ref:S,children:[$c("div",{className:go("cleen-flex cleen-justify-between cleen-items-center cleen-px-6 cleen-pt-6 cleen-w-full",h?.header),style:{...m!==void 0&&{paddingInline:m,paddingTop:m},...C?.header},children:[$c("div",{className:"cleen-flex cleen-flex-col",children:[Zn("span",{className:go("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",h?.title),style:C?.title,children:t}),Zn("span",{className:go("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",h?.subtitle),style:C?.subtitle,children:n})]}),l||Zn(Ae,{onClick:T,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),Zn("div",{className:go("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",h?.content),style:{...m!==void 0&&{paddingInline:m},...C?.content},children:o}),a&&Zn("div",{className:go("cleen-flex cleen-justify-end cleen-items-center cleen-gap-2 cleen-bg-sidebar cleen-px-6 cleen-py-4 cleen-border-border cleen-border-t",h?.footer),style:{...m!==void 0&&{paddingInline:m,paddingBlock:b},...C?.footer},children:a})]})]}),document.body):null});import{cn as Xo,useAnimateNumber as f3}from"@cleen/ui-core";import{forwardRef as h3,useEffect as g3,useMemo as v3,useRef as b3,useState as y3}from"react";import{jsx as Wc,jsxs as n0}from"react/jsx-runtime";var Qn=h3(({percentage:e,title:t,barColor:n,backgroundColor:o="rgb(var(--cleen-neutral-200))",textColor:l="rgb(var(--cleen-foreground))",invertProgressColors:a=!1,showPercentage:c=!1,renderAnimated:i=!1,renderAnimatedDuration:d=1e3,className:s,classNames:p,style:g,styles:m,...b},v)=>{let h=Math.max(0,Math.min(e,100)),y=b3(h),[C,x]=y3(i?0:h),I=f3({targetNumber:C,duration:d,disabled:!i});g3(()=>{if(i){setTimeout(()=>x(h),0);return}y.current!==h&&(x(h),y.current=h)},[h,i]);let P=v3(()=>{if(n)return n;switch(h<=30?"red":h<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))"}},[h,a,n]);return Wc("div",{ref:v,className:Xo("cleen",s),style:g,children:n0("div",{className:Xo("cleen-w-full",p?.container),style:m?.container,...b,children:[t&&Wc("div",{className:Xo("cleen-mb-1 cleen-font-semibold cleen-text-xs",p?.title),style:m?.title,children:t}),n0("div",{className:Xo("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",p?.wrapper||p?.progress),style:m?.wrapper??m?.progress,children:[Wc("div",{className:Xo("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",p?.track),style:{backgroundColor:o,...m?.track},children:Wc("div",{className:Xo("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",p?.fill),style:{width:`${C}%`,backgroundColor:P,...i&&{transitionDuration:`${d}ms`},...m?.fill}})}),c&&n0("span",{className:Xo("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",p?.text),style:{color:l,...m?.text},children:[Math.round(I),"%"]})]})]})})});Qn.displayName="ProgressBar";import{cn as vo,FileEntryStatus as Ko}from"@cleen/ui-core";import{useMemo as vb}from"react";import{Fragment as bb,jsx as Le,jsxs as Yo}from"react/jsx-runtime";var yb=({fileEntry:e,onRemove:t,onFileClick:n,labels:o,classNames:l,styles:a})=>{let{id:c,file:i,name:d,size:s,url:p,type:g,status:m,progress:b=0,preExisting:v}=e,h=m===Ko.UPLOADING,y=m===Ko.ERROR,C=m===Ko.DONE,x=m===Ko.DELETING,I=s?s*b/100:0,P=vb(()=>{switch(m){case Ko.UPLOADING:return Yo(bb,{children:[Le(_o,{className:"cleen-size-4"}),Le("span",{children:o?.uploading})]});case Ko.DONE:return Le(Lo,{className:"cleen-size-4"});case Ko.ERROR:return Le(Ro,{className:"cleen-size-4"});default:return null}},[m,o]),w=()=>{if(n){n(e);return}p&&window.open(p,"_blank","noopener,noreferrer")},R=d||i?.name||"",[B,S]=R.split("."),E=vb(()=>g?.startsWith("image/")&&p?Le("img",{src:p,alt:R,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):g==="application/pdf"?Le(Fo,{className:"cleen-size-8"}):Le(Do,{className:"cleen-size-8"}),[R,g,p]);return Le(ue,{p:12,className:l?.card?.className,classNames:{...l?.card?.classNames,container:vo(l?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":C})},...a?.card,onClick:C?w:void 0,children:Yo("div",{className:vo("cleen-space-y-1",l?.container),style:a?.container,children:[Yo("div",{className:vo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.nameContainer),style:a?.nameContainer,children:[E,Yo("div",{className:vo("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",l?.name),style:{maxWidth:E?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...a?.name},children:[Le("span",{className:"cleen-truncate cleen-shrink",children:B}),Yo("span",{className:"cleen-whitespace-nowrap",children:[".",S]})]}),Le("div",{className:"cleen-flex-1"}),!h&&(x?Le(le,{color:"rgb(var(--cleen-error))",className:vo("cleen-shrink-0")}):Le(ot,{className:vo("cleen-size-4 cleen-shrink-0 cleen-text-neutral-600 hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer"),onClick:N=>{N.stopPropagation(),t?.(c)}}))]}),Yo("div",{className:vo("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",l?.statusContainer),style:a?.statusContainer,children:[!!s&&(h?Le("p",{children:o?.uploadProgress?.(I,s)}):C&&Le("p",{children:o?.uploaded?.(s)})),!v&&Yo(bb,{children:[Le("span",{children:"|"}),Le("div",{className:vo("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":y,"cleen-text-success":C},l?.statusText),style:a?.statusText,children:P})]})]}),h&&Le(Qn,{barColor:"rgb(var(--cleen-primary))",percentage:b,showPercentage:!0,...l?.progressBar,...a?.progressBar})]})},c)};var qc=e=>{if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,o)).toFixed(1))} ${n[o]}`};var Ib={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${qc(e)} of ${qc(t)}`,uploaded:e=>qc(e)};var Cb={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 Wa=(a=>(a.PENDING="pending",a.IN_PROGRESS="inProgress",a.DONE="done",a.ERROR="error",a.REMOVING="removing",a))(Wa||{});import{cn as Zo}from"@cleen/ui-core";import{jsx as bo,jsxs as xb}from"react/jsx-runtime";var r0=({item:e,labels:t,classNames:n,styles:o})=>{let{status:l,progress:a=0,icon:c,name:i}=e,d=l==="inProgress",s=l==="done",p=l==="error",g=l==="removing",m=l==="pending";return xb("div",{className:Zo("cleen-flex cleen-items-center cleen-gap-3",n?.container),style:o?.container,children:[c,xb("div",{className:Zo("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",n?.infoContainer),style:o?.infoContainer,children:[bo("p",{className:Zo("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",n?.name),style:o?.name,children:i}),d&&bo(Qn,{barColor:"rgb(var(--cleen-primary))",percentage:a,...n?.progressBar,...o?.progressBar})]}),d&&bo("span",{className:Zo("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",n?.progressText),style:o?.progressText,children:t?.itemProgress?.(a)}),g&&bo(le,{color:"rgb(var(--cleen-error))"}),s&&bo(Lo,{className:Zo("cleen-size-5 cleen-shrink-0 cleen-text-success",n?.statusIcon),style:o?.statusIcon}),p&&bo(Ro,{className:Zo("cleen-size-5 cleen-shrink-0 cleen-text-error",n?.statusIcon),style:o?.statusIcon}),m&&bo("div",{className:Zo("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",n?.statusIcon),style:o?.statusIcon,children:Array.from({length:3}).map((b,v)=>bo("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${v*.1}s`}},v))})]})};var qa=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(qa||{}),Xa=["notStarted","inProgress","completed","all"];import{cn as Xc}from"@cleen/ui-core";import{jsx as Pb,jsxs as I3}from"react/jsx-runtime";var a0=({value:e,onChange:t,counts:n,labels:o,classNames:l,styles:a})=>Pb("div",{role:"group","aria-label":o?.statusFilter,className:Xc("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-0.5 cleen-bg-muted cleen-p-0.5 cleen-border cleen-border-border cleen-rounded-md",l?.container),style:a?.container,children:Xa.map(c=>{let i=c===e;return I3("button",{type:"button","aria-pressed":i,onClick:()=>t(c),className:Xc("cleen-flex cleen-items-center cleen-gap-1 cleen-px-2 cleen-py-0.5 cleen-rounded cleen-font-medium cleen-text-muted-foreground cleen-text-xs cleen-whitespace-nowrap cleen-transition-colors hover:cleen-text-foreground focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.option,i&&Xc("cleen-bg-background cleen-text-foreground cleen-shadow-sm",l?.optionActive)),style:{...a?.option,...i&&a?.optionActive},children:[o?.statusFilterOptions?.[c],n&&Pb("span",{className:Xc("cleen-text-neutral-400 cleen-tabular-nums",l?.optionCount),style:a?.optionCount,children:n[c]})]},c)})});var Sb={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 wb=e=>e.status==="inProgress"||e.status==="pending",Mb=e=>e.length>0&&e.every(t=>t.status==="done"),l0=(e,t)=>{switch(t){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 C3,cn as gt,useControlled as kb,useDisclosure as x3}from"@cleen/ui-core";import{forwardRef as P3,useEffect as Bb,useMemo as c0,useRef as S3}from"react";import{jsx as Ct,jsxs as i0}from"react/jsx-runtime";var s0=P3(function({items:t,title:n,maxVisibleItems:o=5,isExpanded:l,defaultExpanded:a=!1,onExpandedChange:c,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:d,showHeader:s=!0,showStatusFilter:p=!1,showStatusFilterCounts:g=!1,statusFilter:m,defaultStatusFilter:b="inProgress",onStatusFilterChange:v,labels:h,className:y,classNames:C,style:x,styles:I,...P},w){let{isOpen:R,toggle:B,close:S}=x3(),{value:E,handleChange:N}=kb({value:l,defaultValue:a,onChange:c});Bb(()=>{t.length>0&&S()},[t.length,S]);let M=C3(Sb,h),{value:T,handleChange:F}=kb({value:m,defaultValue:b,onChange:v}),L=S3(i);L.current=i;let k=Mb(t);Bb(()=>{if(d==null||!L.current||!k)return;if(d<=0){L.current();return}let W=setTimeout(()=>L.current?.(),d);return()=>clearTimeout(W)},[k,d]);let z=c0(()=>t.filter(wb).length,[t]),D=c0(()=>!p||!T?t:t.filter(W=>l0(W,T)),[t,p,T]),A=c0(()=>{if(g)return Xa.reduce((W,q)=>({...W,[q]:t.filter(H=>l0(H,q)).length}),{})},[t,g]);if(!t.length)return null;let O=Math.max(D.length-o,0),V=E||!O?D:D.slice(0,o),G=n??(z?M?.processing?.(z):M?.completed);return Ct(ue,{p:16,gap:12,ref:w,className:gt(y,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:gt(C?.card?.classNames?.childrenContainer,{"cleen-hidden":R})},style:x,styles:I?.card?.styles,header:s?{hasDivider:!R,content:i0("div",{className:gt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",C?.header),style:I?.header,children:[Ct("p",{className:gt("cleen-font-semibold cleen-text-foreground cleen-text-sm",C?.title),style:I?.title,children:G}),i0("div",{className:gt("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:I?.headerButtons,children:[Ct("button",{type:"button","aria-label":M?.contract,onClick:B,className:gt("cleen-text-muted-foreground hover:cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.contractButton),style:I?.contractButton,children:Ct(At,{className:gt("cleen-size-5 cleen-transition-transform",R&&"cleen-rotate-180")})}),i&&Ct("button",{type:"button","aria-label":M?.dismiss,onClick:i,className:gt("cleen-text-muted-foreground hover:cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.dismissButton),style:I?.dismissButton,children:Ct(Ae,{className:"cleen-size-4"})})]})]})}:void 0,...P,children:i0("div",{className:gt("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:I?.list,children:[p&&T&&Ct(a0,{value:T,onChange:F,counts:A,labels:M,classNames:C?.statusFilter,styles:I?.statusFilter}),!V.length&&Ct("p",{className:gt("cleen-text-muted-foreground cleen-text-xs",C?.emptyStatusFilter),style:I?.emptyStatusFilter,children:M?.emptyStatusFilter}),V.map(W=>Ct(r0,{item:W,labels:M,classNames:C?.row,styles:I?.row},W.id)),!!O&&Ct("button",{type:"button","aria-expanded":E,onClick:()=>N(!E),className:gt("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",C?.expandButton),style:I?.expandButton,children:E?M?.showLess:M?.showMore?.(O)})]})})});import{FileEntryStatus as Ut}from"@cleen/ui-core";var w3=[{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"]}],Nb={label:"FILE",className:"cleen-bg-neutral-500"},M3={[Ut.QUEUED]:"inProgress",[Ut.UPLOADING]:"inProgress",[Ut.PAUSED]:"inProgress",[Ut.DONE]:"done",[Ut.ERROR]:"error",[Ut.DELETING]:"removing"},p0=e=>e.name||e.file?.name||"",Tb=e=>{let t=p0(e).split(".").pop()?.toLowerCase()??"",n=w3.find(({extensions:o})=>o.includes(t));return n?{label:n.label,className:n.className}:{label:t?t.slice(0,4).toUpperCase():Nb.label,className:Nb.className}},Rb=e=>e.status===Ut.QUEUED||e.status===Ut.UPLOADING||e.status===Ut.PAUSED,Lb=e=>M3[e.status]??"pending",Eb=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as k3}from"@cleen/ui-core";import{jsx as B3}from"react/jsx-runtime";var Db=({fileEntry:e,className:t,style:n})=>{let o=Tb(e);return B3("div",{className:k3("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",o.className,t),style:n,children:o.label})};import{jsx as N3}from"react/jsx-runtime";var Fb=(e,t)=>({id:e.id,name:p0(e),progress:e.progress,status:Lb(e),icon:N3(Db,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as T3}from"@cleen/ui-core";import{forwardRef as R3,useMemo as Ab}from"react";import{jsx as L3}from"react/jsx-runtime";var d0=R3(function({files:t,title:n,maxVisibleFiles:o=5,labels:l,classNames:a,styles:c,...i},d){let s=Ab(()=>Eb(t),[t]),p=T3(Cb,l),g=Ab(()=>s.map(v=>Fb(v,{className:a?.row?.typeBadge,style:c?.row?.typeBadge})),[s,a?.row?.typeBadge,c?.row?.typeBadge]),m=s.filter(Rb).length,b=n??(m?p?.uploading?.(m):p?.completed);return L3(s0,{ref:d,items:g,title:b,maxVisibleItems:o,labels:{showMore:p?.showMore,showLess:p?.showLess,dismiss:p?.dismiss,contract:p?.contract,itemProgress:p?.uploadProgress},classNames:a,styles:c,...i})});import{applyDefaults as E3,cn as ze,FileEntryStatus as D3,useFileUpload as F3}from"@cleen/ui-core";import{forwardRef as A3,useEffect as O3,useMemo as Ob,useRef as _b,useState as m0}from"react";import{createPortal as _3}from"react-dom";import{jsx as Ve,jsxs as Kc}from"react/jsx-runtime";var z3=A3(function({required:t,icon:n,files:o,initialFiles:l=[],onFilesChange:a,onFileUpload:c,onFilesUpload:i,onFileRemove:d,onFileClick:s,infoLabels:p,containerRef:g,label:m,labelTooltip:b,labels:v,showUploadedFiles:h=!1,showProgressTracker:y=!1,progressTracker:C,className:x,classNames:I,style:P,styles:w,multiple:R,disabled:B,loadingWhileUploading:S,isLoading:E,readOnly:N,onChange:M,id:T,name:F,...L},k){let z=_b(null),{files:D,addFiles:A,remove:O}=F3({files:o,onFilesChange:a,initialFiles:l,onFileUpload:c,onFilesUpload:i,onFileRemove:d}),V=Ob(()=>E||S&&Array.from(D.values()).some(Y=>Y.status===D3.UPLOADING),[D,S,E]),[G,W]=m0(!1),[q,H]=m0([]),[U,j]=m0(!1),_=_b(new Set(D.keys()));O3(()=>{let Y=Array.from(D.keys()),xe=Y.filter(Me=>!_.current.has(Me));_.current=new Set(Y),H(Me=>{let Pe=Me.filter(Xe=>D.has(Xe));return xe.length?U?xe:[...Pe,...xe.filter(Xe=>!Pe.includes(Xe))]:Pe.length===Me.length?Me:Pe}),xe.length&&j(!1)},[D,U]);let Z=Ob(()=>q.map(Y=>D.get(Y)).filter(Y=>!!Y),[q,D]),pe=()=>{j(!0),H([]),C?.onDismiss?.()},de=!B&&!N&&!V,fe=Y=>{let xe=Array.from(Y.target.files??[]);A(xe),M?.(Y)},st=Y=>{O(Y)},We=()=>{de&&z.current?.click()},J=Y=>{if(!Y.length)return;let xe=R?Y:Y.slice(0,1);if(!z.current||typeof DataTransfer>"u"){A(xe);return}let Me=new DataTransfer;xe.forEach(Pe=>Me.items.add(Pe));try{z.current.files=Me.files}catch{A(xe);return}A(xe),M?.({target:z.current,currentTarget:z.current})},ae=Y=>{Y.preventDefault(),Y.stopPropagation(),W(!1),de&&J(Array.from(Y.dataTransfer.files??[]))},Ze=Y=>{Y.preventDefault(),Y.stopPropagation(),de&&W(!0)},Qe=Y=>{Y.preventDefault(),Y.stopPropagation(),de&&W(!0)},Te=Y=>{Y.preventDefault(),Y.stopPropagation(),de&&W(!1)},pt=Y=>{de&&(Y.key!=="Enter"&&Y.key!==" "||(Y.preventDefault(),We()))},qe=E3(Ib,v);return Kc("div",{className:ze("cleen",x),style:P,ref:g,children:[Ve("input",{id:T||F,name:F,ref:Y=>{if(z.current=Y,typeof k=="function"){k(Y);return}k&&(k.current=Y)},type:"file",multiple:R,disabled:B||V,readOnly:N,className:ze("cleen-hidden",I?.input),style:w?.input,onChange:fe,...L}),m&&Ve(ce,{htmlFor:T||F,required:t,tooltip:b,className:ze("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...w?.label,children:m}),Kc("div",{className:ze("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":V}),children:[Ve(ue,{tabIndex:de?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":B||N||V,onClick:We,onKeyDown:pt,onDrop:ae,onDragEnter:Ze,onDragOver:Qe,onDragLeave:Te,p:16,className:ze("cleen-rounded-lg focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",I?.card?.className),classNames:{...I?.card?.classNames,container:ze("cleen-transition-colors",B?"cleen-cursor-not-allowed cleen-bg-muted":"cleen-cursor-pointer hover:cleen-bg-surface hover:cleen-border-muted-foreground",I?.card?.classNames?.container,G&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:ze({"cleen-blur-sm":V},I?.card?.classNames?.childrenContainer)},style:w?.card?.style,styles:{...w?.card?.styles,container:{...w?.card?.styles?.container,...G?w?.cardDragActive:void 0}},children:Kc("div",{className:ze("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:w?.dropArea,"aria-disabled":B||N||V,children:[Ve("div",{className:ze("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-border cleen-border-border cleen-rounded-xl cleen-size-11 cleen-text-neutral-700",I?.iconContainer),style:w?.iconContainer,children:n||Ve(_o,{className:"cleen-size-5"})}),Kc("p",{className:ze("cleen-font-medium cleen-text-sm",I?.textContainer),style:w?.textContainer,children:[Ve("span",{className:ze(B?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:w?.primaryText,children:qe?.primaryText})," ",Ve("span",{className:ze("cleen-text-foreground",I?.secondaryText),style:w?.secondaryText,children:qe?.secondaryText})]}),Ve("p",{className:ze("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:w?.helperText,children:qe?.helperText})]})}),V&&Ve(le,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),h&&D.size>0&&Ve("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(D.values()).map(Y=>Ve(yb,{fileEntry:Y,onRemove:st,onFileClick:s,labels:qe,classNames:I?.fileCard,styles:w?.fileCard},Y.id))}),y&&!U&&Z.length>0&&_3(Ve("div",{className:"cleen",children:Ve(d0,{...C,files:Z,onDismiss:pe,className:ze("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",I?.progressTracker?.className),classNames:I?.progressTracker?.classNames,...w?.progressTracker})}),document.body),(p?.errorMessage||p?.infoMessage||p?.subtitle)&&Ve(re,{...p})]})});var V3=e=>{let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;let n={dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat("en-US",n).format(t)}catch{return new Intl.DateTimeFormat("en-US",n).format(t)}},zb={uploaded:e=>`Uploaded: ${V3(e)}`};var u0={"image/":"image","video/":"video","audio/":"audio"},f0={"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"},Vb={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"},Hb=["http:","https:","blob:"];var H3=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in f0)return f0[t];let n=Object.keys(u0).find(o=>t.startsWith(o));return n?u0[n]:void 0},h0=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},U3=e=>{let t=h0(e);return t?Vb[t]:void 0},Ub=e=>H3(e.type)??U3(e.name)??"generic",Gb=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return Hb.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as Gt,formatFileSize as G3}from"@cleen/ui-core";import{forwardRef as $3,useMemo as $b,useState as W3}from"react";import{Fragment as X3,jsx as xt,jsxs as Yc}from"react/jsx-runtime";var q3=$3(function({file:t,preview:n=!1,onRemove:o,description:l,labels:a,className:c,classNames:i,style:d,styles:s,...p},g){let[m,b]=W3(),v=$b(()=>({...zb,...a}),[a]),h=Ub(t),y=Fh(h0(t.name)),C=Gb(t.url)?t.url:void 0,x=t.previewUrl||t.url,I=n&&(h==="image"||h==="video")&&!!x&&m!==x,P=$b(()=>{if(l!=null)return l;let S=[];if(t.size!=null&&S.push(G3(t.size)),t.uploadedAt!=null){let E=v?.uploaded(t.uploadedAt);E&&S.push(E)}return S.length>0?S.join(" \u2022 "):null},[l,t.uploadedAt,t.size,v]),w=S=>{S.stopPropagation(),o?.(t)},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",C&&"cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-inset focus-visible:cleen-ring-primary",i?.main),B=Yc(X3,{children:[Yc("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",i?.media),style:s?.media,children:[I&&(h==="image"||h==="video"&&t.previewUrl)&&xt("img",{src:x,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>b(x)}),I&&h==="video"&&!t.previewUrl&&xt("video",{src:x,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>b(x)}),!I&&xt(y,{"aria-hidden":!0,className:Gt("cleen-size-5",i?.icon),style:s?.icon})]}),Yc("div",{className:Gt("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:s?.content,children:[xt("span",{className:Gt("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:s?.title,title:t.name,children:t.name}),P!==null&&xt("span",{className:Gt("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:s?.description,children:P})]})]});return xt("div",{className:Gt("cleen",c),style:d,ref:g,...p,children:Yc("div",{className:Gt("cleen-flex cleen-w-full cleen-min-w-0 cleen-items-center cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-transition-all cleen-duration-200",C&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",i?.container),style:s?.container,children:[C?xt("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:R,style:s?.main,children:B}):xt("div",{className:R,style:s?.main,children:B}),o&&xt("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-muted focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-error",i?.removeButton),style:s?.removeButton,onClick:w,children:xt(Ae,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Zc={filterName:"",exposed:!1};import{createContext as K3}from"react";var rt=K3({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as Y3}from"@cleen/ui-core";import{useContext as Z3,useState as Q3}from"react";import{Fragment as J3,jsx as Ka,jsxs as g0}from"react/jsx-runtime";var Wb={min:3,max:50},qb=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:n,setIsSaveFiltersStep:o,handleCloseSaveFilter:l,setError:a,onSave:c,classNames:i,styles:d,labels:s,withSavedFilters:p=!0,onCancel:g,onApply:m}=Z3(rt),[b,v]=Q3(!1),h=async()=>{try{if(t.filterName.length<Wb.min){a?.("filterName",s?.saveStep?.validation?.tooShort);return}if(t.filterName.length>Wb.max){a?.("filterName",s?.saveStep?.validation?.tooLong);return}v(!0),await c?.(t),o(!1)}catch(y){console.error("Error saving filters:",y)}finally{v(!1)}};return e?g0("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[Ka(te,{onClick:()=>o(!1),variant:"secondary",...i?.saveFilter?.backBtn,...d?.saveFilter?.backBtn,children:s?.saveStep?.back}),Ka(te,{onClick:h,isLoading:b,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...d?.saveFilter?.saveBtn,children:s?.saveStep?.save})]}):g0(J3,{children:[p&&Ka(te,{onClick:()=>{n(Zc),o(!0)},variant:"borderless-blue",...i?.saveBtn,...d?.saveBtn,children:s?.save}),g0("div",{className:Y3("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!p}),children:[Ka(te,{onClick:()=>{g?.(),l()},variant:"secondary",...i?.cancelBtn,...d?.cancelBtn,children:s?.cancel}),Ka(te,{onClick:()=>{m?.(),l()},...i?.applyBtn,...d?.applyBtn,children:s?.apply})]})]})};import{cn as Qc}from"@cleen/ui-core";import{Link as j3}from"react-router-dom";import{Fragment as Kb,jsx as Qo,jsxs as v0}from"react/jsx-runtime";var Xb=({item:e,classNames:t,styles:n})=>({disabled:e?.disabled,className:Qc("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-foreground 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-muted cleen-cursor-pointer",{"cleen-text-error hover:cleen-bg-error-bg":e?.danger},t?.container),style:n?.container,children:v0(Kb,{children:[e?.icon,Qo("span",{className:Qc("cleen-flex-1",t?.label),style:n?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),b0=({item:e,isLast:t,handleClick:n,onEnterSubmenu:o,classNames:l,styles:a})=>{switch(e?.type){case"group":return v0(Kb,{children:[e?.label&&Qo("p",{className:Qc("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",l?.groupLabel),style:a?.groupDivider,children:e?.label}),e?.items?.map((c,i,d)=>Qo(b0,{item:c,handleClick:n,onEnterSubmenu:o,isLast:i===d.length-1},c?.id||i)),!t&&Qo("hr",{className:Qc("cleen-text-neutral-200",l?.groupDivider),style:a?.groupDivider})]});case"button":{let c=e?.submenu&&e?.submenu?.length>0;return v0("button",{type:"button",onClick:()=>{c?o?.(e.submenu,e?.label):n?.(e)},...Xb({item:e,classNames:l,styles:a}),children:[e?.icon,Qo("span",{className:"cleen-flex-1",children:e?.label}),c&&Qo(dt,{className:"cleen-size-4 cleen-text-neutral-400"})]})}case"link":return Qo(j3,{to:"",...Xb({item:e,classNames:l,styles:a})});default:return null}};import{cn as ek}from"@cleen/ui-core";import{useEffect as Yb,useState as Zb}from"react";import{Fragment as tk,jsx as Qb,jsxs as Jb}from"react/jsx-runtime";var jb=({items:e,keepOpenOnClick:t,hideMenu:n,classNames:o,styles:l})=>{let[a,c]=Zb([]),[i,d]=Zb(e),s=(m,b)=>{c(v=>[...v,{items:i,title:b}]),d(m)},p=()=>{let m=a[a?.length-1];m&&(d(m?.items),c(b=>b?.slice(0,-1)))};Yb(()=>{d(e),c([])},[e]),Yb(()=>{let m=b=>{if(b.key==="Escape")if(a.length>0){let v=a?.[a?.length-1];d(v?.items),c(h=>h?.slice(0,-1))}else n()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[n,a]);let g=m=>{m?.onClick?.(),t||n()};return Jb(tk,{children:[a?.length>0&&Jb("button",{onClick:p,className:ek("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-sm cleen-text-foreground hover:cleen-bg-neutral-50",o?.submenuButton),style:l?.submenuButton,children:[Qb(Ft,{className:"cleen-size-4 cleen-text-neutral-300"}),a?.[a?.length-1]?.title]}),i?.map((m,b,v)=>Qb(b0,{item:m,isLast:b===v?.length-1,handleClick:g,onEnterSubmenu:s,classNames:o?.item,styles:l?.item},m?.id||b))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as ok,cn as y0,useDisclosure as nk,useOutsideClick as rk,usePositionClose as ak,ZIndex as lk}from"@cleen/ui-core";import{forwardRef as ck,useRef as ey}from"react";import{createPortal as ik}from"react-dom";import{jsx as Jc,jsxs as sk}from"react/jsx-runtime";var Jn=ck(function({items:t=[],position:n="bottom-left",keepOpenOnClick:o=!0,triggerRef:l,menuRef:a,ignoreClickOutside:c=!1,zIndex:i=lk.MENU,children:d,className:s,classNames:p,style:g,styles:m,...b},v){let{isOpen:h,toggle:y,close:C}=nk(),x=ey(null),I=ey(null),P=l??x,w=a??I,{positionStyles:R,isMounted:B}=ak({triggerRef:P,targetRef:w,position:n,isOpen:h});rk({refs:[P,w],handler:C,enabled:h});let S=()=>{y()};return sk("div",{className:y0("cleen",s),style:g,ref:v,...b,children:[Jc("div",{ref:P,onClick:S,className:y0("cleen-size-fit",p?.trigger,h&&p?.triggerOpen),style:{...m?.trigger,...h?m?.triggerOpen:{}},children:d}),h&&ik(Jc("div",{className:"cleen",...c&&{[ok]:"true"},children:Jc("div",{ref:w,className:y0("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!B},p?.menu),style:{zIndex:i,top:`${R.top}px`,left:`${R.left}px`,...m?.menu},children:Jc(jb,{items:t,keepOpenOnClick:o,hideMenu:C,classNames:p,styles:m})})}),document.body)]})});import{cn as jc,ColorHelpers as ei}from"@cleen/ui-core";import{useMemo as pk}from"react";var I0=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow"],C0={primary:"cleen-border-primary-300 cleen-bg-primary-50 cleen-text-primary",blue:"cleen-border-blue-300 cleen-bg-blue-50 cleen-text-blue-700","lighter-blue":"cleen-border-blue-light-300 cleen-bg-blue-light-50 cleen-text-blue-light-700",indigo:"cleen-border-indigo-300 cleen-bg-indigo-50 cleen-text-indigo-700",green:"cleen-border-success/30 cleen-bg-success-bg cleen-text-success",red:"cleen-border-error/30 cleen-bg-error-bg cleen-text-error",purple:"cleen-border-purple-300 cleen-bg-purple-50 cleen-text-purple-700",pink:"cleen-border-pink-300 cleen-bg-pink-50 cleen-text-pink-700",orange:"cleen-border-orange-300 cleen-bg-orange-50 cleen-text-orange-700",yellow:"cleen-border-yellow-500 cleen-bg-yellow-50 cleen-text-yellow-700 dark:cleen-text-yellow-500",gray:"cleen-border-border cleen-bg-muted cleen-text-neutral-600"},ty={primary:"cleen-bg-primary cleen-text-primary-foreground cleen-border-primary",blue:"cleen-bg-blue-500 cleen-text-white cleen-border-blue-500","lighter-blue":"cleen-bg-blue-light-300 cleen-text-black cleen-border-blue-light-300",indigo:"cleen-bg-indigo-500 cleen-text-white cleen-border-indigo-500",green:"cleen-bg-success cleen-text-white cleen-border-success",red:"cleen-bg-error cleen-text-white cleen-border-error",purple:"cleen-bg-purple-500 cleen-text-white cleen-border-purple-500",pink:"cleen-bg-pink-500 cleen-text-white cleen-border-pink-500",orange:"cleen-bg-orange-400 cleen-text-black dark:cleen-text-white cleen-border-orange-400",yellow:"cleen-bg-yellow-400 cleen-text-black dark:cleen-text-white cleen-border-yellow-400",gray:"cleen-bg-neutral-500 cleen-text-white cleen-border-neutral-500"},oy={primary:"cleen-bg-primary",blue:"cleen-bg-blue-700","lighter-blue":"cleen-bg-blue-light-700",indigo:"cleen-bg-indigo-700",green:"cleen-bg-success",red:"cleen-bg-error",purple:"cleen-bg-purple-700",pink:"cleen-bg-pink-700",orange:"cleen-bg-orange-700",yellow:"cleen-bg-yellow-700 dark:cleen-bg-yellow-500",gray:"cleen-bg-neutral-600"},ny={primary:"cleen-bg-primary-foreground",blue:"cleen-bg-white","lighter-blue":"cleen-bg-black",indigo:"cleen-bg-white",green:"cleen-bg-white",red:"cleen-bg-white",purple:"cleen-bg-white",pink:"cleen-bg-white",orange:"cleen-bg-black dark:cleen-bg-white",yellow:"cleen-bg-black dark:cleen-bg-white",gray:"cleen-bg-white"},ry={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var ay=(e,t)=>!e&&!t?"primary":t?I0[t%I0.length]:e;import{jsx as x0,jsxs as dk}from"react/jsx-runtime";var Ie=({className:e,classNames:t,style:n,styles:o,label:l,color:a="primary",variant:c="rounded",showDot:i=!1,icon:d,removeable:s=!1,withBorder:p=!0,filled:g=!1,onRemoveClicked:m,onClick:b,colorByIndex:v,children:h,...y})=>{let{variantClass:C,dotVariantClass:x,dotVariantStyle:I,variantStyle:P}=pk(()=>{let w={};if(a in C0){let R=ay(a,v);w.variantClass=g?ty[R]:C0[R],w.dotVariantClass=g?ny[R]:oy[R]}else w.variantStyle={borderColor:g?a:ei.trasparentize(a,.8),backgroundColor:g?a:ei.trasparentize(a,.95),color:g?ei.adjustColorForContrast(a,.5):a},w.dotVariantStyle={backgroundColor:g?ei.adjustColorForContrast(a,.5):a};return w},[a,v,g]);return x0("div",{className:jc("cleen",e),style:n,children:dk("span",{className:jc("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",{"cleen-border":p},C,ry[c],{"hover:cleen-opacity-80 cleen-cursor-pointer":b||s},t?.container),style:{...P,...o?.container},onClick:b,...y,children:[i&&x0("span",{className:jc("cleen-size-2 cleen-rounded-[50%]",x,t?.dot),style:{...I,...o?.dot}}),d,l??h,s&&x0(Ae,{className:jc("cleen-size-3 cleen-cursor-pointer cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-transition-transform cleen-duration-200 hover:cleen-scale-125",t?.removable),style:o?.removable,onClick:m})]})})};import{cn as uk}from"@cleen/ui-core";import{useContext as fk,useState as ly}from"react";import{jsx as Pt,jsxs as hk}from"react/jsx-runtime";var cy=({filter:e,activeTabId:t})=>{let[n,o]=ly(!1),[l,a]=ly(!1),{labels:c,onFilterDelete:i,onFilterPin:d,onFilterSelect:s,onFilterUnpin:p,setIsFiltersDropdownOpen:g}=fk(rt),m=async()=>{try{if(!i)return;o(!0),await i(e.filterID)}catch(v){console.error("Error while deleting filter:",v)}finally{o(!1)}},b=async()=>{try{a(!0),e?.isPinned?await p?.(e.filterID):await d?.(e.filterID)}catch(v){console.error("Error while pinning/unpinnning filter:",v)}finally{a(!1)}};return Pt("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:hk("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{s?.(e),g(!1)},children:[Pt("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),l?Pt(le,{classNames:{loader:"cleen-size-5"}}):Pt(Ie,{color:"gray",onClick:v=>{v.stopPropagation(),b()},icon:Pt(ca,{name:"pin",className:uk("cleen-size-3.5 group-hover:cleen-text-neutral-700 cleen-transition-colors cleen-cursor-pointer",e?.isPinned?"cleen-text-neutral-600":"cleen-text-neutral-300")}),classNames:{container:"cleen-font-bold"},label:e?.isPinned?c?.savedFilters?.filter?.unpin:c?.savedFilters?.filter?.pin}),t==="mine"&&Pt(Jn,{items:[{id:"duplicate",type:"button",label:c?.savedFilters?.filter?.cancelDelete,icon:Pt(Ae,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:c?.savedFilters?.filter?.delete,icon:Pt(ot,{}),danger:!0,onClick:()=>m()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:v=>v.stopPropagation(),className:"cleen-flex",children:n?Pt(le,{size:"sm",color:"rgb(var(--cleen-error))"}):Pt(ot,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as yo}from"@cleen/ui-core";import{forwardRef as gk,useMemo as sy,useState as vk}from"react";import{cn as P0}from"@cleen/ui-core";var Ya={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"}},iy=e=>{let t=e==="vertical";return{underlined:{list:P0("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:P0("cleen-px-1 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200",t?"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-muted-foreground hover:cleen-text-neutral-700 hover:cleen-border-border",tabDisabled:"cleen-border-transparent cleen-text-neutral-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-muted-foreground hover:cleen-bg-muted",tabDisabled:"cleen-text-neutral-300 cleen-cursor-not-allowed"},stretched:{list:"cleen-rounded-md cleen-overflow-hidden cleen-border cleen-border-border",tab:P0("cleen-flex-1 cleen-px-3 cleen-py-2 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200 cleen-border-border cleen-justify-center",t?"[&:not(:first-child)]:cleen-border-t":"[&:not(:first-child)]:cleen-border-l"),tabActive:"cleen-bg-primary/10 cleen-text-primary",tabInactive:"cleen-text-neutral-600 hover:cleen-bg-muted",tabDisabled:"cleen-text-neutral-300 cleen-cursor-not-allowed"}}};import{jsx as ti,jsxs as py}from"react/jsx-runtime";var S0=gk(function({tabs:t,variant:n="underlined",direction:o="horizontal",currentTabIndex:l,onTabChange:a,className:c,classNames:i,style:d,styles:s,...p},g){let[m,b]=vk(0),h=l!==void 0?l:m,y=sy(()=>t?.[h],[t,h]),C=(I,P)=>{b(I),a?.(I,P)},x=sy(()=>iy(o),[o]);return ti("div",{className:yo("cleen",c),style:d,ref:g,...p,children:py("div",{className:yo(Ya[o].container,i?.container),style:s?.container,children:[ti("nav",{className:yo(x[n].list,Ya[o].list,i?.list),"aria-label":"Tabs",style:s?.list,children:t?.map((I,P)=>{let w=h===P,R=I?.isDisabled;return py("span",{onClick:()=>!R&&C(P,I),className:yo("cleen-flex cleen-items-center cleen-gap-2 cleen-whitespace-nowrap",!R&&"cleen-cursor-pointer",x[n].tab,Ya[o].tab,i?.tab,R?yo(x[n].tabDisabled,i?.tabDisabled):w?yo(x[n].tabActive,i?.tabActive):yo(x[n].tabInactive,i?.tabInactive)),style:{...s?.tab,...R?s?.tabDisabled:w?s?.tabActive:s?.tabInactive},"aria-current":w?"page":void 0,"aria-disabled":R,children:[I?.label,!!I?.badge?.label&&ti(Ie,{variant:"rounded",color:w?"blue":"gray",...i?.count,...s?.count,...I.badge})]},I?.id||P)})}),!!y?.content&&ti("div",{className:yo("h-full",Ya[o].content,i?.content),style:s?.content,children:y?.content})]})})});import{useContext as bk,useState as yk}from"react";import{jsx as Jo,jsxs as Ck}from"react/jsx-runtime";var Ik=e=>{let t={isFeatured:null,isMine:null,isPinned:null,isShared:null};switch(e){case"featured":t.isFeatured=!0;break;case"mine":t.isMine=!0;break;case"pinned":t.isPinned=!0;break;case"shared":t.isShared=!0;break;case"all":default:break}return t},dy=({selectedSavedFilter:e,filters:t,isFiltersFetching:n,onFilterCategoryChange:o})=>{let[l,a]=yk("all"),{labels:c,classNames:i,styles:d,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:p}=bk(rt);return Jo(Ua,{isOpen:s,onOpenChange:p,leftIcon:Jo(qr,{className:"cleen-size-5"}),label:e?.title??c?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...d?.dropdown,children:Ck("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[Jo(S0,{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:(g,m)=>{a(m?.id),o?.(Ik(m?.id))},classNames:{list:"cleen-mb-2"}}),Jo("div",{className:"flex flex-col",children:n?Jo(le,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(g=>Jo(cy,{filter:g,activeTabId:l},g.filterID)):Jo("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:c?.savedFilters?.noFilters})})]})})};import{cn as $t}from"@cleen/ui-core";import{forwardRef as xk,useEffect as Pk,useId as Sk,useState as wk}from"react";import{jsx as jo,jsxs as w0}from"react/jsx-runtime";var M0=xk(function({id:t,name:n,required:o,checked:l,defaultChecked:a=!1,onChange:c,title:i,label:d,labelTooltip:s,sublabel:p,disabled:g,classNames:m,className:b,style:v,styles:h,infoLabels:y,...C},x){let I=typeof l=="boolean",[P,w]=wk(a);Pk(()=>{I||w(a)},[a,I]);let R=I?l:P,B=Sk(),S=i?`${B}-title`:void 0,E=d?`${B}-label`:void 0,N=[S,E].filter(Boolean).join(" ")||void 0,M=()=>{g||(I||w(!P),c?.(!R))};return jo("div",{className:$t("cleen",b),style:v,children:w0("div",{className:$t("cleen-flex cleen-flex-col",m?.container),style:h?.container,children:[i&&jo(ce,{id:S,htmlFor:t||n,required:o,tooltip:s,className:$t("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...h?.title,children:i}),w0("div",{className:$t("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:h?.switchContainer,children:[jo("button",{id:t||n,type:"button",role:"switch","aria-checked":R,"aria-labelledby":N,disabled:g,onClick:M,className:$t("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-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]":"cleen-bg-neutral-200 hover:cleen-bg-neutral-300",m?.switch),style:h?.switch,ref:x,...C,children:jo("span",{"aria-hidden":"true",className:$t("cleen-inline-block cleen-bg-primary-foreground 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",m?.check),style:h?.check})}),(d||p)&&w0("div",{className:$t("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:h?.labelContainer,children:[d&&jo("span",{id:E,className:$t("cleen-font-semibold cleen-text-foreground",m?.label),style:h?.label,children:d}),p&&jo("span",{className:$t("cleen-font-normal cleen-text-muted-foreground",m?.sublabel),style:h?.sublabel,children:p})]})]}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&jo(re,{...y})]})})});import{useContext as Mk}from"react";import{Fragment as kk,jsx as my,jsxs as Bk}from"react/jsx-runtime";var uy=()=>{let{classNames:e,styles:t,labels:n,saveStepValues:o,setSaveStepValues:l,errors:a,clearError:c}=Mk(rt);return Bk(kk,{children:[my(he,{value:o.filterName,onChange:i=>{l(d=>({...d,filterName:i.target.value})),a?.filterName&&c?.("filterName")},label:n?.saveStep?.filterNameInput?.label,placeholder:n?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:a?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),my(M0,{checked:o.exposed,onChange:i=>l(d=>({...d,exposed:i})),title:n?.saveStep?.exposureSwitch?.title,label:n?.saveStep?.exposureSwitch?.label,sublabel:n?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var fy={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 Nk}from"@cleen/ui-core";import{useState as k0}from"react";import{jsx as Tk}from"react/jsx-runtime";var hy=({children:e,value:t})=>{let[n,o]=k0(!1),[l,a]=k0(Zc),{errors:c,setError:i,clearError:d}=Nk({}),[s,p]=k0(!1),g=()=>{o(!1),t?.onClose?.()};return Tk(rt.Provider,{value:{isSaveFiltersStep:n,setIsSaveFiltersStep:o,saveStepValues:l,setSaveStepValues:a,handleCloseSaveFilter:g,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:p,errors:c,setError:i,clearError:d,...t},children:e})};import{applyDefaults as Rk,cn as gy}from"@cleen/ui-core";import{forwardRef as vy,useContext as Lk}from"react";import{Fragment as Fk,jsx as Io,jsxs as Ak}from"react/jsx-runtime";var Ek=vy(function({selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,children:l,classNames:a,styles:c,labels:i,withSavedFilters:d=!0,onClear:s,onSave:p,onCancel:g,onApply:m,onClose:b,filterDateFormatter:v,onFilterCategoryChange:h,onFilterDelete:y,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I,...P},w){return Io(hy,{value:{selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,classNames:a,styles:c,labels:Rk(fy,i),withSavedFilters:d,onClear:s,onSave:p,onCancel:g,onApply:m,onClose:b,filterDateFormatter:v,onFilterCategoryChange:h,onFilterDelete:y,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I},children:Io(Dk,{...P,ref:w,children:l})})}),Dk=vy(function({children:t,...n},o){let{handleCloseSaveFilter:l,isSaveFiltersStep:a,selectedSavedFilter:c,savedFilters:i,isFiltersFetching:d,classNames:s,styles:p,labels:g,withSavedFilters:m=!0,onClear:b,onFilterCategoryChange:v,onFilterSelect:h}=Lk(rt);return Io(o0,{footer:Io(qb,{}),headerCloseBtn:Io(te,{onClick:()=>{b?.(),h?.(void 0)},leftIcon:Io(ot,{}),variant:"secondary",...s?.clearBtn,...p?.clearBtn,children:g?.clear}),classNames:{...s,content:gy("cleen-space-y-4",s?.content),footer:gy("cleen-justify-between",s?.footer)},onClose:l,ref:o,...n,title:a?g?.saveStep?.title:n.title,subtitle:a?g?.saveStep?.subtitle:n.subtitle,children:a?Io(uy,{}):Ak(Fk,{children:[m&&Io(dy,{filters:i,selectedSavedFilter:c,onFilterCategoryChange:v,isFiltersFetching:d}),t]})})});import{cn as jn}from"@cleen/ui-core";import{forwardRef as Ok}from"react";import{jsx as oi,jsxs as by}from"react/jsx-runtime";var yy=Ok(({title:e,titleTooltip:t,subtitle:n,required:o,labelProps:l,children:a,className:c,classNames:i,style:d,styles:s,...p},g)=>oi("div",{ref:g,className:jn("cleen",c),style:{...d,width:"100%"},...p,children:by("div",{className:jn("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:s?.container,children:[by("div",{className:jn("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:s?.titleColumn,children:[oi(ce,{...l,required:o,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:jn("cleen-truncate",i?.title?.classNames?.label)},...s?.title,children:e}),n&&oi("div",{className:jn("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-w-full cleen-font-normal cleen-text-neutral-600 cleen-text-sm",i?.subtitle),style:s?.subtitle,children:n})]}),oi("div",{className:jn("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:s?.controlsRow,children:a})]})}));yy.displayName="FormGroup";import{cn as Be,useDebounce as _k,useOutsideClick as zk,usePositionClose as Vk,ZIndex as Hk}from"@cleen/ui-core";import{useEffect as ni,useMemo as B0,useRef as N0,useState as vt}from"react";import{createPortal as Uk}from"react-dom";import{Fragment as Wk,jsx as Q,jsxs as He}from"react/jsx-runtime";function Gk(e){return e!==null&&typeof e=="object"}function Fe(e,t){if(Gk(e)&&t in e)return e[t]}function Iy(e,t){let n=Fe(e,t);return Array.isArray(n)?n:[]}function Cy(e,t){let n=e?.[t];if(typeof n=="string"||typeof n=="number")return n;let o=e?.data?.[t];return typeof o=="string"||typeof o=="number"?o:null}var $k=({position:e="bottom-right",labels:t,groups:n=[],selectedItemID:o=null,groupThreeDotMenuOptions:l=[],itemThreeDotMenuOptions:a=[],refetchData:c,onGroupSave:i,onItemSave:d,onGroupThreeDotMenuClick:s,onItemThreeDotMenuClick:p,onSearchChange:g,onItemSelect:m,groupIDKey:b,groupTitleKey:v,itemsKey:h,itemIDKey:y,itemGroupIDKey:C,itemTitleKey:x,itemSubtitleKey:I,newValueMinLength:P=2,isLoading:w=!1,isGroupSaving:R=!1,isItemSaving:B=!1,selectedColor:S="rgb(var(--cleen-primary-100))",hasFiltering:E=!0,zIndex:N=Hk.POPOVER,className:M,classNames:T,style:F,styles:L})=>{let[k,z]=vt(!1),[D,A]=vt(!1),[O,V]=vt(!1),[G,W]=vt(!1),[q,H]=vt(null),[U,j]=vt(null),[_,Z]=vt(""),[pe,de]=vt(""),[fe,st]=vt(null),We=N0(void 0),[J,ae]=vt(""),[Ze]=_k(J,500),[Qe,Te]=vt(""),pt=N0(null),qe=N0(null),{positionStyles:Y,isMounted:xe}=Vk({triggerRef:pt,targetRef:qe,position:e,isOpen:k,offset:10});zk({refs:[qe],handler:()=>z(!1),enabled:k});let Me=B0(()=>n??[],[n]),Pe=B0(()=>{let $=new Map;for(let ee of Me){let K=Fe(ee,b);K!=null&&$.set(K,Iy(ee,h))}return $},[Me,b,h]),Xe=B0(()=>{let $=[];return q==null?$=Array.from(Pe?.values()).flat():$=Pe?.get(q)??[],E&&Qe.trim()!==""&&($=$.filter(ee=>{let K=String(Fe(ee,x)??""),ke=I?String(Fe(ee,I)??""):"";return K.toLowerCase().includes(Qe?.toLowerCase()??"")||ke.toLowerCase().includes(Qe?.toLowerCase()??"")})),$},[q,Pe,Qe,x,I,E]);ni(()=>{let $=We.current!==o;if(We.current=o,o==null){$&&(j(null),H(null));return}let K=Array.from(Pe?.values())?.flat()?.find(ke=>Fe(ke,y)===o);if(K){let ke=Fe(K,C)??null;j(K),H(ke)}else $&&j(null)},[o,Pe,y,C]),ni(()=>{if(fe==null)return;let ee=Array.from(Pe?.values())?.flat()?.find(ke=>Fe(ke,y)===fe);if(!ee)return;let K=Fe(ee,C);H(typeof K=="string"||typeof K=="number"?K:null),j(ee),st(null),m?.(ee)},[fe,Pe,y,C,m]),ni(()=>{g&&g(Ze??"")},[Ze,g]),ni(()=>{k||(A(!1),V(!1),Z(""),de(""))},[k]);let Je=$=>{$===q?(H(null),j(null),m?.(null)):(j(null),H($),m?.(null))},Ir=$=>{let ee=Fe($,C);H(typeof ee=="string"||typeof ee=="number"?ee:null),j($),m?.($),z(!1)};async function No(){if(!i)return;let $={[v]:_};try{let ee=await i($);if(ee?.success){A(!1),Z(""),c&&await c();let K=Cy(ee,b);K!=null&&(H(K),j(null),m?.(null))}}catch{}}async function ne(){if(!d)return;let $={[x]:pe,...q!=null?{[C]:q}:{}};try{let ee=await d($);ee?.success&&(V(!1),de(""),st(Cy(ee,y)),c&&await c())}catch{}}return Q("div",{className:Be("cleen",M),style:F,children:He("div",{ref:pt,className:Be("cleen-relative cleen-w-full cleen-cursor-pointer",T?.container),style:L?.container,onClick:$=>{$.stopPropagation(),z(!0)},children:[Q(he,{placeholder:t?.inputPlaceholder,rightIcon:Q(At,{className:Be("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!k})}),value:J,onChange:$=>{H(null),j(null),ae($.target.value)},classNames:{input:k?"":"cleen-cursor-pointer"},className:T?.input,style:L?.input}),k&&Uk(Q("div",{className:"cleen",children:He("div",{ref:qe,className:Be("cleen-overflow-hidden cleen-flex cleen-items-start cleen-justify-start cleen-w-[500px] cleen-h-[344px] cleen-bg-surface cleen-border cleen-border-border cleen-rounded-lg cleen-shadow-xl cleen-cursor-default","cleen-absolute",{"cleen-opacity-0":!xe},T?.columnsContainer),style:{zIndex:N,top:`${Y.top}px`,left:`${Y.left}px`,...L?.columnsContainer},children:[He("div",{className:"cleen-w-1/2 cleen-h-full",children:[Q("div",{className:Be("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",T?.leftColumn),style:L?.leftColumn,children:w?Q("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:Q(le,{size:"sm"})}):n?.map(($,ee)=>{let K=Fe($,b),ke=K===q,to=String(Fe($,v)??""),ji=Iy($,h)?.length??0;return He("div",{className:Be("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 cleen-transition-colors hover:cleen-bg-neutral-50",T?.groupItem),style:{...L?.groupItem||{},...ke?{backgroundColor:S}:{}},onClick:Se=>{Se.stopPropagation(),Se.preventDefault(),Je(K??null)},children:[He("div",{className:Be("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[Q("span",{className:Be("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",T?.groupItemTitle),style:L?.groupItemTitle,children:to}),Q(Ie,{color:"lighter-blue",label:ji})]}),l?.length>0&&Q("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Se=>{Se.stopPropagation(),s?.($)},children:Q(Jn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(Se=>{let Cr=Se?.disabledOptionCallback?.($);return{...Se,type:"button",label:Q("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:Se?.label}),onClick:()=>{Cr||Se?.onClick($)},disabled:Cr}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-surface cleen-rounded-md",children:Q(kn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${ee}-${String(K??ee)}`)})}),Q(ht,{isHorizontal:!0}),D?He("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[Q(he,{leftIcon:Q(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:_,onChange:$=>Z($.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),Q("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?R?Q(le,{}):_?.length>P?Q(te,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{No()},classNames:{container:"cleen-w-max cleen-h-7"}}):Q("div",{}):Q("div",{})})]}):He("div",{className:Be("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer cleen-transition-colors hover:cleen-bg-neutral-50",T?.newGroupButton),style:L?.newGroupButton,onClick:()=>A(!0),children:[Q(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),Q("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),Q(ht,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),He("div",{className:"cleen-w-1/2 cleen-h-full",children:[He("div",{className:Be("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",T?.rightColumn),style:L?.rightColumn,children:[E&&He(Wk,{children:[Q(he,{leftIcon:Q(zt,{className:"cleen-size-5"}),className:Be("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!G}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:$=>Te($.target.value),placeholder:t?.filterPlaceholder}),Q("button",{type:"button",className:Be("cleen-w-full cleen-py-0.5 cleen-transition-all cleen-bg-neutral-50 hover:cleen-bg-muted cleen-border-t cleen-border-border",{"-cleen-mt-10 cleen-border-transparent":!G}),onClick:()=>W($=>!$),children:Q(Er,{className:Be("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",G?"-cleen-rotate-90":"cleen-rotate-90")})})]}),w?Q("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:Q(le,{size:"sm"})}):Xe?.map(($,ee)=>{let K=Fe($,y),ke=U&&Fe(U,y)===K,to=String(Fe($,x)??""),ji=I?String(Fe($,I)??""):"";return He("div",{className:Be("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-neutral-50 cleen-transition-colors",T?.item),style:{...L?.item||{},...ke?{backgroundColor:S}:{}},onClick:Se=>{Se.stopPropagation(),Se.preventDefault(),Ir($)},children:[He("div",{className:Be("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",a?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[Q("span",{className:Be("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",T?.itemTitle),style:L?.itemTitle,children:to}),Q("span",{className:Be("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",T?.itemSubtitle),style:L?.itemSubtitle,children:ji})]}),a?.length>0&&Q("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Se=>{Se.stopPropagation(),p?.($)},children:Q(Jn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:a?.map(Se=>{let Cr=Se?.disabledOptionCallback?.($);return{...Se,type:"button",label:Q("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:Se?.label}),onClick:()=>{Cr||Se?.onClick($)},disabled:Cr}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-surface cleen-rounded-md",children:Q(kn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${ee}-${String(K??ee)}`)})]}),Q(ht,{isHorizontal:!0}),O?He("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[Q(he,{leftIcon:Q(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:pe,onChange:$=>de($.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),Q("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:d?B?Q(le,{}):pe?.length>P?Q(te,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{ne()},classNames:{container:"cleen-w-max cleen-h-7"}}):Q("div",{}):Q("div",{})})]}):He("div",{className:Be("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",T?.newItemButton),style:L?.newItemButton,onClick:()=>V(!0),children:[Q(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),Q("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!k&&U&&Q("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-surface",onClick:()=>z(!0),children:Q("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(Fe(U,x)??"")})})]})})};import{cn as Ee,useDebounce as qk,useOutsideClick as Xk,usePositionClose as Kk,ZIndex as Yk}from"@cleen/ui-core";import{forwardRef as Zk,useEffect as Sy,useId as Qk,useMemo as wy,useRef as ri,useState as ai}from"react";import{createPortal as Jk}from"react-dom";import{cn as en}from"@cleen/ui-core";import{jsx as Co,jsxs as xy}from"react/jsx-runtime";var Py=({options:e,selection:t,classNames:n,styles:o,onChoose:l,displaySubtextInline:a=!0,activeIndex:c=-1,getOptionId:i,onActiveIndexChange:d,...s})=>Co("div",{...s,children:Co("div",{className:en("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",n?.container),style:o?.container,children:e?.map((p,g)=>{let m=t?.some(v=>v?.value===p?.value),b=g===c;return xy("li",{id:i?.(g),role:"option","aria-selected":m,className:en("cleen-flex cleen-justify-between cleen-items-center hover:cleen-bg-muted cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-cursor-pointer cleen-select-none",{"cleen-bg-muted hover:cleen-bg-neutral-200":m,"cleen-bg-muted":b},n?.item),style:o?.item,onMouseEnter:()=>d?.(g),onClick:()=>l?.(p,m),children:[xy("div",{className:en("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",n?.labels,!a&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:o?.labels,children:[p?.leadingBadgeValue&&Co(Ie,{color:"gray",label:p?.leadingBadgeValue}),p?.icon,p?.label&&Co("span",{className:en("cleen-font-medium cleen-text-foreground cleen-text-base",!a&&"cleen-w-full cleen-truncate"),children:p?.label}),p?.preSublabel&&Co("span",{className:en("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!a&&"cleen-w-full cleen-truncate"),children:p?.preSublabel}),p?.sublabel&&Co("span",{className:en("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!a&&"cleen-w-full cleen-truncate"),children:p?.sublabel})]}),m&&Co("div",{className:n?.checkContainer,style:o?.checkContainer,children:Co(Dt,{className:en("cleen-text-primary",n?.check),style:o?.check})})]},p.value)})})});import{Fragment as eB,jsx as we,jsxs as li}from"react/jsx-runtime";var jk=Zk(function({id:t,name:n,label:o,labelTooltip:l,labels:a,options:c,value:i,displaySelected:d="under",isLoading:s=!1,required:p,internalFiltering:g=!1,closeOnReachingLimit:m=!0,limit:b,getCustomBadgeLabel:v,displaySubtextInline:h=!0,selectedBadgeColor:y="blue",debounceDelay:C=0,characterThreshold:x=2,disabled:I=!1,isNoDataVisibleOnCreateNew:P=!0,zIndex:w=Yk.DROPDOWN,className:R,classNames:B,style:S,styles:E,infoLabels:N,menuDetachedFromPortal:M,onInputChange:T,onChange:F,onCreateNewOption:L,createNewOptionLabelString:k,onLookupBlur:z,triggerBlurOnlyWhenOpen:D=!0,menuRef:A,...O},V){let[G,W]=ai(!1),q=ri(null),H=ri(null),U=A??q,{positionStyles:j,isMounted:_}=Kk({triggerRef:H,targetRef:U,position:"bottom-left",isOpen:G,offset:4});Xk({refs:[U,H],handler:()=>{W(!1),z?.()},enabled:D?G:!0});let[Z,pe]=ai(""),de=qk(Z,C),fe=C?de:Z,st=ri(fe),We=ri(!1),J=()=>{We.current=!1,pe("")},ae=Array.isArray(i),[Ze,Qe]=ai([]),Te=ae?i:Ze,pt=["inside","inside-badge"].includes(d),qe=(ne,$=!1)=>{if($){let K=Te.filter(ke=>ke.value!==ne.value);ae||Qe(K),F?.(K);return}let ee;if(b===1)ee=[ne];else{if(b&&Te.length>=b)return;ee=[...Te,ne]}ae||Qe(ee),F?.(ee),m&&b&&ee.length>=b&&(J(),W(!1))},Y=wy(()=>g?c?.filter(ne=>ne?.label?.match(new RegExp(fe,"i"))):c,[c,fe,g]),xe=wy(()=>k&&L&&!s&&Z?.length>0&&!Y?.some(ne=>ne?.label===Z)?typeof k=="function"?k(Z):k:null,[k,L,s,Z,Y]);Sy(()=>{if(st.current!==fe)if(st.current=fe,fe.length<x)W(!1);else{T?.(fe);let ne=!!H.current?.contains(document.activeElement);We.current&&ne&&W(!0)}},[fe,T,x]);let Me=Qk(),Pe=ne=>`${Me}-option-${ne}`,[Xe,Je]=ai(-1);Sy(()=>{Je(-1)},[fe,G]);let Ir=ne=>{let $=Y?.length??0;switch(ne.key){case"ArrowDown":if(!$)return;if(ne.preventDefault(),!G){W(!0),Je(0);return}Je(ee=>(ee+1)%$);break;case"ArrowUp":if(!$)return;if(ne.preventDefault(),!G){W(!0),Je($-1);return}Je(ee=>(ee-1+$)%$);break;case"Home":if(!G||!$)return;ne.preventDefault(),Je(0);break;case"End":if(!G||!$)return;ne.preventDefault(),Je($-1);break;case"Enter":{if(!G||Xe<0)return;let ee=Y?.[Xe];if(!ee)return;ne.preventDefault();let K=Te?.some(ke=>ke.value===ee.value);qe(ee,K);break}case"Escape":G&&(ne.preventDefault(),W(!1));break;default:break}},No=li("ul",{id:Me,role:"listbox",className:Ee("cleen-flex cleen-flex-col cleen-gap-0.5 cleen-bg-background cleen-shadow-[0px_12px_16px_-4px_rgba(var(--cleen-neutral-100))] cleen-px-1.5 cleen-pt-1 cleen-pb-0.5 cleen-border cleen-border-border cleen-rounded-lg",B?.menu?.container),style:E?.menu?.container,children:[s?we(le,{className:Ee("cleen-py-3",B?.menu?.loader),style:E?.menu?.loader}):!Y||Y?.length===0?!!a?.noDataFound&&(P||!xe)&&we("div",{className:Ee("cleen-flex cleen-justify-center cleen-items-center cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-text-center cleen-pointer-events-none cleen-select-none",B?.menu?.noDataFound),style:E?.menu?.noDataFound,children:a?.noDataFound}):we(Py,{options:Y,selection:Te,onChoose:qe,displaySubtextInline:h,activeIndex:Xe,getOptionId:Pe,onActiveIndexChange:Je,...B?.menu?.list,...E?.menu?.list}),xe&&li("div",{className:Ee("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",B?.createNewOption?.container),style:E?.createNewOption?.container,children:[we(ht,{...B?.createNewOption?.divider,...E?.createNewOption?.divider}),we("span",{className:Ee("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",B?.createNewOption?.value),style:E?.createNewOption?.value,onClick:()=>{let ne=L?.(Z);typeof ne=="boolean"&&!ne||(J(),W(!1))},children:xe})]})]});return we("div",{className:Ee("cleen",R),style:S,children:li("div",{className:Ee("cleen-flex cleen-flex-col cleen-w-full",B?.container),style:E?.container,children:[o&&we(ce,{htmlFor:t||n,required:p,tooltip:l,className:Ee("cleen-mb-1.5",B?.label?.className),classNames:B?.label?.classNames,...E?.label,children:o}),we("div",{ref:H,className:Ee("cleen-relative cleen-flex cleen-items-center",B?.input?.container),style:E?.input?.container,children:we(he,{id:t||n,type:"search",autoFocus:!1,autoComplete:"off",className:Ee("cleen-w-full",B?.input?.component?.className),classNames:{...B?.input?.component?.classNames,inputContainer:Ee({"cleen-flex-wrap":pt},B?.input?.component?.classNames?.inputContainer),input:Ee({"cleen-pl-2":pt},B?.input?.component?.classNames?.input),leftIconContainer:Ee({"cleen-pr-0":pt},B?.input?.component?.classNames?.leftIconContainer)},...E?.input?.component,leftIcon:li(eB,{children:[we(zt,{}),pt&&(Te||[])?.length>0&&we("div",{className:Ee("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{W(!G)},children:d==="inside-badge"?Te?.map(ne=>we(Ie,{label:ne?.label,color:"blue",variant:"semiRounded"},ne.value)):we("span",{className:Ee("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:Te?.map(ne=>ne?.label).join(", ")})})," "]}),onFocus:()=>{fe.length>=x&&Z.length>=x&&W(!0)},value:Z,onChange:ne=>{We.current=!0,pe(ne.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":G,"aria-controls":G?Me:void 0,"aria-activedescendant":G&&Xe>=0?Pe(Xe):void 0,onKeyDown:Ir,ref:V,required:p,disabled:I,...O})}),G&&(M?we("div",{ref:U,children:No}):Jk(we("div",{className:"cleen",children:we("div",{ref:U,className:Ee("cleen-absolute",{"cleen-opacity-0":!_}),style:{zIndex:w,top:`${j.top}px`,left:`${j.left}px`,minWidth:H.current?.offsetWidth?`${H.current.offsetWidth}px`:void 0},children:No})}),document.body)),d==="under"&&Te?.length>0&&we("span",{className:Ee("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",B?.pillbadge?.container),style:E?.pillbadge?.container,children:Te?.map(ne=>we(Ie,{label:v?v(ne):ne?.label,color:y,removeable:!I,onRemoveClicked:()=>{if(I)return;let $=Te?.filter(ee=>ee?.value!==ne?.value);ae||Qe($),F?.($)},...B?.pillbadge?.component,...E?.pillbadge?.component},ne.value))}),(N?.errorMessage||N?.infoMessage||N?.subtitle)&&we(re,{...N})]})})});import{cn as me}from"@cleen/ui-core";import{forwardRef as tB}from"react";import oB from"react-markdown";import nB from"remark-gfm";import{jsx as se}from"react/jsx-runtime";var rB=tB(function({components:t,children:n,className:o,classNames:l,style:a,styles:c,...i},d){let s={h1:({children:p})=>se("h1",{className:me("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:p}),h2:({children:p})=>se("h2",{className:me("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:p}),h3:({children:p})=>se("h3",{className:me("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:p}),h4:({children:p})=>se("h4",{className:me("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:p}),h5:({children:p})=>se("h5",{className:me("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:p}),h6:({children:p})=>se("h6",{className:me("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:p}),p:({children:p})=>se("p",{className:me("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:p}),a:({href:p,children:g})=>se("a",{href:p,className:me("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:g}),ul:({children:p})=>se("ul",{className:me("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:p}),ol:({children:p})=>se("ol",{className:me("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:p}),li:({children:p})=>se("li",{className:me("cleen-mb-1"),children:p}),blockquote:({children:p})=>se("blockquote",{className:me("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-neutral-700 cleen-mb-4"),children:p}),code:({className:p,children:g,...m})=>p?se("code",{className:me("cleen-font-mono cleen-text-sm"),...m,children:g}):se("code",{className:me("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...m,children:g}),pre:({children:p})=>se("pre",{className:me("cleen-bg-muted dark:cleen-bg-neutral-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:p}),hr:()=>se("hr",{className:me("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:p,alt:g})=>se("img",{src:p,alt:g,className:me("cleen-max-w-full cleen-rounded")}),strong:({children:p})=>se("strong",{className:me("cleen-font-semibold"),children:p}),em:({children:p})=>se("em",{className:me("cleen-italic"),children:p}),table:({children:p})=>se("div",{className:me("cleen-overflow-x-auto cleen-mb-4"),children:se("table",{className:me("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:p})}),thead:({children:p})=>se("thead",{className:me("cleen-border-b cleen-border-border"),children:p}),th:({children:p})=>se("th",{className:me("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:p}),td:({children:p})=>se("td",{className:me("cleen-p-2 cleen-border-b cleen-border-border"),children:p}),input:({type:p,checked:g,disabled:m})=>p==="checkbox"?se("input",{type:"checkbox",checked:g,disabled:m,readOnly:!0,className:me("cleen-mr-2 cleen-align-middle")}):se("input",{type:p})};return se("div",{ref:d,className:me("cleen",o,l?.container),style:{...a,...c?.container},...i,children:se(oB,{...i,remarkPlugins:[nB],components:{...s,...t},children:n})})});import{cn as tn,useBodyScrollLock as aB,useCleenOverlays as My,ZIndex as lB}from"@cleen/ui-core";import{forwardRef as cB,useCallback as iB,useEffect as T0,useId as sB,useRef as pB,useState as ky}from"react";import{createPortal as dB}from"react-dom";import{jsx as Za,jsxs as Ny}from"react/jsx-runtime";var mB={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},By=300,uB=cB(function({isOpen:t=!1,onClose:n,closeOnOverlayClick:o=!0,closeButtonIcon:l=Za(Ae,{className:"cleen-size-5"}),header:a,footer:c,zIndex:i=lB.MODAL,size:d="md",color:s,p,gap:g,radius:m=16,className:b,classNames:v,style:h,styles:y,children:C,...x},I){let[P,w]=ky(t),[R,B]=ky(t),S=pB(null),E=sB(),{addOverlay:N,removeOverlay:M}=My(),T=iB(()=>{w(!1),setTimeout(()=>n?.(),By)},[n]);return T0(()=>{if(t){B(!0);let F=setTimeout(()=>w(!0),1);return()=>clearTimeout(F)}else{w(!1);let F=setTimeout(()=>B(!1),By);return()=>clearTimeout(F)}},[t]),T0(()=>{if(t)return N(E),()=>M(E)},[N,M,t,E]),T0(()=>{let F=L=>{let{overlays:k}=My.getState();L.key==="Escape"&&k[k.length-1]===E&&T()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[T,E]),aB(R),R?dB(Ny("div",{className:tn("cleen",b),style:h,ref:I,...x,children:[Za("div",{className:tn("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",v?.overlay),style:{zIndex:i,...y?.overlay},onClick:()=>{o&&T()},"aria-hidden":"true"}),Za("div",{className:tn("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",v?.container),style:{zIndex:i,...y?.container},"aria-modal":"true",role:"dialog",children:Ny(ue,{header:a,footer:c,color:s,p,gap:g,radius:m,className:tn("cleen-relative cleen-shadow-xl cleen-w-full cleen-max-w-lg cleen-rounded-lg cleen-pointer-events-auto",v?.modal?.className),style:{maxWidth:typeof d=="number"?d:mB[d],...y?.modal?.style},classNames:{...v?.modal?.classNames,container:tn("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",v?.modal?.classNames?.container),childrenContainer:tn("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",v?.modal?.classNames?.childrenContainer)},styles:y?.modal?.styles,ref:S,children:[C,l&&Za("div",{className:tn("cleen-top-3 cleen-right-3 cleen-absolute"),children:Za(te,{variant:"borderless",onClick:T,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:l})})]})})]}),document.body):null});import{Fragment as fB,jsxs as Ty}from"react/jsx-runtime";var Ry={default:{duration:3e3,progressBar:!0},success:{duration:3e3,progressBar:!0},info:{duration:3e3,progressBar:!0},warning:{duration:4e3,progressBar:!0},error:{duration:2e4,progressBar:!1}},ci={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},Ly=3,Ey=180,Dy=15e3,er="general",Qa={[er]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},Fy={primary:"cleen-bg-primary-50 cleen-text-primary",success:"cleen-bg-success-bg cleen-text-success",warning:"cleen-bg-warning-bg cleen-text-warning",error:"cleen-bg-error-bg cleen-text-error",info:"cleen-bg-info-bg cleen-text-info",neutral:"cleen-bg-muted cleen-text-muted-foreground"},Ay={"top-left":"cleen-top-6 cleen-left-6 cleen-items-start","top-right":"cleen-top-6 cleen-right-6 cleen-items-end","top-center":"cleen-top-6 cleen-left-1/2 -cleen-translate-x-1/2 cleen-items-center","bottom-left":"cleen-bottom-6 cleen-left-6 cleen-items-start","bottom-right":"cleen-bottom-6 cleen-right-6 cleen-items-end","bottom-center":"cleen-bottom-6 cleen-left-1/2 -cleen-translate-x-1/2 cleen-items-center"},Ja={region:"Notifications",critical:"Critical",action:"Action",dismiss:"Dismiss",dismissAll:"Dismiss all",close:"Dismiss notification",dismissGroup:"Dismiss group",showAll:"Show all",collapse:"Collapse",expand:"Expand",openNotifications:"Open notifications",more:e=>`+${e} more`,moreBehind:e=>Ty(fB,{children:[Ty("b",{className:"cleen-text-foreground",children:["+",e," more"]})," behind this one"]}),overflow:e=>`${e} more`,listTitle:e=>`${e} notifications`,groupTitle:(e,t)=>`${e} ${t.pluralLabel}`,review:e=>`Review ${e.pluralLabel}`,needAction:e=>`${e} need your action`},Ue="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var R0={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},Oy=({exitDuration:e=Ey}={})=>{let t=R0,n=new Set,o=new Map,l=new Map,a=0,c=N=>{t={...t,...N},n.forEach(M=>M())},i=N=>{let M=o.get(N);!M||M.handle||t.paused||(M.startedAt=Date.now(),M.handle=setTimeout(()=>y(N),M.remaining))},d=N=>{let M=o.get(N);M?.handle&&(clearTimeout(M.handle),M.remaining=Math.max(0,M.remaining-(Date.now()-(M.startedAt??Date.now()))),M.handle=null,M.startedAt=null)},s=N=>{let M=o.get(N);M?.handle&&clearTimeout(M.handle),o.delete(N)},p=N=>{s(N.id),!(N.priority!=="normal"||N.duration===!1||N.duration<=0)&&(o.set(N.id,{duration:N.duration,remaining:N.duration,startedAt:null,handle:null,revision:++a}),i(N.id))},g=N=>{let M=l.get(N);M&&(l.delete(N),M.ids.delete(N),M.ids.size||clearTimeout(M.handle))},m=N=>{N.forEach(F=>l.delete(F));let M=t.toasts.filter(F=>!N.includes(F.id)),T=M.some(F=>!F.leaving);c({toasts:M,...!T&&{ui:R0.ui}})},b=N=>{g(N.id);let M=t.toasts.some(T=>T.id===N.id);return p(N),c({toasts:M?t.toasts.map(T=>T.id===N.id?N:T):[...t.toasts,N]}),N.id},v=(N,M)=>{let T=t.toasts.find(L=>L.id===N);if(!T||T.leaving)return;let F={...T,...M};("priority"in M||"duration"in M)&&p(F),c({toasts:t.toasts.map(L=>L.id===N?F:L)})},h=N=>{let M=t.toasts.filter(L=>N.includes(L.id)&&!L.leaving);if(!M.length)return;M.forEach(L=>s(L.id));let T=M.filter(L=>L.animationType==="none"||e<=0).map(L=>L.id),F=M.filter(L=>!T.includes(L.id)).map(L=>L.id);if(F.length){let L=t.toasts.filter(D=>!D.leaving).length;c({toasts:t.toasts.map(D=>F.includes(D.id)?{...D,leaving:!0,leavingFromCount:L}:D)});let k=new Set(F),z=setTimeout(()=>m([...k]),e);F.forEach(D=>l.set(D,{handle:z,ids:k}))}T.length&&m(T)},y=N=>h([N]);return{add:b,update:v,dismiss:y,dismissMany:h,clear:()=>h(t.toasts.map(N=>N.id)),pauseAll:()=>{t.paused||(o.forEach((N,M)=>d(M)),c({paused:!0}))},resumeAll:()=>{t.paused&&(c({paused:!1}),o.forEach((N,M)=>i(M)))},setExpanded:N=>c({ui:{...t.ui,expanded:N}}),toggleGroup:N=>{let{expandedGroups:M}=t.ui;c({ui:{...t.ui,expandedGroups:M.includes(N)?M.filter(T=>T!==N):[...M,N]}})},resetUi:()=>c({ui:R0.ui}),getTimer:N=>{let M=o.get(N);if(!M)return;let T=M.startedAt?Date.now()-M.startedAt:0;return{duration:M.duration,remaining:Math.max(0,M.remaining-T),revision:M.revision}},subscribe:N=>(n.add(N),()=>{n.delete(N)}),getSnapshot:()=>t}},ie=Oy();var hB=0,_y=({id:e,variant:t="default",priority:n,actions:o,duration:l,closeButton:a=!0,hideProgressBar:c,animationType:i="slide",...d})=>{let s=Ry[t];return ie.add({...d,id:e??`cleen-notification-${++hB}`,variant:t,actions:o,priority:n??(o?.length?"important":"normal"),duration:l??s.duration,closeButton:a,progressBar:c===void 0?s.progressBar:!c,animationType:i,createdAt:Date.now()})},gB=(e,{hideProgressBar:t,...n})=>ie.update(e,{...n,...t!==void 0&&{progressBar:!t}}),on={show:_y,update:gB,dismiss:ie.dismiss,dismissMany:ie.dismissMany,clear:ie.clear};import{useSyncExternalStore as vB}from"react";var ii=()=>vB(ie.subscribe,ie.getSnapshot,ie.getSnapshot);import{useMemo as bB}from"react";var yB=()=>{let{toasts:e,paused:t}=ii();return{toasts:bB(()=>e.filter(o=>!o.leaving),[e]),paused:t,show:on.show,update:on.update,dismiss:on.dismiss,dismissMany:on.dismissMany,clear:on.clear}};var zy={critical:0,important:1,normal:2},L0=e=>e.filter(t=>!t.leaving),si=e=>[...e].reverse(),Hy=e=>[...e].sort((t,n)=>zy[t.priority]-zy[n.priority]),tr=e=>!!e.actions?.length&&e.priority!=="normal",Uy=e=>e.category??er,nn=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),E0=e=>e.map(nn),Vy=(e,t)=>(e.leavingFromCount??0)>t,or=(e,t,n)=>{let o=L0(e);if(o.length>t)return n(o);let l=e.filter(a=>a.leaving&&Vy(a,t));return!o.length&&l.length>t?n(l).map(a=>({...a,exiting:!0})):E0(e.filter(a=>!a.leaving||!Vy(a,t)))};var D0=(e,t,n)=>or(e,n,o=>{let l=Hy(si(o)),a=l.filter(h=>h.priority==="critical"),c=l.filter(h=>h.priority!=="critical"),i=new Map;c.forEach(h=>{let y=Uy(h);i.set(y,[...i.get(y)??[],h])});let d=h=>Number(i.get(h).some(tr)),s=h=>i.get(h).length,p=[...i.keys()].sort((h,y)=>d(y)-d(h)||s(y)-s(h)),g=Math.max(0,n-Math.min(a.length,1)),m=p.slice(0,g),b=[...a.slice(1),...p.slice(g).flatMap(h=>i.get(h))],v=a.slice(0,1).map(nn);return m.forEach(h=>{let y=i.get(h);v.push(y.length===1?nn(y[0]):{type:"group",key:`group-${h}`,category:h,toasts:y,expanded:t.expandedGroups.includes(h)})}),v.push({type:"footer",key:"footer",overflow:b,toasts:o}),v});var F0=(e,t,n=1/0)=>or(e,n,o=>[...E0(o),{type:"footer",key:"footer",overflow:[],toasts:o}]);var A0=(e,t,n)=>or(e,n,o=>{let l=si(o);if(t.expanded)return[{type:"list",key:"list",toasts:l}];let a=l.filter(p=>p.priority==="critical"),c=l.filter(p=>p.priority!=="critical"),[i,...d]=c,s=a.map(nn);return i&&d.length?s.push({type:"deck",key:"deck",top:i,hidden:d}):i&&s.push(nn(i)),s});var Gy={list:F0,stack:A0,group:D0};import{createContext as IB,useContext as CB}from"react";var O0=IB({categories:Qa,labels:Ja,hiddenElements:[],now:Date.now(),paused:!1}),ge=()=>CB(O0);import{cn as xB,getTimeAgoLabel as PB}from"@cleen/ui-core";var X=(e,t,n,o)=>{let l=o?.classNames,a=o?.styles,c=e.styles?.[t]||a?.[t]?{...e.styles?.[t],...a?.[t]}:void 0;return{className:xB(n,e.classNames?.[t],l?.[t]),style:c,"data-slot":t}},St=({className:e,style:t,...n})=>({classNames:{container:e},styles:{container:t},...n}),nr=(e,t)=>e.categories[t]??{...e.categories[er],label:t,pluralLabel:t},pi=(e,t,n)=>{let o=Math.floor(Math.max(0,t-e));return typeof n.timeAgo=="function"?n.timeAgo(o):PB(o,n?.timeAgoStamps)},$y=e=>{if(e.animationType!=="none")return e.leaving?"motion-safe:cleen-animate-toast-out motion-reduce:cleen-opacity-0":"motion-safe:cleen-animate-toast-in"};import{cn as SB}from"@cleen/ui-core";import{jsx as Wy}from"react/jsx-runtime";var di=({toast:e})=>{let t=ge();if(t.hiddenElements.includes("badges"))return null;let n=e.priority==="critical";if(!n&&!tr(e))return null;let o=X(t,"badge",void 0,e);return Wy("span",{...X(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:Wy(Ie,{color:n?"red":"primary",variant:"full",label:n?t.labels.critical:t.labels.action,classNames:{container:SB("cleen-px-1.5 cleen-py-0 cleen-text-[10.5px] cleen-font-semibold cleen-leading-4",o.className)},styles:{container:o.style},"data-slot":o["data-slot"]})})};import{cn as qy}from"@cleen/ui-core";import{Fragment as wB,jsx as xo}from"react/jsx-runtime";var Xy=({icon:e,tone:t="neutral",size:n="md",className:o,...l})=>{let a=n==="sm"?14:18;return xo("span",{className:qy("cleen-inline-flex cleen-shrink-0 cleen-items-center cleen-justify-center",n==="sm"?"cleen-size-[26px] cleen-rounded-md":"cleen-size-[34px] cleen-rounded-lg",Fy[t],o),"aria-hidden":"true",...l,children:xo(ye,{name:e,width:a,height:a})})},_0=({category:e,...t})=>{let n=ge(),o=nr(n,e);return xo(Xy,{icon:o.icon,tone:o.tone,...t})},mi=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return xo(wB,{children:e.icon});if(e.category)return xo(_0,{category:e.category,size:t});let n=ci[e.variant];return n?xo(Xy,{icon:n.name,tone:n.tone,size:t}):null},rn=({icon:e,label:t,className:n,...o})=>xo("button",{type:"button","aria-label":t,title:t,className:qy("cleen-inline-flex cleen-size-[26px] cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-muted-foreground cleen-transition-colors hover:cleen-bg-muted hover:cleen-text-foreground focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary",n),...o,children:xo(ye,{name:e,width:14,height:14,strokeWidth:2})});import{cn as z0}from"@cleen/ui-core";import{Fragment as MB,jsx as ja,jsxs as V0}from"react/jsx-runtime";var Ky=({toast:e,children:t})=>{let n=ge(),o=e.title!==void 0&&e.title!==null,l=e.icon===void 0&&(!!e.category||!!ci[e.variant]),a=ja(mi,{toast:e}),c=ja(di,{toast:e});return V0(MB,{children:[(e.icon!==void 0||l||e.variant!=="default")&&ja("span",{...X(n,"icon",z0("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!l}),e),children:a}),V0("div",{...X(n,"body",z0("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[o?V0("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[ja("span",{...X(n,"title","cleen-min-w-0 cleen-max-w-full cleen-break-words cleen-text-sm cleen-font-semibold cleen-leading-[18px] cleen-text-foreground",e),children:e.title}),c]}):c,ja("span",{...X(n,"message",z0("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":o,"cleen-text-foreground":!o}),e),children:e.message}),t]})]})};import{useState as kB}from"react";import{jsx as BB}from"react/jsx-runtime";var Yy=({toast:e})=>{let t=ge(),[n]=kB(()=>ie.getTimer(e.id));if(!n)return null;let o=X(t,"progressBar","cleen-pointer-events-none cleen-absolute cleen-bottom-0 cleen-inset-x-0 cleen-h-0.5 cleen-origin-left cleen-rounded-full cleen-bg-primary-300 cleen-animate-toast-progress motion-reduce:cleen-hidden",e);return BB("span",{"aria-hidden":"true",...o,style:{animationDuration:`${n.duration}ms`,animationDelay:`-${n.duration-n.remaining}ms`,animationPlayState:t.paused?"paused":"running",...o.style}})};import{cn as NB}from"@cleen/ui-core";import{jsx as fi,jsxs as ui}from"react/jsx-runtime";var hi=({toast:e,inDeck:t=!1})=>{let n=ge(),{labels:o,hiddenElements:l}=n,a=e.priority==="critical",c=!!e.actions?.length,i=()=>ie.dismiss(e.id),d=g=>{g.key==="Escape"&&(g.stopPropagation(),i())},s=!!e.category&&!l.includes("meta"),p=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!l.includes("progressBar");return ui("div",{role:a?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||c?void 0:0,onKeyDown:d,...X(n,"toast",NB("cleen-overflow-hidden cleen-pointer-events-auto cleen-relative cleen-flex cleen-w-full cleen-gap-3 cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-py-3 cleen-pl-3.5 cleen-pr-3 cleen-text-foreground cleen-shadow-xl focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary",{"cleen-border-error cleen-shadow-[0_0_0_3px_rgba(var(--cleen-error),0.12)]":a,"cleen-z-10":t},!(t&&e.leaving)&&$y(e),e.className),e),children:[ui(Ky,{toast:e,children:[s&&ui("span",{...X(n,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[nr(n,e.category).label," \xB7"," ",pi(e.createdAt,n.now,o)]}),c&&ui("div",{...X(n,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((g,m)=>{let b=X(n,"action",Ue,e);return fi(te,{variant:g.variant??(m?"secondary":"primary"),label:g.label,onClick:()=>{g.onClick?.(e),i()},...St(b)},`${g.label}-${m}`)}),fi(te,{variant:"secondary",label:o.dismiss,onClick:i,...St(X(n,"dismissButton",Ue,e))})]})]}),e.closeButton&&fi(rn,{icon:"X",label:o.close,onClick:i,...X(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),p&&fi(Yy,{toast:e},ie.getTimer(e.id)?.revision)]})};import{Fragment as TB,jsx as rr,jsxs as gi}from"react/jsx-runtime";var Zy="cleen-pointer-events-none cleen-absolute cleen-rounded-b-xl cleen-border cleen-border-t-0 cleen-border-border cleen-bg-background cleen-shadow-lg",Qy=({top:e,hidden:t})=>{let n=ge(),{labels:o}=n,l=[e.id,...t.map(a=>a.id)];return gi(TB,{children:[gi("div",{...X(n,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[rr(hi,{toast:e,inDeck:!0}),rr("span",{"aria-hidden":"true",...X(n,"deckPeek",`${Zy} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&rr("span",{"aria-hidden":"true",...X(n,"deckPeek",`${Zy} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!n.hiddenElements.includes("deckMoreBar")&&gi("div",{...X(n,"deckMoreBar","cleen-pointer-events-auto cleen-mt-1.5 cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-gap-2 cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-py-2 cleen-pl-3 cleen-pr-2.5 cleen-text-xs cleen-font-medium cleen-text-muted-foreground cleen-shadow-lg"),children:[rr("span",{...X(n,"deckMoreLabel"),children:o.moreBehind(t.length)}),gi("span",{className:"cleen-flex cleen-gap-1",children:[rr(te,{variant:"secondary",label:o.showAll,"aria-expanded":!1,onClick:()=>ie.setExpanded(!0),...St(X(n,"deckShowAllButton",Ue))}),rr(te,{variant:"borderless",label:o.dismissAll,onClick:()=>ie.dismissMany(l),...St(X(n,"deckDismissAllButton",Ue))})]})]})]})};import{cn as RB}from"@cleen/ui-core";import{Fragment as LB,jsx as vi,jsxs as EB}from"react/jsx-runtime";var Jy=({count:e})=>{let t=ge(),{labels:n,onViewAll:o}=t;if(t.hiddenElements.includes("overflowPill"))return null;let l=EB(LB,{children:[n.overflow(e),vi("span",{className:"cleen-inline-flex cleen-h-5 cleen-min-w-5 cleen-items-center cleen-justify-center cleen-rounded-full cleen-bg-primary cleen-px-1.5 cleen-text-primary-foreground",children:vi(ye,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),a=X(t,"overflowPill",RB("cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-gap-2 cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-pl-3 cleen-pr-1.5 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors motion-safe:cleen-animate-toast-in",{"hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary":o}));return o?vi("button",{type:"button",onClick:()=>o(),...a,children:l}):vi("span",{...a,children:l})};import{jsx as jy,jsxs as DB}from"react/jsx-runtime";var eI=({overflow:e,toasts:t})=>{let n=ge(),o=!n.hiddenElements.includes("dismissAllButton");return!o&&!e.length?null:DB("div",{...X(n,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[o&&jy("button",{type:"button",onClick:()=>ie.dismissMany(t.map(l=>l.id)),...X(n,"dismissAllButton","cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-px-3 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary motion-safe:cleen-animate-toast-in"),children:n.labels.dismissAll}),e.length>0&&jy(Jy,{count:e.length})]})};import{jsx as an,jsxs as bi}from"react/jsx-runtime";var yi=({toast:e,onDismiss:t})=>{let n=ge(),o=e.actions?.[0],l=e.title!==void 0&&e.title!==null;return bi("div",{...X(n,"row","cleen-flex cleen-items-start cleen-gap-2.5 cleen-border-b cleen-border-border cleen-py-2.5 cleen-pl-3.5 cleen-pr-3 last:cleen-border-b-0 hover:cleen-bg-surface"),children:[an("span",{...X(n,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:an(mi,{toast:e,size:"sm"})}),bi("div",{...X(n,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[bi("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[an("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:l?e.title:e.message}),an(di,{toast:e})]}),l&&an("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),bi("span",{...X(n,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[o&&an(rn,{icon:"ArrowRight",label:o.label,onClick:()=>{o.onClick?.(e),t(e.id)}}),an(rn,{icon:"X",label:n.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as FB,useLayoutEffect as AB,useRef as OB}from"react";var _B='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',Ii=(e,t,n)=>{let o=OB(!1);return FB(()=>{e.current?.focus({preventScroll:!0})},[e]),AB(()=>{let i=document.activeElement;o.current&&e.current&&(!i||i===document.body)&&e.current.focus({preventScroll:!0})},[e,t]),{onFocus:()=>{o.current=!0},onBlur:i=>{let d=i.relatedTarget;d&&!i.currentTarget.contains(d)&&(o.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),n();return}if(i.key!=="Tab"||!e.current)return;let d=[...e.current.querySelectorAll(_B)],s=d[0],p=d[d.length-1];!s||!p||(i.shiftKey&&document.activeElement===s?(i.preventDefault(),p.focus()):!i.shiftKey&&(document.activeElement===p||document.activeElement===e.current)&&(i.preventDefault(),s.focus()))}}};import{useRef as zB}from"react";import{Fragment as HB,jsx as Oe,jsxs as Wt}from"react/jsx-runtime";var H0=3,VB=({toasts:e,onCollapse:t})=>{let n=zB(null),o=Ii(n,e.length,t);return Oe("div",{ref:n,tabIndex:-1,...o,className:"cleen-max-h-[min(40vh,320px)] cleen-overflow-auto cleen-border-y cleen-border-border focus-visible:cleen-outline-none",children:e.map(l=>Oe(yi,{toast:l,onDismiss:ie.dismiss},l.id))})},tI=({category:e,toasts:t,expanded:n})=>{let o=ge(),{labels:l,onViewAll:a,hiddenElements:c}=o,i=nr(o,e),d=t.map(b=>b.id),s=t.filter(tr).length,p=Math.min(...t.map(b=>b.createdAt)),g=()=>ie.dismissMany(d),m=()=>ie.toggleGroup(e);return Wt("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:b=>{b.key==="Escape"&&!n&&(b.stopPropagation(),g())},...X(o,"group","cleen-pointer-events-auto cleen-relative cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl motion-safe:cleen-animate-toast-in"),children:[Wt("div",{...X(o,"groupHeader","cleen-flex cleen-items-center cleen-gap-2.5 cleen-pb-2 cleen-pl-3 cleen-pr-10 cleen-pt-2.5"),children:[Oe(_0,{category:e,...X(o,"groupIcon")}),Wt("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[Wt("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[Oe("span",{...X(o,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:l.groupTitle(t.length,i)}),Oe("span",{...X(o,"groupCount","cleen-inline-flex cleen-h-5 cleen-min-w-5 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-full cleen-bg-primary cleen-px-1.5 cleen-text-[11px] cleen-font-semibold cleen-text-primary-foreground"),children:t.length})]}),!c.includes("meta")&&Wt("span",{...X(o,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[s>0&&Wt(HB,{children:[l.needAction(s)," \xB7 "]}),pi(p,o.now,l)]})]})]}),n?Oe(VB,{toasts:t,onCollapse:m}):Wt("div",{...X(o,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,H0).map(b=>Wt("div",{...X(o,"groupPreviewLine","cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5 cleen-text-[12.5px] cleen-leading-[17px] cleen-text-foreground"),children:[Oe("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),Oe("span",{className:"cleen-min-w-0 cleen-truncate",children:b.title??b.message})]},b.id)),t.length>H0&&!c.includes("groupMore")&&Oe("span",{...X(o,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:l.more(t.length-H0)})]}),Wt("div",{...X(o,"groupFooter","cleen-flex cleen-items-center cleen-gap-1.5 cleen-pb-2.5 cleen-pl-14 cleen-pr-3 cleen-pt-1.5"),children:[a&&Oe(te,{variant:"primary",label:l.review(i),rightIcon:Oe(ye,{name:"ArrowRight",width:14,height:14}),onClick:()=>a(e),...St(X(o,"groupReviewButton",Ue))}),Oe(te,{variant:"secondary",label:n?l.collapse:l.expand,"aria-expanded":n,onClick:m,...St(X(o,"groupToggleButton",Ue))}),Oe("span",{className:"cleen-flex-1"}),Oe(te,{variant:"borderless",label:l.dismiss,onClick:g,...St(X(o,"groupDismissButton",Ue))})]}),Oe(rn,{icon:"X",label:l.dismissGroup,onClick:g,...X(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as UB}from"react";import{jsx as Po,jsxs as Ci}from"react/jsx-runtime";var oI=({toasts:e})=>{let t=ge(),{labels:n,onViewAll:o}=t,l=UB(null),a=()=>ie.setExpanded(!1),c=Ii(l,e.length,a);return Ci("div",{ref:l,tabIndex:-1,role:"group","aria-label":n.region,...c,...X(t,"list","cleen-pointer-events-auto cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl focus-visible:cleen-outline-none motion-safe:cleen-animate-toast-in"),children:[Ci("div",{...X(t,"listHeader","cleen-flex cleen-items-center cleen-gap-2 cleen-border-b cleen-border-border cleen-py-2 cleen-pl-3.5 cleen-pr-2.5 cleen-text-[13px] cleen-font-semibold"),children:[Ci("span",{children:[n.listTitle(e.length)," "]}),Po("span",{className:"cleen-flex-1"}),Po(te,{variant:"borderless",label:n.collapse,"aria-expanded":!0,leftIcon:Po(ye,{name:"ChevronUp",width:14,height:14}),onClick:a,classNames:{container:Ue}})]}),Po("div",{...X(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>Po(yi,{toast:i,onDismiss:ie.dismiss},i.id))}),Ci("div",{...X(t,"listFooter","cleen-flex cleen-gap-1.5 cleen-border-t cleen-border-border cleen-bg-surface cleen-px-2.5 cleen-py-2"),children:[o&&Po(te,{variant:"secondary",label:n.openNotifications,onClick:()=>o(),classNames:{container:Ue}}),Po("span",{className:"cleen-flex-1"}),Po(te,{variant:"secondary",label:n.dismissAll,onClick:()=>ie.dismissMany(e.map(i=>i.id)),classNames:{container:Ue}})]})]})};import{useEffect as GB,useState as $B}from"react";var nI=e=>{let[t,n]=$B(()=>Date.now());return GB(()=>{if(!e)return;n(Date.now());let o=setInterval(()=>n(Date.now()),Dy);return()=>clearInterval(o)},[e]),t};import{cn as G0}from"@cleen/ui-core";import{forwardRef as WB,useCallback as qB,useEffect as U0,useMemo as rI,useRef as aI}from"react";import{jsx as qt}from"react/jsx-runtime";var XB=e=>{switch(e.type){case"toast":return qt(hi,{toast:e.toast},e.key);case"deck":return qt(Qy,{top:e.top,hidden:e.hidden},e.key);case"list":return qt(oI,{toasts:e.toasts},e.key);case"group":return qt(tI,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return qt(eI,{overflow:e.overflow,toasts:e.toasts},e.key)}},KB=(e,t)=>qt("div",{"aria-hidden":"true",className:G0("cleen-flex cleen-flex-col cleen-gap-2.5",t,e.exiting&&e.type!=="toast"&&["cleen-pointer-events-none motion-safe:cleen-animate-toast-out motion-reduce:cleen-opacity-0"]),children:XB(e)},e.key),YB=WB(function({layout:t="list",maxVisible:n=Ly,position:o="bottom-right",categories:l,onViewAll:a,labels:c,classNames:i,styles:d,hiddenElements:s,className:p,style:g,...m},b){let v=ii(),h=L0(v.toasts).length,y=nI(v.toasts.length>0),C=aI(null),x=aI(!1),I=rI(()=>Gy[t](v.toasts,v.ui,n),[t,v.toasts,v.ui,n]),P=rI(()=>({categories:{...Qa,...l},labels:{...Ja,...c},classNames:i,styles:d,hiddenElements:s??[],onViewAll:a,now:y,paused:v.paused}),[l,c,i,d,s,a,y,v.paused]);U0(()=>{let{expanded:S,expandedGroups:E}=v.ui,N=v.toasts.some(M=>M.leaving);h<=n&&!N&&(S||E.length)&&ie.resetUi()},[h,n,v.toasts,v.ui]);let w=qB(()=>{let S=document.activeElement,E=!!(S&&C.current?.contains(S))&&!!S?.matches(":focus-visible");x.current||E?ie.pauseAll():ie.resumeAll()},[]);U0(()=>{h||(x.current=!1),w()},[h,w]),U0(()=>{let S=E=>{x.current&&!C.current?.contains(E.target)&&(x.current=!1,w())};return document.addEventListener("pointermove",S,{passive:!0}),()=>document.removeEventListener("pointermove",S)},[w]);let R=S=>{x.current=S,w()},B=()=>requestAnimationFrame(w);return qt("div",{className:G0("cleen",p),style:g,ref:b,children:qt(O0.Provider,{value:P,children:qt("div",{role:"region","aria-live":"polite","aria-label":P.labels.region,ref:C,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),onFocus:B,onBlur:B,...X(P,"region",G0("cleen-pointer-events-none cleen-fixed cleen-z-[9999] cleen-flex cleen-w-[380px] cleen-max-w-[calc(100vw-32px)] cleen-flex-col cleen-gap-2.5 cleen-text-sm",Ay[o])),...m,children:I.map(S=>KB(S,o.endsWith("left")?"cleen-items-start":o.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as lI}from"@cleen/ui-core";import{forwardRef as ZB,useState as QB}from"react";import{jsx as $0,jsxs as JB}from"react/jsx-runtime";var W0=ZB(({totalPages:e,labels:t,onGoToPage:n,classNames:o,styles:l,...a},c)=>{let[i,d]=QB(""),s=()=>{let g=parseInt(i,10);isNaN(g)||(n?.(Math.min(Math.max(g,1),e)),d(""))},p=g=>{g.key==="Enter"?s():g.key==="Escape"&&d("")};return $0("div",{className:"cleen",...a,children:JB("div",{className:lI("cleen-flex cleen-items-center cleen-gap-2",o?.container),style:l?.container,children:[$0("span",{className:lI("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",o?.label),style:l?.label,children:t?.goToPage}),$0(he,{ref:c,type:"number",min:1,max:e,value:i,onChange:g=>d(g.target.value),onKeyDown:p,...o?.input,...l?.input})]})})});import{cn as xi,useOutsideClick as jB,usePositionClose as eN}from"@cleen/ui-core";import{forwardRef as tN,useRef as cI,useState as iI}from"react";import{createPortal as oN}from"react-dom";import{jsx as ar,jsxs as rN}from"react/jsx-runtime";var nN=[10,20,50,100],q0=tN(({pageSize:e,pageSizes:t=nN,labels:n,onPageSizeChange:o,classNames:l,styles:a,...c},i)=>{let[d,s]=iI(e??t?.[0]??void 0),[p,g]=iI(!1),m=cI(null),b=cI(null),{positionStyles:v,isMounted:h}=eN({triggerRef:m,targetRef:b,isOpen:p,position:"top-left"});return jB({refs:[m,b],handler:()=>g(!1),enabled:p}),ar("div",{className:"cleen",ref:i,...c,children:rN("div",{className:xi("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",l?.container),style:a?.container,children:[ar(ve,{label:n?.itemsPerPage?.(d),classNames:{labelContainer:"cleen-min-w-max"},children:ar("div",{className:xi("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted hover:cleen-bg-neutral-200 cleen-p-2 cleen-rounded-lg cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-sm cleen-text-neutral-700 cleen-transition-colors cleen-cursor-pointer",l?.trigger),style:a?.trigger,onClick:()=>g(y=>!y),ref:m,children:d})}),p&&oN(ar("div",{className:"cleen",children:ar("div",{ref:b,className:xi("cleen-flex cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute cleen-z-50",{"cleen-opacity-0":!h},l?.menu),style:{top:`${v.top}px`,left:`${v.left}px`,...a?.menu},children:t?.filter(y=>y!==d)?.map(y=>ar("div",{className:xi("cleen-flex cleen-justify-center cleen-items-center hover:cleen-bg-muted cleen-p-2 cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",l?.menuItem),style:a?.menuItem,onClick:()=>{s(y),o?.(y),g(!1)},children:y},y))})}),document.body)]})})});var sI={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as So}from"@cleen/ui-core";import{forwardRef as aN,useCallback as Pi,useMemo as lN,useRef as cN}from"react";import{jsx as Ge,jsxs as sN}from"react/jsx-runtime";var iN=aN(({currentPage:e,totalPages:t,pageSize:n,pageSizes:o,hasGotoPage:l=!0,hasPageSizeSelector:a=!0,onPageChange:c,onPageSizeChange:i,labels:d=sI,classNames:s,styles:p,...g},m)=>{let b=cN(null),v=Pi(()=>{e<t&&c?.(e+1)},[e,t,c]),h=Pi(()=>{e>1&&c?.(e-1)},[e,c]),y=Pi(I=>Ge("span",{className:So("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-cursor-pointer",I===e&&"cleen-bg-muted hover:cleen-bg-neutral-200",s?.pageButton,I===e?s?.activePageButton:""),style:{...p?.pageButton,...I===e?p?.activePageButton:{}},onClick:()=>c?.(I),children:I},`page-${I}`),[e,c,s,p]),C=Pi(I=>Ge("span",{className:So("cleen-flex cleen-justify-center cleen-self-end cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.ellipsis),style:p?.ellipsis,onClick:()=>b.current?.focus(),children:"..."},I),[s,p]),x=lN(()=>{if(isNaN(e)||isNaN(t))return[];let I=[];if(I.push(Ge(ve,{label:d.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ge("span",{className:So("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-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.navButton),style:p?.navButton,onClick:h,children:Ge(Ft,{})})},"prev")),t<=7)for(let P=1;P<=t;P++)I.push(y(P));else if(I.push(y(1)),e<=3){for(let P=2;P<5;P++)I.push(y(P));I.push(C("dots-end")),I.push(y(t))}else if(e>=t-2){I.push(C("dots-start"));for(let P=t-3;P<=t;P++)I.push(y(P))}else I.push(C("dots-start")),I.push(y(e-1)),I.push(y(e)),I.push(y(e+1)),I.push(C("dots-end")),I.push(y(t));return I.push(Ge(ve,{label:d.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ge("span",{className:So("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-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.navButton),style:p?.navButton,onClick:v,children:Ge(dt,{})})},"next")),I},[e,t,d,s,p,C,y,v,h]);return Ge("div",{className:"cleen",ref:m,...g,children:sN("div",{className:So("cleen-flex cleen-justify-between cleen-gap-4",s?.container),style:p?.container,children:[a?Ge(q0,{pageSize:n,labels:d,onPageSizeChange:i,pageSizes:o,className:So("cleen-flex-1",s?.pageSizeSelector?.className),classNames:s?.pageSizeSelector?.classNames,...p?.pageSizeSelector}):Ge("div",{className:"cleen-flex-1"}),Ge("div",{className:So("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",s?.buttonsContainer),style:p?.buttonsContainer,children:x}),l?Ge(W0,{ref:b,totalPages:t,onGoToPage:c,labels:d,className:So("cleen-flex cleen-flex-1 cleen-justify-end",s?.goToPage?.className),classNames:s?.goToPage?.classNames,...p?.goToPage}):Ge("div",{className:"cleen-flex-1"})]})})});import{cn as X0,useDisclosure as pN,useOutsideClick as dN,usePositionClose as mN,ZIndex as uN}from"@cleen/ui-core";import{forwardRef as fN,useRef as pI}from"react";import{createPortal as hN}from"react-dom";import{jsx as K0,jsxs as gN}from"react/jsx-runtime";var el=fN(function({isOpen:t,onOpenChange:n,content:o,position:l="bottom-left",offset:a,zIndex:c=uN.POPOVER,children:i,className:d,classNames:s,style:p,styles:g,...m},b){let{isOpen:v,toggle:h,close:y}=pN({value:t,setValue:n}),C=pI(null),x=pI(null),{positionStyles:I,isMounted:P}=mN({triggerRef:C,targetRef:x,position:l,isOpen:v,offset:a});dN({refs:[C,x],handler:y,enabled:v});let w=R=>{R.stopPropagation(),h()};return gN("div",{className:X0("cleen",d),style:p,ref:b,...m,children:[K0("div",{ref:C,onClick:w,className:X0("cleen-size-fit",s?.trigger,v&&s?.triggerOpen),style:{...g?.trigger,...v?g?.triggerOpen:{}},children:i}),v&&hN(K0("div",{className:"cleen",onClick:R=>R.stopPropagation(),onPointerDown:R=>R.stopPropagation(),onMouseDown:R=>R.stopPropagation(),onTouchStart:R=>R.stopPropagation(),children:K0("div",{ref:x,className:X0("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!P},s?.popover),style:{zIndex:c,top:`${I.top}px`,left:`${I.left}px`,...g?.popover},onClick:R=>R.stopPropagation(),children:o})}),document.body)]})});import{cn as dI}from"@cleen/ui-core";import{forwardRef as vN,useEffect as bN,useState as yN}from"react";import{jsx as Si,jsxs as mI}from"react/jsx-runtime";var IN={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},uI=vN(({isFullscreen:e,percentage:t,duration:n=1e3,radius:o,stroke:l=16,size:a="md",color:c="rgb(var(--cleen-primary))",emptyColor:i="rgb(var(--cleen-neutral-200))",textColor:d="rgb(var(--cleen-foreground))",textHidden:s=!1,fontSize:p,renderText:g,className:m,classNames:b,style:v,styles:h,...y},C)=>{let x=o??IN[a]/2,I=x-l/2,P=I*2*Math.PI,[w,R]=yN(0);bN(()=>{let S=null;if(n===0){R(t);return}let E=N=>{S||(S=N);let M=N-S,T=Math.min(M/n*t,t);R(T),T<t&&requestAnimationFrame(E)};requestAnimationFrame(E)},[t,n]);let B=P-w/100*P;return Si("div",{ref:C,className:dI("cleen",m),style:v,...y,children:mI("div",{className:dI("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:h?.container,children:[mI("svg",{height:x*2,width:x*2,style:{transform:"rotate(-90deg)"},children:[Si("circle",{stroke:i,fill:"transparent",strokeWidth:l,r:I,cx:x,cy:x}),Si("circle",{stroke:c,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:P,strokeDashoffset:B,r:I,cx:x,cy:x})]}),!s&&Si("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:p??x/2.5,color:d},children:g?g(w):`${Math.round(w)}%`})]})})});uI.displayName="ProgressCircle";import{cn as at}from"@cleen/ui-core";import{useEffect as CN,useState as xN}from"react";import{Fragment as fI,jsx as Xt,jsxs as tl}from"react/jsx-runtime";var PN=({horizontal:e,boxes:t,selectedBox:n,onBoxClick:o,leftElement:l,rightElement:a,leftIcon:c,leftIconName:i,rightIconName:d,className:s,classNames:p,style:g,styles:m,...b})=>{let[v,h]=xN(n);CN(()=>{h(n)},[n]);let y=(P,w)=>tl(fI,{children:[l&&l(P),c||(i?Xt(ye,{name:i,className:at("cleen-w-5 cleen-h-5",w?"cleen-text-primary":"cleen-text-neutral-700",p?.leftIcon),style:m?.leftIcon}):null)]}),C=(P,w)=>Xt("span",{className:at("cleen-font-semibold",w?"cleen-text-primary":"cleen-text-neutral-700",p?.label),style:m?.label,children:P?.label}),x=(P,w)=>Xt("span",{className:at("cleen-font-semibold cleen-text-16px",w?"cleen-text-primary":"cleen-text-neutral-700",p?.subLabel),style:m?.subLabel,children:P?.subLabel}),I=(P,w)=>tl(fI,{children:[a&&a(P),d&&Xt(ye,{name:d,className:at("cleen-w-5 cleen-h-5",w?"cleen-text-primary":"cleen-text-neutral-700",p?.rightIcon),style:m?.rightIcon})]});return Xt("div",{className:at("cleen",s),style:g,...b,children:e?Xt("div",{className:at("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",p?.container),style:m?.container,children:t?.map(P=>{let w=P?.id===v?.id;return tl("div",{className:at("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-100 cleen-w-max",w?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",p?.box),style:m?.box,onClick:()=>{h(P),o?.(P)},children:[y(P,w),P?.label&&C(P,w),P?.subLabel&&x(P,w),I(P,w)]},P?.id)})}):Xt("div",{className:at("cleen-grid cleen-gap-3 cleen-w-full",p?.container),style:{gridTemplateColumns:"1fr auto 1fr",...m?.container},children:t?.map(P=>{let w=P?.id===v?.id;return tl("div",{className:at("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-50",w?"cleen-bg-primary-100 cleen-border-muted-foreground":"cleen-bg-surface cleen-border-border",p?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...m?.box},onClick:()=>{h(P),o?.(P)},children:[Xt("div",{className:at("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",p?.leftIconContainer),style:m?.leftIconContainer,children:y(P,w)}),Xt("div",{className:at("cleen-flex cleen-items-center cleen-justify-center",p?.labelContainer),style:m?.labelContainer,children:P?.label&&C(P,w)}),tl("div",{className:at("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",p?.rightIconContainer),style:m?.rightIconContainer,children:[P?.subLabel&&x(P,w),I(P,w)]})]},P?.id)})})})};import{cn as Kt}from"@cleen/ui-core";import{forwardRef as MN,useEffect as kN,useId as BN,useRef as NN,useState as TN}from"react";import{cn as hI}from"@cleen/ui-core";import{forwardRef as SN}from"react";import{jsx as gI,jsxs as wN}from"react/jsx-runtime";var wi=SN(function({checked:t,className:n,classNames:o,style:l,styles:a,...c},i){return wN("div",{className:hI("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-neutral-300 focus-within:cleen-ring-2 focus-within:cleen-ring-primary focus-within:cleen-ring-offset-1",t?"cleen-bg-primary":"cleen-bg-surface",n),style:l,children:[gI("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...c}),gI("span",{className:hI("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",o?.innerCircle),style:a?.innerCircle})]})});import{jsx as wt,jsxs as Mi}from"react/jsx-runtime";var RN=MN(function({required:t,radios:n,label:o,labelTooltip:l,className:a,classNames:c,style:i,styles:d,name:s,direction:p="vertical",radioPosition:g="left",defaultActiveId:m,value:b,infoLabels:v,onChange:h},y){let C=b!==void 0,[x,I]=TN(m??n[0]?.id),P=BN(),w=`${P}-label`,R=s??`cleen-radio-group-${P}`;kN(()=>{!C&&m!==void 0&&I(m)},[m,C]);let B=C?b:x,S=k=>B!=null&&B==k,E=k=>{C||I(k),h?.(k)},N=NN([]),M=n?.findIndex(k=>S(k.id)),T=M>=0?M:0,F=k=>{let z=n[k];z&&(E(z.id),N.current[k]?.focus())},L=(k,z)=>{let D=n.length;if(D)switch(k.key){case"ArrowDown":case"ArrowRight":k.preventDefault(),F((z+1)%D);break;case"ArrowUp":case"ArrowLeft":k.preventDefault(),F((z-1+D)%D);break;default:break}};return wt("div",{className:Kt("cleen",a),style:i,ref:y,children:Mi("div",{className:c?.container,style:d?.container,children:[o&&wt(ce,{id:w,htmlFor:P,required:t,tooltip:l,className:Kt("cleen-mb-1.5",c?.label?.className),classNames:c?.label?.classNames,...d?.label,children:o}),wt("div",{id:P,role:"radiogroup","aria-labelledby":o?w:void 0,className:Kt("cleen-flex cleen-flex-wrap cleen-gap-2.5",p==="vertical"&&"cleen-flex-col cleen-w-fit",c?.radios),style:d?.radios,children:n?.map((k,z)=>{let D=`${P}-${z}`,A=k.radioPosition??g;return Mi("div",{className:Kt("cleen-flex cleen-gap-2 hover:cleen-bg-muted cleen-p-5 cleen-border cleen-border-border hover:cleen-border-neutral-300 cleen-rounded-xl cleen-transition-all cleen-duration-200 cleen-cursor-pointer",p==="horizontal"&&"cleen-flex-1",S(k?.id)&&"cleen-border-primary hover:cleen-border-primary",c?.radioContainer,k?.className,S(k?.id)&&c?.radioActive),style:{...d?.radioContainer,...k?.style},onClick:O=>{O.target instanceof Element&&!O.target.closest("label, input")&&N.current[z]?.click()},children:[k.leftIcon,A==="left"&&wt(wi,{ref:O=>{N.current[z]=O},id:D,name:R,value:k.id,checked:S(k.id),tabIndex:z===T?0:-1,onChange:()=>E(k.id),onKeyDown:O=>L(O,z),className:Kt(c?.radioOuterCheckBox,k?.classNames?.outerCheckBox),style:{...d?.radioOuterCheckBox,...k?.styles?.outerCheckBox}}),Mi("label",{htmlFor:D,className:Kt("cleen-flex-1 cleen-cursor-pointer",c?.radioLabelsContainer,k?.classNames?.labelsContainer),style:{...d?.radioLabelsContainer,...k?.styles?.labelsContainer},children:[Mi("div",{className:"cleen-flex cleen-items-center cleen-gap-1",children:[wt("span",{className:Kt("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",c?.radioTitle,k?.classNames?.title),style:{...d?.radioTitle,...k?.styles?.title},children:k.title}),wt("span",{className:Kt("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",c?.radiotPostTitle,k?.classNames?.postTitle),style:{...d?.radiotPostTitle,...k?.styles?.postTitle},children:k.postTitle})]}),wt("span",{className:Kt("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",c?.radioSubTitle,k?.classNames?.subTitle),style:{...d?.radioSubTitle,...k?.styles?.subTitle},children:k?.subTitle})]}),A==="right"&&wt(wi,{ref:O=>{N.current[z]=O},id:D,name:R,value:k.id,checked:S(k.id),tabIndex:z===T?0:-1,onChange:()=>E(k.id),onKeyDown:O=>L(O,z),className:c?.radioOuterCheckBox,style:d?.radioOuterCheckBox}),A==="hidden"&&wt(wi,{ref:O=>{N.current[z]=O},id:D,name:R,value:k.id,checked:S(k.id),tabIndex:z===T?0:-1,onChange:()=>E(k.id),onKeyDown:O=>L(O,z),className:"cleen-sr-only"}),k.rightIcon]},k?.id)})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&wt(re,{...v})]})})});import{cn as lr,ColorHelpers as LN}from"@cleen/ui-core";import{forwardRef as EN,useRef as DN,useState as FN}from"react";import{jsx as ln,jsxs as vI}from"react/jsx-runtime";var AN=EN(function({id:t,required:n,label:o,labelTooltip:l,labels:a,infoLabels:c,value:i,onChange:d,amount:s=5,options:p=[],gap:g,size:m=36,readonly:b,color:v="rgb(var(--cleen-primary))",className:h,style:y,classNames:C,styles:x,...I},P){let[w,R]=FN(0),B=i!==void 0,S=B?i:w,E=p?.length>0?p:Array.from({length:s},(D,A)=>A+1),N=DN([]),M=E.findIndex(D=>D===S),T=M>=0?M:0,F=D=>{B||R(D),d?.(D)},L=D=>{let A=E[D];A!==void 0&&(F(A),N.current[D]?.focus())},k=(D,A)=>{if(b)return;let O=E.length;if(O)switch(D.key){case"ArrowRight":case"ArrowUp":D.preventDefault(),L((A+1)%O);break;case"ArrowLeft":case"ArrowDown":D.preventDefault(),L((A-1+O)%O);break;case"Home":D.preventDefault(),L(0);break;case"End":D.preventDefault(),L(O-1);break;default:break}},z=typeof o=="string"?o:"Rating";return ln("div",{className:lr("cleen",h),style:y,ref:P,...I,children:vI("div",{className:lr("cleen-space-y-2",C?.container),style:x?.container,children:[o&&ln(ce,{htmlFor:t,required:n,tooltip:l,className:lr("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...x?.label,children:o}),vI("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[ln("div",{role:"radiogroup","aria-label":z,className:lr("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...g?{gap:g}:{},...x?.list},children:E?.map((D,A)=>ln("button",{id:t,ref:O=>{N.current[A]=O},role:"radio","aria-checked":S===D,"aria-label":`${D}`,tabIndex:A===T?0:-1,onClick:()=>F(D),onKeyDown:O=>k(O,A),className:lr("cleen-flex cleen-justify-center cleen-items-center cleen-border cleen-border-border hover:cleen-border-muted-foreground cleen-rounded-full cleen-text-foreground 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",C?.item),style:{width:m,height:m,...S===D?{borderColor:v,backgroundColor:LN.trasparentize(v,.9),color:v}:{},...x?.item},type:"button",children:ln("span",{className:lr("cleen-font-medium cleen-text-sm",C?.value),style:x?.value,children:D})},D))}),a?.helperText&&ln("span",{className:"cleen-text-sm cleen-text-neutral-600",children:a.helperText})]}),(c?.errorMessage||c?.infoMessage||c?.subtitle)&&ln(re,{...c})]})})});import{useState as ON}from"react";import{components as _N}from"react-select";import{jsx as Y0,jsxs as bI}from"react/jsx-runtime";var yI=e=>{let[t,n]=ON(!1),o=e.data;return Y0("div",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:Y0(_N.Option,{...e,children:bI("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[bI("div",{className:"cleen-flex-1",children:[o?.label,o?.sublabel&&Y0("p",{className:"cleen-text-xs",children:o?.sublabel})]}),typeof o?.icon=="function"?o.icon({...e,isHovered:t}):o?.icon]})})})};import{components as zN}from"react-select";import{jsx as Z0,jsxs as VN}from"react/jsx-runtime";var II=e=>{let t=e.data;return Z0(zN.SingleValue,{...e,children:VN("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Z0("p",{children:t?.label}),t?.sublabel&&Z0("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as ol,ZIndex as wI}from"@cleen/ui-core";import{forwardRef as GN,useId as $N,useState as MI}from"react";import WN from"react-select";import{components as HN}from"react-select";import{jsx as Q0,jsxs as CI}from"react/jsx-runtime";var xI=({isLoading:e,inputValue:t,options:n,createNewOptionCallback:o,createNewOptionLabelStringCb:l,children:a,...c})=>{let i=t?.trim().toLowerCase(),d=n?.some(s=>s?.labelString?s.labelString.toLowerCase()===i:typeof s?.label=="string"?s.label.toLowerCase()===i:!1);return Q0("div",{className:"cleen",children:CI(HN.MenuList,{options:n,...c,children:[a,o&&!e&&t&&t?.length>0&&!d&&CI("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[Q0(ht,{}),Q0("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{o(t)},children:l?.(t)||t})]})]})})};import{components as UN}from"react-select";import{jsx as PI}from"react/jsx-runtime";var SI=({isLoading:e,noDataFound:t,...n})=>PI(UN.NoOptionsMessage,{...n,children:e?PI(le,{}):t||"No data found"});import{jsx as wo,jsxs as BI}from"react/jsx-runtime";var kI=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),qN=GN(function({label:t,labelTooltip:n,sublabel:o,id:l,name:a,required:c,className:i,classNames:d,isLoading:s=!1,disabled:p,emboldenOptions:g=!1,labels:m,components:b,style:v,styles:h,infoLabels:y,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...I},P){let[w,R]=MI(!1),[B,S]=MI(""),E=$N(),N=I.inputId??l??a??E,M=(F,L)=>{if(!kI(F.data))return!1;let{labelString:k,label:z}=F.data;return k?k.toLowerCase().includes(L.toLowerCase()):typeof z=="string"?z.toLowerCase().includes(L.toLowerCase()):!1},T=F=>kI(F)?F.labelString??(typeof F.label=="string"?F.label:""):"";return wo("div",{className:ol("cleen",i),style:v,ref:P,children:BI("div",{className:ol("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",d?.cleenContainer),style:h?.cleenContainer,children:[(t||o)&&BI("div",{className:ol("cleen-flex cleen-flex-col cleen-gap-1",d?.labels?.container),style:h?.labels?.container,children:[t&&wo(ce,{htmlFor:N,required:c,tooltip:n,...d?.labels?.label,...h?.labels?.label,children:t}),o&&wo("span",{className:ol("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",d?.labels?.sublabel),style:h?.labels?.sublabel,children:o})]}),wo(WN,{...C&&{menuIsOpen:w,inputValue:B,onInputChange:F=>S(F),onMenuOpen:()=>R(!0),onMenuClose:()=>R(!1)},...!I.filterOption&&{filterOption:M},...!I.getOptionLabel&&{getOptionLabel:T},id:l||a,classNames:d,isDisabled:p,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:N,className:ol("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",d?.inputOuterContainer),styles:{...h,control:(F,L)=>{let k={...F,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:g&&L.hasValue?"600":"400",borderColor:y?.errorMessage?"rgba(var(--cleen-error), 0.7)":"rgb(var(--cleen-border))",color:L.isDisabled?"rgb(var(--cleen-neutral-500))":"rgb(var(--cleen-foreground))",backgroundColor:L.isDisabled?"rgb(var(--cleen-neutral-100))":"rgba(var(--cleen-background))",boxShadow:L.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:C?"rgba(var(--cleen-foreground))":"transparent","&:hover":{borderColor:y?.errorMessage?"rgba(var(--cleen-error))":"rgb(var(--cleen-border))"}};return h?.control?h?.control(k,L):k},menuPortal:(F,L)=>{let k={...F,zIndex:wI.SELECT,...h?.menuPortal};return h?.menuPortal?h?.menuPortal(k,L):k},menu:(F,L)=>{let k={...F,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:wI.SELECT,...h?.menu};return h?.menu?h?.menu(k,L):k},option:(F,L)=>{let k={...F,backgroundColor:L.isSelected?"rgba(var(--cleen-primary))":L.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:L.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-foreground))",fontWeight:g?"600":"400","&:hover":L.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:L.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-neutral-600))"},"&:hover p":{color:"rgba(var(--cleen-white))"},"&:active":{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))"}};return h?.option?h?.option(k,L):k},menuList:(F,L)=>{let k={...F,"::-webkit-scrollbar":{width:"6px",height:"0px"},"::-webkit-scrollbar-track":{background:"rgb(var(--cleen-background))"},"::-webkit-scrollbar-thumb":{background:"rgba(var(--cleen-neutral-200))"},"::-webkit-scrollbar-thumb:hover":{background:"rgba(var(--cleen-neutral-400))"},padding:0,borderRadius:4,...h?.menuList};return h?.menuList?h?.menuList(k,L):k},singleValue:(F,L)=>{let k={...F,color:L.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return h?.singleValue?h?.singleValue(k,L):k},input:(F,L)=>{let k={...F,color:"rgba(var(--cleen-foreground))"};return h?.input?h?.input(k,L):k}},components:{IndicatorSeparator:()=>null,SingleValue:F=>wo(II,{...F}),NoOptionsMessage:F=>wo(SI,{isLoading:s,noDataFound:m?.noDataFound,...F}),MenuList:F=>wo(xI,{isLoading:s,inputValue:B,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...F}),Option:yI,...b}}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&wo(re,{...y})]})})});import{jsx as NI,jsxs as XN}from"react/jsx-runtime";function TI({children:e,title:t,className:n="",renderHeader:o}){return XN("div",{className:`cleen-w-full cleen-h-full ${n}`,"data-testid":`drawer-container-${t}`,children:[o?o(t):NI("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),NI("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as Yt}from"@cleen/ui-core";import{forwardRef as KN,useState as YN}from"react";import{Fragment as jN,jsx as lt,jsxs as ki}from"react/jsx-runtime";function ZN({icon:e,iconSrc:t,iconName:n,iconSize:o=24,title:l,className:a,style:c}){return e?lt("span",{className:Yt("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",a),style:{width:o,height:o,...c},children:e}):t?lt("img",{src:t,alt:l,width:o,height:o,className:a,style:c}):n?lt(ye,{name:n,width:o,height:o,className:a,style:c}):null}function RI({item:e,depth:t,iconSize:n=24,classNames:o,styles:l}){let[a,c]=YN(!1),i={...e,classNames:{...o,...e.classNames},styles:{...l,...e.styles}},d=Array.isArray(i?.items)&&i.items.length>0,s=i?.iconSize??n,p=t>0?{paddingLeft:12+t*28}:{},g=ki(jN,{children:[ki("div",{className:Yt("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[lt(ZN,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:s,title:i?.name,className:Yt("cleen-text-neutral-700 group-hover/row:cleen-text-foreground [&_path]:cleen-stroke-[1.5] [&_path]:[vector-effect:non-scaling-stroke] cleen-transition-all cleen-duration-200",i?.isActive&&"cleen-text-foreground",i?.classNames?.icon),style:i?.styles?.icon}),lt("span",{className:Yt("cleen-font-semibold cleen-text-neutral-800 group-hover/row:cleen-text-foreground cleen-text-sm cleen-truncate cleen-transition-colors cleen-duration-200",i?.isActive&&"cleen-text-foreground",i?.classNames?.name),style:i?.styles?.name,children:i?.name})]}),["string","number"].includes(typeof i?.badgeCount)&&lt(Ie,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return d?ki("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[ki("summary",{className:Yt("cleen-group/row [&::-webkit-details-marker]:cleen-hidden cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-muted cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer cleen-list-none",t===0?"cleen-px-3":void 0,i?.classNames?.parentItemContainer),style:{...p,...i?.styles?.parentItemContainer},onClick:()=>c(m=>!m),children:[g,lt(ye,{name:"ChevronDown",className:Yt("cleen-w-5 cleen-h-5 cleen-text-neutral-700 group-hover/row:cleen-text-foreground cleen-transition-all cleen-shrink-0",{"cleen-rotate-180":a},i?.classNames?.chevron),style:i?.styles?.chevron})]}),lt("div",{className:Yt("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(m=>lt(RI,{item:m,depth:t+1,iconSize:n,classNames:o,styles:l},m?.id??m?.name))})]}):lt("div",{className:Yt("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",t===0?"cleen-px-3 hover:cleen-bg-muted":void 0,i?.isActive&&t===0&&"cleen-bg-muted",i?.disabled&&"cleen-opacity-50 cleen-pointer-events-none",i?.classNames?.container),style:{...p,...i?.styles?.container},onClick:()=>i?.onClick?.(i),children:g})}var QN=KN(function({title:t,icon:n,iconName:o,iconSrc:l,iconSize:a=24,badgeColor:c="gray",badgeCount:i,items:d,onClick:s,isActive:p=!1,disabled:g,className:m,classNames:b,style:v,styles:h},y){let C={id:"root",name:t,icon:n,iconName:o,iconSrc:l,iconSize:a,badgeColor:c,badgeCount:i,isActive:p,disabled:g,onClick:s?()=>s():void 0,classNames:b,styles:h,items:d};return lt("div",{className:Yt("cleen",m),style:v,ref:y,children:lt(RI,{item:C,depth:0,iconSize:a,classNames:b,styles:h})})}),JN=QN;import{cn as Zt}from"@cleen/ui-core";import{useEffect as n6,useRef as r6,useState as a6}from"react";import{cn as nl}from"@cleen/ui-core";import{useMemo as e6}from"react";import{Link as t6}from"react-router-dom";import{jsx as rl,jsxs as o6}from"react/jsx-runtime";function al({item:e,activeId:t,onClick:n,countBadge:o,classNames:l,styles:a,renderIcon:c}){let i=t===e?.id,d=e6(()=>e?c?c(e,i):e.icon?e.icon:e.iconSrc?rl("img",{src:e.iconSrc,alt:e?.name||e?.label,className:nl("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,i&&"cleen-text-primary"),style:a?.icon}):e.iconName?rl(ye,{name:e.iconName,className:nl("cleen-w-6 cleen-h-6 cleen-text-neutral-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,i&&"cleen-text-primary"),style:a?.icon}):null:null,[e,i,c,l?.icon,a?.icon]),s=o6("div",{"data-testid":`nav-item-${e?.id}`,className:nl("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,i&&"cleen-bg-primary/10"),style:a?.container,onClick:()=>{e?.path||n?.(e)},children:[d,o&&rl("div",{className:nl("cleen-absolute -cleen-top-1 -cleen-right-1 cleen-flex cleen-items-center cleen-justify-center cleen-w-4 cleen-h-4 cleen-bg-surface cleen-rounded-md cleen-border cleen-border-border cleen-font-normal cleen-text-[8px] cleen-text-foreground",l?.badge),style:a?.badge,children:o})]});return rl(ve,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:nl("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...a?.tooltip,label:e?.label,children:e?.path?rl(t6,{to:e.path,children:s}):s})}import{jsx as Qt,jsxs as cn}from"react/jsx-runtime";function LI({navigationItems:e,bottomNavigationItems:t=[],drawerContent:n={},logo:o,onLogoClick:l,userAvatar:a,userInfo:c,drawerFooter:i,drawerWidth:d=330,direction:s="right",defaultActiveId:p=null,activeId:g,onActiveChange:m,closeOnOutsideClick:b=!0,closeOnBlur:v=!0,className:h,classNames:y,style:C,styles:x,renderSidebarItem:I}){let[P,w]=a6(p),R=r6(null),B=g!==void 0?g:P,S=!!B,E=M=>{let T=B===M.id?null:M.id;g===void 0&&w(T),m?.(T)};n6(()=>{if(!b||!S)return;let M=T=>{R.current&&!R.current.contains(T.target)&&(g===void 0&&w(null),m?.(null))};return document.addEventListener("mousedown",M),()=>{document.removeEventListener("mousedown",M)}},[b,S,g,m]);let N=M=>{!v||!S||R.current&&!R.current.contains(M.relatedTarget)&&(g===void 0&&w(null),m?.(null))};return cn("div",{className:Zt("cleen",h),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:s==="left"?"row-reverse":"row",...C},ref:R,onBlur:N,tabIndex:v?0:void 0,children:[cn("div",{className:Zt("cleen-flex cleen-flex-col cleen-items-center cleen-h-full",s==="right"?"cleen-border-r cleen-border-r-border":"cleen-border-l cleen-border-l-border",y?.navigation),style:x?.navigation,children:[o&&Qt("div",{className:Zt("cleen-flex cleen-justify-center cleen-items-center cleen-pt-8 cleen-pb-6 cleen-w-full cleen-cursor-pointer",y?.logo),style:x?.logo,onClick:l,children:o}),cn("div",{className:Zt("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:x?.navigationItems,children:[Qt("nav",{className:Zt("cleen-flex cleen-flex-col cleen-gap-2",y?.upperNavigationItemsWrapper),style:x?.upperNavigationItemsWrapper,children:e.map(M=>cn("div",{children:[I?I(M,B===M.id,E):Qt(al,{item:M,activeId:B,onClick:E,countBadge:M.badgeCount,classNames:{...y?.navigationItem,...M?.classNames},styles:{...x?.navigationItem,...M?.styles}}),M?.withBottomDivider&&Qt("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},M.id))}),cn("div",{className:Zt("cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",y?.bottomNavigationItemsWrapper),style:x?.bottomNavigationItemsWrapper,children:[t.map(M=>cn("div",{children:[I?I(M,B===M.id,E):Qt(al,{item:M,activeId:B,onClick:E,countBadge:M.badgeCount,classNames:{...y?.navigationItem,...M?.classNames},styles:{...x?.navigationItem,...M?.styles}}),M?.withBottomDivider&&Qt("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},M.id)),a&&Qt("div",{className:"cleen-mt-6 cleen-mb-8",children:a})]})]})]}),cn("div",{className:Zt("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-border":S&&s==="right","cleen-border-l cleen-border-l-border":S&&s==="left"},y?.drawer),style:{...x?.drawer,width:S?`${d}px`:"0px",visibility:S?"visible":"hidden"},children:[B&&n[B]&&Qt("div",{className:Zt("cleen-flex-1 cleen-overflow-auto",y?.drawerContent),style:x?.drawerContent,children:n[B]}),B&&(i||c)&&Qt("div",{className:Zt("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-border cleen-border-t cleen-w-full",y?.drawerFooter),style:x?.drawerFooter,children:typeof i=="function"?i(B):i||c})]})]})}var oe=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as EI}from"@cleen/ui-core";import{forwardRef as l6}from"react";import{jsx as DI}from"react/jsx-runtime";var c6={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"},i6=l6(function({width:t,height:n,roundness:o="md",variant:l="default",className:a,style:c},i){let d=oe(l),s={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...n!==void 0?{height:typeof n=="number"?`${n}px`:n}:{},...c};return DI("div",{ref:i,className:EI("cleen",a),children:DI("div",{className:EI("cleen-bg-muted",c6[o],t===void 0&&"cleen-w-full",n===void 0&&"cleen-h-4",d),style:s})})});import{cn as J0}from"@cleen/ui-core";import{forwardRef as s6}from"react";import{jsx as Bi,jsxs as p6}from"react/jsx-runtime";var j0=s6(function({className:t,style:n,variant:o="default",itemCount:l=1},a){let c=oe(o);return Bi("div",{ref:a,className:J0("cleen",t),style:n,children:Bi("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((i,d)=>p6("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[Bi("div",{className:J0("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",c)}),Bi("div",{className:J0("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",c)})]},d))})})});import{cn as FI}from"@cleen/ui-core";import{forwardRef as d6}from"react";import{jsx as e1}from"react/jsx-runtime";var t1=d6(function({className:t,style:n,variant:o="default",itemCount:l=1},a){let c=oe(o);return e1("div",{ref:a,className:FI("cleen",t),style:n,children:e1("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((i,d)=>e1("div",{className:FI("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",c)},d))})})});import{cn as AI}from"@cleen/ui-core";import{forwardRef as m6}from"react";import{jsx as sn,jsxs as Ni}from"react/jsx-runtime";var o1=m6(function({className:t,style:n,variant:o="default"},l){let a=oe(o);return sn("div",{ref:l,className:AI("cleen",t),style:n,children:Ni("div",{className:AI("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",a),children:[sn("div",{className:"cleen-h-48 cleen-w-full"}),Ni("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:[sn("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),Ni("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[sn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),sn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),Ni("div",{className:"cleen-flex cleen-gap-3",children:[sn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),sn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as OI}from"@cleen/ui-core";import{forwardRef as u6}from"react";import{jsx as n1}from"react/jsx-runtime";var r1=u6(function({className:t,style:n,variant:o="default",itemCount:l=1},a){let c=oe(o);return n1("div",{ref:a,className:OI("cleen",t),style:n,children:n1("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((i,d)=>n1("div",{className:OI("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",c)},d))})})});import{cn as Ti}from"@cleen/ui-core";import{forwardRef as f6}from"react";import{jsx as Ri,jsxs as _I}from"react/jsx-runtime";var ll=f6(function({className:t,style:n,variant:o="default"},l){let a=oe(o);return Ri("div",{ref:l,className:Ti("cleen",t),style:n,children:_I("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-w-full",children:[Ri("div",{className:Ti("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-min-w-10 cleen-size-10",a)}),_I("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Ri("div",{className:Ti("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",a)}),Ri("div",{className:Ti("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",a)})]})]})})});import{cn as cr}from"@cleen/ui-core";import{forwardRef as h6}from"react";import{jsx as ir,jsxs as Li}from"react/jsx-runtime";var Ei=h6(({className:e,style:t,variant:n="default"},o)=>{let l=oe(n);return ir("div",{ref:o,className:cr("cleen",e),style:t,children:Li("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-lg",children:[Li("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[ir("div",{className:cr("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",l)}),Li("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[ir("div",{className:cr("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",l)}),ir("div",{className:cr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),Li("div",{className:"cleen-space-y-2 cleen-w-full",children:[ir("div",{className:cr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",l)}),ir("div",{className:cr("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});Ei.displayName="AssessmentHeaderSkeleton";import{cn as Mt}from"@cleen/ui-core";import{forwardRef as g6}from"react";import{jsx as kt,jsxs as sr}from"react/jsx-runtime";var a1=g6(function({className:t,style:n,variant:o="default"},l){let a=oe(o);return kt("div",{ref:l,className:Mt("cleen",t),style:n,children:sr("div",{className:"cleen-flex cleen-flex-col cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden cleen-w-full",children:[kt("div",{className:Mt("cleen-bg-muted cleen-w-full cleen-h-40",a)}),sr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[sr("div",{className:"cleen-flex cleen-gap-2",children:[kt("div",{className:Mt("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",a)}),kt("div",{className:Mt("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",a)})]}),sr("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[kt("div",{className:Mt("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",a)}),kt("div",{className:Mt("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),kt("div",{className:Mt("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)})]}),sr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[sr("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[kt("div",{className:Mt("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",a)}),kt("div",{className:Mt("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",a)})]}),kt("div",{className:Mt("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",a)})]})]})]})})});import{forwardRef as v6}from"react";import{cn as b6}from"@cleen/ui-core";import{jsx as l1}from"react/jsx-runtime";var c1=v6(function({className:t,style:n,itemCount:o=3,variant:l="default"},a){return l1("div",{ref:a,className:b6("cleen",t),style:n,children:l1("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:o}).map((c,i)=>l1(ll,{variant:l},i))})})});import{cn as pn}from"@cleen/ui-core";import{forwardRef as y6}from"react";import{jsx as ct,jsxs as cl}from"react/jsx-runtime";var zI=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],i1=y6(function({className:t,style:n,variant:o="default"},l){let a=oe(o);return ct("div",{ref:l,className:pn("cleen",t),style:n,children:cl("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-px-4 cleen-pt-4 cleen-pb-3 cleen-w-full",children:[cl("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[ct("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",a)}),ct("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((c,i)=>cl("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[ct("div",{className:pn("cleen-bg-muted cleen-rounded-full cleen-size-2.5",a)}),ct("div",{className:pn("cleen-bg-muted cleen-rounded cleen-h-3",a),style:{width:c}})]},i))})]}),cl("div",{className:"cleen-flex cleen-gap-3",children:[ct("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=>ct("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",a)},c))}),cl("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[ct("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:zI.map((c,i)=>ct("div",{className:pn("cleen-bg-muted cleen-rounded-t cleen-flex-1",c,a)},i))}),ct("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),ct("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:zI.map((c,i)=>ct("div",{className:pn("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",a)},i))})]})]})]})})});import{cn as dn}from"@cleen/ui-core";import{forwardRef as I6}from"react";import{jsx as Jt,jsxs as Di}from"react/jsx-runtime";var s1=I6(({variant:e="default",itemCount:t=3,className:n,style:o},l)=>{let a=oe(e);return Jt("div",{ref:l,className:dn("cleen",n),style:o,children:Jt(ue,{className:"cleen-max-h-fit",children:Di("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[Di("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Jt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",a)}),Jt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",a)})]}),Jt("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((c,i)=>Di("div",{className:"cleen-space-y-3",children:[Jt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",a)}),Jt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",a)})]},i))}),Di("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[Jt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",a)}),Jt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",a)})]})]})})})});import{cn as Fi}from"@cleen/ui-core";import{forwardRef as C6}from"react";import{jsx as il,jsxs as x6}from"react/jsx-runtime";var p1=C6(function({className:t,style:n,variant:o="default",itemCount:l=5},a){let c=oe(o),i=["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 il("div",{ref:a,className:Fi("cleen",t),style:n,children:x6("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[il("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-bg-muted cleen-border-b cleen-border-border",children:i.map((d,s)=>il("div",{className:Fi("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",d,c)},s))}),Array.from({length:l}).map((d,s)=>il("div",{className:Fi("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",s<l-1?"cleen-border-b cleen-border-border":""),children:i.map((p,g)=>il("div",{className:Fi("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",g===i.length-1?"cleen-rounded-full":"cleen-rounded",p,c)},g))},s))]})})});import{cn as Ai}from"@cleen/ui-core";import{forwardRef as P6}from"react";import{jsx as sl,jsxs as VI}from"react/jsx-runtime";var d1=P6(function({className:t,style:n,variant:o="default",itemCount:l=4},a){let c=oe(o);return sl("div",{ref:a,className:Ai("cleen",t),style:n,children:VI("div",{className:"cleen-flex cleen-flex-col cleen-gap-5 cleen-w-full cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-px-6 cleen-py-6",children:[Array.from({length:l}).map((i,d)=>VI("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[sl("div",{className:Ai("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",c)}),sl("div",{className:Ai("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",c)})]},d)),sl("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:sl("div",{className:Ai("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",c)})})]})})});import{cn as HI}from"@cleen/ui-core";import{forwardRef as S6}from"react";import{jsx as m1}from"react/jsx-runtime";var w6=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],u1=S6(function({className:t,style:n,variant:o="default",colors:l=w6},a){let c=oe(o);return m1("div",{ref:a,className:HI("cleen",t),style:n,children:m1("div",{className:HI("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:m1("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as Oi}from"@cleen/ui-core";import{forwardRef as M6}from"react";import{jsx as pr,jsxs as UI}from"react/jsx-runtime";var f1=M6(function({className:t,style:n,variant:o="default"},l){let a=oe(o);return pr("div",{ref:l,className:Oi("cleen",t),style:n,children:UI("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[pr("div",{className:Oi("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:pr("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:UI("div",{className:Oi("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[pr("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),pr("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),pr("div",{className:Oi("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",a)})]})})});import{cn as Ye}from"@cleen/ui-core";import{forwardRef as k6}from"react";import{jsx as $e,jsxs as jt}from"react/jsx-runtime";var h1=k6(function({className:t,style:n,variant:o="default"},l){let a=oe(o);return $e("div",{ref:l,className:Ye("cleen",t),style:n,children:jt("div",{className:Ye("cleen-flex cleen-flex-col cleen-items-start cleen-gap-4 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-h-fit",t),style:n,children:[jt("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[$e("div",{className:Ye("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",a)}),$e("div",{className:Ye("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",a)})]}),jt("div",{className:"cleen-space-y-3 cleen-w-full",children:[jt("div",{children:[$e("div",{className:Ye("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),$e(ue,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:jt("div",{className:"cleen-space-y-2",children:[$e("div",{className:Ye("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),$e("div",{className:Ye("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",a)})]})})]}),jt("div",{children:[$e("div",{className:Ye("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),jt("div",{className:"cleen-space-y-2",children:[$e("div",{className:Ye("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)}),$e("div",{className:Ye("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",a)})]})]}),jt("div",{children:[$e("div",{className:Ye("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),$e(ue,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:jt("div",{className:"cleen-space-y-2",children:[$e("div",{className:Ye("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),$e("div",{className:Ye("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",a)})]})})]})]})]})})});import{cn as g1}from"@cleen/ui-core";import{forwardRef as B6}from"react";import{jsx as v1,jsxs as N6}from"react/jsx-runtime";var b1=B6(function({className:t,style:n,variant:o="default"},l){let a=oe(o);return v1("div",{ref:l,className:g1("cleen",t),style:n,children:N6("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[v1("div",{className:g1("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",a)}),v1("div",{className:g1("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",a)})]})})});import{cn as pl}from"@cleen/ui-core";import{forwardRef as T6}from"react";import{jsx as dr,jsxs as GI}from"react/jsx-runtime";var y1=T6(function({className:t,style:n,variant:o="default",itemCount:l=5},a){let c=oe(o),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return dr("div",{ref:a,className:pl("cleen",t),style:n,children:dr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:l}).map((d,s)=>GI("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[dr("div",{className:pl("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",c)}),GI("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[dr("div",{className:pl("cleen-bg-muted cleen-rounded cleen-h-4",i[s%i.length],c)}),dr("div",{className:pl("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",c)})]}),dr("div",{className:pl("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",c)})]},s))})})});import{cn as $I}from"@cleen/ui-core";import{forwardRef as R6}from"react";import{jsx as C1}from"react/jsx-runtime";var I1=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],x1=R6(function({className:t,style:n,variant:o="default",itemCount:l},a){let c=oe(o),i=l??I1.length;return C1("div",{ref:a,className:$I("cleen",t),style:n,children:C1("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((d,s)=>{let p=s<I1.length?I1[s]:s===i-1?"cleen-w-3/5":"cleen-w-full";return C1("div",{className:$I("cleen-bg-muted cleen-rounded cleen-h-3",p,c)},s)})})})});import{cn as WI}from"@cleen/ui-core";import{forwardRef as L6}from"react";import{jsx as qI}from"react/jsx-runtime";var P1=L6(function({className:t,style:n,variant:o="default"},l){let a=oe(o);return qI("div",{ref:l,className:WI("cleen",t),style:n,children:qI("div",{className:WI("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",a)})})});import{cn as mn}from"@cleen/ui-core";import{forwardRef as E6}from"react";import{jsx as Bt,jsxs as _i}from"react/jsx-runtime";var S1=E6(function({className:t,style:n,variant:o="default"},l){let a=oe(o);return Bt("div",{ref:l,className:mn("cleen",t),style:n,children:_i("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[Bt("div",{className:mn("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:Bt("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Bt("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:Bt("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-neutral-400"})})})}),_i("div",{className:"cleen-flex cleen-gap-3",children:[Bt("div",{className:mn("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",a)}),_i("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Bt("div",{className:mn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",a)}),Bt("div",{className:mn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)}),_i("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Bt("div",{className:mn("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",a)}),Bt("div",{className:mn("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",a)})]})]})]})]})})});import{cn as dl}from"@cleen/ui-core";import{forwardRef as D6}from"react";import{jsx as ml,jsxs as w1}from"react/jsx-runtime";var zi=D6(function({variant:t="default",className:n,style:o},l){let a=oe(t);return ml("div",{ref:l,className:dl("cleen",n),style:o,children:w1("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-w-full cleen-h-full",children:[w1("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-2 cleen-py-0.5 cleen-border cleen-border-border cleen-rounded-full",children:[ml("div",{className:dl("cleen-bg-muted cleen-rounded-full cleen-size-1.5",a)}),ml("div",{className:dl("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",a)})]}),w1("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[ml("div",{className:dl("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",a)}),ml("div",{className:dl("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",a)})]})]})})});zi.displayName="SkeletonBadgeCard";import{forwardRef as F6}from"react";import{jsx as be}from"react/jsx-runtime";var A6=F6(function({className:t,style:n,variant:o="default",itemCount:l=3,colors:a,skeleton:c="card",isShowing:i=!1,children:d},s){if(!i)return d;let p={ref:s,variant:o,itemCount:l,colors:a,className:t,style:n};switch(c){case"card2":return be(Ei,{...p});case"card3":return be(a1,{...p});case"cardStack":return be(c1,{...p});case"contentCard":return be(s1,{...p});case"infoCard":return be(h1,{...p});case"widgetCard":return be(zi,{...p});case"image":return be(f1,{...p});case"video":return be(S1,{...p});case"avatar":return be(j0,{...p});case"dataGrid":return be(p1,{...p});case"text":return be(P1,{...p});case"paragraph":return be(x1,{...p});case"list":return be(y1,{...p});case"form":return be(d1,{...p});case"banner":return be(o1,{...p});case"chart":return be(i1,{...p});case"button":return be(r1,{...p});case"badge":return be(t1,{...p});case"input":return be(b1,{...p});case"glowingCard":return be(u1,{...p});default:return be(ll,{...p})}});import{cn as Mo}from"@cleen/ui-core";import{forwardRef as O6,useCallback as M1,useEffect as _6,useRef as XI,useState as KI}from"react";import{jsx as ko,jsxs as Vi}from"react/jsx-runtime";var un=O6(function({id:t,required:n,minValue:o=0,maxValue:l=100,step:a=1,defaultValue:c=0,value:i,variant:d="default",onChange:s,onChangeEnd:p,className:g,classNames:m,style:b,styles:v,disabled:h=!1,label:y,labelTooltip:C,labels:x,tooltip:I,infoLabels:P},w){let[R,B]=KI(c??o),S=i!==void 0?i:R,E=XI(null),[N,M]=KI(!1),T=XI(!1),F=(S-o)/(l-o)*100,L=Math.min(100,Math.max(0,F)),k=M1(q=>{let H=Math.round((q-o)/a)*a+o;return Math.min(l,Math.max(o,H))},[o,l,a]),z=M1((q,H)=>{let U=k(q);i===void 0&&B(U),s?.(U),H&&p?.(U)},[k,i,s,p]),D=M1(q=>{let H=E.current;if(!H)return o;let U=H.getBoundingClientRect(),j=(q-U.left)/U.width;return k(o+j*(l-o))},[o,l,k]),A=q=>{if(h)return;let H;switch(q.key){case"ArrowRight":case"ArrowUp":H=S+a;break;case"ArrowLeft":case"ArrowDown":H=S-a;break;case"Home":H=o;break;case"End":H=l;break;default:return}q.preventDefault(),z(H,!0)},O=q=>{h||(q.preventDefault(),M(!0))},V=q=>{if(h||T.current){T.current=!1;return}z(D(q.clientX),!0)},G=q=>{h||(q.preventDefault(),M(!0))};_6(()=>{if(!N)return;let q=_=>{z(D(_.clientX))},H=_=>{M(!1),T.current=!0,p?.(k(D(_.clientX)))},U=_=>{_.touches.length>0&&z(D(_.touches[0].clientX))},j=_=>{M(!1),T.current=!0,p?.(k(D(_.changedTouches[0].clientX)))};return document.addEventListener("mousemove",q),document.addEventListener("mouseup",H),document.addEventListener("touchmove",U),document.addEventListener("touchend",j),()=>{document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",U),document.removeEventListener("touchend",j)}},[N,k,D,z,p]);let W=q=>ko("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:q});return ko("div",{className:Mo("cleen",g),style:b,ref:w,children:Vi("div",{className:Mo("cleen-w-full",m?.container),style:v?.container,children:[y&&ko(ce,{htmlFor:t,required:n,tooltip:C,...m?.label,...v?.label,children:y}),Vi("div",{className:Mo({"cleen-flex cleen-items-center cleen-gap-2":d==="inline"},m?.slider),style:v?.slider,children:[d==="inline"&&x?.minLabel!==void 0&&W(x?.minLabel),Vi("div",{ref:E,className:Mo("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":d==="inline"},m?.track),style:v?.track,"aria-disabled":h,onClick:V,children:[ko("div",{className:Mo("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.path),style:v?.path,children:ko("div",{className:Mo("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{width:`${L}%`,...v?.filledTrack}})}),ko(ve,{invertColors:!0,...I,label:x?.tooltip?.(S)??S,className:Mo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.className),style:{left:`calc(${L}% - 8px)`,...I?.style},isOpen:N||I?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:ko("div",{id:t,className:Mo("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-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",m?.thumb),style:v?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":S,"aria-valuemin":o,"aria-valuemax":l,"aria-disabled":h,"aria-label":typeof y=="string"?y:"Slider","aria-labelledby":t,onMouseDown:O,onTouchStart:G,onKeyDown:A})})]}),d==="inline"?x?.maxLabel&&W(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&Vi("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[x?.minLabel&&W(x?.minLabel),x?.maxLabel&&W(x?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&ko(re,{...P})]})})});import{cn as Nt}from"@cleen/ui-core";import{forwardRef as z6,useCallback as k1,useEffect as V6,useRef as H6,useState as YI}from"react";import{jsx as Tt,jsxs as Hi}from"react/jsx-runtime";var U6=z6(function({id:t,required:n,minValue:o=0,maxValue:l=100,step:a=1,defaultValue:c=[o,l],value:i,variant:d="default",onChange:s,onChangeEnd:p,className:g,classNames:m,style:b,styles:v,disabled:h=!1,label:y,labelTooltip:C,labels:x,tooltips:I,infoLabels:P},w){let[R,B]=YI(c??[o,l]),S=i!==void 0?i:R,E=H6(null),[N,M]=YI(null),T=k1(H=>{let U=Math.round((H-o)/a)*a+o;return Math.min(l,Math.max(o,U))},[o,l,a]),F=(S[0]-o)/(l-o)*100,L=Math.min(100,Math.max(0,F)),k=(S[1]-o)/(l-o)*100,z=Math.min(100,Math.max(0,k)),D=k1(H=>{let U=[T(Math.min(H[0],H[1])),T(Math.max(H[0],H[1]))];i===void 0&&B(U),s?.(U)},[T,i,s]),A=k1(H=>{let U=E.current;if(!U)return o;let j=U.getBoundingClientRect(),_=(H-j.left)/j.width;return T(o+_*(l-o))},[o,l,T]),O=H=>U=>{if(h)return;let j=H==="min"?S[0]:S[1],_;switch(U.key){case"ArrowRight":case"ArrowUp":_=j+a;break;case"ArrowLeft":case"ArrowDown":_=j-a;break;case"Home":_=o;break;case"End":_=l;break;default:return}U.preventDefault();let Z=H==="min"?[Math.min(_,S[1]),S[1]]:[S[0],Math.max(_,S[0])];D(Z),p?.([T(Z[0]),T(Z[1])])},V=H=>U=>{h||(U.preventDefault(),M(H))},G=H=>{if(h)return;let U=A(H.clientX),j=Math.abs(U-S[0]),_=Math.abs(U-S[1]);j<_?D([U,S[1]]):D([S[0],U])},W=H=>U=>{h||(U.preventDefault(),M(H))};V6(()=>{if(!N)return;let H=Z=>{let pe=A(Z.clientX);D(N==="min"?[pe,S[1]]:[S[0],pe])},U=Z=>{let pe=A(Z.clientX),de=N==="min"?[pe,S[1]]:[S[0],pe];M(null),p?.(de)},j=Z=>{if(Z.touches.length>0){let pe=A(Z.touches[0].clientX);D(N==="min"?[pe,S[1]]:[S[0],pe])}},_=Z=>{let pe=A(Z.changedTouches[0].clientX),de=N==="min"?[pe,S[1]]:[S[0],pe];M(null),p?.(de)};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",U),document.addEventListener("touchmove",j),document.addEventListener("touchend",_),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",U),document.removeEventListener("touchmove",j),document.removeEventListener("touchend",_)}},[N,S,A,D,p]);let q=H=>Tt("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Tt("div",{className:Nt("cleen",g),style:b,ref:w,children:Hi("div",{className:Nt("cleen-w-full",m?.container),style:v?.container,children:[y&&Tt(ce,{htmlFor:t,required:n,tooltip:C,...m?.label,...v?.label,children:y}),Hi("div",{className:Nt({"cleen-flex cleen-items-center cleen-gap-2":d==="inline"},m?.slider),style:v?.slider,children:[d==="inline"&&x?.minLabel!==void 0&&q(x?.minLabel),Hi("div",{ref:E,className:Nt("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":d==="inline"},m?.track),style:v?.track,"aria-disabled":h,onClick:G,children:[Tt("div",{className:Nt("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer"),children:Tt("div",{className:Nt("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{left:`${L}%`,width:`${z-L}%`,...v?.filledTrack}})}),Tt(ve,{invertColors:!0,isOpen:N==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:x?.tooltip?.(S[0])??S[0]?.toString(),className:Nt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.min?.className),style:{left:`calc(${L}% - 8px)`,...I?.shared?.style,...I?.min?.style},children:Tt("div",{className:Nt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-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",m?.thumb),style:v?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":S[0],"aria-valuemin":o,"aria-valuemax":S[1],"aria-disabled":h,"aria-label":typeof y=="string"?`${y} minimum value`:"Minimum value",onMouseDown:V("min"),onTouchStart:W("min"),onKeyDown:O("min")})}),Tt(ve,{invertColors:!0,isOpen:N==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:x?.tooltip?.(S[1])??S[1]?.toString(),className:Nt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.max?.className),style:{left:`calc(${z}% - 8px)`,...I?.shared?.style,...I?.max?.style},children:Tt("div",{className:Nt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-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",m?.thumb),style:v?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":S[1],"aria-valuemin":S[0],"aria-valuemax":l,"aria-disabled":h,"aria-label":typeof y=="string"?`${y} maximum value`:"Maximum value",onMouseDown:V("max"),onTouchStart:W("max"),onKeyDown:O("max")})})]}),d==="inline"?x?.maxLabel&&q(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&Hi("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[x?.minLabel&&q(x?.minLabel),x?.maxLabel&&q(x?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&Tt(re,{...P})]})})});import{cn as mr}from"@cleen/ui-core";import{forwardRef as G6,useRef as $6,useState as ZI}from"react";import{jsx as fn,jsxs as q6}from"react/jsx-runtime";var W6=G6(function({label:t,infoLabels:n,value:o,onChange:l,amount:a=5,gap:c,size:i,readonly:d,color:s="rgb(var(--cleen-yellow))",className:p,style:g,classNames:m,styles:b,...v},h){let[y,C]=ZI(0),x=o!==void 0,I=x?o:y,[P,w]=ZI(null),R=P!==null?P+1:I,B=!d,S=$6([]),E=I>0?I-1:0,N=L=>{x||C(L),l?.(L)},M=L=>{L<0||L>=a||(N(L+1),S.current[L]?.focus())},T=(L,k)=>{switch(L.key){case"ArrowRight":case"ArrowUp":L.preventDefault(),M((k+1)%a);break;case"ArrowLeft":case"ArrowDown":L.preventDefault(),M((k-1+a)%a);break;case"Home":L.preventDefault(),M(0);break;case"End":L.preventDefault(),M(a-1);break;default:break}},F=typeof t=="string"?t:"Rating";return fn("div",{className:mr("cleen",p),style:g,ref:h,...v,children:q6("div",{className:mr("cleen-space-y-2",m?.container),style:b?.container,children:[t&&fn("span",{className:mr("cleen-font-medium cleen-text-sm cleen-text-foreground",m?.label),style:b?.label,children:t}),fn("div",{role:B?"radiogroup":"img","aria-label":B?F:`${F}: ${I} out of ${a}`,className:mr("cleen-flex cleen-gap-3",m?.list),style:{...c?{gap:c}:{},...b?.list},children:Array.from({length:a},(L,k)=>{let z=fn(va,{"aria-hidden":"true",className:mr("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...b?.star,fill:(d?I:R)>k?s:"transparent"}});return B?fn("button",{type:"button",ref:D=>{S.current[k]=D},role:"radio","aria-checked":I===k+1,"aria-label":`${k+1} ${k+1===1?"star":"stars"}`,tabIndex:k===E?0:-1,onMouseEnter:()=>w(k),onMouseLeave:()=>w(null),onClick:()=>N(k+1),onKeyDown:D=>T(D,k),className:mr("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},k):fn("span",{className:"cleen-cursor-default",children:z},k)})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&fn(re,{...n})]})})});import{cn as eo}from"@cleen/ui-core";import{forwardRef as X6}from"react";import{jsx as Bo,jsxs as QI}from"react/jsx-runtime";var JI=X6(({steps:e,activeStep:t=0,orientation:n="horizontal",color:o="rgb(var(--cleen-primary))",className:l,classNames:a,style:c,styles:i,...d},s)=>{let p=n==="vertical";return Bo("div",{ref:s,className:eo("cleen",l),style:{...c,width:"100%"},...d,children:Bo("div",{className:eo("cleen-flex cleen-w-full",p?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",a?.container),style:{width:"100%",...i?.container},children:e?.map((g,m)=>{let b=m+1<t,v=m+1===t;return QI("div",{className:eo("cleen-relative cleen-flex cleen-flex-1",p?"cleen-flex-row cleen-items-start":"cleen-flex-col cleen-items-center cleen-text-center",a?.step),style:i?.step,children:[m<e?.length-1&&Bo("div",{className:eo("cleen-absolute cleen-bg-neutral-200 cleen-transition-all cleen-duration-300",p?"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?o:void 0,...i?.connector}}),Bo("div",{className:eo("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||v?"cleen-border-[2px]":"cleen-border-border",a?.circle),style:{borderColor:v||b?o:void 0,backgroundColor:b?o:"transparent",...i?.circle},children:b?Bo("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):Bo("span",{className:eo("cleen-w-2 cleen-h-2 cleen-rounded-full",v?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:v?o:void 0}})}),QI("div",{className:eo("cleen-flex cleen-flex-col",p?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[g.title&&Bo("div",{className:eo("cleen-font-medium cleen-text-sm",v?"cleen-text-primary":"cleen-text-foreground",a?.title),style:{color:v?o:void 0,...i?.title},children:g.title}),g.subtitle&&Bo("div",{className:eo("cleen-text-xs cleen-text-neutral-600",a?.subtitle),style:{color:v?o:void 0,...i?.subtitle},children:g.subtitle})]})]},m)})})})});JI.displayName="Stepper";import{cn as Ne}from"@cleen/ui-core";import{forwardRef as K6,useMemo as eC,useState as ur}from"react";var jI={trigger:"Filter by tags",noMatches:"No matching tags",searchPlaceholder:"Search or create a tag",noData:"There are no tags yet",footer:"Select tags to filter",selected:e=>`${e} selected`,create:e=>`Create \u201C${e}\u201D`,clear:"Clear",done:"Done"};import{Fragment as Q6,jsx as Ce,jsxs as fr}from"react/jsx-runtime";var Y6=[],Z6=K6(function({items:t=Y6,value:n,defaultValue:o,onApply:l,onCreate:a,isLoading:c=!1,icon:i,disabled:d=!1,isOpen:s,onOpenChange:p,position:g="bottom-left",zIndex:m,labels:b,className:v,classNames:h,style:y,styles:C,...x},I){let P={...jI,...b},[w,R]=ur(o??[]),B=n??w,[S,E]=ur(!1),N=s??S,[M,T]=ur(B),[F,L]=ur(""),[k,z]=ur([]),[D,A]=ur(!1),O=eC(()=>[...t,...k.filter(J=>!t.some(ae=>ae.id===J.id))],[t,k]),V=F.trim(),G=eC(()=>{let J=V.toLowerCase();return J?O.filter(ae=>ae.label.toLowerCase().includes(J)):O},[O,V]),W=!!V&&!O.some(J=>J.label.toLowerCase()===V.toLowerCase())&&!!a,q=c||D,H=B.length,U=H>0,j=J=>{J&&(T(B),L("")),s===void 0&&E(J),p?.(J)},_=J=>{T(ae=>ae.includes(J)?ae.filter(Ze=>Ze!==J):[...ae,J])},Z=async()=>{if(!(!a||!V||q)){A(!0);try{let J=await a(V);J&&(z(ae=>ae.some(Ze=>Ze.id===J.id)?ae:[...ae,J]),T(ae=>ae.includes(J.id)?ae:[...ae,J.id]),L(""))}finally{A(!1)}}},pe=J=>{J.key==="Enter"&&W&&(J.preventDefault(),Z())},de=()=>{T([])},fe=()=>{let J=O.filter(ae=>M.includes(ae.id));n===void 0&&R(M),l?.(M,J),j(!1)},st=fr(Q6,{children:[W&&Ce("div",{className:"cleen-p-1.5",children:Ce(te,{variant:"borderless-blue",fullWidth:!0,isLoading:q,leftIcon:Ce(ia,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{Z()},classNames:{container:Ne("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",h?.createButton)},styles:{container:C?.createButton},children:Ce("span",{className:"cleen-truncate",children:P.create(V)})})}),G.length===0?W?null:Ce("p",{className:Ne("cleen-px-3 cleen-py-4 cleen-text-gray-500 cleen-text-sm cleen-text-center cleen-opacity-50",h?.noData),style:C?.noData,children:O.length===0?P.noData:P.noMatches}):Ce("ul",{className:Ne("cleen-flex cleen-flex-col cleen-py-1 cleen-max-h-[300px] cleen-overflow-y-auto cleen-[scrollbar-width:thin] [&::-webkit-scrollbar]:cleen-w-1 [&::-webkit-scrollbar-track]:cleen-bg-transparent [&::-webkit-scrollbar-thumb]:cleen-rounded-full [&::-webkit-scrollbar-thumb]:cleen-bg-neutral-200",h?.list),style:C?.list,children:G.map(J=>fr("li",{onClick:()=>_(J.id),className:Ne("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 hover:cleen-bg-muted cleen-px-3 cleen-py-2 cleen-transition-colors cleen-cursor-pointer",h?.item),style:C?.item,children:[Ce(Ga,{className:"cleen-flex-1 cleen-min-w-0",classNames:{container:"cleen-min-w-0",checkboxContainer:"cleen-items-center cleen-min-w-0 [&>div]:cleen-flex-1 [&>div]:cleen-min-w-0",checkbox:h?.checkbox,label:Ne("cleen-text-sm cleen-truncate cleen-cursor-pointer",h?.itemLabel)},styles:{checkbox:C?.checkbox,label:C?.itemLabel},checked:M.includes(J.id),onClick:ae=>ae.stopPropagation(),label:Ce("span",{title:J.label,className:"cleen-select-none",children:J.label}),fullTriggerArea:!0}),J.count!==void 0&&Ce("span",{className:Ne("cleen-shrink-0 cleen-text-gray-500 cleen-text-sm cleen-tabular-nums cleen-opacity-50 cleen-select-none",h?.count),style:C?.count,children:J.count})]},J.id))})]}),We=fr("div",{className:Ne("cleen-flex cleen-flex-col",h?.content),style:C?.content,role:"dialog",children:[Ce(he,{autoFocus:!0,value:F,onChange:J=>L(J.target.value),onKeyDown:pe,placeholder:P.searchPlaceholder,"aria-label":P.searchPlaceholder,leftIcon:Ce(zt,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:Ne("cleen-shrink-0 cleen-p-1.5 cleen-py-1",h?.search),style:C?.search,classNames:{inputContainer:"cleen-border-0 cleen-shadow-none cleen-rounded-none focus-within:cleen-ring-0",input:"cleen-text-sm"}}),Ce(ht,{className:Ne("cleen-shrink-0",h?.divider),style:C?.divider}),Ce("div",{className:"cleen-flex-1 cleen-min-h-0",children:st}),fr("div",{className:Ne("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-3 cleen-py-2 cleen-border-t cleen-border-border cleen-shrink-0",h?.footer),style:C?.footer,children:[Ce("span",{className:Ne("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",h?.footerText),style:C?.footerText,children:M.length>0?P.selected(M.length):P.footer}),fr("div",{className:Ne("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",h?.footerActions),style:C?.footerActions,children:[Ce(te,{variant:"secondary",onClick:de,disabled:M.length===0,classNames:{container:Ne("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",h?.clearButton)},styles:{container:C?.clearButton},children:P.clear}),Ce(te,{variant:"primary",onClick:fe,classNames:{container:Ne("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",h?.doneButton)},styles:{container:C?.doneButton},children:P.done})]})]})]});return Ce(el,{ref:I,isOpen:N,onOpenChange:j,position:g,zIndex:m,content:We,className:v,style:y,classNames:{trigger:Ne(d&&"cleen-pointer-events-none"),popover:Ne("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",h?.popover)},styles:{popover:C?.popover},...x,children:fr("button",{type:"button",disabled:d,"aria-label":P.trigger,"aria-haspopup":"dialog","aria-expanded":N,className:Ne("cleen-flex cleen-items-center cleen-gap-1 cleen-bg-background cleen-shadow-sm cleen-px-2.5 cleen-py-2 cleen-border cleen-border-border cleen-rounded-lg cleen-text-muted-foreground cleen-transition-colors cleen-duration-200 hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2",{"cleen-border-primary-300 cleen-bg-primary-50 cleen-text-primary hover:cleen-bg-primary-100":U,"cleen-opacity-50 cleen-cursor-not-allowed":d},h?.trigger,U&&h?.triggerActive),style:{...C?.trigger,...U?C?.triggerActive:{}},children:[i??Ce(ya,{className:"cleen-size-4 cleen-shrink-0"}),U&&Ce("span",{className:Ne("cleen-flex cleen-justify-center cleen-items-center cleen-bg-primary cleen-px-1.5 cleen-rounded-full cleen-min-w-5 cleen-h-5 cleen-font-semibold cleen-text-primary-foreground cleen-text-xs",h?.badge),style:C?.badge,children:H}),Ce(Lr,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var B1={play:"Play",pause:"Pause",seekBackward:e=>`Back ${e} seconds`,seekForward:e=>`Forward ${e} seconds`,seek:"Seek",progress:"Playback progress",volume:"Volume",mute:"Mute",unmute:"Unmute",subtitles:"Subtitles",noSubtitles:"No subtitles available yet",subtitlesBadge:"CC",toggleSubtitles:"Toggle subtitles",playbackSpeed:"Playback speed",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",placeholder:"No video provided yet.",placeholderSubLabel:"Please provide a video source to play."};var N1=10;var tC={playing:!1,currentTime:0,duration:0,muted:!1,volume:1,playbackRate:1,showCaptions:!1,isFullscreen:!1,controlsActive:!0,isLoading:!0};import{forwardRef as J6,useEffect as T1,useImperativeHandle as j6,useRef as eT}from"react";import{jsx as oT}from"react/jsx-runtime";var tT=J6(function({playing:t=!1,volume:n,playbackRate:o,...l},a){let c=eT(null);return j6(a,()=>c.current,[]),T1(()=>{let i=c.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,l.src]),T1(()=>{c.current&&n!==void 0&&(c.current.volume=n)},[n]),T1(()=>{c.current&&o!==void 0&&(c.current.playbackRate=o)},[o]),oT("video",{ref:c,width:"100%",height:"100%",...l})});import{forwardRef as nT}from"react";import rT from"react-player";import{jsx as aT}from"react/jsx-runtime";var R1=nT(function(t,n){return aT(rT,{ref:n,width:"100%",height:"100%",...t})});var ul=(s=>(s.PLAY="play",s.BACKWARD="backward",s.FORWARD="forward",s.VOLUME="volume",s.TIME="time",s.SEEKBAR="seekbar",s.SPEED="speed",s.SUBTITLES="subtitles",s.FULLSCREEN="fullscreen",s))(ul||{});var hr=e=>{if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e),n=Math.floor(t/3600),o=Math.floor(t%3600/60),l=t%60,a=c=>String(c).padStart(2,"0");return n>0?`${n}:${a(o)}:${a(l)}`:`${o}:${a(l)}`},L1=(e,t)=>{if(!Array.isArray(e)||!(t>0))return[];let n=e.filter(o=>Number.isFinite(o?.start)).map(o=>({...o,start:Math.min(Math.max(o.start,0),t)})).sort((o,l)=>o.start-l.start);return n.map((o,l)=>{let a=n[l+1]?.start??t,c=o.end!==void 0&&Number.isFinite(o.end)?Math.min(Math.max(o.end,o.start),t):a;return{...o,end:c}}).filter(o=>o.end>o.start)},E1=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),lT=(e,t)=>{let n=-1;return e.forEach((o,l)=>{t>=o.start&&(n=l)}),Math.max(n,0)};import{cn as hl}from"@cleen/ui-core";import{forwardRef as TT,useCallback as it,useImperativeHandle as RT,useMemo as BC,useReducer as LT,useRef as NC}from"react";import{cn as fl}from"@cleen/ui-core";var gr="cleen-text-[#fff]",oC="cleen-text-[rgba(255,255,255,0.45)]",Ui="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",Gi="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",$i="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",Wi="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as cT}from"@cleen/ui-core";import{jsx as iT}from"react/jsx-runtime";var hn=({label:e,onClick:t,disabled:n,active:o,className:l,style:a,children:c})=>iT("button",{type:"button","aria-label":e,"aria-pressed":o,onClick:t,disabled:n,className:cT("cleen-inline-flex cleen-justify-center cleen-items-center disabled:cleen-opacity-40 cleen-text-[rgba(255,255,255,0.85)] hover:cleen-text-[#fff] cleen-transition-colors disabled:cleen-cursor-not-allowed",l),style:a,children:c});import{cn as gn}from"@cleen/ui-core";import{cn as qi}from"@cleen/ui-core";import{jsx as Xi}from"react/jsx-runtime";var nC=({segments:e,duration:t,currentTime:n,classNames:o,styles:l})=>Xi("div",{"aria-hidden":!0,className:qi("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-h-1 -cleen-translate-y-1/2 cleen-pointer-events-none",o?.segments),style:l?.segments,children:e.map(a=>Xi("div",{className:qi("cleen-absolute cleen-inset-y-0 cleen-pr-0.5 last:cleen-pr-0",o?.segment),style:{...l?.segment,left:`${a.start/t*100}%`,width:`${(a.end-a.start)/t*100}%`},children:Xi("div",{className:qi("cleen-relative cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-h-full cleen-overflow-hidden",o?.segmentTrack),style:l?.segmentTrack,children:Xi("div",{className:qi("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",o?.segmentFill),style:{...l?.segmentFill,width:`${E1(a,n)*100}%`}})})},a.start))});import{jsx as Ki,jsxs as sT}from"react/jsx-runtime";var rC=({allowBarSeeking:e,segments:t,duration:n,currentTime:o,onSeek:l,seekLabel:a,progressLabel:c,classNames:i,styles:d})=>{let s=t.length>0,p=s&&Ki(nC,{segments:t,duration:n,currentTime:o,classNames:i,styles:d});if(e){let m=i?.seekSlider?.classNames;return sT("div",{role:"group","aria-label":a,className:gn("cleen-relative",i?.seekBar),style:d?.seekBar,children:[p,Ki(un,{value:o,maxValue:n,step:.01,onChange:l,className:gn("cleen-relative cleen-flex cleen-items-center cleen-h-3.5 cleen-cursor-pointer",i?.seekSlider?.className),classNames:{...m,track:gn("!cleen-h-4",m?.track),path:gn(s?"!cleen-bg-transparent":"!cleen-bg-[rgba(255,255,255,0.3)]",m?.path),filledTrack:gn({"!cleen-bg-transparent":s},m?.filledTrack)},labels:{tooltip:()=>hr(o)},...d?.seekSlider})]})}let g=n>0?Math.min(o/n*100,100):0;return Ki("div",{role:"progressbar","aria-label":c,"aria-valuemin":0,"aria-valuemax":Math.floor(n),"aria-valuenow":Math.floor(o),className:gn("cleen-relative cleen-h-1",{"cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-overflow-hidden":!s},i?.seekBar),style:d?.seekBar,children:p||Ki("div",{className:gn("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-rounded-full cleen-transition-[width] cleen-duration-200 cleen-ease-linear",i?.progressFill),style:{...d?.progressFill,width:`${g}%`}})})};import{cn as vr}from"@cleen/ui-core";import{jsx as br,jsxs as cC}from"react/jsx-runtime";var iC=({playbackRate:e,dispatch:t,label:n,classNames:o,styles:l})=>{let a=`${e.toFixed(2)}\xD7`,c=o?.speedPopover?.classNames,i=o?.speedBadge?.classNames;return br(el,{position:"top",className:o?.speedPopover?.className,classNames:{...c,popover:vr("!cleen-w-56",c?.popover)},...l?.speedPopover,content:cC("div",{className:vr("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",o?.speedContent),style:l?.speedContent,children:[cC("div",{className:vr("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",o?.speedHeader),style:l?.speedHeader,children:[br("span",{className:o?.speedLabel,style:l?.speedLabel,children:n}),br("span",{className:vr("cleen-tabular-nums cleen-text-primary",o?.speedValue),style:l?.speedValue,children:a})]}),br(un,{minValue:.5,maxValue:2,step:.25,value:e,onChange:d=>t({type:"setPlaybackRate",playbackRate:d}),className:vr("cleen-w-full",o?.speedSlider?.className),classNames:o?.speedSlider?.classNames,labels:{minLabel:`${.5}\xD7`,maxLabel:`${2}\xD7`},...l?.speedSlider})]}),children:br("button",{type:"button","aria-label":n,className:o?.speedButton,style:l?.speedButton,children:br(Ie,{variant:"sleek",className:o?.speedBadge?.className,classNames:{...i,container:vr(Ui,Gi,i?.container)},...l?.speedBadge,children:a})})})};import{cn as sC}from"@cleen/ui-core";import{jsx as D1}from"react/jsx-runtime";var pC=({hasTracks:e,showCaptions:t,onToggle:n,labels:o,classNames:l,styles:a})=>{let c=l?.subtitlesBadge?.classNames;return D1(ve,{label:e?o.subtitles:o.noSubtitles,className:l?.subtitlesTooltip?.className,classNames:l?.subtitlesTooltip?.classNames,...a?.subtitlesTooltip,children:D1("button",{type:"button","aria-label":o.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:n,className:sC("disabled:cleen-opacity-40",l?.subtitlesButton),style:a?.subtitlesButton,children:D1(Ie,{variant:"sleek",className:l?.subtitlesBadge?.className,classNames:{...c,container:sC(Ui,{[Gi]:e},c?.container)},...a?.subtitlesBadge,children:o.subtitlesBadge})})})};import{jsx as vn,jsxs as dT}from"react/jsx-runtime";var dC=({muted:e,volume:t,size:n})=>e||t===0?vn(wa,{width:n,height:n}):t<.75?vn(Sa,{width:n,height:n}):vn(Pa,{width:n,height:n}),mC=({isFullscreen:e,size:t})=>e?vn(na,{width:t,height:t}):vn(ea,{width:t,height:t}),yr=({forward:e,seconds:t,size:n})=>dT("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[vn(e?da:pa,{width:n,height:n}),vn("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(n*.34)},children:t})]});import{cn as Yi}from"@cleen/ui-core";import{jsx as Zi,jsxs as mT}from"react/jsx-runtime";var uC=({muted:e,volume:t,dispatch:n,labels:o,classNames:l,styles:a})=>mT("div",{className:Yi("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2",l?.volume),style:a?.volume,children:[Zi(hn,{label:e?o.unmute:o.mute,active:e,onClick:()=>n({type:"toggleMuted"}),className:Yi(l?.controlButton,l?.muteButton),style:{...a?.controlButton,...a?.muteButton},children:Zi(dC,{muted:e,volume:t,size:24})}),Zi("div",{role:"group","aria-label":o.volume,className:Yi("cleen-grid cleen-grid-cols-[0fr] focus-within:cleen-grid-cols-[1fr] group-hover/volume:cleen-grid-cols-[1fr] cleen-opacity-0 focus-within:cleen-opacity-100 group-hover/volume:cleen-opacity-100 cleen-w-0 focus-within:cleen-w-24 group-hover/volume:cleen-w-24 cleen-transition-all cleen-duration-200",l?.volumeSliderContainer),style:a?.volumeSliderContainer,children:Zi(un,{minValue:0,maxValue:1,step:.05,value:e?0:t,onChange:c=>n({type:"setVolume",volume:c,muted:c===0}),className:Yi("cleen-w-full",l?.volumeSlider?.className),classNames:l?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...a?.volumeSlider})})]});import{jsx as _e,jsxs as Ji}from"react/jsx-runtime";var fC=({state:e,dispatch:t,isShown:n,allowBarSeeking:o,segments:l,seekStep:a,hasTracks:c,visible:i,hidden:d,onSeek:s,onSeekBy:p,onTogglePlay:g,onToggleFullscreen:m,labels:b,classNames:v,styles:h})=>{let{playing:y,currentTime:C,duration:x,muted:I,volume:P,playbackRate:w,showCaptions:R,isFullscreen:B}=e,S=E=>({className:fl(v?.controlButton,v?.[E]),style:{...h?.controlButton,...h?.[E]}});return Ji("div",{className:fl("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-flex cleen-flex-col cleen-gap-2.5 cleen-bg-gradient-to-t cleen-from-[rgba(0,0,0,0.5)] cleen-to-transparent cleen-px-4 cleen-pt-2.5 cleen-pb-4 cleen-transition-opacity cleen-duration-300",i?"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":d},v?.controls),style:h?.controls,children:[n("seekbar")&&_e(rC,{allowBarSeeking:o,segments:l,duration:x,currentTime:C,onSeek:s,seekLabel:b.seek,progressLabel:b.progress,classNames:v,styles:h}),Ji("div",{className:fl("cleen-flex cleen-items-center cleen-gap-2.5 sm:cleen-gap-3.5",gr,v?.controlsRow),style:h?.controlsRow,children:[n("play")&&_e(hn,{label:y?b.pause:b.play,onClick:g,...S("playButton"),children:y?_e(ut,{width:24,height:24}):_e(ft,{width:24,height:24})}),n("backward")&&_e(hn,{label:b.seekBackward(a),onClick:()=>p(-a),...S("backwardButton"),children:_e(yr,{seconds:a,size:24})}),n("forward")&&_e(hn,{label:b.seekForward(a),onClick:()=>p(a),...S("forwardButton"),children:_e(yr,{forward:!0,seconds:a,size:24})}),n("volume")&&_e(uC,{muted:I,volume:P,dispatch:t,labels:b,classNames:v,styles:h}),n("time")&&Ji("span",{className:fl("cleen-font-semibold cleen-tabular-nums cleen-text-[13px] cleen-whitespace-nowrap",v?.time),style:h?.time,children:[_e("span",{className:v?.currentTime,style:h?.currentTime,children:hr(C)})," ",Ji("span",{className:fl("cleen-font-medium",oC,v?.duration),style:h?.duration,children:["/ ",hr(x)]})]}),_e("span",{className:"cleen-flex-1"}),n("speed")&&_e(iC,{playbackRate:w,dispatch:t,label:b.playbackSpeed,classNames:v,styles:h}),n("subtitles")&&_e(pC,{hasTracks:c,showCaptions:R,onToggle:()=>t({type:"toggleCaptions"}),labels:b,classNames:v,styles:h}),n("fullscreen")&&_e(hn,{label:B?b.exitFullscreen:b.fullscreen,active:B,onClick:m,...S("fullscreenButton"),children:_e(mC,{isFullscreen:B,size:24})})]})]})};import{cn as hC}from"@cleen/ui-core";import{cn as uT}from"@cleen/ui-core";import{jsx as fT}from"react/jsx-runtime";var F1=({label:e,onClick:t,className:n,style:o,children:l})=>fT("button",{type:"button","aria-label":e,onClick:t,className:uT("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",$i,Wi,gr,n),style:o,children:l});import{jsx as bn,jsxs as hT}from"react/jsx-runtime";var gC=({playing:e,seekStep:t,visible:n,hidden:o,isShown:l,onTogglePlay:a,onSeekBy:c,labels:i,classNames:d,styles:s})=>hT("div",{className:hC("cleen-relative cleen-flex cleen-items-center cleen-gap-6 cleen-transition-opacity cleen-duration-300",n?"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":o},d?.overlay),style:s?.overlay,children:[l("backward")&&bn(F1,{label:i.seekBackward(t),onClick:()=>c(-t),className:d?.overlayButton,style:s?.overlayButton,children:bn(yr,{seconds:t,size:26})}),l("play")&&bn("button",{type:"button","aria-label":e?i.pause:i.play,onClick:a,className:hC("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",$i,Wi,gr,d?.overlayPlayButton),style:s?.overlayPlayButton,children:e?bn(ut,{width:28,height:28}):bn(ft,{width:28,height:28})}),l("forward")&&bn(F1,{label:i.seekForward(t),onClick:()=>c(t),className:d?.overlayButton,style:s?.overlayButton,children:bn(yr,{forward:!0,seconds:t,size:26})})]});import{cn as A1}from"@cleen/ui-core";import{jsx as vC,jsxs as gT}from"react/jsx-runtime";var bC=({label:e,subLabel:t,classNames:n,styles:o})=>gT("div",{className:A1("cleen-absolute cleen-inset-0 cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-1 cleen-pointer-events-none cleen-text-center",n?.placeholder),style:o?.placeholder,children:[vC("span",{className:A1("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",n?.placeholderLabel),style:o?.placeholderLabel,children:e}),t&&vC("span",{className:A1("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",n?.placeholderSubLabel),style:o?.placeholderSubLabel,children:t})]});import{useEffect as vT}from"react";var yC=(e,t,n)=>{vT(()=>{let o=e.current?.textTracks;if(o)for(let l of Array.from(o))l.kind!=="metadata"&&(l.mode=t?"showing":"hidden")},[t,n,e])};import{useCallback as O1,useEffect as yT,useRef as IT}from"react";var IC=(e,t,n)=>{let o=IT(void 0),l=O1(()=>{clearTimeout(o.current),o.current=setTimeout(()=>n({type:"setControlsActive",controlsActive:!1}),2500)},[n]),a=O1(()=>{n({type:"setControlsActive",controlsActive:!0}),l()},[n,l]),c=O1(()=>{e&&(clearTimeout(o.current),n({type:"setControlsActive",controlsActive:!1}))},[n,e]);return yT(()=>{if(!e){clearTimeout(o.current),n({type:"setControlsActive",controlsActive:!0});return}return l(),()=>clearTimeout(o.current)},[n,e,l]),{controlsVisible:!e||t,revealControls:a,hideControls:c}};import{useCallback as CT,useEffect as xT}from"react";var CC=(e,t,n)=>(xT(()=>{let o=()=>n({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",o),()=>document.removeEventListener("fullscreenchange",o)},[e,n]),CT(()=>{let o=e.current;!o||!t||(document.fullscreenElement?document.exitFullscreen():o.requestFullscreen?.())},[e,t]));import{useCallback as PT}from"react";var PC=({volume:e,canSeekBackward:t,canSeekForward:n,canUseVolume:o,canUseCaptions:l,dispatch:a,seekBy:c,togglePlay:i,toggleFullscreen:d,restart:s})=>PT(p=>{let g=(b,v=!0)=>{v&&(p.preventDefault(),b())},m=b=>a({type:"setVolume",volume:b,muted:!1});switch(p.key){case"ArrowLeft":return g(()=>c(-5),t);case"ArrowRight":return g(()=>c(5),n);case"ArrowUp":return g(()=>m(Math.min(e+.05,1)),o);case"ArrowDown":return g(()=>m(Math.max(e-.05,0)),o);case"f":return g(d);case"m":return g(()=>a({type:"toggleMuted"}),o);case"r":return g(s);case"c":return g(()=>{l&&a({type:"toggleCaptions"})});case" ":return g(i);default:return}},[t,n,l,o,a,s,c,d,i,e]);import{useCallback as _1,useEffect as ST,useRef as wT}from"react";var SC=(e,t,n,o)=>{let l=wT(0);ST(()=>{l.current=0},[n]);let a=_1(d=>{let s=e.current;if(!s||!Number.isFinite(s.duration))return;o();let p=t?s.duration:Math.min(Math.max(l.current,s.currentTime),s.duration);s.currentTime=Math.min(Math.max(d,0),p)},[t,o,e]),c=_1(d=>a((e.current?.currentTime??0)+d),[a,e]),i=_1(d=>{let s=e.current;!s||!Number.isFinite(s.duration)||(o(),s.currentTime=Math.min(Math.max(d,0),s.duration))},[o,e]);return{seekTo:a,seekBy:c,jumpTo:i,watchedTimeRef:l}};import{useCallback as wC,useRef as BT}from"react";var MC=(e,t)=>{let n=BT({seconds:e,src:null,attempts:0,done:!1}),o=wC(a=>{let c=n.current;if(!a?.src||c.done||(c.src===null&&(c.src=a.src),c.src!==a.src))return;let{seconds:i}=c,d=Number.isFinite(a.duration);if(i===void 0||!Number.isFinite(i)||i<=0||d&&i>a.duration){c.done=!0;return}d&&(c.attempts+=1,Math.abs(a.currentTime-i)>.5?a.currentTime=i:c.done=!0,c.attempts>=5&&(c.done=!0),t({type:"seek",currentTime:i}))},[t]),l=wC(()=>{n.current.done=!0},[]);return{applyStartTime:o,cancelStartTime:l}};var kC=(e,t)=>{switch(t.type){case"play":return{...e,playing:!0};case"pause":return{...e,playing:!1};case"togglePlay":return{...e,playing:!e.playing};case"seek":case"timeUpdate":return{...e,currentTime:t.currentTime};case"durationChange":return{...e,duration:t.duration};case"loaded":return{...e,duration:t.duration,isLoading:!1};case"buffering":return{...e,isLoading:!0};case"ready":return{...e,isLoading:!1};case"setVolume":return{...e,volume:t.volume,muted:t.muted};case"toggleMuted":return{...e,muted:!e.muted};case"setPlaybackRate":return{...e,playbackRate:t.playbackRate};case"toggleCaptions":return{...e,showCaptions:!e.showCaptions};case"setFullscreen":return{...e,isFullscreen:t.isFullscreen};case"setControlsActive":return{...e,controlsActive:t.controlsActive};default:return e}};import{jsx as yn,jsxs as RC}from"react/jsx-runtime";var ET=[],TC=[],DT=TT(function({src:t,tracks:n=ET,startTime:o,allowBarSeeking:l=!0,allowSeekingPastWatched:a=!0,segments:c,hiddenControls:i=TC,hiddenOverlayControls:d=TC,seekStep:s=10,engine:p=R1,labels:g,onTimeChange:m,onDurationChange:b,onPause:v,onEnded:h,className:y,classNames:C,style:x,styles:I},P){let w=NC(null),R=NC(null),[B,S]=LT(kC,tC),{playing:E,duration:N,muted:M,volume:T,playbackRate:F,isLoading:L,isFullscreen:k}=B,z=BC(()=>({...B1,...g}),[g]),D=n.some(K=>K.kind!=="metadata"),A=K=>!i.includes(K),O=K=>!d.includes(K),V=A("volume"),G=A("fullscreen"),W=D&&A("subtitles"),q=A("backward")||O("backward"),H=A("forward")||O("forward"),{applyStartTime:U,cancelStartTime:j}=MC(o,S),{seekTo:_,seekBy:Z,jumpTo:pe,watchedTimeRef:de}=SC(R,a,t,j),{controlsVisible:fe,revealControls:st,hideControls:We}=IC(E,B.controlsActive,S),J=CC(w,G,S);yC(R,B.showCaptions,t),RT(P,()=>({getMediaElement:()=>R.current,play:()=>S({type:"play"}),pause:()=>S({type:"pause"}),jumpTo:pe}),[pe]);let ae=it(()=>S({type:"togglePlay"}),[]),Ze=it(()=>{_(0),S({type:"play"})},[_]),Qe=PC({volume:T,canSeekBackward:q,canSeekForward:H,canUseVolume:V,canUseCaptions:W,dispatch:S,seekBy:Z,togglePlay:ae,toggleFullscreen:J,restart:Ze}),Te=it(()=>S({type:"play"}),[]),pt=it(()=>{S({type:"pause"}),v?.()},[v]),qe=it(K=>{de.current=K.currentTarget.duration,S({type:"pause"}),h?.()},[h,de]),Y=it(K=>{let ke=K.currentTarget,to=ke.currentTime;if(to-de.current<=3)de.current=Math.max(de.current,to);else if(!a){ke.currentTime=de.current;return}S({type:"timeUpdate",currentTime:to}),m?.(to)},[a,m,de]),xe=it(K=>{S({type:"loaded",duration:K.currentTarget.duration}),U(K.currentTarget)},[U]),Me=it(K=>U(K.currentTarget),[U]),Pe=it(K=>{S({type:"ready"}),U(K.currentTarget)},[U]),Xe=it(K=>{S({type:"durationChange",duration:K.currentTarget.duration}),U(K.currentTarget),b?.(K)},[U,b]),Je=it(()=>S({type:"buffering"}),[]),Ir=it(()=>S({type:"ready"}),[]),No=!!t&&L,ne=!t||!L&&(!Number.isFinite(N)||N===0),$=ne||No,ee=BC(()=>L1(c,N),[c,N]);return yn("div",{className:hl("cleen",y),style:x,children:RC("div",{ref:w,className:hl("cleen-group cleen-relative cleen-bg-[rgb(10,13,18)] cleen-shadow-md cleen-rounded-xl cleen-overflow-hidden focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",{"cleen-cursor-none":!fe},C?.container),style:I?.container,onMouseMove:st,onMouseLeave:We,onDoubleClick:J,onKeyDown:Qe,tabIndex:0,children:[RC("div",{className:hl("cleen-relative cleen-flex cleen-justify-center cleen-items-center",k?"cleen-h-full":"cleen-aspect-video",C?.viewport),style:I?.viewport,children:[yn(p,{ref:R,src:t||void 0,controls:!1,playing:E,muted:M,volume:T,playbackRate:F,playsInline:!0,className:hl("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",C?.video),style:I?.video,onClick:ae,onPlay:Te,onPause:pt,onEnded:qe,onTimeUpdate:Y,onLoadedMetadata:xe,onLoadedData:Me,onCanPlay:Pe,onSeeked:Me,onDurationChange:Xe,onWaiting:Je,onError:Ir,crossOrigin:"anonymous",children:n.map(K=>yn("track",{kind:K.kind??"subtitles",src:K.src,srcLang:K.srcLang,label:K.label},K.src))}),ne&&yn(bC,{label:z.placeholder,subLabel:z.placeholderSubLabel,classNames:C,styles:I}),No&&yn(le,{size:"xl",className:hl("cleen-absolute",C?.loader?.className),classNames:C?.loader?.classNames,...I?.loader}),yn(gC,{playing:E,seekStep:s,visible:fe,hidden:$,isShown:O,onTogglePlay:ae,onSeekBy:Z,labels:z,classNames:C,styles:I})]}),yn(fC,{state:B,dispatch:S,isShown:A,allowBarSeeking:l,segments:ee,seekStep:s,hasTracks:D,visible:fe,hidden:$,onSeek:_,onSeekBy:Z,onTogglePlay:ae,onToggleFullscreen:J,labels:z,classNames:C,styles:I})]})})});export{zC as AdvancedProgressBar,oM as AudioPlayback,sM as AudioRecorder,Oc as Avatar,fM as AvatarRow,vM as Breadcrumb,te as Button,Jh as Calendar,TM as CalendarDropdown,Zw as CanvasButton,ue as Card,gw as CardIcon,Cw as CardMedia,AM as Carousel,Ga as Checkbox,XM as CheckboxGroup,ye as CleenIcon,YB as CleenNotificationContainer,nb as Collapsible,e3 as ColorPicker,a3 as CreditCardInput,Qa as DEFAULT_NOTIFICATION_CATEGORIES,Ja as DEFAULT_NOTIFICATION_LABELS,B1 as DEFAULT_VIDEO_PLAYER_LABELS,ht as Divider,o0 as Drawer,TI as DrawerContainer,JN as DrawerContentTitle,Ua as Dropdown,z3 as Dropzone,qw as EditableCard,Oh as EditableText,Vh as EditableTextArea,q3 as FileCard,d0 as FileStackedProgressTracker,Ek as FilterDrawer,yy as FormGroup,$k as GroupSelector,fs as Icon48AlertFeatured,hs as Icon48SuccessFeatured,Ro as IconAlertCircle,vs as IconAlertOctagon,ys as IconAlertTriangle,Is as IconApps,xs as IconArchive,Ps as IconArrowBarDown,Ss as IconArrowBarLeft,ws as IconArrowBarRight,Ms as IconArrowBarToDown,ks as IconArrowBarToLeft,Bs as IconArrowBarToRight,Ns as IconArrowBarToUp,Ts as IconArrowBarUp,Ls as IconArrowDown,Es as IconArrowDownLeft,Fs as IconArrowDownNarrow,As as IconArrowDownRight,_s as IconArrowLeft,Vs as IconArrowLeftNarrow,Us as IconArrowRight,$s as IconArrowRightNarrow,qs as IconArrowUp,Xs as IconArrowUpLeft,Ys as IconArrowUpNarrow,Zs as IconArrowUpRight,Qs as IconAttachment,Js as IconBarChart,js as IconBarChartSquare,ep as IconBell,tp as IconBold,cp as IconBookOpen,op as IconBookmark,cs as IconBookmarkCheck,is as IconBookmarkCheckFill,np as IconBookmarkFill,rp as IconBookmarkMinus,ps as IconBookmarkPlus,lp as IconBookmarkX,ip as IconBoxLines,pp as IconBoxText,mp as IconBracketsCheck,up as IconBracketsEllipses,fp as IconBrickWall,hp as IconBriefcase,ds as IconBuilding,gp as IconCalculator,Rr as IconCalendar,vp as IconCertificate,Dt as IconCheck,Lo as IconCheckCircle,bp as IconCheckCircleBroken,yp as IconCheckFill,Ip as IconCheckVerified,Cp as IconCheckVerifiedFill,Lr as IconChevronDown,xp as IconChevronDownDouble,Pp as IconChevronDownLeft,Sp as IconChevronDownLeftDouble,wp as IconChevronDownRight,Mp as IconChevronDownRightDouble,Ft as IconChevronLeft,kp as IconChevronLeftDouble,dt as IconChevronRight,Er as IconChevronRightDouble,Bp as IconChevronSelectorVertical,At as IconChevronUp,Np as IconChevronUpDouble,Tp as IconChevronUpLeft,Rp as IconChevronUpLeftDouble,Lp as IconChevronUpRight,Ep as IconChevronUpRightDouble,Dp as IconClick,Fp as IconClock,Ap as IconClockFastForward,_p as IconClockPlay,zp as IconClockRewind,Vp as IconClone,Up as IconCode,Gp as IconCodeBrowser,Wp as IconCodeCircle,Xp as IconColors,ms as IconColumnEdit,Kp as IconCopy,Yp as IconCopy2,Qp as IconCopyCheck,Jp as IconCreditCard,jp as IconCube,ed as IconCubeOutline,Fr as IconCursorBox,td as IconDataflow,od as IconDataflow2,nd as IconDataflow3,ad as IconDistributeHorizontal,ld as IconDollar,id as IconDollarCircle,sd as IconDot,pd as IconDotFill,dd as IconDotsGrid,ud as IconDotsHorizontal,kn as IconDotsVertical,gd as IconDownload,vd as IconEdit,yd as IconEditable,Id as IconExpand,xd as IconExternalLink,Sd as IconExternalLink2,wd as IconEye,kd as IconEyeHidden,Bd as IconEyeHidden2,Nd as IconFaceAngry,Td as IconFaceLaugh,Rd as IconFaceSmile,Do as IconFile,Ed as IconFileCheck,zr as IconFileCsv,Dd as IconFileDownload,Vr as IconFileJson,Fd as IconFileList,tt as IconFileMusic,Fo as IconFilePdf,Ur as IconFileSpreadsheet,_t as IconFileText,_d as IconFileUpload,$r as IconFileXls,Wr as IconFileXlsx,bt as IconFileZip,Od as IconFiles,zd as IconFilter,qr as IconFilter2,Hd as IconFlag,Ud as IconFlag2,Gd as IconFlagFill,$d as IconFocus,Wd as IconFolder,qd as IconFolderExport,Xd as IconFolderImport,Kd as IconGraduationCap,Yd as IconGripVertical,Zd as IconHand,Qd as IconHandShield,Jd as IconHash,jd as IconHeadsetMic,em as IconHeart,tm as IconHeartFill,nm as IconHouse,Kr as IconHouseLine,De as IconImage,rm as IconImage2,am as IconImageCheck,lm as IconImageOff,cm as IconImport,im as IconInbox,pm as IconInfoCircle,mm as IconInfoHexagon,fm as IconItalic,gm as IconLayersMultiple,vm as IconLayersSingle,bm as IconLayout,Im as IconLayout2,Cm as IconLayoutColumns,xm as IconLayoutCustom,Sm as IconLayoutStuffed,wm as IconLayoutTile,Mm as IconLifeBuoy,Bm as IconLightbulb,Nm as IconLightning,Tm as IconLightningFast,Rm as IconLineChart,Lm as IconLineChartBar,Em as IconLineChartBreakoutSquare,Fm as IconLineChartUp,Am as IconLines,Om as IconLinesCheck,_m as IconLinesPlay,Vm as IconLink,Hm as IconLink2,Um as IconLinkOff,Gm as IconListBullet,$m as IconListOrder,qm as IconLock,Xm as IconLockFill,Ym as IconLogIn,Qm as IconLogOut,jm as IconLogOut2,eu as IconMagicWand,tu as IconMail,ou as IconMailOpen,nu as IconMapPin,ea as IconMaximize,ru as IconMaximize2,au as IconMessageCircle,cu as IconMessageSquare,iu as IconMessageSquare2,su as IconMessageXSquare,oa as IconMicrophone,na as IconMinimize,pu as IconMinimize2,du as IconMinusCircle,uu as IconMobile,fu as IconMonitor,hu as IconMonitor2,gu as IconMoon,vu as IconMoonCircle,mt as IconMovie,yt as IconName,bu as IconNavigationPointer,yu as IconNotificationBox,Mu as IconPCSetup,Iu as IconPackage,Cu as IconPalette,xu as IconPasscodeLock,ut as IconPause,Su as IconPauseCircle,Bu as IconPen,Nu as IconPercentageCircle,Tu as IconPerspective,Lu as IconPhoneCall,ca as IconPin,ft as IconPlay,Du as IconPlayCircle,ia as IconPlus,so as IconPlusCircle,Ou as IconPrinter,_u as IconPulse,sa as IconQuestionCircle,Vu as IconQuote,Hu as IconRadioButton,Uu as IconRadioButtonFill,Gu as IconReceipt,$u as IconReceiptCheck,Wu as IconRedo,pa as IconRefresh,qu as IconRefresh2,Xu as IconRefresh3,Ku as IconRepeat,Yu as IconReplace,da as IconReplay,Qu as IconRestore,ju as IconRocket,ef as IconRoundChart,tf as IconRoundChart2,nf as IconRoute,af as IconSave,lf as IconScanDots,ma as IconScissors,zt as IconSearch,cf as IconSend,sf as IconServer,pf as IconSettings,df as IconSettings2,mf as IconShare,uf as IconShieldLightning,hf as IconShieldPlus,vf as IconShieldRemove,bf as IconShoppingBag,yf as IconShoppingCart,If as IconShrink,Cf as IconShuffle,xf as IconSkipForward,Pf as IconSlashCircle,Sf as IconSlashOctagon,wf as IconSocialAndroid,Mf as IconSocialApple,kf as IconSocialGithub,Bf as IconSocialGlobe,Nf as IconSocialGoogle,Rf as IconSocialInstagram,Lf as IconSocialLinkedin,Df as IconSocialMastercard,Ff as IconSocialReact,Af as IconSocialVisa,Of as IconSocialX,_f as IconSpeedometer,zf as IconStairs,va as IconStar,Vf as IconStarFill,Hf as IconStarHalf,Uf as IconStars,ba as IconStop,Gf as IconStrikethrough,$f as IconSun,Wf as IconSwap,qf as IconSwitchHorizontal,Kf as IconTable,ya as IconTag,Yf as IconTarget,Qf as IconTarget2,jf as IconTextFormat,eh as IconTextFormat2,th as IconTextHighlight,oh as IconThumbsDown,nh as IconThumbsUp,rh as IconThumbsUpFill,ah as IconToggle,lh as IconTranslate,ot as IconTrash,ch as IconTrending,ih as IconUnderline,sh as IconUndo,dh as IconUnlock,_o as IconUploadCloud,Ca as IconUser,fh as IconUserCheck,hh as IconUserDollar,vh as IconUserEdit,bh as IconUserPlus,yh as IconUserRight,xh as IconUserSquare,us as IconUserVoice,Ih as IconUsers,Ph as IconUsersUp,Sh as IconVideo,Mh as IconVideoChat,Pa as IconVolume,Sa as IconVolumeDown,wa as IconVolumeMute,Bh as IconWrench,Ae as IconX,Nh as IconXCircle,Th as IconXCircleFill,Rh as IconXSquare,Lh as IconZoomIn,Dh as IconZoomOut,re as InfoLabels,he as Input,ce as Label,le as Loader,jk as Lookup,rB as Markdown,Jn as Menu,uB as Modal,er as NOTIFICATION_GENERAL_CATEGORY,tT as NativeVideoEngine,iN as Pagination,W0 as PaginationGoToPage,q0 as PaginationPageSize,Ie as PillBadge,el as Popover,Qn as ProgressBar,uI as ProgressCircle,PN as RadioBoxGroup,RN as RadioButtonGroup,AN as Rating,R1 as ReactPlayerEngine,qN as Select,LI as Sidebar,al as SidebarItem,i6 as Skeleton,j0 as SkeletonAvatar,t1 as SkeletonBadge,o1 as SkeletonBanner,r1 as SkeletonButton,ll as SkeletonCard,Ei as SkeletonCard2,a1 as SkeletonCard3,c1 as SkeletonCardStack,i1 as SkeletonChart,s1 as SkeletonContentCard,p1 as SkeletonDataGrid,d1 as SkeletonForm,u1 as SkeletonGlowingCard,f1 as SkeletonImage,h1 as SkeletonInfoCard,b1 as SkeletonInput,y1 as SkeletonList,x1 as SkeletonParagraph,P1 as SkeletonText,S1 as SkeletonVideo,zi as SkeletonWidgetCard,A6 as SkeletonWrapper,un as Slider,U6 as SliderRange,s0 as StackedProgressTracker,r0 as StackedProgressTrackerRow,a0 as StackedProgressTrackerStatusFilter,W6 as StarRating,JI as Stepper,M0 as Switch,Xa as TRACKER_STATUS_FILTER_ORDER,S0 as Tabs,Z6 as TagFilter,zh as TextArea,ve as Tooltip,Wa as TrackerItemStatus,qa as TrackerStatusFilter,N1 as VIDEO_PLAYER_SEEK_STEP_DEFAULT,DT as VideoPlayer,ul as VideoPlayerControl,Oy as createNotificationStore,hr as formatTime,Fh as getFileIcon,lT as getVideoSegmentIndex,E1 as getVideoSegmentProgress,L1 as getVideoSegments,D0 as groupLayout,F0 as listLayout,on as notification,ie as notificationStore,jh as parseRgbaString,_y as showNotification,A0 as stackLayout,yB as useNotifications};