@cleen/ui 0.1.289 → 0.1.290

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 Ho,useAnimateNumber as Yx}from"@cleen/ui-core";import{forwardRef as Qx,useMemo as Kg}from"react";import{cn as Xl,usePositionClose as $x,ZIndex as Wx}from"@cleen/ui-core";import{useEffect as Ug,useRef as Vs,useState as Gg}from"react";import{createPortal as qx}from"react-dom";import{jsx as zs,jsxs as $g}from"react/jsx-runtime";var Ie=({bg:e,label:t,color:o,closeOnClick:n=!0,hideOnMouseDown:l=!0,isOpen:r,children:c,hasArrow:i,placement:s="top",offset:p=8,className:d,classNames:g,isDisabled:m,openDelay:v=0,invertColors:y=!1,extraUpdateTriggers:u,allowNonDescendantHover:b=!0,zIndex:C=Wx.TOOLTIP,portalContainer:x,style:I,styles:P,onClick:T,onMouseEnter:D,onMouseLeave:B,...N})=>{let[L,M]=Gg(r??!1),[S,w]=Gg(!1),E=Vs(null),R=Vs(null),k=Vs(null),{positionStyles:O,isMounted:F,optimalPosition:A}=$x({triggerRef:R,targetRef:E,position:s,isOpen:L&&!m,offset:p,extraUpdateTriggers:u,container:x});Ug(()=>{M(r??!1)},[r]);let _=U=>{T?.(U),n&&M(!1)},G=(U,W)=>{if(r!==void 0)return;let Q=R.current?.contains(U.target);!b&&!Q||(W?(D?.(U),v&&v>0?k.current=setTimeout(()=>{M(!0)},v):M(!0)):(k.current&&(clearTimeout(k.current),k.current=null),M(!1),B?.(U)))};return Ug(()=>{let U=()=>{l&&w(!0)},W=()=>{w(!1)};return document.addEventListener("mousedown",U),document.addEventListener("mouseup",W),()=>{document.removeEventListener("mousedown",U),document.removeEventListener("mouseup",W)}},[l]),$g("div",{className:Xl("cleen",d),style:I,children:[zs("div",{ref:R,className:Xl("cleen-relative cleen-max-w-fit",g?.container),style:P?.container,onClick:_,onMouseEnter:U=>G(U,!0),onMouseLeave:U=>G(U,!1),...N,children:c}),t!==void 0&&L&&!m&&!S&&qx(zs("div",{className:"cleen",children:$g("div",{ref:E,className:Xl("cleen-shadow cleen-px-2 cleen-py-0.5 cleen-rounded-md cleen-text-sm cleen-transition-opacity cleen-duration-200 cleen-pointer-events-none","cleen-absolute",y?"cleen-bg-primary after:cleen-border-primary cleen-text-primary-foreground":"cleen-bg-surface after:cleen-border-surface cleen-text-primary",{"cleen-opacity-0":!F,"cleen-opacity-100":F},g?.labelContainer),style:{zIndex:C,top:`${O.top}px`,left:`${O.left}px`,...e&&{backgroundColor:e},...o&&{color:o},...P?.labelContainer},children:[t,zs("div",{className:Xl(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)]":A==="top"||A==="top-left"||A==="top-right","cleen-left-[calc(50%-6px)]":A==="top"||A==="bottom","cleen-left-[6px]":A==="top-left"||A==="bottom-left","cleen-right-[6px]":A==="top-right"||A==="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)]":A==="bottom"||A==="bottom-left"||A==="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)]":A==="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)]":A==="right"}]:"cleen-hidden"),style:{}})]})}),x??document.body)]})};import{cn as Vr}from"@cleen/ui-core";var Ot=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),_t=(e,t,o)=>{let n=Number.isFinite(t)?t:0,l=Number.isFinite(o)?o:100;return l===n?0:(e-n)/(l-n)*100};import{cn as Kl}from"@cleen/ui-core";import{jsx as Hs}from"react/jsx-runtime";var Yl=({serie:e,minValue:t,maxValue:o,color:n,trackHeight:l,className:r,style:c})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,s=Number.isFinite(i)?i:t,p=Ot(_t(s,t,o)),d=Math.max(2,e?.height??l*1.5),g={left:`${p}%`,top:"50%"};return e.tooltip?Hs(Ie,{invertColors:!0,...e.tooltip,className:Kl("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:Kl("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:Hs("div",{className:Kl("cleen-rounded-full",r),style:{width:d,height:d,backgroundColor:n,...c}})}):Hs("div",{className:Kl("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",r),style:{width:d,height:d,backgroundColor:n,...g,...c}})};import{jsx as Ql}from"react/jsx-runtime";var Wg=({serie:e,minValue:t,maxValue:o,animatedGlobal:n=t,renderAnimated:l,color:r,trackHeight:c,trackRadius:i,className:s,style:p})=>{if(e.type!=="bar")return null;let d=typeof e.start=="number"?e.start:t,g=typeof e.end=="number"?e.end:o,m=Ot(_t(d,t,o)),v=Ot(_t(g,t,o));v<m&&([m,v]=[v,m]);let y=Math.max(0,l?n-m:v-m);if(y<1&&!l||l&&n>=v&&y===0)return Ql(Yl,{serie:{...e,type:"clamp",value:m},color:r,trackHeight:c,minValue:t,maxValue:o,className:s,style:p});let u={left:`${m}%`,top:e?.height?(c-e.height)/2:0,width:`${y}%`,height:e?.height??"100%"},b={width:"100%",height:"100%"},C={background:r,borderRadius:e?.radius??i??(e?.height??c)/2};return e.tooltip?Ql(Ie,{invertColors:!0,...e.tooltip,className:Vr("cleen-absolute",e.tooltip.className),style:{...u,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:Vr("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:Vr("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:Ql("div",{className:Vr("cleen-relative cleen-size-full",s),style:{...C,...b,...p}})}):Ql("div",{className:Vr("cleen-absolute cleen-pointer-events-none",s),style:{...C,...u,...p}})};import{cn as Xx}from"@cleen/ui-core";import{jsx as Kx}from"react/jsx-runtime";var qg=({serie:e,minValue:t,maxValue:o,className:n,style:l})=>{let r=0;if(e.type==="clamp"){let c=typeof e.value=="number"?e.value:0,i=Number.isFinite(c)?c:t;r=Ot(_t(i,t,o))}else{let c=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:o,s=Ot(_t(c,t,o)),p=Ot(_t(i,t,o));r=(s+p)/2}return Kx("div",{className:Xx("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",n),style:{left:`${r}%`,...l},children:e.label})};var Xg={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as An,jsxs as Yg}from"react/jsx-runtime";var Zx=Qx(function({series:t=[],track:o,renderAnimated:n,renderAnimatedDuration:l=1e3,className:r,classNames:c,style:i,styles:s,minValue:p=0,maxValue:d=100,...g},m){let v=Kg(()=>({...Xg,...o}),[o]),y=Kg(()=>t.reduce((x,I)=>{if(I.type==="bar"){let P=typeof I.end=="number"?I.end:d,T=Math.max(p,Math.min(P,d));if(T>x)return T}return x},0),[t,p,d]),u=Yx({targetNumber:y,defaultNumber:p,duration:l,disabled:!n}),{bars:b,clamps:C}=t.reduce((x,I,P)=>{if(I==null||!I.type)return x;let T=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":x.clamps.push(An(Yl,{serie:I,color:T,trackHeight:v.height,minValue:p,maxValue:d,className:Ho(c?.clamp,I.className),style:{...s?.clamp,...I.style}},`clamp-${P}`));break;case"bar":x.bars.push(An(Wg,{serie:I,color:T,trackHeight:v.height,trackRadius:v.radius,minValue:p,maxValue:d,renderAnimated:n,animatedGlobal:u,className:Ho(c?.bar,I.className),style:{...s?.bar,...I.style}},`bar-${P}`));break;default:break}return x},{clamps:[],bars:[]});return An("div",{className:Ho("cleen",r),style:i,ref:m,...g,children:Yg("div",{className:Ho("cleen-relative cleen-w-full",c?.container),style:s?.container,children:[Yg("div",{className:Ho("cleen-relative cleen-size-full",c?.trackWrapper),style:s?.trackWrapper,children:[An("div",{className:Ho("cleen-relative cleen-w-full",c?.track),style:{height:v.height,backgroundColor:v.color,borderRadius:v.radius??v.height/2,...s?.track},children:b}),C]}),t.some(x=>!!x.label)&&An("div",{"aria-hidden":!0,className:Ho("cleen-relative cleen-mt-2 cleen-h-5",c?.labels),style:s?.labels,children:t.map((x,I)=>!x||!x.type||!x.label?null:An(qg,{serie:x,minValue:p,maxValue:d,className:c?.label,style:s?.label},`label-${I}`))})]})})});import{cn as Us}from"@cleen/ui-core";import{jsx as Gs}from"react/jsx-runtime";var Jx={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"},jx={slow:1.3,normal:.65,fast:.4},re=({isFullscreen:e,size:t="xs",stroke:o,speed:n="normal",className:l,classNames:r,style:c,styles:i,color:s,...p})=>Gs("div",{className:Us("cleen",l),style:c,children:Gs("div",{className:Us("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},r?.container),style:i?.container,...p,children:Gs("span",{className:Us("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"&&Jx[t],r?.loader),style:{...s&&{borderInlineColor:s,borderTopColor:s},...typeof t=="number"&&{width:t,height:t},...typeof o=="number"&&{borderWidth:o},animationDuration:`${typeof n=="number"?n:jx[n]}s`,...i?.loader}})})});import{cn as $s,useWidthDynamicResize as eS}from"@cleen/ui-core";import{forwardRef as tS,useImperativeHandle as oS,useRef as nS}from"react";var Qg={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"},Zg={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 Jg,jsxs as rS}from"react/jsx-runtime";var ee=tS(function({type:t="button",label:o,onClick:n,className:l,classNames:r,style:c,styles:i,disabled:s=!1,leftIcon:p,rightIcon:d,loaderColor:g,isLoading:m=!1,variant:v="primary",fullWidth:y=!1,children:u,...b},C){let x=nS(null);return oS(C,()=>x.current),eS({ref:x,skip:y},[m,p,d,y]),Jg("div",{className:$s("cleen",l),style:c,children:rS("button",{type:t,ref:x,className:$s("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",Qg[v],{"cleen-w-full cleen-flex-1":y,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||m},r?.container),style:i?.container,disabled:m||s,onClick:n,...b,children:[m&&Jg(re,{size:"xs",color:g||Zg[v],className:$s("cleen-mr-1.5 cleen-w-fit",r?.loaderContainer),style:i?.loaderContainer,classNames:{loader:r?.loader},styles:{loader:i?.loader}}),p||null,o||u,d||null]})})});var jg={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"},e2={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 io,ColorHelpers as gS}from"@cleen/ui-core";function On(e,t,o){return Math.min(Math.max(e,o),t)}var Ws=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},zr=Ws;function aS(e){if(typeof e!="string")throw new zr(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=uS.test(e)?iS(e):e;let o=sS.exec(t);if(o){let c=Array.from(o).slice(1);return[...c.slice(0,3).map(i=>parseInt(Hr(i,2),16)),parseInt(Hr(c[3]||"f",2),16)/255]}let n=pS.exec(t);if(n){let c=Array.from(n).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,16)),parseInt(c[3]||"ff",16)/255]}let l=dS.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 r=mS.exec(t);if(r){let[c,i,s,p]=Array.from(r).slice(1).map(parseFloat);if(On(0,100,i)!==i)throw new zr(e);if(On(0,100,s)!==s)throw new zr(e);return[...fS(c,i,s),Number.isNaN(p)?1:p]}throw new zr(e)}function lS(e){let t=5381,o=e.length;for(;o;)t=t*33^e.charCodeAt(--o);return(t>>>0)%2341}var t2=e=>parseInt(e.replace(/_/g,""),36),cS="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 o=t2(t.substring(0,3)),n=t2(t.substring(3)).toString(16),l="";for(let r=0;r<6-n.length;r++)l+="0";return e[o]=`${l}${n}`,e},{});function iS(e){let t=e.toLowerCase().trim(),o=cS[lS(t)];if(!o)throw new zr(e);return`#${o}`}var Hr=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),sS=new RegExp(`^#${Hr("([a-f0-9])",3)}([a-f0-9])?$`,"i"),pS=new RegExp(`^#${Hr("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),dS=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Hr(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),mS=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,uS=/^[a-z]+$/i,o2=e=>Math.round(e*255),fS=(e,t,o)=>{let n=o/100;if(t===0)return[n,n,n].map(o2);let l=(e%360+360)%360/60,r=(1-Math.abs(2*n-1))*(t/100),c=r*(1-Math.abs(l%2-1)),i=0,s=0,p=0;l>=0&&l<1?(i=r,s=c):l>=1&&l<2?(i=c,s=r):l>=2&&l<3?(s=r,p=c):l>=3&&l<4?(s=c,p=r):l>=4&&l<5?(i=c,p=r):l>=5&&l<6&&(i=r,p=c);let d=n-r/2,g=i+d,m=s+d,v=p+d;return[g,m,v].map(o2)};function hS(e,t,o,n){return`rgba(${On(0,255,e).toFixed()}, ${On(0,255,t).toFixed()}, ${On(0,255,o).toFixed()}, ${parseFloat(On(0,1,n).toFixed(3))})`}function Ur(e,t){let[o,n,l,r]=aS(e);return hS(o,n,l,r-t)}import{forwardRef as yS,useMemo as vS}from"react";import{jsx as _n,jsxs as n2}from"react/jsx-runtime";var he=yS(function({header:t,footer:o,color:n,isGlass:l=!1,hoverable:r=!1,p:c,gap:i,radius:s=8,children:p,className:d,classNames:g,style:m,styles:v,...y},u){let{cardColor:b,backgroundColor:C,borderColor:x}=vS(()=>{let I=gS.getComputedColor(n);return I?{cardColor:I,backgroundColor:Ur(I,.9),borderColor:Ur(I,.8)}:{cardColor:I}},[n]);return _n("div",{className:io("cleen",d),style:m,ref:u,...y,children:n2("div",{className:io("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",r&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",o?.content?"cleen-pb-3":"cleen-pb-6",g?.container),style:{...b&&{backgroundColor:C,borderColor:x,color:b},...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:s,...v?.container},children:[(t?.content||t?.title)&&n2("div",{className:io("cleen-px-6",g?.header?.content),style:{...b&&{color:b},...c!==void 0&&{paddingInline:c},...v?.header?.content},children:[t?.title&&_n("div",{className:io("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",g?.header?.title),style:{...b&&{color:b},...v?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&_n("hr",{className:io("cleen-text-neutral-200",g?.header?.divider),style:{...b&&{color:x},...v?.header?.divider}}),p&&_n("div",{className:io("cleen-px-6",g?.childrenContainer),style:{...c!==void 0&&{paddingInline:c},...v?.childrenContainer},children:p}),o?.content&&o?.hasDivider&&_n("hr",{className:io("cleen-text-neutral-200",g?.footer?.divider),style:{...b&&{color:x},...v?.footer?.divider}}),o?.content&&_n("div",{className:io("cleen-px-6 -cleen-mt-3 cleen-text-foreground",g?.footer?.content),style:{...b&&{color:b},...c!==void 0&&{paddingInline:c},...v?.footer?.content},children:o.content})]})})});import{jsx as bS}from"react/jsx-runtime";function a({size:e=24,width:t,height:o,strokeWidth:n=1.5,isFilled:l=!1,children:r,...c}){return delete c.color1,delete c.color2,bS("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:o??e,viewBox:"0 0 24 24",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:l?0:n,strokeLinecap:"round",strokeLinejoin:"round",...c,children:r})}import{jsx as r2,jsxs as IS}from"react/jsx-runtime";var qs=e=>IS(a,{...e,children:[r2("path",{d:"M9 10.5l2 2l4 -4"}),r2("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as a2}from"react/jsx-runtime";var Xs=e=>a2(a,{isFilled:!0,...e,children:a2("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 Ks,jsxs as CS}from"react/jsx-runtime";var Ys=e=>CS(a,{...e,children:[Ks("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),Ks("path",{d:"M16 19h6"}),Ks("path",{d:"M19 16v6"})]});import{jsx as so,jsxs as PS}from"react/jsx-runtime";var Qs=e=>PS(a,{...e,children:[so("path",{d:"M3 21l18 0"}),so("path",{d:"M9 8l1 0"}),so("path",{d:"M9 12l1 0"}),so("path",{d:"M9 16l1 0"}),so("path",{d:"M14 8l1 0"}),so("path",{d:"M14 12l1 0"}),so("path",{d:"M14 16l1 0"}),so("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as l2,jsxs as xS}from"react/jsx-runtime";var Zs=e=>xS(a,{...e,children:[l2("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"}),l2("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 Zl,jsxs as SS}from"react/jsx-runtime";var Js=e=>SS(a,{...e,children:[Zl("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Zl("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Zl("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),Zl("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as Gr,jsxs as wS}from"react/jsx-runtime";var js=e=>wS(a,{viewBox:"0 0 48 48",...e,children:[Gr("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Gr("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Gr("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Gr("path",{d:"M24 18v8"}),Gr("path",{d:"M24 30h.01"})]});import{jsx as Jl,jsxs as MS}from"react/jsx-runtime";var ep=e=>MS(a,{viewBox:"0 0 48 48",...e,children:[Jl("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Jl("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Jl("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Jl("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as tp,jsxs as kS}from"react/jsx-runtime";var Uo=e=>kS(a,{...e,children:[tp("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),tp("path",{d:"M12 8v4"}),tp("path",{d:"M12 16h.01"})]});import{jsx as c2}from"react/jsx-runtime";var op=e=>c2(a,{isFilled:!0,...e,children:c2("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 np,jsxs as TS}from"react/jsx-runtime";var rp=e=>TS(a,{...e,children:[np("path",{d:"M12 9v4"}),np("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"}),np("path",{d:"M12 16h.01"})]});import{jsx as $r,jsxs as BS}from"react/jsx-runtime";var ap=e=>BS(a,{...e,children:[$r("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"}),$r("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"}),$r("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"}),$r("path",{d:"M14 7l6 0"}),$r("path",{d:"M17 4l0 6"})]});import{jsx as lp,jsxs as NS}from"react/jsx-runtime";var cp=e=>NS(a,{...e,children:[lp("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"}),lp("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),lp("path",{d:"M10 12l4 0"})]});import{jsx as jl,jsxs as RS}from"react/jsx-runtime";var ip=e=>RS(a,{...e,children:[jl("path",{d:"M12 20l0 -10"}),jl("path",{d:"M12 20l4 -4"}),jl("path",{d:"M12 20l-4 -4"}),jl("path",{d:"M4 4l16 0"})]});import{jsx as ec,jsxs as LS}from"react/jsx-runtime";var sp=e=>LS(a,{...e,children:[ec("path",{d:"M4 12l10 0"}),ec("path",{d:"M4 12l4 4"}),ec("path",{d:"M4 12l4 -4"}),ec("path",{d:"M20 4l0 16"})]});import{jsx as tc,jsxs as ES}from"react/jsx-runtime";var pp=e=>ES(a,{...e,children:[tc("path",{d:"M20 12l-10 0"}),tc("path",{d:"M20 12l-4 4"}),tc("path",{d:"M20 12l-4 -4"}),tc("path",{d:"M4 4l0 16"})]});import{jsx as oc,jsxs as DS}from"react/jsx-runtime";var dp=e=>DS(a,{...e,children:[oc("path",{d:"M4 20l16 0"}),oc("path",{d:"M12 14l0 -10"}),oc("path",{d:"M12 14l4 -4"}),oc("path",{d:"M12 14l-4 -4"})]});import{jsx as nc,jsxs as FS}from"react/jsx-runtime";var mp=e=>FS(a,{...e,children:[nc("path",{d:"M10 12l10 0"}),nc("path",{d:"M10 12l4 4"}),nc("path",{d:"M10 12l4 -4"}),nc("path",{d:"M4 4l0 16"})]});import{jsx as rc,jsxs as AS}from"react/jsx-runtime";var up=e=>AS(a,{...e,children:[rc("path",{d:"M14 12l-10 0"}),rc("path",{d:"M14 12l-4 4"}),rc("path",{d:"M14 12l-4 -4"}),rc("path",{d:"M20 4l0 16"})]});import{jsx as ac,jsxs as OS}from"react/jsx-runtime";var fp=e=>OS(a,{...e,children:[ac("path",{d:"M12 10l0 10"}),ac("path",{d:"M12 10l4 4"}),ac("path",{d:"M12 10l-4 4"}),ac("path",{d:"M4 4l16 0"})]});import{jsx as lc,jsxs as _S}from"react/jsx-runtime";var hp=e=>_S(a,{...e,children:[lc("path",{d:"M12 4l0 10"}),lc("path",{d:"M12 4l4 4"}),lc("path",{d:"M12 4l-4 4"}),lc("path",{d:"M4 20l16 0"})]});import{jsx as gp,jsxs as VS}from"react/jsx-runtime";var yp=e=>VS(a,{...e,children:[gp("path",{d:"M12 5l0 14"}),gp("path",{d:"M18 13l-6 6"}),gp("path",{d:"M6 13l6 6"})]});import{jsx as i2,jsxs as zS}from"react/jsx-runtime";var vp=e=>zS(a,{...e,children:[i2("path",{d:"M17 7l-10 10"}),i2("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as bp,jsxs as HS}from"react/jsx-runtime";var Ip=e=>HS(a,{...e,children:[bp("path",{d:"M12 5l0 14"}),bp("path",{d:"M16 15l-4 4"}),bp("path",{d:"M8 15l4 4"})]});import{jsx as s2,jsxs as US}from"react/jsx-runtime";var Cp=e=>US(a,{...e,children:[s2("path",{d:"M7 7l10 10"}),s2("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as Pp,jsxs as GS}from"react/jsx-runtime";var xp=e=>GS(a,{...e,children:[Pp("path",{d:"M5 12l14 0"}),Pp("path",{d:"M5 12l6 6"}),Pp("path",{d:"M5 12l6 -6"})]});import{jsx as Sp,jsxs as $S}from"react/jsx-runtime";var wp=e=>$S(a,{...e,children:[Sp("path",{d:"M5 12l14 0"}),Sp("path",{d:"M5 12l4 4"}),Sp("path",{d:"M5 12l4 -4"})]});import{jsx as Mp,jsxs as WS}from"react/jsx-runtime";var kp=e=>WS(a,{...e,children:[Mp("path",{d:"M5 12l14 0"}),Mp("path",{d:"M13 18l6 -6"}),Mp("path",{d:"M13 6l6 6"})]});import{jsx as Tp,jsxs as qS}from"react/jsx-runtime";var Bp=e=>qS(a,{...e,children:[Tp("path",{d:"M5 12l14 0"}),Tp("path",{d:"M15 16l4 -4"}),Tp("path",{d:"M15 8l4 4"})]});import{jsx as Np,jsxs as XS}from"react/jsx-runtime";var Rp=e=>XS(a,{...e,children:[Np("path",{d:"M12 5l0 14"}),Np("path",{d:"M18 11l-6 -6"}),Np("path",{d:"M6 11l6 -6"})]});import{jsx as p2,jsxs as KS}from"react/jsx-runtime";var Lp=e=>KS(a,{...e,children:[p2("path",{d:"M7 7l10 10"}),p2("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as Ep,jsxs as YS}from"react/jsx-runtime";var Dp=e=>YS(a,{...e,children:[Ep("path",{d:"M12 5l0 14"}),Ep("path",{d:"M16 9l-4 -4"}),Ep("path",{d:"M8 9l4 -4"})]});import{jsx as d2,jsxs as QS}from"react/jsx-runtime";var Fp=e=>QS(a,{...e,children:[d2("path",{d:"M17 7l-10 10"}),d2("path",{d:"M8 7l9 0l0 9"})]});import{jsx as m2}from"react/jsx-runtime";var Ap=e=>m2(a,{...e,children:m2("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 Wr,jsxs as ZS}from"react/jsx-runtime";var qr=e=>ZS(a,{...e,children:[Wr("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-10"}),Wr("path",{d:"M14 9v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1"}),Wr("path",{d:"M7 15v-6"}),Wr("path",{d:"M10 15v-6"}),Wr("path",{d:"M7 12h3"})]});import{jsx as cc,jsxs as JS}from"react/jsx-runtime";var Op=e=>JS(a,{...e,children:[cc("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"}),cc("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"}),cc("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"}),cc("path",{d:"M4 20h14"})]});import{jsx as Xr,jsxs as jS}from"react/jsx-runtime";var _p=e=>jS(a,{...e,children:[Xr("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"}),Xr("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"}),Xr("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"}),Xr("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"}),Xr("path",{d:"M7 18.5h10"})]});import{jsx as u2,jsxs as ew}from"react/jsx-runtime";var Vp=e=>ew(a,{...e,children:[u2("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"}),u2("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as f2,jsxs as tw}from"react/jsx-runtime";var zp=e=>tw(a,{...e,children:[f2("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),f2("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as h2}from"react/jsx-runtime";var Hp=e=>h2(a,{...e,children:h2("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as g2}from"react/jsx-runtime";var Up=e=>g2(a,{isFilled:!0,...e,children:g2("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 y2,jsxs as ow}from"react/jsx-runtime";var Gp=e=>ow(a,{...e,children:[y2("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),y2("path",{d:"M16 19h6"})]});import{jsx as $p,jsxs as nw}from"react/jsx-runtime";var Wp=e=>nw(a,{...e,children:[$p("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),$p("path",{d:"M20.5 21.5l-5 -5"}),$p("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as Kr,jsxs as rw}from"react/jsx-runtime";var qp=e=>rw(a,{...e,children:[Kr("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Kr("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Kr("path",{d:"M3 6l0 13"}),Kr("path",{d:"M12 6l0 13"}),Kr("path",{d:"M21 6l0 13"})]});import{jsx as ic,jsxs as aw}from"react/jsx-runtime";var Xp=e=>aw(a,{...e,children:[ic("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"}),ic("path",{d:"M9 13h-2"}),ic("path",{d:"M13 10h-6"}),ic("path",{d:"M11 7h-4"})]});import{jsx as Kp,jsxs as lw}from"react/jsx-runtime";var Yp=e=>lw(a,{...e,children:[Kp("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"}),Kp("path",{d:"M10 8h4"}),Kp("path",{d:"M12 8v8"})]});import{jsx as Qp,jsxs as cw}from"react/jsx-runtime";var Zp=e=>cw(a,{...e,children:[Qp("path",{d:"M9 12l2 2l4 -4"}),Qp("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Qp("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Yr,jsxs as iw}from"react/jsx-runtime";var Jp=e=>iw(a,{...e,children:[Yr("path",{d:"M15 12h.01"}),Yr("path",{d:"M12 12h.01"}),Yr("path",{d:"M9 12h.01"}),Yr("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Yr("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Vt,jsxs as sw}from"react/jsx-runtime";var jp=e=>sw(a,{...e,children:[Vt("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"}),Vt("path",{d:"M4 8h16"}),Vt("path",{d:"M20 12h-16"}),Vt("path",{d:"M4 16h16"}),Vt("path",{d:"M9 4v4"}),Vt("path",{d:"M14 8v4"}),Vt("path",{d:"M8 12v4"}),Vt("path",{d:"M16 12v4"}),Vt("path",{d:"M11 16v4"})]});import{jsx as sc,jsxs as pw}from"react/jsx-runtime";var ed=e=>pw(a,{...e,children:[sc("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"}),sc("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),sc("path",{d:"M12 12l0 .01"}),sc("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as po,jsxs as dw}from"react/jsx-runtime";var td=e=>dw(a,{...e,children:[po("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"}),po("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"}),po("path",{d:"M8 14l0 .01"}),po("path",{d:"M12 14l0 .01"}),po("path",{d:"M16 14l0 .01"}),po("path",{d:"M8 17l0 .01"}),po("path",{d:"M12 17l0 .01"}),po("path",{d:"M16 17l0 .01"})]});import{jsx as Vn,jsxs as mw}from"react/jsx-runtime";var Qr=e=>mw(a,{...e,children:[Vn("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"}),Vn("path",{d:"M16 3v4"}),Vn("path",{d:"M8 3v4"}),Vn("path",{d:"M4 11h16"}),Vn("path",{d:"M11 15h1"}),Vn("path",{d:"M12 15v3"})]});import{jsx as zn,jsxs as uw}from"react/jsx-runtime";var od=e=>uw(a,{...e,children:[zn("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),zn("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),zn("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"}),zn("path",{d:"M6 9l12 0"}),zn("path",{d:"M6 12l3 0"}),zn("path",{d:"M6 15l2 0"})]});import{jsx as v2}from"react/jsx-runtime";var zt=e=>v2(a,{...e,children:v2("path",{d:"M5 12l5 5l10 -10"})});import{jsx as b2,jsxs as fw}from"react/jsx-runtime";var Go=e=>fw(a,{...e,children:[b2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),b2("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as I2,jsxs as hw}from"react/jsx-runtime";var nd=e=>hw(a,{...e,children:[I2("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),I2("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as C2}from"react/jsx-runtime";var rd=e=>C2(a,{isFilled:!0,...e,children:C2("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 P2,jsxs as gw}from"react/jsx-runtime";var ad=e=>gw(a,{...e,children:[P2("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"}),P2("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as x2}from"react/jsx-runtime";var ld=e=>x2(a,{isFilled:!0,...e,children:x2("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 S2}from"react/jsx-runtime";var Zr=e=>S2(a,{...e,children:S2("path",{d:"M6 9l6 6l6 -6"})});import{jsx as w2,jsxs as yw}from"react/jsx-runtime";var cd=e=>yw(a,{...e,children:[w2("path",{d:"M7 7l5 5l5 -5"}),w2("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as M2}from"react/jsx-runtime";var id=e=>M2(a,{...e,children:M2("path",{d:"M8 8v8h8"})});import{jsx as k2,jsxs as vw}from"react/jsx-runtime";var sd=e=>vw(a,{...e,children:[k2("path",{d:"M11 5v8h8"}),k2("path",{d:"M7 9v8h8"})]});import{jsx as T2}from"react/jsx-runtime";var pd=e=>T2(a,{...e,children:T2("path",{d:"M16 8v8h-8"})});import{jsx as B2,jsxs as bw}from"react/jsx-runtime";var dd=e=>bw(a,{...e,children:[B2("path",{d:"M13 5v8h-8"}),B2("path",{d:"M17 9v8h-8"})]});import{jsx as N2}from"react/jsx-runtime";var Ht=e=>N2(a,{...e,children:N2("path",{d:"M15 6l-6 6l6 6"})});import{jsx as R2,jsxs as Iw}from"react/jsx-runtime";var md=e=>Iw(a,{...e,children:[R2("path",{d:"M11 7l-5 5l5 5"}),R2("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as L2}from"react/jsx-runtime";var mt=e=>L2(a,{...e,children:L2("path",{d:"M9 6l6 6l-6 6"})});import{jsx as E2,jsxs as Cw}from"react/jsx-runtime";var Jr=e=>Cw(a,{...e,children:[E2("path",{d:"M7 7l5 5l-5 5"}),E2("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as D2,jsxs as Pw}from"react/jsx-runtime";var ud=e=>Pw(a,{...e,children:[D2("path",{d:"M8 9l4 -4l4 4"}),D2("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as F2}from"react/jsx-runtime";var Ut=e=>F2(a,{...e,children:F2("path",{d:"M6 15l6 -6l6 6"})});import{jsx as A2,jsxs as xw}from"react/jsx-runtime";var fd=e=>xw(a,{...e,children:[A2("path",{d:"M7 11l5 -5l5 5"}),A2("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as O2}from"react/jsx-runtime";var hd=e=>O2(a,{...e,children:O2("path",{d:"M8 16v-8h8"})});import{jsx as _2,jsxs as Sw}from"react/jsx-runtime";var gd=e=>Sw(a,{...e,children:[_2("path",{d:"M7 15v-8h8"}),_2("path",{d:"M11 19v-8h8"})]});import{jsx as V2}from"react/jsx-runtime";var yd=e=>V2(a,{...e,children:V2("path",{d:"M8 8h8v8"})});import{jsx as z2,jsxs as ww}from"react/jsx-runtime";var vd=e=>ww(a,{...e,children:[z2("path",{d:"M9 7h8v8"}),z2("path",{d:"M5 11h8v8"})]});import{jsx as Hn,jsxs as Mw}from"react/jsx-runtime";var bd=e=>Mw(a,{...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 H2,jsxs as kw}from"react/jsx-runtime";var Id=e=>kw(a,{...e,children:[H2("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),H2("path",{d:"M12 7v5l3 3"})]});import{jsx as pc,jsxs as Tw}from"react/jsx-runtime";var Cd=e=>Tw(a,{...e,children:[pc("path",{d:"M12 7v5l2 2"}),pc("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),pc("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),pc("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as Pd,jsxs as Bw}from"react/jsx-runtime";var xd=e=>Bw(a,{...e,children:[Pd("path",{d:"M12 7v5l2 2"}),Pd("path",{d:"M17 22l5 -3l-5 -3z"}),Pd("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as U2,jsxs as Nw}from"react/jsx-runtime";var Sd=e=>Nw(a,{...e,children:[U2("path",{d:"M12 8l0 4l2 2"}),U2("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as jr,jsxs as Rw}from"react/jsx-runtime";var wd=e=>Rw(a,{...e,children:[jr("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),jr("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"}),jr("path",{d:"M11 14h6"}),jr("path",{d:"M14 11v6"}),jr("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 Md,jsxs as Lw}from"react/jsx-runtime";var ea=e=>Lw(a,{...e,children:[Md("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-10"}),Md("path",{d:"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Md("path",{d:"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"})]});import{jsx as kd,jsxs as Ew}from"react/jsx-runtime";var Td=e=>Ew(a,{...e,children:[kd("path",{d:"M7 8l-4 4l4 4"}),kd("path",{d:"M17 8l4 4l-4 4"}),kd("path",{d:"M14 4l-4 16"})]});import{jsx as Un,jsxs as Dw}from"react/jsx-runtime";var Bd=e=>Dw(a,{...e,children:[Un("path",{d:"M4 8h16"}),Un("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"}),Un("path",{d:"M8 4v4"}),Un("path",{d:"M9 12l-2 2l2 2"}),Un("path",{d:"M15 12l2 2l-2 2"}),Un("path",{d:"M13 11l-2 6"})]});import{jsx as Nd,jsxs as Fw}from"react/jsx-runtime";var Rd=e=>Fw(a,{...e,children:[Nd("path",{d:"M10 14l-2 -2l2 -2"}),Nd("path",{d:"M14 10l2 2l-2 2"}),Nd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Ld,jsxs as Aw}from"react/jsx-runtime";var Ed=e=>Aw(a,{...e,children:[Ld("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Ld("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Ld("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as G2,jsxs as Ow}from"react/jsx-runtime";var Dd=e=>Ow(a,{...e,children:[G2("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"}),G2("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 $2,jsxs as _w}from"react/jsx-runtime";var Fd=e=>_w(a,{...e,children:[$2("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"}),$2("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 Ad,jsxs as Vw}from"react/jsx-runtime";var Od=e=>Vw(a,{...e,children:[Ad("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"}),Ad("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"}),Ad("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as dc,jsxs as zw}from"react/jsx-runtime";var _d=e=>zw(a,{...e,children:[dc("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"}),dc("path",{d:"M3 10l18 0"}),dc("path",{d:"M7 15l.01 0"}),dc("path",{d:"M11 15l2 0"})]});import{jsx as mc,jsxs as Hw}from"react/jsx-runtime";var Vd=e=>Hw(a,{...e,children:[mc("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"}),mc("path",{d:"M12 22v-10"}),mc("path",{d:"M12 12l8.73 -5.04"}),mc("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as nt,jsxs as Uw}from"react/jsx-runtime";var zd=e=>Uw(a,{...e,children:[nt("path",{d:"M6 17.6l-2 -1.1v-2.5"}),nt("path",{d:"M4 10v-2.5l2 -1.1"}),nt("path",{d:"M10 4.1l2 -1.1l2 1.1"}),nt("path",{d:"M18 6.4l2 1.1v2.5"}),nt("path",{d:"M20 14v2.5l-2 1.12"}),nt("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),nt("path",{d:"M12 12l2 -1.1"}),nt("path",{d:"M18 8.6l2 -1.1"}),nt("path",{d:"M12 12l0 2.5"}),nt("path",{d:"M12 18.5l0 2.5"}),nt("path",{d:"M12 12l-2 -1.12"}),nt("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as W2,jsxs as Gw}from"react/jsx-runtime";var ta=e=>Gw(a,{...e,children:[W2("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"}),W2("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 $o,jsxs as $w}from"react/jsx-runtime";var Hd=e=>$w(a,{...e,children:[$o("path",{d:"M5 2h5v4h-5z"}),$o("path",{d:"M15 10h5v4h-5z"}),$o("path",{d:"M5 18h5v4h-5z"}),$o("path",{d:"M5 10h5v4h-5z"}),$o("path",{d:"M10 12h5"}),$o("path",{d:"M7.5 6v4"}),$o("path",{d:"M7.5 14v4"})]});import{jsx as rt,jsxs as Ww}from"react/jsx-runtime";var Ud=e=>Ww(a,{...e,children:[rt("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M5 17l2 -3"}),rt("path",{d:"M9 10l2 -3"}),rt("path",{d:"M13 7l2 3"}),rt("path",{d:"M17 14l2 3"}),rt("path",{d:"M15 14l-2 3"}),rt("path",{d:"M9 14l2 3"})]});import{jsx as oa,jsxs as qw}from"react/jsx-runtime";var Gd=e=>qw(a,{...e,children:[oa("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"}),oa("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"}),oa("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"}),oa("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),oa("path",{d:"M12 9l0 3"})]});import{jsx as $d,jsxs as Xw}from"react/jsx-runtime";var Wd=e=>Xw(a,{...e,children:[$d("path",{d:"M4 4l16 0"}),$d("path",{d:"M4 20l16 0"}),$d("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 q2,jsxs as Kw}from"react/jsx-runtime";var qd=e=>Kw(a,{...e,children:[q2("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"}),q2("path",{d:"M12 3v3m0 12v3"})]});import{jsx as Xd,jsxs as Yw}from"react/jsx-runtime";var Kd=e=>Yw(a,{...e,children:[Xd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Xd("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"}),Xd("path",{d:"M12 7v10"})]});import{jsx as X2}from"react/jsx-runtime";var Yd=e=>X2(a,{...e,children:X2("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as K2}from"react/jsx-runtime";var Qd=e=>K2(a,{isFilled:!0,...e,children:K2("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 Gt,jsxs as Qw}from"react/jsx-runtime";var Zd=e=>Qw(a,{...e,children:[Gt("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gt("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gt("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gt("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gt("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gt("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gt("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gt("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gt("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Jd,jsxs as Zw}from"react/jsx-runtime";var jd=e=>Zw(a,{...e,children:[Jd("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jd("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jd("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as em,jsxs as Jw}from"react/jsx-runtime";var Gn=e=>Jw(a,{...e,children:[em("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),em("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),em("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as tm,jsxs as jw}from"react/jsx-runtime";var om=e=>jw(a,{...e,children:[tm("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),tm("path",{d:"M7 11l5 5l5 -5"}),tm("path",{d:"M12 4l0 12"})]});import{jsx as Y2,jsxs as e4}from"react/jsx-runtime";var nm=e=>e4(a,{...e,children:[Y2("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),Y2("path",{d:"M13.5 6.5l4 4"})]});import{jsx as rm,jsxs as t4}from"react/jsx-runtime";var am=e=>t4(a,{...e,children:[rm("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),rm("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),rm("path",{d:"M16 5l3 3"})]});import{jsx as mo,jsxs as o4}from"react/jsx-runtime";var lm=e=>o4(a,{...e,children:[mo("path",{d:"M16 4l4 0l0 4"}),mo("path",{d:"M14 10l6 -6"}),mo("path",{d:"M8 20l-4 0l0 -4"}),mo("path",{d:"M4 20l6 -6"}),mo("path",{d:"M16 20l4 0l0 -4"}),mo("path",{d:"M14 14l6 6"}),mo("path",{d:"M8 4l-4 0l0 4"}),mo("path",{d:"M4 4l6 6"})]});import{jsx as cm,jsxs as n4}from"react/jsx-runtime";var im=e=>n4(a,{...e,children:[cm("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),cm("path",{d:"M11 13l9 -9"}),cm("path",{d:"M15 4h5v5"})]});import{jsx as sm,jsxs as r4}from"react/jsx-runtime";var pm=e=>r4(a,{...e,children:[sm("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"}),sm("path",{d:"M15 9l-6 6"}),sm("path",{d:"M10 9l5 0l0 5"})]});import{jsx as Q2,jsxs as a4}from"react/jsx-runtime";var dm=e=>a4(a,{...e,children:[Q2("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),Q2("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 mm,jsxs as l4}from"react/jsx-runtime";var um=e=>l4(a,{...e,children:[mm("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),mm("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"}),mm("path",{d:"M3 3l18 18"})]});import{jsx as na,jsxs as c4}from"react/jsx-runtime";var fm=e=>c4(a,{...e,children:[na("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),na("path",{d:"M3 15l2.5 -3.8"}),na("path",{d:"M21 14.976l-2.492 -3.776"}),na("path",{d:"M9 17l.5 -4"}),na("path",{d:"M15 17l-.5 -4"})]});import{jsx as uc,jsxs as i4}from"react/jsx-runtime";var hm=e=>i4(a,{...e,children:[uc("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),uc("path",{d:"M8 9l2 1"}),uc("path",{d:"M16 9l-2 1"}),uc("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as $n,jsxs as s4}from"react/jsx-runtime";var gm=e=>s4(a,{...e,children:[$n("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),$n("path",{d:"M7 8.5l3 3"}),$n("path",{d:"M7 11.5l3 -3"}),$n("path",{d:"M14 8.5l3 3"}),$n("path",{d:"M14 11.5l3 -3"}),$n("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as fc,jsxs as p4}from"react/jsx-runtime";var ym=e=>p4(a,{...e,children:[fc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),fc("path",{d:"M9 10l.01 0"}),fc("path",{d:"M15 10l.01 0"}),fc("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Z2,jsxs as d4}from"react/jsx-runtime";var Wo=e=>d4(a,{...e,children:[Z2("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Z2("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 vm,jsxs as m4}from"react/jsx-runtime";var bm=e=>m4(a,{...e,children:[vm("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),vm("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"}),vm("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as ra,jsxs as u4}from"react/jsx-runtime";var aa=e=>u4(a,{...e,children:[ra("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ra("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),ra("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),ra("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"}),ra("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as hc,jsxs as f4}from"react/jsx-runtime";var Im=e=>f4(a,{...e,children:[hc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),hc("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"}),hc("path",{d:"M12 17v-6"}),hc("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as Wn,jsxs as h4}from"react/jsx-runtime";var la=e=>h4(a,{...e,children:[Wn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Wn("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Wn("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),Wn("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"}),Wn("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"}),Wn("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as gc,jsxs as g4}from"react/jsx-runtime";var Cm=e=>g4(a,{...e,children:[gc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),gc("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"}),gc("path",{d:"M9 17h6"}),gc("path",{d:"M9 13h6"})]});import{jsx as yc,jsxs as y4}from"react/jsx-runtime";var at=e=>y4(a,{...e,children:[yc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),yc("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"}),yc("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),yc("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as qn,jsxs as v4}from"react/jsx-runtime";var qo=e=>v4(a,{...e,children:[qn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),qn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),qn("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),qn("path",{d:"M17 18h2"}),qn("path",{d:"M20 15h-3v6"}),qn("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as Pm,jsxs as b4}from"react/jsx-runtime";var xm=e=>b4(a,{...e,children:[Pm("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),Pm("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"}),Pm("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 ca,jsxs as I4}from"react/jsx-runtime";var ia=e=>I4(a,{...e,children:[ca("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ca("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"}),ca("path",{d:"M8 11h8v7h-8z"}),ca("path",{d:"M8 15h8"}),ca("path",{d:"M11 11v7"})]});import{jsx as sa,jsxs as C4}from"react/jsx-runtime";var $t=e=>C4(a,{...e,children:[sa("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),sa("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"}),sa("path",{d:"M9 9l1 0"}),sa("path",{d:"M9 13l6 0"}),sa("path",{d:"M9 17l6 0"})]});import{jsx as vc,jsxs as P4}from"react/jsx-runtime";var Sm=e=>P4(a,{...e,children:[vc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),vc("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"}),vc("path",{d:"M12 11v6"}),vc("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as Xn,jsxs as x4}from"react/jsx-runtime";var pa=e=>x4(a,{...e,children:[Xn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Xn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Xn("path",{d:"M4 15l4 6"}),Xn("path",{d:"M4 21l4 -6"}),Xn("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"}),Xn("path",{d:"M11 15v6h3"})]});import{jsx as uo,jsxs as S4}from"react/jsx-runtime";var da=e=>S4(a,{...e,children:[uo("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),uo("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),uo("path",{d:"M4 16l3 5"}),uo("path",{d:"M4 21l3 -5"}),uo("path",{d:"M8.5 16v5h2"}),uo("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"}),uo("path",{d:"M16.5 16l3 5"}),uo("path",{d:"M16.5 21l3 -5"})]});import{jsx as fo,jsxs as w4}from"react/jsx-runtime";var It=e=>w4(a,{...e,children:[fo("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"}),fo("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"}),fo("path",{d:"M11 5l-1 0"}),fo("path",{d:"M13 7l-1 0"}),fo("path",{d:"M11 9l-1 0"}),fo("path",{d:"M13 11l-1 0"}),fo("path",{d:"M11 13l-1 0"}),fo("path",{d:"M13 15l-1 0"})]});import{jsx as J2}from"react/jsx-runtime";var wm=e=>J2(a,{...e,children:J2("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 Mm,jsxs as M4}from"react/jsx-runtime";var ma=e=>M4(a,{...e,children:[Mm("path",{d:"M4 6h16"}),Mm("path",{d:"M6 12h12"}),Mm("path",{d:"M9 18h6"})]});import{jsx as j2,jsxs as k4}from"react/jsx-runtime";var km=e=>k4(a,{...e,children:[j2("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"}),j2("path",{d:"M5 21v-7"})]});import{jsx as ey}from"react/jsx-runtime";var Tm=e=>ey(a,{...e,children:ey("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as ty}from"react/jsx-runtime";var Bm=e=>ty(a,{isFilled:!0,...e,children:ty("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 ua,jsxs as T4}from"react/jsx-runtime";var Nm=e=>T4(a,{...e,children:[ua("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ua("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),ua("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),ua("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),ua("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as oy}from"react/jsx-runtime";var Rm=e=>oy(a,{...e,children:oy("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 bc,jsxs as B4}from"react/jsx-runtime";var Lm=e=>B4(a,{...e,children:[bc("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"}),bc("path",{d:"M1 12.5l7 0"}),bc("path",{d:"M1 12.5l2 2"}),bc("path",{d:"M1 12.5l2 -2"})]});import{jsx as Ic,jsxs as N4}from"react/jsx-runtime";var Em=e=>N4(a,{...e,children:[Ic("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"}),Ic("path",{d:"M2 13l7 0"}),Ic("path",{d:"M9 13l-2 2"}),Ic("path",{d:"M9 13l-2 -2"})]});import{jsx as ny,jsxs as R4}from"react/jsx-runtime";var Dm=e=>R4(a,{...e,children:[ny("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),ny("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as Kn,jsxs as L4}from"react/jsx-runtime";var Fm=e=>L4(a,{...e,children:[Kn("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Cc,jsxs as E4}from"react/jsx-runtime";var Am=e=>E4(a,{...e,children:[Cc("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Cc("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Cc("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Cc("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 Yn,jsxs as D4}from"react/jsx-runtime";var Om=e=>D4(a,{...e,children:[Yn("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Yn("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Yn("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Yn("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),Yn("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"}),Yn("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 Pc,jsxs as F4}from"react/jsx-runtime";var _m=e=>F4(a,{...e,children:[Pc("path",{d:"M5 9l14 0"}),Pc("path",{d:"M5 15l14 0"}),Pc("path",{d:"M11 4l-4 16"}),Pc("path",{d:"M17 4l-4 16"})]});import{jsx as xc,jsxs as A4}from"react/jsx-runtime";var Vm=e=>A4(a,{...e,children:[xc("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),xc("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),xc("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"}),xc("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 ry}from"react/jsx-runtime";var zm=e=>ry(a,{...e,children:ry("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 ay}from"react/jsx-runtime";var Hm=e=>ay(a,{isFilled:!0,...e,children:ay("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 Um,jsxs as O4}from"react/jsx-runtime";var Gm=e=>O4(a,{...e,children:[Um("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),Um("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),Um("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as ly,jsxs as _4}from"react/jsx-runtime";var fa=e=>_4(a,{...e,children:[ly("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"}),ly("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Sc,jsxs as V4}from"react/jsx-runtime";var _e=e=>V4(a,{...e,children:[Sc("path",{d:"M15 8h.01"}),Sc("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"}),Sc("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Sc("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as ha,jsxs as z4}from"react/jsx-runtime";var $m=e=>z4(a,{...e,children:[ha("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"}),ha("path",{d:"M4 16l16 0"}),ha("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),ha("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),ha("path",{d:"M14 7l.01 0"})]});import{jsx as ga,jsxs as H4}from"react/jsx-runtime";var Wm=e=>H4(a,{...e,children:[ga("path",{d:"M15 8h.01"}),ga("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"}),ga("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),ga("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),ga("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as ya,jsxs as U4}from"react/jsx-runtime";var qm=e=>U4(a,{...e,children:[ya("path",{d:"M15 8h.01"}),ya("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"}),ya("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),ya("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),ya("path",{d:"M3 3l18 18"})]});import{jsx as cy,jsxs as G4}from"react/jsx-runtime";var Xm=e=>G4(a,{...e,children:[cy("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),cy("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 iy,jsxs as $4}from"react/jsx-runtime";var Km=e=>$4(a,{...e,children:[iy("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"}),iy("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as Ym,jsxs as W4}from"react/jsx-runtime";var Qm=e=>W4(a,{...e,children:[Ym("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Ym("path",{d:"M12 9h.01"}),Ym("path",{d:"M11 12h1v4h1"})]});import{jsx as Zm,jsxs as q4}from"react/jsx-runtime";var Jm=e=>q4(a,{...e,children:[Zm("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"}),Zm("path",{d:"M12 9h.01"}),Zm("path",{d:"M11 12h1v4h1"})]});import{jsx as jm,jsxs as X4}from"react/jsx-runtime";var eu=e=>X4(a,{...e,children:[jm("path",{d:"M11 5l6 0"}),jm("path",{d:"M7 19l6 0"}),jm("path",{d:"M14 5l-4 14"})]});import{jsx as tu,jsxs as K4}from"react/jsx-runtime";var ou=e=>K4(a,{...e,children:[tu("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),tu("path",{d:"M4 12l8 4l8 -4"}),tu("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as sy,jsxs as Y4}from"react/jsx-runtime";var nu=e=>Y4(a,{...e,children:[sy("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),sy("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as py,jsxs as Q4}from"react/jsx-runtime";var ru=e=>Q4(a,{...e,children:[py("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"}),py("path",{d:"M9 4l0 16"})]});import{jsx as au,jsxs as Z4}from"react/jsx-runtime";var lu=e=>Z4(a,{...e,children:[au("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"}),au("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"}),au("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 wc,jsxs as J4}from"react/jsx-runtime";var cu=e=>J4(a,{...e,children:[wc("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"}),wc("path",{d:"M4 9h8"}),wc("path",{d:"M12 15h8"}),wc("path",{d:"M12 4v16"})]});import{jsx as va,jsxs as j4}from"react/jsx-runtime";var iu=e=>j4(a,{...e,children:[va("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"}),va("path",{d:"M4 12h8"}),va("path",{d:"M12 15h8"}),va("path",{d:"M12 9h8"}),va("path",{d:"M12 4v16"})]});import{jsx as su,jsxs as e5}from"react/jsx-runtime";var pu=e=>e5(a,{...e,children:[su("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"}),su("path",{d:"M10 4l4 16"}),su("path",{d:"M12 12l-8 2"})]});import{jsx as Mc,jsxs as t5}from"react/jsx-runtime";var du=e=>t5(a,{...e,children:[Mc("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"}),Mc("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"}),Mc("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"}),Mc("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 Qn,jsxs as o5}from"react/jsx-runtime";var mu=e=>o5(a,{...e,children:[Qn("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Qn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Qn("path",{d:"M15 15l3.35 3.35"}),Qn("path",{d:"M9 15l-3.35 3.35"}),Qn("path",{d:"M5.65 5.65l3.35 3.35"}),Qn("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as uu,jsxs as n5}from"react/jsx-runtime";var fu=e=>n5(a,{...e,children:[uu("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),uu("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"}),uu("path",{d:"M9.7 17l4.6 0"})]});import{jsx as dy}from"react/jsx-runtime";var hu=e=>dy(a,{...e,children:dy("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as my,jsxs as r5}from"react/jsx-runtime";var gu=e=>r5(a,{...e,children:[my("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),my("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as uy,jsxs as a5}from"react/jsx-runtime";var yu=e=>a5(a,{...e,children:[uy("path",{d:"M4 19l16 0"}),uy("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as Zn,jsxs as l5}from"react/jsx-runtime";var vu=e=>l5(a,{...e,children:[Zn("path",{d:"M3 3v18h18"}),Zn("path",{d:"M20 18v3"}),Zn("path",{d:"M16 16v5"}),Zn("path",{d:"M12 13v8"}),Zn("path",{d:"M8 16v5"}),Zn("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as Jn,jsxs as c5}from"react/jsx-runtime";var bu=e=>c5(a,{...e,children:[Jn("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"}),Jn("path",{d:"M3 13c0 0, 8 0, 12 -4"}),Jn("path",{d:"M12 8h4v4"}),Jn("path",{d:"M15 2v1.44"}),Jn("path",{d:"M18.75 4.75l1.2 -1.2"}),Jn("path",{d:"M20 9h1.44"})]});import{jsx as Iu,jsxs as i5}from"react/jsx-runtime";var Cu=e=>i5(a,{...e,children:[Iu("path",{d:"M4 19l16 0"}),Iu("path",{d:"M4 16l6 -6l4 4l5 -5"}),Iu("path",{d:"M15 8h5v5"})]});import{jsx as fy,jsxs as s5}from"react/jsx-runtime";var Pu=e=>s5(a,{...e,children:[fy("path",{d:"M5 10h14"}),fy("path",{d:"M5 14h14"})]});import{jsx as jn,jsxs as p5}from"react/jsx-runtime";var xu=e=>p5(a,{...e,children:[jn("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),jn("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),jn("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),jn("path",{d:"M11 6l9 0"}),jn("path",{d:"M11 12l9 0"}),jn("path",{d:"M11 18l9 0"})]});import{jsx as kc,jsxs as d5}from"react/jsx-runtime";var Su=e=>d5(a,{...e,children:[kc("path",{d:"M12 10v8l8 -4z"}),kc("path",{d:"M4 6h16"}),kc("path",{d:"M4 12h4.5"}),kc("path",{d:"M4 18h4.5"})]});import{jsx as wu,jsxs as m5}from"react/jsx-runtime";var Mu=e=>m5(a,{...e,children:[wu("path",{d:"M9 15l6 -6"}),wu("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),wu("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 hy,jsxs as u5}from"react/jsx-runtime";var ku=e=>u5(a,{...e,children:[hy("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),hy("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Tc,jsxs as f5}from"react/jsx-runtime";var Tu=e=>f5(a,{...e,children:[Tc("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Tc("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Tc("path",{d:"M3 3l18 18"}),Tc("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 er,jsxs as h5}from"react/jsx-runtime";var Bu=e=>h5(a,{...e,children:[er("path",{d:"M9 6l11 0"}),er("path",{d:"M9 12l11 0"}),er("path",{d:"M9 18l11 0"}),er("path",{d:"M5 6l0 .01"}),er("path",{d:"M5 12l0 .01"}),er("path",{d:"M5 18l0 .01"})]});import{jsx as ba,jsxs as g5}from"react/jsx-runtime";var Nu=e=>g5(a,{...e,children:[ba("path",{d:"M11 6h9"}),ba("path",{d:"M11 12h9"}),ba("path",{d:"M12 18h8"}),ba("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),ba("path",{d:"M6 10v-6l-2 2"})]});import{jsx as Ru,jsxs as y5}from"react/jsx-runtime";var Lu=e=>y5(a,{...e,children:[Ru("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"}),Ru("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Ru("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as gy}from"react/jsx-runtime";var Eu=e=>gy(a,{isFilled:!0,...e,children:gy("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 Du,jsxs as v5}from"react/jsx-runtime";var Fu=e=>v5(a,{...e,children:[Du("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"}),Du("path",{d:"M3 12h13l-3 -3"}),Du("path",{d:"M13 15l3 -3"})]});import{jsx as Au,jsxs as b5}from"react/jsx-runtime";var Ou=e=>b5(a,{...e,children:[Au("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"}),Au("path",{d:"M9 12h12l-3 -3"}),Au("path",{d:"M18 15l3 -3"})]});import{jsx as _u,jsxs as I5}from"react/jsx-runtime";var Vu=e=>I5(a,{...e,children:[_u("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"}),_u("path",{d:"M15 12h-12l3 -3"}),_u("path",{d:"M6 15l-3 -3"})]});import{jsx as Bc,jsxs as C5}from"react/jsx-runtime";var zu=e=>C5(a,{...e,children:[Bc("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Bc("path",{d:"M15 6l3 3"}),Bc("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"}),Bc("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 yy,jsxs as P5}from"react/jsx-runtime";var Hu=e=>P5(a,{...e,children:[yy("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"}),yy("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as Nc,jsxs as x5}from"react/jsx-runtime";var Uu=e=>x5(a,{...e,children:[Nc("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),Nc("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),Nc("path",{d:"M3 19l6 -6"}),Nc("path",{d:"M15 13l6 6"})]});import{jsx as vy,jsxs as S5}from"react/jsx-runtime";var Gu=e=>S5(a,{...e,children:[vy("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),vy("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 Rc,jsxs as w5}from"react/jsx-runtime";var Ia=e=>w5(a,{...e,children:[Rc("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Rc("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Rc("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Rc("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Lc,jsxs as M5}from"react/jsx-runtime";var $u=e=>M5(a,{...e,children:[Lc("path",{d:"M16 4l4 0l0 4"}),Lc("path",{d:"M14 10l6 -6"}),Lc("path",{d:"M8 20l-4 0l0 -4"}),Lc("path",{d:"M4 20l6 -6"})]});import{jsx as by}from"react/jsx-runtime";var Wu=e=>by(a,{...e,children:by("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 qu,jsxs as k5}from"react/jsx-runtime";var Xu=e=>k5(a,{...e,children:[qu("path",{d:"M8 9h8"}),qu("path",{d:"M8 13h6"}),qu("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 Ec,jsxs as T5}from"react/jsx-runtime";var Ku=e=>T5(a,{...e,children:[Ec("path",{d:"M12 11v.01"}),Ec("path",{d:"M8 11v.01"}),Ec("path",{d:"M16 11v.01"}),Ec("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 Ca,jsxs as B5}from"react/jsx-runtime";var Yu=e=>B5(a,{...e,children:[Ca("path",{d:"M8 9h8"}),Ca("path",{d:"M8 13h6"}),Ca("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"}),Ca("path",{d:"M22 22l-5 -5"}),Ca("path",{d:"M17 22l5 -5"})]});import{jsx as Dc,jsxs as N5}from"react/jsx-runtime";var Pa=e=>N5(a,{...e,children:[Dc("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"}),Dc("path",{d:"M5 10a7 7 0 0 0 14 0"}),Dc("path",{d:"M8 21l8 0"}),Dc("path",{d:"M12 17l0 4"})]});import{jsx as Fc,jsxs as R5}from"react/jsx-runtime";var xa=e=>R5(a,{...e,children:[Fc("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),Fc("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),Fc("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),Fc("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Ac,jsxs as L5}from"react/jsx-runtime";var Qu=e=>L5(a,{...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 Iy,jsxs as E5}from"react/jsx-runtime";var Zu=e=>E5(a,{...e,children:[Iy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Iy("path",{d:"M9 12l6 0"})]});import{jsx as Ju,jsxs as D5}from"react/jsx-runtime";var ju=e=>D5(a,{...e,children:[Ju("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"}),Ju("path",{d:"M11 4h2"}),Ju("path",{d:"M12 17v.01"})]});import{jsx as Oc,jsxs as F5}from"react/jsx-runtime";var ef=e=>F5(a,{...e,children:[Oc("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"}),Oc("path",{d:"M7 20h10"}),Oc("path",{d:"M9 16v4"}),Oc("path",{d:"M15 16v4"})]});import{jsx as Sa,jsxs as A5}from"react/jsx-runtime";var tf=e=>A5(a,{...e,children:[Sa("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"}),Sa("path",{d:"M3 13h18"}),Sa("path",{d:"M8 21h8"}),Sa("path",{d:"M10 17l-.5 4"}),Sa("path",{d:"M14 17l.5 4"})]});import{jsx as Cy}from"react/jsx-runtime";var of=e=>Cy(a,{...e,children:Cy("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 Py,jsxs as O5}from"react/jsx-runtime";var nf=e=>O5(a,{...e,children:[Py("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Py("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 ho,jsxs as _5}from"react/jsx-runtime";var ut=e=>_5(a,{...e,children:[ho("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"}),ho("path",{d:"M8 4l0 16"}),ho("path",{d:"M16 4l0 16"}),ho("path",{d:"M4 8l4 0"}),ho("path",{d:"M4 16l4 0"}),ho("path",{d:"M4 12l16 0"}),ho("path",{d:"M16 8l4 0"}),ho("path",{d:"M16 16l4 0"})]});import{jsx as xy}from"react/jsx-runtime";var rf=e=>xy(a,{...e,children:xy("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 Sy,jsxs as V5}from"react/jsx-runtime";var af=e=>V5(a,{...e,children:[Sy("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),Sy("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as wa,jsxs as z5}from"react/jsx-runtime";var lf=e=>z5(a,{...e,children:[wa("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),wa("path",{d:"M12 12l8 -4.5"}),wa("path",{d:"M12 12l0 9"}),wa("path",{d:"M12 12l-8 -4.5"}),wa("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as _c,jsxs as H5}from"react/jsx-runtime";var cf=e=>H5(a,{...e,children:[_c("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"}),_c("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_c("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_c("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ma,jsxs as U5}from"react/jsx-runtime";var sf=e=>U5(a,{...e,children:[Ma("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"}),Ma("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),Ma("path",{d:"M15 16h.01"}),Ma("path",{d:"M12.01 16h.01"}),Ma("path",{d:"M9.02 16h.01"})]});import{jsx as wy,jsxs as G5}from"react/jsx-runtime";var ft=e=>G5(a,{...e,children:[wy("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"}),wy("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 pf,jsxs as $5}from"react/jsx-runtime";var df=e=>$5(a,{...e,children:[pf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),pf("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"}),pf("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 mf,jsxs as W5}from"react/jsx-runtime";var uf=e=>W5(a,{...e,children:[mf("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"}),mf("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),mf("path",{d:"M16 9h2"})]});import{jsx as ff,jsxs as q5}from"react/jsx-runtime";var hf=e=>q5(a,{...e,children:[ff("path",{d:"M14 6l7 7l-4 4"}),ff("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"}),ff("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as Vc,jsxs as X5}from"react/jsx-runtime";var gf=e=>X5(a,{...e,children:[Vc("path",{d:"M9 15l6 -6"}),Vc("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),Vc("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),Vc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as My}from"react/jsx-runtime";var yf=e=>My(a,{...e,children:My("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 vf,jsxs as K5}from"react/jsx-runtime";var bf=e=>K5(a,{...e,children:[vf("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"}),vf("path",{d:"M15 7a2 2 0 0 1 2 2"}),vf("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as ky,jsxs as Y5}from"react/jsx-runtime";var ka=e=>Y5(a,{...e,children:[ky("path",{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"}),ky("path",{d:"M14 15a1 1 0 0 1 1 -1h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1l0 -3"})]});import{jsx as If,jsxs as Q5}from"react/jsx-runtime";var Ta=e=>Q5(a,{...e,children:[If("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),If("path",{d:"M9 15l-4.5 4.5"}),If("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as Ty}from"react/jsx-runtime";var ht=e=>Ty(a,{...e,children:Ty("path",{d:"M7 4v16l13 -8z"})});import{jsx as By,jsxs as Z5}from"react/jsx-runtime";var Cf=e=>Z5(a,{...e,children:[By("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),By("path",{d:"M9 8v8l8 -4z"})]});import{jsx as Ny,jsxs as J5}from"react/jsx-runtime";var Ba=e=>J5(a,{...e,children:[Ny("path",{d:"M12 5l0 14"}),Ny("path",{d:"M5 12l14 0"})]});import{jsx as Pf,jsxs as j5}from"react/jsx-runtime";var go=e=>j5(a,{...e,children:[Pf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Pf("path",{d:"M9 12h6"}),Pf("path",{d:"M12 9v6"})]});import{jsx as xf,jsxs as eM}from"react/jsx-runtime";var Sf=e=>eM(a,{...e,children:[xf("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"}),xf("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),xf("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 Ry}from"react/jsx-runtime";var wf=e=>Ry(a,{...e,children:Ry("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as Mf,jsxs as tM}from"react/jsx-runtime";var Na=e=>tM(a,{...e,children:[Mf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Mf("path",{d:"M12 16v.01"}),Mf("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as Ly,jsxs as oM}from"react/jsx-runtime";var kf=e=>oM(a,{...e,children:[Ly("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"}),Ly("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 Ey,jsxs as nM}from"react/jsx-runtime";var Tf=e=>nM(a,{...e,children:[Ey("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ey("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Dy}from"react/jsx-runtime";var Bf=e=>Dy(a,{isFilled:!0,...e,children:Dy("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 Fy}from"react/jsx-runtime";var Nf=e=>Fy(a,{...e,children:Fy("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 Ay,jsxs as rM}from"react/jsx-runtime";var Rf=e=>rM(a,{...e,children:[Ay("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"}),Ay("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as Oy,jsxs as aM}from"react/jsx-runtime";var Lf=e=>aM(a,{...e,children:[Oy("path",{d:"M15 14l4 -4l-4 -4"}),Oy("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as _y}from"react/jsx-runtime";var Ra=e=>_y(a,{...e,children:_y("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as Vy,jsxs as lM}from"react/jsx-runtime";var Ef=e=>lM(a,{...e,children:[Vy("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),Vy("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as zy,jsxs as cM}from"react/jsx-runtime";var Df=e=>cM(a,{...e,children:[zy("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),zy("path",{d:"M20 4v5h-5"})]});import{jsx as Hy,jsxs as iM}from"react/jsx-runtime";var Ff=e=>iM(a,{...e,children:[Hy("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),Hy("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as zc,jsxs as sM}from"react/jsx-runtime";var Af=e=>sM(a,{...e,children:[zc("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"}),zc("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"}),zc("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),zc("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as Uy}from"react/jsx-runtime";var La=e=>Uy(a,{...e,children:Uy("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Of,jsxs as pM}from"react/jsx-runtime";var _f=e=>pM(a,{...e,children:[Of("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Of("path",{d:"M3 4.001v5h5"}),Of("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Vf,jsxs as dM}from"react/jsx-runtime";var zf=e=>dM(a,{...e,children:[Vf("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"}),Vf("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),Vf("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Gy,jsxs as mM}from"react/jsx-runtime";var Hf=e=>mM(a,{...e,children:[Gy("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"}),Gy("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 $y,jsxs as uM}from"react/jsx-runtime";var Uf=e=>uM(a,{...e,children:[$y("path",{d:"M12 3v9h9"}),$y("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Gf,jsxs as fM}from"react/jsx-runtime";var $f=e=>fM(a,{...e,children:[Gf("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),Gf("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),Gf("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 Wf,jsxs as hM}from"react/jsx-runtime";var qf=e=>hM(a,{...e,children:[Wf("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"}),Wf("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Wf("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as yo,jsxs as gM}from"react/jsx-runtime";var Xf=e=>gM(a,{...e,children:[yo("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),yo("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),yo("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),yo("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),yo("path",{d:"M5 11h1v2h-1z"}),yo("path",{d:"M10 11l0 2"}),yo("path",{d:"M14 11h1v2h-1z"}),yo("path",{d:"M19 11l0 2"})]});import{jsx as Hc,jsxs as yM}from"react/jsx-runtime";var Ea=e=>yM(a,{...e,children:[Hc("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Hc("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Hc("path",{d:"M8.6 8.6l10.4 10.4"}),Hc("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as Wy,jsxs as vM}from"react/jsx-runtime";var Wt=e=>vM(a,{...e,children:[Wy("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Wy("path",{d:"M21 21l-6 -6"})]});import{jsx as qy,jsxs as bM}from"react/jsx-runtime";var Kf=e=>bM(a,{...e,children:[qy("path",{d:"M10 14l11 -11"}),qy("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 Uc,jsxs as IM}from"react/jsx-runtime";var Yf=e=>IM(a,{...e,children:[Uc("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"}),Uc("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"}),Uc("path",{d:"M7 8l0 .01"}),Uc("path",{d:"M7 16l0 .01"})]});import{jsx as Xy,jsxs as CM}from"react/jsx-runtime";var Da=e=>CM(a,{...e,children:[Xy("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"}),Xy("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as qt,jsxs as PM}from"react/jsx-runtime";var Qf=e=>PM(a,{...e,children:[qt("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),qt("path",{d:"M4 6l8 0"}),qt("path",{d:"M16 6l4 0"}),qt("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),qt("path",{d:"M4 12l2 0"}),qt("path",{d:"M10 12l10 0"}),qt("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),qt("path",{d:"M4 18l11 0"}),qt("path",{d:"M19 18l1 0"})]});import{jsx as Fa,jsxs as xM}from"react/jsx-runtime";var Zf=e=>xM(a,{...e,children:[Fa("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Fa("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Fa("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Fa("path",{d:"M8.7 10.7l6.6 -3.4"}),Fa("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as Ky,jsxs as SM}from"react/jsx-runtime";var Jf=e=>SM(a,{...e,children:[Ky("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"}),Ky("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as jf,jsxs as wM}from"react/jsx-runtime";var eh=e=>wM(a,{...e,children:[jf("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"}),jf("path",{d:"M16 19h6"}),jf("path",{d:"M19 16v6"})]});import{jsx as th,jsxs as MM}from"react/jsx-runtime";var oh=e=>MM(a,{...e,children:[th("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"}),th("path",{d:"M22 22l-5 -5"}),th("path",{d:"M17 22l5 -5"})]});import{jsx as Yy,jsxs as kM}from"react/jsx-runtime";var nh=e=>kM(a,{...e,children:[Yy("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"}),Yy("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as Gc,jsxs as TM}from"react/jsx-runtime";var rh=e=>TM(a,{...e,children:[Gc("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Gc("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Gc("path",{d:"M17 17h-11v-14h-2"}),Gc("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as vo,jsxs as BM}from"react/jsx-runtime";var ah=e=>BM(a,{...e,children:[vo("path",{d:"M5 9l4 0l0 -4"}),vo("path",{d:"M3 3l6 6"}),vo("path",{d:"M5 15l4 0l0 4"}),vo("path",{d:"M3 21l6 -6"}),vo("path",{d:"M19 9l-4 0l0 -4"}),vo("path",{d:"M15 9l6 -6"}),vo("path",{d:"M19 15l-4 0l0 4"}),vo("path",{d:"M15 15l6 6"})]});import{jsx as $c,jsxs as NM}from"react/jsx-runtime";var lh=e=>NM(a,{...e,children:[$c("path",{d:"M18 4l3 3l-3 3"}),$c("path",{d:"M18 20l3 -3l-3 -3"}),$c("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),$c("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 Qy,jsxs as RM}from"react/jsx-runtime";var ch=e=>RM(a,{...e,children:[Qy("path",{d:"M4 5v14l12 -7z"}),Qy("path",{d:"M20 5l0 14"})]});import{jsx as Zy,jsxs as LM}from"react/jsx-runtime";var ih=e=>LM(a,{...e,children:[Zy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Zy("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as Jy,jsxs as EM}from"react/jsx-runtime";var sh=e=>EM(a,{...e,children:[Jy("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"}),Jy("path",{d:"M5 5 L19 19"})]});import{jsx as Xo,jsxs as DM}from"react/jsx-runtime";var ph=e=>DM(a,{...e,children:[Xo("path",{d:"M4 10l0 6"}),Xo("path",{d:"M20 10l0 6"}),Xo("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),Xo("path",{d:"M8 3l1 2"}),Xo("path",{d:"M16 3l-1 2"}),Xo("path",{d:"M9 18l0 3"}),Xo("path",{d:"M15 18l0 3"})]});import{jsx as jy,jsxs as FM}from"react/jsx-runtime";var dh=e=>FM(a,{...e,children:[jy("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"}),jy("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as ev}from"react/jsx-runtime";var mh=e=>ev(a,{...e,children:ev("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 Aa,jsxs as AM}from"react/jsx-runtime";var uh=e=>AM(a,{...e,children:[Aa("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Aa("path",{d:"M3.6 9h16.8"}),Aa("path",{d:"M3.6 15h16.8"}),Aa("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),Aa("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as tv}from"react/jsx-runtime";var fh=e=>tv(a,{...e,children:tv("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 hh,jsxs as OM}from"react/jsx-runtime";var gh=e=>OM(a,{...e,children:[hh("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"}),hh("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),hh("path",{d:"M16.5 7.5v.01"})]});import{jsx as Oa,jsxs as _M}from"react/jsx-runtime";var yh=e=>_M(a,{...e,children:[Oa("path",{d:"M8 11v5"}),Oa("path",{d:"M8 8v.01"}),Oa("path",{d:"M12 16v-5"}),Oa("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),Oa("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 vh,jsxs as VM}from"react/jsx-runtime";var bh=e=>VM(a,{...e,children:[vh("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),vh("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),vh("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 Ko,jsxs as zM}from"react/jsx-runtime";var Ih=e=>zM(a,{...e,children:[Ko("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"}),Ko("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"}),Ko("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"}),Ko("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"}),Ko("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"}),Ko("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"}),Ko("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"})]});import{jsx as _a,jsxs as HM}from"react/jsx-runtime";var Ch=e=>HM(a,{...e,children:[_a("path",{d:"M21 15l-1 -6l-2.5 6"}),_a("path",{d:"M9 15l1 -6"}),_a("path",{d:"M3 9h1v6h.5l2.5 -6"}),_a("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"}),_a("path",{d:"M18 14h2.7"})]});import{jsx as ov,jsxs as UM}from"react/jsx-runtime";var Ph=e=>UM(a,{...e,children:[ov("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),ov("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as Wc,jsxs as GM}from"react/jsx-runtime";var Va=e=>GM(a,{...e,children:[Wc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Wc("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wc("path",{d:"M13.41 10.59l2.59 -2.59"}),Wc("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as nv}from"react/jsx-runtime";var xh=e=>nv(a,{...e,children:nv("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as rv}from"react/jsx-runtime";var za=e=>rv(a,{...e,children:rv("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 av}from"react/jsx-runtime";var Sh=e=>av(a,{isFilled:!0,...e,children:av("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 lv}from"react/jsx-runtime";var wh=e=>lv(a,{isFilled:!0,...e,children:lv("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 cv}from"react/jsx-runtime";var Mh=e=>cv(a,{...e,children:cv("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 iv}from"react/jsx-runtime";var Ha=e=>iv(a,{...e,children:iv("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 sv,jsxs as $M}from"react/jsx-runtime";var kh=e=>$M(a,{...e,children:[sv("path",{d:"M5 12l14 0"}),sv("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 pv,jsxs as WM}from"react/jsx-runtime";var Th=e=>WM(a,{...e,children:[pv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),pv("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 dv,jsxs as qM}from"react/jsx-runtime";var Bh=e=>qM(a,{...e,children:[dv("path",{d:"M7 10h14l-4 -4"}),dv("path",{d:"M17 14h-14l4 4"})]});import{jsx as qc,jsxs as XM}from"react/jsx-runtime";var Nh=e=>XM(a,{...e,children:[qc("path",{d:"M16 3l4 4l-4 4"}),qc("path",{d:"M10 7l10 0"}),qc("path",{d:"M8 13l-4 4l4 4"}),qc("path",{d:"M4 17l9 0"})]});import{jsx as Rh,jsxs as KM}from"react/jsx-runtime";var Lh=e=>KM(a,{...e,children:[Rh("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"}),Rh("path",{d:"M3 10h18"}),Rh("path",{d:"M10 3v18"})]});import{jsx as mv,jsxs as YM}from"react/jsx-runtime";var Ua=e=>YM(a,{...e,children:[mv("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),mv("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 tr,jsxs as QM}from"react/jsx-runtime";var Eh=e=>QM(a,{...e,children:[tr("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),tr("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),tr("path",{d:"M12 2l0 2"}),tr("path",{d:"M12 20l0 2"}),tr("path",{d:"M20 12l2 0"}),tr("path",{d:"M2 12l2 0"})]});import{jsx as Dh,jsxs as ZM}from"react/jsx-runtime";var Fh=e=>ZM(a,{...e,children:[Dh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dh("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Dh("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Ah,jsxs as JM}from"react/jsx-runtime";var Oh=e=>JM(a,{...e,children:[Ah("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),Ah("path",{d:"M9 11h6"}),Ah("path",{d:"M5 19h14"})]});import{jsx as uv,jsxs as jM}from"react/jsx-runtime";var _h=e=>jM(a,{...e,children:[uv("path",{d:"M6 4l12 0"}),uv("path",{d:"M12 4l0 16"})]});import{jsx as Xc,jsxs as ek}from"react/jsx-runtime";var Vh=e=>ek(a,{...e,children:[Xc("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),Xc("path",{d:"M12.5 5.5l4 4"}),Xc("path",{d:"M4.5 13.5l4 4"}),Xc("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as fv}from"react/jsx-runtime";var zh=e=>fv(a,{...e,children:fv("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 hv}from"react/jsx-runtime";var Hh=e=>hv(a,{...e,children:hv("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 gv,jsxs as tk}from"react/jsx-runtime";var Uh=e=>tk(a,{isFilled:!0,...e,children:[gv("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"}),gv("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 yv,jsxs as ok}from"react/jsx-runtime";var Gh=e=>ok(a,{...e,children:[yv("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),yv("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 or,jsxs as nk}from"react/jsx-runtime";var $h=e=>nk(a,{...e,children:[or("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),or("path",{d:"M4 6.371h7"}),or("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),or("path",{d:"M12 20l4 -9l4 9"}),or("path",{d:"M19.1 18h-6.2"}),or("path",{d:"M6.694 3l.793 .582"})]});import{jsx as Ga,jsxs as rk}from"react/jsx-runtime";var lt=e=>rk(a,{...e,children:[Ga("path",{d:"M4 7l16 0"}),Ga("path",{d:"M10 11l0 6"}),Ga("path",{d:"M14 11l0 6"}),Ga("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),Ga("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as vv,jsxs as ak}from"react/jsx-runtime";var Wh=e=>ak(a,{...e,children:[vv("path",{d:"M3 17l6 -6l4 4l8 -8"}),vv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as bv,jsxs as lk}from"react/jsx-runtime";var qh=e=>lk(a,{...e,children:[bv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),bv("path",{d:"M5 19h14"})]});import{jsx as Iv,jsxs as ck}from"react/jsx-runtime";var Xh=e=>ck(a,{...e,children:[Iv("path",{d:"M9 14l-4 -4l4 -4"}),Iv("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as Kh,jsxs as ik}from"react/jsx-runtime";var Yh=e=>ik(a,{...e,children:[Kh("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"}),Kh("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Kh("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as Qh,jsxs as sk}from"react/jsx-runtime";var Yo=e=>sk(a,{...e,children:[Qh("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"}),Qh("path",{d:"M9 15l3 -3l3 3"}),Qh("path",{d:"M12 12l0 9"})]});import{jsx as Cv,jsxs as pk}from"react/jsx-runtime";var $a=e=>pk(a,{...e,children:[Cv("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Cv("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as Zh,jsxs as dk}from"react/jsx-runtime";var Jh=e=>dk(a,{...e,children:[Zh("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Zh("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),Zh("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Kc,jsxs as mk}from"react/jsx-runtime";var jh=e=>mk(a,{...e,children:[Kc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Kc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Kc("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),Kc("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as e0,jsxs as uk}from"react/jsx-runtime";var t0=e=>uk(a,{...e,children:[e0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),e0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),e0("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 Yc,jsxs as fk}from"react/jsx-runtime";var o0=e=>fk(a,{...e,children:[Yc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Yc("path",{d:"M16 19h6"}),Yc("path",{d:"M19 16v6"}),Yc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as Qc,jsxs as hk}from"react/jsx-runtime";var n0=e=>hk(a,{...e,children:[Qc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Qc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Qc("path",{d:"M16 22l5 -5"}),Qc("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as Zc,jsxs as gk}from"react/jsx-runtime";var r0=e=>gk(a,{...e,children:[Zc("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Zc("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Zc("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Zc("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as a0,jsxs as yk}from"react/jsx-runtime";var l0=e=>yk(a,{...e,children:[a0("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),a0("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),a0("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 Wa,jsxs as vk}from"react/jsx-runtime";var c0=e=>vk(a,{...e,children:[Wa("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Wa("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),Wa("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Wa("path",{d:"M19 22v-6"}),Wa("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as Pv,jsxs as bk}from"react/jsx-runtime";var i0=e=>bk(a,{...e,children:[Pv("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"}),Pv("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 s0,jsxs as Ik}from"react/jsx-runtime";var p0=e=>Ik(a,{...e,children:[s0("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),s0("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),s0("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 d0,jsxs as Ck}from"react/jsx-runtime";var qa=e=>Ck(a,{...e,children:[d0("path",{d:"M15 8a5 5 0 0 1 0 8"}),d0("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),d0("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 xv,jsxs as Pk}from"react/jsx-runtime";var Xa=e=>Pk(a,{...e,children:[xv("path",{d:"M15 8a5 5 0 0 1 0 8"}),xv("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 Sv,jsxs as xk}from"react/jsx-runtime";var Ka=e=>xk(a,{...e,children:[Sv("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"}),Sv("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as wv}from"react/jsx-runtime";var m0=e=>wv(a,{...e,children:wv("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 Mv,jsxs as Sk}from"react/jsx-runtime";var He=e=>Sk(a,{...e,children:[Mv("path",{d:"M18 6l-12 12"}),Mv("path",{d:"M6 6l12 12"})]});import{jsx as kv,jsxs as wk}from"react/jsx-runtime";var u0=e=>wk(a,{...e,children:[kv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),kv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Tv}from"react/jsx-runtime";var f0=e=>Tv(a,{isFilled:!0,...e,children:Tv("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 Bv,jsxs as Mk}from"react/jsx-runtime";var h0=e=>Mk(a,{...e,children:[Bv("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"}),Bv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as Jc,jsxs as kk}from"react/jsx-runtime";var g0=e=>kk(a,{...e,children:[Jc("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Jc("path",{d:"M7 10l6 0"}),Jc("path",{d:"M10 7l0 6"}),Jc("path",{d:"M21 21l-6 -6"})]});import{jsx as y0,jsxs as Tk}from"react/jsx-runtime";var v0=e=>Tk(a,{...e,children:[y0("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),y0("path",{d:"M7 10l6 0"}),y0("path",{d:"M21 21l-6 -6"})]});var Ct=(f=>(f["48AlertFeatured"]="48AlertFeatured",f["48SuccessFeatured"]="48SuccessFeatured",f.AlertCircle="AlertCircle",f.AlertOctagon="AlertOctagon",f.AlertTriangle="AlertTriangle",f.Apps="Apps",f.ArrowBarDown="ArrowBarDown",f.ArrowBarLeft="ArrowBarLeft",f.ArrowBarRight="ArrowBarRight",f.ArrowBarToDown="ArrowBarToDown",f.ArrowBarToLeft="ArrowBarToLeft",f.ArrowBarToRight="ArrowBarToRight",f.ArrowBarToUp="ArrowBarToUp",f.ArrowBarUp="ArrowBarUp",f.Archive="Archive",f.ArrowDown="ArrowDown",f.ArrowDownLeft="ArrowDownLeft",f.ArrowDownNarrow="ArrowDownNarrow",f.ArrowDownRight="ArrowDownRight",f.ArrowLeft="ArrowLeft",f.ArrowLeftNarrow="ArrowLeftNarrow",f.ArrowRight="ArrowRight",f.ArrowRightNarrow="ArrowRightNarrow",f.ArrowUp="ArrowUp",f.ArrowUpLeft="ArrowUpLeft",f.ArrowUpNarrow="ArrowUpNarrow",f.ArrowUpRight="ArrowUpRight",f.Attachment="Attachment",f.BadgeHd="BadgeHd",f.BarChart="BarChart",f.BarChartSquare="BarChartSquare",f.Bell="Bell",f.Bold="Bold",f.Bookmark="Bookmark",f.BookmarkCheck="BookmarkCheck",f.BookmarkCheckFill="BookmarkCheckFill",f.BookmarkFill="BookmarkFill",f.BookmarkMinus="BookmarkMinus",f.BookmarkPlus="BookmarkPlus",f.BookmarkX="BookmarkX",f.BookOpen="BookOpen",f.BoxLines="BoxLines",f.BoxText="BoxText",f.BracketsCheck="BracketsCheck",f.BracketsEllipses="BracketsEllipses",f.BrickWall="BrickWall",f.Briefcase="Briefcase",f.Building="Building",f.Calculator="Calculator",f.Calendar="Calendar",f.Certificate="Certificate",f.Check="Check",f.CheckCircle="CheckCircle",f.CheckCircleBroken="CheckCircleBroken",f.CheckFill="CheckFill",f.CheckVerified="CheckVerified",f.CheckVerifiedFill="CheckVerifiedFill",f.ChevronDown="ChevronDown",f.ChevronDownDouble="ChevronDownDouble",f.ChevronDownLeft="ChevronDownLeft",f.ChevronDownLeftDouble="ChevronDownLeftDouble",f.ChevronDownRight="ChevronDownRight",f.ChevronDownRightDouble="ChevronDownRightDouble",f.ChevronLeft="ChevronLeft",f.ChevronLeftDouble="ChevronLeftDouble",f.ChevronRight="ChevronRight",f.ChevronRightDouble="ChevronRightDouble",f.ChevronSelectorVertical="ChevronSelectorVertical",f.ChevronUp="ChevronUp",f.ChevronUpDouble="ChevronUpDouble",f.ChevronUpLeft="ChevronUpLeft",f.ChevronUpLeftDouble="ChevronUpLeftDouble",f.ChevronUpRight="ChevronUpRight",f.ChevronUpRightDouble="ChevronUpRightDouble",f.Click="Click",f.Clock="Clock",f.ClockFastForward="ClockFastForward",f.ClockPlay="ClockPlay",f.ClockRewind="ClockRewind",f.Clone="Clone",f.ClosedCaption="ClosedCaption",f.Code="Code",f.CodeBrowser="CodeBrowser",f.CodeCircle="CodeCircle",f.Colors="Colors",f.ColumnEdit="ColumnEdit",f.Copy="Copy",f.Copy2="Copy2",f.CopyCheck="CopyCheck",f.CreditCard="CreditCard",f.Cube="Cube",f.CubeOutline="CubeOutline",f.CursorBox="CursorBox",f.Dataflow="Dataflow",f.Dataflow2="Dataflow2",f.Dataflow3="Dataflow3",f.DistributeHorizontal="DistributeHorizontal",f.Dollar="Dollar",f.DollarCircle="DollarCircle",f.Dot="Dot",f.DotFill="DotFill",f.DotsGrid="DotsGrid",f.DotsHorizontal="DotsHorizontal",f.DotsVertical="DotsVertical",f.Download="Download",f.Edit="Edit",f.Editable="Editable",f.Expand="Expand",f.ExternalLink="ExternalLink",f.ExternalLink2="ExternalLink2",f.Eye="Eye",f.EyeHidden="EyeHidden",f.EyeHidden2="EyeHidden2",f.FaceAngry="FaceAngry",f.FaceLaugh="FaceLaugh",f.FaceSmile="FaceSmile",f.File="File",f.FileCheck="FileCheck",f.FileCsv="FileCsv",f.FileDownload="FileDownload",f.FileJson="FileJson",f.FileList="FileList",f.FileMusic="FileMusic",f.FilePdf="FilePdf",f.Files="Files",f.FileSpreadsheet="FileSpreadsheet",f.FileText="FileText",f.FileUpload="FileUpload",f.FileXls="FileXls",f.FileXlsx="FileXlsx",f.FileZip="FileZip",f.Filter="Filter",f.Filter2="Filter2",f.Flag="Flag",f.Flag2="Flag2",f.FlagFill="FlagFill",f.Focus="Focus",f.Folder="Folder",f.FolderExport="FolderExport",f.FolderImport="FolderImport",f.GraduationCap="GraduationCap",f.GripVertical="GripVertical",f.Hand="Hand",f.HandShield="HandShield",f.Hash="Hash",f.HeadsetMic="HeadsetMic",f.Heart="Heart",f.HeartFill="HeartFill",f.House="House",f.HouseLine="HouseLine",f.Image="Image",f.Image2="Image2",f.ImageCheck="ImageCheck",f.ImageOff="ImageOff",f.Import="Import",f.Inbox="Inbox",f.InfoCircle="InfoCircle",f.InfoHexagon="InfoHexagon",f.Italic="Italic",f.LayersMultiple="LayersMultiple",f.LayersSingle="LayersSingle",f.Layout="Layout",f.Layout2="Layout2",f.LayoutColumns="LayoutColumns",f.LayoutCustom="LayoutCustom",f.LayoutStuffed="LayoutStuffed",f.LayoutTile="LayoutTile",f.LifeBuoy="LifeBuoy",f.Lightbulb="Lightbulb",f.Lightning="Lightning",f.LightningFast="LightningFast",f.LineChart="LineChart",f.LineChartBar="LineChartBar",f.LineChartBreakoutSquare="LineChartBreakoutSquare",f.LineChartUp="LineChartUp",f.Lines="Lines",f.LinesCheck="LinesCheck",f.LinesPlay="LinesPlay",f.Link="Link",f.Link2="Link2",f.LinkOff="LinkOff",f.ListBullet="ListBullet",f.ListOrder="ListOrder",f.Lock="Lock",f.LockFill="LockFill",f.LogIn="LogIn",f.LogOut="LogOut",f.LogOut2="LogOut2",f.MagicWand="MagicWand",f.Mail="Mail",f.MailOpen="MailOpen",f.MapPin="MapPin",f.Maximize="Maximize",f.Maximize2="Maximize2",f.MessageCircle="MessageCircle",f.MessageSquare="MessageSquare",f.MessageSquare2="MessageSquare2",f.MessageXSquare="MessageXSquare",f.Microphone="Microphone",f.Minimize="Minimize",f.Minimize2="Minimize2",f.MinusCircle="MinusCircle",f.Mobile="Mobile",f.Monitor="Monitor",f.Monitor2="Monitor2",f.Moon="Moon",f.MoonCircle="MoonCircle",f.Movie="Movie",f.NavigationPointer="NavigationPointer",f.NotificationBox="NotificationBox",f.Package="Package",f.Palette="Palette",f.PasscodeLock="PasscodeLock",f.Pause="Pause",f.PauseCircle="PauseCircle",f.PCSetup="PCSetup",f.Pen="Pen",f.PercentageCircle="PercentageCircle",f.Perspective="Perspective",f.PhoneCall="PhoneCall",f.PictureInPicture="PictureInPicture",f.Pin="Pin",f.Play="Play",f.PlayCircle="PlayCircle",f.Plus="Plus",f.PlusCircle="PlusCircle",f.Printer="Printer",f.Pulse="Pulse",f.QuestionCircle="QuestionCircle",f.Quote="Quote",f.RadioButton="RadioButton",f.RadioButtonFill="RadioButtonFill",f.Receipt="Receipt",f.ReceiptCheck="ReceiptCheck",f.Redo="Redo",f.Refresh="Refresh",f.Refresh2="Refresh2",f.Refresh3="Refresh3",f.Repeat="Repeat",f.Replace="Replace",f.Replay="Replay",f.Restore="Restore",f.Rocket="Rocket",f.RoundChart="RoundChart",f.RoundChart2="RoundChart2",f.Route="Route",f.Save="Save",f.ScanDots="ScanDots",f.Scissors="Scissors",f.Search="Search",f.Send="Send",f.Server="Server",f.Settings="Settings",f.Settings2="Settings2",f.Share="Share",f.ShieldLightning="ShieldLightning",f.ShieldPlus="ShieldPlus",f.ShieldRemove="ShieldRemove",f.ShoppingBag="ShoppingBag",f.ShoppingCart="ShoppingCart",f.Shrink="Shrink",f.Shuffle="Shuffle",f.SkipForward="SkipForward",f.SlashCircle="SlashCircle",f.SlashOctagon="SlashOctagon",f.SocialAndroid="SocialAndroid",f.SocialApple="SocialApple",f.SocialGithub="SocialGithub",f.SocialGlobe="SocialGlobe",f.SocialGoogle="SocialGoogle",f.SocialInstagram="SocialInstagram",f.SocialLinkedin="SocialLinkedin",f.SocialMastercard="SocialMastercard",f.SocialReact="SocialReact",f.SocialVisa="SocialVisa",f.SocialX="SocialX",f.Speedometer="Speedometer",f.Stairs="Stairs",f.Star="Star",f.StarFill="StarFill",f.StarHalf="StarHalf",f.Stars="Stars",f.Stop="Stop",f.Strikethrough="Strikethrough",f.Sun="Sun",f.Swap="Swap",f.SwitchHorizontal="SwitchHorizontal",f.Table="Table",f.Tag="Tag",f.Target="Target",f.Target2="Target2",f.TextFormat="TextFormat",f.TextFormat2="TextFormat2",f.TextHighlight="TextHighlight",f.ThumbsDown="ThumbsDown",f.ThumbsUp="ThumbsUp",f.ThumbsUpFill="ThumbsUpFill",f.Toggle="Toggle",f.Translate="Translate",f.Trash="Trash",f.Trending="Trending",f.Underline="Underline",f.Undo="Undo",f.Unlock="Unlock",f.UploadCloud="UploadCloud",f.User="User",f.UserCheck="UserCheck",f.UserDollar="UserDollar",f.UserEdit="UserEdit",f.UserPlus="UserPlus",f.UserRight="UserRight",f.Users="Users",f.UserSquare="UserSquare",f.UsersUp="UsersUp",f.UserVoice="UserVoice",f.Video="Video",f.VideoChat="VideoChat",f.Volume="Volume",f.VolumeDown="VolumeDown",f.VolumeMute="VolumeMute",f.Wrench="Wrench",f.X="X",f.XCircle="XCircle",f.XCircleFill="XCircleFill",f.XSquare="XSquare",f.ZoomIn="ZoomIn",f.ZoomOut="ZoomOut",f))(Ct||{});import{jsx as h}from"react/jsx-runtime";function Se({name:e,...t}){switch(e){case"48AlertFeatured":return h(js,{...t});case"48SuccessFeatured":return h(ep,{...t});case"AlertCircle":return h(Uo,{...t});case"AlertOctagon":return h(op,{...t});case"AlertTriangle":return h(rp,{...t});case"ArrowBarDown":return h(ip,{...t});case"ArrowBarLeft":return h(sp,{...t});case"ArrowBarRight":return h(pp,{...t});case"ArrowBarToDown":return h(dp,{...t});case"ArrowBarToLeft":return h(mp,{...t});case"ArrowBarToRight":return h(up,{...t});case"ArrowBarToUp":return h(fp,{...t});case"ArrowBarUp":return h(hp,{...t});case"Apps":return h(ap,{...t});case"Archive":return h(cp,{...t});case"ArrowDown":return h(yp,{...t});case"ArrowDownLeft":return h(vp,{...t});case"ArrowDownNarrow":return h(Ip,{...t});case"ArrowDownRight":return h(Cp,{...t});case"ArrowLeft":return h(xp,{...t});case"ArrowLeftNarrow":return h(wp,{...t});case"ArrowRight":return h(kp,{...t});case"ArrowRightNarrow":return h(Bp,{...t});case"ArrowUp":return h(Rp,{...t});case"ArrowUpLeft":return h(Lp,{...t});case"ArrowUpNarrow":return h(Dp,{...t});case"ArrowUpRight":return h(Fp,{...t});case"Attachment":return h(Ap,{...t});case"BadgeHd":return h(qr,{...t});case"BarChart":return h(Op,{...t});case"BarChartSquare":return h(_p,{...t});case"Bell":return h(Vp,{...t});case"Bold":return h(zp,{...t});case"BookOpen":return h(qp,{...t});case"Bookmark":return h(Hp,{...t});case"BookmarkCheck":return h(qs,{...t});case"BookmarkCheckFill":return h(Xs,{...t});case"BookmarkFill":return h(Up,{...t});case"BookmarkMinus":return h(Gp,{...t});case"BookmarkPlus":return h(Ys,{...t});case"BookmarkX":return h(Wp,{...t});case"BoxLines":return h(Xp,{...t});case"BoxText":return h(Yp,{...t});case"BracketsCheck":return h(Zp,{...t});case"BracketsEllipses":return h(Jp,{...t});case"BrickWall":return h(jp,{...t});case"Briefcase":return h(ed,{...t});case"Building":return h(Qs,{...t});case"Calculator":return h(td,{...t});case"Calendar":return h(Qr,{...t});case"Certificate":return h(od,{...t});case"Check":return h(zt,{...t});case"CheckCircle":return h(Go,{...t});case"CheckCircleBroken":return h(nd,{...t});case"CheckFill":return h(rd,{...t});case"CheckVerified":return h(ad,{...t});case"CheckVerifiedFill":return h(ld,{...t});case"ChevronDown":return h(Zr,{...t});case"ChevronDownDouble":return h(cd,{...t});case"ChevronDownLeft":return h(id,{...t});case"ChevronDownLeftDouble":return h(sd,{...t});case"ChevronDownRight":return h(pd,{...t});case"ChevronDownRightDouble":return h(dd,{...t});case"ChevronLeft":return h(Ht,{...t});case"ChevronLeftDouble":return h(md,{...t});case"ChevronRight":return h(mt,{...t});case"ChevronRightDouble":return h(Jr,{...t});case"ChevronSelectorVertical":return h(ud,{...t});case"ChevronUp":return h(Ut,{...t});case"ChevronUpDouble":return h(fd,{...t});case"ChevronUpLeft":return h(hd,{...t});case"ChevronUpLeftDouble":return h(gd,{...t});case"ChevronUpRight":return h(yd,{...t});case"ChevronUpRightDouble":return h(vd,{...t});case"Click":return h(bd,{...t});case"Clock":return h(Id,{...t});case"ClockFastForward":return h(Cd,{...t});case"ClockPlay":return h(xd,{...t});case"ClockRewind":return h(Sd,{...t});case"Clone":return h(wd,{...t});case"ClosedCaption":return h(ea,{...t});case"Code":return h(Td,{...t});case"CodeBrowser":return h(Bd,{...t});case"CodeCircle":return h(Rd,{...t});case"Colors":return h(Ed,{...t});case"ColumnEdit":return h(Zs,{...t});case"Copy":return h(Dd,{...t});case"Copy2":return h(Fd,{...t});case"CopyCheck":return h(Od,{...t});case"Files":return h(xm,{...t});case"CreditCard":return h(_d,{...t});case"Cube":return h(Vd,{...t});case"CubeOutline":return h(zd,{...t});case"CursorBox":return h(ta,{...t});case"Dataflow":return h(Hd,{...t});case"Dataflow2":return h(Ud,{...t});case"Dataflow3":return h(Gd,{...t});case"DistributeHorizontal":return h(Wd,{...t});case"Dollar":return h(qd,{...t});case"DollarCircle":return h(Kd,{...t});case"Dot":return h(Yd,{...t});case"DotFill":return h(Qd,{...t});case"DotsGrid":return h(Zd,{...t});case"DotsHorizontal":return h(jd,{...t});case"DotsVertical":return h(Gn,{...t});case"Download":return h(om,{...t});case"Edit":return h(nm,{...t});case"Editable":return h(am,{...t});case"Expand":return h(lm,{...t});case"ExternalLink":return h(im,{...t});case"ExternalLink2":return h(pm,{...t});case"Eye":return h(dm,{...t});case"EyeHidden":return h(um,{...t});case"EyeHidden2":return h(fm,{...t});case"FaceAngry":return h(hm,{...t});case"FaceLaugh":return h(gm,{...t});case"FaceSmile":return h(ym,{...t});case"File":return h(Wo,{...t});case"FileCheck":return h(bm,{...t});case"FileCsv":return h(aa,{...t});case"FileDownload":return h(Im,{...t});case"FileJson":return h(la,{...t});case"FileList":return h(Cm,{...t});case"FileMusic":return h(at,{...t});case"FilePdf":return h(qo,{...t});case"FileSpreadsheet":return h(ia,{...t});case"FileText":return h($t,{...t});case"FileUpload":return h(Sm,{...t});case"FileXls":return h(pa,{...t});case"FileXlsx":return h(da,{...t});case"FileZip":return h(It,{...t});case"Filter":return h(wm,{...t});case"Filter2":return h(ma,{...t});case"Flag":return h(km,{...t});case"Flag2":return h(Tm,{...t});case"FlagFill":return h(Bm,{...t});case"Focus":return h(Nm,{...t});case"Folder":return h(Rm,{...t});case"FolderExport":return h(Lm,{...t});case"FolderImport":return h(Em,{...t});case"GraduationCap":return h(Dm,{...t});case"GripVertical":return h(Fm,{...t});case"Hand":return h(Am,{...t});case"HandShield":return h(Om,{...t});case"Hash":return h(_m,{...t});case"HeadsetMic":return h(Vm,{...t});case"Heart":return h(zm,{...t});case"HeartFill":return h(Hm,{...t});case"House":return h(Gm,{...t});case"HouseLine":return h(fa,{...t});case"Image":return h(_e,{...t});case"Image2":return h($m,{...t});case"ImageCheck":return h(Wm,{...t});case"ImageOff":return h(qm,{...t});case"Import":return h(Xm,{...t});case"Inbox":return h(Km,{...t});case"InfoCircle":return h(Qm,{...t});case"InfoHexagon":return h(Jm,{...t});case"Italic":return h(eu,{...t});case"LayersMultiple":return h(ou,{...t});case"LayersSingle":return h(nu,{...t});case"Layout":return h(ru,{...t});case"Layout2":return h(lu,{...t});case"LayoutColumns":return h(cu,{...t});case"LayoutCustom":return h(iu,{...t});case"LayoutStuffed":return h(pu,{...t});case"LayoutTile":return h(du,{...t});case"LifeBuoy":return h(mu,{...t});case"Lightbulb":return h(fu,{...t});case"Lightning":return h(hu,{...t});case"LightningFast":return h(gu,{...t});case"LineChartBar":return h(vu,{...t});case"LineChartBreakoutSquare":return h(bu,{...t});case"LineChart":return h(yu,{...t});case"LineChartUp":return h(Cu,{...t});case"Lines":return h(Pu,{...t});case"LinesCheck":return h(xu,{...t});case"LinesPlay":return h(Su,{...t});case"Link":return h(Mu,{...t});case"Link2":return h(ku,{...t});case"LinkOff":return h(Tu,{...t});case"ListBullet":return h(Bu,{...t});case"ListOrder":return h(Nu,{...t});case"Lock":return h(Lu,{...t});case"LockFill":return h(Eu,{...t});case"LogIn":return h(Fu,{...t});case"LogOut":return h(Ou,{...t});case"LogOut2":return h(Vu,{...t});case"MagicWand":return h(zu,{...t});case"Mail":return h(Hu,{...t});case"MailOpen":return h(Uu,{...t});case"MapPin":return h(Gu,{...t});case"Maximize":return h(Ia,{...t});case"Maximize2":return h($u,{...t});case"MessageCircle":return h(Wu,{...t});case"MessageSquare":return h(Xu,{...t});case"MessageSquare2":return h(Ku,{...t});case"MessageXSquare":return h(Yu,{...t});case"Microphone":return h(Pa,{...t});case"Minimize":return h(xa,{...t});case"Minimize2":return h(Qu,{...t});case"MinusCircle":return h(Zu,{...t});case"Mobile":return h(ju,{...t});case"Monitor":return h(ef,{...t});case"Monitor2":return h(tf,{...t});case"Moon":return h(of,{...t});case"MoonCircle":return h(nf,{...t});case"Movie":return h(ut,{...t});case"NavigationPointer":return h(rf,{...t});case"NotificationBox":return h(af,{...t});case"Package":return h(lf,{...t});case"Palette":return h(cf,{...t});case"PasscodeLock":return h(sf,{...t});case"Pause":return h(ft,{...t});case"PauseCircle":return h(df,{...t});case"PCSetup":return h(uf,{...t});case"Pen":return h(hf,{...t});case"PercentageCircle":return h(gf,{...t});case"Perspective":return h(yf,{...t});case"PhoneCall":return h(bf,{...t});case"PictureInPicture":return h(ka,{...t});case"Pin":return h(Ta,{...t});case"Play":return h(ht,{...t});case"PlayCircle":return h(Cf,{...t});case"Plus":return h(Ba,{...t});case"PlusCircle":return h(go,{...t});case"Printer":return h(Sf,{...t});case"Pulse":return h(wf,{...t});case"QuestionCircle":return h(Na,{...t});case"Quote":return h(kf,{...t});case"RadioButton":return h(Tf,{...t});case"RadioButtonFill":return h(Bf,{...t});case"Receipt":return h(Nf,{...t});case"ReceiptCheck":return h(Rf,{...t});case"Redo":return h(Lf,{...t});case"Refresh":return h(Ra,{...t});case"Refresh2":return h(Ef,{...t});case"Refresh3":return h(Df,{...t});case"Repeat":return h(Ff,{...t});case"Replace":return h(Af,{...t});case"Replay":return h(La,{...t});case"Restore":return h(_f,{...t});case"Rocket":return h(zf,{...t});case"RoundChart":return h(Hf,{...t});case"RoundChart2":return h(Uf,{...t});case"Route":return h($f,{...t});case"Save":return h(qf,{...t});case"ScanDots":return h(Xf,{...t});case"Scissors":return h(Ea,{...t});case"Search":return h(Wt,{...t});case"Send":return h(Kf,{...t});case"Server":return h(Yf,{...t});case"Settings":return h(Da,{...t});case"Settings2":return h(Qf,{...t});case"Share":return h(Zf,{...t});case"ShieldLightning":return h(Jf,{...t});case"ShieldPlus":return h(eh,{...t});case"ShieldRemove":return h(oh,{...t});case"ShoppingBag":return h(nh,{...t});case"ShoppingCart":return h(rh,{...t});case"Shrink":return h(ah,{...t});case"Shuffle":return h(lh,{...t});case"SkipForward":return h(ch,{...t});case"SlashCircle":return h(ih,{...t});case"SlashOctagon":return h(sh,{...t});case"SocialAndroid":return h(ph,{...t});case"SocialApple":return h(dh,{...t});case"SocialGithub":return h(mh,{...t});case"SocialGlobe":return h(uh,{...t});case"SocialGoogle":return h(fh,{...t});case"SocialInstagram":return h(gh,{...t});case"SocialLinkedin":return h(yh,{...t});case"SocialMastercard":return h(bh,{...t});case"SocialReact":return h(Ih,{...t});case"SocialVisa":return h(Ch,{...t});case"SocialX":return h(Ph,{...t});case"Speedometer":return h(Va,{...t});case"Stairs":return h(xh,{...t});case"Star":return h(za,{...t});case"StarFill":return h(Sh,{...t});case"StarHalf":return h(wh,{...t});case"Stars":return h(Mh,{...t});case"Stop":return h(Ha,{...t});case"Strikethrough":return h(kh,{...t});case"Sun":return h(Th,{...t});case"Swap":return h(Bh,{...t});case"SwitchHorizontal":return h(Nh,{...t});case"Table":return h(Lh,{...t});case"Tag":return h(Ua,{...t});case"Target":return h(Eh,{...t});case"Target2":return h(Fh,{...t});case"TextFormat":return h(Oh,{...t});case"TextFormat2":return h(_h,{...t});case"TextHighlight":return h(Vh,{...t});case"ThumbsDown":return h(zh,{...t});case"ThumbsUp":return h(Hh,{...t});case"ThumbsUpFill":return h(Uh,{...t});case"Toggle":return h(Gh,{...t});case"Translate":return h($h,{...t});case"Trash":return h(lt,{...t});case"Trending":return h(Wh,{...t});case"Underline":return h(qh,{...t});case"Undo":return h(Xh,{...t});case"Unlock":return h(Yh,{...t});case"UploadCloud":return h(Yo,{...t});case"User":return h($a,{...t});case"UserCheck":return h(Jh,{...t});case"UserDollar":return h(jh,{...t});case"UserEdit":return h(t0,{...t});case"UserPlus":return h(o0,{...t});case"UserRight":return h(n0,{...t});case"UserSquare":return h(l0,{...t});case"Users":return h(r0,{...t});case"UsersUp":return h(c0,{...t});case"UserVoice":return h(Js,{...t});case"Video":return h(i0,{...t});case"VideoChat":return h(p0,{...t});case"Volume":return h(qa,{...t});case"VolumeDown":return h(Xa,{...t});case"VolumeMute":return h(Ka,{...t});case"Wrench":return h(m0,{...t});case"X":return h(He,{...t});case"XCircle":return h(u0,{...t});case"XCircleFill":return h(f0,{...t});case"XSquare":return h(h0,{...t});case"ZoomIn":return h(g0,{...t});case"ZoomOut":return h(v0,{...t});default:return null}}var Nv=Wo,Rv={png:_e,jpg:_e,jpeg:_e,gif:_e,bmp:_e,webp:_e,svg:_e,avif:_e,heic:_e,ico:_e,tif:_e,tiff:_e,mp4:ut,mov:ut,webm:ut,avi:ut,mkv:ut,m4v:ut,ogv:ut,mp3:at,wav:at,ogg:at,oga:at,m4a:at,aac:at,flac:at,weba:at,pdf:qo,doc:$t,docx:$t,txt:$t,rtf:$t,odt:$t,json:la,csv:aa,xls:pa,xlsx:da,ods:ia,zip:It,rar:It,"7z":It,tar:It,gz:It,tgz:It};var b0=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&Rv[t]||Nv};import{cn as I0,ColorHelpers as Bk}from"@cleen/ui-core";import{forwardRef as Nk}from"react";import{Fragment as Lk,jsx as Ya,jsxs as Ek}from"react/jsx-runtime";var Rk=Nk(function({iconName:t,iconSrc:o,icon:n,iconSize:l=20,header:r,color:c,children:i,classNames:s,styles:p,...d},g){let m=Bk.getComputedColor(c);return Ya(he,{ref:g,classNames:{...s,header:{...s?.header,title:I0("cleen-flex cleen-gap-4",s?.header?.title)}},header:{...r,title:Ek(Lk,{children:[Ya("div",{className:I0("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",s?.iconHolder),style:{...m&&{backgroundColor:Ur(m,.85),color:m,borderColor:"transparent"},...p?.iconHolder},children:n||(t?Ya(Se,{name:t,className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):o?Ya("img",{src:o,alt:"Icon",className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):null)}),r?.title]})},color:c,...d,children:i&&Ya("div",{className:I0("cleen-flex-1",s?.content),style:p?.content,children:i})})});import{cn as nr}from"@cleen/ui-core";import{forwardRef as Dk,useMemo as Fk}from"react";import{jsx as Qa}from"react/jsx-runtime";var Ak=Dk(function({media:t,header:o,color:n,children:l,classNames:r,styles:c,...i},s){let p=Fk(()=>{switch(t?.type){case"image":return Qa("img",{...t,alt:t.alt??"Card media",className:nr("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:c?.media?.content});case"video":return Qa("video",{playsInline:!0,controls:!0,...t,className:nr("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:c?.media?.content});case"iframe":return Qa("iframe",{...t,title:t.title??"Card iframe",className:nr("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:c?.media?.content});default:return null}},[t,r?.media,c?.media]);return Qa(he,{ref:s,color:n,classNames:{...r,container:nr("cleen-pt-0",r?.container),header:{...r?.header,content:nr("cleen-p-0",r?.header?.content)}},header:{...o,...p&&{content:Qa("div",{className:nr("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",r?.media?.container),style:c?.media?.container,children:p})}},...i,children:l})});import{cn as Za}from"@cleen/ui-core";import{jsx as jc,jsxs as Ok}from"react/jsx-runtime";var ne=({className:e,classNames:t,style:o,styles:n,infoMessage:l,errorMessage:r,subtitle:c,...i})=>jc("div",{className:Za("cleen",e),style:o,children:Ok("div",{className:Za(t?.container),style:n?.container,...i,children:[l&&jc("div",{className:Za("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:n?.infoMessage,role:"note",children:l}),r&&jc("div",{className:Za("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:n?.errorMessage,role:"alert",children:r}),c&&jc("div",{className:Za("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:n?.subtitle,children:c})]})});import{cn as Ja}from"@cleen/ui-core";import{jsx as ja,jsxs as _k}from"react/jsx-runtime";var ae=({required:e=!1,tooltip:t,children:o,className:n,classNames:l,style:r,styles:c,...i})=>ja("div",{className:Ja("cleen",n),style:r,children:_k("label",{...i,className:Ja("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:[ja("div",{className:Ja({"cleen-flex-1":!e&&!t},l?.label),style:c?.label,children:o}),e&&ja("span",{className:Ja("cleen-text-primary",l?.required),style:c?.required,children:"*"}),t&&ja(Ie,{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:ja(Na,{className:Ja("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 Xt}from"@cleen/ui-core";import{forwardRef as Vk,useEffect as zk,useId as Hk,useMemo as Uk,useState as Lv}from"react";import{jsx as bo,jsxs as ei}from"react/jsx-runtime";var ye=Vk(function({name:t,id:o,type:n,label:l,labelTooltip:r,defaultValue:c,value:i,files:s,disabled:p,required:d,className:g,classNames:m,style:v,styles:y,autoComplete:u="off",isFocusedBorder:b,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,uploadLabel:P="Choose a file",leftIcon:T,rightIcon:D,topRightIcon:B,inputOverlay:N,infoLabels:L,maxLengthLabel:M,minLengthLabel:S,onChange:w,...E},R){let k=i!==void 0||s!==void 0,[O,F]=Lv(c??""),[A,_]=Lv(null),G=k?i:O,U=k?s:A;zk(()=>{k||F(i??c??"")},[i,c,k]);let W=z=>{let q=z.target.value;if(n==="file"&&z.target.files){k||_(z.target.files),w?.(z);return}(!C||q.length<=C)&&(k||F(q),w?.(z))},Q=Uk(()=>x&&S&&(G?.toString()?.length??0)<x?S(x-(G?.toString()?.length??0)):!C||!M||(G?.toString()?.length??0)/C<I?L?.subtitle:M?.(C-(G?.toString()?.length??0)),[G,C,I,L?.subtitle]),H=Hk(),V=!!(L?.errorMessage||L?.infoMessage||Q),X=V?`${H}-info`:void 0;return bo("div",{className:Xt("cleen",g),style:v,children:ei("div",{className:Xt("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-normal",m?.container),style:y?.container,children:[(l||B)&&ei("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[bo(ae,{htmlFor:o||t,required:d,tooltip:r,className:Xt("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...y?.label,children:l}),B]}),ei("label",{className:Xt("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":b},p&&"cleen-bg-muted",{"cleen-cursor-pointer":n==="file"&&!p},L?.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"],m?.inputContainer),style:y?.inputContainer,children:[T&&bo("div",{className:Xt("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",m?.leftIconContainer),style:y?.leftIconContainer,children:T}),ei("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[bo("input",{id:o||t,name:t,type:n,disabled:p,maxLength:C,autoComplete:u,value:G,className:Xt("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",T?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":T,"cleen-rounded-r-none":D,"cleen-hidden":n==="file"},p?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:y?.input,onChange:W,required:d,"aria-invalid":L?.errorMessage?!0:void 0,"aria-describedby":X,ref:R,...E}),N&&bo("div",{className:Xt("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",T?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",m?.inputOverlay),style:y?.inputOverlay,children:N}),n==="file"&&bo("p",{className:Xt("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",p?"cleen-text-neutral-400":"cleen-text-muted-foreground",U&&U.length>0&&"cleen-text-foreground"),children:U&&U.length>0?Array.from(U).map(z=>z.name).join(", "):P})]}),D&&bo("div",{className:Xt("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",m?.rightIconContainer),style:y?.rightIconContainer,children:D})]}),V&&bo(ne,{id:X,...L,subtitle:Q})]})})});import{cn as el,useOutsideClick as Gk}from"@cleen/ui-core";import{forwardRef as $k,useEffect as Ev,useImperativeHandle as Wk,useMemo as qk,useRef as Xk,useState as ti}from"react";import{jsx as tl,jsxs as Kk}from"react/jsx-runtime";var C0=$k(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:l,onIsEditingChange:r,placeholder:c,placeholderText:i,canEdit:s=!0,onSave:p,onCancel:d,onChange:g,inputProps:m,blurOnOutsideClick:v=!0,saveOnBlur:y=!0,isLoading:u,customLoader:b=tl(re,{}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:T,styles:D,...B},N){let L=t!==void 0,[M,S]=ti(o??""),w=L?t??"":M,[E,R]=ti(!1),k=u??E,O=qk(()=>typeof x=="function"?x(w):x||w||i||c,[w,x,c,i]),[F,A]=ti(n),_=l!==void 0,G=_?l:F,[U,W]=ti(w),Q=Xk(null);Wk(N,()=>({...Q.current,save:V,cancel:H})),Ev(()=>{L||S(o??"")},[o,L]),Ev(()=>{G||W(w)},[w,G]);let H=async()=>{_||A(!1),r?.(!1),W(w),await d?.()},V=async()=>{if(!k){if(w===U){await d?.(),_||A(!1),r?.(!1);return}R(!0),L||S(U);try{await p?.(U),_||A(!1),r?.(!1)}finally{R(!1)}}},X=async z=>{z.key==="Enter"&&(z.preventDefault(),await V()),z.key==="Escape"&&(z.stopPropagation(),z.preventDefault(),await H()),m?.onKeyDown?.(z)};return Gk({refs:[Q],enabled:v&&G,handler:async()=>{y?await V():await H()}}),tl("div",{className:el("cleen",I),style:T,ref:Q,...B,children:G?Kk("div",{className:el("cleen-relative cleen-h-full",P?.container),style:D?.container,children:[tl(ye,{value:U,onChange:z=>{W(z.target.value),g?.(z.target.value)},autoFocus:!0,placeholder:c,className:P?.input?.className,classNames:{...P?.input?.classNames,inputContainer:el("cleen-border-primary hover:cleen-border-primary/60",P?.input?.classNames?.inputContainer)},...D?.input,...m,onFocus:z=>{m?.onFocus?.(z),C&&z.target.select()},disabled:k||m?.disabled,onKeyDown:X}),k&&tl("div",{className:el("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:D?.loaderContainer,children:b})]}):tl("div",{onClick:()=>{s&&(_||A(!0),r?.(!0))},className:el("cleen-min-h-6 cleen-text-foreground",s&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!w&&"cleen-text-muted-foreground",P?.preview),style:D?.preview,children:O})})});import{cn as rr}from"@cleen/ui-core";import{forwardRef as Yk,useEffect as Dv,useId as Qk,useMemo as Zk,useRef as Jk,useState as jk}from"react";import{jsx as Qo,jsxs as P0}from"react/jsx-runtime";var x0=Yk(function({name:t,id:o,value:n,defaultValue:l,label:r,labelTooltip:c,disabled:i,required:s,infoLabels:p,topRightElement:d,labelRightElement:g,textareaOverlay:m,onChange:v,minHeight:y,maxHeight:u=200,autoResize:b=!0,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,maxLengthLabel:P,minLengthLabel:T,className:D,classNames:B,style:N,styles:L,...M},S){let w=n!==void 0,[E,R]=jk(typeof l=="string"?l:""),k=Jk(null),O=S??k,F=w?n:E;Dv(()=>{w||R(n??(typeof l=="string"?l:""))},[n,l,w]);let A=z=>{z.style.height="auto";let q=Math.min(z.scrollHeight,u);z.style.height=`${q}px`},_=z=>{A(z.target)};Dv(()=>{!b||!k.current||A(k.current)},[b,F,u]);let G=z=>{z.preventDefault()},U=z=>{z.preventDefault();let q=z.dataTransfer?.getData("text/plain");w?v?.(`${n??""}${q}`):(R(pe=>`${pe}${q}`),v?.(`${E}${q}`))},W=z=>{let q=z.target.value;(!C||q.length<=C)&&(w||R(q),v?.(q),b&&_(z))},Q=Zk(()=>x&&T&&(F?.length??0)<x?T(x-(F?.length??0)):!C||!P||(F?.toString()?.length??0)/C<I?p?.subtitle:P?.(C-(F?.toString()?.length??0)),[F,C,I,p?.subtitle]),H=Qk(),V=!!(p?.errorMessage||p?.infoMessage||Q),X=V?`${H}-info`:void 0;return Qo("div",{className:rr("cleen",D),style:N,children:P0("div",{className:rr("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",B?.container),style:L?.container,children:[(r||g)&&P0("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[r&&Qo(ae,{htmlFor:o||t,required:s,tooltip:c,className:rr("cleen-w-full",B?.label?.className),classNames:B?.label?.classNames,...L?.label,children:r}),g&&Qo("div",{className:"cleen-ml-auto",children:g})]}),P0("div",{className:rr("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:L?.textareaContainer,children:[d&&Qo("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:d}),m&&Qo("div",{className:rr("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}),Qo("textarea",{id:o||t,name:t,ref:O,disabled:i,value:F,minLength:x,maxLength:C,"aria-invalid":p?.errorMessage?!0:void 0,"aria-describedby":X,className:rr("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:{...y&&{minHeight:`${y}px`},...L?.textarea},onFocus:z=>z.currentTarget.setSelectionRange(z.currentTarget.value.length,z.currentTarget.value.length),onDragOver:G,onDrop:U,...M,onChange:W})]}),V&&Qo(ne,{id:X,...p,subtitle:Q})]})})});import{cn as ol,useOutsideClick as e3}from"@cleen/ui-core";import{forwardRef as t3,useEffect as Fv,useImperativeHandle as o3,useMemo as n3,useRef as r3,useState as oi}from"react";import{jsx as nl,jsxs as a3}from"react/jsx-runtime";var S0=t3(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:l,onIsEditingChange:r,placeholder:c,placeholderText:i,canEdit:s=!0,onSave:p,onCancel:d,onChange:g,textAreaProps:m,blurOnOutsideClick:v=!0,saveOnBlur:y=!0,isLoading:u,customLoader:b=nl(re,{size:"md"}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:T,styles:D,...B},N){let L=t!==void 0,[M,S]=oi(o??""),w=L?t??"":M,[E,R]=oi(!1),k=u??E,O=n3(()=>typeof x=="function"?x(w):x||w||i||c,[w,x,c,i]),[F,A]=oi(n),_=l!==void 0,G=_?l:F,[U,W]=oi(w),Q=r3(null);o3(N,()=>({...Q.current,save:V,cancel:H})),Fv(()=>{L||S(o??"")},[o,L]),Fv(()=>{G||W(w)},[w,G]);let H=async()=>{_||A(!1),r?.(!1),W(w),await d?.()},V=async()=>{if(!k){if(w===U){await d?.(),_||A(!1),r?.(!1);return}R(!0),L||S(U);try{await p?.(U),_||A(!1),r?.(!1)}finally{R(!1)}}},X=async z=>{z.key==="Escape"&&(z.preventDefault(),z.stopPropagation(),await H()),z.key==="Enter"&&(z.metaKey||z.ctrlKey)&&(z.preventDefault(),await V()),m?.onKeyDown?.(z)};return e3({refs:[Q],enabled:v&&G,handler:async()=>{y?await V():await H()}}),nl("div",{className:ol("cleen",I),style:T,ref:Q,...B,children:G?a3("div",{className:ol("cleen-relative cleen-h-full",P?.container),style:D?.container,children:[nl(x0,{value:U,onChange:z=>{W(z),g?.(z)},autoFocus:!0,placeholder:c,className:P?.textArea?.className,classNames:{...P?.textArea?.classNames,textareaContainer:ol("cleen-border-primary hover:cleen-border-primary/60",P?.textArea?.classNames?.textareaContainer)},...D?.textArea,...m,onFocus:z=>{m?.onFocus?.(z),C&&z.target.select()},disabled:k||m?.disabled,onKeyDown:X}),k&&nl("div",{className:ol("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:D?.loaderContainer,children:b})]}):nl("div",{onClick:()=>{s&&(_||A(!0),r?.(!0))},className:ol("cleen-min-h-6 cleen-text-foreground cleen-whitespace-pre-wrap",s&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!w&&"cleen-text-muted-foreground",P?.preview),style:D?.preview,children:O})})});import"@cleen/ui-core";import{forwardRef as l3}from"react";import{Fragment as i3,jsx as w0,jsxs as s3}from"react/jsx-runtime";var c3=l3(function({header:t,color:o,children:n,description:l,onSave:r,isDescriptionHidden:c=!1,titleProps:i,descriptionProps:s,classNames:p,styles:d,...g},m){let v=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return w0(he,{ref:m,color:o,header:{...t,title:w0(C0,{value:v??"",onSave:async y=>{await r?.("title",y)},...p?.titleTextInput,...d?.titleTextInput,...i})},classNames:p,styles:d,...g,children:(!c||n)&&s3(i3,{children:[w0(S0,{value:l??"",onSave:async y=>{await r?.("description",y)},...s,textAreaProps:s?.textAreaProps,...p?.descriptionTextInput,...d?.descriptionTextInput}),n]})})});import{cn as rl}from"@cleen/ui-core";import{forwardRef as p3}from"react";import{jsx as ni}from"react/jsx-runtime";var d3=p3(function({type:t="button",label:o,onClick:n,containerRef:l,className:r,classNames:c,style:i,styles:s,disabled:p=!1,loaderOptions:d,isLoading:g=!1,variant:m="primary",children:v,...y},u){return ni("div",{className:rl("cleen",r),style:i,ref:l,children:ni("button",{type:t,ref:u,disabled:g||p,onClick:n,className:rl("cleen-size-full",c?.container),style:s?.container,...y,children:ni(he,{p:0,className:rl("cleen-size-full cleen-group",c?.card?.className),classNames:{...c?.card?.classNames,container:rl("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",jg[m],c?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":p||g}),childrenContainer:rl("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",c?.card?.classNames?.childrenContainer)},"aria-disabled":p||g,...s?.card,children:g?ni(re,{size:"lg",...d,color:d?.color||e2[m],...c?.loader,...s?.loader}):o||v})})})});import{cn as al,ColorHelpers as Av,formatAudioTime as Ov}from"@cleen/ui-core";import{useWavesurfer as m3}from"@wavesurfer/react";import{forwardRef as u3,useCallback as f3,useRef as h3}from"react";import{jsx as ll,jsxs as _v}from"react/jsx-runtime";var g3={waveColor:Av.getComputedColor("var(--cleen-neutral-200)"),progressColor:Av.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},y3=u3(function({url:t,options:o,className:n,classNames:l,style:r,styles:c,...i},s){let p=h3(null),{wavesurfer:d,isPlaying:g,isReady:m,currentTime:v}=m3({...g3,...o,container:p,url:t}),y=m?d?.getDuration()??0:0,u=f3(()=>{d?.playPause()},[d]);return ll("div",{ref:s,className:al("cleen",n),style:r,...i,children:_v("div",{className:al("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:[ll(ee,{type:"button",onClick:u,disabled:!m,"aria-label":g?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:al("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...c?.playButton,children:g?ll(ft,{className:"cleen-fill-current"}):ll(ht,{className:"cleen-fill-current"})}),ll("div",{ref:p,className:al("cleen-flex-1 cleen-min-w-0",l?.waveform),style:c?.waveform}),_v("span",{className:al("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",l?.timestamp),style:c?.timestamp,children:[Ov(v),"\xA0/\xA0",Ov(y)]})]})})});import{ColorHelpers as v3}from"@cleen/ui-core";var Vv=v3.getComputedColor("var(--cleen-primary)"),zv="rgba(var(--cleen-primary), 0.15)",Hv={waveColor:Vv,progressColor:Vv,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var Uv={startRecording:"Click to start recording"};import{cn as je,formatAudioTime as di,trimBlob as I3}from"@cleen/ui-core";import{useWavesurfer as C3}from"@wavesurfer/react";import{forwardRef as P3,useCallback as lr,useEffect as R0,useMemo as x3,useRef as Wv,useState as mi}from"react";function M0(e,t,o,n){return new(o||(o=Promise))((function(l,r){function c(p){try{s(n.next(p))}catch(d){r(d)}}function i(p){try{s(n.throw(p))}catch(d){r(d)}}function s(p){var d;p.done?l(p.value):(d=p.value,d instanceof o?d:new o((function(g){g(d)}))).then(c,i)}s((n=n.apply(e,t||[])).next())}))}var ri=class{constructor(){this.listeners={}}on(t,o,n){if(this.listeners[t]||(this.listeners[t]=new Set),n?.once){let l=(...r)=>{this.un(t,l),o(...r)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(o),()=>this.un(t,o)}un(t,o){var n;(n=this.listeners[t])===null||n===void 0||n.delete(o)}once(t,o){return this.on(t,o,{once:!0})}unAll(){this.listeners={}}emit(t,...o){this.listeners[t]&&this.listeners[t].forEach((n=>n(...o)))}},T0=class extends ri{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}},B0=class extends ri{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()}},k0=100,b3=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],ai=class e extends T0{constructor(t){var o,n,l,r,c,i;super(Object.assign(Object.assign({},t),{audioBitsPerSecond:(o=t.audioBitsPerSecond)!==null&&o!==void 0?o:128e3,scrollingWaveform:(n=t.scrollingWaveform)!==null&&n!==void 0&&n,scrollingWaveformWindow:(l=t.scrollingWaveformWindow)!==null&&l!==void 0?l:5,continuousWaveform:(r=t.continuousWaveform)!==null&&r!==void 0&&r,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 B0,this.subscriptions.push(this.timer.on("tick",(()=>{let s=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+s,this.emit("record-progress",this.duration)})))}static create(t){return new e(t||{})}renderMicStream(t){var o;let n=new AudioContext,l=n.createMediaStreamSource(t),r=n.createAnalyser();l.connect(r),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(r.fftSize=32);let c=r.frequencyBinCount,i=new Float32Array(c),s=0;this.wavesurfer&&((o=this.originalOptions)!==null&&o!==void 0||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let p=setInterval((()=>{var d,g,m,v;if(!this.isWaveformPaused){if(r.getFloatTimeDomainData(i),this.options.scrollingWaveform){let y=Math.floor((this.options.scrollingWaveformWindow||0)*k0),u=0;for(let C=0;C<c;C++){let x=Math.abs(i[C]);x>u&&(u=x)}this.dataWindow||(this.dataWindow=new Float32Array(y));let b=new Float32Array(y);if(this.dataWindow&&this.dataWindow.length>0){let C=y-1,x=this.dataWindow.slice(-C);b.set(x,0)}b[y-1]=u,this.dataWindow=b}else if(this.options.continuousWaveform){if(!this.dataWindow){let u=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*k0):((g=(d=this.wavesurfer)===null||d===void 0?void 0:d.getWidth())!==null&&g!==void 0?g:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(u)}let y=0;for(let u=0;u<c;u++){let b=Math.abs(i[u]);b>y&&(y=b)}if(s+1>this.dataWindow.length){let u=new Float32Array(2*this.dataWindow.length);u.set(this.dataWindow,0),this.dataWindow=u}this.dataWindow[s]=y,s++}else this.dataWindow=i;if(this.wavesurfer){let y=((v=(m=this.dataWindow)===null||m===void 0?void 0:m.length)!==null&&v!==void 0?v:0)/k0;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:y).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))})).catch((u=>{console.error("Error rendering real-time recording data:",u)}))}}}),10);return{onDestroy:()=>{clearInterval(p),l?.disconnect(),n?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return M0(this,void 0,void 0,(function*(){let o;this.micStream&&this.stopMic();try{o=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(l){throw new Error("Error accessing the microphone: "+l.message)}let n=this.renderMicStream(o);return this.micStream=n,this.unsubscribeDestroy=this.once("destroy",n.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",n.onEnd),this.stream=o,o}))}stopMic(){var t,o,n;(t=this.micStream)===null||t===void 0||t.onDestroy(),(o=this.unsubscribeDestroy)===null||o===void 0||o.call(this),(n=this.unsubscribeRecordEnd)===null||n===void 0||n.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((l=>l.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(t){return M0(this,void 0,void 0,(function*(){let o=this.stream||(yield this.startMic(t));this.dataWindow=null;let n=this.mediaRecorder||new MediaRecorder(o,{mimeType:this.options.mimeType||b3.find((c=>MediaRecorder.isTypeSupported(c))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=n,this.stopRecording();let l=[];n.ondataavailable=c=>{c.data.size>0&&l.push(c.data),this.emit("record-data-available",c.data)};let r=c=>{var i;let s=new Blob(l,{type:n.mimeType});this.emit(c,s),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(s),(i=this.wavesurfer)===null||i===void 0||i.load(this.recordedBlobUrl))};n.onpause=()=>r("record-pause"),n.onstop=()=>r("record-end"),n.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit("record-start")}))}getDuration(){return this.duration}isRecording(){var 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,o;this.isRecording()&&(this.isWaveformPaused=!0,(t=this.mediaRecorder)===null||t===void 0||t.requestData(),(o=this.mediaRecorder)===null||o===void 0||o.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 M0(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((t=>t.filter((o=>o.kind==="audioinput"))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}};var ii=class{constructor(){this.listeners={}}on(t,o,n){if(this.listeners[t]||(this.listeners[t]=new Set),n?.once){let l=(...r)=>{this.un(t,l),o(...r)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(o),()=>this.un(t,o)}un(t,o){var n;(n=this.listeners[t])===null||n===void 0||n.delete(o)}once(t,o){return this.on(t,o,{once:!0})}unAll(){this.listeners={}}emit(t,...o){this.listeners[t]&&this.listeners[t].forEach((n=>n(...o)))}},N0=class extends ii{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 Gv(e,t){let o=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[n,l]of Object.entries(t))if(n==="children"&&l)for(let[r,c]of Object.entries(l))c instanceof Node?o.appendChild(c):typeof c=="string"?o.appendChild(document.createTextNode(c)):o.appendChild(Gv(r,c));else n==="style"?Object.assign(o.style,l):n==="textContent"?o.textContent=l:o.setAttribute(n,l.toString());return o}function cl(e,t,o){let n=Gv(e,t||{});return o?.appendChild(n),n}function $v(e){let t=e,o=new Set;return{get value(){return t},set(n){Object.is(t,n)||(t=n,o.forEach((l=>l(t))))},update(n){this.set(n(t))},subscribe:n=>(o.add(n),()=>o.delete(n))}}function li(e,t){let o,n=()=>{o&&(o(),o=void 0),o=e()},l=t.map((r=>r.subscribe(n)));return n(),()=>{o&&(o(),o=void 0),l.forEach((r=>r()))}}function ar(e,t){let o=$v(null),n=l=>{o.set(l)};return e.addEventListener(t,n),o._cleanup=()=>{e.removeEventListener(t,n)},o}function Zo(e){let t=e._cleanup;typeof t=="function"&&t()}function ci(e,t={}){let{threshold:o=3,mouseButton:n=0,touchDelay:l=100}=t,r=$v(null),c=new Map,i=matchMedia("(pointer: coarse)").matches,s=()=>{},p=d=>{if(d.button!==n||(c.set(d.pointerId,d),c.size>1))return;let g=d.clientX,m=d.clientY,v=!1,y=Date.now(),u=e.getBoundingClientRect(),{left:b,top:C}=u,x=B=>{if(B.defaultPrevented||c.size>1||i&&Date.now()-y<l)return;let N=B.clientX,L=B.clientY,M=N-g,S=L-m;(v||Math.abs(M)>o||Math.abs(S)>o)&&(B.preventDefault(),B.stopPropagation(),v||(r.set({type:"start",x:g-b,y:m-C}),v=!0),r.set({type:"move",x:N-b,y:L-C,deltaX:M,deltaY:S}),g=N,m=L)},I=B=>{if(c.delete(B.pointerId),v){let N=B.clientX,L=B.clientY;r.set({type:"end",x:N-b,y:L-C})}s()},P=B=>{c.delete(B.pointerId),B.relatedTarget&&B.relatedTarget!==document.documentElement||I(B)},T=B=>{v&&(B.stopPropagation(),B.preventDefault())},D=B=>{B.defaultPrevented||c.size>1||v&&B.preventDefault()};document.addEventListener("pointermove",x),document.addEventListener("pointerup",I),document.addEventListener("pointerout",P),document.addEventListener("pointercancel",P),document.addEventListener("touchmove",D,{passive:!1}),document.addEventListener("click",T,{capture:!0}),s=()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",P),document.removeEventListener("pointercancel",P),document.removeEventListener("touchmove",D),setTimeout((()=>{document.removeEventListener("click",T,{capture:!0})}),10)}};return e.addEventListener("pointerdown",p),{signal:r,cleanup:()=>{s(),e.removeEventListener("pointerdown",p),c.clear(),Zo(r)}}}var si=class extends ii{constructor(t,o,n=0){var l,r,c,i,s,p,d,g,m,v;super(),this.totalDuration=o,this.numberOfChannels=n,this.element=null,this.minLength=0,this.maxLength=1/0,this.contentEditable=!1,this.subscriptions=[],this.updatingSide=void 0,this.isRemoved=!1,this.subscriptions=[],this.id=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=(r=t.drag)===null||r===void 0||r,this.resize=(c=t.resize)===null||c===void 0||c,this.resizeStart=(i=t.resizeStart)===null||i===void 0||i,this.resizeEnd=(s=t.resizeEnd)===null||s===void 0||s,this.color=(p=t.color)!==null&&p!==void 0?p:"rgba(0, 0, 0, 0.1)",this.minLength=(d=t.minLength)!==null&&d!==void 0?d: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=(v=t.contentEditable)!==null&&v!==void 0?v: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 o=this.start===this.end;(t=this.element)===null||t===void 0||t.setAttribute("part",`${o?"marker":"region"} ${this.id}`)}addResizeHandles(t){let o={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},n=cl("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},o),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},t),l=cl("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},o),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},t),r=ci(n,{threshold:1}),c=ci(l,{threshold:1}),i=li((()=>{let p=r.signal.value;p&&(p.type==="move"&&p.deltaX!==void 0?this.onResize(p.deltaX,"start"):p.type==="end"&&this.onEndResizing("start"))}),[r.signal]),s=li((()=>{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(),s(),r.cleanup(),c.cleanup()}))}removeResizeHandles(t){let o=t.querySelector('[part*="region-handle-left"]'),n=t.querySelector('[part*="region-handle-right"]');o&&t.removeChild(o),n&&t.removeChild(n)}initElement(){if(this.isRemoved)return null;let t=this.start===this.end,o=0,n=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(n=100/this.numberOfChannels,o=n*this.channelIdx);let l=cl("div",{style:{position:"absolute",top:`${o}%`,height:`${n}%`,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,o=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*t+"%",this.element.style.right=100*o+"%"}toggleCursor(t){var o;this.drag&&(!((o=this.element)===null||o===void 0)&&o.style)&&(this.element.style.cursor=t?"grabbing":"grab")}initMouseEvents(){let{element:t}=this;if(!t)return;let o=ar(t,"click"),n=ar(t,"mouseenter"),l=ar(t,"mouseleave"),r=ar(t,"dblclick"),c=ar(t,"pointerdown"),i=ar(t,"pointerup"),s=o.subscribe((b=>b&&this.emit("click",b))),p=n.subscribe((b=>b&&this.emit("over",b))),d=l.subscribe((b=>b&&this.emit("leave",b))),g=r.subscribe((b=>b&&this.emit("dblclick",b))),m=c.subscribe((b=>b&&this.toggleCursor(!0))),v=i.subscribe((b=>b&&this.toggleCursor(!1)));this.subscriptions.push((()=>{s(),p(),d(),g(),m(),v(),Zo(o),Zo(n),Zo(l),Zo(r),Zo(c),Zo(i)}));let y=ci(t),u=li((()=>{let b=y.signal.value;b&&(b.type==="start"?this.toggleCursor(!0):b.type==="move"&&b.deltaX!==void 0?this.onMove(b.deltaX):b.type==="end"&&(this.toggleCursor(!1),this.drag&&this.emit("update-end")))}),[y.signal]);this.subscriptions.push((()=>{u(),y.cleanup()})),this.contentEditable&&this.content&&(this.contentClickListener=b=>this.onContentClick(b),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener))}_onUpdate(t,o,n){var l;if(!(!((l=this.element)===null||l===void 0)&&l.parentElement))return;let{width:r}=this.element.parentElement.getBoundingClientRect(),c=t/r*this.totalDuration,i=o&&o!=="start"?this.start:this.start+c,s=o&&o!=="end"?this.end:this.end+c,p=n!==void 0;p&&this.updatingSide&&this.updatingSide!==o&&(this.updatingSide==="start"?i=n:s=n),i=Math.max(0,i),s=Math.min(this.totalDuration,s);let d=s-i;this.updatingSide=o;let g=d>=this.minLength&&d<=this.maxLength;i<=s&&(g||p)&&(this.start=i,this.end=s,this.renderPosition(),this.emit("update",o))}onMove(t){this.drag&&this._onUpdate(t)}onResize(t,o){this.resize&&(this.resizeStart||o!=="start")&&(this.resizeEnd||o!=="end")&&this._onUpdate(t,o)}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 o;return t?this.content||void 0:this.element instanceof HTMLElement?((o=this.content)===null||o===void 0?void 0:o.innerHTML)||void 0:""}setContent(t){var o;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(o=this.content)===null||o===void 0||o.remove(),t){if(typeof t=="string"){let n=this.start===this.end;this.content=cl("div",{style:{padding:`0.2em ${n?.2:.4}em`,display:"inline-block"},textContent:t})}else this.content=t;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=n=>this.onContentClick(n),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener)),this.content.setAttribute("part","region-content"),this.element.appendChild(this.content),this.emit("content-changed")}else this.content=void 0}setOptions(t){var o,n;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((o=t.start)!==null&&o!==void 0?o:this.start),this.end=this.clampPosition((n=t.end)!==null&&n!==void 0?n: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()}},pi=class e extends N0{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",(o=>{this.regions.forEach((n=>n._setTotalDuration(o)))})));let t=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(o=>{let n=this.regions.filter((l=>l.start<=o&&(l.end===l.start?l.start+.05:l.end)>=o));n.forEach((l=>{t.includes(l)||this.emit("region-in",l)})),t.forEach((l=>{n.includes(l)||this.emit("region-out",l)})),t=n})))}initRegionsContainer(){return cl("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 o=t.content,n=o.getBoundingClientRect(),l=this.regions.map((r=>{if(r===t||!r.content)return 0;let c=r.content.getBoundingClientRect();return n.left<c.left+c.width&&c.left<n.left+n.width?c.height:0})).reduce(((r,c)=>r+c),0);o.style.marginTop=`${l}px`}),10)}adjustScroll(t){var o,n;if(!t.element)return;let l=(n=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper())===null||n===void 0?void 0:n.parentElement;if(!l)return;let{clientWidth:r,scrollWidth:c}=l;if(c<=r)return;let i=l.getBoundingClientRect(),s=t.element.getBoundingClientRect(),p=s.left-i.left,d=s.right-i.left;p<0?l.scrollLeft+=p:d>r&&(l.scrollLeft+=d-r)}virtualAppend(t,o,n){let l=()=>{if(!this.wavesurfer)return;let r=this.wavesurfer.getWidth(),c=this.wavesurfer.getScroll(),i=o.clientWidth,s=this.wavesurfer.getDuration(),p=Math.round(t.start/s*i),d=p+(Math.round((t.end-t.start)/s*i)||1)>c&&p<c+r;d&&!n.parentElement?o.appendChild(n):!d&&n.parentElement&&n.remove()};setTimeout((()=>{if(!this.wavesurfer||!t.element)return;l();let r=this.wavesurfer.on("scroll",l),c=this.wavesurfer.on("zoom",l),i=this.wavesurfer.on("resize",l);this.subscriptions.push(r,c,i),t.once("remove",(()=>{r(),c(),i()}))}),0)}saveRegion(t){if(!t.element)return;this.virtualAppend(t,this.regionsContainer,t.element),this.avoidOverlapping(t),this.regions.push(t);let o=[t.on("update",(n=>{n||this.adjustScroll(t),this.emit("region-update",t,n)})),t.on("update-end",(n=>{this.avoidOverlapping(t),this.emit("region-updated",t,n)})),t.on("play",(n=>{var l;(l=this.wavesurfer)===null||l===void 0||l.play(t.start,n)})),t.on("click",(n=>{this.emit("region-clicked",t,n)})),t.on("dblclick",(n=>{this.emit("region-double-clicked",t,n)})),t.on("content-changed",(()=>{this.emit("region-content-changed",t)})),t.once("remove",(()=>{o.forEach((n=>n())),this.regions=this.regions.filter((n=>n!==t)),this.emit("region-removed",t)}))];this.subscriptions.push(...o),this.emit("region-created",t)}addRegion(t){var o,n;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let l=this.wavesurfer.getDuration(),r=(n=(o=this.wavesurfer)===null||o===void 0?void 0:o.getDecodedData())===null||n===void 0?void 0:n.numberOfChannels,c=new si(t,l,r);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,o=3){var n;let l=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper();if(!(l&&l instanceof HTMLElement))return()=>{};let r=null,c=0,i=0,s=ci(l,{threshold:o}),p=li((()=>{var d,g;let m=s.signal.value;if(m)if(m.type==="start"){if(c=m.x,!this.wavesurfer)return;let v=this.wavesurfer.getDuration(),y=(g=(d=this.wavesurfer)===null||d===void 0?void 0:d.getDecodedData())===null||g===void 0?void 0:g.numberOfChannels,{width:u}=this.wavesurfer.getWrapper().getBoundingClientRect();i=c/u*v;let b=m.x/u*v,C=(m.x+5)/u*v;r=new si(Object.assign(Object.assign({},t),{start:b,end:C}),v,y),this.emit("region-initialized",r),r.element&&this.regionsContainer.appendChild(r.element)}else m.type==="move"&&m.deltaX!==void 0?r&&r._onUpdate(m.deltaX,m.x>c?"end":"start",i):m.type==="end"&&r&&(this.saveRegion(r),r.updatingSide=void 0,r=null)}),[s.signal]);return()=>{p(),s.cleanup()}}clearRegions(){this.regions.slice().forEach((t=>t.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as w3,jsx as Fe,jsxs as il}from"react/jsx-runtime";var S3=P3(function({onFinalize:t,recordOptions:o,options:n,labels:l=Uv,className:r,classNames:c,style:i,styles:s,...p},d){let g=Wv(null),[m,v]=mi("idle"),[y,u]=mi(null),[b,C]=mi(null),[x,I]=mi(!1),P=Wv("idle");P.current=m;let T=x3(()=>[ai.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...o}),pi.create()],[]),[D,B]=T,{wavesurfer:N,isPlaying:L,isReady:M,currentTime:S}=C3({...Hv,...n,container:g,plugins:T}),w=M?N?.getDuration()??0:0;R0(()=>{let G=[D.on("record-start",()=>v("recording")),D.on("record-end",U=>{v("recorded"),u(U)}),B.on("region-clicked",(U,W)=>{W.stopPropagation(),U.play(!0)})];return()=>G.forEach(U=>U?.())},[B,D]),R0(()=>N?N.on("ready",()=>{if(P.current!=="recorded")return;let U=N.getDuration();B.clearRegions();let W=B.addRegion({start:0,end:U,color:n?.regionColor??zv,drag:!1,resize:!0});C({start:W.start,end:W.end})}):void 0,[N,B,n]),R0(()=>B.on("region-updated",U=>{C({start:U.start,end:U.end})}),[B]);let E=lr(async()=>{await D.startRecording()},[D]),R=lr(()=>{D.stopRecording()},[D]),k=lr(()=>{N?.playPause()},[N]),O=lr(async()=>{if(!(!y||!b||!N)){I(!0);try{let G=await I3(y,b.start,b.end),U=URL.createObjectURL(G);u(G),N.load(U)}finally{I(!1)}}},[y,b,N]),F=lr(()=>{B.clearRegions(),N?.empty(),u(null),C(null),v("idle")},[N,B]),A=lr(()=>{if(y){let G=URL.createObjectURL(y);t?.(y,G)}},[t,y]),_=!b||b.start<=0&&b.end>=w;return Fe("div",{ref:d,className:je("cleen wavesurfer-handle",r),style:i,...p,children:il("div",{className:je("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",c?.container),style:s?.container,children:[m==="idle"&&il(w3,{children:[Fe("button",{type:"button",onClick:E,"aria-label":"Start recording",className:je("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.startButton),style:s?.startButton,children:Fe(Pa,{className:"cleen-size-8 cleen-text-primary"})}),Fe("p",{className:je("cleen-text-neutral-600 cleen-text-sm cleen-select-none",c?.startLabel),style:s?.startLabel,children:l.startRecording})]}),m==="recording"&&Fe("button",{type:"button",onClick:R,"aria-label":"Stop recording",className:je("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.stopButton),style:s?.stopButton,children:Fe(Ha,{className:"cleen-size-8 cleen-text-primary"})}),Fe("div",{ref:g,className:je("cleen-w-full cleen-min-w-0 cleen-waveform",m==="idle"&&"cleen-hidden",c?.waveform),style:s?.waveform}),m==="recorded"&&il("div",{className:je("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",c?.recordedContainer),style:s?.recordedContainer,children:[Fe(ee,{type:"button",onClick:k,disabled:!M,"aria-label":L?"Pause":"Play",className:c?.playPauseButton?.className,classNames:{...c?.playPauseButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.playPauseButton?.classNames?.container)},...s?.playPauseButton,children:L?Fe(ft,{className:"cleen-fill-current"}):Fe(ht,{className:"cleen-fill-current"})}),il("span",{className:je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.timestamp),style:s?.timestamp,children:[di(S),"\xA0/\xA0",di(w)]}),Fe("span",{className:"cleen-flex-1"}),!_&&b&&il("span",{className:je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.trimmedTimestamp),style:s?.trimmedTimestamp,children:[di(b.start),"\u2013",di(b.end)]}),Fe(ee,{type:"button",onClick:F,variant:"secondary","aria-label":"Discard recording",className:c?.discardButton?.className,classNames:{...c?.discardButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.discardButton?.classNames?.container)},...s?.discardButton,children:Fe(lt,{className:"cleen-text-error"})}),Fe(ee,{type:"button",onClick:O,disabled:_||x||!M,"aria-label":"Apply trim",variant:"secondary",className:c?.trimButton?.className,classNames:{...c?.trimButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.trimButton?.classNames?.container)},...s?.trimButton,children:Fe(Ea,{})}),Fe(ee,{type:"button",onClick:A,"aria-label":"Finalize recording",className:c?.finalizeButton?.className,classNames:{...c?.finalizeButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.finalizeButton?.classNames?.container)},...s?.finalizeButton,children:Fe(zt,{})})]})]})})});import{cn as ui}from"@cleen/ui-core";import{forwardRef as M3,useMemo as k3}from"react";var qv={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 sl}from"react/jsx-runtime";var fi=M3(function({title:t,name:o,src:n,alt:l,size:r="md",initialsLength:c=2,isSelected:i=!1,showBorder:s=!1,fallback:p=sl($a,{}),className:d,classNames:g,style:m,styles:v,onClick:y,...u},b){let C=k3(()=>(c===2?o?.split(" ").map(x=>x.charAt(0).toUpperCase()).join("").slice(0,c):o?.charAt(0).toUpperCase())||p,[o,c,p]);return sl("div",{className:ui("cleen",d),style:m,ref:b,...u,children:sl("div",{onClick:y,className:ui("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof r=="string"&&qv[r],{"cleen-border-2 cleen-border-white":s,"cleen-cursor-pointer":!!y},g?.avatar,s&&i&&["cleen-border-primary",g?.avatarSelected]),style:{...typeof r=="number"&&{width:r,height:r,fontSize:r*.4,lineHeight:`${r}px`},...v?.avatar,...s&&i&&v?.avatarSelected},title:t||o,children:n?sl("img",{src:n,alt:l||o,className:ui("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",g?.image),style:v?.image}):sl("span",{className:ui("cleen-select-none cleen-text-neutral-700",g?.fallback),style:v?.fallback,children:C})})})});import{cn as Xv}from"@cleen/ui-core";import{forwardRef as T3}from"react";import{jsx as L0,jsxs as N3}from"react/jsx-runtime";var B3=T3(function({avatars:t,size:o="md",selectedAvatars:n=[],onAvatarToggle:l,gap:r=4,maxVisible:c,maxExtra:i=99,showBorder:s=!0,initialsLength:p,fallback:d,className:g,classNames:m,style:v,styles:y,...u},b){let C=c?t?.slice(0,c):t,x=c&&t&&t.length>c?Math.min(t.length-c,i):0;return L0("div",{className:Xv("cleen",g),style:v,ref:b,...u,children:N3("div",{className:Xv("cleen-flex cleen-items-center",m?.row),style:{gap:r,...y?.row},children:[C?.map((I,P)=>{let T=n.includes(I?.id??"");return L0(fi,{name:I.name,src:I.src,size:o,isSelected:T,showBorder:s,initialsLength:p,fallback:d,onClick:()=>l?.(I.id??""),...m?.avatar,style:{zIndex:C.length-P,...y?.avatar?.style},styles:y?.avatar?.styles,...I},I.id||P)}),x>0&&L0(fi,{size:o,fallback:`+${x}`,...m?.extra,...y?.extra})]})})});import{cn as Io}from"@cleen/ui-core";import{forwardRef as R3}from"react";import{Link as Kv}from"react-router-dom";import{jsx as pl,jsxs as hi}from"react/jsx-runtime";var L3=R3(function({root:t={path:"/",icon:pl(fa,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:o,className:n,classNames:l,style:r,styles:c,...i},s){return!o||o.length===0?null:pl("div",{className:Io("cleen",n),style:r,ref:s,...i,children:pl("nav",{className:Io("cleen-hidden sm:cleen-flex",l?.container),style:c?.container,"aria-label":"Breadcrumb",children:hi("ol",{role:"list",className:Io("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:c?.list,children:[t&&pl("li",{className:Io("cleen-flex cleen-items-center",l?.rootItem),style:c?.rootItem,children:hi(Kv,{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]})}),o.map(({path:p,icon:d,label:g,id:m},v)=>{let y=v===o.length-1,u=g||p.charAt(0).toUpperCase()+p.slice(1);return hi("li",{className:Io("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:c?.item,children:[(t||!t&&v!==0)&&pl(mt,{className:Io("cleen-h-5 cleen-w-5 cleen-text-neutral-300",l?.chevron),style:c?.chevron,"aria-hidden":"true"}),hi(Kv,{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",y?"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":y?"page":void 0,children:[d,u]})]},m||p)})]})})})});var gi=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:o,max:n}=t,l=new Date,r=new Date(l.getFullYear(),l.getMonth(),l.getDate());if(o){let c=o==="today"?r:o;if(c>=e)return c}if(n){let c=n==="today"?r:n;if(c<=e)return c}return e};import{cn as yi}from"@cleen/ui-core";import{forwardRef as E3,useState as E0}from"react";import{DayPicker as Yv,MonthGrid as D3}from"react-day-picker";import{Fragment as F3,jsx as Jo,jsxs as F0}from"react/jsx-runtime";var D0=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),A0=E3(function({label:t,labelTooltip:o,infoLabels:n,required:l,withDateInput:r=!1,withTodayButton:c=!1,selected:i,onSelect:s,month:p,labels:d,className:g,style:m,classNames:v,styles:y,mode:u="single",min:b,max:C,disabled:x,disabledDates:I,components:P,...T},D){let B=i!==void 0,N=u==="single",[L,M]=E0(),[S,w]=E0(),E=B?i:N?L:S,[R,k]=E0(p),O=(_,G)=>{B||(N&&(_===void 0||_ instanceof Date)?M(_):N||w(_)),s?.(_,G)},F={MonthGrid:_=>F0(F3,{children:[(c||r)&&F0("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[r&&Jo(ye,{value:u==="single"?D0(E):E?.from||E?.to?`${D0(E?.from)??"..."} - ${D0(E?.to)??"..."}`:void 0,placeholder:d?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),c&&Jo(ee,{variant:"secondary",onClick:()=>k(new Date),children:d?.today??"Today"})]}),Jo(D3,{..._})]}),...P},A={navLayout:"around",...T,className:yi("cleen-text-foreground",v?.calendar?.className),classNames:{...v?.calendar?.classNames,nav:yi("cleen-text-error",v?.calendar?.classNames?.nav)},disabled:b||C?{before:b==="today"?new Date:b,after:C==="today"?new Date:C}:I||x,components:F,month:R,onMonthChange:k,...y?.calendar};return F0("div",{ref:D,className:yi("cleen",g),style:m,children:[t&&Jo(ae,{required:l,tooltip:o,className:yi("cleen-mb-1.5",v?.label?.className),classNames:v?.label?.classNames,...y?.label,children:t}),N?Jo(Yv,{mode:"single",...A,selected:E,onSelect:(_,G)=>{if(b||C){O(gi(_,{min:b,max:C}),G);return}O(_,G)}}):Jo(Yv,{mode:"range",...A,selected:E,onSelect:(_,G)=>{if(b||C){O({from:gi(_?.from,{min:b,max:C}),to:gi(_?.to,{min:b,max:C})},G);return}O(_,G)}}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&Jo(ne,{...n})]})});import{cn as cr,useOutsideClick as A3,usePositionClose as O3,ZIndex as _3}from"@cleen/ui-core";import{forwardRef as V3,useEffect as z3,useRef as Qv,useState as H3}from"react";import{createPortal as U3}from"react-dom";import{jsx as jo,jsxs as Zv}from"react/jsx-runtime";var dl=V3(function({type:t="button",required:o,label:n,title:l,titleTooltip:r,disabled:c=!1,leftIcon:i,rightIcon:s=jo(ta,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:p=!0,fullWidthDropdown:d,offset:g=4,isOpen:m,onOpenChange:v,keepOpenOnClickContent:y=!0,zIndex:u=_3.DROPDOWN,infoLabels:b,className:C,classNames:x,style:I,styles:P,children:T,...D},B){let[N,L]=H3(!1),M=m!==void 0?m:N,S=Qv(null),w=Qv(null),{positionStyles:E,isMounted:R}=O3({triggerRef:w,targetRef:S,position:"bottom-left",isOpen:M,offset:g});A3({refs:[S,w],handler:()=>{L(!1),v?.(!1)},enabled:M}),z3(()=>{let F=A=>{A.key==="Escape"&&M&&(L(!1),v?.(!1))};return document.addEventListener("keydown",F),()=>{document.removeEventListener("keydown",F)}},[M,v]);let k=()=>{let F=!M;m===void 0&&L(F),v?.(F)},O=()=>{y||(m===void 0&&L(!1),v?.(!1))};return Zv("div",{className:cr("cleen",C),style:I,ref:B,...D,children:[l&&jo(ae,{required:o,tooltip:r,className:cr("cleen-mb-1.5",x?.title?.className),classNames:x?.title?.classNames,...P?.title,children:l}),jo("div",{className:cr("cleen-inline-block cleen-relative",p&&"cleen-w-full"),ref:w,children:Zv("button",{type:t,className:cr("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":M,onClick:k,children:[i,jo("div",{className:cr("cleen-flex-1 cleen-text-left",x?.label),style:P?.label,children:n}),s]})}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&jo(ne,{...b}),T&&M&&U3(jo("div",{className:"cleen",children:jo("div",{ref:S,className:cr("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!R},x?.dropdown),style:{zIndex:u,top:`${E.top}px`,left:`${E.left}px`,minWidth:d&&w.current?.offsetWidth?`${w.current.offsetWidth}px`:void 0,...P?.dropdown},onClick:O,children:T})}),document.body)]})});import{cn as Jv}from"@cleen/ui-core";import{forwardRef as G3,useMemo as $3,useState as vi}from"react";import{jsx as en,jsxs as jv}from"react/jsx-runtime";var W3=G3(function({label:t,placeholder:o,infoLabels:n,required:l,selected:r,onSelect:c,onSelectInternal:i,leftIcon:s,rightIcon:p=en(Qr,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:d,style:g,classNames:m,styles:v,mode:y="single",min:u,max:b,disabled:C,disabledDates:x,...I},P){let T=r!==void 0,D=y==="single",[B,N]=vi(!1),[L,M]=vi(),[S,w]=vi(),E=T?r:D?L:S,[R,k]=vi(),O=A=>{T||(D&&(A===void 0||A instanceof Date)?M(A):D||w(A)),c?.(A)},F=$3(()=>{if(!E)return o;if(D)return E?.toLocaleDateString();{let A=E;if(A.from&&A.to)return`${A.from.toLocaleDateString()} - ${A.to.toLocaleDateString()}`;if(A.from)return A.from.toLocaleDateString()}return o},[o,E,D]);return jv("div",{ref:P,className:Jv("cleen",d),style:g,children:[en(dl,{title:t,label:F,isOpen:B,onOpenChange:A=>{k(E),N(A)},leftIcon:s,rightIcon:p,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:Jv("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:l,disabled:C,...v?.dropdown,children:en(he,{footer:{hasDivider:!0,content:jv("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[en(ee,{variant:"secondary",onClick:()=>N(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),en(ee,{onClick:()=>{O(R),N(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...v?.card,children:en(A0,{mode:y,...I,selected:R,onSelect:(A,_)=>k(i?.(A,_)??A),min:u,max:b,disabledDates:x,...m?.calendar,...v?.calendar})})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&en(ne,{...n})]})});import"react";import{cn as ir}from"@cleen/ui-core";import q3 from"embla-carousel-auto-scroll";import X3 from"embla-carousel-autoplay";import K3 from"embla-carousel-react";import{forwardRef as Y3,useEffect as Q3,useMemo as eb,useState as tb}from"react";import{jsx as tn,jsxs as J3}from"react/jsx-runtime";var Z3=Y3(function({options:t,slideAmount:o=3,slideSize:n,prevBtn:l,nextBtn:r,autoPlay:c=!1,autoPlayOptions:i,autoScroll:s=!1,autoScrollOptions:p,children:d,className:g,classNames:m,style:v,styles:y,...u},b){let C=eb(()=>{let w=[];return c&&w.push(X3(i)),s&&w.push(q3(p)),w},[c,s,i,p]),[x,I]=K3({skipSnaps:!0,...t},C),[P,T]=tb(!0),[D,B]=tb(!0),N=()=>I?.scrollPrev(),L=()=>I?.scrollNext(),M=w=>{T(!w?.canScrollPrev()),B(!w?.canScrollNext())};Q3(()=>{I&&(M(I),I.on("reInit",M),I.on("select",M))},[I]);let S=eb(()=>n?`${n}%`:`${100/o}%`,[n,o]);return tn("div",{className:ir("cleen",g),style:v,ref:b,...u,children:J3("div",{className:ir("cleen-flex cleen-gap-2",m?.container),style:y?.container,children:[tn("button",{className:ir("cleen-text-foreground",m?.prevBtn,P&&"cleen-opacity-50"),onClick:N,disabled:P,style:y?.prevBtn,children:l||tn(Ht,{})}),tn("div",{className:ir("cleen-flex-1 cleen-overflow-hidden",m?.viewport),style:y?.viewport,ref:x,children:tn("div",{className:ir("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:{...y?.list,"--cleen-carousel-slide-size":S},children:d})}),tn("button",{className:ir("cleen-text-foreground",m?.nextBtn,D&&"cleen-opacity-50"),onClick:L,disabled:D,style:y?.nextBtn,children:r||tn(mt,{})})]})})});import{cn as on}from"@cleen/ui-core";import{forwardRef as j3,useEffect as rb,useId as eT,useRef as tT,useState as oT}from"react";var ob={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)]"},nb={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 nT,jsx as Pt,jsxs as bi}from"react/jsx-runtime";var ml=j3(function({id:t,name:o,required:n,checked:l,defaultChecked:r=!1,className:c,classNames:i,style:s,styles:p,onChange:d,disabled:g,title:m,titleTooltip:v,label:y,sublabel:u,variant:b="primary",allowIndeterminate:C=!1,fullTriggerArea:x=!1,infoLabels:I,inputRef:P,...T},D){let B=eT(),N=t??B,L=typeof l=="boolean"||l===null,[M,S]=oT(r),w=tT(null),E=A=>{w.current=A,P&&(P.current=A)};rb(()=>{L||S(r)},[r,L]);let R=L?l:M;rb(()=>{w.current&&(w.current.indeterminate=C&&R===null)},[C,R]);let k=A=>{let _;if(C)switch(R){case!0:_=null;break;case!1:_=!0;break;default:_=!1;break}else _=!R;L||S(_),d?.({...A,target:{...A.target,checked:_}})},O=bi(nT,{children:[bi("label",{className:on("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",{[ob[b]]:R,[nb[b]]:R===null},g&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:p?.checkbox,children:[Pt("input",{ref:E,type:"checkbox",disabled:g,className:"cleen-sr-only",checked:R===!0,onChange:k,id:N,name:o,...T}),R===null?Pt("span",{className:"cleen-block cleen-m-auto cleen-border cleen-border-white cleen-rounded-sm cleen-w-2.5 cleen-h-0.5 cleen-size-3"}):R?Pt(zt,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(y||u)&&bi("div",{children:[Pt("label",{htmlFor:N,className:on("cleen-block cleen-text-foreground",i?.label),style:p?.label,children:y}),Pt("label",{htmlFor:N,className:on("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:p?.sublabel,children:u})]})]}),F={className:on("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":g},i?.checkboxContainer),style:p?.checkboxContainer};return Pt("div",{className:on("cleen",c),style:s,ref:D,children:bi("div",{className:on(i?.container),style:p?.container,children:[m&&Pt(ae,{htmlFor:N,required:n,tooltip:v,className:on("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...p?.title,children:m}),x?Pt("div",{...F,onClick:A=>{A.target instanceof Element&&!A.target.closest("label")&&w.current?.click()},children:O}):Pt("div",{...F,children:O}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&Pt(ne,{...I})]})})});import{cn as ul}from"@cleen/ui-core";import{forwardRef as rT,useId as aT,useMemo as lT,useState as cT}from"react";import{jsx as sr,jsxs as sT}from"react/jsx-runtime";var iT=rT(function({id:t,required:o,label:n,labelTooltip:l,checkboxes:r,allowIndeterminate:c,infoLabels:i,requiresAtLeastOneOptions:s,classNames:p,styles:d,onChange:g,...m},v){let y=aT(),u=t??y,[b,C]=cT(!1),x=lT(()=>s&&b&&r?.every(P=>P.checked===!1)?s.title:i?.errorMessage,[s,i?.errorMessage,r,b]),I=(P,T)=>{let D={...T,checked:P.target.checked},B;r&&T?.id&&(B=[...r].map(N=>N.id===T.id?D:N)),g?.(D,B),C(!0)};return sr("div",{className:ul("cleen"),...m,ref:v,children:sT("div",{className:ul("cleen-flex cleen-flex-col cleen-gap-2",p?.container),style:d?.container,children:[n&&sr(ae,{htmlFor:u,required:o,tooltip:l,className:ul("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...d?.label,children:n}),sr("div",{className:ul("cleen-flex cleen-flex-col cleen-gap-3",p?.checkboxes),style:d?.checkboxes,children:r?.map((P,T)=>sr("div",{className:ul("cleen-flex",p?.checkboxContainer),style:d?.checkboxContainer,children:sr(ml,{allowIndeterminate:c,...P,id:`${u}-${T}`,fullTriggerArea:!0,onChange:D=>I(D,P)})},P.id))}),(x||i?.infoMessage||i?.subtitle)&&sr(ne,{...i,errorMessage:x})]})})});import{cn as nn}from"@cleen/ui-core";import{forwardRef as pT,useState as ab}from"react";import{jsx as pr,jsxs as lb}from"react/jsx-runtime";var cb=pT(({sections:e,defaultOpenIndex:t,allowExpandAll:o=!1,className:n,classNames:l,style:r,styles:c,...i},s)=>{let[p,d]=ab(t??null),[g,m]=ab(()=>new Set(e.map((u,b)=>b))),v=u=>o?g.has(u):p===u,y=(u,b)=>{b.onClick?.(),b.items?.length&&(o?m(C=>{let x=new Set(C);return x.has(u)?x.delete(u):x.add(u),x}):d(p===u?null:u))};return pr("div",{ref:s,className:nn("cleen",n),style:{...r,width:"100%"},...i,children:pr("div",{className:nn("cleen-w-full",l?.container),style:c?.container,children:e.map((u,b)=>lb("div",{className:nn("cleen-mb-3",l?.section),style:c?.section,children:[lb("div",{onClick:()=>y(b,u),className:nn("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:[pr("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:u?.title}),u?.items?.length?pr(Ut,{className:nn("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!v(b)})}):null]}),v(b)&&u?.items&&pr("div",{className:nn("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",l?.sectionBody),style:c?.sectionBody,children:u?.items?.map((C,x)=>pr("div",{className:nn("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))})]},u?.key??b))})})});cb.displayName="Collapsible";function O0(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 ib(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as Ii}from"@cleen/ui-core";import{useEffect as dT,useState as mT}from"react";import{HexAlphaColorPicker as uT,RgbaColorPicker as fT}from"react-colorful";import{jsx as dr,jsxs as gT}from"react/jsx-runtime";var sb="rgba(0, 0, 0, 1)",pb="#000000ff",hT=({required:e,value:t,defaultValue:o,onChange:n,colorModel:l="rgba",disabled:r,label:c,labelTooltip:i,className:s,classNames:p,style:d,styles:g,infoLabels:m,...v})=>{let y=t!==void 0,u=o??(l==="hexa"?pb:sb),[b,C]=mT(u),x=y?t:b;dT(()=>{y||C(o??(l==="hexa"?pb:sb))},[o,y,l]);let I=T=>{let D=ib(T);y||C(D),n?.(D)},P=T=>{y||C(T),n?.(T)};return dr("div",{className:Ii("cleen",s),style:d,...v,children:gT("div",{className:Ii("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",p?.container),style:g?.container,children:[c&&dr(ae,{required:e,tooltip:i,className:Ii("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...g?.label,children:c}),dr("div",{className:Ii("cleen-rounded-md",r&&"cleen-opacity-50 cleen-pointer-events-none",p?.picker),style:g?.picker,children:l==="hexa"?dr(uT,{color:x,onChange:P}):dr(fT,{color:O0(x),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&dr(ne,{...m})]})})};import{cn as ct}from"@cleen/ui-core";import{forwardRef as yT,useMemo as vT,useState as bT}from"react";var _0=(e="")=>e.replace(/\D+/g,""),db=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function mb(e,t="other"){if(!e)return e;let o=_0(e),n;switch(t){case"amex":n=`${o.slice(0,4)} ${o.slice(4,10)} ${o.slice(10,15)}`;break;case"dinersclub":n=`${o.slice(0,4)} ${o.slice(4,10)} ${o.slice(10,14)}`;break;default:n=`${o.slice(0,4)} ${o.slice(4,8)} ${o.slice(8,12)} ${o.slice(12,19)}`;break}return n.trim()}var ub=e=>_0(e);function fb(e){let t=_0(e);if(!t||parseInt(t.charAt(0),10)>=2)return"";if(t.length<2)return t;let o=t.slice(0,2);if(parseInt(o,10)<1||parseInt(o,10)>12)return t.slice(0,1);if(t.length<3)return o;if(t.length===3)return`${o}/${t.charAt(2)}`;let n=t.length===6?t.slice(-2):t.slice(2,4),l=new Date,r=l.getFullYear()%100,c=l.getMonth()+1;return parseInt(n,10)<r||parseInt(n,10)===r&&parseInt(o,10)<c?`${o}/${n.charAt(0)}`:`${o}/${n}`}import{jsx as Co,jsxs as hb}from"react/jsx-runtime";var IT=yT(function({labels:t,value:o,isLoading:n,errors:l,className:r,classNames:c,style:i,styles:s,infoLabels:p,onChange:d,onFieldFocus:g,...m},v){let[y,u]=bT({number:"",expiry:"",cvc:""}),b=!!o,C=b?o:y,x=vT(()=>db(C.number),[C.number]),I=T=>{let{name:D}=T.target,{value:B}=T.target;switch(D){case"number":B=mb(B,x);break;case"expiry":B=fb(B);break;case"cvc":B=ub(B);break;default:return}b||u(N=>({...N,[D]:B})),d?.({...o,[D]:B})},P=T=>{g?.(T.target.name)};return Co("div",{className:ct("cleen",r),style:i,ref:v,...m,children:Co("div",{className:ct("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:s?.container,children:n?Co("div",{className:ct("cleen-py-4",c?.loader?.container),style:s?.loader?.container,children:Co(re,{...c?.loader?.component,...s?.loader?.component})}):hb("form",{className:ct("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",c?.form?.container),style:s?.form?.container,onSubmit:T=>T.preventDefault(),children:[Co(ye,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:ct("cleen-w-full",c?.form?.cardNumber?.className),classNames:{...c?.form?.cardNumber?.classNames,inputContainer:ct({"cleen-border-error":l?.number},c?.form?.cardNumber?.classNames?.inputContainer),input:ct({"cleen-text-error":l?.number},c?.form?.cardNumber?.classNames?.input)},...s?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:C.number,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.number}}),hb("div",{className:ct("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",c?.form?.cvcExpiryContainer),style:s?.form?.cvcExpiryContainer,children:[Co(ye,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:c?.form?.expiry?.className,classNames:{...c?.form?.expiry?.classNames,inputContainer:ct({"cleen-border-error":l?.expiry},c?.form?.expiry?.classNames?.inputContainer),input:ct({"cleen-text-error":l?.expiry},c?.form?.expiry?.classNames?.input)},...s?.form?.expiry,placeholder:"00/00",value:C.expiry,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.expiry}}),Co(ye,{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:ct({"cleen-border-error":l?.cvc},c?.form?.cvc?.classNames?.inputContainer),input:ct({"cleen-text-error":l?.cvc},c?.form?.cvc?.classNames?.input)},...s?.form?.cvc,placeholder:"***",value:C.cvc,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.cvc}})]}),(p?.infoMessage||p?.errorMessage||p?.subtitle)&&Co(ne,{...p})]})})})});import{cn as gb}from"@cleen/ui-core";import{jsx as yb}from"react/jsx-runtime";var gt=({isHorizontal:e=!0,className:t,classNames:o,style:n,styles:l,...r})=>yb("div",{className:gb("cleen",t),style:n,children:yb("div",{className:gb("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",o?.container),style:l?.container,...r})});import{cn as Po,useBodyScrollLock as CT,useCleenOverlays as vb,ZIndex as PT}from"@cleen/ui-core";import{forwardRef as xT,useCallback as ST,useEffect as V0,useId as wT,useRef as MT,useState as bb}from"react";import{createPortal as kT}from"react-dom";import{jsx as mr,jsxs as Ci}from"react/jsx-runtime";var TT={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},Ib=300,z0=xT(function({title:t,subtitle:o,children:n,headerCloseBtn:l,footer:r,isOpen:c=!1,onClose:i,closeOnOverlayClick:s=!0,position:p="right",zIndex:d=PT.DRAWER,size:g="lg",p:m,gap:v,className:y,classNames:u,style:b,styles:C,...x},I){let[P,T]=bb(c),[D,B]=bb(c),N=MT(null),L=wT(),{addOverlay:M,removeOverlay:S}=vb(),w=ST(()=>{T(!1),setTimeout(()=>i?.(),Ib)},[i]);return V0(()=>{if(c){B(!0);let E=setTimeout(()=>T(!0),1);return()=>clearTimeout(E)}else{T(!1);let E=setTimeout(()=>B(!1),Ib);return()=>clearTimeout(E)}},[c]),V0(()=>{if(c)return M(L),()=>S(L)},[M,S,c,L]),V0(()=>{let E=R=>{let{overlays:k}=vb.getState();R.key==="Escape"&&k[k.length-1]===L&&w()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[w,L]),CT(D),D?kT(Ci("div",{className:Po("cleen",y),style:b,ref:I,...x,children:[mr("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",u?.overlay),onClick:()=>{s&&w()},style:{zIndex:d-1,...C?.overlay},"aria-hidden":"true"}),Ci("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",u?.drawer),style:{zIndex:d,width:typeof g=="number"?g:TT[g],...v!==void 0&&{gap:v},...C?.drawer},ref:N,children:[Ci("div",{className:Po("cleen-flex cleen-justify-between cleen-items-center cleen-px-6 cleen-pt-6 cleen-w-full",u?.header),style:{...m!==void 0&&{paddingInline:m,paddingTop:m},...C?.header},children:[Ci("div",{className:"cleen-flex cleen-flex-col",children:[mr("span",{className:Po("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",u?.title),style:C?.title,children:t}),mr("span",{className:Po("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",u?.subtitle),style:C?.subtitle,children:o})]}),l||mr(He,{onClick:w,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),mr("div",{className:Po("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",u?.content),style:{...m!==void 0&&{paddingInline:m},...C?.content},children:n}),r&&mr("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",u?.footer),style:{...m!==void 0&&{paddingInline:m,paddingBlock:v},...C?.footer},children:r})]})]}),document.body):null});import{cn as rn,useAnimateNumber as BT}from"@cleen/ui-core";import{forwardRef as NT,useEffect as RT,useMemo as LT,useRef as ET,useState as DT}from"react";import{jsx as Pi,jsxs as H0}from"react/jsx-runtime";var ur=NT(({percentage:e,title:t,barColor:o,backgroundColor:n="rgb(var(--cleen-neutral-200))",textColor:l="rgb(var(--cleen-foreground))",invertProgressColors:r=!1,showPercentage:c=!1,renderAnimated:i=!1,renderAnimatedDuration:s=1e3,className:p,classNames:d,style:g,styles:m,...v},y)=>{let u=Math.max(0,Math.min(e,100)),b=ET(u),[C,x]=DT(i?0:u),I=BT({targetNumber:C,duration:s,disabled:!i});RT(()=>{if(i){setTimeout(()=>x(u),0);return}b.current!==u&&(x(u),b.current=u)},[u,i]);let P=LT(()=>{if(o)return o;switch(u<=30?"red":u<70?"orange":"green"){case"red":return r?"rgb(var(--cleen-success))":"rgb(var(--cleen-error))";case"orange":return"rgb(var(--cleen-warning))";case"green":return r?"rgb(var(--cleen-error))":"rgb(var(--cleen-success))";default:return"rgb(var(--cleen-success))"}},[u,r,o]);return Pi("div",{ref:y,className:rn("cleen",p),style:g,children:H0("div",{className:rn("cleen-w-full",d?.container),style:m?.container,...v,children:[t&&Pi("div",{className:rn("cleen-mb-1 cleen-font-semibold cleen-text-xs",d?.title),style:m?.title,children:t}),H0("div",{className:rn("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",d?.wrapper||d?.progress),style:m?.wrapper??m?.progress,children:[Pi("div",{className:rn("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",d?.track),style:{backgroundColor:n,...m?.track},children:Pi("div",{className:rn("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",d?.fill),style:{width:`${C}%`,backgroundColor:P,...i&&{transitionDuration:`${s}ms`},...m?.fill}})}),c&&H0("span",{className:rn("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",d?.text),style:{color:l,...m?.text},children:[Math.round(I),"%"]})]})]})})});ur.displayName="ProgressBar";import{cn as xo,FileEntryStatus as an}from"@cleen/ui-core";import{useMemo as Cb}from"react";import{Fragment as Pb,jsx as Ae,jsxs as ln}from"react/jsx-runtime";var xb=({fileEntry:e,onRemove:t,onFileClick:o,labels:n,classNames:l,styles:r})=>{let{id:c,file:i,name:s,size:p,url:d,type:g,status:m,progress:v=0,preExisting:y}=e,u=m===an.UPLOADING,b=m===an.ERROR,C=m===an.DONE,x=m===an.DELETING,I=p?p*v/100:0,P=Cb(()=>{switch(m){case an.UPLOADING:return ln(Pb,{children:[Ae(Yo,{className:"cleen-size-4"}),Ae("span",{children:n?.uploading})]});case an.DONE:return Ae(Go,{className:"cleen-size-4"});case an.ERROR:return Ae(Uo,{className:"cleen-size-4"});default:return null}},[m,n]),T=()=>{if(o){o(e);return}d&&window.open(d,"_blank","noopener,noreferrer")},D=s||i?.name||"",[B,N]=D.split("."),L=Cb(()=>g?.startsWith("image/")&&d?Ae("img",{src:d,alt:D,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):g==="application/pdf"?Ae(qo,{className:"cleen-size-8"}):Ae(Wo,{className:"cleen-size-8"}),[D,g,d]);return Ae(he,{p:12,className:l?.card?.className,classNames:{...l?.card?.classNames,container:xo(l?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":C})},...r?.card,onClick:C?T:void 0,children:ln("div",{className:xo("cleen-space-y-1",l?.container),style:r?.container,children:[ln("div",{className:xo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.nameContainer),style:r?.nameContainer,children:[L,ln("div",{className:xo("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",l?.name),style:{maxWidth:L?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...r?.name},children:[Ae("span",{className:"cleen-truncate cleen-shrink",children:B}),ln("span",{className:"cleen-whitespace-nowrap",children:[".",N]})]}),Ae("div",{className:"cleen-flex-1"}),!u&&(x?Ae(re,{color:"rgb(var(--cleen-error))",className:xo("cleen-shrink-0")}):Ae(lt,{className:xo("cleen-size-4 cleen-shrink-0 cleen-text-neutral-600 hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer"),onClick:M=>{M.stopPropagation(),t?.(c)}}))]}),ln("div",{className:xo("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",l?.statusContainer),style:r?.statusContainer,children:[!!p&&(u?Ae("p",{children:n?.uploadProgress?.(I,p)}):C&&Ae("p",{children:n?.uploaded?.(p)})),!y&&ln(Pb,{children:[Ae("span",{children:"|"}),Ae("div",{className:xo("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":b,"cleen-text-success":C},l?.statusText),style:r?.statusText,children:P})]})]}),u&&Ae(ur,{barColor:"rgb(var(--cleen-primary))",percentage:v,showPercentage:!0,...l?.progressBar,...r?.progressBar})]})},c)};var xi=e=>{if(e===0)return"0 B";let t=1024,o=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,n)).toFixed(1))} ${o[n]}`};var Sb={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${xi(e)} of ${xi(t)}`,uploaded:e=>xi(e)};var wb={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 fl=(r=>(r.PENDING="pending",r.IN_PROGRESS="inProgress",r.DONE="done",r.ERROR="error",r.REMOVING="removing",r))(fl||{});import{cn}from"@cleen/ui-core";import{jsx as So,jsxs as Mb}from"react/jsx-runtime";var U0=({item:e,labels:t,classNames:o,styles:n})=>{let{status:l,progress:r=0,icon:c,name:i}=e,s=l==="inProgress",p=l==="done",d=l==="error",g=l==="removing",m=l==="pending";return Mb("div",{className:cn("cleen-flex cleen-items-center cleen-gap-3",o?.container),style:n?.container,children:[c,Mb("div",{className:cn("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",o?.infoContainer),style:n?.infoContainer,children:[So("p",{className:cn("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",o?.name),style:n?.name,children:i}),s&&So(ur,{barColor:"rgb(var(--cleen-primary))",percentage:r,...o?.progressBar,...n?.progressBar})]}),s&&So("span",{className:cn("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",o?.progressText),style:n?.progressText,children:t?.itemProgress?.(r)}),g&&So(re,{color:"rgb(var(--cleen-error))"}),p&&So(Go,{className:cn("cleen-size-5 cleen-shrink-0 cleen-text-success",o?.statusIcon),style:n?.statusIcon}),d&&So(Uo,{className:cn("cleen-size-5 cleen-shrink-0 cleen-text-error",o?.statusIcon),style:n?.statusIcon}),m&&So("div",{className:cn("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",o?.statusIcon),style:n?.statusIcon,children:Array.from({length:3}).map((v,y)=>So("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${y*.1}s`}},y))})]})};var hl=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(hl||{}),gl=["notStarted","inProgress","completed","all"];import{cn as Si}from"@cleen/ui-core";import{jsx as kb,jsxs as FT}from"react/jsx-runtime";var G0=({value:e,onChange:t,counts:o,labels:n,classNames:l,styles:r})=>kb("div",{role:"group","aria-label":n?.statusFilter,className:Si("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:r?.container,children:gl.map(c=>{let i=c===e;return FT("button",{type:"button","aria-pressed":i,onClick:()=>t(c),className:Si("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&&Si("cleen-bg-background cleen-text-foreground cleen-shadow-sm",l?.optionActive)),style:{...r?.option,...i&&r?.optionActive},children:[n?.statusFilterOptions?.[c],o&&kb("span",{className:Si("cleen-text-neutral-400 cleen-tabular-nums",l?.optionCount),style:r?.optionCount,children:o[c]})]},c)})});var Tb={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 Bb=e=>e.status==="inProgress"||e.status==="pending",Nb=e=>e.length>0&&e.every(t=>t.status==="done"),$0=(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 AT,cn as yt,useControlled as Rb,useDisclosure as OT}from"@cleen/ui-core";import{forwardRef as _T,useEffect as Lb,useMemo as W0,useRef as VT}from"react";import{jsx as xt,jsxs as q0}from"react/jsx-runtime";var X0=_T(function({items:t,title:o,maxVisibleItems:n=5,isExpanded:l,defaultExpanded:r=!1,onExpandedChange:c,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:s,showHeader:p=!0,showStatusFilter:d=!1,showStatusFilterCounts:g=!1,statusFilter:m,defaultStatusFilter:v="inProgress",onStatusFilterChange:y,labels:u,className:b,classNames:C,style:x,styles:I,...P},T){let{isOpen:D,toggle:B,close:N}=OT(),{value:L,handleChange:M}=Rb({value:l,defaultValue:r,onChange:c});Lb(()=>{t.length>0&&N()},[t.length,N]);let S=AT(Tb,u),{value:w,handleChange:E}=Rb({value:m,defaultValue:v,onChange:y}),R=VT(i);R.current=i;let k=Nb(t);Lb(()=>{if(s==null||!R.current||!k)return;if(s<=0){R.current();return}let W=setTimeout(()=>R.current?.(),s);return()=>clearTimeout(W)},[k,s]);let O=W0(()=>t.filter(Bb).length,[t]),F=W0(()=>!d||!w?t:t.filter(W=>$0(W,w)),[t,d,w]),A=W0(()=>{if(g)return gl.reduce((W,Q)=>({...W,[Q]:t.filter(H=>$0(H,Q)).length}),{})},[t,g]);if(!t.length)return null;let _=Math.max(F.length-n,0),G=L||!_?F:F.slice(0,n),U=o??(O?S?.processing?.(O):S?.completed);return xt(he,{p:16,gap:12,ref:T,className:yt(b,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:yt(C?.card?.classNames?.childrenContainer,{"cleen-hidden":D})},style:x,styles:I?.card?.styles,header:p?{hasDivider:!D,content:q0("div",{className:yt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",C?.header),style:I?.header,children:[xt("p",{className:yt("cleen-font-semibold cleen-text-foreground cleen-text-sm",C?.title),style:I?.title,children:U}),q0("div",{className:yt("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:I?.headerButtons,children:[xt("button",{type:"button","aria-label":S?.contract,onClick:B,className:yt("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:xt(Ut,{className:yt("cleen-size-5 cleen-transition-transform",D&&"cleen-rotate-180")})}),i&&xt("button",{type:"button","aria-label":S?.dismiss,onClick:i,className:yt("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:xt(He,{className:"cleen-size-4"})})]})]})}:void 0,...P,children:q0("div",{className:yt("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:I?.list,children:[d&&w&&xt(G0,{value:w,onChange:E,counts:A,labels:S,classNames:C?.statusFilter,styles:I?.statusFilter}),!G.length&&xt("p",{className:yt("cleen-text-muted-foreground cleen-text-xs",C?.emptyStatusFilter),style:I?.emptyStatusFilter,children:S?.emptyStatusFilter}),G.map(W=>xt(U0,{item:W,labels:S,classNames:C?.row,styles:I?.row},W.id)),!!_&&xt("button",{type:"button","aria-expanded":L,onClick:()=>M(!L),className:yt("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:L?S?.showLess:S?.showMore?.(_)})]})})});import{FileEntryStatus as Kt}from"@cleen/ui-core";var zT=[{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"]}],Eb={label:"FILE",className:"cleen-bg-neutral-500"},HT={[Kt.QUEUED]:"inProgress",[Kt.UPLOADING]:"inProgress",[Kt.PAUSED]:"inProgress",[Kt.DONE]:"done",[Kt.ERROR]:"error",[Kt.DELETING]:"removing"},K0=e=>e.name||e.file?.name||"",Db=e=>{let t=K0(e).split(".").pop()?.toLowerCase()??"",o=zT.find(({extensions:n})=>n.includes(t));return o?{label:o.label,className:o.className}:{label:t?t.slice(0,4).toUpperCase():Eb.label,className:Eb.className}},Fb=e=>e.status===Kt.QUEUED||e.status===Kt.UPLOADING||e.status===Kt.PAUSED,Ab=e=>HT[e.status]??"pending",Ob=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as UT}from"@cleen/ui-core";import{jsx as GT}from"react/jsx-runtime";var _b=({fileEntry:e,className:t,style:o})=>{let n=Db(e);return GT("div",{className:UT("cleen-flex cleen-justify-center cleen-items-center cleen-rounded-md cleen-size-8 cleen-shrink-0 cleen-font-semibold cleen-text-[10px] cleen-text-white",n.className,t),style:o,children:n.label})};import{jsx as $T}from"react/jsx-runtime";var Vb=(e,t)=>({id:e.id,name:K0(e),progress:e.progress,status:Ab(e),icon:$T(_b,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as WT}from"@cleen/ui-core";import{forwardRef as qT,useMemo as zb}from"react";import{jsx as XT}from"react/jsx-runtime";var Y0=qT(function({files:t,title:o,maxVisibleFiles:n=5,labels:l,classNames:r,styles:c,...i},s){let p=zb(()=>Ob(t),[t]),d=WT(wb,l),g=zb(()=>p.map(y=>Vb(y,{className:r?.row?.typeBadge,style:c?.row?.typeBadge})),[p,r?.row?.typeBadge,c?.row?.typeBadge]),m=p.filter(Fb).length,v=o??(m?d?.uploading?.(m):d?.completed);return XT(X0,{ref:s,items:g,title:v,maxVisibleItems:n,labels:{showMore:d?.showMore,showLess:d?.showLess,dismiss:d?.dismiss,contract:d?.contract,itemProgress:d?.uploadProgress},classNames:r,styles:c,...i})});import{applyDefaults as KT,cn as Xe,FileEntryStatus as YT,useFileUpload as QT}from"@cleen/ui-core";import{forwardRef as ZT,useEffect as JT,useMemo as Hb,useRef as Ub,useState as Q0}from"react";import{createPortal as jT}from"react-dom";import{jsx as Ke,jsxs as wi}from"react/jsx-runtime";var eB=ZT(function({required:t,icon:o,files:n,initialFiles:l=[],onFilesChange:r,onFileUpload:c,onFilesUpload:i,onFileRemove:s,onFileClick:p,infoLabels:d,containerRef:g,label:m,labelTooltip:v,labels:y,showUploadedFiles:u=!1,showProgressTracker:b=!1,progressTracker:C,className:x,classNames:I,style:P,styles:T,multiple:D,disabled:B,loadingWhileUploading:N,isLoading:L,readOnly:M,onChange:S,id:w,name:E,...R},k){let O=Ub(null),{files:F,addFiles:A,remove:_}=QT({files:n,onFilesChange:r,initialFiles:l,onFileUpload:c,onFilesUpload:i,onFileRemove:s}),G=Hb(()=>L||N&&Array.from(F.values()).some(Y=>Y.status===YT.UPLOADING),[F,N,L]),[U,W]=Q0(!1),[Q,H]=Q0([]),[V,X]=Q0(!1),z=Ub(new Set(F.keys()));JT(()=>{let Y=Array.from(F.keys()),xe=Y.filter(Ne=>!z.current.has(Ne));z.current=new Set(Y),H(Ne=>{let ge=Ne.filter(qe=>F.has(qe));return xe.length?V?xe:[...ge,...xe.filter(qe=>!ge.includes(qe))]:ge.length===Ne.length?Ne:ge}),xe.length&&X(!1)},[F,V]);let q=Hb(()=>Q.map(Y=>F.get(Y)).filter(Y=>!!Y),[Q,F]),pe=()=>{X(!0),H([]),C?.onDismiss?.()},fe=!B&&!M&&!G,me=Y=>{let xe=Array.from(Y.target.files??[]);A(xe),S?.(Y)},$e=Y=>{_(Y)},Pe=()=>{fe&&O.current?.click()},j=Y=>{if(!Y.length)return;let xe=D?Y:Y.slice(0,1);if(!O.current||typeof DataTransfer>"u"){A(xe);return}let Ne=new DataTransfer;xe.forEach(ge=>Ne.items.add(ge));try{O.current.files=Ne.files}catch{A(xe);return}A(xe),S?.({target:O.current,currentTarget:O.current})},ce=Y=>{Y.preventDefault(),Y.stopPropagation(),W(!1),fe&&j(Array.from(Y.dataTransfer.files??[]))},tt=Y=>{Y.preventDefault(),Y.stopPropagation(),fe&&W(!0)},We=Y=>{Y.preventDefault(),Y.stopPropagation(),fe&&W(!0)},Be=Y=>{Y.preventDefault(),Y.stopPropagation(),fe&&W(!1)},De=Y=>{fe&&(Y.key!=="Enter"&&Y.key!==" "||(Y.preventDefault(),Pe()))},ze=KT(Sb,y);return wi("div",{className:Xe("cleen",x),style:P,ref:g,children:[Ke("input",{id:w||E,name:E,ref:Y=>{if(O.current=Y,typeof k=="function"){k(Y);return}k&&(k.current=Y)},type:"file",multiple:D,disabled:B||G,readOnly:M,className:Xe("cleen-hidden",I?.input),style:T?.input,onChange:me,...R}),m&&Ke(ae,{htmlFor:w||E,required:t,tooltip:v,className:Xe("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...T?.label,children:m}),wi("div",{className:Xe("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":G}),children:[Ke(he,{tabIndex:fe?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":B||M||G,onClick:Pe,onKeyDown:De,onDrop:ce,onDragEnter:tt,onDragOver:We,onDragLeave:Be,p:16,className:Xe("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:Xe("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,U&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:Xe({"cleen-blur-sm":G},I?.card?.classNames?.childrenContainer)},style:T?.card?.style,styles:{...T?.card?.styles,container:{...T?.card?.styles?.container,...U?T?.cardDragActive:void 0}},children:wi("div",{className:Xe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:T?.dropArea,"aria-disabled":B||M||G,children:[Ke("div",{className:Xe("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:T?.iconContainer,children:o||Ke(Yo,{className:"cleen-size-5"})}),wi("p",{className:Xe("cleen-font-medium cleen-text-sm",I?.textContainer),style:T?.textContainer,children:[Ke("span",{className:Xe(B?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:T?.primaryText,children:ze?.primaryText})," ",Ke("span",{className:Xe("cleen-text-foreground",I?.secondaryText),style:T?.secondaryText,children:ze?.secondaryText})]}),Ke("p",{className:Xe("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:T?.helperText,children:ze?.helperText})]})}),G&&Ke(re,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),u&&F.size>0&&Ke("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(F.values()).map(Y=>Ke(xb,{fileEntry:Y,onRemove:$e,onFileClick:p,labels:ze,classNames:I?.fileCard,styles:T?.fileCard},Y.id))}),b&&!V&&q.length>0&&jT(Ke("div",{className:"cleen",children:Ke(Y0,{...C,files:q,onDismiss:pe,className:Xe("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",I?.progressTracker?.className),classNames:I?.progressTracker?.classNames,...T?.progressTracker})}),document.body),(d?.errorMessage||d?.infoMessage||d?.subtitle)&&Ke(ne,{...d})]})});var tB=e=>{let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;let o={dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat("en-US",o).format(t)}catch{return new Intl.DateTimeFormat("en-US",o).format(t)}},Gb={uploaded:e=>`Uploaded: ${tB(e)}`};var Z0={"image/":"image","video/":"video","audio/":"audio"},J0={"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"},$b={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"},Wb=["http:","https:","blob:"];var oB=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in J0)return J0[t];let o=Object.keys(Z0).find(n=>t.startsWith(n));return o?Z0[o]:void 0},j0=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},nB=e=>{let t=j0(e);return t?$b[t]:void 0},qb=e=>oB(e.type)??nB(e.name)??"generic",Xb=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return Wb.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as Yt,formatFileSize as rB}from"@cleen/ui-core";import{forwardRef as aB,useMemo as Kb,useState as lB}from"react";import{Fragment as iB,jsx as St,jsxs as Mi}from"react/jsx-runtime";var cB=aB(function({file:t,preview:o=!1,onRemove:n,description:l,labels:r,className:c,classNames:i,style:s,styles:p,...d},g){let[m,v]=lB(),y=Kb(()=>({...Gb,...r}),[r]),u=qb(t),b=b0(j0(t.name)),C=Xb(t.url)?t.url:void 0,x=t.previewUrl||t.url,I=o&&(u==="image"||u==="video")&&!!x&&m!==x,P=Kb(()=>{if(l!=null)return l;let N=[];if(t.size!=null&&N.push(rB(t.size)),t.uploadedAt!=null){let L=y?.uploaded(t.uploadedAt);L&&N.push(L)}return N.length>0?N.join(" \u2022 "):null},[l,t.uploadedAt,t.size,y]),T=N=>{N.stopPropagation(),n?.(t)},D=Yt("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=Mi(iB,{children:[Mi("div",{className:Yt("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:[I&&(u==="image"||u==="video"&&t.previewUrl)&&St("img",{src:x,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>v(x)}),I&&u==="video"&&!t.previewUrl&&St("video",{src:x,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>v(x)}),!I&&St(b,{"aria-hidden":!0,className:Yt("cleen-size-5",i?.icon),style:p?.icon})]}),Mi("div",{className:Yt("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:p?.content,children:[St("span",{className:Yt("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:p?.title,title:t.name,children:t.name}),P!==null&&St("span",{className:Yt("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:p?.description,children:P})]})]});return St("div",{className:Yt("cleen",c),style:s,ref:g,...d,children:Mi("div",{className:Yt("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?St("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:D,style:p?.main,children:B}):St("div",{className:D,style:p?.main,children:B}),n&&St("button",{type:"button",className:Yt("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:T,children:St(He,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var ki={filterName:"",exposed:!1};import{createContext as sB}from"react";var it=sB({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as pB}from"@cleen/ui-core";import{useContext as dB,useState as mB}from"react";import{Fragment as uB,jsx as yl,jsxs as e1}from"react/jsx-runtime";var Yb={min:3,max:50},Qb=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:o,setIsSaveFiltersStep:n,handleCloseSaveFilter:l,setError:r,onSave:c,classNames:i,styles:s,labels:p,withSavedFilters:d=!0,onCancel:g,onApply:m}=dB(it),[v,y]=mB(!1),u=async()=>{try{if(t.filterName.length<Yb.min){r?.("filterName",p?.saveStep?.validation?.tooShort);return}if(t.filterName.length>Yb.max){r?.("filterName",p?.saveStep?.validation?.tooLong);return}y(!0),await c?.(t),n(!1)}catch(b){console.error("Error saving filters:",b)}finally{y(!1)}};return e?e1("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[yl(ee,{onClick:()=>n(!1),variant:"secondary",...i?.saveFilter?.backBtn,...s?.saveFilter?.backBtn,children:p?.saveStep?.back}),yl(ee,{onClick:u,isLoading:v,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...s?.saveFilter?.saveBtn,children:p?.saveStep?.save})]}):e1(uB,{children:[d&&yl(ee,{onClick:()=>{o(ki),n(!0)},variant:"borderless-blue",...i?.saveBtn,...s?.saveBtn,children:p?.save}),e1("div",{className:pB("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!d}),children:[yl(ee,{onClick:()=>{g?.(),l()},variant:"secondary",...i?.cancelBtn,...s?.cancelBtn,children:p?.cancel}),yl(ee,{onClick:()=>{m?.(),l()},...i?.applyBtn,...s?.applyBtn,children:p?.apply})]})]})};import{cn as Ti}from"@cleen/ui-core";import{Link as fB}from"react-router-dom";import{Fragment as Jb,jsx as sn,jsxs as t1}from"react/jsx-runtime";var Zb=({item:e,classNames:t,styles:o})=>({disabled:e?.disabled,className:Ti("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:o?.container,children:t1(Jb,{children:[e?.icon,sn("span",{className:Ti("cleen-flex-1",t?.label),style:o?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),o1=({item:e,isLast:t,handleClick:o,onEnterSubmenu:n,classNames:l,styles:r})=>{switch(e?.type){case"group":return t1(Jb,{children:[e?.label&&sn("p",{className:Ti("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",l?.groupLabel),style:r?.groupDivider,children:e?.label}),e?.items?.map((c,i,s)=>sn(o1,{item:c,handleClick:o,onEnterSubmenu:n,isLast:i===s.length-1},c?.id||i)),!t&&sn("hr",{className:Ti("cleen-text-neutral-200",l?.groupDivider),style:r?.groupDivider})]});case"button":{let c=e?.submenu&&e?.submenu?.length>0;return t1("button",{type:"button",onClick:()=>{c?n?.(e.submenu,e?.label):o?.(e)},...Zb({item:e,classNames:l,styles:r}),children:[e?.icon,sn("span",{className:"cleen-flex-1",children:e?.label}),c&&sn(mt,{className:"cleen-size-4 cleen-text-neutral-400"})]})}case"link":return sn(fB,{to:"",...Zb({item:e,classNames:l,styles:r})});default:return null}};import{cn as hB}from"@cleen/ui-core";import{useEffect as jb,useState as eI}from"react";import{Fragment as gB,jsx as tI,jsxs as oI}from"react/jsx-runtime";var nI=({items:e,keepOpenOnClick:t,hideMenu:o,classNames:n,styles:l})=>{let[r,c]=eI([]),[i,s]=eI(e),p=(m,v)=>{c(y=>[...y,{items:i,title:v}]),s(m)},d=()=>{let m=r[r?.length-1];m&&(s(m?.items),c(v=>v?.slice(0,-1)))};jb(()=>{s(e),c([])},[e]),jb(()=>{let m=v=>{if(v.key==="Escape")if(r.length>0){let y=r?.[r?.length-1];s(y?.items),c(u=>u?.slice(0,-1))}else o()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[o,r]);let g=m=>{m?.onClick?.(),t||o()};return oI(gB,{children:[r?.length>0&&oI("button",{onClick:d,className:hB("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",n?.submenuButton),style:l?.submenuButton,children:[tI(Ht,{className:"cleen-size-4 cleen-text-neutral-300"}),r?.[r?.length-1]?.title]}),i?.map((m,v,y)=>tI(o1,{item:m,isLast:v===y?.length-1,handleClick:g,onEnterSubmenu:p,classNames:n?.item,styles:l?.item},m?.id||v))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as yB,cn as n1,useDisclosure as vB,useOutsideClick as bB,usePositionClose as IB,ZIndex as CB}from"@cleen/ui-core";import{forwardRef as PB,useRef as rI}from"react";import{createPortal as xB}from"react-dom";import{jsx as Bi,jsxs as SB}from"react/jsx-runtime";var fr=PB(function({items:t=[],position:o="bottom-left",keepOpenOnClick:n=!0,triggerRef:l,menuRef:r,ignoreClickOutside:c=!1,zIndex:i=CB.MENU,children:s,className:p,classNames:d,style:g,styles:m,...v},y){let{isOpen:u,toggle:b,close:C}=vB(),x=rI(null),I=rI(null),P=l??x,T=r??I,{positionStyles:D,isMounted:B}=IB({triggerRef:P,targetRef:T,position:o,isOpen:u});bB({refs:[P,T],handler:C,enabled:u});let N=()=>{b()};return SB("div",{className:n1("cleen",p),style:g,ref:y,...v,children:[Bi("div",{ref:P,onClick:N,className:n1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:s}),u&&xB(Bi("div",{className:"cleen",...c&&{[yB]:"true"},children:Bi("div",{ref:T,className:n1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!B},d?.menu),style:{zIndex:i,top:`${D.top}px`,left:`${D.left}px`,...m?.menu},children:Bi(nI,{items:t,keepOpenOnClick:n,hideMenu:C,classNames:d,styles:m})})}),document.body)]})});import{cn as Ni,ColorHelpers as Ri}from"@cleen/ui-core";import{useMemo as wB}from"react";var r1=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow","foreground-transparent"],a1={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","foreground-transparent":"cleen-border-border cleen-bg-transparent cleen-text-foreground"},aI={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"},lI={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"},cI={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"},iI={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var sI=(e,t)=>!e&&!t?"primary":t?r1[t%r1.length]:e;import{jsx as l1,jsxs as MB}from"react/jsx-runtime";var we=({className:e,classNames:t,style:o,styles:n,label:l,color:r="primary",variant:c="rounded",showDot:i=!1,icon:s,removeable:p=!1,withBorder:d=!0,filled:g=!1,onRemoveClicked:m,onClick:v,colorByIndex:y,children:u,...b})=>{let{variantClass:C,dotVariantClass:x,dotVariantStyle:I,variantStyle:P}=wB(()=>{let T={};if(r in a1){let D=sI(r,y);T.variantClass=g?aI[D]:a1[D],T.dotVariantClass=g?cI[D]:lI[D]}else T.variantStyle={borderColor:g?r:Ri.trasparentize(r,.8),backgroundColor:g?r:Ri.trasparentize(r,.95),color:g?Ri.adjustColorForContrast(r,.5):r},T.dotVariantStyle={backgroundColor:g?Ri.adjustColorForContrast(r,.5):r};return T},[r,y,g]);return l1("div",{className:Ni("cleen",e),style:o,children:MB("span",{className:Ni("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":d},C,iI[c],{"hover:cleen-opacity-80 cleen-cursor-pointer":v||p},t?.container),style:{...P,...n?.container},onClick:v,...b,children:[i&&l1("span",{className:Ni("cleen-size-2 cleen-rounded-[50%]",x,t?.dot),style:{...I,...n?.dot}}),s,l??u,p&&l1(He,{className:Ni("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:n?.removable,onClick:m})]})})};import{cn as TB}from"@cleen/ui-core";import{useContext as BB,useState as pI}from"react";import{jsx as wt,jsxs as NB}from"react/jsx-runtime";var dI=({filter:e,activeTabId:t})=>{let[o,n]=pI(!1),[l,r]=pI(!1),{labels:c,onFilterDelete:i,onFilterPin:s,onFilterSelect:p,onFilterUnpin:d,setIsFiltersDropdownOpen:g}=BB(it),m=async()=>{try{if(!i)return;n(!0),await i(e.filterID)}catch(y){console.error("Error while deleting filter:",y)}finally{n(!1)}},v=async()=>{try{r(!0),e?.isPinned?await d?.(e.filterID):await s?.(e.filterID)}catch(y){console.error("Error while pinning/unpinnning filter:",y)}finally{r(!1)}};return wt("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:NB("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{p?.(e),g(!1)},children:[wt("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),l?wt(re,{classNames:{loader:"cleen-size-5"}}):wt(we,{color:"gray",onClick:y=>{y.stopPropagation(),v()},icon:wt(Ta,{name:"pin",className:TB("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"&&wt(fr,{items:[{id:"duplicate",type:"button",label:c?.savedFilters?.filter?.cancelDelete,icon:wt(He,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:c?.savedFilters?.filter?.delete,icon:wt(lt,{}),danger:!0,onClick:()=>m()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:y=>y.stopPropagation(),className:"cleen-flex",children:o?wt(re,{size:"sm",color:"rgb(var(--cleen-error))"}):wt(lt,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as wo}from"@cleen/ui-core";import{forwardRef as RB,Fragment as LB,useMemo as uI,useState as fI}from"react";import{cn as c1}from"@cleen/ui-core";var vl={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"}},mI=e=>{let t=e==="vertical";return{underlined:{list:c1("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:c1("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:c1("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 bl,jsxs as hI}from"react/jsx-runtime";var Li=(e,t)=>e?.id??String(t),Il=RB(function({tabs:t,variant:o="underlined",direction:n="horizontal",currentTabIndex:l,onTabChange:r,multiple:c=!1,activeTabIds:i,defaultActiveTabIds:s,onChange:p,className:d,classNames:g,style:m,styles:v,...y},u){let[b,C]=fI(0),I=l!==void 0?l:b,[P,T]=fI(s??[]),D=i??P,B=uI(()=>{if(!c){let S=t?.[I];return S?[S]:[]}return t?.filter((S,w)=>D.includes(Li(S,w)))??[]},[t,c,I,D]),N=(S,w)=>c?D.includes(Li(S,w)):I===w,L=(S,w)=>{if(c){let E=Li(w,S),R=D.includes(E),k=t?.map((O,F)=>Li(O,F)).filter(O=>O===E?!R:D.includes(O))??[];T(k),p?.(k)}else C(S);r?.(S,w)},M=uI(()=>mI(n),[n]);return bl("div",{className:wo("cleen",d),style:m,ref:u,...y,children:hI("div",{className:wo(vl[n].container,g?.container),style:v?.container,children:[bl("nav",{className:wo(M[o].list,vl[n].list,g?.list),"aria-label":"Tabs",style:v?.list,children:t?.map((S,w)=>{let E=N(S,w),R=S?.isDisabled;return hI("button",{type:"button",disabled:R,onClick:()=>L(w,S),className:wo("cleen-flex cleen-items-center cleen-gap-2 cleen-whitespace-nowrap focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",!R&&"cleen-cursor-pointer",M[o].tab,vl[n].tab,g?.tab,R?wo(M[o].tabDisabled,g?.tabDisabled):E?wo(M[o].tabActive,g?.tabActive):wo(M[o].tabInactive,g?.tabInactive)),style:{...v?.tab,...R?v?.tabDisabled:E?v?.tabActive:v?.tabInactive},"aria-current":E?"page":void 0,children:[S?.label,!!S?.badge?.label&&bl(we,{variant:"rounded",color:E?"blue":"gray",...g?.count,...v?.count,...S.badge})]},S?.id||w)})}),B.some(S=>!!S?.content)&&bl("div",{className:wo("h-full",c&&"cleen-flex cleen-flex-col cleen-gap-4",vl[n].content,g?.content),style:v?.content,children:B.map((S,w)=>bl(LB,{children:S?.content},S?.id||w))})]})})});import{useContext as EB,useState as DB}from"react";import{jsx as pn,jsxs as AB}from"react/jsx-runtime";var FB=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},gI=({selectedSavedFilter:e,filters:t,isFiltersFetching:o,onFilterCategoryChange:n})=>{let[l,r]=DB("all"),{labels:c,classNames:i,styles:s,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:d}=EB(it);return pn(dl,{isOpen:p,onOpenChange:d,leftIcon:pn(ma,{className:"cleen-size-5"}),label:e?.title??c?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...s?.dropdown,children:AB("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[pn(Il,{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)=>{r(m?.id),n?.(FB(m?.id))},classNames:{list:"cleen-mb-2"}}),pn("div",{className:"flex flex-col",children:o?pn(re,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(g=>pn(dI,{filter:g,activeTabId:l},g.filterID)):pn("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:c?.savedFilters?.noFilters})})]})})};import{cn as Qt}from"@cleen/ui-core";import{forwardRef as OB,useEffect as _B,useId as VB,useState as zB}from"react";import{jsx as dn,jsxs as i1}from"react/jsx-runtime";var s1=OB(function({id:t,name:o,required:n,checked:l,defaultChecked:r=!1,onChange:c,title:i,label:s,labelTooltip:p,sublabel:d,disabled:g,classNames:m,className:v,style:y,styles:u,infoLabels:b,...C},x){let I=typeof l=="boolean",[P,T]=zB(r);_B(()=>{I||T(r)},[r,I]);let D=I?l:P,B=VB(),N=i?`${B}-title`:void 0,L=s?`${B}-label`:void 0,M=[N,L].filter(Boolean).join(" ")||void 0,S=()=>{g||(I||T(!P),c?.(!D))};return dn("div",{className:Qt("cleen",v),style:y,children:i1("div",{className:Qt("cleen-flex cleen-flex-col",m?.container),style:u?.container,children:[i&&dn(ae,{id:N,htmlFor:t||o,required:n,tooltip:p,className:Qt("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...u?.title,children:i}),i1("div",{className:Qt("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:u?.switchContainer,children:[dn("button",{id:t||o,type:"button",role:"switch","aria-checked":D,"aria-labelledby":M,disabled:g,onClick:S,className:Qt("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",D?"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:u?.switch,ref:x,...C,children:dn("span",{"aria-hidden":"true",className:Qt("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",D?"cleen-translate-x-5":"cleen-translate-x-0",m?.check),style:u?.check})}),(s||d)&&i1("div",{className:Qt("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:u?.labelContainer,children:[s&&dn("span",{id:L,className:Qt("cleen-font-semibold cleen-text-foreground",m?.label),style:u?.label,children:s}),d&&dn("span",{className:Qt("cleen-font-normal cleen-text-muted-foreground",m?.sublabel),style:u?.sublabel,children:d})]})]}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&dn(ne,{...b})]})})});import{useContext as HB}from"react";import{Fragment as UB,jsx as yI,jsxs as GB}from"react/jsx-runtime";var vI=()=>{let{classNames:e,styles:t,labels:o,saveStepValues:n,setSaveStepValues:l,errors:r,clearError:c}=HB(it);return GB(UB,{children:[yI(ye,{value:n.filterName,onChange:i=>{l(s=>({...s,filterName:i.target.value})),r?.filterName&&c?.("filterName")},label:o?.saveStep?.filterNameInput?.label,placeholder:o?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:r?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),yI(s1,{checked:n.exposed,onChange:i=>l(s=>({...s,exposed:i})),title:o?.saveStep?.exposureSwitch?.title,label:o?.saveStep?.exposureSwitch?.label,sublabel:o?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var bI={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 $B}from"@cleen/ui-core";import{useState as p1}from"react";import{jsx as WB}from"react/jsx-runtime";var II=({children:e,value:t})=>{let[o,n]=p1(!1),[l,r]=p1(ki),{errors:c,setError:i,clearError:s}=$B({}),[p,d]=p1(!1),g=()=>{n(!1),t?.onClose?.()};return WB(it.Provider,{value:{isSaveFiltersStep:o,setIsSaveFiltersStep:n,saveStepValues:l,setSaveStepValues:r,handleCloseSaveFilter:g,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:d,errors:c,setError:i,clearError:s,...t},children:e})};import{applyDefaults as qB,cn as CI}from"@cleen/ui-core";import{forwardRef as PI,useContext as XB}from"react";import{Fragment as QB,jsx as Mo,jsxs as ZB}from"react/jsx-runtime";var KB=PI(function({selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,children:l,classNames:r,styles:c,labels:i,withSavedFilters:s=!0,onClear:p,onSave:d,onCancel:g,onApply:m,onClose:v,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:b,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I,...P},T){return Mo(II,{value:{selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,classNames:r,styles:c,labels:qB(bI,i),withSavedFilters:s,onClear:p,onSave:d,onCancel:g,onApply:m,onClose:v,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:b,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I},children:Mo(YB,{...P,ref:T,children:l})})}),YB=PI(function({children:t,...o},n){let{handleCloseSaveFilter:l,isSaveFiltersStep:r,selectedSavedFilter:c,savedFilters:i,isFiltersFetching:s,classNames:p,styles:d,labels:g,withSavedFilters:m=!0,onClear:v,onFilterCategoryChange:y,onFilterSelect:u}=XB(it);return Mo(z0,{footer:Mo(Qb,{}),headerCloseBtn:Mo(ee,{onClick:()=>{v?.(),u?.(void 0)},leftIcon:Mo(lt,{}),variant:"secondary",...p?.clearBtn,...d?.clearBtn,children:g?.clear}),classNames:{...p,content:CI("cleen-space-y-4",p?.content),footer:CI("cleen-justify-between",p?.footer)},onClose:l,ref:n,...o,title:r?g?.saveStep?.title:o.title,subtitle:r?g?.saveStep?.subtitle:o.subtitle,children:r?Mo(vI,{}):ZB(QB,{children:[m&&Mo(gI,{filters:i,selectedSavedFilter:c,onFilterCategoryChange:y,isFiltersFetching:s}),t]})})});import{cn as hr}from"@cleen/ui-core";import{forwardRef as JB}from"react";import{jsx as Ei,jsxs as xI}from"react/jsx-runtime";var SI=JB(({title:e,titleTooltip:t,subtitle:o,required:n,labelProps:l,children:r,className:c,classNames:i,style:s,styles:p,...d},g)=>Ei("div",{ref:g,className:hr("cleen",c),style:{...s,width:"100%"},...d,children:xI("div",{className:hr("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:p?.container,children:[xI("div",{className:hr("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:p?.titleColumn,children:[Ei(ae,{...l,required:n,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:hr("cleen-truncate",i?.title?.classNames?.label)},...p?.title,children:e}),o&&Ei("div",{className:hr("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:o})]}),Ei("div",{className:hr("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:p?.controlsRow,children:r})]})}));SI.displayName="FormGroup";import{cn as Le,useDebounce as jB,useOutsideClick as eN,usePositionClose as tN,ZIndex as oN}from"@cleen/ui-core";import{useEffect as Di,useMemo as d1,useRef as m1,useState as vt}from"react";import{createPortal as nN}from"react-dom";import{Fragment as lN,jsx as J,jsxs as Ye}from"react/jsx-runtime";function rN(e){return e!==null&&typeof e=="object"}function Ve(e,t){if(rN(e)&&t in e)return e[t]}function wI(e,t){let o=Ve(e,t);return Array.isArray(o)?o:[]}function MI(e,t){let o=e?.[t];if(typeof o=="string"||typeof o=="number")return o;let n=e?.data?.[t];return typeof n=="string"||typeof n=="number"?n:null}var aN=({position:e="bottom-right",labels:t,groups:o=[],selectedItemID:n=null,groupThreeDotMenuOptions:l=[],itemThreeDotMenuOptions:r=[],refetchData:c,onGroupSave:i,onItemSave:s,onGroupThreeDotMenuClick:p,onItemThreeDotMenuClick:d,onSearchChange:g,onItemSelect:m,groupIDKey:v,groupTitleKey:y,itemsKey:u,itemIDKey:b,itemGroupIDKey:C,itemTitleKey:x,itemSubtitleKey:I,newValueMinLength:P=2,isLoading:T=!1,isGroupSaving:D=!1,isItemSaving:B=!1,selectedColor:N="rgb(var(--cleen-primary-100))",hasFiltering:L=!0,zIndex:M=oN.POPOVER,className:S,classNames:w,style:E,styles:R})=>{let[k,O]=vt(!1),[F,A]=vt(!1),[_,G]=vt(!1),[U,W]=vt(!1),[Q,H]=vt(null),[V,X]=vt(null),[z,q]=vt(""),[pe,fe]=vt(""),[me,$e]=vt(null),Pe=m1(void 0),[j,ce]=vt(""),[tt]=jB(j,500),[We,Be]=vt(""),De=m1(null),ze=m1(null),{positionStyles:Y,isMounted:xe}=tN({triggerRef:De,targetRef:ze,position:e,isOpen:k,offset:10});eN({refs:[ze],handler:()=>O(!1),enabled:k});let Ne=d1(()=>o??[],[o]),ge=d1(()=>{let $=new Map;for(let Z of Ne){let se=Ve(Z,v);se!=null&&$.set(se,wI(Z,u))}return $},[Ne,v,u]),qe=d1(()=>{let $=[];return Q==null?$=Array.from(ge?.values()).flat():$=ge?.get(Q)??[],L&&We.trim()!==""&&($=$.filter(Z=>{let se=String(Ve(Z,x)??""),Re=I?String(Ve(Z,I)??""):"";return se.toLowerCase().includes(We?.toLowerCase()??"")||Re.toLowerCase().includes(We?.toLowerCase()??"")})),$},[Q,ge,We,x,I,L]);Di(()=>{let $=Pe.current!==n;if(Pe.current=n,n==null){$&&(X(null),H(null));return}let se=Array.from(ge?.values())?.flat()?.find(Re=>Ve(Re,b)===n);if(se){let Re=Ve(se,C)??null;X(se),H(Re)}else $&&X(null)},[n,ge,b,C]),Di(()=>{if(me==null)return;let Z=Array.from(ge?.values())?.flat()?.find(Re=>Ve(Re,b)===me);if(!Z)return;let se=Ve(Z,C);H(typeof se=="string"||typeof se=="number"?se:null),X(Z),$e(null),m?.(Z)},[me,ge,b,C,m]),Di(()=>{g&&g(tt??"")},[tt,g]),Di(()=>{k||(A(!1),G(!1),q(""),fe(""))},[k]);let ot=$=>{$===Q?(H(null),X(null),m?.(null)):(X(null),H($),m?.(null))},Ar=$=>{let Z=Ve($,C);H(typeof Z=="string"||typeof Z=="number"?Z:null),X($),m?.($),O(!1)};async function Dn(){if(!i)return;let $={[y]:z};try{let Z=await i($);if(Z?.success){A(!1),q(""),c&&await c();let se=MI(Z,v);se!=null&&(H(se),X(null),m?.(null))}}catch{}}async function oe(){if(!s)return;let $={[x]:pe,...Q!=null?{[C]:Q}:{}};try{let Z=await s($);Z?.success&&(G(!1),fe(""),$e(MI(Z,b)),c&&await c())}catch{}}return J("div",{className:Le("cleen",S),style:E,children:Ye("div",{ref:De,className:Le("cleen-relative cleen-w-full cleen-cursor-pointer",w?.container),style:R?.container,onClick:$=>{$.stopPropagation(),O(!0)},children:[J(ye,{placeholder:t?.inputPlaceholder,rightIcon:J(Ut,{className:Le("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!k})}),value:j,onChange:$=>{H(null),X(null),ce($.target.value)},classNames:{input:k?"":"cleen-cursor-pointer"},className:w?.input,style:R?.input}),k&&nN(J("div",{className:"cleen",children:Ye("div",{ref:ze,className:Le("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},w?.columnsContainer),style:{zIndex:M,top:`${Y.top}px`,left:`${Y.left}px`,...R?.columnsContainer},children:[Ye("div",{className:"cleen-w-1/2 cleen-h-full",children:[J("div",{className:Le("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",w?.leftColumn),style:R?.leftColumn,children:T?J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:J(re,{size:"sm"})}):o?.map(($,Z)=>{let se=Ve($,v),Re=se===Q,Fn=String(Ve($,y)??""),Or=wI($,u)?.length??0;return Ye("div",{className:Le("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",w?.groupItem),style:{...R?.groupItem||{},...Re?{backgroundColor:N}:{}},onClick:be=>{be.stopPropagation(),be.preventDefault(),ot(se??null)},children:[Ye("div",{className:Le("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[J("span",{className:Le("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",w?.groupItemTitle),style:R?.groupItemTitle,children:Fn}),J(we,{color:"lighter-blue",label:Or})]}),l?.length>0&&J("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:be=>{be.stopPropagation(),p?.($)},children:J(fr,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(be=>{let Vo=be?.disabledOptionCallback?.($);return{...be,type:"button",label:J("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:be?.label}),onClick:()=>{Vo||be?.onClick($)},disabled:Vo}}),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:J(Gn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${Z}-${String(se??Z)}`)})}),J(gt,{isHorizontal:!0}),F?Ye("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[J(ye,{leftIcon:J(go,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:z,onChange:$=>q($.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?D?J(re,{}):z?.length>P?J(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{Dn()},classNames:{container:"cleen-w-max cleen-h-7"}}):J("div",{}):J("div",{})})]}):Ye("div",{className:Le("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",w?.newGroupButton),style:R?.newGroupButton,onClick:()=>A(!0),children:[J(go,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),J("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),J(gt,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),Ye("div",{className:"cleen-w-1/2 cleen-h-full",children:[Ye("div",{className:Le("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",w?.rightColumn),style:R?.rightColumn,children:[L&&Ye(lN,{children:[J(ye,{leftIcon:J(Wt,{className:"cleen-size-5"}),className:Le("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!U}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:$=>Be($.target.value),placeholder:t?.filterPlaceholder}),J("button",{type:"button",className:Le("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":!U}),onClick:()=>W($=>!$),children:J(Jr,{className:Le("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",U?"-cleen-rotate-90":"cleen-rotate-90")})})]}),T?J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:J(re,{size:"sm"})}):qe?.map(($,Z)=>{let se=Ve($,b),Re=V&&Ve(V,b)===se,Fn=String(Ve($,x)??""),Or=I?String(Ve($,I)??""):"";return Ye("div",{className:Le("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",w?.item),style:{...R?.item||{},...Re?{backgroundColor:N}:{}},onClick:be=>{be.stopPropagation(),be.preventDefault(),Ar($)},children:[Ye("div",{className:Le("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",r?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[J("span",{className:Le("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",w?.itemTitle),style:R?.itemTitle,children:Fn}),J("span",{className:Le("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",w?.itemSubtitle),style:R?.itemSubtitle,children:Or})]}),r?.length>0&&J("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:be=>{be.stopPropagation(),d?.($)},children:J(fr,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:r?.map(be=>{let Vo=be?.disabledOptionCallback?.($);return{...be,type:"button",label:J("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:be?.label}),onClick:()=>{Vo||be?.onClick($)},disabled:Vo}}),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:J(Gn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${Z}-${String(se??Z)}`)})]}),J(gt,{isHorizontal:!0}),_?Ye("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[J(ye,{leftIcon:J(go,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:pe,onChange:$=>fe($.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:s?B?J(re,{}):pe?.length>P?J(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{oe()},classNames:{container:"cleen-w-max cleen-h-7"}}):J("div",{}):J("div",{})})]}):Ye("div",{className:Le("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",w?.newItemButton),style:R?.newItemButton,onClick:()=>G(!0),children:[J(go,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),J("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!k&&V&&J("div",{className:"cleen-absolute cleen-top-1.5 cleen-left-1 cleen-flex cleen-items-center cleen-justify-start cleen-pl-2.5 cleen-w-[calc(100%-40px)] cleen-h-8 cleen-bg-surface",onClick:()=>O(!0),children:J("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(Ve(V,x)??"")})})]})})};import{cn as Oe,useDebounce as cN,useOutsideClick as iN,usePositionClose as sN,ZIndex as pN}from"@cleen/ui-core";import{forwardRef as dN,useEffect as BI,useId as mN,useMemo as NI,useRef as Fi,useState as Ai}from"react";import{createPortal as uN}from"react-dom";import{cn as mn}from"@cleen/ui-core";import{jsx as ko,jsxs as kI}from"react/jsx-runtime";var TI=({options:e,selection:t,classNames:o,styles:n,onChoose:l,displaySubtextInline:r=!0,activeIndex:c=-1,getOptionId:i,onActiveIndexChange:s,...p})=>ko("div",{...p,children:ko("div",{className:mn("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",o?.container),style:n?.container,children:e?.map((d,g)=>{let m=t?.some(y=>y?.value===d?.value),v=g===c;return kI("li",{id:i?.(g),role:"option","aria-selected":m,className:mn("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":v},o?.item),style:n?.item,onMouseEnter:()=>s?.(g),onClick:()=>l?.(d,m),children:[kI("div",{className:mn("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",o?.labels,!r&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:n?.labels,children:[d?.leadingBadgeValue&&ko(we,{color:"gray",label:d?.leadingBadgeValue}),d?.icon,d?.label&&ko("span",{className:mn("cleen-font-medium cleen-text-foreground cleen-text-base",!r&&"cleen-w-full cleen-truncate"),children:d?.label}),d?.preSublabel&&ko("span",{className:mn("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!r&&"cleen-w-full cleen-truncate"),children:d?.preSublabel}),d?.sublabel&&ko("span",{className:mn("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!r&&"cleen-w-full cleen-truncate"),children:d?.sublabel})]}),m&&ko("div",{className:o?.checkContainer,style:n?.checkContainer,children:ko(zt,{className:mn("cleen-text-primary",o?.check),style:n?.check})})]},d.value)})})});import{Fragment as hN,jsx as ke,jsxs as Oi}from"react/jsx-runtime";var fN=dN(function({id:t,name:o,label:n,labelTooltip:l,labels:r,options:c,value:i,displaySelected:s="under",isLoading:p=!1,required:d,internalFiltering:g=!1,closeOnReachingLimit:m=!0,limit:v,getCustomBadgeLabel:y,displaySubtextInline:u=!0,selectedBadgeColor:b="blue",debounceDelay:C=0,characterThreshold:x=2,disabled:I=!1,isNoDataVisibleOnCreateNew:P=!0,zIndex:T=pN.DROPDOWN,className:D,classNames:B,style:N,styles:L,infoLabels:M,menuDetachedFromPortal:S,onInputChange:w,onChange:E,onCreateNewOption:R,createNewOptionLabelString:k,onLookupBlur:O,triggerBlurOnlyWhenOpen:F=!0,menuRef:A,..._},G){let[U,W]=Ai(!1),Q=Fi(null),H=Fi(null),V=A??Q,{positionStyles:X,isMounted:z}=sN({triggerRef:H,targetRef:V,position:"bottom-left",isOpen:U,offset:4});iN({refs:[V,H],handler:()=>{W(!1),O?.()},enabled:F?U:!0});let[q,pe]=Ai(""),fe=cN(q,C),me=C?fe:q,$e=Fi(me),Pe=Fi(!1),j=()=>{Pe.current=!1,pe("")},ce=Array.isArray(i),[tt,We]=Ai([]),Be=ce?i:tt,De=["inside","inside-badge"].includes(s),ze=(oe,$=!1)=>{if($){let se=Be.filter(Re=>Re.value!==oe.value);ce||We(se),E?.(se);return}let Z;if(v===1)Z=[oe];else{if(v&&Be.length>=v)return;Z=[...Be,oe]}ce||We(Z),E?.(Z),m&&v&&Z.length>=v&&(j(),W(!1))},Y=NI(()=>g?c?.filter(oe=>oe?.label?.match(new RegExp(me,"i"))):c,[c,me,g]),xe=NI(()=>k&&R&&!p&&q?.length>0&&!Y?.some(oe=>oe?.label===q)?typeof k=="function"?k(q):k:null,[k,R,p,q,Y]);BI(()=>{if($e.current!==me)if($e.current=me,me.length<x)W(!1);else{w?.(me);let oe=!!H.current?.contains(document.activeElement);Pe.current&&oe&&W(!0)}},[me,w,x]);let Ne=mN(),ge=oe=>`${Ne}-option-${oe}`,[qe,ot]=Ai(-1);BI(()=>{ot(-1)},[me,U]);let Ar=oe=>{let $=Y?.length??0;switch(oe.key){case"ArrowDown":if(!$)return;if(oe.preventDefault(),!U){W(!0),ot(0);return}ot(Z=>(Z+1)%$);break;case"ArrowUp":if(!$)return;if(oe.preventDefault(),!U){W(!0),ot($-1);return}ot(Z=>(Z-1+$)%$);break;case"Home":if(!U||!$)return;oe.preventDefault(),ot(0);break;case"End":if(!U||!$)return;oe.preventDefault(),ot($-1);break;case"Enter":{if(!U||qe<0)return;let Z=Y?.[qe];if(!Z)return;oe.preventDefault();let se=Be?.some(Re=>Re.value===Z.value);ze(Z,se);break}case"Escape":U&&(oe.preventDefault(),W(!1));break;default:break}},Dn=Oi("ul",{id:Ne,role:"listbox",className:Oe("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:L?.menu?.container,children:[p?ke(re,{className:Oe("cleen-py-3",B?.menu?.loader),style:L?.menu?.loader}):!Y||Y?.length===0?!!r?.noDataFound&&(P||!xe)&&ke("div",{className:Oe("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:L?.menu?.noDataFound,children:r?.noDataFound}):ke(TI,{options:Y,selection:Be,onChoose:ze,displaySubtextInline:u,activeIndex:qe,getOptionId:ge,onActiveIndexChange:ot,...B?.menu?.list,...L?.menu?.list}),xe&&Oi("div",{className:Oe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",B?.createNewOption?.container),style:L?.createNewOption?.container,children:[ke(gt,{...B?.createNewOption?.divider,...L?.createNewOption?.divider}),ke("span",{className:Oe("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",B?.createNewOption?.value),style:L?.createNewOption?.value,onClick:()=>{let oe=R?.(q);typeof oe=="boolean"&&!oe||(j(),W(!1))},children:xe})]})]});return ke("div",{className:Oe("cleen",D),style:N,children:Oi("div",{className:Oe("cleen-flex cleen-flex-col cleen-w-full",B?.container),style:L?.container,children:[n&&ke(ae,{htmlFor:t||o,required:d,tooltip:l,className:Oe("cleen-mb-1.5",B?.label?.className),classNames:B?.label?.classNames,...L?.label,children:n}),ke("div",{ref:H,className:Oe("cleen-relative cleen-flex cleen-items-center",B?.input?.container),style:L?.input?.container,children:ke(ye,{id:t||o,type:"search",autoFocus:!1,autoComplete:"off",className:Oe("cleen-w-full",B?.input?.component?.className),classNames:{...B?.input?.component?.classNames,inputContainer:Oe({"cleen-flex-wrap":De},B?.input?.component?.classNames?.inputContainer),input:Oe({"cleen-pl-2":De},B?.input?.component?.classNames?.input),leftIconContainer:Oe({"cleen-pr-0":De},B?.input?.component?.classNames?.leftIconContainer)},...L?.input?.component,leftIcon:Oi(hN,{children:[ke(Wt,{}),De&&(Be||[])?.length>0&&ke("div",{className:Oe("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{W(!U)},children:s==="inside-badge"?Be?.map(oe=>ke(we,{label:oe?.label,color:"blue",variant:"semiRounded"},oe.value)):ke("span",{className:Oe("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:Be?.map(oe=>oe?.label).join(", ")})})," "]}),onFocus:()=>{me.length>=x&&q.length>=x&&W(!0)},value:q,onChange:oe=>{Pe.current=!0,pe(oe.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":U,"aria-controls":U?Ne:void 0,"aria-activedescendant":U&&qe>=0?ge(qe):void 0,onKeyDown:Ar,ref:G,required:d,disabled:I,..._})}),U&&(S?ke("div",{ref:V,children:Dn}):uN(ke("div",{className:"cleen",children:ke("div",{ref:V,className:Oe("cleen-absolute",{"cleen-opacity-0":!z}),style:{zIndex:T,top:`${X.top}px`,left:`${X.left}px`,minWidth:H.current?.offsetWidth?`${H.current.offsetWidth}px`:void 0},children:Dn})}),document.body)),s==="under"&&Be?.length>0&&ke("span",{className:Oe("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",B?.pillbadge?.container),style:L?.pillbadge?.container,children:Be?.map(oe=>ke(we,{label:y?y(oe):oe?.label,color:b,removeable:!I,onRemoveClicked:()=>{if(I)return;let $=Be?.filter(Z=>Z?.value!==oe?.value);ce||We($),E?.($)},...B?.pillbadge?.component,...L?.pillbadge?.component},oe.value))}),(M?.errorMessage||M?.infoMessage||M?.subtitle)&&ke(ne,{...M})]})})});import{cn as ue}from"@cleen/ui-core";import{forwardRef as gN}from"react";import yN from"react-markdown";import vN from"remark-gfm";import{jsx as de}from"react/jsx-runtime";var bN=gN(function({components:t,children:o,className:n,classNames:l,style:r,styles:c,...i},s){let p={h1:({children:d})=>de("h1",{className:ue("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:d}),h2:({children:d})=>de("h2",{className:ue("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:d}),h3:({children:d})=>de("h3",{className:ue("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:d}),h4:({children:d})=>de("h4",{className:ue("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:d}),h5:({children:d})=>de("h5",{className:ue("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),h6:({children:d})=>de("h6",{className:ue("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),p:({children:d})=>de("p",{className:ue("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:d}),a:({href:d,children:g})=>de("a",{href:d,className:ue("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:g}),ul:({children:d})=>de("ul",{className:ue("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),ol:({children:d})=>de("ol",{className:ue("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),li:({children:d})=>de("li",{className:ue("cleen-mb-1"),children:d}),blockquote:({children:d})=>de("blockquote",{className:ue("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-neutral-700 cleen-mb-4"),children:d}),code:({className:d,children:g,...m})=>d?de("code",{className:ue("cleen-font-mono cleen-text-sm"),...m,children:g}):de("code",{className:ue("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...m,children:g}),pre:({children:d})=>de("pre",{className:ue("cleen-bg-muted dark:cleen-bg-neutral-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:d}),hr:()=>de("hr",{className:ue("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:d,alt:g})=>de("img",{src:d,alt:g,className:ue("cleen-max-w-full cleen-rounded")}),strong:({children:d})=>de("strong",{className:ue("cleen-font-semibold"),children:d}),em:({children:d})=>de("em",{className:ue("cleen-italic"),children:d}),table:({children:d})=>de("div",{className:ue("cleen-overflow-x-auto cleen-mb-4"),children:de("table",{className:ue("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:d})}),thead:({children:d})=>de("thead",{className:ue("cleen-border-b cleen-border-border"),children:d}),th:({children:d})=>de("th",{className:ue("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:d}),td:({children:d})=>de("td",{className:ue("cleen-p-2 cleen-border-b cleen-border-border"),children:d}),input:({type:d,checked:g,disabled:m})=>d==="checkbox"?de("input",{type:"checkbox",checked:g,disabled:m,readOnly:!0,className:ue("cleen-mr-2 cleen-align-middle")}):de("input",{type:d})};return de("div",{ref:s,className:ue("cleen",n,l?.container),style:{...r,...c?.container},...i,children:de(yN,{...i,remarkPlugins:[vN],components:{...p,...t},children:o})})});import{cn as un,useBodyScrollLock as IN,useCleenOverlays as RI,ZIndex as CN}from"@cleen/ui-core";import{forwardRef as PN,useCallback as xN,useEffect as u1,useId as SN,useRef as wN,useState as LI}from"react";import{createPortal as MN}from"react-dom";import{jsx as Cl,jsxs as DI}from"react/jsx-runtime";var kN={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},EI=300,TN=PN(function({isOpen:t=!1,onClose:o,closeOnOverlayClick:n=!0,closeButtonIcon:l=Cl(He,{className:"cleen-size-5"}),header:r,footer:c,zIndex:i=CN.MODAL,size:s="md",color:p,p:d,gap:g,radius:m=16,className:v,classNames:y,style:u,styles:b,children:C,...x},I){let[P,T]=LI(t),[D,B]=LI(t),N=wN(null),L=SN(),{addOverlay:M,removeOverlay:S}=RI(),w=xN(()=>{T(!1),setTimeout(()=>o?.(),EI)},[o]);return u1(()=>{if(t){B(!0);let E=setTimeout(()=>T(!0),1);return()=>clearTimeout(E)}else{T(!1);let E=setTimeout(()=>B(!1),EI);return()=>clearTimeout(E)}},[t]),u1(()=>{if(t)return M(L),()=>S(L)},[M,S,t,L]),u1(()=>{let E=R=>{let{overlays:k}=RI.getState();R.key==="Escape"&&k[k.length-1]===L&&w()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[w,L]),IN(D),D?MN(DI("div",{className:un("cleen",v),style:u,ref:I,...x,children:[Cl("div",{className:un("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",y?.overlay),style:{zIndex:i,...b?.overlay},onClick:()=>{n&&w()},"aria-hidden":"true"}),Cl("div",{className:un("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",y?.container),style:{zIndex:i,...b?.container},"aria-modal":"true",role:"dialog",children:DI(he,{header:r,footer:c,color:p,p:d,gap:g,radius:m,className:un("cleen-relative cleen-shadow-xl cleen-w-full cleen-max-w-lg cleen-rounded-lg cleen-pointer-events-auto",y?.modal?.className),style:{maxWidth:typeof s=="number"?s:kN[s],...b?.modal?.style},classNames:{...y?.modal?.classNames,container:un("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",y?.modal?.classNames?.container),childrenContainer:un("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",y?.modal?.classNames?.childrenContainer)},styles:b?.modal?.styles,ref:N,children:[C,l&&Cl("div",{className:un("cleen-top-3 cleen-right-3 cleen-absolute"),children:Cl(ee,{variant:"borderless",onClick:w,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:l})})]})})]}),document.body):null});import{Fragment as BN,jsxs as FI}from"react/jsx-runtime";var AI={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}},_i={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},OI=3,_I=180,VI=15e3,gr="general",Pl={[gr]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},zI={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"},HI={"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"},xl={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=>FI(BN,{children:[FI("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`},Qe="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var f1={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},UI=({exitDuration:e=_I}={})=>{let t=f1,o=new Set,n=new Map,l=new Map,r=0,c=M=>{t={...t,...M},o.forEach(S=>S())},i=M=>{let S=n.get(M);!S||S.handle||t.paused||(S.startedAt=Date.now(),S.handle=setTimeout(()=>b(M),S.remaining))},s=M=>{let S=n.get(M);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=M=>{let S=n.get(M);S?.handle&&clearTimeout(S.handle),n.delete(M)},d=M=>{p(M.id),!(M.priority!=="normal"||M.duration===!1||M.duration<=0)&&(n.set(M.id,{duration:M.duration,remaining:M.duration,startedAt:null,handle:null,revision:++r}),i(M.id))},g=M=>{let S=l.get(M);S&&(l.delete(M),S.ids.delete(M),S.ids.size||clearTimeout(S.handle))},m=M=>{M.forEach(E=>l.delete(E));let S=t.toasts.filter(E=>!M.includes(E.id)),w=S.some(E=>!E.leaving);c({toasts:S,...!w&&{ui:f1.ui}})},v=M=>{g(M.id);let S=t.toasts.some(w=>w.id===M.id);return d(M),c({toasts:S?t.toasts.map(w=>w.id===M.id?M:w):[...t.toasts,M]}),M.id},y=(M,S)=>{let w=t.toasts.find(R=>R.id===M);if(!w||w.leaving)return;let E={...w,...S};("priority"in S||"duration"in S)&&d(E),c({toasts:t.toasts.map(R=>R.id===M?E:R)})},u=M=>{let S=t.toasts.filter(R=>M.includes(R.id)&&!R.leaving);if(!S.length)return;S.forEach(R=>p(R.id));let w=S.filter(R=>R.animationType==="none"||e<=0).map(R=>R.id),E=S.filter(R=>!w.includes(R.id)).map(R=>R.id);if(E.length){let R=t.toasts.filter(F=>!F.leaving).length;c({toasts:t.toasts.map(F=>E.includes(F.id)?{...F,leaving:!0,leavingFromCount:R}:F)});let k=new Set(E),O=setTimeout(()=>m([...k]),e);E.forEach(F=>l.set(F,{handle:O,ids:k}))}w.length&&m(w)},b=M=>u([M]);return{add:v,update:y,dismiss:b,dismissMany:u,clear:()=>u(t.toasts.map(M=>M.id)),pauseAll:()=>{t.paused||(n.forEach((M,S)=>s(S)),c({paused:!0}))},resumeAll:()=>{t.paused&&(c({paused:!1}),n.forEach((M,S)=>i(S)))},setExpanded:M=>c({ui:{...t.ui,expanded:M}}),toggleGroup:M=>{let{expandedGroups:S}=t.ui;c({ui:{...t.ui,expandedGroups:S.includes(M)?S.filter(w=>w!==M):[...S,M]}})},resetUi:()=>c({ui:f1.ui}),getTimer:M=>{let S=n.get(M);if(!S)return;let w=S.startedAt?Date.now()-S.startedAt:0;return{duration:S.duration,remaining:Math.max(0,S.remaining-w),revision:S.revision}},subscribe:M=>(o.add(M),()=>{o.delete(M)}),getSnapshot:()=>t}},le=UI();var NN=0,GI=({id:e,variant:t="default",priority:o,actions:n,duration:l,closeButton:r=!0,hideProgressBar:c,animationType:i="slide",...s})=>{let p=AI[t];return le.add({...s,id:e??`cleen-notification-${++NN}`,variant:t,actions:n,priority:o??(n?.length?"important":"normal"),duration:l??p.duration,closeButton:r,progressBar:c===void 0?p.progressBar:!c,animationType:i,createdAt:Date.now()})},RN=(e,{hideProgressBar:t,...o})=>le.update(e,{...o,...t!==void 0&&{progressBar:!t}}),fn={show:GI,update:RN,dismiss:le.dismiss,dismissMany:le.dismissMany,clear:le.clear};import{useSyncExternalStore as LN}from"react";var Vi=()=>LN(le.subscribe,le.getSnapshot,le.getSnapshot);import{useMemo as EN}from"react";var DN=()=>{let{toasts:e,paused:t}=Vi();return{toasts:EN(()=>e.filter(n=>!n.leaving),[e]),paused:t,show:fn.show,update:fn.update,dismiss:fn.dismiss,dismissMany:fn.dismissMany,clear:fn.clear}};var $I={critical:0,important:1,normal:2},h1=e=>e.filter(t=>!t.leaving),zi=e=>[...e].reverse(),qI=e=>[...e].sort((t,o)=>$I[t.priority]-$I[o.priority]),yr=e=>!!e.actions?.length&&e.priority!=="normal",XI=e=>e.category??gr,hn=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),g1=e=>e.map(hn),WI=(e,t)=>(e.leavingFromCount??0)>t,vr=(e,t,o)=>{let n=h1(e);if(n.length>t)return o(n);let l=e.filter(r=>r.leaving&&WI(r,t));return!n.length&&l.length>t?o(l).map(r=>({...r,exiting:!0})):g1(e.filter(r=>!r.leaving||!WI(r,t)))};var y1=(e,t,o)=>vr(e,o,n=>{let l=qI(zi(n)),r=l.filter(u=>u.priority==="critical"),c=l.filter(u=>u.priority!=="critical"),i=new Map;c.forEach(u=>{let b=XI(u);i.set(b,[...i.get(b)??[],u])});let s=u=>Number(i.get(u).some(yr)),p=u=>i.get(u).length,d=[...i.keys()].sort((u,b)=>s(b)-s(u)||p(b)-p(u)),g=Math.max(0,o-Math.min(r.length,1)),m=d.slice(0,g),v=[...r.slice(1),...d.slice(g).flatMap(u=>i.get(u))],y=r.slice(0,1).map(hn);return m.forEach(u=>{let b=i.get(u);y.push(b.length===1?hn(b[0]):{type:"group",key:`group-${u}`,category:u,toasts:b,expanded:t.expandedGroups.includes(u)})}),y.push({type:"footer",key:"footer",overflow:v,toasts:n}),y});var v1=(e,t,o=1/0)=>vr(e,o,n=>[...g1(n),{type:"footer",key:"footer",overflow:[],toasts:n}]);var b1=(e,t,o)=>vr(e,o,n=>{let l=zi(n);if(t.expanded)return[{type:"list",key:"list",toasts:l}];let r=l.filter(d=>d.priority==="critical"),c=l.filter(d=>d.priority!=="critical"),[i,...s]=c,p=r.map(hn);return i&&s.length?p.push({type:"deck",key:"deck",top:i,hidden:s}):i&&p.push(hn(i)),p});var KI={list:v1,stack:b1,group:y1};import{createContext as FN,useContext as AN}from"react";var I1=FN({categories:Pl,labels:xl,hiddenElements:[],now:Date.now(),paused:!1}),ve=()=>AN(I1);import{cn as ON,getTimeAgoLabel as _N}from"@cleen/ui-core";var K=(e,t,o,n)=>{let l=n?.classNames,r=n?.styles,c=e.styles?.[t]||r?.[t]?{...e.styles?.[t],...r?.[t]}:void 0;return{className:ON(o,e.classNames?.[t],l?.[t]),style:c,"data-slot":t}},Mt=({className:e,style:t,...o})=>({classNames:{container:e},styles:{container:t},...o}),br=(e,t)=>e.categories[t]??{...e.categories[gr],label:t,pluralLabel:t},Hi=(e,t,o)=>{let n=Math.floor(Math.max(0,t-e));return typeof o.timeAgo=="function"?o.timeAgo(n):_N(n,o?.timeAgoStamps)},YI=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 VN}from"@cleen/ui-core";import{jsx as QI}from"react/jsx-runtime";var Ui=({toast:e})=>{let t=ve();if(t.hiddenElements.includes("badges"))return null;let o=e.priority==="critical";if(!o&&!yr(e))return null;let n=K(t,"badge",void 0,e);return QI("span",{...K(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:QI(we,{color:o?"red":"primary",variant:"full",label:o?t.labels.critical:t.labels.action,classNames:{container:VN("cleen-px-1.5 cleen-py-0 cleen-text-[10.5px] cleen-font-semibold cleen-leading-4",n.className)},styles:{container:n.style},"data-slot":n["data-slot"]})})};import{cn as ZI}from"@cleen/ui-core";import{Fragment as zN,jsx as To}from"react/jsx-runtime";var JI=({icon:e,tone:t="neutral",size:o="md",className:n,...l})=>{let r=o==="sm"?14:18;return To("span",{className:ZI("cleen-inline-flex cleen-shrink-0 cleen-items-center cleen-justify-center",o==="sm"?"cleen-size-[26px] cleen-rounded-md":"cleen-size-[34px] cleen-rounded-lg",zI[t],n),"aria-hidden":"true",...l,children:To(Se,{name:e,width:r,height:r})})},C1=({category:e,...t})=>{let o=ve(),n=br(o,e);return To(JI,{icon:n.icon,tone:n.tone,...t})},Gi=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return To(zN,{children:e.icon});if(e.category)return To(C1,{category:e.category,size:t});let o=_i[e.variant];return o?To(JI,{icon:o.name,tone:o.tone,size:t}):null},gn=({icon:e,label:t,className:o,...n})=>To("button",{type:"button","aria-label":t,title:t,className:ZI("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",o),...n,children:To(Se,{name:e,width:14,height:14,strokeWidth:2})});import{cn as P1}from"@cleen/ui-core";import{Fragment as HN,jsx as Sl,jsxs as x1}from"react/jsx-runtime";var jI=({toast:e,children:t})=>{let o=ve(),n=e.title!==void 0&&e.title!==null,l=e.icon===void 0&&(!!e.category||!!_i[e.variant]),r=Sl(Gi,{toast:e}),c=Sl(Ui,{toast:e});return x1(HN,{children:[(e.icon!==void 0||l||e.variant!=="default")&&Sl("span",{...K(o,"icon",P1("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!l}),e),children:r}),x1("div",{...K(o,"body",P1("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[n?x1("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[Sl("span",{...K(o,"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,Sl("span",{...K(o,"message",P1("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":n,"cleen-text-foreground":!n}),e),children:e.message}),t]})]})};import{useState as UN}from"react";import{jsx as GN}from"react/jsx-runtime";var eC=({toast:e})=>{let t=ve(),[o]=UN(()=>le.getTimer(e.id));if(!o)return null;let n=K(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 GN("span",{"aria-hidden":"true",...n,style:{animationDuration:`${o.duration}ms`,animationDelay:`-${o.duration-o.remaining}ms`,animationPlayState:t.paused?"paused":"running",...n.style}})};import{cn as $N}from"@cleen/ui-core";import{jsx as Wi,jsxs as $i}from"react/jsx-runtime";var qi=({toast:e,inDeck:t=!1})=>{let o=ve(),{labels:n,hiddenElements:l}=o,r=e.priority==="critical",c=!!e.actions?.length,i=()=>le.dismiss(e.id),s=g=>{g.key==="Escape"&&(g.stopPropagation(),i())},p=!!e.category&&!l.includes("meta"),d=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!l.includes("progressBar");return $i("div",{role:r?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||c?void 0:0,onKeyDown:s,...K(o,"toast",$N("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)]":r,"cleen-z-10":t},!(t&&e.leaving)&&YI(e),e.className),e),children:[$i(jI,{toast:e,children:[p&&$i("span",{...K(o,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[br(o,e.category).label," \xB7"," ",Hi(e.createdAt,o.now,n)]}),c&&$i("div",{...K(o,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((g,m)=>{let v=K(o,"action",Qe,e);return Wi(ee,{variant:g.variant??(m?"secondary":"primary"),label:g.label,onClick:()=>{g.onClick?.(e),i()},...Mt(v)},`${g.label}-${m}`)}),Wi(ee,{variant:"secondary",label:n.dismiss,onClick:i,...Mt(K(o,"dismissButton",Qe,e))})]})]}),e.closeButton&&Wi(gn,{icon:"X",label:n.close,onClick:i,...K(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),d&&Wi(eC,{toast:e},le.getTimer(e.id)?.revision)]})};import{Fragment as WN,jsx as Ir,jsxs as Xi}from"react/jsx-runtime";var tC="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",oC=({top:e,hidden:t})=>{let o=ve(),{labels:n}=o,l=[e.id,...t.map(r=>r.id)];return Xi(WN,{children:[Xi("div",{...K(o,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[Ir(qi,{toast:e,inDeck:!0}),Ir("span",{"aria-hidden":"true",...K(o,"deckPeek",`${tC} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&Ir("span",{"aria-hidden":"true",...K(o,"deckPeek",`${tC} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!o.hiddenElements.includes("deckMoreBar")&&Xi("div",{...K(o,"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:[Ir("span",{...K(o,"deckMoreLabel"),children:n.moreBehind(t.length)}),Xi("span",{className:"cleen-flex cleen-gap-1",children:[Ir(ee,{variant:"secondary",label:n.showAll,"aria-expanded":!1,onClick:()=>le.setExpanded(!0),...Mt(K(o,"deckShowAllButton",Qe))}),Ir(ee,{variant:"borderless",label:n.dismissAll,onClick:()=>le.dismissMany(l),...Mt(K(o,"deckDismissAllButton",Qe))})]})]})]})};import{cn as qN}from"@cleen/ui-core";import{Fragment as XN,jsx as Ki,jsxs as KN}from"react/jsx-runtime";var nC=({count:e})=>{let t=ve(),{labels:o,onViewAll:n}=t;if(t.hiddenElements.includes("overflowPill"))return null;let l=KN(XN,{children:[o.overflow(e),Ki("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:Ki(Se,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),r=K(t,"overflowPill",qN("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":n}));return n?Ki("button",{type:"button",onClick:()=>n(),...r,children:l}):Ki("span",{...r,children:l})};import{jsx as rC,jsxs as YN}from"react/jsx-runtime";var aC=({overflow:e,toasts:t})=>{let o=ve(),n=!o.hiddenElements.includes("dismissAllButton");return!n&&!e.length?null:YN("div",{...K(o,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[n&&rC("button",{type:"button",onClick:()=>le.dismissMany(t.map(l=>l.id)),...K(o,"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:o.labels.dismissAll}),e.length>0&&rC(nC,{count:e.length})]})};import{jsx as yn,jsxs as Yi}from"react/jsx-runtime";var Qi=({toast:e,onDismiss:t})=>{let o=ve(),n=e.actions?.[0],l=e.title!==void 0&&e.title!==null;return Yi("div",{...K(o,"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:[yn("span",{...K(o,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:yn(Gi,{toast:e,size:"sm"})}),Yi("div",{...K(o,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[Yi("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[yn("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:l?e.title:e.message}),yn(Ui,{toast:e})]}),l&&yn("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),Yi("span",{...K(o,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[n&&yn(gn,{icon:"ArrowRight",label:n.label,onClick:()=>{n.onClick?.(e),t(e.id)}}),yn(gn,{icon:"X",label:o.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as QN,useLayoutEffect as ZN,useRef as JN}from"react";var jN='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',Zi=(e,t,o)=>{let n=JN(!1);return QN(()=>{e.current?.focus({preventScroll:!0})},[e]),ZN(()=>{let i=document.activeElement;n.current&&e.current&&(!i||i===document.body)&&e.current.focus({preventScroll:!0})},[e,t]),{onFocus:()=>{n.current=!0},onBlur:i=>{let s=i.relatedTarget;s&&!i.currentTarget.contains(s)&&(n.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),o();return}if(i.key!=="Tab"||!e.current)return;let s=[...e.current.querySelectorAll(jN)],p=s[0],d=s[s.length-1];!p||!d||(i.shiftKey&&document.activeElement===p?(i.preventDefault(),d.focus()):!i.shiftKey&&(document.activeElement===d||document.activeElement===e.current)&&(i.preventDefault(),p.focus()))}}};import{useRef as eR}from"react";import{Fragment as oR,jsx as Ue,jsxs as Zt}from"react/jsx-runtime";var S1=3,tR=({toasts:e,onCollapse:t})=>{let o=eR(null),n=Zi(o,e.length,t);return Ue("div",{ref:o,tabIndex:-1,...n,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=>Ue(Qi,{toast:l,onDismiss:le.dismiss},l.id))})},lC=({category:e,toasts:t,expanded:o})=>{let n=ve(),{labels:l,onViewAll:r,hiddenElements:c}=n,i=br(n,e),s=t.map(v=>v.id),p=t.filter(yr).length,d=Math.min(...t.map(v=>v.createdAt)),g=()=>le.dismissMany(s),m=()=>le.toggleGroup(e);return Zt("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:v=>{v.key==="Escape"&&!o&&(v.stopPropagation(),g())},...K(n,"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:[Zt("div",{...K(n,"groupHeader","cleen-flex cleen-items-center cleen-gap-2.5 cleen-pb-2 cleen-pl-3 cleen-pr-10 cleen-pt-2.5"),children:[Ue(C1,{category:e,...K(n,"groupIcon")}),Zt("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[Zt("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[Ue("span",{...K(n,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:l.groupTitle(t.length,i)}),Ue("span",{...K(n,"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")&&Zt("span",{...K(n,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[p>0&&Zt(oR,{children:[l.needAction(p)," \xB7 "]}),Hi(d,n.now,l)]})]})]}),o?Ue(tR,{toasts:t,onCollapse:m}):Zt("div",{...K(n,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,S1).map(v=>Zt("div",{...K(n,"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:[Ue("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),Ue("span",{className:"cleen-min-w-0 cleen-truncate",children:v.title??v.message})]},v.id)),t.length>S1&&!c.includes("groupMore")&&Ue("span",{...K(n,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:l.more(t.length-S1)})]}),Zt("div",{...K(n,"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:[r&&Ue(ee,{variant:"primary",label:l.review(i),rightIcon:Ue(Se,{name:"ArrowRight",width:14,height:14}),onClick:()=>r(e),...Mt(K(n,"groupReviewButton",Qe))}),Ue(ee,{variant:"secondary",label:o?l.collapse:l.expand,"aria-expanded":o,onClick:m,...Mt(K(n,"groupToggleButton",Qe))}),Ue("span",{className:"cleen-flex-1"}),Ue(ee,{variant:"borderless",label:l.dismiss,onClick:g,...Mt(K(n,"groupDismissButton",Qe))})]}),Ue(gn,{icon:"X",label:l.dismissGroup,onClick:g,...K(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as nR}from"react";import{jsx as Bo,jsxs as Ji}from"react/jsx-runtime";var cC=({toasts:e})=>{let t=ve(),{labels:o,onViewAll:n}=t,l=nR(null),r=()=>le.setExpanded(!1),c=Zi(l,e.length,r);return Ji("div",{ref:l,tabIndex:-1,role:"group","aria-label":o.region,...c,...K(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:[Ji("div",{...K(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:[Ji("span",{children:[o.listTitle(e.length)," "]}),Bo("span",{className:"cleen-flex-1"}),Bo(ee,{variant:"borderless",label:o.collapse,"aria-expanded":!0,leftIcon:Bo(Se,{name:"ChevronUp",width:14,height:14}),onClick:r,classNames:{container:Qe}})]}),Bo("div",{...K(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>Bo(Qi,{toast:i,onDismiss:le.dismiss},i.id))}),Ji("div",{...K(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:[n&&Bo(ee,{variant:"secondary",label:o.openNotifications,onClick:()=>n(),classNames:{container:Qe}}),Bo("span",{className:"cleen-flex-1"}),Bo(ee,{variant:"secondary",label:o.dismissAll,onClick:()=>le.dismissMany(e.map(i=>i.id)),classNames:{container:Qe}})]})]})};import{useEffect as rR,useState as aR}from"react";var iC=e=>{let[t,o]=aR(()=>Date.now());return rR(()=>{if(!e)return;o(Date.now());let n=setInterval(()=>o(Date.now()),VI);return()=>clearInterval(n)},[e]),t};import{cn as M1}from"@cleen/ui-core";import{forwardRef as lR,useCallback as cR,useEffect as w1,useMemo as sC,useRef as pC}from"react";import{jsx as Jt}from"react/jsx-runtime";var iR=e=>{switch(e.type){case"toast":return Jt(qi,{toast:e.toast},e.key);case"deck":return Jt(oC,{top:e.top,hidden:e.hidden},e.key);case"list":return Jt(cC,{toasts:e.toasts},e.key);case"group":return Jt(lC,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return Jt(aC,{overflow:e.overflow,toasts:e.toasts},e.key)}},sR=(e,t)=>Jt("div",{"aria-hidden":"true",className:M1("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:iR(e)},e.key),pR=lR(function({layout:t="list",maxVisible:o=OI,position:n="bottom-right",categories:l,onViewAll:r,labels:c,classNames:i,styles:s,hiddenElements:p,className:d,style:g,...m},v){let y=Vi(),u=h1(y.toasts).length,b=iC(y.toasts.length>0),C=pC(null),x=pC(!1),I=sC(()=>KI[t](y.toasts,y.ui,o),[t,y.toasts,y.ui,o]),P=sC(()=>({categories:{...Pl,...l},labels:{...xl,...c},classNames:i,styles:s,hiddenElements:p??[],onViewAll:r,now:b,paused:y.paused}),[l,c,i,s,p,r,b,y.paused]);w1(()=>{let{expanded:N,expandedGroups:L}=y.ui,M=y.toasts.some(S=>S.leaving);u<=o&&!M&&(N||L.length)&&le.resetUi()},[u,o,y.toasts,y.ui]);let T=cR(()=>{let N=document.activeElement,L=!!(N&&C.current?.contains(N))&&!!N?.matches(":focus-visible");x.current||L?le.pauseAll():le.resumeAll()},[]);w1(()=>{u||(x.current=!1),T()},[u,T]),w1(()=>{let N=L=>{x.current&&!C.current?.contains(L.target)&&(x.current=!1,T())};return document.addEventListener("pointermove",N,{passive:!0}),()=>document.removeEventListener("pointermove",N)},[T]);let D=N=>{x.current=N,T()},B=()=>requestAnimationFrame(T);return Jt("div",{className:M1("cleen",d),style:g,ref:v,children:Jt(I1.Provider,{value:P,children:Jt("div",{role:"region","aria-live":"polite","aria-label":P.labels.region,ref:C,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),onFocus:B,onBlur:B,...K(P,"region",M1("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",HI[n])),...m,children:I.map(N=>sR(N,n.endsWith("left")?"cleen-items-start":n.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as dC}from"@cleen/ui-core";import{forwardRef as dR,useState as mR}from"react";import{jsx as k1,jsxs as uR}from"react/jsx-runtime";var T1=dR(({totalPages:e,labels:t,onGoToPage:o,classNames:n,styles:l,...r},c)=>{let[i,s]=mR(""),p=()=>{let g=parseInt(i,10);isNaN(g)||(o?.(Math.min(Math.max(g,1),e)),s(""))},d=g=>{g.key==="Enter"?p():g.key==="Escape"&&s("")};return k1("div",{className:"cleen",...r,children:uR("div",{className:dC("cleen-flex cleen-items-center cleen-gap-2",n?.container),style:l?.container,children:[k1("span",{className:dC("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",n?.label),style:l?.label,children:t?.goToPage}),k1(ye,{ref:c,type:"number",min:1,max:e,value:i,onChange:g=>s(g.target.value),onKeyDown:d,...n?.input,...l?.input})]})})});import{cn as ji,useOutsideClick as fR,usePositionClose as hR}from"@cleen/ui-core";import{forwardRef as gR,useRef as mC,useState as uC}from"react";import{createPortal as yR}from"react-dom";import{jsx as Cr,jsxs as bR}from"react/jsx-runtime";var vR=[10,20,50,100],B1=gR(({pageSize:e,pageSizes:t=vR,labels:o,onPageSizeChange:n,classNames:l,styles:r,...c},i)=>{let[s,p]=uC(e??t?.[0]??void 0),[d,g]=uC(!1),m=mC(null),v=mC(null),{positionStyles:y,isMounted:u}=hR({triggerRef:m,targetRef:v,isOpen:d,position:"top-left"});return fR({refs:[m,v],handler:()=>g(!1),enabled:d}),Cr("div",{className:"cleen",ref:i,...c,children:bR("div",{className:ji("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",l?.container),style:r?.container,children:[Cr(Ie,{label:o?.itemsPerPage?.(s),classNames:{labelContainer:"cleen-min-w-max"},children:Cr("div",{className:ji("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:r?.trigger,onClick:()=>g(b=>!b),ref:m,children:s})}),d&&yR(Cr("div",{className:"cleen",children:Cr("div",{ref:v,className:ji("cleen-flex cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute cleen-z-50",{"cleen-opacity-0":!u},l?.menu),style:{top:`${y.top}px`,left:`${y.left}px`,...r?.menu},children:t?.filter(b=>b!==s)?.map(b=>Cr("div",{className:ji("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:r?.menuItem,onClick:()=>{p(b),n?.(b),g(!1)},children:b},b))})}),document.body)]})})});var fC={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as No}from"@cleen/ui-core";import{forwardRef as IR,useCallback as es,useMemo as CR,useRef as PR}from"react";import{jsx as Ze,jsxs as SR}from"react/jsx-runtime";var xR=IR(({currentPage:e,totalPages:t,pageSize:o,pageSizes:n,hasGotoPage:l=!0,hasPageSizeSelector:r=!0,onPageChange:c,onPageSizeChange:i,labels:s=fC,classNames:p,styles:d,...g},m)=>{let v=PR(null),y=es(()=>{e<t&&c?.(e+1)},[e,t,c]),u=es(()=>{e>1&&c?.(e-1)},[e,c]),b=es(I=>Ze("span",{className:No("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",p?.pageButton,I===e?p?.activePageButton:""),style:{...d?.pageButton,...I===e?d?.activePageButton:{}},onClick:()=>c?.(I),children:I},`page-${I}`),[e,c,p,d]),C=es(I=>Ze("span",{className:No("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:d?.ellipsis,onClick:()=>v.current?.focus(),children:"..."},I),[p,d]),x=CR(()=>{if(isNaN(e)||isNaN(t))return[];let I=[];if(I.push(Ze(Ie,{label:s.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ze("span",{className:No("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:d?.navButton,onClick:u,children:Ze(Ht,{})})},"prev")),t<=7)for(let P=1;P<=t;P++)I.push(b(P));else if(I.push(b(1)),e<=3){for(let P=2;P<5;P++)I.push(b(P));I.push(C("dots-end")),I.push(b(t))}else if(e>=t-2){I.push(C("dots-start"));for(let P=t-3;P<=t;P++)I.push(b(P))}else I.push(C("dots-start")),I.push(b(e-1)),I.push(b(e)),I.push(b(e+1)),I.push(C("dots-end")),I.push(b(t));return I.push(Ze(Ie,{label:s.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ze("span",{className:No("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:d?.navButton,onClick:y,children:Ze(mt,{})})},"next")),I},[e,t,s,p,d,C,b,y,u]);return Ze("div",{className:"cleen",ref:m,...g,children:SR("div",{className:No("cleen-flex cleen-justify-between cleen-gap-4",p?.container),style:d?.container,children:[r?Ze(B1,{pageSize:o,labels:s,onPageSizeChange:i,pageSizes:n,className:No("cleen-flex-1",p?.pageSizeSelector?.className),classNames:p?.pageSizeSelector?.classNames,...d?.pageSizeSelector}):Ze("div",{className:"cleen-flex-1"}),Ze("div",{className:No("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",p?.buttonsContainer),style:d?.buttonsContainer,children:x}),l?Ze(T1,{ref:v,totalPages:t,onGoToPage:c,labels:s,className:No("cleen-flex cleen-flex-1 cleen-justify-end",p?.goToPage?.className),classNames:p?.goToPage?.classNames,...d?.goToPage}):Ze("div",{className:"cleen-flex-1"})]})})});import{cn as N1,useDisclosure as wR,useOutsideClick as MR,usePositionClose as kR,ZIndex as TR}from"@cleen/ui-core";import{forwardRef as BR,useRef as hC}from"react";import{createPortal as NR}from"react-dom";import{jsx as R1,jsxs as RR}from"react/jsx-runtime";var wl=BR(function({isOpen:t,onOpenChange:o,content:n,position:l="bottom-left",offset:r,zIndex:c=TR.POPOVER,portalContainer:i,children:s,className:p,classNames:d,style:g,styles:m,...v},y){let{isOpen:u,toggle:b,close:C}=wR({value:t,setValue:o}),x=hC(null),I=hC(null),{positionStyles:P,isMounted:T}=kR({triggerRef:x,targetRef:I,position:l,isOpen:u,offset:r,container:i});MR({refs:[x,I],handler:C,enabled:u});let D=B=>{B.stopPropagation(),b()};return RR("div",{className:N1("cleen",p),style:g,ref:y,...v,children:[R1("div",{ref:x,onClick:D,className:N1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:s}),u&&NR(R1("div",{className:"cleen",onClick:B=>B.stopPropagation(),onPointerDown:B=>B.stopPropagation(),onMouseDown:B=>B.stopPropagation(),onTouchStart:B=>B.stopPropagation(),children:R1("div",{ref:I,className:N1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!T},d?.popover),style:{zIndex:c,top:`${P.top}px`,left:`${P.left}px`,...m?.popover},onClick:B=>B.stopPropagation(),children:n})}),i??document.body)]})});import{cn as gC}from"@cleen/ui-core";import{forwardRef as LR,useEffect as ER,useState as DR}from"react";import{jsx as ts,jsxs as yC}from"react/jsx-runtime";var FR={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},vC=LR(({isFullscreen:e,percentage:t,duration:o=1e3,radius:n,stroke:l=16,size:r="md",color:c="rgb(var(--cleen-primary))",emptyColor:i="rgb(var(--cleen-neutral-200))",textColor:s="rgb(var(--cleen-foreground))",textHidden:p=!1,fontSize:d,renderText:g,className:m,classNames:v,style:y,styles:u,...b},C)=>{let x=n??FR[r]/2,I=x-l/2,P=I*2*Math.PI,[T,D]=DR(0);ER(()=>{let N=null;if(o===0){D(t);return}let L=M=>{N||(N=M);let S=M-N,w=Math.min(S/o*t,t);D(w),w<t&&requestAnimationFrame(L)};requestAnimationFrame(L)},[t,o]);let B=P-T/100*P;return ts("div",{ref:C,className:gC("cleen",m),style:y,...b,children:yC("div",{className:gC("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},v?.container),style:u?.container,children:[yC("svg",{height:x*2,width:x*2,style:{transform:"rotate(-90deg)"},children:[ts("circle",{stroke:i,fill:"transparent",strokeWidth:l,r:I,cx:x,cy:x}),ts("circle",{stroke:c,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:P,strokeDashoffset:B,r:I,cx:x,cy:x})]}),!p&&ts("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:d??x/2.5,color:s},children:g?g(T):`${Math.round(T)}%`})]})})});vC.displayName="ProgressCircle";import{cn as st}from"@cleen/ui-core";import{useEffect as AR,useState as OR}from"react";import{Fragment as bC,jsx as jt,jsxs as Ml}from"react/jsx-runtime";var _R=({horizontal:e,boxes:t,selectedBox:o,onBoxClick:n,leftElement:l,rightElement:r,leftIcon:c,leftIconName:i,rightIconName:s,className:p,classNames:d,style:g,styles:m,...v})=>{let[y,u]=OR(o);AR(()=>{u(o)},[o]);let b=(P,T)=>Ml(bC,{children:[l&&l(P),c||(i?jt(Se,{name:i,className:st("cleen-w-5 cleen-h-5",T?"cleen-text-primary":"cleen-text-neutral-700",d?.leftIcon),style:m?.leftIcon}):null)]}),C=(P,T)=>jt("span",{className:st("cleen-font-semibold",T?"cleen-text-primary":"cleen-text-neutral-700",d?.label),style:m?.label,children:P?.label}),x=(P,T)=>jt("span",{className:st("cleen-font-semibold cleen-text-16px",T?"cleen-text-primary":"cleen-text-neutral-700",d?.subLabel),style:m?.subLabel,children:P?.subLabel}),I=(P,T)=>Ml(bC,{children:[r&&r(P),s&&jt(Se,{name:s,className:st("cleen-w-5 cleen-h-5",T?"cleen-text-primary":"cleen-text-neutral-700",d?.rightIcon),style:m?.rightIcon})]});return jt("div",{className:st("cleen",p),style:g,...v,children:e?jt("div",{className:st("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",d?.container),style:m?.container,children:t?.map(P=>{let T=P?.id===y?.id;return Ml("div",{className:st("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",T?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",d?.box),style:m?.box,onClick:()=>{u(P),n?.(P)},children:[b(P,T),P?.label&&C(P,T),P?.subLabel&&x(P,T),I(P,T)]},P?.id)})}):jt("div",{className:st("cleen-grid cleen-gap-3 cleen-w-full",d?.container),style:{gridTemplateColumns:"1fr auto 1fr",...m?.container},children:t?.map(P=>{let T=P?.id===y?.id;return Ml("div",{className:st("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",T?"cleen-bg-primary-100 cleen-border-muted-foreground":"cleen-bg-surface cleen-border-border",d?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...m?.box},onClick:()=>{u(P),n?.(P)},children:[jt("div",{className:st("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",d?.leftIconContainer),style:m?.leftIconContainer,children:b(P,T)}),jt("div",{className:st("cleen-flex cleen-items-center cleen-justify-center",d?.labelContainer),style:m?.labelContainer,children:P?.label&&C(P,T)}),Ml("div",{className:st("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",d?.rightIconContainer),style:m?.rightIconContainer,children:[P?.subLabel&&x(P,T),I(P,T)]})]},P?.id)})})})};import{cn as eo}from"@cleen/ui-core";import{forwardRef as HR,useEffect as UR,useId as GR,useRef as $R,useState as WR}from"react";import{cn as IC}from"@cleen/ui-core";import{forwardRef as VR}from"react";import{jsx as CC,jsxs as zR}from"react/jsx-runtime";var os=VR(function({checked:t,className:o,classNames:n,style:l,styles:r,...c},i){return zR("div",{className:IC("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",o),style:l,children:[CC("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...c}),CC("span",{className:IC("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",n?.innerCircle),style:r?.innerCircle})]})});import{jsx as kt,jsxs as ns}from"react/jsx-runtime";var qR=HR(function({required:t,radios:o,label:n,labelTooltip:l,className:r,classNames:c,style:i,styles:s,name:p,direction:d="vertical",radioPosition:g="left",defaultActiveId:m,value:v,infoLabels:y,onChange:u},b){let C=v!==void 0,[x,I]=WR(m??o[0]?.id),P=GR(),T=`${P}-label`,D=p??`cleen-radio-group-${P}`;UR(()=>{!C&&m!==void 0&&I(m)},[m,C]);let B=C?v:x,N=k=>B!=null&&B==k,L=k=>{C||I(k),u?.(k)},M=$R([]),S=o?.findIndex(k=>N(k.id)),w=S>=0?S:0,E=k=>{let O=o[k];O&&(L(O.id),M.current[k]?.focus())},R=(k,O)=>{let F=o.length;if(F)switch(k.key){case"ArrowDown":case"ArrowRight":k.preventDefault(),E((O+1)%F);break;case"ArrowUp":case"ArrowLeft":k.preventDefault(),E((O-1+F)%F);break;default:break}};return kt("div",{className:eo("cleen",r),style:i,ref:b,children:ns("div",{className:c?.container,style:s?.container,children:[n&&kt(ae,{id:T,htmlFor:P,required:t,tooltip:l,className:eo("cleen-mb-1.5",c?.label?.className),classNames:c?.label?.classNames,...s?.label,children:n}),kt("div",{id:P,role:"radiogroup","aria-labelledby":n?T:void 0,className:eo("cleen-flex cleen-flex-wrap cleen-gap-2.5",d==="vertical"&&"cleen-flex-col cleen-w-fit",c?.radios),style:s?.radios,children:o?.map((k,O)=>{let F=`${P}-${O}`,A=k.radioPosition??g;return ns("div",{className:eo("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",d==="horizontal"&&"cleen-flex-1",N(k?.id)&&"cleen-border-primary hover:cleen-border-primary",c?.radioContainer,k?.className,N(k?.id)&&c?.radioActive),style:{...s?.radioContainer,...k?.style},onClick:_=>{_.target instanceof Element&&!_.target.closest("label, input")&&M.current[O]?.click()},children:[k.leftIcon,A==="left"&&kt(os,{ref:_=>{M.current[O]=_},id:F,name:D,value:k.id,checked:N(k.id),tabIndex:O===w?0:-1,onChange:()=>L(k.id),onKeyDown:_=>R(_,O),className:eo(c?.radioOuterCheckBox,k?.classNames?.outerCheckBox),style:{...s?.radioOuterCheckBox,...k?.styles?.outerCheckBox}}),ns("label",{htmlFor:F,className:eo("cleen-flex-1 cleen-cursor-pointer",c?.radioLabelsContainer,k?.classNames?.labelsContainer),style:{...s?.radioLabelsContainer,...k?.styles?.labelsContainer},children:[ns("div",{className:"cleen-flex cleen-items-center cleen-gap-1",children:[kt("span",{className:eo("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",c?.radioTitle,k?.classNames?.title),style:{...s?.radioTitle,...k?.styles?.title},children:k.title}),kt("span",{className:eo("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",c?.radiotPostTitle,k?.classNames?.postTitle),style:{...s?.radiotPostTitle,...k?.styles?.postTitle},children:k.postTitle})]}),kt("span",{className:eo("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",c?.radioSubTitle,k?.classNames?.subTitle),style:{...s?.radioSubTitle,...k?.styles?.subTitle},children:k?.subTitle})]}),A==="right"&&kt(os,{ref:_=>{M.current[O]=_},id:F,name:D,value:k.id,checked:N(k.id),tabIndex:O===w?0:-1,onChange:()=>L(k.id),onKeyDown:_=>R(_,O),className:c?.radioOuterCheckBox,style:s?.radioOuterCheckBox}),A==="hidden"&&kt(os,{ref:_=>{M.current[O]=_},id:F,name:D,value:k.id,checked:N(k.id),tabIndex:O===w?0:-1,onChange:()=>L(k.id),onKeyDown:_=>R(_,O),className:"cleen-sr-only"}),k.rightIcon]},k?.id)})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&kt(ne,{...y})]})})});import{cn as Pr,ColorHelpers as XR}from"@cleen/ui-core";import{forwardRef as KR,useRef as YR,useState as QR}from"react";import{jsx as vn,jsxs as PC}from"react/jsx-runtime";var ZR=KR(function({id:t,required:o,label:n,labelTooltip:l,labels:r,infoLabels:c,value:i,onChange:s,amount:p=5,options:d=[],gap:g,size:m=36,readonly:v,color:y="rgb(var(--cleen-primary))",className:u,style:b,classNames:C,styles:x,...I},P){let[T,D]=QR(0),B=i!==void 0,N=B?i:T,L=d?.length>0?d:Array.from({length:p},(F,A)=>A+1),M=YR([]),S=L.findIndex(F=>F===N),w=S>=0?S:0,E=F=>{B||D(F),s?.(F)},R=F=>{let A=L[F];A!==void 0&&(E(A),M.current[F]?.focus())},k=(F,A)=>{if(v)return;let _=L.length;if(_)switch(F.key){case"ArrowRight":case"ArrowUp":F.preventDefault(),R((A+1)%_);break;case"ArrowLeft":case"ArrowDown":F.preventDefault(),R((A-1+_)%_);break;case"Home":F.preventDefault(),R(0);break;case"End":F.preventDefault(),R(_-1);break;default:break}},O=typeof n=="string"?n:"Rating";return vn("div",{className:Pr("cleen",u),style:b,ref:P,...I,children:PC("div",{className:Pr("cleen-space-y-2",C?.container),style:x?.container,children:[n&&vn(ae,{htmlFor:t,required:o,tooltip:l,className:Pr("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...x?.label,children:n}),PC("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[vn("div",{role:"radiogroup","aria-label":O,className:Pr("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...g?{gap:g}:{},...x?.list},children:L?.map((F,A)=>vn("button",{id:t,ref:_=>{M.current[A]=_},role:"radio","aria-checked":N===F,"aria-label":`${F}`,tabIndex:A===w?0:-1,onClick:()=>E(F),onKeyDown:_=>k(_,A),className:Pr("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",v&&"cleen-cursor-default cleen-pointer-events-none",C?.item),style:{width:m,height:m,...N===F?{borderColor:y,backgroundColor:XR.trasparentize(y,.9),color:y}:{},...x?.item},type:"button",children:vn("span",{className:Pr("cleen-font-medium cleen-text-sm",C?.value),style:x?.value,children:F})},F))}),r?.helperText&&vn("span",{className:"cleen-text-sm cleen-text-neutral-600",children:r.helperText})]}),(c?.errorMessage||c?.infoMessage||c?.subtitle)&&vn(ne,{...c})]})})});import{useState as JR}from"react";import{components as jR}from"react-select";import{jsx as L1,jsxs as xC}from"react/jsx-runtime";var SC=e=>{let[t,o]=JR(!1),n=e.data;return L1("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:L1(jR.Option,{...e,children:xC("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[xC("div",{className:"cleen-flex-1",children:[n?.label,n?.sublabel&&L1("p",{className:"cleen-text-xs",children:n?.sublabel})]}),typeof n?.icon=="function"?n.icon({...e,isHovered:t}):n?.icon]})})})};import{components as eL}from"react-select";import{jsx as E1,jsxs as tL}from"react/jsx-runtime";var wC=e=>{let t=e.data;return E1(eL.SingleValue,{...e,children:tL("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[E1("p",{children:t?.label}),t?.sublabel&&E1("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as kl,ZIndex as NC}from"@cleen/ui-core";import{forwardRef as rL,useId as aL,useState as RC}from"react";import lL from"react-select";import{components as oL}from"react-select";import{jsx as D1,jsxs as MC}from"react/jsx-runtime";var kC=({isLoading:e,inputValue:t,options:o,createNewOptionCallback:n,createNewOptionLabelStringCb:l,children:r,...c})=>{let i=t?.trim().toLowerCase(),s=o?.some(p=>p?.labelString?p.labelString.toLowerCase()===i:typeof p?.label=="string"?p.label.toLowerCase()===i:!1);return D1("div",{className:"cleen",children:MC(oL.MenuList,{options:o,...c,children:[r,n&&!e&&t&&t?.length>0&&!s&&MC("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[D1(gt,{}),D1("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{n(t)},children:l?.(t)||t})]})]})})};import{components as nL}from"react-select";import{jsx as TC}from"react/jsx-runtime";var BC=({isLoading:e,noDataFound:t,...o})=>TC(nL.NoOptionsMessage,{...o,children:e?TC(re,{}):t||"No data found"});import{jsx as Ro,jsxs as EC}from"react/jsx-runtime";var LC=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),cL=rL(function({label:t,labelTooltip:o,sublabel:n,id:l,name:r,required:c,className:i,classNames:s,isLoading:p=!1,disabled:d,emboldenOptions:g=!1,labels:m,components:v,style:y,styles:u,infoLabels:b,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...I},P){let[T,D]=RC(!1),[B,N]=RC(""),L=aL(),M=I.inputId??l??r??L,S=(E,R)=>{if(!LC(E.data))return!1;let{labelString:k,label:O}=E.data;return k?k.toLowerCase().includes(R.toLowerCase()):typeof O=="string"?O.toLowerCase().includes(R.toLowerCase()):!1},w=E=>LC(E)?E.labelString??(typeof E.label=="string"?E.label:""):"";return Ro("div",{className:kl("cleen",i),style:y,ref:P,children:EC("div",{className:kl("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",s?.cleenContainer),style:u?.cleenContainer,children:[(t||n)&&EC("div",{className:kl("cleen-flex cleen-flex-col cleen-gap-1",s?.labels?.container),style:u?.labels?.container,children:[t&&Ro(ae,{htmlFor:M,required:c,tooltip:o,...s?.labels?.label,...u?.labels?.label,children:t}),n&&Ro("span",{className:kl("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",s?.labels?.sublabel),style:u?.labels?.sublabel,children:n})]}),Ro(lL,{...C&&{menuIsOpen:T,inputValue:B,onInputChange:E=>N(E),onMenuOpen:()=>D(!0),onMenuClose:()=>D(!1)},...!I.filterOption&&{filterOption:S},...!I.getOptionLabel&&{getOptionLabel:w},id:l||r,classNames:s,isDisabled:d,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:M,className:kl("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",s?.inputOuterContainer),styles:{...u,control:(E,R)=>{let k={...E,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:g&&R.hasValue?"600":"400",borderColor:b?.errorMessage?"rgba(var(--cleen-error), 0.7)":"rgb(var(--cleen-border))",color:R.isDisabled?"rgb(var(--cleen-neutral-500))":"rgb(var(--cleen-foreground))",backgroundColor:R.isDisabled?"rgb(var(--cleen-neutral-100))":"rgba(var(--cleen-background))",boxShadow:R.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:C?"rgba(var(--cleen-foreground))":"transparent","&:hover":{borderColor:b?.errorMessage?"rgba(var(--cleen-error))":"rgb(var(--cleen-border))"}};return u?.control?u?.control(k,R):k},menuPortal:(E,R)=>{let k={...E,zIndex:NC.SELECT,...u?.menuPortal};return u?.menuPortal?u?.menuPortal(k,R):k},menu:(E,R)=>{let k={...E,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:NC.SELECT,...u?.menu};return u?.menu?u?.menu(k,R):k},option:(E,R)=>{let k={...E,backgroundColor:R.isSelected?"rgba(var(--cleen-primary))":R.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:R.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-foreground))",fontWeight:g?"600":"400","&:hover":R.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:R.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 u?.option?u?.option(k,R):k},menuList:(E,R)=>{let k={...E,"::-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,...u?.menuList};return u?.menuList?u?.menuList(k,R):k},singleValue:(E,R)=>{let k={...E,color:R.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return u?.singleValue?u?.singleValue(k,R):k},input:(E,R)=>{let k={...E,color:"rgba(var(--cleen-foreground))"};return u?.input?u?.input(k,R):k}},components:{IndicatorSeparator:()=>null,SingleValue:E=>Ro(wC,{...E}),NoOptionsMessage:E=>Ro(BC,{isLoading:p,noDataFound:m?.noDataFound,...E}),MenuList:E=>Ro(kC,{isLoading:p,inputValue:B,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...E}),Option:SC,...v}}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&Ro(ne,{...b})]})})});import{jsx as DC,jsxs as iL}from"react/jsx-runtime";function FC({children:e,title:t,className:o="",renderHeader:n}){return iL("div",{className:`cleen-w-full cleen-h-full ${o}`,"data-testid":`drawer-container-${t}`,children:[n?n(t):DC("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),DC("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as to}from"@cleen/ui-core";import{forwardRef as sL,useState as pL}from"react";import{Fragment as fL,jsx as pt,jsxs as rs}from"react/jsx-runtime";function dL({icon:e,iconSrc:t,iconName:o,iconSize:n=24,title:l,className:r,style:c}){return e?pt("span",{className:to("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",r),style:{width:n,height:n,...c},children:e}):t?pt("img",{src:t,alt:l,width:n,height:n,className:r,style:c}):o?pt(Se,{name:o,width:n,height:n,className:r,style:c}):null}function AC({item:e,depth:t,iconSize:o=24,classNames:n,styles:l}){let[r,c]=pL(!1),i={...e,classNames:{...n,...e.classNames},styles:{...l,...e.styles}},s=Array.isArray(i?.items)&&i.items.length>0,p=i?.iconSize??o,d=t>0?{paddingLeft:12+t*28}:{},g=rs(fL,{children:[rs("div",{className:to("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[pt(dL,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:p,title:i?.name,className:to("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}),pt("span",{className:to("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)&&pt(we,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return s?rs("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[rs("summary",{className:to("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:{...d,...i?.styles?.parentItemContainer},onClick:()=>c(m=>!m),children:[g,pt(Se,{name:"ChevronDown",className:to("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":r},i?.classNames?.chevron),style:i?.styles?.chevron})]}),pt("div",{className:to("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(m=>pt(AC,{item:m,depth:t+1,iconSize:o,classNames:n,styles:l},m?.id??m?.name))})]}):pt("div",{className:to("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:{...d,...i?.styles?.container},onClick:()=>i?.onClick?.(i),children:g})}var mL=sL(function({title:t,icon:o,iconName:n,iconSrc:l,iconSize:r=24,badgeColor:c="gray",badgeCount:i,items:s,onClick:p,isActive:d=!1,disabled:g,className:m,classNames:v,style:y,styles:u},b){let C={id:"root",name:t,icon:o,iconName:n,iconSrc:l,iconSize:r,badgeColor:c,badgeCount:i,isActive:d,disabled:g,onClick:p?()=>p():void 0,classNames:v,styles:u,items:s};return pt("div",{className:to("cleen",m),style:y,ref:b,children:pt(AC,{item:C,depth:0,iconSize:r,classNames:v,styles:u})})}),uL=mL;import{cn as oo}from"@cleen/ui-core";import{useEffect as vL,useRef as bL,useState as IL}from"react";import{cn as Tl}from"@cleen/ui-core";import{useMemo as hL}from"react";import{Link as gL}from"react-router-dom";import{jsx as Bl,jsxs as yL}from"react/jsx-runtime";function Nl({item:e,activeId:t,onClick:o,countBadge:n,classNames:l,styles:r,renderIcon:c}){let i=t===e?.id,s=hL(()=>e?c?c(e,i):e.icon?e.icon:e.iconSrc?Bl("img",{src:e.iconSrc,alt:e?.name||e?.label,className:Tl("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,i&&"cleen-text-primary"),style:r?.icon}):e.iconName?Bl(Se,{name:e.iconName,className:Tl("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:r?.icon}):null:null,[e,i,c,l?.icon,r?.icon]),p=yL("div",{"data-testid":`nav-item-${e?.id}`,className:Tl("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:r?.container,onClick:()=>{e?.path||o?.(e)},children:[s,n&&Bl("div",{className:Tl("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:r?.badge,children:n})]});return Bl(Ie,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:Tl("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...r?.tooltip,label:e?.label,children:e?.path?Bl(gL,{to:e.path,children:p}):p})}import{jsx as no,jsxs as bn}from"react/jsx-runtime";function OC({navigationItems:e,bottomNavigationItems:t=[],drawerContent:o={},logo:n,onLogoClick:l,userAvatar:r,userInfo:c,drawerFooter:i,drawerWidth:s=330,direction:p="right",defaultActiveId:d=null,activeId:g,onActiveChange:m,closeOnOutsideClick:v=!0,closeOnBlur:y=!0,className:u,classNames:b,style:C,styles:x,renderSidebarItem:I}){let[P,T]=IL(d),D=bL(null),B=g!==void 0?g:P,N=!!B,L=S=>{let w=B===S.id?null:S.id;g===void 0&&T(w),m?.(w)};vL(()=>{if(!v||!N)return;let S=w=>{D.current&&!D.current.contains(w.target)&&(g===void 0&&T(null),m?.(null))};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[v,N,g,m]);let M=S=>{!y||!N||D.current&&!D.current.contains(S.relatedTarget)&&(g===void 0&&T(null),m?.(null))};return bn("div",{className:oo("cleen",u),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:p==="left"?"row-reverse":"row",...C},ref:D,onBlur:M,tabIndex:y?0:void 0,children:[bn("div",{className:oo("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",b?.navigation),style:x?.navigation,children:[n&&no("div",{className:oo("cleen-flex cleen-justify-center cleen-items-center cleen-pt-8 cleen-pb-6 cleen-w-full cleen-cursor-pointer",b?.logo),style:x?.logo,onClick:l,children:n}),bn("div",{className:oo("cleen-flex cleen-flex-col cleen-flex-1 cleen-justify-between cleen-gap-2 cleen-px-2 cleen-overflow-y-auto cleen-no-scrollbar",b?.navigationItems),style:x?.navigationItems,children:[no("nav",{className:oo("cleen-flex cleen-flex-col cleen-gap-2",b?.upperNavigationItemsWrapper),style:x?.upperNavigationItemsWrapper,children:e.map(S=>bn("div",{children:[I?I(S,B===S.id,L):no(Nl,{item:S,activeId:B,onClick:L,countBadge:S.badgeCount,classNames:{...b?.navigationItem,...S?.classNames},styles:{...x?.navigationItem,...S?.styles}}),S?.withBottomDivider&&no("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},S.id))}),bn("div",{className:oo("cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",b?.bottomNavigationItemsWrapper),style:x?.bottomNavigationItemsWrapper,children:[t.map(S=>bn("div",{children:[I?I(S,B===S.id,L):no(Nl,{item:S,activeId:B,onClick:L,countBadge:S.badgeCount,classNames:{...b?.navigationItem,...S?.classNames},styles:{...x?.navigationItem,...S?.styles}}),S?.withBottomDivider&&no("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},S.id)),r&&no("div",{className:"cleen-mt-6 cleen-mb-8",children:r})]})]})]}),bn("div",{className:oo("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":N&&p==="right","cleen-border-l cleen-border-l-border":N&&p==="left"},b?.drawer),style:{...x?.drawer,width:N?`${s}px`:"0px",visibility:N?"visible":"hidden"},children:[B&&o[B]&&no("div",{className:oo("cleen-flex-1 cleen-overflow-auto",b?.drawerContent),style:x?.drawerContent,children:o[B]}),B&&(i||c)&&no("div",{className:oo("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",b?.drawerFooter),style:x?.drawerFooter,children:typeof i=="function"?i(B):i||c})]})]})}var te=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as _C}from"@cleen/ui-core";import{forwardRef as CL}from"react";import{jsx as VC}from"react/jsx-runtime";var PL={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"},xL=CL(function({width:t,height:o,roundness:n="md",variant:l="default",className:r,style:c},i){let s=te(l),p={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...o!==void 0?{height:typeof o=="number"?`${o}px`:o}:{},...c};return VC("div",{ref:i,className:_C("cleen",r),children:VC("div",{className:_C("cleen-bg-muted",PL[n],t===void 0&&"cleen-w-full",o===void 0&&"cleen-h-4",s),style:p})})});import{cn as F1}from"@cleen/ui-core";import{forwardRef as SL}from"react";import{jsx as as,jsxs as wL}from"react/jsx-runtime";var A1=SL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let c=te(n);return as("div",{ref:r,className:F1("cleen",t),style:o,children:as("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((i,s)=>wL("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[as("div",{className:F1("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",c)}),as("div",{className:F1("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",c)})]},s))})})});import{cn as zC}from"@cleen/ui-core";import{forwardRef as ML}from"react";import{jsx as O1}from"react/jsx-runtime";var _1=ML(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let c=te(n);return O1("div",{ref:r,className:zC("cleen",t),style:o,children:O1("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((i,s)=>O1("div",{className:zC("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",c)},s))})})});import{cn as HC}from"@cleen/ui-core";import{forwardRef as kL}from"react";import{jsx as In,jsxs as ls}from"react/jsx-runtime";var V1=kL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return In("div",{ref:l,className:HC("cleen",t),style:o,children:ls("div",{className:HC("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",r),children:[In("div",{className:"cleen-h-48 cleen-w-full"}),ls("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:[In("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),ls("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[In("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),In("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),ls("div",{className:"cleen-flex cleen-gap-3",children:[In("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),In("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as UC}from"@cleen/ui-core";import{forwardRef as TL}from"react";import{jsx as z1}from"react/jsx-runtime";var H1=TL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let c=te(n);return z1("div",{ref:r,className:UC("cleen",t),style:o,children:z1("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((i,s)=>z1("div",{className:UC("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",c)},s))})})});import{cn as cs}from"@cleen/ui-core";import{forwardRef as BL}from"react";import{jsx as is,jsxs as GC}from"react/jsx-runtime";var Rl=BL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return is("div",{ref:l,className:cs("cleen",t),style:o,children:GC("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:[is("div",{className:cs("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",r)}),GC("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[is("div",{className:cs("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)}),is("div",{className:cs("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",r)})]})]})})});import{cn as xr}from"@cleen/ui-core";import{forwardRef as NL}from"react";import{jsx as Sr,jsxs as ss}from"react/jsx-runtime";var ps=NL(({className:e,style:t,variant:o="default"},n)=>{let l=te(o);return Sr("div",{ref:n,className:xr("cleen",e),style:t,children:ss("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:[ss("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[Sr("div",{className:xr("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",l)}),ss("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Sr("div",{className:xr("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",l)}),Sr("div",{className:xr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),ss("div",{className:"cleen-space-y-2 cleen-w-full",children:[Sr("div",{className:xr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",l)}),Sr("div",{className:xr("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});ps.displayName="AssessmentHeaderSkeleton";import{cn as Tt}from"@cleen/ui-core";import{forwardRef as RL}from"react";import{jsx as Bt,jsxs as wr}from"react/jsx-runtime";var U1=RL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return Bt("div",{ref:l,className:Tt("cleen",t),style:o,children:wr("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:[Bt("div",{className:Tt("cleen-bg-muted cleen-w-full cleen-h-40",r)}),wr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[wr("div",{className:"cleen-flex cleen-gap-2",children:[Bt("div",{className:Tt("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",r)}),Bt("div",{className:Tt("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",r)})]}),wr("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Bt("div",{className:Tt("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",r)}),Bt("div",{className:Tt("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Bt("div",{className:Tt("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)})]}),wr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[wr("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Bt("div",{className:Tt("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",r)}),Bt("div",{className:Tt("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),Bt("div",{className:Tt("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",r)})]})]})]})})});import{forwardRef as LL}from"react";import{cn as EL}from"@cleen/ui-core";import{jsx as G1}from"react/jsx-runtime";var $1=LL(function({className:t,style:o,itemCount:n=3,variant:l="default"},r){return G1("div",{ref:r,className:EL("cleen",t),style:o,children:G1("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:n}).map((c,i)=>G1(Rl,{variant:l},i))})})});import{cn as Cn}from"@cleen/ui-core";import{forwardRef as DL}from"react";import{jsx as dt,jsxs as Ll}from"react/jsx-runtime";var $C=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],W1=DL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return dt("div",{ref:l,className:Cn("cleen",t),style:o,children:Ll("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:[Ll("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[dt("div",{className:Cn("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",r)}),dt("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((c,i)=>Ll("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[dt("div",{className:Cn("cleen-bg-muted cleen-rounded-full cleen-size-2.5",r)}),dt("div",{className:Cn("cleen-bg-muted cleen-rounded cleen-h-3",r),style:{width:c}})]},i))})]}),Ll("div",{className:"cleen-flex cleen-gap-3",children:[dt("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=>dt("div",{className:Cn("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",r)},c))}),Ll("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[dt("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:$C.map((c,i)=>dt("div",{className:Cn("cleen-bg-muted cleen-rounded-t cleen-flex-1",c,r)},i))}),dt("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),dt("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:$C.map((c,i)=>dt("div",{className:Cn("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",r)},i))})]})]})]})})});import{cn as Pn}from"@cleen/ui-core";import{forwardRef as FL}from"react";import{jsx as ro,jsxs as ds}from"react/jsx-runtime";var q1=FL(({variant:e="default",itemCount:t=3,className:o,style:n},l)=>{let r=te(e);return ro("div",{ref:l,className:Pn("cleen",o),style:n,children:ro(he,{className:"cleen-max-h-fit",children:ds("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[ds("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",r)}),ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)})]}),ro("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((c,i)=>ds("div",{className:"cleen-space-y-3",children:[ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",r)}),ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",r)})]},i))}),ds("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)}),ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)})]})]})})})});import{cn as ms}from"@cleen/ui-core";import{forwardRef as AL}from"react";import{jsx as El,jsxs as OL}from"react/jsx-runtime";var X1=AL(function({className:t,style:o,variant:n="default",itemCount:l=5},r){let c=te(n),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 El("div",{ref:r,className:ms("cleen",t),style:o,children:OL("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[El("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((s,p)=>El("div",{className:ms("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",s,c)},p))}),Array.from({length:l}).map((s,p)=>El("div",{className:ms("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((d,g)=>El("div",{className:ms("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",g===i.length-1?"cleen-rounded-full":"cleen-rounded",d,c)},g))},p))]})})});import{cn as us}from"@cleen/ui-core";import{forwardRef as _L}from"react";import{jsx as Dl,jsxs as WC}from"react/jsx-runtime";var K1=_L(function({className:t,style:o,variant:n="default",itemCount:l=4},r){let c=te(n);return Dl("div",{ref:r,className:us("cleen",t),style:o,children:WC("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,s)=>WC("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Dl("div",{className:us("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",c)}),Dl("div",{className:us("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",c)})]},s)),Dl("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:Dl("div",{className:us("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",c)})})]})})});import{cn as qC}from"@cleen/ui-core";import{forwardRef as VL}from"react";import{jsx as Y1}from"react/jsx-runtime";var zL=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],Q1=VL(function({className:t,style:o,variant:n="default",colors:l=zL},r){let c=te(n);return Y1("div",{ref:r,className:qC("cleen",t),style:o,children:Y1("div",{className:qC("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:Y1("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as fs}from"@cleen/ui-core";import{forwardRef as HL}from"react";import{jsx as Mr,jsxs as XC}from"react/jsx-runtime";var Z1=HL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return Mr("div",{ref:l,className:fs("cleen",t),style:o,children:XC("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Mr("div",{className:fs("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:Mr("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:XC("div",{className:fs("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[Mr("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),Mr("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),Mr("div",{className:fs("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",r)})]})})});import{cn as et}from"@cleen/ui-core";import{forwardRef as UL}from"react";import{jsx as Je,jsxs as ao}from"react/jsx-runtime";var J1=UL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return Je("div",{ref:l,className:et("cleen",t),style:o,children:ao("div",{className:et("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:o,children:[ao("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Je("div",{className:et("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),ao("div",{className:"cleen-space-y-3 cleen-w-full",children:[ao("div",{children:[Je("div",{className:et("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),Je(he,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:ao("div",{className:"cleen-space-y-2",children:[Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",r)})]})})]}),ao("div",{children:[Je("div",{className:et("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),ao("div",{className:"cleen-space-y-2",children:[Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",r)})]})]}),ao("div",{children:[Je("div",{className:et("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),Je(he,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:ao("div",{className:"cleen-space-y-2",children:[Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",r)})]})})]})]})]})})});import{cn as j1}from"@cleen/ui-core";import{forwardRef as GL}from"react";import{jsx as eg,jsxs as $L}from"react/jsx-runtime";var tg=GL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return eg("div",{ref:l,className:j1("cleen",t),style:o,children:$L("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[eg("div",{className:j1("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",r)}),eg("div",{className:j1("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",r)})]})})});import{cn as Fl}from"@cleen/ui-core";import{forwardRef as WL}from"react";import{jsx as kr,jsxs as KC}from"react/jsx-runtime";var og=WL(function({className:t,style:o,variant:n="default",itemCount:l=5},r){let c=te(n),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return kr("div",{ref:r,className:Fl("cleen",t),style:o,children:kr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:l}).map((s,p)=>KC("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[kr("div",{className:Fl("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",c)}),KC("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[kr("div",{className:Fl("cleen-bg-muted cleen-rounded cleen-h-4",i[p%i.length],c)}),kr("div",{className:Fl("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",c)})]}),kr("div",{className:Fl("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",c)})]},p))})})});import{cn as YC}from"@cleen/ui-core";import{forwardRef as qL}from"react";import{jsx as rg}from"react/jsx-runtime";var ng=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],ag=qL(function({className:t,style:o,variant:n="default",itemCount:l},r){let c=te(n),i=l??ng.length;return rg("div",{ref:r,className:YC("cleen",t),style:o,children:rg("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((s,p)=>{let d=p<ng.length?ng[p]:p===i-1?"cleen-w-3/5":"cleen-w-full";return rg("div",{className:YC("cleen-bg-muted cleen-rounded cleen-h-3",d,c)},p)})})})});import{cn as QC}from"@cleen/ui-core";import{forwardRef as XL}from"react";import{jsx as ZC}from"react/jsx-runtime";var lg=XL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return ZC("div",{ref:l,className:QC("cleen",t),style:o,children:ZC("div",{className:QC("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)})})});import{cn as xn}from"@cleen/ui-core";import{forwardRef as KL}from"react";import{jsx as Nt,jsxs as hs}from"react/jsx-runtime";var cg=KL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return Nt("div",{ref:l,className:xn("cleen",t),style:o,children:hs("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[Nt("div",{className:xn("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:Nt("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Nt("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:Nt("div",{className:"cleen-w-0 cleen-h-0 cleen-ml-1 cleen-border-y-[8px] cleen-border-y-transparent cleen-border-l-[14px] cleen-border-l-neutral-400"})})})}),hs("div",{className:"cleen-flex cleen-gap-3",children:[Nt("div",{className:xn("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",r)}),hs("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Nt("div",{className:xn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)}),Nt("div",{className:xn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),hs("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Nt("div",{className:xn("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",r)}),Nt("div",{className:xn("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",r)})]})]})]})]})})});import{cn as Al}from"@cleen/ui-core";import{forwardRef as YL}from"react";import{jsx as Ol,jsxs as ig}from"react/jsx-runtime";var gs=YL(function({variant:t="default",className:o,style:n},l){let r=te(t);return Ol("div",{ref:l,className:Al("cleen",o),style:n,children:ig("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:[ig("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:[Ol("div",{className:Al("cleen-bg-muted cleen-rounded-full cleen-size-1.5",r)}),Ol("div",{className:Al("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",r)})]}),ig("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[Ol("div",{className:Al("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",r)}),Ol("div",{className:Al("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",r)})]})]})})});gs.displayName="SkeletonBadgeCard";import{forwardRef as QL}from"react";import{jsx as Ce}from"react/jsx-runtime";var ZL=QL(function({className:t,style:o,variant:n="default",itemCount:l=3,colors:r,skeleton:c="card",isShowing:i=!1,children:s},p){if(!i)return s;let d={ref:p,variant:n,itemCount:l,colors:r,className:t,style:o};switch(c){case"card2":return Ce(ps,{...d});case"card3":return Ce(U1,{...d});case"cardStack":return Ce($1,{...d});case"contentCard":return Ce(q1,{...d});case"infoCard":return Ce(J1,{...d});case"widgetCard":return Ce(gs,{...d});case"image":return Ce(Z1,{...d});case"video":return Ce(cg,{...d});case"avatar":return Ce(A1,{...d});case"dataGrid":return Ce(X1,{...d});case"text":return Ce(lg,{...d});case"paragraph":return Ce(ag,{...d});case"list":return Ce(og,{...d});case"form":return Ce(K1,{...d});case"banner":return Ce(V1,{...d});case"chart":return Ce(W1,{...d});case"button":return Ce(H1,{...d});case"badge":return Ce(_1,{...d});case"input":return Ce(tg,{...d});case"glowingCard":return Ce(Q1,{...d});default:return Ce(Rl,{...d})}});import{cn as Lo}from"@cleen/ui-core";import{forwardRef as JL,useCallback as sg,useEffect as jL,useRef as JC,useState as jC}from"react";import{jsx as Eo,jsxs as ys}from"react/jsx-runtime";var Sn=JL(function({id:t,required:o,minValue:n=0,maxValue:l=100,step:r=1,keyboardStep:c=r,defaultValue:i=0,value:s,variant:p="default",onChange:d,onChangeEnd:g,className:m,classNames:v,style:y,styles:u,disabled:b=!1,label:C,labelTooltip:x,labels:I,tooltip:P,infoLabels:T},D){let[B,N]=jC(i??n),L=s!==void 0?s:B,M=JC(null),[S,w]=jC(!1),E=JC(!1),R=(L-n)/(l-n)*100,k=Math.min(100,Math.max(0,R)),O=sg(H=>{let V=Math.round((H-n)/r)*r+n;return Math.min(l,Math.max(n,V))},[n,l,r]),F=sg((H,V)=>{let X=O(H);s===void 0&&N(X),d?.(X),V&&g?.(X)},[O,s,d,g]),A=sg(H=>{let V=M.current;if(!V)return n;let X=V.getBoundingClientRect(),z=(H-X.left)/X.width;return O(n+z*(l-n))},[n,l,O]),_=H=>{if(b)return;let V;switch(H.key){case"ArrowRight":case"ArrowUp":V=L+c;break;case"ArrowLeft":case"ArrowDown":V=L-c;break;case"Home":V=n;break;case"End":V=l;break;default:return}H.preventDefault(),F(V,!0)},G=H=>{b||(H.preventDefault(),w(!0))},U=H=>{if(b||E.current){E.current=!1;return}F(A(H.clientX),!0)},W=H=>{b||(H.preventDefault(),w(!0))};jL(()=>{if(!S)return;let H=q=>{F(A(q.clientX))},V=q=>{w(!1),E.current=!0,g?.(O(A(q.clientX)))},X=q=>{q.touches.length>0&&F(A(q.touches[0].clientX))},z=q=>{w(!1),E.current=!0,g?.(O(A(q.changedTouches[0].clientX)))};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",V),document.addEventListener("touchmove",X),document.addEventListener("touchend",z),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",z)}},[S,O,A,F,g]);let Q=H=>Eo("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Eo("div",{className:Lo("cleen",m),style:y,ref:D,children:ys("div",{className:Lo("cleen-w-full",v?.container),style:u?.container,children:[C&&Eo(ae,{htmlFor:t,required:o,tooltip:x,...v?.label,...u?.label,children:C}),ys("div",{className:Lo({"cleen-flex cleen-items-center cleen-gap-2":p==="inline"},v?.slider),style:u?.slider,children:[p==="inline"&&I?.minLabel!==void 0&&Q(I?.minLabel),ys("div",{ref:M,className:Lo("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":b,"cleen-flex-1":p==="inline"},v?.track),style:u?.track,"aria-disabled":b,onClick:U,children:[Eo("div",{className:Lo("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",b?"cleen-cursor-not-allowed":"cleen-cursor-pointer",v?.path),style:u?.path,children:Eo("div",{className:Lo("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",v?.filledTrack),style:{width:`${k}%`,...u?.filledTrack}})}),Eo(Ie,{invertColors:!0,...P,label:I?.tooltip?.(L)??L,className:Lo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",P?.className),style:{left:`calc(${k}% - 8px)`,...P?.style},isOpen:S||P?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:Eo("div",{id:t,className:Lo("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",b?"cleen-cursor-not-allowed":"cleen-cursor-pointer",v?.thumb),style:u?.thumb,tabIndex:b?-1:0,role:"slider","aria-valuenow":L,"aria-valuemin":n,"aria-valuemax":l,"aria-disabled":b,"aria-label":typeof C=="string"?C:"Slider","aria-labelledby":t,onMouseDown:G,onTouchStart:W,onKeyDown:_})})]}),p==="inline"?I?.maxLabel&&Q(I?.maxLabel):(I?.minLabel||I?.maxLabel)&&ys("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[I?.minLabel&&Q(I?.minLabel),I?.maxLabel&&Q(I?.maxLabel)]})]}),(T?.errorMessage||T?.infoMessage||T?.subtitle)&&Eo(ne,{...T})]})})});import{cn as Rt}from"@cleen/ui-core";import{forwardRef as e6,useCallback as pg,useEffect as t6,useRef as o6,useState as eP}from"react";import{jsx as Lt,jsxs as vs}from"react/jsx-runtime";var n6=e6(function({id:t,required:o,minValue:n=0,maxValue:l=100,step:r=1,defaultValue:c=[n,l],value:i,variant:s="default",onChange:p,onChangeEnd:d,className:g,classNames:m,style:v,styles:y,disabled:u=!1,label:b,labelTooltip:C,labels:x,tooltips:I,infoLabels:P},T){let[D,B]=eP(c??[n,l]),N=i!==void 0?i:D,L=o6(null),[M,S]=eP(null),w=pg(H=>{let V=Math.round((H-n)/r)*r+n;return Math.min(l,Math.max(n,V))},[n,l,r]),E=(N[0]-n)/(l-n)*100,R=Math.min(100,Math.max(0,E)),k=(N[1]-n)/(l-n)*100,O=Math.min(100,Math.max(0,k)),F=pg(H=>{let V=[w(Math.min(H[0],H[1])),w(Math.max(H[0],H[1]))];i===void 0&&B(V),p?.(V)},[w,i,p]),A=pg(H=>{let V=L.current;if(!V)return n;let X=V.getBoundingClientRect(),z=(H-X.left)/X.width;return w(n+z*(l-n))},[n,l,w]),_=H=>V=>{if(u)return;let X=H==="min"?N[0]:N[1],z;switch(V.key){case"ArrowRight":case"ArrowUp":z=X+r;break;case"ArrowLeft":case"ArrowDown":z=X-r;break;case"Home":z=n;break;case"End":z=l;break;default:return}V.preventDefault();let q=H==="min"?[Math.min(z,N[1]),N[1]]:[N[0],Math.max(z,N[0])];F(q),d?.([w(q[0]),w(q[1])])},G=H=>V=>{u||(V.preventDefault(),S(H))},U=H=>{if(u)return;let V=A(H.clientX),X=Math.abs(V-N[0]),z=Math.abs(V-N[1]);X<z?F([V,N[1]]):F([N[0],V])},W=H=>V=>{u||(V.preventDefault(),S(H))};t6(()=>{if(!M)return;let H=q=>{let pe=A(q.clientX);F(M==="min"?[pe,N[1]]:[N[0],pe])},V=q=>{let pe=A(q.clientX),fe=M==="min"?[pe,N[1]]:[N[0],pe];S(null),d?.(fe)},X=q=>{if(q.touches.length>0){let pe=A(q.touches[0].clientX);F(M==="min"?[pe,N[1]]:[N[0],pe])}},z=q=>{let pe=A(q.changedTouches[0].clientX),fe=M==="min"?[pe,N[1]]:[N[0],pe];S(null),d?.(fe)};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",V),document.addEventListener("touchmove",X),document.addEventListener("touchend",z),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",z)}},[M,N,A,F,d]);let Q=H=>Lt("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Lt("div",{className:Rt("cleen",g),style:v,ref:T,children:vs("div",{className:Rt("cleen-w-full",m?.container),style:y?.container,children:[b&&Lt(ae,{htmlFor:t,required:o,tooltip:C,...m?.label,...y?.label,children:b}),vs("div",{className:Rt({"cleen-flex cleen-items-center cleen-gap-2":s==="inline"},m?.slider),style:y?.slider,children:[s==="inline"&&x?.minLabel!==void 0&&Q(x?.minLabel),vs("div",{ref:L,className:Rt("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":u,"cleen-flex-1":s==="inline"},m?.track),style:y?.track,"aria-disabled":u,onClick:U,children:[Lt("div",{className:Rt("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",u?"cleen-cursor-not-allowed":"cleen-cursor-pointer"),children:Lt("div",{className:Rt("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{left:`${R}%`,width:`${O-R}%`,...y?.filledTrack}})}),Lt(Ie,{invertColors:!0,isOpen:M==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:x?.tooltip?.(N[0])??N[0]?.toString(),className:Rt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.min?.className),style:{left:`calc(${R}% - 8px)`,...I?.shared?.style,...I?.min?.style},children:Lt("div",{className:Rt("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",u?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:y?.thumb,tabIndex:u?-1:0,role:"slider","aria-valuenow":N[0],"aria-valuemin":n,"aria-valuemax":N[1],"aria-disabled":u,"aria-label":typeof b=="string"?`${b} minimum value`:"Minimum value",onMouseDown:G("min"),onTouchStart:W("min"),onKeyDown:_("min")})}),Lt(Ie,{invertColors:!0,isOpen:M==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:x?.tooltip?.(N[1])??N[1]?.toString(),className:Rt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.max?.className),style:{left:`calc(${O}% - 8px)`,...I?.shared?.style,...I?.max?.style},children:Lt("div",{className:Rt("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",u?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:y?.thumb,tabIndex:u?-1:0,role:"slider","aria-valuenow":N[1],"aria-valuemin":N[0],"aria-valuemax":l,"aria-disabled":u,"aria-label":typeof b=="string"?`${b} maximum value`:"Maximum value",onMouseDown:G("max"),onTouchStart:W("max"),onKeyDown:_("max")})})]}),s==="inline"?x?.maxLabel&&Q(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&vs("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)&&Lt(ne,{...P})]})})});import{cn as Tr}from"@cleen/ui-core";import{forwardRef as r6,useRef as a6,useState as tP}from"react";import{jsx as wn,jsxs as c6}from"react/jsx-runtime";var l6=r6(function({label:t,infoLabels:o,value:n,onChange:l,amount:r=5,gap:c,size:i,readonly:s,color:p="rgb(var(--cleen-yellow))",className:d,style:g,classNames:m,styles:v,...y},u){let[b,C]=tP(0),x=n!==void 0,I=x?n:b,[P,T]=tP(null),D=P!==null?P+1:I,B=!s,N=a6([]),L=I>0?I-1:0,M=R=>{x||C(R),l?.(R)},S=R=>{R<0||R>=r||(M(R+1),N.current[R]?.focus())},w=(R,k)=>{switch(R.key){case"ArrowRight":case"ArrowUp":R.preventDefault(),S((k+1)%r);break;case"ArrowLeft":case"ArrowDown":R.preventDefault(),S((k-1+r)%r);break;case"Home":R.preventDefault(),S(0);break;case"End":R.preventDefault(),S(r-1);break;default:break}},E=typeof t=="string"?t:"Rating";return wn("div",{className:Tr("cleen",d),style:g,ref:u,...y,children:c6("div",{className:Tr("cleen-space-y-2",m?.container),style:v?.container,children:[t&&wn("span",{className:Tr("cleen-font-medium cleen-text-sm cleen-text-foreground",m?.label),style:v?.label,children:t}),wn("div",{role:B?"radiogroup":"img","aria-label":B?E:`${E}: ${I} out of ${r}`,className:Tr("cleen-flex cleen-gap-3",m?.list),style:{...c?{gap:c}:{},...v?.list},children:Array.from({length:r},(R,k)=>{let O=wn(za,{"aria-hidden":"true",className:Tr("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...v?.star,fill:(s?I:D)>k?p:"transparent"}});return B?wn("button",{type:"button",ref:F=>{N.current[k]=F},role:"radio","aria-checked":I===k+1,"aria-label":`${k+1} ${k+1===1?"star":"stars"}`,tabIndex:k===L?0:-1,onMouseEnter:()=>T(k),onMouseLeave:()=>T(null),onClick:()=>M(k+1),onKeyDown:F=>w(F,k),className:Tr("focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary focus-visible:cleen-rounded"),children:O},k):wn("span",{className:"cleen-cursor-default",children:O},k)})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&wn(ne,{...o})]})})});import{cn as lo}from"@cleen/ui-core";import{forwardRef as i6}from"react";import{jsx as Do,jsxs as oP}from"react/jsx-runtime";var nP=i6(({steps:e,activeStep:t=0,orientation:o="horizontal",color:n="rgb(var(--cleen-primary))",className:l,classNames:r,style:c,styles:i,...s},p)=>{let d=o==="vertical";return Do("div",{ref:p,className:lo("cleen",l),style:{...c,width:"100%"},...s,children:Do("div",{className:lo("cleen-flex cleen-w-full",d?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",r?.container),style:{width:"100%",...i?.container},children:e?.map((g,m)=>{let v=m+1<t,y=m+1===t;return oP("div",{className:lo("cleen-relative cleen-flex cleen-flex-1",d?"cleen-flex-row cleen-items-start":"cleen-flex-col cleen-items-center cleen-text-center",r?.step),style:i?.step,children:[m<e?.length-1&&Do("div",{className:lo("cleen-absolute cleen-bg-neutral-200 cleen-transition-all cleen-duration-300",d?"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)]",v&&"cleen-bg-primary",r?.connector),style:{backgroundColor:v?n:void 0,...i?.connector}}),Do("div",{className:lo("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",v||y?"cleen-border-[2px]":"cleen-border-border",r?.circle),style:{borderColor:y||v?n:void 0,backgroundColor:v?n:"transparent",...i?.circle},children:v?Do("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):Do("span",{className:lo("cleen-w-2 cleen-h-2 cleen-rounded-full",y?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:y?n:void 0}})}),oP("div",{className:lo("cleen-flex cleen-flex-col",d?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[g.title&&Do("div",{className:lo("cleen-font-medium cleen-text-sm",y?"cleen-text-primary":"cleen-text-foreground",r?.title),style:{color:y?n:void 0,...i?.title},children:g.title}),g.subtitle&&Do("div",{className:lo("cleen-text-xs cleen-text-neutral-600",r?.subtitle),style:{color:y?n:void 0,...i?.subtitle},children:g.subtitle})]})]},m)})})})});nP.displayName="Stepper";import{cn as Ee}from"@cleen/ui-core";import{forwardRef as s6,useMemo as aP,useState as Br}from"react";var rP={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 m6,jsx as Me,jsxs as Nr}from"react/jsx-runtime";var p6=[],d6=s6(function({items:t=p6,value:o,defaultValue:n,onApply:l,onCreate:r,isLoading:c=!1,icon:i,disabled:s=!1,isOpen:p,onOpenChange:d,position:g="bottom-left",zIndex:m,labels:v,className:y,classNames:u,style:b,styles:C,...x},I){let P={...rP,...v},[T,D]=Br(n??[]),B=o??T,[N,L]=Br(!1),M=p??N,[S,w]=Br(B),[E,R]=Br(""),[k,O]=Br([]),[F,A]=Br(!1),_=aP(()=>[...t,...k.filter(j=>!t.some(ce=>ce.id===j.id))],[t,k]),G=E.trim(),U=aP(()=>{let j=G.toLowerCase();return j?_.filter(ce=>ce.label.toLowerCase().includes(j)):_},[_,G]),W=!!G&&!_.some(j=>j.label.toLowerCase()===G.toLowerCase())&&!!r,Q=c||F,H=B.length,V=H>0,X=j=>{j&&(w(B),R("")),p===void 0&&L(j),d?.(j)},z=j=>{w(ce=>ce.includes(j)?ce.filter(tt=>tt!==j):[...ce,j])},q=async()=>{if(!(!r||!G||Q)){A(!0);try{let j=await r(G);j&&(O(ce=>ce.some(tt=>tt.id===j.id)?ce:[...ce,j]),w(ce=>ce.includes(j.id)?ce:[...ce,j.id]),R(""))}finally{A(!1)}}},pe=j=>{j.key==="Enter"&&W&&(j.preventDefault(),q())},fe=()=>{w([])},me=()=>{let j=_.filter(ce=>S.includes(ce.id));o===void 0&&D(S),l?.(S,j),X(!1)},$e=Nr(m6,{children:[W&&Me("div",{className:"cleen-p-1.5",children:Me(ee,{variant:"borderless-blue",fullWidth:!0,isLoading:Q,leftIcon:Me(Ba,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{q()},classNames:{container:Ee("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",u?.createButton)},styles:{container:C?.createButton},children:Me("span",{className:"cleen-truncate",children:P.create(G)})})}),U.length===0?W?null:Me("p",{className:Ee("cleen-px-3 cleen-py-4 cleen-text-gray-500 cleen-text-sm cleen-text-center cleen-opacity-50",u?.noData),style:C?.noData,children:_.length===0?P.noData:P.noMatches}):Me("ul",{className:Ee("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",u?.list),style:C?.list,children:U.map(j=>Nr("li",{onClick:()=>z(j.id),className:Ee("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",u?.item),style:C?.item,children:[Me(ml,{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:u?.checkbox,label:Ee("cleen-text-sm cleen-truncate cleen-cursor-pointer",u?.itemLabel)},styles:{checkbox:C?.checkbox,label:C?.itemLabel},checked:S.includes(j.id),onClick:ce=>ce.stopPropagation(),label:Me("span",{title:j.label,className:"cleen-select-none",children:j.label}),fullTriggerArea:!0}),j.count!==void 0&&Me("span",{className:Ee("cleen-shrink-0 cleen-text-gray-500 cleen-text-sm cleen-tabular-nums cleen-opacity-50 cleen-select-none",u?.count),style:C?.count,children:j.count})]},j.id))})]}),Pe=Nr("div",{className:Ee("cleen-flex cleen-flex-col",u?.content),style:C?.content,role:"dialog",children:[Me(ye,{autoFocus:!0,value:E,onChange:j=>R(j.target.value),onKeyDown:pe,placeholder:P.searchPlaceholder,"aria-label":P.searchPlaceholder,leftIcon:Me(Wt,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:Ee("cleen-shrink-0 cleen-p-1.5 cleen-py-1",u?.search),style:C?.search,classNames:{inputContainer:"cleen-border-0 cleen-shadow-none cleen-rounded-none focus-within:cleen-ring-0",input:"cleen-text-sm"}}),Me(gt,{className:Ee("cleen-shrink-0",u?.divider),style:C?.divider}),Me("div",{className:"cleen-flex-1 cleen-min-h-0",children:$e}),Nr("div",{className:Ee("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",u?.footer),style:C?.footer,children:[Me("span",{className:Ee("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",u?.footerText),style:C?.footerText,children:S.length>0?P.selected(S.length):P.footer}),Nr("div",{className:Ee("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",u?.footerActions),style:C?.footerActions,children:[Me(ee,{variant:"secondary",onClick:fe,disabled:S.length===0,classNames:{container:Ee("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.clearButton)},styles:{container:C?.clearButton},children:P.clear}),Me(ee,{variant:"primary",onClick:me,classNames:{container:Ee("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.doneButton)},styles:{container:C?.doneButton},children:P.done})]})]})]});return Me(wl,{ref:I,isOpen:M,onOpenChange:X,position:g,zIndex:m,content:Pe,className:y,style:b,classNames:{trigger:Ee(s&&"cleen-pointer-events-none"),popover:Ee("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",u?.popover)},styles:{popover:C?.popover},...x,children:Nr("button",{type:"button",disabled:s,"aria-label":P.trigger,"aria-haspopup":"dialog","aria-expanded":M,className:Ee("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":s},u?.trigger,V&&u?.triggerActive),style:{...C?.trigger,...V?C?.triggerActive:{}},children:[i??Me(Ua,{className:"cleen-size-4 cleen-shrink-0"}),V&&Me("span",{className:Ee("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",u?.badge),style:C?.badge,children:H}),Me(Zr,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var dg={default:"Default","sans-serif":"Sans-serif",serif:"Serif",monospace:"Monospace",cursive:"Cursive",fantasy:"Fantasy"},mg={white:"White",yellow:"Yellow",green:"Green",cyan:"Cyan",blue:"Blue",magenta:"Magenta",red:"Red",black:"Black"},ug={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",quality:"Quality",qualityAuto:e=>e?`Auto (${e})`:"Auto",qualityLevel:e=>`${e}p`,settings:"Settings",language:"Language",captionsOff:"Off",captionsTrack:e=>`Track ${e}`,captionStyle:"Caption style",resetCaptionStyle:"Reset",fontFamily:"Font family",fontColor:"Font colour",fontSize:"Font size",backgroundColor:"Background colour",backgroundOpacity:"Background opacity",captionFontFamilies:dg,captionColors:mg,pictureInPicture:"Picture in picture",exitPictureInPicture:"Exit picture in picture",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",placeholder:"No video provided yet.",placeholderSubLabel:"Please provide a video source to play."};var fg=10,bs=1.7777777777777777,hg=1080,Rr=-1,gg=.5,yg=2,lP=.25,_l=.05,cP=2500,iP=5,sP=.5,Vl=5,pP=480,dP=24,mP=16,Is="--cleen-video-player-height",u6=.045,f6=12,h6=32,uP=`clamp(${f6}px, calc(var(${Is}, 360px) * ${u6}), ${h6}px)`,fP=250,hP=40,vg="cleen-video-player-caption-style",Fo={fontFamily:"default",fontColor:"white",fontSize:1,backgroundColor:"black",backgroundOpacity:.75},Lr={default:void 0,"sans-serif":"sans-serif",serif:"serif",monospace:"monospace",cursive:"cursive",fantasy:"fantasy"},zl={white:[255,255,255],yellow:[255,255,0],green:[0,255,0],cyan:[0,255,255],blue:[0,0,255],magenta:[255,0,255],red:[255,0,0],black:[0,0,0]},Cs=[.5,.75,1,1.25,1.5,1.75,2],Ps=[0,.25,.5,.75,1],gP=72,yP=240,vP=3,bP={playing:!1,currentTime:0,duration:0,muted:!1,volume:1,playbackRate:1,showCaptions:!1,captionsTrackIndex:0,settingsOpen:!1,isPictureInPicture:!1,isFullscreen:!1,controlsActive:!0,isLoading:!0};import{forwardRef as g6,useEffect as bg,useImperativeHandle as y6,useRef as v6}from"react";import{jsx as P6}from"react/jsx-runtime";var b6=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],I6=e=>{let t=b6;return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))},C6=g6(function({playing:t=!1,volume:o,playbackRate:n,...l},r){let c=v6(null);return y6(r,()=>c.current,[]),bg(()=>{let i=c.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,l.src]),bg(()=>{c.current&&o!==void 0&&(c.current.volume=o)},[o]),bg(()=>{c.current&&n!==void 0&&(c.current.playbackRate=n)},[n]),P6("video",{...I6(l),ref:c,width:"100%",height:"100%"})});import{forwardRef as x6}from"react";import S6 from"react-player";import{jsx as w6}from"react/jsx-runtime";var Ig=x6(function(t,o){return w6(S6,{...t,ref:o,width:"100%",height:"100%"})});var Hl=(m=>(m.PLAY="play",m.BACKWARD="backward",m.FORWARD="forward",m.VOLUME="volume",m.TIME="time",m.SEEKBAR="seekbar",m.SPEED="speed",m.SUBTITLES="subtitles",m.QUALITY="quality",m.SETTINGS="settings",m.PICTURE_IN_PICTURE="pictureInPicture",m.FULLSCREEN="fullscreen",m))(Hl||{});var Er=e=>{if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e),o=Math.floor(t/3600),n=Math.floor(t%3600/60),l=t%60,r=c=>String(c).padStart(2,"0");return o>0?`${o}:${r(n)}:${r(l)}`:`${n}:${r(l)}`},Cg=(e,t)=>{if(!Array.isArray(e)||!(t>0))return[];let o=e.filter(n=>Number.isFinite(n?.start)).map(n=>({...n,start:Math.min(Math.max(n.start,0),t)})).sort((n,l)=>n.start-l.start);return o.map((n,l)=>{let r=o[l+1]?.start??t,c=n.end!==void 0&&Number.isFinite(n.end)?Math.min(Math.max(n.end,n.start),r):r;return{...n,end:c}}).filter(n=>n.end>n.start)},Pg=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),IP=e=>e?Array.from({length:e.length},(t,o)=>({start:e.start(o),end:e.end(o)})):[],CP=(e,t)=>e.length===t.length&&e.every((o,n)=>o.start===t[n].start&&o.end===t[n].end),PP=(e,t,o)=>{let n=o-t;if(!(n>0)||!Number.isFinite(n))return[];let l=e.filter(c=>Number.isFinite(c.start)&&Number.isFinite(c.end)).map(c=>({start:Math.max(c.start,t),end:Math.min(c.end,o)})).filter(c=>c.end>c.start).sort((c,i)=>c.start-i.start),r=[];return l.forEach(c=>{let i=r[r.length-1];i&&c.start<=i.end?i.end=Math.max(i.end,c.end):r.push({...c})}),r.map(c=>({left:(c.start-t)/n,width:(c.end-c.start)/n}))},Mn=({width:e,height:t})=>e>0&&t>0?Math.min(e,t):Math.max(e,t,0),xg=(e,t)=>{if(!(t!==void 0&&t>0)||e.length===0)return-1;let o=[...e].sort((l,r)=>Mn(l)-Mn(r)||l.bitrate-r.bitrate),n=o.filter(l=>Mn(l)<=t);return(n[n.length-1]??o[0]).index},xP=(e,t)=>{let o=[...e].sort((n,l)=>Mn(l)-Mn(n)||l.bitrate-n.bitrate);return o.map(n=>{let l=Mn(n),r=l>0?t(l):`${Math.round(n.bitrate/1e3)} kbps`,c=o.filter(i=>Mn(i)===l);return{value:n.index,label:l>0&&c.length>1?`${r} (${(n.bitrate/1e6).toFixed(1)} Mbps)`:r}})},M6=(e,t)=>{let o=-1;return e.forEach((n,l)=>{t>=n.start&&(o=l)}),Math.max(o,0)},Gl=(e,t)=>e.find(o=>t>=o.start&&t<o.end)??(e.length>0&&t>=e[e.length-1].end?e[e.length-1]:void 0),SP=(e,t)=>{let o=Array.from(e).filter(n=>n.kind==="chapters");return t&&o.find(n=>n.language===t)||o[0]},wP=e=>Array.from(e).map(t=>({start:t.startTime,end:t.endTime,title:t.text?.replace(/<[^>]*>/g,"").trim()||void 0})),Ss=e=>Array.from(e).filter(({kind:t="subtitles"})=>["subtitles","captions"].includes(t)),MP=(e,t,o)=>e.label||e.srcLang||o(t+1),Ul=(e,t)=>e.includes(t),Sg=e=>{let t=e&&typeof e=="object"?e:{},o=Object.keys(zl),n=Object.keys(Lr);return{fontFamily:Ul(n,t.fontFamily)?t.fontFamily:Fo.fontFamily,fontColor:Ul(o,t.fontColor)?t.fontColor:Fo.fontColor,fontSize:Ul(Cs,t.fontSize)?t.fontSize:Fo.fontSize,backgroundColor:Ul(o,t.backgroundColor)?t.backgroundColor:Fo.backgroundColor,backgroundOpacity:Ul(Ps,t.backgroundOpacity)?t.backgroundOpacity:Fo.backgroundOpacity}},xs=(e,t=1)=>`rgba(${zl[e].join(",")},${t})`,kP=({fontFamily:e,fontColor:t,fontSize:o,backgroundColor:n,backgroundOpacity:l})=>({fontFamily:Lr[e],fontSize:`calc(${uP} * ${o})`,color:xs(t),backgroundColor:xs(n,l)});import{cn as ql}from"@cleen/ui-core";import{forwardRef as NE,useCallback as Ge,useImperativeHandle as RE,useMemo as _g,useReducer as LE,useRef as Tx,useState as EE}from"react";import{cn as Rn}from"@cleen/ui-core";var Ao="cleen-text-[#fff]",wg="cleen-text-[rgba(255,255,255,0.45)]",TP="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",BP="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",NP="!cleen-bg-[#fff] !cleen-text-[rgb(10,13,18)] !cleen-border-[#fff] hover:!cleen-bg-[rgba(255,255,255,0.85)] hover:!cleen-text-[rgb(10,13,18)]",Oo="focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",ws="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",Ms="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as LP}from"@cleen/ui-core";import{useLayoutEffect as B6,useRef as N6}from"react";import{useEffect as k6,useState as T6}from"react";var ks=[],RP=(e,t,o,n,l)=>{let[r,c]=T6(ks);return k6(()=>{let i=e.current?.textTracks;if(!t||!i)return;let s,p=()=>c(s?.activeCues?Array.from(s.activeCues):ks),d=()=>{let g=Ss(i),m=g[o]??g[0];m!==s&&(s&&(s.removeEventListener("cuechange",p),s.mode="disabled"),m?.addEventListener("cuechange",p),s=m),s&&s.mode!=="hidden"&&(s.mode="hidden"),p()};return d(),i.addEventListener("addtrack",d),i.addEventListener("removetrack",d),()=>{i.removeEventListener("addtrack",d),i.removeEventListener("removetrack",d),s&&(s.removeEventListener("cuechange",p),s.mode="disabled"),c(ks)}},[t,o,n,l,e]),t?r:ks};import{jsx as Mg}from"react/jsx-runtime";var R6=e=>typeof VTTCue<"u"&&e instanceof VTTCue?e.getCueAsHTML():"",L6=({cue:e,className:t,style:o})=>{let n=N6(null);return B6(()=>{n.current?.replaceChildren(R6(e))},[e]),Mg("span",{ref:n,className:t,style:o})},EP=({videoRef:e,src:t,showCaptions:o,trackIndex:n,captionStyle:l,pictureInPicture:r,hidden:c,controlsVisible:i,controlsOnHover:s,classNames:p,styles:d})=>{let g=RP(e,o&&!r,n,t,!c);return c||r||g.length===0?null:Mg("div",{className:LP("cleen-left-0 cleen-right-0 cleen-absolute cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-px-4 cleen-pb-3 cleen-text-center cleen-transition-[bottom] cleen-duration-300 cleen-pointer-events-none",i?s?"cleen-bottom-0 group-hover:cleen-bottom-full":"cleen-bottom-full":"cleen-bottom-0",p?.captions),style:d?.captions,children:g.map((m,v)=>Mg(L6,{cue:m,className:LP("cleen-max-w-[80%] cleen-rounded-md cleen-px-[0.5em] cleen-py-[0.2em] cleen-leading-snug cleen-whitespace-pre-line",p?.captionsText),style:{...kP(l),...d?.captionsText}},`${m.id}-${m.startTime}-${v}`))})};import{cn as E6}from"@cleen/ui-core";import{forwardRef as D6}from"react";import{jsx as F6}from"react/jsx-runtime";var Et=D6(function({label:t,onClick:o,disabled:n,active:l,className:r,style:c,children:i},s){return F6("button",{ref:s,type:"button","aria-label":t,"aria-pressed":l,onClick:o,disabled:n,className:E6("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded disabled:cleen-opacity-40 cleen-text-[rgba(255,255,255,0.85)] hover:cleen-text-[#fff] cleen-transition-colors disabled:cleen-cursor-not-allowed",Oo,r),style:c,children:i})});import{cn as Dt}from"@cleen/ui-core";import{useRef as _P}from"react";import{useCallback as A6,useEffect as O6,useRef as DP,useState as _6}from"react";var FP=(e,t)=>{let[o,n]=_6(null),l=DP(!1),r=DP(!1),c=A6(s=>{let p=e.current;if(!p||!(t>0))return;let d=p.getBoundingClientRect(),g=d.width>0?Math.min(Math.max((s-d.left)/d.width,0),1):0;n({ratio:g,time:g*t})},[e,t]);return O6(()=>{let s=d=>{l.current&&c(d.clientX)},p=()=>{l.current=!1,r.current||n(null)};return window.addEventListener("pointermove",s),window.addEventListener("pointerup",p),()=>{window.removeEventListener("pointermove",s),window.removeEventListener("pointerup",p)}},[c]),{preview:o,previewHandlers:{onPointerEnter:s=>{r.current=!0,c(s.clientX)},onPointerMove:s=>c(s.clientX),onPointerDown:s=>{l.current=!0,c(s.clientX)},onPointerLeave:()=>{r.current=!1,l.current||n(null)}}}};import{cn as V6}from"@cleen/ui-core";import{Fragment as z6,jsx as AP}from"react/jsx-runtime";var Ts=({buffered:e,start:t,end:o,className:n,style:l})=>AP(z6,{children:PP(e,t,o).map(r=>AP("div",{"aria-hidden":!0,className:V6("cleen-absolute cleen-inset-y-0 cleen-bg-[rgba(255,255,255,0.5)] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",n),style:{...l,left:`${r.left*100}%`,width:`${r.width*100}%`}},r.left))});import{cn as Bs}from"@cleen/ui-core";import{jsx as Ns,jsxs as H6}from"react/jsx-runtime";var OP=({chapters:e,duration:t,currentTime:o,buffered:n,classNames:l,styles:r})=>Ns("div",{"aria-hidden":!0,className:Bs("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-h-1 -cleen-translate-y-1/2 cleen-pointer-events-none",l?.chapters),style:r?.chapters,children:e.map(c=>Ns("div",{className:Bs("cleen-absolute cleen-inset-y-0 cleen-pr-0.5 last:cleen-pr-0",l?.chapter),style:{...r?.chapter,left:`${c.start/t*100}%`,width:`${(c.end-c.start)/t*100}%`},children:H6("div",{className:Bs("cleen-relative cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-h-full cleen-overflow-hidden",l?.chapterTrack),style:r?.chapterTrack,children:[Ns(Ts,{buffered:n,start:c.start,end:c.end,className:l?.chapterBuffered,style:r?.chapterBuffered}),Ns("div",{className:Bs("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",l?.chapterFill),style:{...r?.chapterFill,width:`${Pg(c,o)*100}%`}})]})},c.start))});import{Fragment as U6,jsx as kn,jsxs as Rs}from"react/jsx-runtime";var VP=({allowBarSeeking:e,chapters:t,duration:o,currentTime:n,buffered:l,onSeek:r,seekLabel:c,progressLabel:i,classNames:s,styles:p})=>{let d=_P(null),g=_P(null),{preview:m,previewHandlers:v}=FP(d,o),y=m?Gl(t,m.time):void 0,u=t.length>0,b=u&&kn(OP,{chapters:t,duration:o,currentTime:n,buffered:l,classNames:s,styles:p}),C=kn(Ts,{buffered:l,start:0,end:o,className:s?.seekBuffered,style:p?.seekBuffered}),x=g.current?.offsetWidth||0;if(e){let P=s?.seekSlider?.classNames;return Rs("div",{ref:d,role:"group","aria-label":c,className:Dt("cleen-relative",s?.seekBar),style:p?.seekBar,...v,children:[b||kn("div",{"aria-hidden":!0,className:Dt("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-bg-[rgba(255,255,255,0.3)] cleen-rounded-sm cleen-h-1 cleen-overflow-hidden -cleen-translate-y-1/2 cleen-pointer-events-none",s?.seekTrack),style:p?.seekTrack,children:C}),m&&Rs("div",{ref:g,"aria-hidden":!0,className:Dt("cleen-bottom-full cleen-absolute cleen-flex cleen-gap-1 cleen-bg-[rgba(0,0,0,0.75)] cleen-mb-2 cleen-px-2 cleen-py-1 cleen-rounded-md cleen-max-w-[16rem] cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap cleen-pointer-events-none",Ao,{"cleen-opacity-0":g.current===null},s?.seekTooltip),style:{left:`clamp(0rem, calc(${m.ratio*100}% - ${x/2}px), calc(100% - ${x}px))`,...p?.seekTooltip},children:[kn("span",{children:Er(m.time)}),y?.title&&Rs("span",{className:Dt("cleen-font-medium cleen-truncate",s?.seekTooltipChapter),style:p?.seekTooltipChapter,children:["\xB7 ",y.title]})]}),kn(Sn,{value:n,maxValue:o,step:.01,keyboardStep:Vl,onChange:r,className:Dt("cleen-relative cleen-flex cleen-items-center cleen-h-3.5 cleen-cursor-pointer",s?.seekSlider?.className),classNames:{...P,track:Dt("!cleen-h-4",P?.track),path:Dt("!cleen-bg-transparent",P?.path),filledTrack:Dt({"!cleen-bg-transparent":u},P?.filledTrack)},tooltip:{isDisabled:!0},...p?.seekSlider})]})}let I=o>0?Math.min(n/o*100,100):0;return kn("div",{role:"progressbar","aria-label":i,"aria-valuemin":0,"aria-valuemax":Math.floor(o),"aria-valuenow":Math.floor(n),className:Dt("cleen-relative cleen-h-1",{"cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-overflow-hidden":!u},s?.seekBar),style:p?.seekBar,children:b||Rs(U6,{children:[C,kn("div",{className:Dt("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-rounded-full cleen-transition-[width] cleen-duration-200 cleen-ease-linear",s?.progressFill),style:{...p?.progressFill,width:`${I}%`}})]})})};import{cn as _o}from"@cleen/ui-core";import{useEffect as q6,useRef as qP,useState as XP}from"react";import{cn as G6}from"@cleen/ui-core";import{cn as Ft}from"@cleen/ui-core";import{useId as zP}from"react";import{jsx as Tn,jsxs as kg}from"react/jsx-runtime";var $l=({title:e,children:t,onReset:o,resetLabel:n,classNames:l,styles:r})=>{let c=zP();return kg("section",{"aria-labelledby":c,className:Ft("cleen-flex cleen-flex-col cleen-gap-3",l?.settingsGroup),style:r?.settingsGroup,children:[kg("div",{className:Ft("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.settingsGroupHeader),style:r?.settingsGroupHeader,children:[Tn("h3",{id:c,className:Ft("cleen-font-semibold cleen-text-foreground cleen-text-xs",l?.settingsGroupTitle),style:r?.settingsGroupTitle,children:e}),o&&Tn("button",{type:"button",onClick:o,className:Ft("cleen-font-semibold cleen-text-xs cleen-text-primary hover:cleen-underline",l?.settingsResetButton),style:r?.settingsResetButton,children:n})]}),t]})},co=({label:e,options:t,value:o,onChange:n,classNames:l,styles:r})=>{let c=zP(),i=Tn("div",{role:e?"group":void 0,"aria-labelledby":e?c:void 0,className:Ft("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-1.5",l?.settingsOptions),style:r?.settingsOptions,children:t.map(s=>{let p=s.value===o;return s.swatch?Tn("button",{type:"button","aria-label":s.ariaLabel,"aria-pressed":p,title:s.ariaLabel,onClick:()=>n(s.value),className:Ft("cleen-size-6 cleen-rounded-full cleen-border cleen-border-border cleen-transition-shadow focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.settingsSwatch,p&&["cleen-ring-2 cleen-ring-primary cleen-ring-offset-2 cleen-ring-offset-background",l?.settingsSwatchActive]),style:{backgroundColor:s.swatch,...s.style,...r?.settingsSwatch,...p?r?.settingsSwatchActive:void 0}},s.value):Tn("button",{type:"button","aria-label":s.ariaLabel,"aria-pressed":p,onClick:()=>n(s.value),className:Ft("cleen-rounded focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.settingsOption,p&&l?.settingsOptionActive),style:{...s.style,...r?.settingsOption,...p?r?.settingsOptionActive:void 0},children:Tn(we,{color:p?"primary":"foreground-transparent",variant:"sleek",className:l?.settingsOptionBadge?.className,classNames:{...l?.settingsOptionBadge?.classNames,container:Ft("cleen-font-medium",p?"hover:cleen-bg-primary-100":"hover:cleen-bg-muted",l?.settingsOptionBadge?.classNames?.container)},...r?.settingsOptionBadge,children:s.label})},s.value)})});return e?kg("div",{className:Ft("cleen-flex cleen-flex-col cleen-gap-1.5",l?.settingsField),style:r?.settingsField,children:[Tn("span",{id:c,className:Ft("cleen-text-muted-foreground cleen-text-xs",l?.settingsFieldLabel),style:r?.settingsFieldLabel,children:e}),i]}):i};import{jsx as Bn,jsxs as HP}from"react/jsx-runtime";var Tg=-1,$6=e=>`${Math.round(e*100)}%`,UP=({tracks:e,trackIndex:t,showCaptions:o,captionStyle:n,onCaptionStyleChange:l,dispatch:r,labels:c,classNames:i,styles:s})=>{let p={classNames:i,styles:s},d=t<e.length?t:0,g=[{value:Tg,label:c.captionsOff},...e.map((u,b)=>({value:b,label:MP(u,b,c.captionsTrack)}))],m=Object.keys(Lr).map(u=>({value:u,label:c.captionFontFamilies[u]??dg[u],style:{fontFamily:Lr[u]}})),v=Object.keys(zl).map(u=>{let b=c.captionColors[u]??mg[u];return{value:u,label:b,ariaLabel:b,swatch:xs(u)}}),y=u=>u.map(b=>({value:b,label:$6(b)}));return HP("div",{className:G6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",i?.captionsSettings),style:s?.captionsSettings,children:[Bn($l,{title:c.language,...p,children:Bn(co,{options:g,value:o?d:Tg,onChange:u=>r(u===Tg?{type:"hideCaptions"}:{type:"selectCaptionsTrack",index:u}),...p})}),HP($l,{title:c.captionStyle,onReset:()=>l(Fo),resetLabel:c.resetCaptionStyle,...p,children:[Bn(co,{label:c.fontFamily,options:m,value:n.fontFamily,onChange:u=>l({fontFamily:u}),...p}),Bn(co,{label:c.fontColor,options:v,value:n.fontColor,onChange:u=>l({fontColor:u}),...p}),Bn(co,{label:c.fontSize,options:y(Cs),value:n.fontSize,onChange:u=>l({fontSize:u}),...p}),Bn(co,{label:c.backgroundColor,options:v,value:n.backgroundColor,onChange:u=>l({backgroundColor:u}),...p}),Bn(co,{label:c.backgroundOpacity,options:y(Ps),value:n.backgroundOpacity,onChange:u=>l({backgroundOpacity:u}),...p})]})]})};import{cn as W6}from"@cleen/ui-core";import{jsx as Bg}from"react/jsx-runtime";var GP=({quality:e,labels:t,classNames:o,styles:n})=>{let l=xP(e.levels,t.qualityLevel),r=l.find(i=>i.value===e.current)?.label,c=[{value:Rr,label:t.qualityAuto(r)},...l];return Bg("div",{className:W6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",o?.qualitySettings),style:n?.qualitySettings,children:Bg($l,{title:t.quality,classNames:o,styles:n,children:Bg(co,{options:c,value:e.selected,onChange:e.onChange,classNames:o,styles:n})})})};import{cn as Ls}from"@cleen/ui-core";import{jsx as Ng,jsxs as $P}from"react/jsx-runtime";var WP=({playbackRate:e,dispatch:t,label:o,classNames:n,styles:l})=>$P("div",{className:Ls("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",n?.speedContent),style:l?.speedContent,children:[$P("div",{className:Ls("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",n?.speedHeader),style:l?.speedHeader,children:[Ng("span",{className:n?.speedLabel,style:l?.speedLabel,children:o}),Ng("span",{className:Ls("cleen-tabular-nums cleen-text-primary",n?.speedValue),style:l?.speedValue,children:`${e.toFixed(2)}\xD7`})]}),Ng(Sn,{minValue:gg,maxValue:yg,step:lP,value:e,onChange:r=>t({type:"setPlaybackRate",playbackRate:r}),className:Ls("cleen-w-full",n?.speedSlider?.className),classNames:n?.speedSlider?.classNames,labels:{minLabel:`${gg}\xD7`,maxLabel:`${yg}\xD7`},...l?.speedSlider})]});import{jsx as bt}from"react/jsx-runtime";var Dr=18,KP='button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])',YP=({containerRef:e,portalContainer:t,isOpen:o,onOpenChange:n,showQualityTab:l,quality:r,showSpeedTab:c,showCaptionsTab:i,playbackRate:s,captionTracks:p,captionsTrackIndex:d,showCaptions:g,captionStyle:m,onCaptionStyleChange:v,dispatch:y,labels:u,iconSize:b,classNames:C,styles:x})=>{let[I,P]=XP(0),[T,D]=XP(),B=qP(null),N=qP(null),L=k=>{n(!1),k&&B.current?.focus()};q6(()=>{if(!o)return;let k=requestAnimationFrame(()=>{let F=N.current;(F?.querySelector('[aria-current="page"]')??F?.querySelector(KP))?.focus({preventScroll:!0})}),O=F=>{F.key==="Escape"&&(n(!1),document.activeElement===B.current&&B.current?.focus())};return document.addEventListener("keydown",O),()=>{cancelAnimationFrame(k),document.removeEventListener("keydown",O)}},[o,n]);let M=C?.settingsPopover?.classNames,S=C?.settingsTabs?.classNames,w=k=>{if(k){let O=e.current?.clientHeight;D(O===void 0?void 0:Math.min(yP,O-gP))}n(k)},E=k=>{if(k.stopPropagation(),k.key==="Escape"){L(!0);return}if(k.key==="Tab"&&N.current){let O=Array.from(N.current.querySelectorAll(KP)),F=O[0],A=O[O.length-1];k.shiftKey&&document.activeElement===F?(k.preventDefault(),A?.focus()):!k.shiftKey&&document.activeElement===A&&(k.preventDefault(),F?.focus())}},R=[...l?[{id:"quality",label:bt(qr,{width:Dr,height:Dr}),content:bt(GP,{quality:r,labels:u,classNames:C,styles:x})}]:[],...c?[{id:"speed",label:bt(Va,{width:Dr,height:Dr}),content:bt(WP,{playbackRate:s,dispatch:y,label:u.playbackSpeed,classNames:C,styles:x})}]:[],...i?[{id:"captions",label:bt(ea,{width:Dr,height:Dr}),content:bt(UP,{tracks:p,trackIndex:d,showCaptions:g,captionStyle:m,onCaptionStyleChange:v,dispatch:y,labels:u,classNames:C,styles:x})}]:[]];return bt(wl,{position:"top-right",isOpen:o,onOpenChange:w,portalContainer:t,className:C?.settingsPopover?.className,classNames:{...M,popover:_o("!cleen-w-72 cleen-flex cleen-flex-col cleen-overflow-hidden",M?.popover),trigger:_o("cleen-flex cleen-items-center",M?.trigger)},...x?.settingsPopover,styles:{...x?.settingsPopover?.styles,popover:{height:T,...x?.settingsPopover?.styles?.popover}},content:bt("div",{ref:N,className:"cleen-flex cleen-flex-col cleen-min-h-0",onKeyDown:E,onDoubleClick:k=>k.stopPropagation(),children:bt(Il,{tabs:R,currentTabIndex:Math.min(I,R.length-1),onTabChange:P,variant:"underlined",className:_o("cleen-flex cleen-flex-col cleen-min-h-0",C?.settingsTabs?.className),classNames:{...S,container:_o("cleen-flex cleen-flex-col cleen-min-h-0",S?.container),list:_o("cleen-shrink-0 cleen-mb-0 cleen-px-3 cleen-pt-2",S?.list),tab:_o("cleen-pb-2",S?.tab),content:_o("cleen-min-h-0 cleen-overflow-y-auto",S?.content)},...x?.settingsTabs})}),children:bt(Et,{ref:B,label:u.settings,active:o,className:_o(C?.controlButton,C?.settingsButton),style:{...x?.controlButton,...x?.settingsButton},children:bt(Da,{width:b,height:b})})})};import{cn as QP}from"@cleen/ui-core";import{jsx as Rg}from"react/jsx-runtime";var ZP=({hasTracks:e,showCaptions:t,onToggle:o,portalContainer:n,labels:l,classNames:r,styles:c})=>{let i=r?.subtitlesBadge?.classNames;return Rg(Ie,{label:e?l.subtitles:l.noSubtitles,className:r?.subtitlesTooltip?.className,classNames:r?.subtitlesTooltip?.classNames,portalContainer:n,...c?.subtitlesTooltip,children:Rg("button",{type:"button","aria-label":l.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:o,className:QP("cleen-rounded-md disabled:cleen-opacity-40",Oo,r?.subtitlesButton),style:c?.subtitlesButton,children:Rg(we,{variant:"sleek",className:r?.subtitlesBadge?.className,classNames:{...i,container:QP(TP,{[BP]:e},{[NP]:t},i?.container)},...c?.subtitlesBadge,children:l.subtitlesBadge})})})};import{jsx as Nn,jsxs as X6}from"react/jsx-runtime";var JP=({muted:e,volume:t,size:o})=>e||t===0?Nn(Ka,{width:o,height:o}):t<.75?Nn(Xa,{width:o,height:o}):Nn(qa,{width:o,height:o}),jP=({isFullscreen:e,size:t})=>e?Nn(xa,{width:t,height:t}):Nn(Ia,{width:t,height:t}),Fr=({forward:e,seconds:t,size:o})=>X6("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[Nn(e?La:Ra,{width:o,height:o}),Nn("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(o*.34)},children:t})]});import{cn as Es}from"@cleen/ui-core";import{jsx as Ds,jsxs as K6}from"react/jsx-runtime";var ex=({muted:e,volume:t,dispatch:o,labels:n,iconSize:l,classNames:r,styles:c})=>K6("div",{className:Es("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2 cleen-min-w-0",r?.volume),style:c?.volume,children:[Ds(Et,{label:e?n.unmute:n.mute,active:e,onClick:()=>o({type:"toggleMuted"}),className:Es(r?.controlButton,r?.muteButton),style:{...c?.controlButton,...c?.muteButton},children:Ds(JP,{muted:e,volume:t,size:l})}),Ds("div",{role:"group","aria-label":n.volume,className:Es("cleen-min-w-0 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",r?.volumeSliderContainer),style:c?.volumeSliderContainer,children:Ds(Sn,{minValue:0,maxValue:1,step:_l,value:e?0:t,onChange:i=>o({type:"setVolume",volume:i,muted:i===0}),className:Es("cleen-w-full",r?.volumeSlider?.className),classNames:r?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...c?.volumeSlider})})]});import{jsx as Te,jsxs as Wl}from"react/jsx-runtime";var tx=({containerRef:e,portalContainer:t,videoRef:o,src:n,state:l,dispatch:r,isShown:c,allowBarSeeking:i,chapters:s,buffered:p,seekStep:d,quality:g,hasTracks:m,captionTracks:v,captionStyle:y,onCaptionStyleChange:u,onSettingsOpenChange:b,visible:C,hidden:x,controlsOnHover:I,onSeek:P,onSeekBy:T,onTogglePlay:D,onToggleFullscreen:B,pictureInPictureSupported:N,onTogglePictureInPicture:L,labels:M,compact:S,classNames:w,styles:E})=>{let{playing:R,currentTime:k,duration:O,muted:F,volume:A,playbackRate:_,showCaptions:G,captionsTrackIndex:U,settingsOpen:W,isPictureInPicture:Q,isFullscreen:H}=l,V=S?mP:dP,X=Gl(s,k)?.title,z=I&&!W,q=c("quality")&&g.levels.length>0,pe=c("speed"),fe=c("subtitles")&&v.length>0,me=$e=>({className:Rn(w?.controlButton,w?.[$e]),style:{...E?.controlButton,...E?.[$e]}});return Wl("div",{className:Rn("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-pointer-events-none",{"cleen-hidden":x},w?.controlBar),style:E?.controlBar,children:[Te(EP,{videoRef:o,src:n,showCaptions:G,trackIndex:U,captionStyle:y,pictureInPicture:Q,hidden:x,controlsVisible:C,controlsOnHover:z,classNames:w,styles:E}),Wl("div",{className:Rn("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",C?z?"cleen-opacity-0 group-hover:cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-0",w?.controls),style:E?.controls,children:[c("seekbar")&&Te(VP,{allowBarSeeking:i,chapters:s,duration:O,currentTime:k,buffered:p,onSeek:P,seekLabel:M.seek,progressLabel:M.progress,classNames:w,styles:E}),Wl("div",{className:Rn("cleen-flex cleen-items-center","cleen-gap-2.5",{"sm:cleen-gap-3.5":!S},Ao,w?.controlsRow),style:E?.controlsRow,children:[c("play")&&!S&&Te(Et,{label:R?M.pause:M.play,onClick:D,...me("playButton"),children:R?Te(ft,{width:V,height:V}):Te(ht,{width:V,height:V})}),c("backward")&&Te(Et,{label:M.seekBackward(d),onClick:()=>T(-d),...me("backwardButton"),children:Te(Fr,{seconds:d,size:V})}),c("forward")&&Te(Et,{label:M.seekForward(d),onClick:()=>T(d),...me("forwardButton"),children:Te(Fr,{forward:!0,seconds:d,size:V})}),c("volume")&&Te(ex,{muted:F,volume:A,dispatch:r,labels:M,iconSize:V,classNames:w,styles:E}),c("time")&&Wl("span",{className:Rn("cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap",{"cleen-text-xxs":S},w?.time),style:E?.time,children:[Te("span",{className:w?.currentTime,style:E?.currentTime,children:Er(k)})," ",Wl("span",{className:Rn("cleen-font-medium",wg,w?.duration),style:E?.duration,children:["/ ",Er(O)]})]}),X?Te("span",{title:X,className:Rn("cleen-flex-1 cleen-min-w-0 cleen-font-medium cleen-text-[13px] cleen-truncate",wg,w?.chapterTitle),style:E?.chapterTitle,children:X}):Te("span",{className:"cleen-flex-1"}),c("subtitles")&&m&&!S&&Te(ZP,{hasTracks:m,showCaptions:G,onToggle:()=>r({type:"toggleCaptions"}),portalContainer:t,labels:M,classNames:w,styles:E}),c("settings")&&(q||pe||fe)&&Te(YP,{containerRef:e,portalContainer:t,isOpen:W,onOpenChange:b,showQualityTab:q,quality:g,showSpeedTab:pe,showCaptionsTab:fe,playbackRate:_,captionTracks:v,captionsTrackIndex:U,showCaptions:G,captionStyle:y,onCaptionStyleChange:u,dispatch:r,labels:M,iconSize:V,classNames:w,styles:E}),c("pictureInPicture")&&N&&Te(Et,{label:Q?M.exitPictureInPicture:M.pictureInPicture,active:Q,onClick:L,...me("pictureInPictureButton"),children:Te(ka,{width:V,height:V})}),c("fullscreen")&&Te(Et,{label:H?M.exitFullscreen:M.fullscreen,active:H,onClick:B,...me("fullscreenButton"),children:Te(jP,{isFullscreen:H,size:V})})]})]})]})};import{cn as ox}from"@cleen/ui-core";import{cn as Y6}from"@cleen/ui-core";import{jsx as Q6}from"react/jsx-runtime";var Lg=({label:e,onClick:t,className:o,style:n,children:l})=>Q6("button",{type:"button","aria-label":e,onClick:t,className:Y6("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",ws,Ms,Ao,Oo,o),style:n,children:l});import{jsx as Ln,jsxs as Z6}from"react/jsx-runtime";var nx=({playing:e,seekStep:t,visible:o,hidden:n,controlsOnHover:l,isShown:r,onTogglePlay:c,onSeekBy:i,labels:s,classNames:p,styles:d})=>Z6("div",{className:ox("cleen-relative cleen-flex cleen-items-center cleen-gap-6 cleen-transition-opacity cleen-duration-300",o?l?"cleen-opacity-0 group-hover:cleen-opacity-100":"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":n},p?.overlay),style:d?.overlay,children:[r("backward")&&Ln(Lg,{label:s.seekBackward(t),onClick:()=>i(-t),className:p?.overlayButton,style:d?.overlayButton,children:Ln(Fr,{seconds:t,size:26})}),r("play")&&Ln("button",{type:"button","aria-label":e?s.pause:s.play,onClick:c,className:ox("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",ws,Ms,Ao,Oo,p?.overlayPlayButton),style:d?.overlayPlayButton,children:e?Ln(ft,{width:28,height:28}):Ln(ht,{width:28,height:28})}),r("forward")&&Ln(Lg,{label:s.seekForward(t),onClick:()=>i(t),className:p?.overlayButton,style:d?.overlayButton,children:Ln(Fr,{forward:!0,seconds:t,size:26})})]});import{cn as Eg}from"@cleen/ui-core";import{jsx as rx,jsxs as J6}from"react/jsx-runtime";var ax=({label:e,subLabel:t,classNames:o,styles:n})=>J6("div",{className:Eg("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",o?.placeholder),style:n?.placeholder,children:[rx("span",{className:Eg("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",o?.placeholderLabel),style:n?.placeholderLabel,children:e}),t&&rx("span",{className:Eg("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",o?.placeholderSubLabel),style:n?.placeholderSubLabel,children:t})]});import{useEffect as lx,useState as j6}from"react";var Dg=[],cx=["progress","timeupdate","loadedmetadata","durationchange","seeked","emptied"],ix=(e,t,o)=>{let[n,l]=j6(Dg);return lx(()=>{l(Dg)},[t]),lx(()=>{let r=e.current;if(!r)return;let c=()=>{let i=IP(r.buffered);l(s=>CP(s,i)?s:i.length>0?i:Dg)};return c(),cx.forEach(i=>r.addEventListener(i,c)),()=>cx.forEach(i=>r.removeEventListener(i,c))},[e,t,o]),n};import{useCallback as eE,useState as tE}from"react";var oE=()=>{try{let e=window.localStorage.getItem(vg);return Sg(e?JSON.parse(e):void 0)}catch{return Sg(void 0)}},sx=()=>{let[e,t]=tE(oE),o=eE(n=>{t(l=>{let r={...l,...n};try{window.localStorage.setItem(vg,JSON.stringify(r))}catch{}return r})},[]);return{captionStyle:e,updateCaptionStyle:o}};import{useEffect as nE,useState as rE}from"react";var Fg=[],px=(e,t,o,n)=>{let[l,r]=rE(Fg);return nE(()=>{let c=e.current,i=c?.textTracks;if(!c||!i)return;let s,p,d=()=>{let y=s?.cues,u=!!(y&&y.length>0);return r(u&&y?wP(y):Fg),u},g=()=>{clearInterval(p);let y=0;p=setInterval(()=>{y+=1,(d()||y>=hP)&&clearInterval(p)},fP)},m=()=>{let y=SP(i,t);y!==s&&(s&&(s.removeEventListener("cuechange",d),s.mode="disabled"),y?.addEventListener("cuechange",d),s=y),s&&s.mode!=="hidden"&&(s.mode="hidden"),!d()&&s&&g()},v=y=>{y.target instanceof HTMLTrackElement&&d()};return m(),i.addEventListener("addtrack",m),i.addEventListener("removetrack",m),c.addEventListener("load",v,!0),()=>{clearInterval(p),i.removeEventListener("addtrack",m),i.removeEventListener("removetrack",m),c.removeEventListener("load",v,!0),s&&(s.removeEventListener("cuechange",d),s.mode="disabled"),r(Fg)}},[e,t,o,n]),l};import{useEffect as aE,useState as lE}from"react";var dx=e=>{let[t,o]=lE(!1);return aE(()=>{let n=e.current;if(!n||typeof ResizeObserver>"u")return;let l=new ResizeObserver(([r])=>{o(r.contentRect.width<pP)});return l.observe(n),()=>l.disconnect()},[e]),t};import{useCallback as At,useEffect as cE,useRef as mx,useState as iE}from"react";var ux=e=>{try{return e.matches(":focus-visible")}catch{return!1}},sE=()=>typeof window<"u"&&window.matchMedia?.("(hover: none)").matches?"touch":"mouse",fx=(e,t,o,n,l)=>{let r=mx(void 0),c=mx(void 0),[i,s]=iE(sE),p=At(()=>{let P=n.current,T=document.activeElement;return!!P&&!!T&&T!==P&&P.contains(T)&&ux(T)},[n]),d=At(()=>{clearTimeout(r.current);let P=()=>{r.current=setTimeout(()=>{if(p()){P();return}o({type:"setControlsActive",controlsActive:!1})},cP)};P()},[o,p]),g=At(()=>{o({type:"setControlsActive",controlsActive:!0}),d()},[o,d]),m=At(()=>{e&&!p()&&(clearTimeout(r.current),o({type:"setControlsActive",controlsActive:!1}))},[o,p,e]);cE(()=>{if(!e){clearTimeout(r.current),o({type:"setControlsActive",controlsActive:!0});return}return d(),()=>clearTimeout(r.current)},[o,e,d]);let v=!e||t,y=At(P=>{P.pointerType==="mouse"&&(s("mouse"),g())},[g]),u=At(P=>{P.pointerType==="mouse"&&m()},[m]),b=At(P=>{if(c.current=P.pointerType,P.pointerType!=="touch"){s("mouse");return}s("touch"),P.target!==l.current&&g()},[l,g]),C=At(P=>{P.metaKey||P.ctrlKey||P.altKey||(s("keyboard"),g())},[g]),x=At(P=>{P.target!==P.currentTarget&&ux(P.target)&&(s("keyboard"),g())},[g]),I=At(()=>c.current!=="touch"?!1:(v&&e?m():g(),!0),[v,m,e,g]);return{controlsVisible:v,inputMode:i,revealControls:g,handleMediaClick:I,containerHandlers:{onPointerMove:y,onPointerLeave:u,onPointerDown:b,onKeyDown:C,onFocus:x}}};import{useCallback as pE,useEffect as dE}from"react";var hx=(e,t,o)=>(dE(()=>{let n=()=>o({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",n),()=>document.removeEventListener("fullscreenchange",n)},[e,o]),pE(()=>{let n=e.current;!n||!t||(document.fullscreenElement?document.exitFullscreen():n.requestFullscreen?.())},[e,t]));import{useLayoutEffect as mE,useRef as uE}from"react";var gx=(e,t)=>{let o=uE(null);mE(()=>{let n=e.current;if(!n)return;if(t){let r=document.activeElement;r instanceof HTMLElement&&r!==n&&n.contains(r)&&(o.current=r,n.focus({preventScroll:!0}));return}let l=o.current;o.current=null,l?.isConnected&&document.activeElement===n&&l.focus({preventScroll:!0})},[e,t])};import{useCallback as fE}from"react";var hE='input, textarea, select, [contenteditable]:not([contenteditable="false"])',gE='button, a[href], [role="button"], [role="tab"]',yE='[role="slider"], [role="radiogroup"], [role="tablist"]',vE=e=>{let t=e.target;return t===e.currentTarget?!1:t.closest(hE)?!0:e.key===" "||e.key==="Enter"?!!t.closest(gE):e.key.startsWith("Arrow")||e.key==="Home"||e.key==="End"?!!t.closest(yE):!1},yx=({volume:e,canSeekBackward:t,canSeekForward:o,canUseVolume:n,canUseCaptions:l,dispatch:r,seekBy:c,seekToPercentage:i,togglePlay:s,toggleFullscreen:p,restart:d})=>fE(g=>{if(g.metaKey||g.ctrlKey||g.altKey||vE(g))return;let m=(y,u=!0)=>{u&&(g.preventDefault(),y())},v=y=>r({type:"setVolume",volume:y,muted:!1});switch(g.key){case"ArrowLeft":return m(()=>c(-Vl),t);case"ArrowRight":return m(()=>c(Vl),o);case"ArrowUp":return m(()=>v(Math.min(e+_l,1)),n);case"ArrowDown":return m(()=>v(Math.max(e-_l,0)),n);case"f":return m(p);case"m":return m(()=>r({type:"toggleMuted"}),n);case"r":return m(d);case"c":return m(()=>{l&&r({type:"toggleCaptions"})});case"0":return m(()=>i(0));case"1":return m(()=>i(.1));case"2":return m(()=>i(.2));case"3":return m(()=>i(.3));case"4":return m(()=>i(.4));case"5":return m(()=>i(.5));case"6":return m(()=>i(.6));case"7":return m(()=>i(.7));case"8":return m(()=>i(.8));case"9":return m(()=>i(.9));case" ":return m(s);default:return}},[t,o,l,n,r,d,c,i,p,s,e]);import{useCallback as bE,useEffect as vx,useRef as IE,useState as CE}from"react";var Ag=()=>{},bx=e=>!!e&&typeof document<"u"&&document.pictureInPictureEnabled===!0&&typeof e.requestPictureInPicture=="function"&&!e.disablePictureInPicture,Ix=(e,t,o,n,l)=>{let[r,c]=CE(!1),i=IE(!1);vx(()=>{let p=e.current;if(c(bx(p)),!p)return;let d=v=>{i.current=v,l({type:"setPictureInPicture",isPictureInPicture:v})},g=()=>d(!0),m=()=>d(!1);return p.addEventListener("enterpictureinpicture",g),p.addEventListener("leavepictureinpicture",m),()=>{p.removeEventListener("enterpictureinpicture",g),p.removeEventListener("leavepictureinpicture",m)}},[e,o,n,l]),vx(()=>()=>{i.current&&document.pictureInPictureElement&&document.exitPictureInPicture().catch(Ag)},[]);let s=bE(()=>{let p=e.current;!t||!bx(p)||(i.current&&document.pictureInPictureElement?document.exitPictureInPicture().catch(Ag):p?.requestPictureInPicture().catch(Ag))},[t,e]);return{isSupported:t&&r,togglePictureInPicture:s}};import{useEffect as PE}from"react";var Cx=e=>{PE(()=>{let t=e.current;if(!t||typeof ResizeObserver>"u")return;let o=new ResizeObserver(([n])=>{t.style.setProperty(Is,`${n.contentRect.height}px`)});return o.observe(t),()=>{o.disconnect(),t.style.removeProperty(Is)}},[e])};import{useCallback as xE,useEffect as Px,useRef as SE,useState as Fs}from"react";var Og=[],wE=e=>{let t=e?.api;return t&&Array.isArray(t.levels)&&typeof t.on=="function"?t:void 0},ME=e=>e.map((t,o)=>({index:o,width:t.width??0,height:t.height??0,bitrate:t.bitrate??0})),xx=(e,t,o,n)=>{let[l,r]=Fs(),[c,i]=Fs(Og),[s,p]=Fs(Rr),[d,g]=Fs(-1),m=SE(n);m.current=n,Px(()=>{let y=wE(e.current);if(!y)return;let u=()=>{let x=ME(y.levels);y.autoLevelCapping=xg(x,m.current),i(x.length>1?x:Og),p(y.autoLevelEnabled?Rr:y.currentLevel),g(y.currentLevel)},b=(x,I)=>g(I.level),C=()=>{r(void 0),i(Og),p(Rr),g(-1)};return r(y),u(),y.on("hlsManifestParsed",u),y.on("hlsLevelsUpdated",u),y.on("hlsLevelSwitched",b),y.on("hlsDestroying",C),()=>{y.off("hlsManifestParsed",u),y.off("hlsLevelsUpdated",u),y.off("hlsLevelSwitched",b),y.off("hlsDestroying",C)}},[e,t,o]),Px(()=>{l&&(l.autoLevelCapping=xg(c,n))},[l,c,n]);let v=xE(y=>{l&&(l.nextLevel=y,p(y))},[l]);return{levels:c,selected:s,current:d,onChange:v}};import{useCallback as As,useEffect as kE,useRef as TE}from"react";var Sx=(e,t,o,n)=>{let l=TE(0);kE(()=>{l.current=0},[o]);let r=As(p=>{let d=e.current;if(!d||!Number.isFinite(d.duration))return;n();let g=t?d.duration:Math.min(Math.max(l.current,d.currentTime),d.duration);d.currentTime=Math.min(Math.max(p,0),g)},[t,n,e]),c=As(p=>{let d=e.current;!d||!Number.isFinite(d.duration)||r(d.duration*Math.min(Math.max(p,0),1))},[r,e]),i=As(p=>r((e.current?.currentTime??0)+p),[r,e]),s=As(p=>{let d=e.current;!d||!Number.isFinite(d.duration)||(n(),d.currentTime=Math.min(Math.max(p,0),d.duration))},[n,e]);return{seekTo:r,seekToPercentage:c,seekBy:i,jumpTo:s,watchedTimeRef:l}};import{useCallback as wx,useRef as BE}from"react";var Mx=(e,t)=>{let o=BE({seconds:e,src:null,attempts:0,done:!1}),n=wx(r=>{let c=o.current;if(!r?.src||c.done||(c.src===null&&(c.src=r.src),c.src!==r.src))return;let{seconds:i}=c,s=Number.isFinite(r.duration);if(i===void 0||!Number.isFinite(i)||i<=0||s&&i>r.duration){c.done=!0;return}s&&(c.attempts+=1,Math.abs(r.currentTime-i)>sP?r.currentTime=i:c.done=!0,c.attempts>=iP&&(c.done=!0),t({type:"seek",currentTime:i}))},[t]),l=wx(()=>{o.current.done=!0},[]);return{applyStartTime:n,cancelStartTime:l}};var kx=(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"selectCaptionsTrack":return{...e,captionsTrackIndex:t.index,showCaptions:!0};case"hideCaptions":return{...e,showCaptions:!1};case"setSettingsOpen":return{...e,settingsOpen:t.settingsOpen};case"setPictureInPicture":return{...e,isPictureInPicture:t.isPictureInPicture};case"setFullscreen":return{...e,isFullscreen:t.isFullscreen};case"setControlsActive":return{...e,controlsActive:t.controlsActive};default:return e}};import{jsx as En,jsxs as Nx}from"react/jsx-runtime";var DE=[],Bx=[],FE=NE(function({src:t,tracks:o=DE,startTime:n,allowBarSeeking:l=!0,allowSeekingPastWatched:r=!0,chapters:c,hiddenControls:i=Bx,hiddenOverlayControls:s=Bx,aspectRatio:p=bs,controlsOnHover:d=!1,seekStep:g=10,maxQuality:m=hg,engine:v=Ig,labels:y,onTimeChange:u,onDurationChange:b,onPause:C,onEnded:x,className:I,classNames:P,style:T,styles:D,...B},N){let L=Tx(null),M=Tx(null),[S,w]=LE(kx,bP),{playing:E,duration:R,muted:k,volume:O,playbackRate:F,isLoading:A,isFullscreen:_}=S,G=_g(()=>({...ug,...y}),[y]),U=_g(()=>Ss(o),[o]),W=U.length>0,{captionStyle:Q,updateCaptionStyle:H}=sx(),V=ie=>!i.includes(ie),X=ie=>!s.includes(ie),z=V("volume"),q=V("fullscreen"),pe=V("pictureInPicture"),fe=W&&V("subtitles"),me=V("backward")||X("backward"),$e=V("forward")||X("forward"),{applyStartTime:Pe,cancelStartTime:j}=Mx(n,w),{seekTo:ce,seekToPercentage:tt,seekBy:We,jumpTo:Be,watchedTimeRef:De}=Sx(M,r,t,j),{controlsVisible:ze,inputMode:Y,revealControls:xe,handleMediaClick:Ne,containerHandlers:ge}=fx(E,S.controlsActive||S.settingsOpen,w,L,M),qe=d&&Y==="mouse",ot=Ge(ie=>{w({type:"setSettingsOpen",settingsOpen:ie}),ie||xe()},[xe]);Cx(L);let Ar=dx(L),{isSupported:Dn,togglePictureInPicture:oe}=Ix(M,pe,t,!A,w),$=hx(L,q,w);RE(N,()=>({getMediaElement:()=>M.current,play:()=>w({type:"play"}),pause:()=>w({type:"pause"}),jumpTo:Be}),[Be]);let Z=Ge(()=>w({type:"togglePlay"}),[]),se=Ge(()=>{ce(0),w({type:"play"})},[ce]),Re=yx({volume:O,canSeekBackward:me,canSeekForward:$e,canUseVolume:z,canUseCaptions:fe,dispatch:w,seekBy:We,seekToPercentage:tt,togglePlay:Z,toggleFullscreen:$,restart:se}),Fn=ge.onKeyDown,Or=Ge(ie=>{Fn(ie),Re(ie)},[Fn,Re]),be=Ge(()=>{Ne()||Z()},[Ne,Z]),Vo=Ge(()=>w({type:"play"}),[]),Rx=Ge(()=>{w({type:"pause"}),C?.()},[C]),Lx=Ge(ie=>{De.current=ie.currentTarget.duration,w({type:"pause"}),x?.()},[x,De]),Ex=Ge(ie=>{let _r=ie.currentTarget,zo=_r.currentTime;if(zo-De.current<=vP)De.current=Math.max(De.current,zo);else if(!r){_r.currentTime=De.current;return}w({type:"timeUpdate",currentTime:zo}),u?.(zo)},[r,u,De]),[Dx,Fx]=EE(),Ax=Ge(ie=>{let{videoWidth:_r,videoHeight:zo}=ie.currentTarget;Fx(_r>0&&zo>0?_r/zo:void 0),w({type:"loaded",duration:ie.currentTarget.duration}),Pe(ie.currentTarget)},[Pe]),Vg=Ge(ie=>Pe(ie.currentTarget),[Pe]),Ox=Ge(ie=>{w({type:"ready"}),Pe(ie.currentTarget)},[Pe]),_x=Ge(ie=>{w({type:"durationChange",duration:ie.currentTarget.duration}),Pe(ie.currentTarget),b?.(ie)},[Pe,b]),Vx=Ge(()=>w({type:"buffering"}),[]),zx=Ge(()=>w({type:"ready"}),[]),zg=!!t&&A,Hg=!t||!A&&(!Number.isFinite(R)||R===0),Os=Hg||zg;gx(L,Os);let _s=px(M,(U[S.captionsTrackIndex]??U[0])?.srcLang,t,!A),Hx=ix(M,t,!A),Ux=xx(M,t,!A,m),Gx=_g(()=>Cg(_s.length>0?_s:c,R),[_s,c,R]);return En("div",{className:ql("cleen",I),style:T,children:Nx("div",{ref:L,className:ql("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":!ze,"focus-visible:cleen-ring-0":_},P?.container),style:D?.container,onPointerMove:ge.onPointerMove,onPointerLeave:ge.onPointerLeave,onPointerDown:ge.onPointerDown,onFocus:ge.onFocus,onDoubleClick:$,onKeyDown:Or,tabIndex:0,children:[Nx("div",{className:ql("cleen-relative cleen-flex cleen-justify-center cleen-items-center",{"cleen-h-full":_},P?.viewport),style:{aspectRatio:_?void 0:p==="auto"?Dx??bs:p,...D?.viewport},children:[En(v,{...B,ref:M,src:t||void 0,controls:!1,playing:E,muted:k,volume:O,playbackRate:F,playsInline:!0,className:ql("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",P?.video),style:D?.video,onClick:be,onPlay:Vo,onPause:Rx,onEnded:Lx,onTimeUpdate:Ex,onLoadedMetadata:Ax,onLoadedData:Vg,onCanPlay:Ox,onSeeked:Vg,onDurationChange:_x,onWaiting:Vx,onError:zx,crossOrigin:"anonymous",children:o.map(ie=>En("track",{kind:ie.kind??"subtitles",src:ie.src,srcLang:ie.srcLang,label:ie.label},ie.src))}),Hg&&En(ax,{label:G.placeholder,subLabel:G.placeholderSubLabel,classNames:P,styles:D}),zg&&En(re,{size:"xl",className:ql("cleen-absolute",P?.loader?.className),classNames:P?.loader?.classNames,...D?.loader}),En(nx,{playing:E,seekStep:g,visible:ze,hidden:Os,controlsOnHover:qe,isShown:X,onTogglePlay:Z,onSeekBy:We,labels:G,classNames:P,styles:D})]}),En(tx,{compact:Ar,containerRef:L,portalContainer:_?L.current:null,videoRef:M,src:t,state:S,dispatch:w,isShown:V,allowBarSeeking:l,chapters:Gx,buffered:Hx,quality:Ux,seekStep:g,hasTracks:W,captionTracks:U,captionStyle:Q,onCaptionStyleChange:H,onSettingsOpenChange:ot,visible:ze,hidden:Os,controlsOnHover:qe,onSeek:ce,onSeekBy:We,onTogglePlay:Z,onToggleFullscreen:$,pictureInPictureSupported:Dn,onTogglePictureInPicture:oe,labels:G,classNames:P,styles:D})]})})});export{Zx as AdvancedProgressBar,y3 as AudioPlayback,S3 as AudioRecorder,fi as Avatar,B3 as AvatarRow,L3 as Breadcrumb,ee as Button,A0 as Calendar,W3 as CalendarDropdown,d3 as CanvasButton,he as Card,Rk as CardIcon,Ak as CardMedia,Z3 as Carousel,ml as Checkbox,iT as CheckboxGroup,Se as CleenIcon,pR as CleenNotificationContainer,cb as Collapsible,hT as ColorPicker,IT as CreditCardInput,Pl as DEFAULT_NOTIFICATION_CATEGORIES,xl as DEFAULT_NOTIFICATION_LABELS,ug as DEFAULT_VIDEO_PLAYER_LABELS,gt as Divider,z0 as Drawer,FC as DrawerContainer,uL as DrawerContentTitle,dl as Dropdown,eB as Dropzone,c3 as EditableCard,C0 as EditableText,S0 as EditableTextArea,cB as FileCard,Y0 as FileStackedProgressTracker,KB as FilterDrawer,SI as FormGroup,aN as GroupSelector,js as Icon48AlertFeatured,ep as Icon48SuccessFeatured,Uo as IconAlertCircle,op as IconAlertOctagon,rp as IconAlertTriangle,ap as IconApps,cp as IconArchive,ip as IconArrowBarDown,sp as IconArrowBarLeft,pp as IconArrowBarRight,dp as IconArrowBarToDown,mp as IconArrowBarToLeft,up as IconArrowBarToRight,fp as IconArrowBarToUp,hp as IconArrowBarUp,yp as IconArrowDown,vp as IconArrowDownLeft,Ip as IconArrowDownNarrow,Cp as IconArrowDownRight,xp as IconArrowLeft,wp as IconArrowLeftNarrow,kp as IconArrowRight,Bp as IconArrowRightNarrow,Rp as IconArrowUp,Lp as IconArrowUpLeft,Dp as IconArrowUpNarrow,Fp as IconArrowUpRight,Ap as IconAttachment,qr as IconBadgeHd,Op as IconBarChart,_p as IconBarChartSquare,Vp as IconBell,zp as IconBold,qp as IconBookOpen,Hp as IconBookmark,qs as IconBookmarkCheck,Xs as IconBookmarkCheckFill,Up as IconBookmarkFill,Gp as IconBookmarkMinus,Ys as IconBookmarkPlus,Wp as IconBookmarkX,Xp as IconBoxLines,Yp as IconBoxText,Zp as IconBracketsCheck,Jp as IconBracketsEllipses,jp as IconBrickWall,ed as IconBriefcase,Qs as IconBuilding,td as IconCalculator,Qr as IconCalendar,od as IconCertificate,zt as IconCheck,Go as IconCheckCircle,nd as IconCheckCircleBroken,rd as IconCheckFill,ad as IconCheckVerified,ld as IconCheckVerifiedFill,Zr as IconChevronDown,cd as IconChevronDownDouble,id as IconChevronDownLeft,sd as IconChevronDownLeftDouble,pd as IconChevronDownRight,dd as IconChevronDownRightDouble,Ht as IconChevronLeft,md as IconChevronLeftDouble,mt as IconChevronRight,Jr as IconChevronRightDouble,ud as IconChevronSelectorVertical,Ut as IconChevronUp,fd as IconChevronUpDouble,hd as IconChevronUpLeft,gd as IconChevronUpLeftDouble,yd as IconChevronUpRight,vd as IconChevronUpRightDouble,bd as IconClick,Id as IconClock,Cd as IconClockFastForward,xd as IconClockPlay,Sd as IconClockRewind,wd as IconClone,ea as IconClosedCaption,Td as IconCode,Bd as IconCodeBrowser,Rd as IconCodeCircle,Ed as IconColors,Zs as IconColumnEdit,Dd as IconCopy,Fd as IconCopy2,Od as IconCopyCheck,_d as IconCreditCard,Vd as IconCube,zd as IconCubeOutline,ta as IconCursorBox,Hd as IconDataflow,Ud as IconDataflow2,Gd as IconDataflow3,Wd as IconDistributeHorizontal,qd as IconDollar,Kd as IconDollarCircle,Yd as IconDot,Qd as IconDotFill,Zd as IconDotsGrid,jd as IconDotsHorizontal,Gn as IconDotsVertical,om as IconDownload,nm as IconEdit,am as IconEditable,lm as IconExpand,im as IconExternalLink,pm as IconExternalLink2,dm as IconEye,um as IconEyeHidden,fm as IconEyeHidden2,hm as IconFaceAngry,gm as IconFaceLaugh,ym as IconFaceSmile,Wo as IconFile,bm as IconFileCheck,aa as IconFileCsv,Im as IconFileDownload,la as IconFileJson,Cm as IconFileList,at as IconFileMusic,qo as IconFilePdf,ia as IconFileSpreadsheet,$t as IconFileText,Sm as IconFileUpload,pa as IconFileXls,da as IconFileXlsx,It as IconFileZip,xm as IconFiles,wm as IconFilter,ma as IconFilter2,km as IconFlag,Tm as IconFlag2,Bm as IconFlagFill,Nm as IconFocus,Rm as IconFolder,Lm as IconFolderExport,Em as IconFolderImport,Dm as IconGraduationCap,Fm as IconGripVertical,Am as IconHand,Om as IconHandShield,_m as IconHash,Vm as IconHeadsetMic,zm as IconHeart,Hm as IconHeartFill,Gm as IconHouse,fa as IconHouseLine,_e as IconImage,$m as IconImage2,Wm as IconImageCheck,qm as IconImageOff,Xm as IconImport,Km as IconInbox,Qm as IconInfoCircle,Jm as IconInfoHexagon,eu as IconItalic,ou as IconLayersMultiple,nu as IconLayersSingle,ru as IconLayout,lu as IconLayout2,cu as IconLayoutColumns,iu as IconLayoutCustom,pu as IconLayoutStuffed,du as IconLayoutTile,mu as IconLifeBuoy,fu as IconLightbulb,hu as IconLightning,gu as IconLightningFast,yu as IconLineChart,vu as IconLineChartBar,bu as IconLineChartBreakoutSquare,Cu as IconLineChartUp,Pu as IconLines,xu as IconLinesCheck,Su as IconLinesPlay,Mu as IconLink,ku as IconLink2,Tu as IconLinkOff,Bu as IconListBullet,Nu as IconListOrder,Lu as IconLock,Eu as IconLockFill,Fu as IconLogIn,Ou as IconLogOut,Vu as IconLogOut2,zu as IconMagicWand,Hu as IconMail,Uu as IconMailOpen,Gu as IconMapPin,Ia as IconMaximize,$u as IconMaximize2,Wu as IconMessageCircle,Xu as IconMessageSquare,Ku as IconMessageSquare2,Yu as IconMessageXSquare,Pa as IconMicrophone,xa as IconMinimize,Qu as IconMinimize2,Zu as IconMinusCircle,ju as IconMobile,ef as IconMonitor,tf as IconMonitor2,of as IconMoon,nf as IconMoonCircle,ut as IconMovie,Ct as IconName,rf as IconNavigationPointer,af as IconNotificationBox,uf as IconPCSetup,lf as IconPackage,cf as IconPalette,sf as IconPasscodeLock,ft as IconPause,df as IconPauseCircle,hf as IconPen,gf as IconPercentageCircle,yf as IconPerspective,bf as IconPhoneCall,ka as IconPictureInPicture,Ta as IconPin,ht as IconPlay,Cf as IconPlayCircle,Ba as IconPlus,go as IconPlusCircle,Sf as IconPrinter,wf as IconPulse,Na as IconQuestionCircle,kf as IconQuote,Tf as IconRadioButton,Bf as IconRadioButtonFill,Nf as IconReceipt,Rf as IconReceiptCheck,Lf as IconRedo,Ra as IconRefresh,Ef as IconRefresh2,Df as IconRefresh3,Ff as IconRepeat,Af as IconReplace,La as IconReplay,_f as IconRestore,zf as IconRocket,Hf as IconRoundChart,Uf as IconRoundChart2,$f as IconRoute,qf as IconSave,Xf as IconScanDots,Ea as IconScissors,Wt as IconSearch,Kf as IconSend,Yf as IconServer,Da as IconSettings,Qf as IconSettings2,Zf as IconShare,Jf as IconShieldLightning,eh as IconShieldPlus,oh as IconShieldRemove,nh as IconShoppingBag,rh as IconShoppingCart,ah as IconShrink,lh as IconShuffle,ch as IconSkipForward,ih as IconSlashCircle,sh as IconSlashOctagon,ph as IconSocialAndroid,dh as IconSocialApple,mh as IconSocialGithub,uh as IconSocialGlobe,fh as IconSocialGoogle,gh as IconSocialInstagram,yh as IconSocialLinkedin,bh as IconSocialMastercard,Ih as IconSocialReact,Ch as IconSocialVisa,Ph as IconSocialX,Va as IconSpeedometer,xh as IconStairs,za as IconStar,Sh as IconStarFill,wh as IconStarHalf,Mh as IconStars,Ha as IconStop,kh as IconStrikethrough,Th as IconSun,Bh as IconSwap,Nh as IconSwitchHorizontal,Lh as IconTable,Ua as IconTag,Eh as IconTarget,Fh as IconTarget2,Oh as IconTextFormat,_h as IconTextFormat2,Vh as IconTextHighlight,zh as IconThumbsDown,Hh as IconThumbsUp,Uh as IconThumbsUpFill,Gh as IconToggle,$h as IconTranslate,lt as IconTrash,Wh as IconTrending,qh as IconUnderline,Xh as IconUndo,Yh as IconUnlock,Yo as IconUploadCloud,$a as IconUser,Jh as IconUserCheck,jh as IconUserDollar,t0 as IconUserEdit,o0 as IconUserPlus,n0 as IconUserRight,l0 as IconUserSquare,Js as IconUserVoice,r0 as IconUsers,c0 as IconUsersUp,i0 as IconVideo,p0 as IconVideoChat,qa as IconVolume,Xa as IconVolumeDown,Ka as IconVolumeMute,m0 as IconWrench,He as IconX,u0 as IconXCircle,f0 as IconXCircleFill,h0 as IconXSquare,g0 as IconZoomIn,v0 as IconZoomOut,ne as InfoLabels,ye as Input,ae as Label,re as Loader,fN as Lookup,bN as Markdown,fr as Menu,TN as Modal,gr as NOTIFICATION_GENERAL_CATEGORY,C6 as NativeVideoEngine,xR as Pagination,T1 as PaginationGoToPage,B1 as PaginationPageSize,we as PillBadge,wl as Popover,ur as ProgressBar,vC as ProgressCircle,_R as RadioBoxGroup,qR as RadioButtonGroup,ZR as Rating,Ig as ReactPlayerEngine,cL as Select,OC as Sidebar,Nl as SidebarItem,xL as Skeleton,A1 as SkeletonAvatar,_1 as SkeletonBadge,V1 as SkeletonBanner,H1 as SkeletonButton,Rl as SkeletonCard,ps as SkeletonCard2,U1 as SkeletonCard3,$1 as SkeletonCardStack,W1 as SkeletonChart,q1 as SkeletonContentCard,X1 as SkeletonDataGrid,K1 as SkeletonForm,Q1 as SkeletonGlowingCard,Z1 as SkeletonImage,J1 as SkeletonInfoCard,tg as SkeletonInput,og as SkeletonList,ag as SkeletonParagraph,lg as SkeletonText,cg as SkeletonVideo,gs as SkeletonWidgetCard,ZL as SkeletonWrapper,Sn as Slider,n6 as SliderRange,X0 as StackedProgressTracker,U0 as StackedProgressTrackerRow,G0 as StackedProgressTrackerStatusFilter,l6 as StarRating,nP as Stepper,s1 as Switch,gl as TRACKER_STATUS_FILTER_ORDER,Il as Tabs,d6 as TagFilter,x0 as TextArea,Ie as Tooltip,fl as TrackerItemStatus,hl as TrackerStatusFilter,bs as VIDEO_PLAYER_ASPECT_RATIO_DEFAULT,hg as VIDEO_PLAYER_MAX_QUALITY_DEFAULT,fg as VIDEO_PLAYER_SEEK_STEP_DEFAULT,FE as VideoPlayer,Hl as VideoPlayerControl,UI as createNotificationStore,Er as formatTime,b0 as getFileIcon,Gl as getVideoChapterAt,M6 as getVideoChapterIndex,Pg as getVideoChapterProgress,Cg as getVideoChapters,y1 as groupLayout,v1 as listLayout,fn as notification,le as notificationStore,O0 as parseRgbaString,GI as showNotification,b1 as stackLayout,DN as useNotifications};
1
+ import{cn as Ho,useAnimateNumber as Yx}from"@cleen/ui-core";import{forwardRef as Qx,useMemo as Kg}from"react";import{cn as Xl,usePositionClose as $x,ZIndex as Wx}from"@cleen/ui-core";import{useEffect as Ug,useRef as Vs,useState as Gg}from"react";import{createPortal as qx}from"react-dom";import{jsx as zs,jsxs as $g}from"react/jsx-runtime";var Ie=({bg:e,label:t,color:o,closeOnClick:n=!0,hideOnMouseDown:l=!0,isOpen:r,children:c,hasArrow:i,placement:s="top",offset:p=8,className:d,classNames:g,isDisabled:m,openDelay:v=0,invertColors:y=!1,extraUpdateTriggers:u,allowNonDescendantHover:b=!0,zIndex:C=Wx.TOOLTIP,portalContainer:x,style:I,styles:P,onClick:k,onMouseEnter:F,onMouseLeave:T,...B})=>{let[L,M]=Gg(r??!1),[S,w]=Gg(!1),E=Vs(null),R=Vs(null),D=Vs(null),{positionStyles:z,isMounted:N,optimalPosition:A}=$x({triggerRef:R,targetRef:E,position:s,isOpen:L&&!m,offset:p,extraUpdateTriggers:u,container:x});Ug(()=>{M(r??!1)},[r]);let _=O=>{k?.(O),n&&M(!1)},U=(O,$)=>{if(r!==void 0)return;let Q=R.current?.contains(O.target);!b&&!Q||($?(F?.(O),v&&v>0?D.current=setTimeout(()=>{M(!0)},v):M(!0)):(D.current&&(clearTimeout(D.current),D.current=null),M(!1),T?.(O)))};return Ug(()=>{let O=()=>{l&&w(!0)},$=()=>{w(!1)};return document.addEventListener("mousedown",O),document.addEventListener("mouseup",$),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("mouseup",$)}},[l]),$g("div",{className:Xl("cleen",d),style:I,children:[zs("div",{ref:R,className:Xl("cleen-relative cleen-max-w-fit",g?.container),style:P?.container,onClick:_,onMouseEnter:O=>U(O,!0),onMouseLeave:O=>U(O,!1),...B,children:c}),t!==void 0&&L&&!m&&!S&&qx(zs("div",{className:"cleen",children:$g("div",{ref:E,className:Xl("cleen-shadow cleen-px-2 cleen-py-0.5 cleen-rounded-md cleen-text-sm cleen-transition-opacity cleen-duration-200 cleen-pointer-events-none","cleen-absolute",y?"cleen-bg-primary after:cleen-border-primary cleen-text-primary-foreground":"cleen-bg-surface after:cleen-border-surface cleen-text-primary",{"cleen-opacity-0":!N,"cleen-opacity-100":N},g?.labelContainer),style:{zIndex:C,top:`${z.top}px`,left:`${z.left}px`,...e&&{backgroundColor:e},...o&&{color:o},...P?.labelContainer},children:[t,zs("div",{className:Xl(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)]":A==="top"||A==="top-left"||A==="top-right","cleen-left-[calc(50%-6px)]":A==="top"||A==="bottom","cleen-left-[6px]":A==="top-left"||A==="bottom-left","cleen-right-[6px]":A==="top-right"||A==="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)]":A==="bottom"||A==="bottom-left"||A==="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)]":A==="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)]":A==="right"}]:"cleen-hidden"),style:{}})]})}),x??document.body)]})};import{cn as Vr}from"@cleen/ui-core";var _t=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),Vt=(e,t,o)=>{let n=Number.isFinite(t)?t:0,l=Number.isFinite(o)?o:100;return l===n?0:(e-n)/(l-n)*100};import{cn as Kl}from"@cleen/ui-core";import{jsx as Hs}from"react/jsx-runtime";var Yl=({serie:e,minValue:t,maxValue:o,color:n,trackHeight:l,className:r,style:c})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,s=Number.isFinite(i)?i:t,p=_t(Vt(s,t,o)),d=Math.max(2,e?.height??l*1.5),g={left:`${p}%`,top:"50%"};return e.tooltip?Hs(Ie,{invertColors:!0,...e.tooltip,className:Kl("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:Kl("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:Hs("div",{className:Kl("cleen-rounded-full",r),style:{width:d,height:d,backgroundColor:n,...c}})}):Hs("div",{className:Kl("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",r),style:{width:d,height:d,backgroundColor:n,...g,...c}})};import{jsx as Ql}from"react/jsx-runtime";var Wg=({serie:e,minValue:t,maxValue:o,animatedGlobal:n=t,renderAnimated:l,color:r,trackHeight:c,trackRadius:i,className:s,style:p})=>{if(e.type!=="bar")return null;let d=typeof e.start=="number"?e.start:t,g=typeof e.end=="number"?e.end:o,m=_t(Vt(d,t,o)),v=_t(Vt(g,t,o));v<m&&([m,v]=[v,m]);let y=Math.max(0,l?n-m:v-m);if(y<1&&!l||l&&n>=v&&y===0)return Ql(Yl,{serie:{...e,type:"clamp",value:m},color:r,trackHeight:c,minValue:t,maxValue:o,className:s,style:p});let u={left:`${m}%`,top:e?.height?(c-e.height)/2:0,width:`${y}%`,height:e?.height??"100%"},b={width:"100%",height:"100%"},C={background:r,borderRadius:e?.radius??i??(e?.height??c)/2};return e.tooltip?Ql(Ie,{invertColors:!0,...e.tooltip,className:Vr("cleen-absolute",e.tooltip.className),style:{...u,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:Vr("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:Vr("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:Ql("div",{className:Vr("cleen-relative cleen-size-full",s),style:{...C,...b,...p}})}):Ql("div",{className:Vr("cleen-absolute cleen-pointer-events-none",s),style:{...C,...u,...p}})};import{cn as Xx}from"@cleen/ui-core";import{jsx as Kx}from"react/jsx-runtime";var qg=({serie:e,minValue:t,maxValue:o,className:n,style:l})=>{let r=0;if(e.type==="clamp"){let c=typeof e.value=="number"?e.value:0,i=Number.isFinite(c)?c:t;r=_t(Vt(i,t,o))}else{let c=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:o,s=_t(Vt(c,t,o)),p=_t(Vt(i,t,o));r=(s+p)/2}return Kx("div",{className:Xx("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",n),style:{left:`${r}%`,...l},children:e.label})};var Xg={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as An,jsxs as Yg}from"react/jsx-runtime";var Zx=Qx(function({series:t=[],track:o,renderAnimated:n,renderAnimatedDuration:l=1e3,className:r,classNames:c,style:i,styles:s,minValue:p=0,maxValue:d=100,...g},m){let v=Kg(()=>({...Xg,...o}),[o]),y=Kg(()=>t.reduce((x,I)=>{if(I.type==="bar"){let P=typeof I.end=="number"?I.end:d,k=Math.max(p,Math.min(P,d));if(k>x)return k}return x},0),[t,p,d]),u=Yx({targetNumber:y,defaultNumber:p,duration:l,disabled:!n}),{bars:b,clamps:C}=t.reduce((x,I,P)=>{if(I==null||!I.type)return x;let k=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":x.clamps.push(An(Yl,{serie:I,color:k,trackHeight:v.height,minValue:p,maxValue:d,className:Ho(c?.clamp,I.className),style:{...s?.clamp,...I.style}},`clamp-${P}`));break;case"bar":x.bars.push(An(Wg,{serie:I,color:k,trackHeight:v.height,trackRadius:v.radius,minValue:p,maxValue:d,renderAnimated:n,animatedGlobal:u,className:Ho(c?.bar,I.className),style:{...s?.bar,...I.style}},`bar-${P}`));break;default:break}return x},{clamps:[],bars:[]});return An("div",{className:Ho("cleen",r),style:i,ref:m,...g,children:Yg("div",{className:Ho("cleen-relative cleen-w-full",c?.container),style:s?.container,children:[Yg("div",{className:Ho("cleen-relative cleen-size-full",c?.trackWrapper),style:s?.trackWrapper,children:[An("div",{className:Ho("cleen-relative cleen-w-full",c?.track),style:{height:v.height,backgroundColor:v.color,borderRadius:v.radius??v.height/2,...s?.track},children:b}),C]}),t.some(x=>!!x.label)&&An("div",{"aria-hidden":!0,className:Ho("cleen-relative cleen-mt-2 cleen-h-5",c?.labels),style:s?.labels,children:t.map((x,I)=>!x||!x.type||!x.label?null:An(qg,{serie:x,minValue:p,maxValue:d,className:c?.label,style:s?.label},`label-${I}`))})]})})});import{cn as Us}from"@cleen/ui-core";import{jsx as Gs}from"react/jsx-runtime";var Jx={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"},jx={slow:1.3,normal:.65,fast:.4},re=({isFullscreen:e,size:t="xs",stroke:o,speed:n="normal",className:l,classNames:r,style:c,styles:i,color:s,...p})=>Gs("div",{className:Us("cleen",l),style:c,children:Gs("div",{className:Us("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},r?.container),style:i?.container,...p,children:Gs("span",{className:Us("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"&&Jx[t],r?.loader),style:{...s&&{borderInlineColor:s,borderTopColor:s},...typeof t=="number"&&{width:t,height:t},...typeof o=="number"&&{borderWidth:o},animationDuration:`${typeof n=="number"?n:jx[n]}s`,...i?.loader}})})});import{cn as $s,useWidthDynamicResize as eS}from"@cleen/ui-core";import{forwardRef as tS,useImperativeHandle as oS,useRef as nS}from"react";var Qg={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"},Zg={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 Jg,jsxs as rS}from"react/jsx-runtime";var ee=tS(function({type:t="button",label:o,onClick:n,className:l,classNames:r,style:c,styles:i,disabled:s=!1,leftIcon:p,rightIcon:d,loaderColor:g,isLoading:m=!1,variant:v="primary",fullWidth:y=!1,children:u,...b},C){let x=nS(null);return oS(C,()=>x.current),eS({ref:x,skip:y},[m,p,d,y]),Jg("div",{className:$s("cleen",l),style:c,children:rS("button",{type:t,ref:x,className:$s("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",Qg[v],{"cleen-w-full cleen-flex-1":y,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||m},r?.container),style:i?.container,disabled:m||s,onClick:n,...b,children:[m&&Jg(re,{size:"xs",color:g||Zg[v],className:$s("cleen-mr-1.5 cleen-w-fit",r?.loaderContainer),style:i?.loaderContainer,classNames:{loader:r?.loader},styles:{loader:i?.loader}}),p||null,o||u,d||null]})})});var jg={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"},e2={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 io,ColorHelpers as gS}from"@cleen/ui-core";function On(e,t,o){return Math.min(Math.max(e,o),t)}var Ws=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},zr=Ws;function aS(e){if(typeof e!="string")throw new zr(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=uS.test(e)?iS(e):e;let o=sS.exec(t);if(o){let c=Array.from(o).slice(1);return[...c.slice(0,3).map(i=>parseInt(Hr(i,2),16)),parseInt(Hr(c[3]||"f",2),16)/255]}let n=pS.exec(t);if(n){let c=Array.from(n).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,16)),parseInt(c[3]||"ff",16)/255]}let l=dS.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 r=mS.exec(t);if(r){let[c,i,s,p]=Array.from(r).slice(1).map(parseFloat);if(On(0,100,i)!==i)throw new zr(e);if(On(0,100,s)!==s)throw new zr(e);return[...fS(c,i,s),Number.isNaN(p)?1:p]}throw new zr(e)}function lS(e){let t=5381,o=e.length;for(;o;)t=t*33^e.charCodeAt(--o);return(t>>>0)%2341}var t2=e=>parseInt(e.replace(/_/g,""),36),cS="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 o=t2(t.substring(0,3)),n=t2(t.substring(3)).toString(16),l="";for(let r=0;r<6-n.length;r++)l+="0";return e[o]=`${l}${n}`,e},{});function iS(e){let t=e.toLowerCase().trim(),o=cS[lS(t)];if(!o)throw new zr(e);return`#${o}`}var Hr=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),sS=new RegExp(`^#${Hr("([a-f0-9])",3)}([a-f0-9])?$`,"i"),pS=new RegExp(`^#${Hr("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),dS=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Hr(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),mS=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,uS=/^[a-z]+$/i,o2=e=>Math.round(e*255),fS=(e,t,o)=>{let n=o/100;if(t===0)return[n,n,n].map(o2);let l=(e%360+360)%360/60,r=(1-Math.abs(2*n-1))*(t/100),c=r*(1-Math.abs(l%2-1)),i=0,s=0,p=0;l>=0&&l<1?(i=r,s=c):l>=1&&l<2?(i=c,s=r):l>=2&&l<3?(s=r,p=c):l>=3&&l<4?(s=c,p=r):l>=4&&l<5?(i=c,p=r):l>=5&&l<6&&(i=r,p=c);let d=n-r/2,g=i+d,m=s+d,v=p+d;return[g,m,v].map(o2)};function hS(e,t,o,n){return`rgba(${On(0,255,e).toFixed()}, ${On(0,255,t).toFixed()}, ${On(0,255,o).toFixed()}, ${parseFloat(On(0,1,n).toFixed(3))})`}function Ur(e,t){let[o,n,l,r]=aS(e);return hS(o,n,l,r-t)}import{forwardRef as yS,useMemo as vS}from"react";import{jsx as _n,jsxs as n2}from"react/jsx-runtime";var he=yS(function({header:t,footer:o,color:n,isGlass:l=!1,hoverable:r=!1,p:c,gap:i,radius:s=8,children:p,className:d,classNames:g,style:m,styles:v,...y},u){let{cardColor:b,backgroundColor:C,borderColor:x}=vS(()=>{let I=gS.getComputedColor(n);return I?{cardColor:I,backgroundColor:Ur(I,.9),borderColor:Ur(I,.8)}:{cardColor:I}},[n]);return _n("div",{className:io("cleen",d),style:m,ref:u,...y,children:n2("div",{className:io("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",r&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",o?.content?"cleen-pb-3":"cleen-pb-6",g?.container),style:{...b&&{backgroundColor:C,borderColor:x,color:b},...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:s,...v?.container},children:[(t?.content||t?.title)&&n2("div",{className:io("cleen-px-6",g?.header?.content),style:{...b&&{color:b},...c!==void 0&&{paddingInline:c},...v?.header?.content},children:[t?.title&&_n("div",{className:io("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",g?.header?.title),style:{...b&&{color:b},...v?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&_n("hr",{className:io("cleen-text-neutral-200",g?.header?.divider),style:{...b&&{color:x},...v?.header?.divider}}),p&&_n("div",{className:io("cleen-px-6",g?.childrenContainer),style:{...c!==void 0&&{paddingInline:c},...v?.childrenContainer},children:p}),o?.content&&o?.hasDivider&&_n("hr",{className:io("cleen-text-neutral-200",g?.footer?.divider),style:{...b&&{color:x},...v?.footer?.divider}}),o?.content&&_n("div",{className:io("cleen-px-6 -cleen-mt-3 cleen-text-foreground",g?.footer?.content),style:{...b&&{color:b},...c!==void 0&&{paddingInline:c},...v?.footer?.content},children:o.content})]})})});import{jsx as bS}from"react/jsx-runtime";function a({size:e=24,width:t,height:o,strokeWidth:n=1.5,isFilled:l=!1,children:r,...c}){return delete c.color1,delete c.color2,bS("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:o??e,viewBox:"0 0 24 24",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:l?0:n,strokeLinecap:"round",strokeLinejoin:"round",...c,children:r})}import{jsx as r2,jsxs as IS}from"react/jsx-runtime";var qs=e=>IS(a,{...e,children:[r2("path",{d:"M9 10.5l2 2l4 -4"}),r2("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as a2}from"react/jsx-runtime";var Xs=e=>a2(a,{isFilled:!0,...e,children:a2("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 Ks,jsxs as CS}from"react/jsx-runtime";var Ys=e=>CS(a,{...e,children:[Ks("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),Ks("path",{d:"M16 19h6"}),Ks("path",{d:"M19 16v6"})]});import{jsx as so,jsxs as PS}from"react/jsx-runtime";var Qs=e=>PS(a,{...e,children:[so("path",{d:"M3 21l18 0"}),so("path",{d:"M9 8l1 0"}),so("path",{d:"M9 12l1 0"}),so("path",{d:"M9 16l1 0"}),so("path",{d:"M14 8l1 0"}),so("path",{d:"M14 12l1 0"}),so("path",{d:"M14 16l1 0"}),so("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as l2,jsxs as xS}from"react/jsx-runtime";var Zs=e=>xS(a,{...e,children:[l2("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"}),l2("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 Zl,jsxs as SS}from"react/jsx-runtime";var Js=e=>SS(a,{...e,children:[Zl("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Zl("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Zl("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),Zl("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as Gr,jsxs as wS}from"react/jsx-runtime";var js=e=>wS(a,{viewBox:"0 0 48 48",...e,children:[Gr("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Gr("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Gr("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Gr("path",{d:"M24 18v8"}),Gr("path",{d:"M24 30h.01"})]});import{jsx as Jl,jsxs as MS}from"react/jsx-runtime";var ep=e=>MS(a,{viewBox:"0 0 48 48",...e,children:[Jl("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Jl("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Jl("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Jl("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as tp,jsxs as kS}from"react/jsx-runtime";var Uo=e=>kS(a,{...e,children:[tp("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),tp("path",{d:"M12 8v4"}),tp("path",{d:"M12 16h.01"})]});import{jsx as c2}from"react/jsx-runtime";var op=e=>c2(a,{isFilled:!0,...e,children:c2("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 np,jsxs as TS}from"react/jsx-runtime";var rp=e=>TS(a,{...e,children:[np("path",{d:"M12 9v4"}),np("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"}),np("path",{d:"M12 16h.01"})]});import{jsx as $r,jsxs as BS}from"react/jsx-runtime";var ap=e=>BS(a,{...e,children:[$r("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"}),$r("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"}),$r("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"}),$r("path",{d:"M14 7l6 0"}),$r("path",{d:"M17 4l0 6"})]});import{jsx as lp,jsxs as NS}from"react/jsx-runtime";var cp=e=>NS(a,{...e,children:[lp("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"}),lp("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),lp("path",{d:"M10 12l4 0"})]});import{jsx as jl,jsxs as RS}from"react/jsx-runtime";var ip=e=>RS(a,{...e,children:[jl("path",{d:"M12 20l0 -10"}),jl("path",{d:"M12 20l4 -4"}),jl("path",{d:"M12 20l-4 -4"}),jl("path",{d:"M4 4l16 0"})]});import{jsx as ec,jsxs as LS}from"react/jsx-runtime";var sp=e=>LS(a,{...e,children:[ec("path",{d:"M4 12l10 0"}),ec("path",{d:"M4 12l4 4"}),ec("path",{d:"M4 12l4 -4"}),ec("path",{d:"M20 4l0 16"})]});import{jsx as tc,jsxs as ES}from"react/jsx-runtime";var pp=e=>ES(a,{...e,children:[tc("path",{d:"M20 12l-10 0"}),tc("path",{d:"M20 12l-4 4"}),tc("path",{d:"M20 12l-4 -4"}),tc("path",{d:"M4 4l0 16"})]});import{jsx as oc,jsxs as DS}from"react/jsx-runtime";var dp=e=>DS(a,{...e,children:[oc("path",{d:"M4 20l16 0"}),oc("path",{d:"M12 14l0 -10"}),oc("path",{d:"M12 14l4 -4"}),oc("path",{d:"M12 14l-4 -4"})]});import{jsx as nc,jsxs as FS}from"react/jsx-runtime";var mp=e=>FS(a,{...e,children:[nc("path",{d:"M10 12l10 0"}),nc("path",{d:"M10 12l4 4"}),nc("path",{d:"M10 12l4 -4"}),nc("path",{d:"M4 4l0 16"})]});import{jsx as rc,jsxs as AS}from"react/jsx-runtime";var up=e=>AS(a,{...e,children:[rc("path",{d:"M14 12l-10 0"}),rc("path",{d:"M14 12l-4 4"}),rc("path",{d:"M14 12l-4 -4"}),rc("path",{d:"M20 4l0 16"})]});import{jsx as ac,jsxs as OS}from"react/jsx-runtime";var fp=e=>OS(a,{...e,children:[ac("path",{d:"M12 10l0 10"}),ac("path",{d:"M12 10l4 4"}),ac("path",{d:"M12 10l-4 4"}),ac("path",{d:"M4 4l16 0"})]});import{jsx as lc,jsxs as _S}from"react/jsx-runtime";var hp=e=>_S(a,{...e,children:[lc("path",{d:"M12 4l0 10"}),lc("path",{d:"M12 4l4 4"}),lc("path",{d:"M12 4l-4 4"}),lc("path",{d:"M4 20l16 0"})]});import{jsx as gp,jsxs as VS}from"react/jsx-runtime";var yp=e=>VS(a,{...e,children:[gp("path",{d:"M12 5l0 14"}),gp("path",{d:"M18 13l-6 6"}),gp("path",{d:"M6 13l6 6"})]});import{jsx as i2,jsxs as zS}from"react/jsx-runtime";var vp=e=>zS(a,{...e,children:[i2("path",{d:"M17 7l-10 10"}),i2("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as bp,jsxs as HS}from"react/jsx-runtime";var Ip=e=>HS(a,{...e,children:[bp("path",{d:"M12 5l0 14"}),bp("path",{d:"M16 15l-4 4"}),bp("path",{d:"M8 15l4 4"})]});import{jsx as s2,jsxs as US}from"react/jsx-runtime";var Cp=e=>US(a,{...e,children:[s2("path",{d:"M7 7l10 10"}),s2("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as Pp,jsxs as GS}from"react/jsx-runtime";var xp=e=>GS(a,{...e,children:[Pp("path",{d:"M5 12l14 0"}),Pp("path",{d:"M5 12l6 6"}),Pp("path",{d:"M5 12l6 -6"})]});import{jsx as Sp,jsxs as $S}from"react/jsx-runtime";var wp=e=>$S(a,{...e,children:[Sp("path",{d:"M5 12l14 0"}),Sp("path",{d:"M5 12l4 4"}),Sp("path",{d:"M5 12l4 -4"})]});import{jsx as Mp,jsxs as WS}from"react/jsx-runtime";var kp=e=>WS(a,{...e,children:[Mp("path",{d:"M5 12l14 0"}),Mp("path",{d:"M13 18l6 -6"}),Mp("path",{d:"M13 6l6 6"})]});import{jsx as Tp,jsxs as qS}from"react/jsx-runtime";var Bp=e=>qS(a,{...e,children:[Tp("path",{d:"M5 12l14 0"}),Tp("path",{d:"M15 16l4 -4"}),Tp("path",{d:"M15 8l4 4"})]});import{jsx as Np,jsxs as XS}from"react/jsx-runtime";var Rp=e=>XS(a,{...e,children:[Np("path",{d:"M12 5l0 14"}),Np("path",{d:"M18 11l-6 -6"}),Np("path",{d:"M6 11l6 -6"})]});import{jsx as p2,jsxs as KS}from"react/jsx-runtime";var Lp=e=>KS(a,{...e,children:[p2("path",{d:"M7 7l10 10"}),p2("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as Ep,jsxs as YS}from"react/jsx-runtime";var Dp=e=>YS(a,{...e,children:[Ep("path",{d:"M12 5l0 14"}),Ep("path",{d:"M16 9l-4 -4"}),Ep("path",{d:"M8 9l4 -4"})]});import{jsx as d2,jsxs as QS}from"react/jsx-runtime";var Fp=e=>QS(a,{...e,children:[d2("path",{d:"M17 7l-10 10"}),d2("path",{d:"M8 7l9 0l0 9"})]});import{jsx as m2}from"react/jsx-runtime";var Ap=e=>m2(a,{...e,children:m2("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 Wr,jsxs as ZS}from"react/jsx-runtime";var qr=e=>ZS(a,{...e,children:[Wr("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-10"}),Wr("path",{d:"M14 9v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1"}),Wr("path",{d:"M7 15v-6"}),Wr("path",{d:"M10 15v-6"}),Wr("path",{d:"M7 12h3"})]});import{jsx as cc,jsxs as JS}from"react/jsx-runtime";var Op=e=>JS(a,{...e,children:[cc("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"}),cc("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"}),cc("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"}),cc("path",{d:"M4 20h14"})]});import{jsx as Xr,jsxs as jS}from"react/jsx-runtime";var _p=e=>jS(a,{...e,children:[Xr("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"}),Xr("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"}),Xr("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"}),Xr("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"}),Xr("path",{d:"M7 18.5h10"})]});import{jsx as u2,jsxs as ew}from"react/jsx-runtime";var Vp=e=>ew(a,{...e,children:[u2("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"}),u2("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as f2,jsxs as tw}from"react/jsx-runtime";var zp=e=>tw(a,{...e,children:[f2("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),f2("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as h2}from"react/jsx-runtime";var Hp=e=>h2(a,{...e,children:h2("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as g2}from"react/jsx-runtime";var Up=e=>g2(a,{isFilled:!0,...e,children:g2("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 y2,jsxs as ow}from"react/jsx-runtime";var Gp=e=>ow(a,{...e,children:[y2("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),y2("path",{d:"M16 19h6"})]});import{jsx as $p,jsxs as nw}from"react/jsx-runtime";var Wp=e=>nw(a,{...e,children:[$p("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),$p("path",{d:"M20.5 21.5l-5 -5"}),$p("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as Kr,jsxs as rw}from"react/jsx-runtime";var qp=e=>rw(a,{...e,children:[Kr("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Kr("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Kr("path",{d:"M3 6l0 13"}),Kr("path",{d:"M12 6l0 13"}),Kr("path",{d:"M21 6l0 13"})]});import{jsx as ic,jsxs as aw}from"react/jsx-runtime";var Xp=e=>aw(a,{...e,children:[ic("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"}),ic("path",{d:"M9 13h-2"}),ic("path",{d:"M13 10h-6"}),ic("path",{d:"M11 7h-4"})]});import{jsx as Kp,jsxs as lw}from"react/jsx-runtime";var Yp=e=>lw(a,{...e,children:[Kp("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"}),Kp("path",{d:"M10 8h4"}),Kp("path",{d:"M12 8v8"})]});import{jsx as Qp,jsxs as cw}from"react/jsx-runtime";var Zp=e=>cw(a,{...e,children:[Qp("path",{d:"M9 12l2 2l4 -4"}),Qp("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Qp("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Yr,jsxs as iw}from"react/jsx-runtime";var Jp=e=>iw(a,{...e,children:[Yr("path",{d:"M15 12h.01"}),Yr("path",{d:"M12 12h.01"}),Yr("path",{d:"M9 12h.01"}),Yr("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Yr("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as zt,jsxs as sw}from"react/jsx-runtime";var jp=e=>sw(a,{...e,children:[zt("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"}),zt("path",{d:"M4 8h16"}),zt("path",{d:"M20 12h-16"}),zt("path",{d:"M4 16h16"}),zt("path",{d:"M9 4v4"}),zt("path",{d:"M14 8v4"}),zt("path",{d:"M8 12v4"}),zt("path",{d:"M16 12v4"}),zt("path",{d:"M11 16v4"})]});import{jsx as sc,jsxs as pw}from"react/jsx-runtime";var ed=e=>pw(a,{...e,children:[sc("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"}),sc("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),sc("path",{d:"M12 12l0 .01"}),sc("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as po,jsxs as dw}from"react/jsx-runtime";var td=e=>dw(a,{...e,children:[po("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"}),po("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"}),po("path",{d:"M8 14l0 .01"}),po("path",{d:"M12 14l0 .01"}),po("path",{d:"M16 14l0 .01"}),po("path",{d:"M8 17l0 .01"}),po("path",{d:"M12 17l0 .01"}),po("path",{d:"M16 17l0 .01"})]});import{jsx as Vn,jsxs as mw}from"react/jsx-runtime";var Qr=e=>mw(a,{...e,children:[Vn("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"}),Vn("path",{d:"M16 3v4"}),Vn("path",{d:"M8 3v4"}),Vn("path",{d:"M4 11h16"}),Vn("path",{d:"M11 15h1"}),Vn("path",{d:"M12 15v3"})]});import{jsx as zn,jsxs as uw}from"react/jsx-runtime";var od=e=>uw(a,{...e,children:[zn("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),zn("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),zn("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"}),zn("path",{d:"M6 9l12 0"}),zn("path",{d:"M6 12l3 0"}),zn("path",{d:"M6 15l2 0"})]});import{jsx as v2}from"react/jsx-runtime";var Ht=e=>v2(a,{...e,children:v2("path",{d:"M5 12l5 5l10 -10"})});import{jsx as b2,jsxs as fw}from"react/jsx-runtime";var Go=e=>fw(a,{...e,children:[b2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),b2("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as I2,jsxs as hw}from"react/jsx-runtime";var nd=e=>hw(a,{...e,children:[I2("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),I2("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as C2}from"react/jsx-runtime";var rd=e=>C2(a,{isFilled:!0,...e,children:C2("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 P2,jsxs as gw}from"react/jsx-runtime";var ad=e=>gw(a,{...e,children:[P2("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"}),P2("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as x2}from"react/jsx-runtime";var ld=e=>x2(a,{isFilled:!0,...e,children:x2("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 S2}from"react/jsx-runtime";var Zr=e=>S2(a,{...e,children:S2("path",{d:"M6 9l6 6l6 -6"})});import{jsx as w2,jsxs as yw}from"react/jsx-runtime";var cd=e=>yw(a,{...e,children:[w2("path",{d:"M7 7l5 5l5 -5"}),w2("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as M2}from"react/jsx-runtime";var id=e=>M2(a,{...e,children:M2("path",{d:"M8 8v8h8"})});import{jsx as k2,jsxs as vw}from"react/jsx-runtime";var sd=e=>vw(a,{...e,children:[k2("path",{d:"M11 5v8h8"}),k2("path",{d:"M7 9v8h8"})]});import{jsx as T2}from"react/jsx-runtime";var pd=e=>T2(a,{...e,children:T2("path",{d:"M16 8v8h-8"})});import{jsx as B2,jsxs as bw}from"react/jsx-runtime";var dd=e=>bw(a,{...e,children:[B2("path",{d:"M13 5v8h-8"}),B2("path",{d:"M17 9v8h-8"})]});import{jsx as N2}from"react/jsx-runtime";var Ut=e=>N2(a,{...e,children:N2("path",{d:"M15 6l-6 6l6 6"})});import{jsx as R2,jsxs as Iw}from"react/jsx-runtime";var md=e=>Iw(a,{...e,children:[R2("path",{d:"M11 7l-5 5l5 5"}),R2("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as L2}from"react/jsx-runtime";var mt=e=>L2(a,{...e,children:L2("path",{d:"M9 6l6 6l-6 6"})});import{jsx as E2,jsxs as Cw}from"react/jsx-runtime";var Jr=e=>Cw(a,{...e,children:[E2("path",{d:"M7 7l5 5l-5 5"}),E2("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as D2,jsxs as Pw}from"react/jsx-runtime";var ud=e=>Pw(a,{...e,children:[D2("path",{d:"M8 9l4 -4l4 4"}),D2("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as F2}from"react/jsx-runtime";var Gt=e=>F2(a,{...e,children:F2("path",{d:"M6 15l6 -6l6 6"})});import{jsx as A2,jsxs as xw}from"react/jsx-runtime";var fd=e=>xw(a,{...e,children:[A2("path",{d:"M7 11l5 -5l5 5"}),A2("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as O2}from"react/jsx-runtime";var hd=e=>O2(a,{...e,children:O2("path",{d:"M8 16v-8h8"})});import{jsx as _2,jsxs as Sw}from"react/jsx-runtime";var gd=e=>Sw(a,{...e,children:[_2("path",{d:"M7 15v-8h8"}),_2("path",{d:"M11 19v-8h8"})]});import{jsx as V2}from"react/jsx-runtime";var yd=e=>V2(a,{...e,children:V2("path",{d:"M8 8h8v8"})});import{jsx as z2,jsxs as ww}from"react/jsx-runtime";var vd=e=>ww(a,{...e,children:[z2("path",{d:"M9 7h8v8"}),z2("path",{d:"M5 11h8v8"})]});import{jsx as Hn,jsxs as Mw}from"react/jsx-runtime";var bd=e=>Mw(a,{...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 H2,jsxs as kw}from"react/jsx-runtime";var Id=e=>kw(a,{...e,children:[H2("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),H2("path",{d:"M12 7v5l3 3"})]});import{jsx as pc,jsxs as Tw}from"react/jsx-runtime";var Cd=e=>Tw(a,{...e,children:[pc("path",{d:"M12 7v5l2 2"}),pc("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),pc("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),pc("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as Pd,jsxs as Bw}from"react/jsx-runtime";var xd=e=>Bw(a,{...e,children:[Pd("path",{d:"M12 7v5l2 2"}),Pd("path",{d:"M17 22l5 -3l-5 -3z"}),Pd("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as U2,jsxs as Nw}from"react/jsx-runtime";var Sd=e=>Nw(a,{...e,children:[U2("path",{d:"M12 8l0 4l2 2"}),U2("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as jr,jsxs as Rw}from"react/jsx-runtime";var wd=e=>Rw(a,{...e,children:[jr("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),jr("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"}),jr("path",{d:"M11 14h6"}),jr("path",{d:"M14 11v6"}),jr("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 Md,jsxs as Lw}from"react/jsx-runtime";var ea=e=>Lw(a,{...e,children:[Md("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-10"}),Md("path",{d:"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Md("path",{d:"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"})]});import{jsx as kd,jsxs as Ew}from"react/jsx-runtime";var Td=e=>Ew(a,{...e,children:[kd("path",{d:"M7 8l-4 4l4 4"}),kd("path",{d:"M17 8l4 4l-4 4"}),kd("path",{d:"M14 4l-4 16"})]});import{jsx as Un,jsxs as Dw}from"react/jsx-runtime";var Bd=e=>Dw(a,{...e,children:[Un("path",{d:"M4 8h16"}),Un("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"}),Un("path",{d:"M8 4v4"}),Un("path",{d:"M9 12l-2 2l2 2"}),Un("path",{d:"M15 12l2 2l-2 2"}),Un("path",{d:"M13 11l-2 6"})]});import{jsx as Nd,jsxs as Fw}from"react/jsx-runtime";var Rd=e=>Fw(a,{...e,children:[Nd("path",{d:"M10 14l-2 -2l2 -2"}),Nd("path",{d:"M14 10l2 2l-2 2"}),Nd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Ld,jsxs as Aw}from"react/jsx-runtime";var Ed=e=>Aw(a,{...e,children:[Ld("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Ld("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Ld("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as G2,jsxs as Ow}from"react/jsx-runtime";var Dd=e=>Ow(a,{...e,children:[G2("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"}),G2("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 $2,jsxs as _w}from"react/jsx-runtime";var Fd=e=>_w(a,{...e,children:[$2("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"}),$2("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 Ad,jsxs as Vw}from"react/jsx-runtime";var Od=e=>Vw(a,{...e,children:[Ad("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"}),Ad("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"}),Ad("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as dc,jsxs as zw}from"react/jsx-runtime";var _d=e=>zw(a,{...e,children:[dc("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"}),dc("path",{d:"M3 10l18 0"}),dc("path",{d:"M7 15l.01 0"}),dc("path",{d:"M11 15l2 0"})]});import{jsx as mc,jsxs as Hw}from"react/jsx-runtime";var Vd=e=>Hw(a,{...e,children:[mc("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"}),mc("path",{d:"M12 22v-10"}),mc("path",{d:"M12 12l8.73 -5.04"}),mc("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as nt,jsxs as Uw}from"react/jsx-runtime";var zd=e=>Uw(a,{...e,children:[nt("path",{d:"M6 17.6l-2 -1.1v-2.5"}),nt("path",{d:"M4 10v-2.5l2 -1.1"}),nt("path",{d:"M10 4.1l2 -1.1l2 1.1"}),nt("path",{d:"M18 6.4l2 1.1v2.5"}),nt("path",{d:"M20 14v2.5l-2 1.12"}),nt("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),nt("path",{d:"M12 12l2 -1.1"}),nt("path",{d:"M18 8.6l2 -1.1"}),nt("path",{d:"M12 12l0 2.5"}),nt("path",{d:"M12 18.5l0 2.5"}),nt("path",{d:"M12 12l-2 -1.12"}),nt("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as W2,jsxs as Gw}from"react/jsx-runtime";var ta=e=>Gw(a,{...e,children:[W2("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"}),W2("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 $o,jsxs as $w}from"react/jsx-runtime";var Hd=e=>$w(a,{...e,children:[$o("path",{d:"M5 2h5v4h-5z"}),$o("path",{d:"M15 10h5v4h-5z"}),$o("path",{d:"M5 18h5v4h-5z"}),$o("path",{d:"M5 10h5v4h-5z"}),$o("path",{d:"M10 12h5"}),$o("path",{d:"M7.5 6v4"}),$o("path",{d:"M7.5 14v4"})]});import{jsx as rt,jsxs as Ww}from"react/jsx-runtime";var Ud=e=>Ww(a,{...e,children:[rt("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rt("path",{d:"M5 17l2 -3"}),rt("path",{d:"M9 10l2 -3"}),rt("path",{d:"M13 7l2 3"}),rt("path",{d:"M17 14l2 3"}),rt("path",{d:"M15 14l-2 3"}),rt("path",{d:"M9 14l2 3"})]});import{jsx as oa,jsxs as qw}from"react/jsx-runtime";var Gd=e=>qw(a,{...e,children:[oa("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"}),oa("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"}),oa("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"}),oa("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),oa("path",{d:"M12 9l0 3"})]});import{jsx as $d,jsxs as Xw}from"react/jsx-runtime";var Wd=e=>Xw(a,{...e,children:[$d("path",{d:"M4 4l16 0"}),$d("path",{d:"M4 20l16 0"}),$d("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 q2,jsxs as Kw}from"react/jsx-runtime";var qd=e=>Kw(a,{...e,children:[q2("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"}),q2("path",{d:"M12 3v3m0 12v3"})]});import{jsx as Xd,jsxs as Yw}from"react/jsx-runtime";var Kd=e=>Yw(a,{...e,children:[Xd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Xd("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"}),Xd("path",{d:"M12 7v10"})]});import{jsx as X2}from"react/jsx-runtime";var Yd=e=>X2(a,{...e,children:X2("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as K2}from"react/jsx-runtime";var Qd=e=>K2(a,{isFilled:!0,...e,children:K2("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 $t,jsxs as Qw}from"react/jsx-runtime";var Zd=e=>Qw(a,{...e,children:[$t("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),$t("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),$t("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),$t("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),$t("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),$t("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),$t("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),$t("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),$t("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Jd,jsxs as Zw}from"react/jsx-runtime";var jd=e=>Zw(a,{...e,children:[Jd("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jd("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jd("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as em,jsxs as Jw}from"react/jsx-runtime";var Gn=e=>Jw(a,{...e,children:[em("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),em("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),em("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as tm,jsxs as jw}from"react/jsx-runtime";var om=e=>jw(a,{...e,children:[tm("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),tm("path",{d:"M7 11l5 5l5 -5"}),tm("path",{d:"M12 4l0 12"})]});import{jsx as Y2,jsxs as e4}from"react/jsx-runtime";var nm=e=>e4(a,{...e,children:[Y2("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),Y2("path",{d:"M13.5 6.5l4 4"})]});import{jsx as rm,jsxs as t4}from"react/jsx-runtime";var am=e=>t4(a,{...e,children:[rm("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),rm("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),rm("path",{d:"M16 5l3 3"})]});import{jsx as mo,jsxs as o4}from"react/jsx-runtime";var lm=e=>o4(a,{...e,children:[mo("path",{d:"M16 4l4 0l0 4"}),mo("path",{d:"M14 10l6 -6"}),mo("path",{d:"M8 20l-4 0l0 -4"}),mo("path",{d:"M4 20l6 -6"}),mo("path",{d:"M16 20l4 0l0 -4"}),mo("path",{d:"M14 14l6 6"}),mo("path",{d:"M8 4l-4 0l0 4"}),mo("path",{d:"M4 4l6 6"})]});import{jsx as cm,jsxs as n4}from"react/jsx-runtime";var im=e=>n4(a,{...e,children:[cm("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),cm("path",{d:"M11 13l9 -9"}),cm("path",{d:"M15 4h5v5"})]});import{jsx as sm,jsxs as r4}from"react/jsx-runtime";var pm=e=>r4(a,{...e,children:[sm("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"}),sm("path",{d:"M15 9l-6 6"}),sm("path",{d:"M10 9l5 0l0 5"})]});import{jsx as Q2,jsxs as a4}from"react/jsx-runtime";var dm=e=>a4(a,{...e,children:[Q2("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),Q2("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 mm,jsxs as l4}from"react/jsx-runtime";var um=e=>l4(a,{...e,children:[mm("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),mm("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"}),mm("path",{d:"M3 3l18 18"})]});import{jsx as na,jsxs as c4}from"react/jsx-runtime";var fm=e=>c4(a,{...e,children:[na("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),na("path",{d:"M3 15l2.5 -3.8"}),na("path",{d:"M21 14.976l-2.492 -3.776"}),na("path",{d:"M9 17l.5 -4"}),na("path",{d:"M15 17l-.5 -4"})]});import{jsx as uc,jsxs as i4}from"react/jsx-runtime";var hm=e=>i4(a,{...e,children:[uc("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),uc("path",{d:"M8 9l2 1"}),uc("path",{d:"M16 9l-2 1"}),uc("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as $n,jsxs as s4}from"react/jsx-runtime";var gm=e=>s4(a,{...e,children:[$n("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),$n("path",{d:"M7 8.5l3 3"}),$n("path",{d:"M7 11.5l3 -3"}),$n("path",{d:"M14 8.5l3 3"}),$n("path",{d:"M14 11.5l3 -3"}),$n("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as fc,jsxs as p4}from"react/jsx-runtime";var ym=e=>p4(a,{...e,children:[fc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),fc("path",{d:"M9 10l.01 0"}),fc("path",{d:"M15 10l.01 0"}),fc("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Z2,jsxs as d4}from"react/jsx-runtime";var Wo=e=>d4(a,{...e,children:[Z2("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Z2("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 vm,jsxs as m4}from"react/jsx-runtime";var bm=e=>m4(a,{...e,children:[vm("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),vm("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"}),vm("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as ra,jsxs as u4}from"react/jsx-runtime";var aa=e=>u4(a,{...e,children:[ra("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ra("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),ra("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),ra("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"}),ra("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as hc,jsxs as f4}from"react/jsx-runtime";var Im=e=>f4(a,{...e,children:[hc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),hc("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"}),hc("path",{d:"M12 17v-6"}),hc("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as Wn,jsxs as h4}from"react/jsx-runtime";var la=e=>h4(a,{...e,children:[Wn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Wn("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Wn("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),Wn("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"}),Wn("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"}),Wn("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as gc,jsxs as g4}from"react/jsx-runtime";var Cm=e=>g4(a,{...e,children:[gc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),gc("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"}),gc("path",{d:"M9 17h6"}),gc("path",{d:"M9 13h6"})]});import{jsx as yc,jsxs as y4}from"react/jsx-runtime";var at=e=>y4(a,{...e,children:[yc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),yc("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"}),yc("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),yc("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as qn,jsxs as v4}from"react/jsx-runtime";var qo=e=>v4(a,{...e,children:[qn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),qn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),qn("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),qn("path",{d:"M17 18h2"}),qn("path",{d:"M20 15h-3v6"}),qn("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as Pm,jsxs as b4}from"react/jsx-runtime";var xm=e=>b4(a,{...e,children:[Pm("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),Pm("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"}),Pm("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 ca,jsxs as I4}from"react/jsx-runtime";var ia=e=>I4(a,{...e,children:[ca("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ca("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"}),ca("path",{d:"M8 11h8v7h-8z"}),ca("path",{d:"M8 15h8"}),ca("path",{d:"M11 11v7"})]});import{jsx as sa,jsxs as C4}from"react/jsx-runtime";var Wt=e=>C4(a,{...e,children:[sa("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),sa("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"}),sa("path",{d:"M9 9l1 0"}),sa("path",{d:"M9 13l6 0"}),sa("path",{d:"M9 17l6 0"})]});import{jsx as vc,jsxs as P4}from"react/jsx-runtime";var Sm=e=>P4(a,{...e,children:[vc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),vc("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"}),vc("path",{d:"M12 11v6"}),vc("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as Xn,jsxs as x4}from"react/jsx-runtime";var pa=e=>x4(a,{...e,children:[Xn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Xn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Xn("path",{d:"M4 15l4 6"}),Xn("path",{d:"M4 21l4 -6"}),Xn("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"}),Xn("path",{d:"M11 15v6h3"})]});import{jsx as uo,jsxs as S4}from"react/jsx-runtime";var da=e=>S4(a,{...e,children:[uo("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),uo("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),uo("path",{d:"M4 16l3 5"}),uo("path",{d:"M4 21l3 -5"}),uo("path",{d:"M8.5 16v5h2"}),uo("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"}),uo("path",{d:"M16.5 16l3 5"}),uo("path",{d:"M16.5 21l3 -5"})]});import{jsx as fo,jsxs as w4}from"react/jsx-runtime";var Ct=e=>w4(a,{...e,children:[fo("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"}),fo("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"}),fo("path",{d:"M11 5l-1 0"}),fo("path",{d:"M13 7l-1 0"}),fo("path",{d:"M11 9l-1 0"}),fo("path",{d:"M13 11l-1 0"}),fo("path",{d:"M11 13l-1 0"}),fo("path",{d:"M13 15l-1 0"})]});import{jsx as J2}from"react/jsx-runtime";var wm=e=>J2(a,{...e,children:J2("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 Mm,jsxs as M4}from"react/jsx-runtime";var ma=e=>M4(a,{...e,children:[Mm("path",{d:"M4 6h16"}),Mm("path",{d:"M6 12h12"}),Mm("path",{d:"M9 18h6"})]});import{jsx as j2,jsxs as k4}from"react/jsx-runtime";var km=e=>k4(a,{...e,children:[j2("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"}),j2("path",{d:"M5 21v-7"})]});import{jsx as ey}from"react/jsx-runtime";var Tm=e=>ey(a,{...e,children:ey("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as ty}from"react/jsx-runtime";var Bm=e=>ty(a,{isFilled:!0,...e,children:ty("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 ua,jsxs as T4}from"react/jsx-runtime";var Nm=e=>T4(a,{...e,children:[ua("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ua("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),ua("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),ua("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),ua("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as oy}from"react/jsx-runtime";var Rm=e=>oy(a,{...e,children:oy("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 bc,jsxs as B4}from"react/jsx-runtime";var Lm=e=>B4(a,{...e,children:[bc("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"}),bc("path",{d:"M1 12.5l7 0"}),bc("path",{d:"M1 12.5l2 2"}),bc("path",{d:"M1 12.5l2 -2"})]});import{jsx as Ic,jsxs as N4}from"react/jsx-runtime";var Em=e=>N4(a,{...e,children:[Ic("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"}),Ic("path",{d:"M2 13l7 0"}),Ic("path",{d:"M9 13l-2 2"}),Ic("path",{d:"M9 13l-2 -2"})]});import{jsx as ny,jsxs as R4}from"react/jsx-runtime";var Dm=e=>R4(a,{...e,children:[ny("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),ny("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as Kn,jsxs as L4}from"react/jsx-runtime";var Fm=e=>L4(a,{...e,children:[Kn("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kn("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Cc,jsxs as E4}from"react/jsx-runtime";var Am=e=>E4(a,{...e,children:[Cc("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Cc("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Cc("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Cc("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 Yn,jsxs as D4}from"react/jsx-runtime";var Om=e=>D4(a,{...e,children:[Yn("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Yn("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Yn("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Yn("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),Yn("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"}),Yn("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 Pc,jsxs as F4}from"react/jsx-runtime";var _m=e=>F4(a,{...e,children:[Pc("path",{d:"M5 9l14 0"}),Pc("path",{d:"M5 15l14 0"}),Pc("path",{d:"M11 4l-4 16"}),Pc("path",{d:"M17 4l-4 16"})]});import{jsx as xc,jsxs as A4}from"react/jsx-runtime";var Vm=e=>A4(a,{...e,children:[xc("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),xc("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),xc("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"}),xc("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 ry}from"react/jsx-runtime";var zm=e=>ry(a,{...e,children:ry("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 ay}from"react/jsx-runtime";var Hm=e=>ay(a,{isFilled:!0,...e,children:ay("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 Um,jsxs as O4}from"react/jsx-runtime";var Gm=e=>O4(a,{...e,children:[Um("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),Um("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),Um("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as ly,jsxs as _4}from"react/jsx-runtime";var fa=e=>_4(a,{...e,children:[ly("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"}),ly("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Sc,jsxs as V4}from"react/jsx-runtime";var _e=e=>V4(a,{...e,children:[Sc("path",{d:"M15 8h.01"}),Sc("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"}),Sc("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Sc("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as ha,jsxs as z4}from"react/jsx-runtime";var $m=e=>z4(a,{...e,children:[ha("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"}),ha("path",{d:"M4 16l16 0"}),ha("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),ha("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),ha("path",{d:"M14 7l.01 0"})]});import{jsx as ga,jsxs as H4}from"react/jsx-runtime";var Wm=e=>H4(a,{...e,children:[ga("path",{d:"M15 8h.01"}),ga("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"}),ga("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),ga("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),ga("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as ya,jsxs as U4}from"react/jsx-runtime";var qm=e=>U4(a,{...e,children:[ya("path",{d:"M15 8h.01"}),ya("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"}),ya("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),ya("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),ya("path",{d:"M3 3l18 18"})]});import{jsx as cy,jsxs as G4}from"react/jsx-runtime";var Xm=e=>G4(a,{...e,children:[cy("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),cy("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 iy,jsxs as $4}from"react/jsx-runtime";var Km=e=>$4(a,{...e,children:[iy("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"}),iy("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as Ym,jsxs as W4}from"react/jsx-runtime";var Qm=e=>W4(a,{...e,children:[Ym("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Ym("path",{d:"M12 9h.01"}),Ym("path",{d:"M11 12h1v4h1"})]});import{jsx as Zm,jsxs as q4}from"react/jsx-runtime";var Jm=e=>q4(a,{...e,children:[Zm("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"}),Zm("path",{d:"M12 9h.01"}),Zm("path",{d:"M11 12h1v4h1"})]});import{jsx as jm,jsxs as X4}from"react/jsx-runtime";var eu=e=>X4(a,{...e,children:[jm("path",{d:"M11 5l6 0"}),jm("path",{d:"M7 19l6 0"}),jm("path",{d:"M14 5l-4 14"})]});import{jsx as tu,jsxs as K4}from"react/jsx-runtime";var ou=e=>K4(a,{...e,children:[tu("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),tu("path",{d:"M4 12l8 4l8 -4"}),tu("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as sy,jsxs as Y4}from"react/jsx-runtime";var nu=e=>Y4(a,{...e,children:[sy("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),sy("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as py,jsxs as Q4}from"react/jsx-runtime";var ru=e=>Q4(a,{...e,children:[py("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"}),py("path",{d:"M9 4l0 16"})]});import{jsx as au,jsxs as Z4}from"react/jsx-runtime";var lu=e=>Z4(a,{...e,children:[au("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"}),au("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"}),au("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 wc,jsxs as J4}from"react/jsx-runtime";var cu=e=>J4(a,{...e,children:[wc("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"}),wc("path",{d:"M4 9h8"}),wc("path",{d:"M12 15h8"}),wc("path",{d:"M12 4v16"})]});import{jsx as va,jsxs as j4}from"react/jsx-runtime";var iu=e=>j4(a,{...e,children:[va("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"}),va("path",{d:"M4 12h8"}),va("path",{d:"M12 15h8"}),va("path",{d:"M12 9h8"}),va("path",{d:"M12 4v16"})]});import{jsx as su,jsxs as e5}from"react/jsx-runtime";var pu=e=>e5(a,{...e,children:[su("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"}),su("path",{d:"M10 4l4 16"}),su("path",{d:"M12 12l-8 2"})]});import{jsx as Mc,jsxs as t5}from"react/jsx-runtime";var du=e=>t5(a,{...e,children:[Mc("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"}),Mc("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"}),Mc("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"}),Mc("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 Qn,jsxs as o5}from"react/jsx-runtime";var mu=e=>o5(a,{...e,children:[Qn("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Qn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Qn("path",{d:"M15 15l3.35 3.35"}),Qn("path",{d:"M9 15l-3.35 3.35"}),Qn("path",{d:"M5.65 5.65l3.35 3.35"}),Qn("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as uu,jsxs as n5}from"react/jsx-runtime";var fu=e=>n5(a,{...e,children:[uu("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),uu("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"}),uu("path",{d:"M9.7 17l4.6 0"})]});import{jsx as dy}from"react/jsx-runtime";var hu=e=>dy(a,{...e,children:dy("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as my,jsxs as r5}from"react/jsx-runtime";var gu=e=>r5(a,{...e,children:[my("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),my("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as uy,jsxs as a5}from"react/jsx-runtime";var yu=e=>a5(a,{...e,children:[uy("path",{d:"M4 19l16 0"}),uy("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as Zn,jsxs as l5}from"react/jsx-runtime";var vu=e=>l5(a,{...e,children:[Zn("path",{d:"M3 3v18h18"}),Zn("path",{d:"M20 18v3"}),Zn("path",{d:"M16 16v5"}),Zn("path",{d:"M12 13v8"}),Zn("path",{d:"M8 16v5"}),Zn("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as Jn,jsxs as c5}from"react/jsx-runtime";var bu=e=>c5(a,{...e,children:[Jn("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"}),Jn("path",{d:"M3 13c0 0, 8 0, 12 -4"}),Jn("path",{d:"M12 8h4v4"}),Jn("path",{d:"M15 2v1.44"}),Jn("path",{d:"M18.75 4.75l1.2 -1.2"}),Jn("path",{d:"M20 9h1.44"})]});import{jsx as Iu,jsxs as i5}from"react/jsx-runtime";var Cu=e=>i5(a,{...e,children:[Iu("path",{d:"M4 19l16 0"}),Iu("path",{d:"M4 16l6 -6l4 4l5 -5"}),Iu("path",{d:"M15 8h5v5"})]});import{jsx as fy,jsxs as s5}from"react/jsx-runtime";var Pu=e=>s5(a,{...e,children:[fy("path",{d:"M5 10h14"}),fy("path",{d:"M5 14h14"})]});import{jsx as jn,jsxs as p5}from"react/jsx-runtime";var xu=e=>p5(a,{...e,children:[jn("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),jn("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),jn("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),jn("path",{d:"M11 6l9 0"}),jn("path",{d:"M11 12l9 0"}),jn("path",{d:"M11 18l9 0"})]});import{jsx as kc,jsxs as d5}from"react/jsx-runtime";var Su=e=>d5(a,{...e,children:[kc("path",{d:"M12 10v8l8 -4z"}),kc("path",{d:"M4 6h16"}),kc("path",{d:"M4 12h4.5"}),kc("path",{d:"M4 18h4.5"})]});import{jsx as wu,jsxs as m5}from"react/jsx-runtime";var Mu=e=>m5(a,{...e,children:[wu("path",{d:"M9 15l6 -6"}),wu("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),wu("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 hy,jsxs as u5}from"react/jsx-runtime";var ku=e=>u5(a,{...e,children:[hy("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),hy("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Tc,jsxs as f5}from"react/jsx-runtime";var Tu=e=>f5(a,{...e,children:[Tc("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Tc("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Tc("path",{d:"M3 3l18 18"}),Tc("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 er,jsxs as h5}from"react/jsx-runtime";var Bu=e=>h5(a,{...e,children:[er("path",{d:"M9 6l11 0"}),er("path",{d:"M9 12l11 0"}),er("path",{d:"M9 18l11 0"}),er("path",{d:"M5 6l0 .01"}),er("path",{d:"M5 12l0 .01"}),er("path",{d:"M5 18l0 .01"})]});import{jsx as ba,jsxs as g5}from"react/jsx-runtime";var Nu=e=>g5(a,{...e,children:[ba("path",{d:"M11 6h9"}),ba("path",{d:"M11 12h9"}),ba("path",{d:"M12 18h8"}),ba("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),ba("path",{d:"M6 10v-6l-2 2"})]});import{jsx as Ru,jsxs as y5}from"react/jsx-runtime";var Lu=e=>y5(a,{...e,children:[Ru("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"}),Ru("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Ru("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as gy}from"react/jsx-runtime";var Eu=e=>gy(a,{isFilled:!0,...e,children:gy("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 Du,jsxs as v5}from"react/jsx-runtime";var Fu=e=>v5(a,{...e,children:[Du("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"}),Du("path",{d:"M3 12h13l-3 -3"}),Du("path",{d:"M13 15l3 -3"})]});import{jsx as Au,jsxs as b5}from"react/jsx-runtime";var Ou=e=>b5(a,{...e,children:[Au("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"}),Au("path",{d:"M9 12h12l-3 -3"}),Au("path",{d:"M18 15l3 -3"})]});import{jsx as _u,jsxs as I5}from"react/jsx-runtime";var Vu=e=>I5(a,{...e,children:[_u("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"}),_u("path",{d:"M15 12h-12l3 -3"}),_u("path",{d:"M6 15l-3 -3"})]});import{jsx as Bc,jsxs as C5}from"react/jsx-runtime";var zu=e=>C5(a,{...e,children:[Bc("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Bc("path",{d:"M15 6l3 3"}),Bc("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"}),Bc("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 yy,jsxs as P5}from"react/jsx-runtime";var Hu=e=>P5(a,{...e,children:[yy("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"}),yy("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as Nc,jsxs as x5}from"react/jsx-runtime";var Uu=e=>x5(a,{...e,children:[Nc("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),Nc("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),Nc("path",{d:"M3 19l6 -6"}),Nc("path",{d:"M15 13l6 6"})]});import{jsx as vy,jsxs as S5}from"react/jsx-runtime";var Gu=e=>S5(a,{...e,children:[vy("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),vy("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 Rc,jsxs as w5}from"react/jsx-runtime";var Ia=e=>w5(a,{...e,children:[Rc("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Rc("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Rc("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Rc("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Lc,jsxs as M5}from"react/jsx-runtime";var $u=e=>M5(a,{...e,children:[Lc("path",{d:"M16 4l4 0l0 4"}),Lc("path",{d:"M14 10l6 -6"}),Lc("path",{d:"M8 20l-4 0l0 -4"}),Lc("path",{d:"M4 20l6 -6"})]});import{jsx as by}from"react/jsx-runtime";var Wu=e=>by(a,{...e,children:by("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 qu,jsxs as k5}from"react/jsx-runtime";var Xu=e=>k5(a,{...e,children:[qu("path",{d:"M8 9h8"}),qu("path",{d:"M8 13h6"}),qu("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 Ec,jsxs as T5}from"react/jsx-runtime";var Ku=e=>T5(a,{...e,children:[Ec("path",{d:"M12 11v.01"}),Ec("path",{d:"M8 11v.01"}),Ec("path",{d:"M16 11v.01"}),Ec("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 Ca,jsxs as B5}from"react/jsx-runtime";var Yu=e=>B5(a,{...e,children:[Ca("path",{d:"M8 9h8"}),Ca("path",{d:"M8 13h6"}),Ca("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"}),Ca("path",{d:"M22 22l-5 -5"}),Ca("path",{d:"M17 22l5 -5"})]});import{jsx as Dc,jsxs as N5}from"react/jsx-runtime";var Pa=e=>N5(a,{...e,children:[Dc("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"}),Dc("path",{d:"M5 10a7 7 0 0 0 14 0"}),Dc("path",{d:"M8 21l8 0"}),Dc("path",{d:"M12 17l0 4"})]});import{jsx as Fc,jsxs as R5}from"react/jsx-runtime";var xa=e=>R5(a,{...e,children:[Fc("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),Fc("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),Fc("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),Fc("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Ac,jsxs as L5}from"react/jsx-runtime";var Qu=e=>L5(a,{...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 Iy,jsxs as E5}from"react/jsx-runtime";var Zu=e=>E5(a,{...e,children:[Iy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Iy("path",{d:"M9 12l6 0"})]});import{jsx as Ju,jsxs as D5}from"react/jsx-runtime";var ju=e=>D5(a,{...e,children:[Ju("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"}),Ju("path",{d:"M11 4h2"}),Ju("path",{d:"M12 17v.01"})]});import{jsx as Oc,jsxs as F5}from"react/jsx-runtime";var ef=e=>F5(a,{...e,children:[Oc("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"}),Oc("path",{d:"M7 20h10"}),Oc("path",{d:"M9 16v4"}),Oc("path",{d:"M15 16v4"})]});import{jsx as Sa,jsxs as A5}from"react/jsx-runtime";var tf=e=>A5(a,{...e,children:[Sa("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"}),Sa("path",{d:"M3 13h18"}),Sa("path",{d:"M8 21h8"}),Sa("path",{d:"M10 17l-.5 4"}),Sa("path",{d:"M14 17l.5 4"})]});import{jsx as Cy}from"react/jsx-runtime";var of=e=>Cy(a,{...e,children:Cy("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 Py,jsxs as O5}from"react/jsx-runtime";var nf=e=>O5(a,{...e,children:[Py("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Py("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 ho,jsxs as _5}from"react/jsx-runtime";var ut=e=>_5(a,{...e,children:[ho("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"}),ho("path",{d:"M8 4l0 16"}),ho("path",{d:"M16 4l0 16"}),ho("path",{d:"M4 8l4 0"}),ho("path",{d:"M4 16l4 0"}),ho("path",{d:"M4 12l16 0"}),ho("path",{d:"M16 8l4 0"}),ho("path",{d:"M16 16l4 0"})]});import{jsx as xy}from"react/jsx-runtime";var rf=e=>xy(a,{...e,children:xy("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 Sy,jsxs as V5}from"react/jsx-runtime";var af=e=>V5(a,{...e,children:[Sy("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),Sy("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as wa,jsxs as z5}from"react/jsx-runtime";var lf=e=>z5(a,{...e,children:[wa("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),wa("path",{d:"M12 12l8 -4.5"}),wa("path",{d:"M12 12l0 9"}),wa("path",{d:"M12 12l-8 -4.5"}),wa("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as _c,jsxs as H5}from"react/jsx-runtime";var cf=e=>H5(a,{...e,children:[_c("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"}),_c("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_c("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_c("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ma,jsxs as U5}from"react/jsx-runtime";var sf=e=>U5(a,{...e,children:[Ma("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"}),Ma("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),Ma("path",{d:"M15 16h.01"}),Ma("path",{d:"M12.01 16h.01"}),Ma("path",{d:"M9.02 16h.01"})]});import{jsx as wy,jsxs as G5}from"react/jsx-runtime";var ft=e=>G5(a,{...e,children:[wy("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"}),wy("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 pf,jsxs as $5}from"react/jsx-runtime";var df=e=>$5(a,{...e,children:[pf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),pf("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"}),pf("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 mf,jsxs as W5}from"react/jsx-runtime";var uf=e=>W5(a,{...e,children:[mf("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"}),mf("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),mf("path",{d:"M16 9h2"})]});import{jsx as ff,jsxs as q5}from"react/jsx-runtime";var hf=e=>q5(a,{...e,children:[ff("path",{d:"M14 6l7 7l-4 4"}),ff("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"}),ff("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as Vc,jsxs as X5}from"react/jsx-runtime";var gf=e=>X5(a,{...e,children:[Vc("path",{d:"M9 15l6 -6"}),Vc("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),Vc("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),Vc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as My}from"react/jsx-runtime";var yf=e=>My(a,{...e,children:My("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 vf,jsxs as K5}from"react/jsx-runtime";var bf=e=>K5(a,{...e,children:[vf("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"}),vf("path",{d:"M15 7a2 2 0 0 1 2 2"}),vf("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as ky,jsxs as Y5}from"react/jsx-runtime";var ka=e=>Y5(a,{...e,children:[ky("path",{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"}),ky("path",{d:"M14 15a1 1 0 0 1 1 -1h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1l0 -3"})]});import{jsx as If,jsxs as Q5}from"react/jsx-runtime";var Ta=e=>Q5(a,{...e,children:[If("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),If("path",{d:"M9 15l-4.5 4.5"}),If("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as Ty}from"react/jsx-runtime";var ht=e=>Ty(a,{...e,children:Ty("path",{d:"M7 4v16l13 -8z"})});import{jsx as By,jsxs as Z5}from"react/jsx-runtime";var Cf=e=>Z5(a,{...e,children:[By("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),By("path",{d:"M9 8v8l8 -4z"})]});import{jsx as Ny,jsxs as J5}from"react/jsx-runtime";var Ba=e=>J5(a,{...e,children:[Ny("path",{d:"M12 5l0 14"}),Ny("path",{d:"M5 12l14 0"})]});import{jsx as Pf,jsxs as j5}from"react/jsx-runtime";var go=e=>j5(a,{...e,children:[Pf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Pf("path",{d:"M9 12h6"}),Pf("path",{d:"M12 9v6"})]});import{jsx as xf,jsxs as eM}from"react/jsx-runtime";var Sf=e=>eM(a,{...e,children:[xf("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"}),xf("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),xf("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 Ry}from"react/jsx-runtime";var wf=e=>Ry(a,{...e,children:Ry("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as Mf,jsxs as tM}from"react/jsx-runtime";var Na=e=>tM(a,{...e,children:[Mf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Mf("path",{d:"M12 16v.01"}),Mf("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as Ly,jsxs as oM}from"react/jsx-runtime";var kf=e=>oM(a,{...e,children:[Ly("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"}),Ly("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 Ey,jsxs as nM}from"react/jsx-runtime";var Tf=e=>nM(a,{...e,children:[Ey("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ey("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Dy}from"react/jsx-runtime";var Bf=e=>Dy(a,{isFilled:!0,...e,children:Dy("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 Fy}from"react/jsx-runtime";var Nf=e=>Fy(a,{...e,children:Fy("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 Ay,jsxs as rM}from"react/jsx-runtime";var Rf=e=>rM(a,{...e,children:[Ay("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"}),Ay("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as Oy,jsxs as aM}from"react/jsx-runtime";var Lf=e=>aM(a,{...e,children:[Oy("path",{d:"M15 14l4 -4l-4 -4"}),Oy("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as _y}from"react/jsx-runtime";var Ra=e=>_y(a,{...e,children:_y("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as Vy,jsxs as lM}from"react/jsx-runtime";var Ef=e=>lM(a,{...e,children:[Vy("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),Vy("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as zy,jsxs as cM}from"react/jsx-runtime";var Df=e=>cM(a,{...e,children:[zy("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),zy("path",{d:"M20 4v5h-5"})]});import{jsx as Hy,jsxs as iM}from"react/jsx-runtime";var Ff=e=>iM(a,{...e,children:[Hy("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),Hy("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as zc,jsxs as sM}from"react/jsx-runtime";var Af=e=>sM(a,{...e,children:[zc("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"}),zc("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"}),zc("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),zc("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as Uy}from"react/jsx-runtime";var La=e=>Uy(a,{...e,children:Uy("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Of,jsxs as pM}from"react/jsx-runtime";var _f=e=>pM(a,{...e,children:[Of("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Of("path",{d:"M3 4.001v5h5"}),Of("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Vf,jsxs as dM}from"react/jsx-runtime";var zf=e=>dM(a,{...e,children:[Vf("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"}),Vf("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),Vf("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Gy,jsxs as mM}from"react/jsx-runtime";var Hf=e=>mM(a,{...e,children:[Gy("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"}),Gy("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 $y,jsxs as uM}from"react/jsx-runtime";var Uf=e=>uM(a,{...e,children:[$y("path",{d:"M12 3v9h9"}),$y("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Gf,jsxs as fM}from"react/jsx-runtime";var $f=e=>fM(a,{...e,children:[Gf("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),Gf("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),Gf("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 Wf,jsxs as hM}from"react/jsx-runtime";var qf=e=>hM(a,{...e,children:[Wf("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"}),Wf("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Wf("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as yo,jsxs as gM}from"react/jsx-runtime";var Xf=e=>gM(a,{...e,children:[yo("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),yo("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),yo("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),yo("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),yo("path",{d:"M5 11h1v2h-1z"}),yo("path",{d:"M10 11l0 2"}),yo("path",{d:"M14 11h1v2h-1z"}),yo("path",{d:"M19 11l0 2"})]});import{jsx as Hc,jsxs as yM}from"react/jsx-runtime";var Ea=e=>yM(a,{...e,children:[Hc("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Hc("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Hc("path",{d:"M8.6 8.6l10.4 10.4"}),Hc("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as Wy,jsxs as vM}from"react/jsx-runtime";var qt=e=>vM(a,{...e,children:[Wy("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Wy("path",{d:"M21 21l-6 -6"})]});import{jsx as qy,jsxs as bM}from"react/jsx-runtime";var Kf=e=>bM(a,{...e,children:[qy("path",{d:"M10 14l11 -11"}),qy("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 Uc,jsxs as IM}from"react/jsx-runtime";var Yf=e=>IM(a,{...e,children:[Uc("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"}),Uc("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"}),Uc("path",{d:"M7 8l0 .01"}),Uc("path",{d:"M7 16l0 .01"})]});import{jsx as Xy,jsxs as CM}from"react/jsx-runtime";var Da=e=>CM(a,{...e,children:[Xy("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"}),Xy("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as Xt,jsxs as PM}from"react/jsx-runtime";var Qf=e=>PM(a,{...e,children:[Xt("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xt("path",{d:"M4 6l8 0"}),Xt("path",{d:"M16 6l4 0"}),Xt("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xt("path",{d:"M4 12l2 0"}),Xt("path",{d:"M10 12l10 0"}),Xt("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xt("path",{d:"M4 18l11 0"}),Xt("path",{d:"M19 18l1 0"})]});import{jsx as Fa,jsxs as xM}from"react/jsx-runtime";var Zf=e=>xM(a,{...e,children:[Fa("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Fa("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Fa("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Fa("path",{d:"M8.7 10.7l6.6 -3.4"}),Fa("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as Ky,jsxs as SM}from"react/jsx-runtime";var Jf=e=>SM(a,{...e,children:[Ky("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"}),Ky("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as jf,jsxs as wM}from"react/jsx-runtime";var eh=e=>wM(a,{...e,children:[jf("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"}),jf("path",{d:"M16 19h6"}),jf("path",{d:"M19 16v6"})]});import{jsx as th,jsxs as MM}from"react/jsx-runtime";var oh=e=>MM(a,{...e,children:[th("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"}),th("path",{d:"M22 22l-5 -5"}),th("path",{d:"M17 22l5 -5"})]});import{jsx as Yy,jsxs as kM}from"react/jsx-runtime";var nh=e=>kM(a,{...e,children:[Yy("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"}),Yy("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as Gc,jsxs as TM}from"react/jsx-runtime";var rh=e=>TM(a,{...e,children:[Gc("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Gc("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Gc("path",{d:"M17 17h-11v-14h-2"}),Gc("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as vo,jsxs as BM}from"react/jsx-runtime";var ah=e=>BM(a,{...e,children:[vo("path",{d:"M5 9l4 0l0 -4"}),vo("path",{d:"M3 3l6 6"}),vo("path",{d:"M5 15l4 0l0 4"}),vo("path",{d:"M3 21l6 -6"}),vo("path",{d:"M19 9l-4 0l0 -4"}),vo("path",{d:"M15 9l6 -6"}),vo("path",{d:"M19 15l-4 0l0 4"}),vo("path",{d:"M15 15l6 6"})]});import{jsx as $c,jsxs as NM}from"react/jsx-runtime";var lh=e=>NM(a,{...e,children:[$c("path",{d:"M18 4l3 3l-3 3"}),$c("path",{d:"M18 20l3 -3l-3 -3"}),$c("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),$c("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 Qy,jsxs as RM}from"react/jsx-runtime";var ch=e=>RM(a,{...e,children:[Qy("path",{d:"M4 5v14l12 -7z"}),Qy("path",{d:"M20 5l0 14"})]});import{jsx as Zy,jsxs as LM}from"react/jsx-runtime";var ih=e=>LM(a,{...e,children:[Zy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Zy("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as Jy,jsxs as EM}from"react/jsx-runtime";var sh=e=>EM(a,{...e,children:[Jy("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"}),Jy("path",{d:"M5 5 L19 19"})]});import{jsx as Xo,jsxs as DM}from"react/jsx-runtime";var ph=e=>DM(a,{...e,children:[Xo("path",{d:"M4 10l0 6"}),Xo("path",{d:"M20 10l0 6"}),Xo("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),Xo("path",{d:"M8 3l1 2"}),Xo("path",{d:"M16 3l-1 2"}),Xo("path",{d:"M9 18l0 3"}),Xo("path",{d:"M15 18l0 3"})]});import{jsx as jy,jsxs as FM}from"react/jsx-runtime";var dh=e=>FM(a,{...e,children:[jy("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"}),jy("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as ev}from"react/jsx-runtime";var mh=e=>ev(a,{...e,children:ev("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 Aa,jsxs as AM}from"react/jsx-runtime";var uh=e=>AM(a,{...e,children:[Aa("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Aa("path",{d:"M3.6 9h16.8"}),Aa("path",{d:"M3.6 15h16.8"}),Aa("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),Aa("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as tv}from"react/jsx-runtime";var fh=e=>tv(a,{...e,children:tv("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 hh,jsxs as OM}from"react/jsx-runtime";var gh=e=>OM(a,{...e,children:[hh("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"}),hh("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),hh("path",{d:"M16.5 7.5v.01"})]});import{jsx as Oa,jsxs as _M}from"react/jsx-runtime";var yh=e=>_M(a,{...e,children:[Oa("path",{d:"M8 11v5"}),Oa("path",{d:"M8 8v.01"}),Oa("path",{d:"M12 16v-5"}),Oa("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),Oa("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 vh,jsxs as VM}from"react/jsx-runtime";var bh=e=>VM(a,{...e,children:[vh("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),vh("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),vh("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 Ko,jsxs as zM}from"react/jsx-runtime";var Ih=e=>zM(a,{...e,children:[Ko("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"}),Ko("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"}),Ko("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"}),Ko("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"}),Ko("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"}),Ko("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"}),Ko("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"})]});import{jsx as _a,jsxs as HM}from"react/jsx-runtime";var Ch=e=>HM(a,{...e,children:[_a("path",{d:"M21 15l-1 -6l-2.5 6"}),_a("path",{d:"M9 15l1 -6"}),_a("path",{d:"M3 9h1v6h.5l2.5 -6"}),_a("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"}),_a("path",{d:"M18 14h2.7"})]});import{jsx as ov,jsxs as UM}from"react/jsx-runtime";var Ph=e=>UM(a,{...e,children:[ov("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),ov("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as Wc,jsxs as GM}from"react/jsx-runtime";var Va=e=>GM(a,{...e,children:[Wc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Wc("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wc("path",{d:"M13.41 10.59l2.59 -2.59"}),Wc("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as nv}from"react/jsx-runtime";var xh=e=>nv(a,{...e,children:nv("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as rv}from"react/jsx-runtime";var za=e=>rv(a,{...e,children:rv("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 av}from"react/jsx-runtime";var Sh=e=>av(a,{isFilled:!0,...e,children:av("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 lv}from"react/jsx-runtime";var wh=e=>lv(a,{isFilled:!0,...e,children:lv("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 cv}from"react/jsx-runtime";var Mh=e=>cv(a,{...e,children:cv("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 iv}from"react/jsx-runtime";var Ha=e=>iv(a,{...e,children:iv("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 sv,jsxs as $M}from"react/jsx-runtime";var kh=e=>$M(a,{...e,children:[sv("path",{d:"M5 12l14 0"}),sv("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 pv,jsxs as WM}from"react/jsx-runtime";var Th=e=>WM(a,{...e,children:[pv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),pv("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 dv,jsxs as qM}from"react/jsx-runtime";var Bh=e=>qM(a,{...e,children:[dv("path",{d:"M7 10h14l-4 -4"}),dv("path",{d:"M17 14h-14l4 4"})]});import{jsx as qc,jsxs as XM}from"react/jsx-runtime";var Nh=e=>XM(a,{...e,children:[qc("path",{d:"M16 3l4 4l-4 4"}),qc("path",{d:"M10 7l10 0"}),qc("path",{d:"M8 13l-4 4l4 4"}),qc("path",{d:"M4 17l9 0"})]});import{jsx as Rh,jsxs as KM}from"react/jsx-runtime";var Lh=e=>KM(a,{...e,children:[Rh("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"}),Rh("path",{d:"M3 10h18"}),Rh("path",{d:"M10 3v18"})]});import{jsx as mv,jsxs as YM}from"react/jsx-runtime";var Ua=e=>YM(a,{...e,children:[mv("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),mv("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 tr,jsxs as QM}from"react/jsx-runtime";var Eh=e=>QM(a,{...e,children:[tr("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),tr("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),tr("path",{d:"M12 2l0 2"}),tr("path",{d:"M12 20l0 2"}),tr("path",{d:"M20 12l2 0"}),tr("path",{d:"M2 12l2 0"})]});import{jsx as Dh,jsxs as ZM}from"react/jsx-runtime";var Fh=e=>ZM(a,{...e,children:[Dh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dh("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Dh("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Ah,jsxs as JM}from"react/jsx-runtime";var Oh=e=>JM(a,{...e,children:[Ah("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),Ah("path",{d:"M9 11h6"}),Ah("path",{d:"M5 19h14"})]});import{jsx as uv,jsxs as jM}from"react/jsx-runtime";var _h=e=>jM(a,{...e,children:[uv("path",{d:"M6 4l12 0"}),uv("path",{d:"M12 4l0 16"})]});import{jsx as Xc,jsxs as ek}from"react/jsx-runtime";var Vh=e=>ek(a,{...e,children:[Xc("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),Xc("path",{d:"M12.5 5.5l4 4"}),Xc("path",{d:"M4.5 13.5l4 4"}),Xc("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as fv}from"react/jsx-runtime";var zh=e=>fv(a,{...e,children:fv("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 hv}from"react/jsx-runtime";var Hh=e=>hv(a,{...e,children:hv("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 gv,jsxs as tk}from"react/jsx-runtime";var Uh=e=>tk(a,{isFilled:!0,...e,children:[gv("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"}),gv("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 yv,jsxs as ok}from"react/jsx-runtime";var Gh=e=>ok(a,{...e,children:[yv("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),yv("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 or,jsxs as nk}from"react/jsx-runtime";var $h=e=>nk(a,{...e,children:[or("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),or("path",{d:"M4 6.371h7"}),or("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),or("path",{d:"M12 20l4 -9l4 9"}),or("path",{d:"M19.1 18h-6.2"}),or("path",{d:"M6.694 3l.793 .582"})]});import{jsx as Ga,jsxs as rk}from"react/jsx-runtime";var lt=e=>rk(a,{...e,children:[Ga("path",{d:"M4 7l16 0"}),Ga("path",{d:"M10 11l0 6"}),Ga("path",{d:"M14 11l0 6"}),Ga("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),Ga("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as vv,jsxs as ak}from"react/jsx-runtime";var Wh=e=>ak(a,{...e,children:[vv("path",{d:"M3 17l6 -6l4 4l8 -8"}),vv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as bv,jsxs as lk}from"react/jsx-runtime";var qh=e=>lk(a,{...e,children:[bv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),bv("path",{d:"M5 19h14"})]});import{jsx as Iv,jsxs as ck}from"react/jsx-runtime";var Xh=e=>ck(a,{...e,children:[Iv("path",{d:"M9 14l-4 -4l4 -4"}),Iv("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as Kh,jsxs as ik}from"react/jsx-runtime";var Yh=e=>ik(a,{...e,children:[Kh("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"}),Kh("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Kh("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as Qh,jsxs as sk}from"react/jsx-runtime";var Yo=e=>sk(a,{...e,children:[Qh("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"}),Qh("path",{d:"M9 15l3 -3l3 3"}),Qh("path",{d:"M12 12l0 9"})]});import{jsx as Cv,jsxs as pk}from"react/jsx-runtime";var $a=e=>pk(a,{...e,children:[Cv("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Cv("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as Zh,jsxs as dk}from"react/jsx-runtime";var Jh=e=>dk(a,{...e,children:[Zh("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Zh("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),Zh("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Kc,jsxs as mk}from"react/jsx-runtime";var jh=e=>mk(a,{...e,children:[Kc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Kc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Kc("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),Kc("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as e0,jsxs as uk}from"react/jsx-runtime";var t0=e=>uk(a,{...e,children:[e0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),e0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),e0("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 Yc,jsxs as fk}from"react/jsx-runtime";var o0=e=>fk(a,{...e,children:[Yc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Yc("path",{d:"M16 19h6"}),Yc("path",{d:"M19 16v6"}),Yc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as Qc,jsxs as hk}from"react/jsx-runtime";var n0=e=>hk(a,{...e,children:[Qc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Qc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Qc("path",{d:"M16 22l5 -5"}),Qc("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as Zc,jsxs as gk}from"react/jsx-runtime";var r0=e=>gk(a,{...e,children:[Zc("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Zc("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Zc("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Zc("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as a0,jsxs as yk}from"react/jsx-runtime";var l0=e=>yk(a,{...e,children:[a0("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),a0("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),a0("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 Wa,jsxs as vk}from"react/jsx-runtime";var c0=e=>vk(a,{...e,children:[Wa("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Wa("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),Wa("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Wa("path",{d:"M19 22v-6"}),Wa("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as Pv,jsxs as bk}from"react/jsx-runtime";var i0=e=>bk(a,{...e,children:[Pv("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"}),Pv("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 s0,jsxs as Ik}from"react/jsx-runtime";var p0=e=>Ik(a,{...e,children:[s0("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),s0("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),s0("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 d0,jsxs as Ck}from"react/jsx-runtime";var qa=e=>Ck(a,{...e,children:[d0("path",{d:"M15 8a5 5 0 0 1 0 8"}),d0("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),d0("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 xv,jsxs as Pk}from"react/jsx-runtime";var Xa=e=>Pk(a,{...e,children:[xv("path",{d:"M15 8a5 5 0 0 1 0 8"}),xv("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 Sv,jsxs as xk}from"react/jsx-runtime";var Ka=e=>xk(a,{...e,children:[Sv("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"}),Sv("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as wv}from"react/jsx-runtime";var m0=e=>wv(a,{...e,children:wv("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 Mv,jsxs as Sk}from"react/jsx-runtime";var He=e=>Sk(a,{...e,children:[Mv("path",{d:"M18 6l-12 12"}),Mv("path",{d:"M6 6l12 12"})]});import{jsx as kv,jsxs as wk}from"react/jsx-runtime";var u0=e=>wk(a,{...e,children:[kv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),kv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Tv}from"react/jsx-runtime";var f0=e=>Tv(a,{isFilled:!0,...e,children:Tv("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 Bv,jsxs as Mk}from"react/jsx-runtime";var h0=e=>Mk(a,{...e,children:[Bv("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"}),Bv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as Jc,jsxs as kk}from"react/jsx-runtime";var g0=e=>kk(a,{...e,children:[Jc("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Jc("path",{d:"M7 10l6 0"}),Jc("path",{d:"M10 7l0 6"}),Jc("path",{d:"M21 21l-6 -6"})]});import{jsx as y0,jsxs as Tk}from"react/jsx-runtime";var v0=e=>Tk(a,{...e,children:[y0("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),y0("path",{d:"M7 10l6 0"}),y0("path",{d:"M21 21l-6 -6"})]});var Pt=(f=>(f["48AlertFeatured"]="48AlertFeatured",f["48SuccessFeatured"]="48SuccessFeatured",f.AlertCircle="AlertCircle",f.AlertOctagon="AlertOctagon",f.AlertTriangle="AlertTriangle",f.Apps="Apps",f.ArrowBarDown="ArrowBarDown",f.ArrowBarLeft="ArrowBarLeft",f.ArrowBarRight="ArrowBarRight",f.ArrowBarToDown="ArrowBarToDown",f.ArrowBarToLeft="ArrowBarToLeft",f.ArrowBarToRight="ArrowBarToRight",f.ArrowBarToUp="ArrowBarToUp",f.ArrowBarUp="ArrowBarUp",f.Archive="Archive",f.ArrowDown="ArrowDown",f.ArrowDownLeft="ArrowDownLeft",f.ArrowDownNarrow="ArrowDownNarrow",f.ArrowDownRight="ArrowDownRight",f.ArrowLeft="ArrowLeft",f.ArrowLeftNarrow="ArrowLeftNarrow",f.ArrowRight="ArrowRight",f.ArrowRightNarrow="ArrowRightNarrow",f.ArrowUp="ArrowUp",f.ArrowUpLeft="ArrowUpLeft",f.ArrowUpNarrow="ArrowUpNarrow",f.ArrowUpRight="ArrowUpRight",f.Attachment="Attachment",f.BadgeHd="BadgeHd",f.BarChart="BarChart",f.BarChartSquare="BarChartSquare",f.Bell="Bell",f.Bold="Bold",f.Bookmark="Bookmark",f.BookmarkCheck="BookmarkCheck",f.BookmarkCheckFill="BookmarkCheckFill",f.BookmarkFill="BookmarkFill",f.BookmarkMinus="BookmarkMinus",f.BookmarkPlus="BookmarkPlus",f.BookmarkX="BookmarkX",f.BookOpen="BookOpen",f.BoxLines="BoxLines",f.BoxText="BoxText",f.BracketsCheck="BracketsCheck",f.BracketsEllipses="BracketsEllipses",f.BrickWall="BrickWall",f.Briefcase="Briefcase",f.Building="Building",f.Calculator="Calculator",f.Calendar="Calendar",f.Certificate="Certificate",f.Check="Check",f.CheckCircle="CheckCircle",f.CheckCircleBroken="CheckCircleBroken",f.CheckFill="CheckFill",f.CheckVerified="CheckVerified",f.CheckVerifiedFill="CheckVerifiedFill",f.ChevronDown="ChevronDown",f.ChevronDownDouble="ChevronDownDouble",f.ChevronDownLeft="ChevronDownLeft",f.ChevronDownLeftDouble="ChevronDownLeftDouble",f.ChevronDownRight="ChevronDownRight",f.ChevronDownRightDouble="ChevronDownRightDouble",f.ChevronLeft="ChevronLeft",f.ChevronLeftDouble="ChevronLeftDouble",f.ChevronRight="ChevronRight",f.ChevronRightDouble="ChevronRightDouble",f.ChevronSelectorVertical="ChevronSelectorVertical",f.ChevronUp="ChevronUp",f.ChevronUpDouble="ChevronUpDouble",f.ChevronUpLeft="ChevronUpLeft",f.ChevronUpLeftDouble="ChevronUpLeftDouble",f.ChevronUpRight="ChevronUpRight",f.ChevronUpRightDouble="ChevronUpRightDouble",f.Click="Click",f.Clock="Clock",f.ClockFastForward="ClockFastForward",f.ClockPlay="ClockPlay",f.ClockRewind="ClockRewind",f.Clone="Clone",f.ClosedCaption="ClosedCaption",f.Code="Code",f.CodeBrowser="CodeBrowser",f.CodeCircle="CodeCircle",f.Colors="Colors",f.ColumnEdit="ColumnEdit",f.Copy="Copy",f.Copy2="Copy2",f.CopyCheck="CopyCheck",f.CreditCard="CreditCard",f.Cube="Cube",f.CubeOutline="CubeOutline",f.CursorBox="CursorBox",f.Dataflow="Dataflow",f.Dataflow2="Dataflow2",f.Dataflow3="Dataflow3",f.DistributeHorizontal="DistributeHorizontal",f.Dollar="Dollar",f.DollarCircle="DollarCircle",f.Dot="Dot",f.DotFill="DotFill",f.DotsGrid="DotsGrid",f.DotsHorizontal="DotsHorizontal",f.DotsVertical="DotsVertical",f.Download="Download",f.Edit="Edit",f.Editable="Editable",f.Expand="Expand",f.ExternalLink="ExternalLink",f.ExternalLink2="ExternalLink2",f.Eye="Eye",f.EyeHidden="EyeHidden",f.EyeHidden2="EyeHidden2",f.FaceAngry="FaceAngry",f.FaceLaugh="FaceLaugh",f.FaceSmile="FaceSmile",f.File="File",f.FileCheck="FileCheck",f.FileCsv="FileCsv",f.FileDownload="FileDownload",f.FileJson="FileJson",f.FileList="FileList",f.FileMusic="FileMusic",f.FilePdf="FilePdf",f.Files="Files",f.FileSpreadsheet="FileSpreadsheet",f.FileText="FileText",f.FileUpload="FileUpload",f.FileXls="FileXls",f.FileXlsx="FileXlsx",f.FileZip="FileZip",f.Filter="Filter",f.Filter2="Filter2",f.Flag="Flag",f.Flag2="Flag2",f.FlagFill="FlagFill",f.Focus="Focus",f.Folder="Folder",f.FolderExport="FolderExport",f.FolderImport="FolderImport",f.GraduationCap="GraduationCap",f.GripVertical="GripVertical",f.Hand="Hand",f.HandShield="HandShield",f.Hash="Hash",f.HeadsetMic="HeadsetMic",f.Heart="Heart",f.HeartFill="HeartFill",f.House="House",f.HouseLine="HouseLine",f.Image="Image",f.Image2="Image2",f.ImageCheck="ImageCheck",f.ImageOff="ImageOff",f.Import="Import",f.Inbox="Inbox",f.InfoCircle="InfoCircle",f.InfoHexagon="InfoHexagon",f.Italic="Italic",f.LayersMultiple="LayersMultiple",f.LayersSingle="LayersSingle",f.Layout="Layout",f.Layout2="Layout2",f.LayoutColumns="LayoutColumns",f.LayoutCustom="LayoutCustom",f.LayoutStuffed="LayoutStuffed",f.LayoutTile="LayoutTile",f.LifeBuoy="LifeBuoy",f.Lightbulb="Lightbulb",f.Lightning="Lightning",f.LightningFast="LightningFast",f.LineChart="LineChart",f.LineChartBar="LineChartBar",f.LineChartBreakoutSquare="LineChartBreakoutSquare",f.LineChartUp="LineChartUp",f.Lines="Lines",f.LinesCheck="LinesCheck",f.LinesPlay="LinesPlay",f.Link="Link",f.Link2="Link2",f.LinkOff="LinkOff",f.ListBullet="ListBullet",f.ListOrder="ListOrder",f.Lock="Lock",f.LockFill="LockFill",f.LogIn="LogIn",f.LogOut="LogOut",f.LogOut2="LogOut2",f.MagicWand="MagicWand",f.Mail="Mail",f.MailOpen="MailOpen",f.MapPin="MapPin",f.Maximize="Maximize",f.Maximize2="Maximize2",f.MessageCircle="MessageCircle",f.MessageSquare="MessageSquare",f.MessageSquare2="MessageSquare2",f.MessageXSquare="MessageXSquare",f.Microphone="Microphone",f.Minimize="Minimize",f.Minimize2="Minimize2",f.MinusCircle="MinusCircle",f.Mobile="Mobile",f.Monitor="Monitor",f.Monitor2="Monitor2",f.Moon="Moon",f.MoonCircle="MoonCircle",f.Movie="Movie",f.NavigationPointer="NavigationPointer",f.NotificationBox="NotificationBox",f.Package="Package",f.Palette="Palette",f.PasscodeLock="PasscodeLock",f.Pause="Pause",f.PauseCircle="PauseCircle",f.PCSetup="PCSetup",f.Pen="Pen",f.PercentageCircle="PercentageCircle",f.Perspective="Perspective",f.PhoneCall="PhoneCall",f.PictureInPicture="PictureInPicture",f.Pin="Pin",f.Play="Play",f.PlayCircle="PlayCircle",f.Plus="Plus",f.PlusCircle="PlusCircle",f.Printer="Printer",f.Pulse="Pulse",f.QuestionCircle="QuestionCircle",f.Quote="Quote",f.RadioButton="RadioButton",f.RadioButtonFill="RadioButtonFill",f.Receipt="Receipt",f.ReceiptCheck="ReceiptCheck",f.Redo="Redo",f.Refresh="Refresh",f.Refresh2="Refresh2",f.Refresh3="Refresh3",f.Repeat="Repeat",f.Replace="Replace",f.Replay="Replay",f.Restore="Restore",f.Rocket="Rocket",f.RoundChart="RoundChart",f.RoundChart2="RoundChart2",f.Route="Route",f.Save="Save",f.ScanDots="ScanDots",f.Scissors="Scissors",f.Search="Search",f.Send="Send",f.Server="Server",f.Settings="Settings",f.Settings2="Settings2",f.Share="Share",f.ShieldLightning="ShieldLightning",f.ShieldPlus="ShieldPlus",f.ShieldRemove="ShieldRemove",f.ShoppingBag="ShoppingBag",f.ShoppingCart="ShoppingCart",f.Shrink="Shrink",f.Shuffle="Shuffle",f.SkipForward="SkipForward",f.SlashCircle="SlashCircle",f.SlashOctagon="SlashOctagon",f.SocialAndroid="SocialAndroid",f.SocialApple="SocialApple",f.SocialGithub="SocialGithub",f.SocialGlobe="SocialGlobe",f.SocialGoogle="SocialGoogle",f.SocialInstagram="SocialInstagram",f.SocialLinkedin="SocialLinkedin",f.SocialMastercard="SocialMastercard",f.SocialReact="SocialReact",f.SocialVisa="SocialVisa",f.SocialX="SocialX",f.Speedometer="Speedometer",f.Stairs="Stairs",f.Star="Star",f.StarFill="StarFill",f.StarHalf="StarHalf",f.Stars="Stars",f.Stop="Stop",f.Strikethrough="Strikethrough",f.Sun="Sun",f.Swap="Swap",f.SwitchHorizontal="SwitchHorizontal",f.Table="Table",f.Tag="Tag",f.Target="Target",f.Target2="Target2",f.TextFormat="TextFormat",f.TextFormat2="TextFormat2",f.TextHighlight="TextHighlight",f.ThumbsDown="ThumbsDown",f.ThumbsUp="ThumbsUp",f.ThumbsUpFill="ThumbsUpFill",f.Toggle="Toggle",f.Translate="Translate",f.Trash="Trash",f.Trending="Trending",f.Underline="Underline",f.Undo="Undo",f.Unlock="Unlock",f.UploadCloud="UploadCloud",f.User="User",f.UserCheck="UserCheck",f.UserDollar="UserDollar",f.UserEdit="UserEdit",f.UserPlus="UserPlus",f.UserRight="UserRight",f.Users="Users",f.UserSquare="UserSquare",f.UsersUp="UsersUp",f.UserVoice="UserVoice",f.Video="Video",f.VideoChat="VideoChat",f.Volume="Volume",f.VolumeDown="VolumeDown",f.VolumeMute="VolumeMute",f.Wrench="Wrench",f.X="X",f.XCircle="XCircle",f.XCircleFill="XCircleFill",f.XSquare="XSquare",f.ZoomIn="ZoomIn",f.ZoomOut="ZoomOut",f))(Pt||{});import{jsx as h}from"react/jsx-runtime";function Se({name:e,...t}){switch(e){case"48AlertFeatured":return h(js,{...t});case"48SuccessFeatured":return h(ep,{...t});case"AlertCircle":return h(Uo,{...t});case"AlertOctagon":return h(op,{...t});case"AlertTriangle":return h(rp,{...t});case"ArrowBarDown":return h(ip,{...t});case"ArrowBarLeft":return h(sp,{...t});case"ArrowBarRight":return h(pp,{...t});case"ArrowBarToDown":return h(dp,{...t});case"ArrowBarToLeft":return h(mp,{...t});case"ArrowBarToRight":return h(up,{...t});case"ArrowBarToUp":return h(fp,{...t});case"ArrowBarUp":return h(hp,{...t});case"Apps":return h(ap,{...t});case"Archive":return h(cp,{...t});case"ArrowDown":return h(yp,{...t});case"ArrowDownLeft":return h(vp,{...t});case"ArrowDownNarrow":return h(Ip,{...t});case"ArrowDownRight":return h(Cp,{...t});case"ArrowLeft":return h(xp,{...t});case"ArrowLeftNarrow":return h(wp,{...t});case"ArrowRight":return h(kp,{...t});case"ArrowRightNarrow":return h(Bp,{...t});case"ArrowUp":return h(Rp,{...t});case"ArrowUpLeft":return h(Lp,{...t});case"ArrowUpNarrow":return h(Dp,{...t});case"ArrowUpRight":return h(Fp,{...t});case"Attachment":return h(Ap,{...t});case"BadgeHd":return h(qr,{...t});case"BarChart":return h(Op,{...t});case"BarChartSquare":return h(_p,{...t});case"Bell":return h(Vp,{...t});case"Bold":return h(zp,{...t});case"BookOpen":return h(qp,{...t});case"Bookmark":return h(Hp,{...t});case"BookmarkCheck":return h(qs,{...t});case"BookmarkCheckFill":return h(Xs,{...t});case"BookmarkFill":return h(Up,{...t});case"BookmarkMinus":return h(Gp,{...t});case"BookmarkPlus":return h(Ys,{...t});case"BookmarkX":return h(Wp,{...t});case"BoxLines":return h(Xp,{...t});case"BoxText":return h(Yp,{...t});case"BracketsCheck":return h(Zp,{...t});case"BracketsEllipses":return h(Jp,{...t});case"BrickWall":return h(jp,{...t});case"Briefcase":return h(ed,{...t});case"Building":return h(Qs,{...t});case"Calculator":return h(td,{...t});case"Calendar":return h(Qr,{...t});case"Certificate":return h(od,{...t});case"Check":return h(Ht,{...t});case"CheckCircle":return h(Go,{...t});case"CheckCircleBroken":return h(nd,{...t});case"CheckFill":return h(rd,{...t});case"CheckVerified":return h(ad,{...t});case"CheckVerifiedFill":return h(ld,{...t});case"ChevronDown":return h(Zr,{...t});case"ChevronDownDouble":return h(cd,{...t});case"ChevronDownLeft":return h(id,{...t});case"ChevronDownLeftDouble":return h(sd,{...t});case"ChevronDownRight":return h(pd,{...t});case"ChevronDownRightDouble":return h(dd,{...t});case"ChevronLeft":return h(Ut,{...t});case"ChevronLeftDouble":return h(md,{...t});case"ChevronRight":return h(mt,{...t});case"ChevronRightDouble":return h(Jr,{...t});case"ChevronSelectorVertical":return h(ud,{...t});case"ChevronUp":return h(Gt,{...t});case"ChevronUpDouble":return h(fd,{...t});case"ChevronUpLeft":return h(hd,{...t});case"ChevronUpLeftDouble":return h(gd,{...t});case"ChevronUpRight":return h(yd,{...t});case"ChevronUpRightDouble":return h(vd,{...t});case"Click":return h(bd,{...t});case"Clock":return h(Id,{...t});case"ClockFastForward":return h(Cd,{...t});case"ClockPlay":return h(xd,{...t});case"ClockRewind":return h(Sd,{...t});case"Clone":return h(wd,{...t});case"ClosedCaption":return h(ea,{...t});case"Code":return h(Td,{...t});case"CodeBrowser":return h(Bd,{...t});case"CodeCircle":return h(Rd,{...t});case"Colors":return h(Ed,{...t});case"ColumnEdit":return h(Zs,{...t});case"Copy":return h(Dd,{...t});case"Copy2":return h(Fd,{...t});case"CopyCheck":return h(Od,{...t});case"Files":return h(xm,{...t});case"CreditCard":return h(_d,{...t});case"Cube":return h(Vd,{...t});case"CubeOutline":return h(zd,{...t});case"CursorBox":return h(ta,{...t});case"Dataflow":return h(Hd,{...t});case"Dataflow2":return h(Ud,{...t});case"Dataflow3":return h(Gd,{...t});case"DistributeHorizontal":return h(Wd,{...t});case"Dollar":return h(qd,{...t});case"DollarCircle":return h(Kd,{...t});case"Dot":return h(Yd,{...t});case"DotFill":return h(Qd,{...t});case"DotsGrid":return h(Zd,{...t});case"DotsHorizontal":return h(jd,{...t});case"DotsVertical":return h(Gn,{...t});case"Download":return h(om,{...t});case"Edit":return h(nm,{...t});case"Editable":return h(am,{...t});case"Expand":return h(lm,{...t});case"ExternalLink":return h(im,{...t});case"ExternalLink2":return h(pm,{...t});case"Eye":return h(dm,{...t});case"EyeHidden":return h(um,{...t});case"EyeHidden2":return h(fm,{...t});case"FaceAngry":return h(hm,{...t});case"FaceLaugh":return h(gm,{...t});case"FaceSmile":return h(ym,{...t});case"File":return h(Wo,{...t});case"FileCheck":return h(bm,{...t});case"FileCsv":return h(aa,{...t});case"FileDownload":return h(Im,{...t});case"FileJson":return h(la,{...t});case"FileList":return h(Cm,{...t});case"FileMusic":return h(at,{...t});case"FilePdf":return h(qo,{...t});case"FileSpreadsheet":return h(ia,{...t});case"FileText":return h(Wt,{...t});case"FileUpload":return h(Sm,{...t});case"FileXls":return h(pa,{...t});case"FileXlsx":return h(da,{...t});case"FileZip":return h(Ct,{...t});case"Filter":return h(wm,{...t});case"Filter2":return h(ma,{...t});case"Flag":return h(km,{...t});case"Flag2":return h(Tm,{...t});case"FlagFill":return h(Bm,{...t});case"Focus":return h(Nm,{...t});case"Folder":return h(Rm,{...t});case"FolderExport":return h(Lm,{...t});case"FolderImport":return h(Em,{...t});case"GraduationCap":return h(Dm,{...t});case"GripVertical":return h(Fm,{...t});case"Hand":return h(Am,{...t});case"HandShield":return h(Om,{...t});case"Hash":return h(_m,{...t});case"HeadsetMic":return h(Vm,{...t});case"Heart":return h(zm,{...t});case"HeartFill":return h(Hm,{...t});case"House":return h(Gm,{...t});case"HouseLine":return h(fa,{...t});case"Image":return h(_e,{...t});case"Image2":return h($m,{...t});case"ImageCheck":return h(Wm,{...t});case"ImageOff":return h(qm,{...t});case"Import":return h(Xm,{...t});case"Inbox":return h(Km,{...t});case"InfoCircle":return h(Qm,{...t});case"InfoHexagon":return h(Jm,{...t});case"Italic":return h(eu,{...t});case"LayersMultiple":return h(ou,{...t});case"LayersSingle":return h(nu,{...t});case"Layout":return h(ru,{...t});case"Layout2":return h(lu,{...t});case"LayoutColumns":return h(cu,{...t});case"LayoutCustom":return h(iu,{...t});case"LayoutStuffed":return h(pu,{...t});case"LayoutTile":return h(du,{...t});case"LifeBuoy":return h(mu,{...t});case"Lightbulb":return h(fu,{...t});case"Lightning":return h(hu,{...t});case"LightningFast":return h(gu,{...t});case"LineChartBar":return h(vu,{...t});case"LineChartBreakoutSquare":return h(bu,{...t});case"LineChart":return h(yu,{...t});case"LineChartUp":return h(Cu,{...t});case"Lines":return h(Pu,{...t});case"LinesCheck":return h(xu,{...t});case"LinesPlay":return h(Su,{...t});case"Link":return h(Mu,{...t});case"Link2":return h(ku,{...t});case"LinkOff":return h(Tu,{...t});case"ListBullet":return h(Bu,{...t});case"ListOrder":return h(Nu,{...t});case"Lock":return h(Lu,{...t});case"LockFill":return h(Eu,{...t});case"LogIn":return h(Fu,{...t});case"LogOut":return h(Ou,{...t});case"LogOut2":return h(Vu,{...t});case"MagicWand":return h(zu,{...t});case"Mail":return h(Hu,{...t});case"MailOpen":return h(Uu,{...t});case"MapPin":return h(Gu,{...t});case"Maximize":return h(Ia,{...t});case"Maximize2":return h($u,{...t});case"MessageCircle":return h(Wu,{...t});case"MessageSquare":return h(Xu,{...t});case"MessageSquare2":return h(Ku,{...t});case"MessageXSquare":return h(Yu,{...t});case"Microphone":return h(Pa,{...t});case"Minimize":return h(xa,{...t});case"Minimize2":return h(Qu,{...t});case"MinusCircle":return h(Zu,{...t});case"Mobile":return h(ju,{...t});case"Monitor":return h(ef,{...t});case"Monitor2":return h(tf,{...t});case"Moon":return h(of,{...t});case"MoonCircle":return h(nf,{...t});case"Movie":return h(ut,{...t});case"NavigationPointer":return h(rf,{...t});case"NotificationBox":return h(af,{...t});case"Package":return h(lf,{...t});case"Palette":return h(cf,{...t});case"PasscodeLock":return h(sf,{...t});case"Pause":return h(ft,{...t});case"PauseCircle":return h(df,{...t});case"PCSetup":return h(uf,{...t});case"Pen":return h(hf,{...t});case"PercentageCircle":return h(gf,{...t});case"Perspective":return h(yf,{...t});case"PhoneCall":return h(bf,{...t});case"PictureInPicture":return h(ka,{...t});case"Pin":return h(Ta,{...t});case"Play":return h(ht,{...t});case"PlayCircle":return h(Cf,{...t});case"Plus":return h(Ba,{...t});case"PlusCircle":return h(go,{...t});case"Printer":return h(Sf,{...t});case"Pulse":return h(wf,{...t});case"QuestionCircle":return h(Na,{...t});case"Quote":return h(kf,{...t});case"RadioButton":return h(Tf,{...t});case"RadioButtonFill":return h(Bf,{...t});case"Receipt":return h(Nf,{...t});case"ReceiptCheck":return h(Rf,{...t});case"Redo":return h(Lf,{...t});case"Refresh":return h(Ra,{...t});case"Refresh2":return h(Ef,{...t});case"Refresh3":return h(Df,{...t});case"Repeat":return h(Ff,{...t});case"Replace":return h(Af,{...t});case"Replay":return h(La,{...t});case"Restore":return h(_f,{...t});case"Rocket":return h(zf,{...t});case"RoundChart":return h(Hf,{...t});case"RoundChart2":return h(Uf,{...t});case"Route":return h($f,{...t});case"Save":return h(qf,{...t});case"ScanDots":return h(Xf,{...t});case"Scissors":return h(Ea,{...t});case"Search":return h(qt,{...t});case"Send":return h(Kf,{...t});case"Server":return h(Yf,{...t});case"Settings":return h(Da,{...t});case"Settings2":return h(Qf,{...t});case"Share":return h(Zf,{...t});case"ShieldLightning":return h(Jf,{...t});case"ShieldPlus":return h(eh,{...t});case"ShieldRemove":return h(oh,{...t});case"ShoppingBag":return h(nh,{...t});case"ShoppingCart":return h(rh,{...t});case"Shrink":return h(ah,{...t});case"Shuffle":return h(lh,{...t});case"SkipForward":return h(ch,{...t});case"SlashCircle":return h(ih,{...t});case"SlashOctagon":return h(sh,{...t});case"SocialAndroid":return h(ph,{...t});case"SocialApple":return h(dh,{...t});case"SocialGithub":return h(mh,{...t});case"SocialGlobe":return h(uh,{...t});case"SocialGoogle":return h(fh,{...t});case"SocialInstagram":return h(gh,{...t});case"SocialLinkedin":return h(yh,{...t});case"SocialMastercard":return h(bh,{...t});case"SocialReact":return h(Ih,{...t});case"SocialVisa":return h(Ch,{...t});case"SocialX":return h(Ph,{...t});case"Speedometer":return h(Va,{...t});case"Stairs":return h(xh,{...t});case"Star":return h(za,{...t});case"StarFill":return h(Sh,{...t});case"StarHalf":return h(wh,{...t});case"Stars":return h(Mh,{...t});case"Stop":return h(Ha,{...t});case"Strikethrough":return h(kh,{...t});case"Sun":return h(Th,{...t});case"Swap":return h(Bh,{...t});case"SwitchHorizontal":return h(Nh,{...t});case"Table":return h(Lh,{...t});case"Tag":return h(Ua,{...t});case"Target":return h(Eh,{...t});case"Target2":return h(Fh,{...t});case"TextFormat":return h(Oh,{...t});case"TextFormat2":return h(_h,{...t});case"TextHighlight":return h(Vh,{...t});case"ThumbsDown":return h(zh,{...t});case"ThumbsUp":return h(Hh,{...t});case"ThumbsUpFill":return h(Uh,{...t});case"Toggle":return h(Gh,{...t});case"Translate":return h($h,{...t});case"Trash":return h(lt,{...t});case"Trending":return h(Wh,{...t});case"Underline":return h(qh,{...t});case"Undo":return h(Xh,{...t});case"Unlock":return h(Yh,{...t});case"UploadCloud":return h(Yo,{...t});case"User":return h($a,{...t});case"UserCheck":return h(Jh,{...t});case"UserDollar":return h(jh,{...t});case"UserEdit":return h(t0,{...t});case"UserPlus":return h(o0,{...t});case"UserRight":return h(n0,{...t});case"UserSquare":return h(l0,{...t});case"Users":return h(r0,{...t});case"UsersUp":return h(c0,{...t});case"UserVoice":return h(Js,{...t});case"Video":return h(i0,{...t});case"VideoChat":return h(p0,{...t});case"Volume":return h(qa,{...t});case"VolumeDown":return h(Xa,{...t});case"VolumeMute":return h(Ka,{...t});case"Wrench":return h(m0,{...t});case"X":return h(He,{...t});case"XCircle":return h(u0,{...t});case"XCircleFill":return h(f0,{...t});case"XSquare":return h(h0,{...t});case"ZoomIn":return h(g0,{...t});case"ZoomOut":return h(v0,{...t});default:return null}}var Nv=Wo,Rv={png:_e,jpg:_e,jpeg:_e,gif:_e,bmp:_e,webp:_e,svg:_e,avif:_e,heic:_e,ico:_e,tif:_e,tiff:_e,mp4:ut,mov:ut,webm:ut,avi:ut,mkv:ut,m4v:ut,ogv:ut,mp3:at,wav:at,ogg:at,oga:at,m4a:at,aac:at,flac:at,weba:at,pdf:qo,doc:Wt,docx:Wt,txt:Wt,rtf:Wt,odt:Wt,json:la,csv:aa,xls:pa,xlsx:da,ods:ia,zip:Ct,rar:Ct,"7z":Ct,tar:Ct,gz:Ct,tgz:Ct};var b0=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&Rv[t]||Nv};import{cn as I0,ColorHelpers as Bk}from"@cleen/ui-core";import{forwardRef as Nk}from"react";import{Fragment as Lk,jsx as Ya,jsxs as Ek}from"react/jsx-runtime";var Rk=Nk(function({iconName:t,iconSrc:o,icon:n,iconSize:l=20,header:r,color:c,children:i,classNames:s,styles:p,...d},g){let m=Bk.getComputedColor(c);return Ya(he,{ref:g,classNames:{...s,header:{...s?.header,title:I0("cleen-flex cleen-gap-4",s?.header?.title)}},header:{...r,title:Ek(Lk,{children:[Ya("div",{className:I0("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",s?.iconHolder),style:{...m&&{backgroundColor:Ur(m,.85),color:m,borderColor:"transparent"},...p?.iconHolder},children:n||(t?Ya(Se,{name:t,className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):o?Ya("img",{src:o,alt:"Icon",className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):null)}),r?.title]})},color:c,...d,children:i&&Ya("div",{className:I0("cleen-flex-1",s?.content),style:p?.content,children:i})})});import{cn as nr}from"@cleen/ui-core";import{forwardRef as Dk,useMemo as Fk}from"react";import{jsx as Qa}from"react/jsx-runtime";var Ak=Dk(function({media:t,header:o,color:n,children:l,classNames:r,styles:c,...i},s){let p=Fk(()=>{switch(t?.type){case"image":return Qa("img",{...t,alt:t.alt??"Card media",className:nr("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:c?.media?.content});case"video":return Qa("video",{playsInline:!0,controls:!0,...t,className:nr("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:c?.media?.content});case"iframe":return Qa("iframe",{...t,title:t.title??"Card iframe",className:nr("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:c?.media?.content});default:return null}},[t,r?.media,c?.media]);return Qa(he,{ref:s,color:n,classNames:{...r,container:nr("cleen-pt-0",r?.container),header:{...r?.header,content:nr("cleen-p-0",r?.header?.content)}},header:{...o,...p&&{content:Qa("div",{className:nr("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",r?.media?.container),style:c?.media?.container,children:p})}},...i,children:l})});import{cn as Za}from"@cleen/ui-core";import{jsx as jc,jsxs as Ok}from"react/jsx-runtime";var ne=({className:e,classNames:t,style:o,styles:n,infoMessage:l,errorMessage:r,subtitle:c,...i})=>jc("div",{className:Za("cleen",e),style:o,children:Ok("div",{className:Za(t?.container),style:n?.container,...i,children:[l&&jc("div",{className:Za("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:n?.infoMessage,role:"note",children:l}),r&&jc("div",{className:Za("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:n?.errorMessage,role:"alert",children:r}),c&&jc("div",{className:Za("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:n?.subtitle,children:c})]})});import{cn as Ja}from"@cleen/ui-core";import{jsx as ja,jsxs as _k}from"react/jsx-runtime";var ae=({required:e=!1,tooltip:t,children:o,className:n,classNames:l,style:r,styles:c,...i})=>ja("div",{className:Ja("cleen",n),style:r,children:_k("label",{...i,className:Ja("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:[ja("div",{className:Ja({"cleen-flex-1":!e&&!t},l?.label),style:c?.label,children:o}),e&&ja("span",{className:Ja("cleen-text-primary",l?.required),style:c?.required,children:"*"}),t&&ja(Ie,{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:ja(Na,{className:Ja("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 Kt}from"@cleen/ui-core";import{forwardRef as Vk,useEffect as zk,useId as Hk,useMemo as Uk,useState as Lv}from"react";import{jsx as bo,jsxs as ei}from"react/jsx-runtime";var ye=Vk(function({name:t,id:o,type:n,label:l,labelTooltip:r,defaultValue:c,value:i,files:s,disabled:p,required:d,className:g,classNames:m,style:v,styles:y,autoComplete:u="off",isFocusedBorder:b,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,uploadLabel:P="Choose a file",leftIcon:k,rightIcon:F,topRightIcon:T,inputOverlay:B,infoLabels:L,maxLengthLabel:M,minLengthLabel:S,onChange:w,...E},R){let D=i!==void 0||s!==void 0,[z,N]=Lv(c??""),[A,_]=Lv(null),U=D?i:z,O=D?s:A;zk(()=>{D||N(i??c??"")},[i,c,D]);let $=H=>{let q=H.target.value;if(n==="file"&&H.target.files){D||_(H.target.files),w?.(H);return}(!C||q.length<=C)&&(D||N(q),w?.(H))},Q=Uk(()=>x&&S&&(U?.toString()?.length??0)<x?S(x-(U?.toString()?.length??0)):!C||!M||(U?.toString()?.length??0)/C<I?L?.subtitle:M?.(C-(U?.toString()?.length??0)),[U,C,I,L?.subtitle]),G=Hk(),V=!!(L?.errorMessage||L?.infoMessage||Q),X=V?`${G}-info`:void 0;return bo("div",{className:Kt("cleen",g),style:v,children:ei("div",{className:Kt("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-normal",m?.container),style:y?.container,children:[(l||T)&&ei("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[bo(ae,{htmlFor:o||t,required:d,tooltip:r,className:Kt("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...y?.label,children:l}),T]}),ei("label",{className:Kt("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":b},p&&"cleen-bg-muted",{"cleen-cursor-pointer":n==="file"&&!p},L?.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"],m?.inputContainer),style:y?.inputContainer,children:[k&&bo("div",{className:Kt("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",m?.leftIconContainer),style:y?.leftIconContainer,children:k}),ei("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[bo("input",{id:o||t,name:t,type:n,disabled:p,maxLength:C,autoComplete:u,value:U,className:Kt("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",k?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":k,"cleen-rounded-r-none":F,"cleen-hidden":n==="file"},p?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:y?.input,onChange:$,required:d,"aria-invalid":L?.errorMessage?!0:void 0,"aria-describedby":X,ref:R,...E}),B&&bo("div",{className:Kt("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",k?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",m?.inputOverlay),style:y?.inputOverlay,children:B}),n==="file"&&bo("p",{className:Kt("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",p?"cleen-text-neutral-400":"cleen-text-muted-foreground",O&&O.length>0&&"cleen-text-foreground"),children:O&&O.length>0?Array.from(O).map(H=>H.name).join(", "):P})]}),F&&bo("div",{className:Kt("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",m?.rightIconContainer),style:y?.rightIconContainer,children:F})]}),V&&bo(ne,{id:X,...L,subtitle:Q})]})})});import{cn as el,useOutsideClick as Gk}from"@cleen/ui-core";import{forwardRef as $k,useEffect as Ev,useImperativeHandle as Wk,useMemo as qk,useRef as Xk,useState as ti}from"react";import{jsx as tl,jsxs as Kk}from"react/jsx-runtime";var C0=$k(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:l,onIsEditingChange:r,placeholder:c,placeholderText:i,canEdit:s=!0,onSave:p,onCancel:d,onChange:g,inputProps:m,blurOnOutsideClick:v=!0,saveOnBlur:y=!0,isLoading:u,customLoader:b=tl(re,{}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:k,styles:F,...T},B){let L=t!==void 0,[M,S]=ti(o??""),w=L?t??"":M,[E,R]=ti(!1),D=u??E,z=qk(()=>typeof x=="function"?x(w):x||w||i||c,[w,x,c,i]),[N,A]=ti(n),_=l!==void 0,U=_?l:N,[O,$]=ti(w),Q=Xk(null);Wk(B,()=>({...Q.current,save:V,cancel:G})),Ev(()=>{L||S(o??"")},[o,L]),Ev(()=>{U||$(w)},[w,U]);let G=async()=>{_||A(!1),r?.(!1),$(w),await d?.()},V=async()=>{if(!D){if(w===O){await d?.(),_||A(!1),r?.(!1);return}R(!0),L||S(O);try{await p?.(O),_||A(!1),r?.(!1)}finally{R(!1)}}},X=async H=>{H.key==="Enter"&&(H.preventDefault(),await V()),H.key==="Escape"&&(H.stopPropagation(),H.preventDefault(),await G()),m?.onKeyDown?.(H)};return Gk({refs:[Q],enabled:v&&U,handler:async()=>{y?await V():await G()}}),tl("div",{className:el("cleen",I),style:k,ref:Q,...T,children:U?Kk("div",{className:el("cleen-relative cleen-h-full",P?.container),style:F?.container,children:[tl(ye,{value:O,onChange:H=>{$(H.target.value),g?.(H.target.value)},autoFocus:!0,placeholder:c,className:P?.input?.className,classNames:{...P?.input?.classNames,inputContainer:el("cleen-border-primary hover:cleen-border-primary/60",P?.input?.classNames?.inputContainer)},...F?.input,...m,onFocus:H=>{m?.onFocus?.(H),C&&H.target.select()},disabled:D||m?.disabled,onKeyDown:X}),D&&tl("div",{className:el("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:F?.loaderContainer,children:b})]}):tl("div",{onClick:()=>{s&&(_||A(!0),r?.(!0))},className:el("cleen-min-h-6 cleen-text-foreground",s&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!w&&"cleen-text-muted-foreground",P?.preview),style:F?.preview,children:z})})});import{cn as rr}from"@cleen/ui-core";import{forwardRef as Yk,useEffect as Dv,useId as Qk,useMemo as Zk,useRef as Jk,useState as jk}from"react";import{jsx as Qo,jsxs as P0}from"react/jsx-runtime";var x0=Yk(function({name:t,id:o,value:n,defaultValue:l,label:r,labelTooltip:c,disabled:i,required:s,infoLabels:p,topRightElement:d,labelRightElement:g,textareaOverlay:m,onChange:v,minHeight:y,maxHeight:u=200,autoResize:b=!0,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,maxLengthLabel:P,minLengthLabel:k,className:F,classNames:T,style:B,styles:L,...M},S){let w=n!==void 0,[E,R]=jk(typeof l=="string"?l:""),D=Jk(null),z=S??D,N=w?n:E;Dv(()=>{w||R(n??(typeof l=="string"?l:""))},[n,l,w]);let A=H=>{H.style.height="auto";let q=Math.min(H.scrollHeight,u);H.style.height=`${q}px`},_=H=>{A(H.target)};Dv(()=>{!b||!D.current||A(D.current)},[b,N,u]);let U=H=>{H.preventDefault()},O=H=>{H.preventDefault();let q=H.dataTransfer?.getData("text/plain");w?v?.(`${n??""}${q}`):(R(pe=>`${pe}${q}`),v?.(`${E}${q}`))},$=H=>{let q=H.target.value;(!C||q.length<=C)&&(w||R(q),v?.(q),b&&_(H))},Q=Zk(()=>x&&k&&(N?.length??0)<x?k(x-(N?.length??0)):!C||!P||(N?.toString()?.length??0)/C<I?p?.subtitle:P?.(C-(N?.toString()?.length??0)),[N,C,I,p?.subtitle]),G=Qk(),V=!!(p?.errorMessage||p?.infoMessage||Q),X=V?`${G}-info`:void 0;return Qo("div",{className:rr("cleen",F),style:B,children:P0("div",{className:rr("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",T?.container),style:L?.container,children:[(r||g)&&P0("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[r&&Qo(ae,{htmlFor:o||t,required:s,tooltip:c,className:rr("cleen-w-full",T?.label?.className),classNames:T?.label?.classNames,...L?.label,children:r}),g&&Qo("div",{className:"cleen-ml-auto",children:g})]}),P0("div",{className:rr("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",T?.textareaContainer),style:L?.textareaContainer,children:[d&&Qo("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:d}),m&&Qo("div",{className:rr("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}),Qo("textarea",{id:o||t,name:t,ref:z,disabled:i,value:N,minLength:x,maxLength:C,"aria-invalid":p?.errorMessage?!0:void 0,"aria-describedby":X,className:rr("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",T?.textarea),style:{...y&&{minHeight:`${y}px`},...L?.textarea},onFocus:H=>H.currentTarget.setSelectionRange(H.currentTarget.value.length,H.currentTarget.value.length),onDragOver:U,onDrop:O,...M,onChange:$})]}),V&&Qo(ne,{id:X,...p,subtitle:Q})]})})});import{cn as ol,useOutsideClick as e3}from"@cleen/ui-core";import{forwardRef as t3,useEffect as Fv,useImperativeHandle as o3,useMemo as n3,useRef as r3,useState as oi}from"react";import{jsx as nl,jsxs as a3}from"react/jsx-runtime";var S0=t3(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:l,onIsEditingChange:r,placeholder:c,placeholderText:i,canEdit:s=!0,onSave:p,onCancel:d,onChange:g,textAreaProps:m,blurOnOutsideClick:v=!0,saveOnBlur:y=!0,isLoading:u,customLoader:b=nl(re,{size:"md"}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:k,styles:F,...T},B){let L=t!==void 0,[M,S]=oi(o??""),w=L?t??"":M,[E,R]=oi(!1),D=u??E,z=n3(()=>typeof x=="function"?x(w):x||w||i||c,[w,x,c,i]),[N,A]=oi(n),_=l!==void 0,U=_?l:N,[O,$]=oi(w),Q=r3(null);o3(B,()=>({...Q.current,save:V,cancel:G})),Fv(()=>{L||S(o??"")},[o,L]),Fv(()=>{U||$(w)},[w,U]);let G=async()=>{_||A(!1),r?.(!1),$(w),await d?.()},V=async()=>{if(!D){if(w===O){await d?.(),_||A(!1),r?.(!1);return}R(!0),L||S(O);try{await p?.(O),_||A(!1),r?.(!1)}finally{R(!1)}}},X=async H=>{H.key==="Escape"&&(H.preventDefault(),H.stopPropagation(),await G()),H.key==="Enter"&&(H.metaKey||H.ctrlKey)&&(H.preventDefault(),await V()),m?.onKeyDown?.(H)};return e3({refs:[Q],enabled:v&&U,handler:async()=>{y?await V():await G()}}),nl("div",{className:ol("cleen",I),style:k,ref:Q,...T,children:U?a3("div",{className:ol("cleen-relative cleen-h-full",P?.container),style:F?.container,children:[nl(x0,{value:O,onChange:H=>{$(H),g?.(H)},autoFocus:!0,placeholder:c,className:P?.textArea?.className,classNames:{...P?.textArea?.classNames,textareaContainer:ol("cleen-border-primary hover:cleen-border-primary/60",P?.textArea?.classNames?.textareaContainer)},...F?.textArea,...m,onFocus:H=>{m?.onFocus?.(H),C&&H.target.select()},disabled:D||m?.disabled,onKeyDown:X}),D&&nl("div",{className:ol("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:F?.loaderContainer,children:b})]}):nl("div",{onClick:()=>{s&&(_||A(!0),r?.(!0))},className:ol("cleen-min-h-6 cleen-text-foreground cleen-whitespace-pre-wrap",s&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!w&&"cleen-text-muted-foreground",P?.preview),style:F?.preview,children:z})})});import"@cleen/ui-core";import{forwardRef as l3}from"react";import{Fragment as i3,jsx as w0,jsxs as s3}from"react/jsx-runtime";var c3=l3(function({header:t,color:o,children:n,description:l,onSave:r,isDescriptionHidden:c=!1,titleProps:i,descriptionProps:s,classNames:p,styles:d,...g},m){let v=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return w0(he,{ref:m,color:o,header:{...t,title:w0(C0,{value:v??"",onSave:async y=>{await r?.("title",y)},...p?.titleTextInput,...d?.titleTextInput,...i})},classNames:p,styles:d,...g,children:(!c||n)&&s3(i3,{children:[w0(S0,{value:l??"",onSave:async y=>{await r?.("description",y)},...s,textAreaProps:s?.textAreaProps,...p?.descriptionTextInput,...d?.descriptionTextInput}),n]})})});import{cn as rl}from"@cleen/ui-core";import{forwardRef as p3}from"react";import{jsx as ni}from"react/jsx-runtime";var d3=p3(function({type:t="button",label:o,onClick:n,containerRef:l,className:r,classNames:c,style:i,styles:s,disabled:p=!1,loaderOptions:d,isLoading:g=!1,variant:m="primary",children:v,...y},u){return ni("div",{className:rl("cleen",r),style:i,ref:l,children:ni("button",{type:t,ref:u,disabled:g||p,onClick:n,className:rl("cleen-size-full",c?.container),style:s?.container,...y,children:ni(he,{p:0,className:rl("cleen-size-full cleen-group",c?.card?.className),classNames:{...c?.card?.classNames,container:rl("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",jg[m],c?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":p||g}),childrenContainer:rl("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",c?.card?.classNames?.childrenContainer)},"aria-disabled":p||g,...s?.card,children:g?ni(re,{size:"lg",...d,color:d?.color||e2[m],...c?.loader,...s?.loader}):o||v})})})});import{cn as al,ColorHelpers as Av,formatAudioTime as Ov}from"@cleen/ui-core";import{useWavesurfer as m3}from"@wavesurfer/react";import{forwardRef as u3,useCallback as f3,useRef as h3}from"react";import{jsx as ll,jsxs as _v}from"react/jsx-runtime";var g3={waveColor:Av.getComputedColor("var(--cleen-neutral-200)"),progressColor:Av.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},y3=u3(function({url:t,options:o,className:n,classNames:l,style:r,styles:c,...i},s){let p=h3(null),{wavesurfer:d,isPlaying:g,isReady:m,currentTime:v}=m3({...g3,...o,container:p,url:t}),y=m?d?.getDuration()??0:0,u=f3(()=>{d?.playPause()},[d]);return ll("div",{ref:s,className:al("cleen",n),style:r,...i,children:_v("div",{className:al("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:[ll(ee,{type:"button",onClick:u,disabled:!m,"aria-label":g?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:al("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...c?.playButton,children:g?ll(ft,{className:"cleen-fill-current"}):ll(ht,{className:"cleen-fill-current"})}),ll("div",{ref:p,className:al("cleen-flex-1 cleen-min-w-0",l?.waveform),style:c?.waveform}),_v("span",{className:al("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",l?.timestamp),style:c?.timestamp,children:[Ov(v),"\xA0/\xA0",Ov(y)]})]})})});import{ColorHelpers as v3}from"@cleen/ui-core";var Vv=v3.getComputedColor("var(--cleen-primary)"),zv="rgba(var(--cleen-primary), 0.15)",Hv={waveColor:Vv,progressColor:Vv,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var Uv={startRecording:"Click to start recording"};import{cn as je,formatAudioTime as di,trimBlob as I3}from"@cleen/ui-core";import{useWavesurfer as C3}from"@wavesurfer/react";import{forwardRef as P3,useCallback as lr,useEffect as R0,useMemo as x3,useRef as Wv,useState as mi}from"react";function M0(e,t,o,n){return new(o||(o=Promise))((function(l,r){function c(p){try{s(n.next(p))}catch(d){r(d)}}function i(p){try{s(n.throw(p))}catch(d){r(d)}}function s(p){var d;p.done?l(p.value):(d=p.value,d instanceof o?d:new o((function(g){g(d)}))).then(c,i)}s((n=n.apply(e,t||[])).next())}))}var ri=class{constructor(){this.listeners={}}on(t,o,n){if(this.listeners[t]||(this.listeners[t]=new Set),n?.once){let l=(...r)=>{this.un(t,l),o(...r)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(o),()=>this.un(t,o)}un(t,o){var n;(n=this.listeners[t])===null||n===void 0||n.delete(o)}once(t,o){return this.on(t,o,{once:!0})}unAll(){this.listeners={}}emit(t,...o){this.listeners[t]&&this.listeners[t].forEach((n=>n(...o)))}},T0=class extends ri{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}},B0=class extends ri{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()}},k0=100,b3=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],ai=class e extends T0{constructor(t){var o,n,l,r,c,i;super(Object.assign(Object.assign({},t),{audioBitsPerSecond:(o=t.audioBitsPerSecond)!==null&&o!==void 0?o:128e3,scrollingWaveform:(n=t.scrollingWaveform)!==null&&n!==void 0&&n,scrollingWaveformWindow:(l=t.scrollingWaveformWindow)!==null&&l!==void 0?l:5,continuousWaveform:(r=t.continuousWaveform)!==null&&r!==void 0&&r,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 B0,this.subscriptions.push(this.timer.on("tick",(()=>{let s=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+s,this.emit("record-progress",this.duration)})))}static create(t){return new e(t||{})}renderMicStream(t){var o;let n=new AudioContext,l=n.createMediaStreamSource(t),r=n.createAnalyser();l.connect(r),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(r.fftSize=32);let c=r.frequencyBinCount,i=new Float32Array(c),s=0;this.wavesurfer&&((o=this.originalOptions)!==null&&o!==void 0||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let p=setInterval((()=>{var d,g,m,v;if(!this.isWaveformPaused){if(r.getFloatTimeDomainData(i),this.options.scrollingWaveform){let y=Math.floor((this.options.scrollingWaveformWindow||0)*k0),u=0;for(let C=0;C<c;C++){let x=Math.abs(i[C]);x>u&&(u=x)}this.dataWindow||(this.dataWindow=new Float32Array(y));let b=new Float32Array(y);if(this.dataWindow&&this.dataWindow.length>0){let C=y-1,x=this.dataWindow.slice(-C);b.set(x,0)}b[y-1]=u,this.dataWindow=b}else if(this.options.continuousWaveform){if(!this.dataWindow){let u=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*k0):((g=(d=this.wavesurfer)===null||d===void 0?void 0:d.getWidth())!==null&&g!==void 0?g:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(u)}let y=0;for(let u=0;u<c;u++){let b=Math.abs(i[u]);b>y&&(y=b)}if(s+1>this.dataWindow.length){let u=new Float32Array(2*this.dataWindow.length);u.set(this.dataWindow,0),this.dataWindow=u}this.dataWindow[s]=y,s++}else this.dataWindow=i;if(this.wavesurfer){let y=((v=(m=this.dataWindow)===null||m===void 0?void 0:m.length)!==null&&v!==void 0?v:0)/k0;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:y).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))})).catch((u=>{console.error("Error rendering real-time recording data:",u)}))}}}),10);return{onDestroy:()=>{clearInterval(p),l?.disconnect(),n?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return M0(this,void 0,void 0,(function*(){let o;this.micStream&&this.stopMic();try{o=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(l){throw new Error("Error accessing the microphone: "+l.message)}let n=this.renderMicStream(o);return this.micStream=n,this.unsubscribeDestroy=this.once("destroy",n.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",n.onEnd),this.stream=o,o}))}stopMic(){var t,o,n;(t=this.micStream)===null||t===void 0||t.onDestroy(),(o=this.unsubscribeDestroy)===null||o===void 0||o.call(this),(n=this.unsubscribeRecordEnd)===null||n===void 0||n.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((l=>l.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(t){return M0(this,void 0,void 0,(function*(){let o=this.stream||(yield this.startMic(t));this.dataWindow=null;let n=this.mediaRecorder||new MediaRecorder(o,{mimeType:this.options.mimeType||b3.find((c=>MediaRecorder.isTypeSupported(c))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=n,this.stopRecording();let l=[];n.ondataavailable=c=>{c.data.size>0&&l.push(c.data),this.emit("record-data-available",c.data)};let r=c=>{var i;let s=new Blob(l,{type:n.mimeType});this.emit(c,s),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(s),(i=this.wavesurfer)===null||i===void 0||i.load(this.recordedBlobUrl))};n.onpause=()=>r("record-pause"),n.onstop=()=>r("record-end"),n.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit("record-start")}))}getDuration(){return this.duration}isRecording(){var 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,o;this.isRecording()&&(this.isWaveformPaused=!0,(t=this.mediaRecorder)===null||t===void 0||t.requestData(),(o=this.mediaRecorder)===null||o===void 0||o.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 M0(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((t=>t.filter((o=>o.kind==="audioinput"))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}};var ii=class{constructor(){this.listeners={}}on(t,o,n){if(this.listeners[t]||(this.listeners[t]=new Set),n?.once){let l=(...r)=>{this.un(t,l),o(...r)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(o),()=>this.un(t,o)}un(t,o){var n;(n=this.listeners[t])===null||n===void 0||n.delete(o)}once(t,o){return this.on(t,o,{once:!0})}unAll(){this.listeners={}}emit(t,...o){this.listeners[t]&&this.listeners[t].forEach((n=>n(...o)))}},N0=class extends ii{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 Gv(e,t){let o=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[n,l]of Object.entries(t))if(n==="children"&&l)for(let[r,c]of Object.entries(l))c instanceof Node?o.appendChild(c):typeof c=="string"?o.appendChild(document.createTextNode(c)):o.appendChild(Gv(r,c));else n==="style"?Object.assign(o.style,l):n==="textContent"?o.textContent=l:o.setAttribute(n,l.toString());return o}function cl(e,t,o){let n=Gv(e,t||{});return o?.appendChild(n),n}function $v(e){let t=e,o=new Set;return{get value(){return t},set(n){Object.is(t,n)||(t=n,o.forEach((l=>l(t))))},update(n){this.set(n(t))},subscribe:n=>(o.add(n),()=>o.delete(n))}}function li(e,t){let o,n=()=>{o&&(o(),o=void 0),o=e()},l=t.map((r=>r.subscribe(n)));return n(),()=>{o&&(o(),o=void 0),l.forEach((r=>r()))}}function ar(e,t){let o=$v(null),n=l=>{o.set(l)};return e.addEventListener(t,n),o._cleanup=()=>{e.removeEventListener(t,n)},o}function Zo(e){let t=e._cleanup;typeof t=="function"&&t()}function ci(e,t={}){let{threshold:o=3,mouseButton:n=0,touchDelay:l=100}=t,r=$v(null),c=new Map,i=matchMedia("(pointer: coarse)").matches,s=()=>{},p=d=>{if(d.button!==n||(c.set(d.pointerId,d),c.size>1))return;let g=d.clientX,m=d.clientY,v=!1,y=Date.now(),u=e.getBoundingClientRect(),{left:b,top:C}=u,x=T=>{if(T.defaultPrevented||c.size>1||i&&Date.now()-y<l)return;let B=T.clientX,L=T.clientY,M=B-g,S=L-m;(v||Math.abs(M)>o||Math.abs(S)>o)&&(T.preventDefault(),T.stopPropagation(),v||(r.set({type:"start",x:g-b,y:m-C}),v=!0),r.set({type:"move",x:B-b,y:L-C,deltaX:M,deltaY:S}),g=B,m=L)},I=T=>{if(c.delete(T.pointerId),v){let B=T.clientX,L=T.clientY;r.set({type:"end",x:B-b,y:L-C})}s()},P=T=>{c.delete(T.pointerId),T.relatedTarget&&T.relatedTarget!==document.documentElement||I(T)},k=T=>{v&&(T.stopPropagation(),T.preventDefault())},F=T=>{T.defaultPrevented||c.size>1||v&&T.preventDefault()};document.addEventListener("pointermove",x),document.addEventListener("pointerup",I),document.addEventListener("pointerout",P),document.addEventListener("pointercancel",P),document.addEventListener("touchmove",F,{passive:!1}),document.addEventListener("click",k,{capture:!0}),s=()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",P),document.removeEventListener("pointercancel",P),document.removeEventListener("touchmove",F),setTimeout((()=>{document.removeEventListener("click",k,{capture:!0})}),10)}};return e.addEventListener("pointerdown",p),{signal:r,cleanup:()=>{s(),e.removeEventListener("pointerdown",p),c.clear(),Zo(r)}}}var si=class extends ii{constructor(t,o,n=0){var l,r,c,i,s,p,d,g,m,v;super(),this.totalDuration=o,this.numberOfChannels=n,this.element=null,this.minLength=0,this.maxLength=1/0,this.contentEditable=!1,this.subscriptions=[],this.updatingSide=void 0,this.isRemoved=!1,this.subscriptions=[],this.id=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=(r=t.drag)===null||r===void 0||r,this.resize=(c=t.resize)===null||c===void 0||c,this.resizeStart=(i=t.resizeStart)===null||i===void 0||i,this.resizeEnd=(s=t.resizeEnd)===null||s===void 0||s,this.color=(p=t.color)!==null&&p!==void 0?p:"rgba(0, 0, 0, 0.1)",this.minLength=(d=t.minLength)!==null&&d!==void 0?d: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=(v=t.contentEditable)!==null&&v!==void 0?v: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 o=this.start===this.end;(t=this.element)===null||t===void 0||t.setAttribute("part",`${o?"marker":"region"} ${this.id}`)}addResizeHandles(t){let o={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},n=cl("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},o),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},t),l=cl("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},o),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},t),r=ci(n,{threshold:1}),c=ci(l,{threshold:1}),i=li((()=>{let p=r.signal.value;p&&(p.type==="move"&&p.deltaX!==void 0?this.onResize(p.deltaX,"start"):p.type==="end"&&this.onEndResizing("start"))}),[r.signal]),s=li((()=>{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(),s(),r.cleanup(),c.cleanup()}))}removeResizeHandles(t){let o=t.querySelector('[part*="region-handle-left"]'),n=t.querySelector('[part*="region-handle-right"]');o&&t.removeChild(o),n&&t.removeChild(n)}initElement(){if(this.isRemoved)return null;let t=this.start===this.end,o=0,n=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(n=100/this.numberOfChannels,o=n*this.channelIdx);let l=cl("div",{style:{position:"absolute",top:`${o}%`,height:`${n}%`,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,o=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*t+"%",this.element.style.right=100*o+"%"}toggleCursor(t){var o;this.drag&&(!((o=this.element)===null||o===void 0)&&o.style)&&(this.element.style.cursor=t?"grabbing":"grab")}initMouseEvents(){let{element:t}=this;if(!t)return;let o=ar(t,"click"),n=ar(t,"mouseenter"),l=ar(t,"mouseleave"),r=ar(t,"dblclick"),c=ar(t,"pointerdown"),i=ar(t,"pointerup"),s=o.subscribe((b=>b&&this.emit("click",b))),p=n.subscribe((b=>b&&this.emit("over",b))),d=l.subscribe((b=>b&&this.emit("leave",b))),g=r.subscribe((b=>b&&this.emit("dblclick",b))),m=c.subscribe((b=>b&&this.toggleCursor(!0))),v=i.subscribe((b=>b&&this.toggleCursor(!1)));this.subscriptions.push((()=>{s(),p(),d(),g(),m(),v(),Zo(o),Zo(n),Zo(l),Zo(r),Zo(c),Zo(i)}));let y=ci(t),u=li((()=>{let b=y.signal.value;b&&(b.type==="start"?this.toggleCursor(!0):b.type==="move"&&b.deltaX!==void 0?this.onMove(b.deltaX):b.type==="end"&&(this.toggleCursor(!1),this.drag&&this.emit("update-end")))}),[y.signal]);this.subscriptions.push((()=>{u(),y.cleanup()})),this.contentEditable&&this.content&&(this.contentClickListener=b=>this.onContentClick(b),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener))}_onUpdate(t,o,n){var l;if(!(!((l=this.element)===null||l===void 0)&&l.parentElement))return;let{width:r}=this.element.parentElement.getBoundingClientRect(),c=t/r*this.totalDuration,i=o&&o!=="start"?this.start:this.start+c,s=o&&o!=="end"?this.end:this.end+c,p=n!==void 0;p&&this.updatingSide&&this.updatingSide!==o&&(this.updatingSide==="start"?i=n:s=n),i=Math.max(0,i),s=Math.min(this.totalDuration,s);let d=s-i;this.updatingSide=o;let g=d>=this.minLength&&d<=this.maxLength;i<=s&&(g||p)&&(this.start=i,this.end=s,this.renderPosition(),this.emit("update",o))}onMove(t){this.drag&&this._onUpdate(t)}onResize(t,o){this.resize&&(this.resizeStart||o!=="start")&&(this.resizeEnd||o!=="end")&&this._onUpdate(t,o)}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 o;return t?this.content||void 0:this.element instanceof HTMLElement?((o=this.content)===null||o===void 0?void 0:o.innerHTML)||void 0:""}setContent(t){var o;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(o=this.content)===null||o===void 0||o.remove(),t){if(typeof t=="string"){let n=this.start===this.end;this.content=cl("div",{style:{padding:`0.2em ${n?.2:.4}em`,display:"inline-block"},textContent:t})}else this.content=t;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=n=>this.onContentClick(n),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener)),this.content.setAttribute("part","region-content"),this.element.appendChild(this.content),this.emit("content-changed")}else this.content=void 0}setOptions(t){var o,n;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((o=t.start)!==null&&o!==void 0?o:this.start),this.end=this.clampPosition((n=t.end)!==null&&n!==void 0?n: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()}},pi=class e extends N0{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",(o=>{this.regions.forEach((n=>n._setTotalDuration(o)))})));let t=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(o=>{let n=this.regions.filter((l=>l.start<=o&&(l.end===l.start?l.start+.05:l.end)>=o));n.forEach((l=>{t.includes(l)||this.emit("region-in",l)})),t.forEach((l=>{n.includes(l)||this.emit("region-out",l)})),t=n})))}initRegionsContainer(){return cl("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 o=t.content,n=o.getBoundingClientRect(),l=this.regions.map((r=>{if(r===t||!r.content)return 0;let c=r.content.getBoundingClientRect();return n.left<c.left+c.width&&c.left<n.left+n.width?c.height:0})).reduce(((r,c)=>r+c),0);o.style.marginTop=`${l}px`}),10)}adjustScroll(t){var o,n;if(!t.element)return;let l=(n=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper())===null||n===void 0?void 0:n.parentElement;if(!l)return;let{clientWidth:r,scrollWidth:c}=l;if(c<=r)return;let i=l.getBoundingClientRect(),s=t.element.getBoundingClientRect(),p=s.left-i.left,d=s.right-i.left;p<0?l.scrollLeft+=p:d>r&&(l.scrollLeft+=d-r)}virtualAppend(t,o,n){let l=()=>{if(!this.wavesurfer)return;let r=this.wavesurfer.getWidth(),c=this.wavesurfer.getScroll(),i=o.clientWidth,s=this.wavesurfer.getDuration(),p=Math.round(t.start/s*i),d=p+(Math.round((t.end-t.start)/s*i)||1)>c&&p<c+r;d&&!n.parentElement?o.appendChild(n):!d&&n.parentElement&&n.remove()};setTimeout((()=>{if(!this.wavesurfer||!t.element)return;l();let r=this.wavesurfer.on("scroll",l),c=this.wavesurfer.on("zoom",l),i=this.wavesurfer.on("resize",l);this.subscriptions.push(r,c,i),t.once("remove",(()=>{r(),c(),i()}))}),0)}saveRegion(t){if(!t.element)return;this.virtualAppend(t,this.regionsContainer,t.element),this.avoidOverlapping(t),this.regions.push(t);let o=[t.on("update",(n=>{n||this.adjustScroll(t),this.emit("region-update",t,n)})),t.on("update-end",(n=>{this.avoidOverlapping(t),this.emit("region-updated",t,n)})),t.on("play",(n=>{var l;(l=this.wavesurfer)===null||l===void 0||l.play(t.start,n)})),t.on("click",(n=>{this.emit("region-clicked",t,n)})),t.on("dblclick",(n=>{this.emit("region-double-clicked",t,n)})),t.on("content-changed",(()=>{this.emit("region-content-changed",t)})),t.once("remove",(()=>{o.forEach((n=>n())),this.regions=this.regions.filter((n=>n!==t)),this.emit("region-removed",t)}))];this.subscriptions.push(...o),this.emit("region-created",t)}addRegion(t){var o,n;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let l=this.wavesurfer.getDuration(),r=(n=(o=this.wavesurfer)===null||o===void 0?void 0:o.getDecodedData())===null||n===void 0?void 0:n.numberOfChannels,c=new si(t,l,r);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,o=3){var n;let l=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper();if(!(l&&l instanceof HTMLElement))return()=>{};let r=null,c=0,i=0,s=ci(l,{threshold:o}),p=li((()=>{var d,g;let m=s.signal.value;if(m)if(m.type==="start"){if(c=m.x,!this.wavesurfer)return;let v=this.wavesurfer.getDuration(),y=(g=(d=this.wavesurfer)===null||d===void 0?void 0:d.getDecodedData())===null||g===void 0?void 0:g.numberOfChannels,{width:u}=this.wavesurfer.getWrapper().getBoundingClientRect();i=c/u*v;let b=m.x/u*v,C=(m.x+5)/u*v;r=new si(Object.assign(Object.assign({},t),{start:b,end:C}),v,y),this.emit("region-initialized",r),r.element&&this.regionsContainer.appendChild(r.element)}else m.type==="move"&&m.deltaX!==void 0?r&&r._onUpdate(m.deltaX,m.x>c?"end":"start",i):m.type==="end"&&r&&(this.saveRegion(r),r.updatingSide=void 0,r=null)}),[s.signal]);return()=>{p(),s.cleanup()}}clearRegions(){this.regions.slice().forEach((t=>t.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as w3,jsx as Fe,jsxs as il}from"react/jsx-runtime";var S3=P3(function({onFinalize:t,recordOptions:o,options:n,labels:l=Uv,className:r,classNames:c,style:i,styles:s,...p},d){let g=Wv(null),[m,v]=mi("idle"),[y,u]=mi(null),[b,C]=mi(null),[x,I]=mi(!1),P=Wv("idle");P.current=m;let k=x3(()=>[ai.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...o}),pi.create()],[]),[F,T]=k,{wavesurfer:B,isPlaying:L,isReady:M,currentTime:S}=C3({...Hv,...n,container:g,plugins:k}),w=M?B?.getDuration()??0:0;R0(()=>{let U=[F.on("record-start",()=>v("recording")),F.on("record-end",O=>{v("recorded"),u(O)}),T.on("region-clicked",(O,$)=>{$.stopPropagation(),O.play(!0)})];return()=>U.forEach(O=>O?.())},[T,F]),R0(()=>B?B.on("ready",()=>{if(P.current!=="recorded")return;let O=B.getDuration();T.clearRegions();let $=T.addRegion({start:0,end:O,color:n?.regionColor??zv,drag:!1,resize:!0});C({start:$.start,end:$.end})}):void 0,[B,T,n]),R0(()=>T.on("region-updated",O=>{C({start:O.start,end:O.end})}),[T]);let E=lr(async()=>{await F.startRecording()},[F]),R=lr(()=>{F.stopRecording()},[F]),D=lr(()=>{B?.playPause()},[B]),z=lr(async()=>{if(!(!y||!b||!B)){I(!0);try{let U=await I3(y,b.start,b.end),O=URL.createObjectURL(U);u(U),B.load(O)}finally{I(!1)}}},[y,b,B]),N=lr(()=>{T.clearRegions(),B?.empty(),u(null),C(null),v("idle")},[B,T]),A=lr(()=>{if(y){let U=URL.createObjectURL(y);t?.(y,U)}},[t,y]),_=!b||b.start<=0&&b.end>=w;return Fe("div",{ref:d,className:je("cleen wavesurfer-handle",r),style:i,...p,children:il("div",{className:je("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",c?.container),style:s?.container,children:[m==="idle"&&il(w3,{children:[Fe("button",{type:"button",onClick:E,"aria-label":"Start recording",className:je("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.startButton),style:s?.startButton,children:Fe(Pa,{className:"cleen-size-8 cleen-text-primary"})}),Fe("p",{className:je("cleen-text-neutral-600 cleen-text-sm cleen-select-none",c?.startLabel),style:s?.startLabel,children:l.startRecording})]}),m==="recording"&&Fe("button",{type:"button",onClick:R,"aria-label":"Stop recording",className:je("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.stopButton),style:s?.stopButton,children:Fe(Ha,{className:"cleen-size-8 cleen-text-primary"})}),Fe("div",{ref:g,className:je("cleen-w-full cleen-min-w-0 cleen-waveform",m==="idle"&&"cleen-hidden",c?.waveform),style:s?.waveform}),m==="recorded"&&il("div",{className:je("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",c?.recordedContainer),style:s?.recordedContainer,children:[Fe(ee,{type:"button",onClick:D,disabled:!M,"aria-label":L?"Pause":"Play",className:c?.playPauseButton?.className,classNames:{...c?.playPauseButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.playPauseButton?.classNames?.container)},...s?.playPauseButton,children:L?Fe(ft,{className:"cleen-fill-current"}):Fe(ht,{className:"cleen-fill-current"})}),il("span",{className:je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.timestamp),style:s?.timestamp,children:[di(S),"\xA0/\xA0",di(w)]}),Fe("span",{className:"cleen-flex-1"}),!_&&b&&il("span",{className:je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.trimmedTimestamp),style:s?.trimmedTimestamp,children:[di(b.start),"\u2013",di(b.end)]}),Fe(ee,{type:"button",onClick:N,variant:"secondary","aria-label":"Discard recording",className:c?.discardButton?.className,classNames:{...c?.discardButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.discardButton?.classNames?.container)},...s?.discardButton,children:Fe(lt,{className:"cleen-text-error"})}),Fe(ee,{type:"button",onClick:z,disabled:_||x||!M,"aria-label":"Apply trim",variant:"secondary",className:c?.trimButton?.className,classNames:{...c?.trimButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.trimButton?.classNames?.container)},...s?.trimButton,children:Fe(Ea,{})}),Fe(ee,{type:"button",onClick:A,"aria-label":"Finalize recording",className:c?.finalizeButton?.className,classNames:{...c?.finalizeButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.finalizeButton?.classNames?.container)},...s?.finalizeButton,children:Fe(Ht,{})})]})]})})});import{cn as ui}from"@cleen/ui-core";import{forwardRef as M3,useMemo as k3}from"react";var qv={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 sl}from"react/jsx-runtime";var fi=M3(function({title:t,name:o,src:n,alt:l,size:r="md",initialsLength:c=2,isSelected:i=!1,showBorder:s=!1,fallback:p=sl($a,{}),className:d,classNames:g,style:m,styles:v,onClick:y,...u},b){let C=k3(()=>(c===2?o?.split(" ").map(x=>x.charAt(0).toUpperCase()).join("").slice(0,c):o?.charAt(0).toUpperCase())||p,[o,c,p]);return sl("div",{className:ui("cleen",d),style:m,ref:b,...u,children:sl("div",{onClick:y,className:ui("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof r=="string"&&qv[r],{"cleen-border-2 cleen-border-white":s,"cleen-cursor-pointer":!!y},g?.avatar,s&&i&&["cleen-border-primary",g?.avatarSelected]),style:{...typeof r=="number"&&{width:r,height:r,fontSize:r*.4,lineHeight:`${r}px`},...v?.avatar,...s&&i&&v?.avatarSelected},title:t||o,children:n?sl("img",{src:n,alt:l||o,className:ui("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",g?.image),style:v?.image}):sl("span",{className:ui("cleen-select-none cleen-text-neutral-700",g?.fallback),style:v?.fallback,children:C})})})});import{cn as Xv}from"@cleen/ui-core";import{forwardRef as T3}from"react";import{jsx as L0,jsxs as N3}from"react/jsx-runtime";var B3=T3(function({avatars:t,size:o="md",selectedAvatars:n=[],onAvatarToggle:l,gap:r=4,maxVisible:c,maxExtra:i=99,showBorder:s=!0,initialsLength:p,fallback:d,className:g,classNames:m,style:v,styles:y,...u},b){let C=c?t?.slice(0,c):t,x=c&&t&&t.length>c?Math.min(t.length-c,i):0;return L0("div",{className:Xv("cleen",g),style:v,ref:b,...u,children:N3("div",{className:Xv("cleen-flex cleen-items-center",m?.row),style:{gap:r,...y?.row},children:[C?.map((I,P)=>{let k=n.includes(I?.id??"");return L0(fi,{name:I.name,src:I.src,size:o,isSelected:k,showBorder:s,initialsLength:p,fallback:d,onClick:()=>l?.(I.id??""),...m?.avatar,style:{zIndex:C.length-P,...y?.avatar?.style},styles:y?.avatar?.styles,...I},I.id||P)}),x>0&&L0(fi,{size:o,fallback:`+${x}`,...m?.extra,...y?.extra})]})})});import{cn as Io}from"@cleen/ui-core";import{forwardRef as R3}from"react";import{Link as Kv}from"react-router-dom";import{jsx as pl,jsxs as hi}from"react/jsx-runtime";var L3=R3(function({root:t={path:"/",icon:pl(fa,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:o,className:n,classNames:l,style:r,styles:c,...i},s){return!o||o.length===0?null:pl("div",{className:Io("cleen",n),style:r,ref:s,...i,children:pl("nav",{className:Io("cleen-hidden sm:cleen-flex",l?.container),style:c?.container,"aria-label":"Breadcrumb",children:hi("ol",{role:"list",className:Io("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:c?.list,children:[t&&pl("li",{className:Io("cleen-flex cleen-items-center",l?.rootItem),style:c?.rootItem,children:hi(Kv,{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]})}),o.map(({path:p,icon:d,label:g,id:m},v)=>{let y=v===o.length-1,u=g||p.charAt(0).toUpperCase()+p.slice(1);return hi("li",{className:Io("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:c?.item,children:[(t||!t&&v!==0)&&pl(mt,{className:Io("cleen-h-5 cleen-w-5 cleen-text-neutral-300",l?.chevron),style:c?.chevron,"aria-hidden":"true"}),hi(Kv,{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",y?"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":y?"page":void 0,children:[d,u]})]},m||p)})]})})})});var gi=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:o,max:n}=t,l=new Date,r=new Date(l.getFullYear(),l.getMonth(),l.getDate());if(o){let c=o==="today"?r:o;if(c>=e)return c}if(n){let c=n==="today"?r:n;if(c<=e)return c}return e};import{cn as yi}from"@cleen/ui-core";import{forwardRef as E3,useState as E0}from"react";import{DayPicker as Yv,MonthGrid as D3}from"react-day-picker";import{Fragment as F3,jsx as Jo,jsxs as F0}from"react/jsx-runtime";var D0=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),A0=E3(function({label:t,labelTooltip:o,infoLabels:n,required:l,withDateInput:r=!1,withTodayButton:c=!1,selected:i,onSelect:s,month:p,labels:d,className:g,style:m,classNames:v,styles:y,mode:u="single",min:b,max:C,disabled:x,disabledDates:I,components:P,...k},F){let T=i!==void 0,B=u==="single",[L,M]=E0(),[S,w]=E0(),E=T?i:B?L:S,[R,D]=E0(p),z=(_,U)=>{T||(B&&(_===void 0||_ instanceof Date)?M(_):B||w(_)),s?.(_,U)},N={MonthGrid:_=>F0(F3,{children:[(c||r)&&F0("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[r&&Jo(ye,{value:u==="single"?D0(E):E?.from||E?.to?`${D0(E?.from)??"..."} - ${D0(E?.to)??"..."}`:void 0,placeholder:d?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),c&&Jo(ee,{variant:"secondary",onClick:()=>D(new Date),children:d?.today??"Today"})]}),Jo(D3,{..._})]}),...P},A={navLayout:"around",...k,className:yi("cleen-text-foreground",v?.calendar?.className),classNames:{...v?.calendar?.classNames,nav:yi("cleen-text-error",v?.calendar?.classNames?.nav)},disabled:b||C?{before:b==="today"?new Date:b,after:C==="today"?new Date:C}:I||x,components:N,month:R,onMonthChange:D,...y?.calendar};return F0("div",{ref:F,className:yi("cleen",g),style:m,children:[t&&Jo(ae,{required:l,tooltip:o,className:yi("cleen-mb-1.5",v?.label?.className),classNames:v?.label?.classNames,...y?.label,children:t}),B?Jo(Yv,{mode:"single",...A,selected:E,onSelect:(_,U)=>{if(b||C){z(gi(_,{min:b,max:C}),U);return}z(_,U)}}):Jo(Yv,{mode:"range",...A,selected:E,onSelect:(_,U)=>{if(b||C){z({from:gi(_?.from,{min:b,max:C}),to:gi(_?.to,{min:b,max:C})},U);return}z(_,U)}}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&Jo(ne,{...n})]})});import{cn as cr,useOutsideClick as A3,usePositionClose as O3,ZIndex as _3}from"@cleen/ui-core";import{forwardRef as V3,useEffect as z3,useRef as Qv,useState as H3}from"react";import{createPortal as U3}from"react-dom";import{jsx as jo,jsxs as Zv}from"react/jsx-runtime";var dl=V3(function({type:t="button",required:o,label:n,title:l,titleTooltip:r,disabled:c=!1,leftIcon:i,rightIcon:s=jo(ta,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:p=!0,fullWidthDropdown:d,offset:g=4,isOpen:m,onOpenChange:v,keepOpenOnClickContent:y=!0,zIndex:u=_3.DROPDOWN,infoLabels:b,className:C,classNames:x,style:I,styles:P,children:k,...F},T){let[B,L]=H3(!1),M=m!==void 0?m:B,S=Qv(null),w=Qv(null),{positionStyles:E,isMounted:R}=O3({triggerRef:w,targetRef:S,position:"bottom-left",isOpen:M,offset:g});A3({refs:[S,w],handler:()=>{L(!1),v?.(!1)},enabled:M}),z3(()=>{let N=A=>{A.key==="Escape"&&M&&(L(!1),v?.(!1))};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[M,v]);let D=()=>{let N=!M;m===void 0&&L(N),v?.(N)},z=()=>{y||(m===void 0&&L(!1),v?.(!1))};return Zv("div",{className:cr("cleen",C),style:I,ref:T,...F,children:[l&&jo(ae,{required:o,tooltip:r,className:cr("cleen-mb-1.5",x?.title?.className),classNames:x?.title?.classNames,...P?.title,children:l}),jo("div",{className:cr("cleen-inline-block cleen-relative",p&&"cleen-w-full"),ref:w,children:Zv("button",{type:t,className:cr("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":M,onClick:D,children:[i,jo("div",{className:cr("cleen-flex-1 cleen-text-left",x?.label),style:P?.label,children:n}),s]})}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&jo(ne,{...b}),k&&M&&U3(jo("div",{className:"cleen",children:jo("div",{ref:S,className:cr("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!R},x?.dropdown),style:{zIndex:u,top:`${E.top}px`,left:`${E.left}px`,minWidth:d&&w.current?.offsetWidth?`${w.current.offsetWidth}px`:void 0,...P?.dropdown},onClick:z,children:k})}),document.body)]})});import{cn as Jv}from"@cleen/ui-core";import{forwardRef as G3,useMemo as $3,useState as vi}from"react";import{jsx as en,jsxs as jv}from"react/jsx-runtime";var W3=G3(function({label:t,placeholder:o,infoLabels:n,required:l,selected:r,onSelect:c,onSelectInternal:i,leftIcon:s,rightIcon:p=en(Qr,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:d,style:g,classNames:m,styles:v,mode:y="single",min:u,max:b,disabled:C,disabledDates:x,...I},P){let k=r!==void 0,F=y==="single",[T,B]=vi(!1),[L,M]=vi(),[S,w]=vi(),E=k?r:F?L:S,[R,D]=vi(),z=A=>{k||(F&&(A===void 0||A instanceof Date)?M(A):F||w(A)),c?.(A)},N=$3(()=>{if(!E)return o;if(F)return E?.toLocaleDateString();{let A=E;if(A.from&&A.to)return`${A.from.toLocaleDateString()} - ${A.to.toLocaleDateString()}`;if(A.from)return A.from.toLocaleDateString()}return o},[o,E,F]);return jv("div",{ref:P,className:Jv("cleen",d),style:g,children:[en(dl,{title:t,label:N,isOpen:T,onOpenChange:A=>{D(E),B(A)},leftIcon:s,rightIcon:p,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:Jv("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:l,disabled:C,...v?.dropdown,children:en(he,{footer:{hasDivider:!0,content:jv("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[en(ee,{variant:"secondary",onClick:()=>B(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),en(ee,{onClick:()=>{z(R),B(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...v?.card,children:en(A0,{mode:y,...I,selected:R,onSelect:(A,_)=>D(i?.(A,_)??A),min:u,max:b,disabledDates:x,...m?.calendar,...v?.calendar})})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&en(ne,{...n})]})});import"react";import{cn as ir}from"@cleen/ui-core";import q3 from"embla-carousel-auto-scroll";import X3 from"embla-carousel-autoplay";import K3 from"embla-carousel-react";import{forwardRef as Y3,useEffect as Q3,useMemo as eb,useState as tb}from"react";import{jsx as tn,jsxs as J3}from"react/jsx-runtime";var Z3=Y3(function({options:t,slideAmount:o=3,slideSize:n,prevBtn:l,nextBtn:r,autoPlay:c=!1,autoPlayOptions:i,autoScroll:s=!1,autoScrollOptions:p,children:d,className:g,classNames:m,style:v,styles:y,...u},b){let C=eb(()=>{let w=[];return c&&w.push(X3(i)),s&&w.push(q3(p)),w},[c,s,i,p]),[x,I]=K3({skipSnaps:!0,...t},C),[P,k]=tb(!0),[F,T]=tb(!0),B=()=>I?.scrollPrev(),L=()=>I?.scrollNext(),M=w=>{k(!w?.canScrollPrev()),T(!w?.canScrollNext())};Q3(()=>{I&&(M(I),I.on("reInit",M),I.on("select",M))},[I]);let S=eb(()=>n?`${n}%`:`${100/o}%`,[n,o]);return tn("div",{className:ir("cleen",g),style:v,ref:b,...u,children:J3("div",{className:ir("cleen-flex cleen-gap-2",m?.container),style:y?.container,children:[tn("button",{className:ir("cleen-text-foreground",m?.prevBtn,P&&"cleen-opacity-50"),onClick:B,disabled:P,style:y?.prevBtn,children:l||tn(Ut,{})}),tn("div",{className:ir("cleen-flex-1 cleen-overflow-hidden",m?.viewport),style:y?.viewport,ref:x,children:tn("div",{className:ir("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:{...y?.list,"--cleen-carousel-slide-size":S},children:d})}),tn("button",{className:ir("cleen-text-foreground",m?.nextBtn,F&&"cleen-opacity-50"),onClick:L,disabled:F,style:y?.nextBtn,children:r||tn(mt,{})})]})})});import{cn as on}from"@cleen/ui-core";import{forwardRef as j3,useEffect as rb,useId as eT,useRef as tT,useState as oT}from"react";var ob={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)]"},nb={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 nT,jsx as xt,jsxs as bi}from"react/jsx-runtime";var ml=j3(function({id:t,name:o,required:n,checked:l,defaultChecked:r=!1,className:c,classNames:i,style:s,styles:p,onChange:d,disabled:g,title:m,titleTooltip:v,label:y,sublabel:u,variant:b="primary",allowIndeterminate:C=!1,fullTriggerArea:x=!1,infoLabels:I,inputRef:P,...k},F){let T=eT(),B=t??T,L=typeof l=="boolean"||l===null,[M,S]=oT(r),w=tT(null),E=A=>{w.current=A,P&&(P.current=A)};rb(()=>{L||S(r)},[r,L]);let R=L?l:M;rb(()=>{w.current&&(w.current.indeterminate=C&&R===null)},[C,R]);let D=A=>{let _;if(C)switch(R){case!0:_=null;break;case!1:_=!0;break;default:_=!1;break}else _=!R;L||S(_),d?.({...A,target:{...A.target,checked:_}})},z=bi(nT,{children:[bi("label",{className:on("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",{[ob[b]]:R,[nb[b]]:R===null},g&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:p?.checkbox,children:[xt("input",{ref:E,type:"checkbox",disabled:g,className:"cleen-sr-only",checked:R===!0,onChange:D,id:B,name:o,...k}),R===null?xt("span",{className:"cleen-block cleen-m-auto cleen-border cleen-border-white cleen-rounded-sm cleen-w-2.5 cleen-h-0.5 cleen-size-3"}):R?xt(Ht,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(y||u)&&bi("div",{children:[xt("label",{htmlFor:B,className:on("cleen-block cleen-text-foreground",i?.label),style:p?.label,children:y}),xt("label",{htmlFor:B,className:on("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:p?.sublabel,children:u})]})]}),N={className:on("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":g},i?.checkboxContainer),style:p?.checkboxContainer};return xt("div",{className:on("cleen",c),style:s,ref:F,children:bi("div",{className:on(i?.container),style:p?.container,children:[m&&xt(ae,{htmlFor:B,required:n,tooltip:v,className:on("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...p?.title,children:m}),x?xt("div",{...N,onClick:A=>{A.target instanceof Element&&!A.target.closest("label")&&w.current?.click()},children:z}):xt("div",{...N,children:z}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&xt(ne,{...I})]})})});import{cn as ul}from"@cleen/ui-core";import{forwardRef as rT,useId as aT,useMemo as lT,useState as cT}from"react";import{jsx as sr,jsxs as sT}from"react/jsx-runtime";var iT=rT(function({id:t,required:o,label:n,labelTooltip:l,checkboxes:r,allowIndeterminate:c,infoLabels:i,requiresAtLeastOneOptions:s,classNames:p,styles:d,onChange:g,...m},v){let y=aT(),u=t??y,[b,C]=cT(!1),x=lT(()=>s&&b&&r?.every(P=>P.checked===!1)?s.title:i?.errorMessage,[s,i?.errorMessage,r,b]),I=(P,k)=>{let F={...k,checked:P.target.checked},T;r&&k?.id&&(T=[...r].map(B=>B.id===k.id?F:B)),g?.(F,T),C(!0)};return sr("div",{className:ul("cleen"),...m,ref:v,children:sT("div",{className:ul("cleen-flex cleen-flex-col cleen-gap-2",p?.container),style:d?.container,children:[n&&sr(ae,{htmlFor:u,required:o,tooltip:l,className:ul("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...d?.label,children:n}),sr("div",{className:ul("cleen-flex cleen-flex-col cleen-gap-3",p?.checkboxes),style:d?.checkboxes,children:r?.map((P,k)=>sr("div",{className:ul("cleen-flex",p?.checkboxContainer),style:d?.checkboxContainer,children:sr(ml,{allowIndeterminate:c,...P,id:`${u}-${k}`,fullTriggerArea:!0,onChange:F=>I(F,P)})},P.id))}),(x||i?.infoMessage||i?.subtitle)&&sr(ne,{...i,errorMessage:x})]})})});import{cn as nn}from"@cleen/ui-core";import{forwardRef as pT,useState as ab}from"react";import{jsx as pr,jsxs as lb}from"react/jsx-runtime";var cb=pT(({sections:e,defaultOpenIndex:t,allowExpandAll:o=!1,className:n,classNames:l,style:r,styles:c,...i},s)=>{let[p,d]=ab(t??null),[g,m]=ab(()=>new Set(e.map((u,b)=>b))),v=u=>o?g.has(u):p===u,y=(u,b)=>{b.onClick?.(),b.items?.length&&(o?m(C=>{let x=new Set(C);return x.has(u)?x.delete(u):x.add(u),x}):d(p===u?null:u))};return pr("div",{ref:s,className:nn("cleen",n),style:{...r,width:"100%"},...i,children:pr("div",{className:nn("cleen-w-full",l?.container),style:c?.container,children:e.map((u,b)=>lb("div",{className:nn("cleen-mb-3",l?.section),style:c?.section,children:[lb("div",{onClick:()=>y(b,u),className:nn("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:[pr("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:u?.title}),u?.items?.length?pr(Gt,{className:nn("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!v(b)})}):null]}),v(b)&&u?.items&&pr("div",{className:nn("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",l?.sectionBody),style:c?.sectionBody,children:u?.items?.map((C,x)=>pr("div",{className:nn("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))})]},u?.key??b))})})});cb.displayName="Collapsible";function O0(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 ib(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as Ii}from"@cleen/ui-core";import{useEffect as dT,useState as mT}from"react";import{HexAlphaColorPicker as uT,RgbaColorPicker as fT}from"react-colorful";import{jsx as dr,jsxs as gT}from"react/jsx-runtime";var sb="rgba(0, 0, 0, 1)",pb="#000000ff",hT=({required:e,value:t,defaultValue:o,onChange:n,colorModel:l="rgba",disabled:r,label:c,labelTooltip:i,className:s,classNames:p,style:d,styles:g,infoLabels:m,...v})=>{let y=t!==void 0,u=o??(l==="hexa"?pb:sb),[b,C]=mT(u),x=y?t:b;dT(()=>{y||C(o??(l==="hexa"?pb:sb))},[o,y,l]);let I=k=>{let F=ib(k);y||C(F),n?.(F)},P=k=>{y||C(k),n?.(k)};return dr("div",{className:Ii("cleen",s),style:d,...v,children:gT("div",{className:Ii("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",p?.container),style:g?.container,children:[c&&dr(ae,{required:e,tooltip:i,className:Ii("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...g?.label,children:c}),dr("div",{className:Ii("cleen-rounded-md",r&&"cleen-opacity-50 cleen-pointer-events-none",p?.picker),style:g?.picker,children:l==="hexa"?dr(uT,{color:x,onChange:P}):dr(fT,{color:O0(x),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&dr(ne,{...m})]})})};import{cn as ct}from"@cleen/ui-core";import{forwardRef as yT,useMemo as vT,useState as bT}from"react";var _0=(e="")=>e.replace(/\D+/g,""),db=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function mb(e,t="other"){if(!e)return e;let o=_0(e),n;switch(t){case"amex":n=`${o.slice(0,4)} ${o.slice(4,10)} ${o.slice(10,15)}`;break;case"dinersclub":n=`${o.slice(0,4)} ${o.slice(4,10)} ${o.slice(10,14)}`;break;default:n=`${o.slice(0,4)} ${o.slice(4,8)} ${o.slice(8,12)} ${o.slice(12,19)}`;break}return n.trim()}var ub=e=>_0(e);function fb(e){let t=_0(e);if(!t||parseInt(t.charAt(0),10)>=2)return"";if(t.length<2)return t;let o=t.slice(0,2);if(parseInt(o,10)<1||parseInt(o,10)>12)return t.slice(0,1);if(t.length<3)return o;if(t.length===3)return`${o}/${t.charAt(2)}`;let n=t.length===6?t.slice(-2):t.slice(2,4),l=new Date,r=l.getFullYear()%100,c=l.getMonth()+1;return parseInt(n,10)<r||parseInt(n,10)===r&&parseInt(o,10)<c?`${o}/${n.charAt(0)}`:`${o}/${n}`}import{jsx as Co,jsxs as hb}from"react/jsx-runtime";var IT=yT(function({labels:t,value:o,isLoading:n,errors:l,className:r,classNames:c,style:i,styles:s,infoLabels:p,onChange:d,onFieldFocus:g,...m},v){let[y,u]=bT({number:"",expiry:"",cvc:""}),b=!!o,C=b?o:y,x=vT(()=>db(C.number),[C.number]),I=k=>{let{name:F}=k.target,{value:T}=k.target;switch(F){case"number":T=mb(T,x);break;case"expiry":T=fb(T);break;case"cvc":T=ub(T);break;default:return}b||u(B=>({...B,[F]:T})),d?.({...o,[F]:T})},P=k=>{g?.(k.target.name)};return Co("div",{className:ct("cleen",r),style:i,ref:v,...m,children:Co("div",{className:ct("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:s?.container,children:n?Co("div",{className:ct("cleen-py-4",c?.loader?.container),style:s?.loader?.container,children:Co(re,{...c?.loader?.component,...s?.loader?.component})}):hb("form",{className:ct("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",c?.form?.container),style:s?.form?.container,onSubmit:k=>k.preventDefault(),children:[Co(ye,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:ct("cleen-w-full",c?.form?.cardNumber?.className),classNames:{...c?.form?.cardNumber?.classNames,inputContainer:ct({"cleen-border-error":l?.number},c?.form?.cardNumber?.classNames?.inputContainer),input:ct({"cleen-text-error":l?.number},c?.form?.cardNumber?.classNames?.input)},...s?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:C.number,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.number}}),hb("div",{className:ct("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",c?.form?.cvcExpiryContainer),style:s?.form?.cvcExpiryContainer,children:[Co(ye,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:c?.form?.expiry?.className,classNames:{...c?.form?.expiry?.classNames,inputContainer:ct({"cleen-border-error":l?.expiry},c?.form?.expiry?.classNames?.inputContainer),input:ct({"cleen-text-error":l?.expiry},c?.form?.expiry?.classNames?.input)},...s?.form?.expiry,placeholder:"00/00",value:C.expiry,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.expiry}}),Co(ye,{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:ct({"cleen-border-error":l?.cvc},c?.form?.cvc?.classNames?.inputContainer),input:ct({"cleen-text-error":l?.cvc},c?.form?.cvc?.classNames?.input)},...s?.form?.cvc,placeholder:"***",value:C.cvc,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.cvc}})]}),(p?.infoMessage||p?.errorMessage||p?.subtitle)&&Co(ne,{...p})]})})})});import{cn as gb}from"@cleen/ui-core";import{jsx as yb}from"react/jsx-runtime";var gt=({isHorizontal:e=!0,className:t,classNames:o,style:n,styles:l,...r})=>yb("div",{className:gb("cleen",t),style:n,children:yb("div",{className:gb("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",o?.container),style:l?.container,...r})});import{cn as Po,useBodyScrollLock as CT,useCleenOverlays as vb,ZIndex as PT}from"@cleen/ui-core";import{forwardRef as xT,useCallback as ST,useEffect as V0,useId as wT,useRef as MT,useState as bb}from"react";import{createPortal as kT}from"react-dom";import{jsx as mr,jsxs as Ci}from"react/jsx-runtime";var TT={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},Ib=300,z0=xT(function({title:t,subtitle:o,children:n,headerCloseBtn:l,footer:r,isOpen:c=!1,onClose:i,closeOnOverlayClick:s=!0,position:p="right",zIndex:d=PT.DRAWER,size:g="lg",p:m,gap:v,className:y,classNames:u,style:b,styles:C,...x},I){let[P,k]=bb(c),[F,T]=bb(c),B=MT(null),L=wT(),{addOverlay:M,removeOverlay:S}=vb(),w=ST(()=>{k(!1),setTimeout(()=>i?.(),Ib)},[i]);return V0(()=>{if(c){T(!0);let E=setTimeout(()=>k(!0),1);return()=>clearTimeout(E)}else{k(!1);let E=setTimeout(()=>T(!1),Ib);return()=>clearTimeout(E)}},[c]),V0(()=>{if(c)return M(L),()=>S(L)},[M,S,c,L]),V0(()=>{let E=R=>{let{overlays:D}=vb.getState();R.key==="Escape"&&D[D.length-1]===L&&w()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[w,L]),CT(F),F?kT(Ci("div",{className:Po("cleen",y),style:b,ref:I,...x,children:[mr("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",u?.overlay),onClick:()=>{s&&w()},style:{zIndex:d-1,...C?.overlay},"aria-hidden":"true"}),Ci("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",u?.drawer),style:{zIndex:d,width:typeof g=="number"?g:TT[g],...v!==void 0&&{gap:v},...C?.drawer},ref:B,children:[Ci("div",{className:Po("cleen-flex cleen-justify-between cleen-items-center cleen-px-6 cleen-pt-6 cleen-w-full",u?.header),style:{...m!==void 0&&{paddingInline:m,paddingTop:m},...C?.header},children:[Ci("div",{className:"cleen-flex cleen-flex-col",children:[mr("span",{className:Po("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",u?.title),style:C?.title,children:t}),mr("span",{className:Po("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",u?.subtitle),style:C?.subtitle,children:o})]}),l||mr(He,{onClick:w,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),mr("div",{className:Po("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",u?.content),style:{...m!==void 0&&{paddingInline:m},...C?.content},children:n}),r&&mr("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",u?.footer),style:{...m!==void 0&&{paddingInline:m,paddingBlock:v},...C?.footer},children:r})]})]}),document.body):null});import{cn as rn,useAnimateNumber as BT}from"@cleen/ui-core";import{forwardRef as NT,useEffect as RT,useMemo as LT,useRef as ET,useState as DT}from"react";import{jsx as Pi,jsxs as H0}from"react/jsx-runtime";var ur=NT(({percentage:e,title:t,barColor:o,backgroundColor:n="rgb(var(--cleen-neutral-200))",textColor:l="rgb(var(--cleen-foreground))",invertProgressColors:r=!1,showPercentage:c=!1,renderAnimated:i=!1,renderAnimatedDuration:s=1e3,className:p,classNames:d,style:g,styles:m,...v},y)=>{let u=Math.max(0,Math.min(e,100)),b=ET(u),[C,x]=DT(i?0:u),I=BT({targetNumber:C,duration:s,disabled:!i});RT(()=>{if(i){setTimeout(()=>x(u),0);return}b.current!==u&&(x(u),b.current=u)},[u,i]);let P=LT(()=>{if(o)return o;switch(u<=30?"red":u<70?"orange":"green"){case"red":return r?"rgb(var(--cleen-success))":"rgb(var(--cleen-error))";case"orange":return"rgb(var(--cleen-warning))";case"green":return r?"rgb(var(--cleen-error))":"rgb(var(--cleen-success))";default:return"rgb(var(--cleen-success))"}},[u,r,o]);return Pi("div",{ref:y,className:rn("cleen",p),style:g,children:H0("div",{className:rn("cleen-w-full",d?.container),style:m?.container,...v,children:[t&&Pi("div",{className:rn("cleen-mb-1 cleen-font-semibold cleen-text-xs",d?.title),style:m?.title,children:t}),H0("div",{className:rn("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",d?.wrapper||d?.progress),style:m?.wrapper??m?.progress,children:[Pi("div",{className:rn("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",d?.track),style:{backgroundColor:n,...m?.track},children:Pi("div",{className:rn("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",d?.fill),style:{width:`${C}%`,backgroundColor:P,...i&&{transitionDuration:`${s}ms`},...m?.fill}})}),c&&H0("span",{className:rn("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",d?.text),style:{color:l,...m?.text},children:[Math.round(I),"%"]})]})]})})});ur.displayName="ProgressBar";import{cn as xo,FileEntryStatus as an}from"@cleen/ui-core";import{useMemo as Cb}from"react";import{Fragment as Pb,jsx as Ae,jsxs as ln}from"react/jsx-runtime";var xb=({fileEntry:e,onRemove:t,onFileClick:o,labels:n,classNames:l,styles:r})=>{let{id:c,file:i,name:s,size:p,url:d,type:g,status:m,progress:v=0,preExisting:y}=e,u=m===an.UPLOADING,b=m===an.ERROR,C=m===an.DONE,x=m===an.DELETING,I=p?p*v/100:0,P=Cb(()=>{switch(m){case an.UPLOADING:return ln(Pb,{children:[Ae(Yo,{className:"cleen-size-4"}),Ae("span",{children:n?.uploading})]});case an.DONE:return Ae(Go,{className:"cleen-size-4"});case an.ERROR:return Ae(Uo,{className:"cleen-size-4"});default:return null}},[m,n]),k=()=>{if(o){o(e);return}d&&window.open(d,"_blank","noopener,noreferrer")},F=s||i?.name||"",[T,B]=F.split("."),L=Cb(()=>g?.startsWith("image/")&&d?Ae("img",{src:d,alt:F,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):g==="application/pdf"?Ae(qo,{className:"cleen-size-8"}):Ae(Wo,{className:"cleen-size-8"}),[F,g,d]);return Ae(he,{p:12,className:l?.card?.className,classNames:{...l?.card?.classNames,container:xo(l?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":C})},...r?.card,onClick:C?k:void 0,children:ln("div",{className:xo("cleen-space-y-1",l?.container),style:r?.container,children:[ln("div",{className:xo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.nameContainer),style:r?.nameContainer,children:[L,ln("div",{className:xo("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",l?.name),style:{maxWidth:L?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...r?.name},children:[Ae("span",{className:"cleen-truncate cleen-shrink",children:T}),ln("span",{className:"cleen-whitespace-nowrap",children:[".",B]})]}),Ae("div",{className:"cleen-flex-1"}),!u&&(x?Ae(re,{color:"rgb(var(--cleen-error))",className:xo("cleen-shrink-0")}):Ae(lt,{className:xo("cleen-size-4 cleen-shrink-0 cleen-text-neutral-600 hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer"),onClick:M=>{M.stopPropagation(),t?.(c)}}))]}),ln("div",{className:xo("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",l?.statusContainer),style:r?.statusContainer,children:[!!p&&(u?Ae("p",{children:n?.uploadProgress?.(I,p)}):C&&Ae("p",{children:n?.uploaded?.(p)})),!y&&ln(Pb,{children:[Ae("span",{children:"|"}),Ae("div",{className:xo("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":b,"cleen-text-success":C},l?.statusText),style:r?.statusText,children:P})]})]}),u&&Ae(ur,{barColor:"rgb(var(--cleen-primary))",percentage:v,showPercentage:!0,...l?.progressBar,...r?.progressBar})]})},c)};var xi=e=>{if(e===0)return"0 B";let t=1024,o=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,n)).toFixed(1))} ${o[n]}`};var Sb={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${xi(e)} of ${xi(t)}`,uploaded:e=>xi(e)};var wb={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 fl=(r=>(r.PENDING="pending",r.IN_PROGRESS="inProgress",r.DONE="done",r.ERROR="error",r.REMOVING="removing",r))(fl||{});import{cn}from"@cleen/ui-core";import{jsx as So,jsxs as Mb}from"react/jsx-runtime";var U0=({item:e,labels:t,classNames:o,styles:n})=>{let{status:l,progress:r=0,icon:c,name:i}=e,s=l==="inProgress",p=l==="done",d=l==="error",g=l==="removing",m=l==="pending";return Mb("div",{className:cn("cleen-flex cleen-items-center cleen-gap-3",o?.container),style:n?.container,children:[c,Mb("div",{className:cn("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",o?.infoContainer),style:n?.infoContainer,children:[So("p",{className:cn("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",o?.name),style:n?.name,children:i}),s&&So(ur,{barColor:"rgb(var(--cleen-primary))",percentage:r,...o?.progressBar,...n?.progressBar})]}),s&&So("span",{className:cn("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",o?.progressText),style:n?.progressText,children:t?.itemProgress?.(r)}),g&&So(re,{color:"rgb(var(--cleen-error))"}),p&&So(Go,{className:cn("cleen-size-5 cleen-shrink-0 cleen-text-success",o?.statusIcon),style:n?.statusIcon}),d&&So(Uo,{className:cn("cleen-size-5 cleen-shrink-0 cleen-text-error",o?.statusIcon),style:n?.statusIcon}),m&&So("div",{className:cn("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",o?.statusIcon),style:n?.statusIcon,children:Array.from({length:3}).map((v,y)=>So("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${y*.1}s`}},y))})]})};var hl=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(hl||{}),gl=["notStarted","inProgress","completed","all"];import{cn as Si}from"@cleen/ui-core";import{jsx as kb,jsxs as FT}from"react/jsx-runtime";var G0=({value:e,onChange:t,counts:o,labels:n,classNames:l,styles:r})=>kb("div",{role:"group","aria-label":n?.statusFilter,className:Si("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:r?.container,children:gl.map(c=>{let i=c===e;return FT("button",{type:"button","aria-pressed":i,onClick:()=>t(c),className:Si("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&&Si("cleen-bg-background cleen-text-foreground cleen-shadow-sm",l?.optionActive)),style:{...r?.option,...i&&r?.optionActive},children:[n?.statusFilterOptions?.[c],o&&kb("span",{className:Si("cleen-text-neutral-400 cleen-tabular-nums",l?.optionCount),style:r?.optionCount,children:o[c]})]},c)})});var Tb={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 Bb=e=>e.status==="inProgress"||e.status==="pending",Nb=e=>e.length>0&&e.every(t=>t.status==="done"),$0=(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 AT,cn as yt,useControlled as Rb,useDisclosure as OT}from"@cleen/ui-core";import{forwardRef as _T,useEffect as Lb,useMemo as W0,useRef as VT}from"react";import{jsx as St,jsxs as q0}from"react/jsx-runtime";var X0=_T(function({items:t,title:o,maxVisibleItems:n=5,isExpanded:l,defaultExpanded:r=!1,onExpandedChange:c,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:s,showHeader:p=!0,showStatusFilter:d=!1,showStatusFilterCounts:g=!1,statusFilter:m,defaultStatusFilter:v="inProgress",onStatusFilterChange:y,labels:u,className:b,classNames:C,style:x,styles:I,...P},k){let{isOpen:F,toggle:T,close:B}=OT(),{value:L,handleChange:M}=Rb({value:l,defaultValue:r,onChange:c});Lb(()=>{t.length>0&&B()},[t.length,B]);let S=AT(Tb,u),{value:w,handleChange:E}=Rb({value:m,defaultValue:v,onChange:y}),R=VT(i);R.current=i;let D=Nb(t);Lb(()=>{if(s==null||!R.current||!D)return;if(s<=0){R.current();return}let $=setTimeout(()=>R.current?.(),s);return()=>clearTimeout($)},[D,s]);let z=W0(()=>t.filter(Bb).length,[t]),N=W0(()=>!d||!w?t:t.filter($=>$0($,w)),[t,d,w]),A=W0(()=>{if(g)return gl.reduce(($,Q)=>({...$,[Q]:t.filter(G=>$0(G,Q)).length}),{})},[t,g]);if(!t.length)return null;let _=Math.max(N.length-n,0),U=L||!_?N:N.slice(0,n),O=o??(z?S?.processing?.(z):S?.completed);return St(he,{p:16,gap:12,ref:k,className:yt(b,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:yt(C?.card?.classNames?.childrenContainer,{"cleen-hidden":F})},style:x,styles:I?.card?.styles,header:p?{hasDivider:!F,content:q0("div",{className:yt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",C?.header),style:I?.header,children:[St("p",{className:yt("cleen-font-semibold cleen-text-foreground cleen-text-sm",C?.title),style:I?.title,children:O}),q0("div",{className:yt("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:I?.headerButtons,children:[St("button",{type:"button","aria-label":S?.contract,onClick:T,className:yt("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:St(Gt,{className:yt("cleen-size-5 cleen-transition-transform",F&&"cleen-rotate-180")})}),i&&St("button",{type:"button","aria-label":S?.dismiss,onClick:i,className:yt("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:St(He,{className:"cleen-size-4"})})]})]})}:void 0,...P,children:q0("div",{className:yt("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:I?.list,children:[d&&w&&St(G0,{value:w,onChange:E,counts:A,labels:S,classNames:C?.statusFilter,styles:I?.statusFilter}),!U.length&&St("p",{className:yt("cleen-text-muted-foreground cleen-text-xs",C?.emptyStatusFilter),style:I?.emptyStatusFilter,children:S?.emptyStatusFilter}),U.map($=>St(U0,{item:$,labels:S,classNames:C?.row,styles:I?.row},$.id)),!!_&&St("button",{type:"button","aria-expanded":L,onClick:()=>M(!L),className:yt("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:L?S?.showLess:S?.showMore?.(_)})]})})});import{FileEntryStatus as Yt}from"@cleen/ui-core";var zT=[{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"]}],Eb={label:"FILE",className:"cleen-bg-neutral-500"},HT={[Yt.QUEUED]:"inProgress",[Yt.UPLOADING]:"inProgress",[Yt.PAUSED]:"inProgress",[Yt.DONE]:"done",[Yt.ERROR]:"error",[Yt.DELETING]:"removing"},K0=e=>e.name||e.file?.name||"",Db=e=>{let t=K0(e).split(".").pop()?.toLowerCase()??"",o=zT.find(({extensions:n})=>n.includes(t));return o?{label:o.label,className:o.className}:{label:t?t.slice(0,4).toUpperCase():Eb.label,className:Eb.className}},Fb=e=>e.status===Yt.QUEUED||e.status===Yt.UPLOADING||e.status===Yt.PAUSED,Ab=e=>HT[e.status]??"pending",Ob=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as UT}from"@cleen/ui-core";import{jsx as GT}from"react/jsx-runtime";var _b=({fileEntry:e,className:t,style:o})=>{let n=Db(e);return GT("div",{className:UT("cleen-flex cleen-justify-center cleen-items-center cleen-rounded-md cleen-size-8 cleen-shrink-0 cleen-font-semibold cleen-text-[10px] cleen-text-white",n.className,t),style:o,children:n.label})};import{jsx as $T}from"react/jsx-runtime";var Vb=(e,t)=>({id:e.id,name:K0(e),progress:e.progress,status:Ab(e),icon:$T(_b,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as WT}from"@cleen/ui-core";import{forwardRef as qT,useMemo as zb}from"react";import{jsx as XT}from"react/jsx-runtime";var Y0=qT(function({files:t,title:o,maxVisibleFiles:n=5,labels:l,classNames:r,styles:c,...i},s){let p=zb(()=>Ob(t),[t]),d=WT(wb,l),g=zb(()=>p.map(y=>Vb(y,{className:r?.row?.typeBadge,style:c?.row?.typeBadge})),[p,r?.row?.typeBadge,c?.row?.typeBadge]),m=p.filter(Fb).length,v=o??(m?d?.uploading?.(m):d?.completed);return XT(X0,{ref:s,items:g,title:v,maxVisibleItems:n,labels:{showMore:d?.showMore,showLess:d?.showLess,dismiss:d?.dismiss,contract:d?.contract,itemProgress:d?.uploadProgress},classNames:r,styles:c,...i})});import{applyDefaults as KT,cn as Xe,FileEntryStatus as YT,useFileUpload as QT}from"@cleen/ui-core";import{forwardRef as ZT,useEffect as JT,useMemo as Hb,useRef as Ub,useState as Q0}from"react";import{createPortal as jT}from"react-dom";import{jsx as Ke,jsxs as wi}from"react/jsx-runtime";var eB=ZT(function({required:t,icon:o,files:n,initialFiles:l=[],onFilesChange:r,onFileUpload:c,onFilesUpload:i,onFileRemove:s,onFileClick:p,infoLabels:d,containerRef:g,label:m,labelTooltip:v,labels:y,showUploadedFiles:u=!1,showProgressTracker:b=!1,progressTracker:C,className:x,classNames:I,style:P,styles:k,multiple:F,disabled:T,loadingWhileUploading:B,isLoading:L,readOnly:M,onChange:S,id:w,name:E,...R},D){let z=Ub(null),{files:N,addFiles:A,remove:_}=QT({files:n,onFilesChange:r,initialFiles:l,onFileUpload:c,onFilesUpload:i,onFileRemove:s}),U=Hb(()=>L||B&&Array.from(N.values()).some(Y=>Y.status===YT.UPLOADING),[N,B,L]),[O,$]=Q0(!1),[Q,G]=Q0([]),[V,X]=Q0(!1),H=Ub(new Set(N.keys()));JT(()=>{let Y=Array.from(N.keys()),xe=Y.filter(Ne=>!H.current.has(Ne));H.current=new Set(Y),G(Ne=>{let ge=Ne.filter(qe=>N.has(qe));return xe.length?V?xe:[...ge,...xe.filter(qe=>!ge.includes(qe))]:ge.length===Ne.length?Ne:ge}),xe.length&&X(!1)},[N,V]);let q=Hb(()=>Q.map(Y=>N.get(Y)).filter(Y=>!!Y),[Q,N]),pe=()=>{X(!0),G([]),C?.onDismiss?.()},fe=!T&&!M&&!U,me=Y=>{let xe=Array.from(Y.target.files??[]);A(xe),S?.(Y)},$e=Y=>{_(Y)},Pe=()=>{fe&&z.current?.click()},j=Y=>{if(!Y.length)return;let xe=F?Y:Y.slice(0,1);if(!z.current||typeof DataTransfer>"u"){A(xe);return}let Ne=new DataTransfer;xe.forEach(ge=>Ne.items.add(ge));try{z.current.files=Ne.files}catch{A(xe);return}A(xe),S?.({target:z.current,currentTarget:z.current})},ce=Y=>{Y.preventDefault(),Y.stopPropagation(),$(!1),fe&&j(Array.from(Y.dataTransfer.files??[]))},tt=Y=>{Y.preventDefault(),Y.stopPropagation(),fe&&$(!0)},We=Y=>{Y.preventDefault(),Y.stopPropagation(),fe&&$(!0)},Be=Y=>{Y.preventDefault(),Y.stopPropagation(),fe&&$(!1)},De=Y=>{fe&&(Y.key!=="Enter"&&Y.key!==" "||(Y.preventDefault(),Pe()))},ze=KT(Sb,y);return wi("div",{className:Xe("cleen",x),style:P,ref:g,children:[Ke("input",{id:w||E,name:E,ref:Y=>{if(z.current=Y,typeof D=="function"){D(Y);return}D&&(D.current=Y)},type:"file",multiple:F,disabled:T||U,readOnly:M,className:Xe("cleen-hidden",I?.input),style:k?.input,onChange:me,...R}),m&&Ke(ae,{htmlFor:w||E,required:t,tooltip:v,className:Xe("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...k?.label,children:m}),wi("div",{className:Xe("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":U}),children:[Ke(he,{tabIndex:fe?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":T||M||U,onClick:Pe,onKeyDown:De,onDrop:ce,onDragEnter:tt,onDragOver:We,onDragLeave:Be,p:16,className:Xe("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:Xe("cleen-transition-colors",T?"cleen-cursor-not-allowed cleen-bg-muted":"cleen-cursor-pointer hover:cleen-bg-surface hover:cleen-border-muted-foreground",I?.card?.classNames?.container,O&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:Xe({"cleen-blur-sm":U},I?.card?.classNames?.childrenContainer)},style:k?.card?.style,styles:{...k?.card?.styles,container:{...k?.card?.styles?.container,...O?k?.cardDragActive:void 0}},children:wi("div",{className:Xe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:k?.dropArea,"aria-disabled":T||M||U,children:[Ke("div",{className:Xe("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:k?.iconContainer,children:o||Ke(Yo,{className:"cleen-size-5"})}),wi("p",{className:Xe("cleen-font-medium cleen-text-sm",I?.textContainer),style:k?.textContainer,children:[Ke("span",{className:Xe(T?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:k?.primaryText,children:ze?.primaryText})," ",Ke("span",{className:Xe("cleen-text-foreground",I?.secondaryText),style:k?.secondaryText,children:ze?.secondaryText})]}),Ke("p",{className:Xe("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:k?.helperText,children:ze?.helperText})]})}),U&&Ke(re,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),u&&N.size>0&&Ke("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(N.values()).map(Y=>Ke(xb,{fileEntry:Y,onRemove:$e,onFileClick:p,labels:ze,classNames:I?.fileCard,styles:k?.fileCard},Y.id))}),b&&!V&&q.length>0&&jT(Ke("div",{className:"cleen",children:Ke(Y0,{...C,files:q,onDismiss:pe,className:Xe("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",I?.progressTracker?.className),classNames:I?.progressTracker?.classNames,...k?.progressTracker})}),document.body),(d?.errorMessage||d?.infoMessage||d?.subtitle)&&Ke(ne,{...d})]})});var tB=e=>{let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;let o={dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat("en-US",o).format(t)}catch{return new Intl.DateTimeFormat("en-US",o).format(t)}},Gb={uploaded:e=>`Uploaded: ${tB(e)}`};var Z0={"image/":"image","video/":"video","audio/":"audio"},J0={"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"},$b={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"},Wb=["http:","https:","blob:"];var oB=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in J0)return J0[t];let o=Object.keys(Z0).find(n=>t.startsWith(n));return o?Z0[o]:void 0},j0=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},nB=e=>{let t=j0(e);return t?$b[t]:void 0},qb=e=>oB(e.type)??nB(e.name)??"generic",Xb=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return Wb.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as Qt,formatFileSize as rB}from"@cleen/ui-core";import{forwardRef as aB,useMemo as Kb,useState as lB}from"react";import{Fragment as iB,jsx as wt,jsxs as Mi}from"react/jsx-runtime";var cB=aB(function({file:t,preview:o=!1,onRemove:n,description:l,labels:r,className:c,classNames:i,style:s,styles:p,...d},g){let[m,v]=lB(),y=Kb(()=>({...Gb,...r}),[r]),u=qb(t),b=b0(j0(t.name)),C=Xb(t.url)?t.url:void 0,x=t.previewUrl||t.url,I=o&&(u==="image"||u==="video")&&!!x&&m!==x,P=Kb(()=>{if(l!=null)return l;let B=[];if(t.size!=null&&B.push(rB(t.size)),t.uploadedAt!=null){let L=y?.uploaded(t.uploadedAt);L&&B.push(L)}return B.length>0?B.join(" \u2022 "):null},[l,t.uploadedAt,t.size,y]),k=B=>{B.stopPropagation(),n?.(t)},F=Qt("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),T=Mi(iB,{children:[Mi("div",{className:Qt("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:[I&&(u==="image"||u==="video"&&t.previewUrl)&&wt("img",{src:x,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>v(x)}),I&&u==="video"&&!t.previewUrl&&wt("video",{src:x,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>v(x)}),!I&&wt(b,{"aria-hidden":!0,className:Qt("cleen-size-5",i?.icon),style:p?.icon})]}),Mi("div",{className:Qt("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:p?.content,children:[wt("span",{className:Qt("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:p?.title,title:t.name,children:t.name}),P!==null&&wt("span",{className:Qt("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:p?.description,children:P})]})]});return wt("div",{className:Qt("cleen",c),style:s,ref:g,...d,children:Mi("div",{className:Qt("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?wt("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:F,style:p?.main,children:T}):wt("div",{className:F,style:p?.main,children:T}),n&&wt("button",{type:"button",className:Qt("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:k,children:wt(He,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var ki={filterName:"",exposed:!1};import{createContext as sB}from"react";var it=sB({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as pB}from"@cleen/ui-core";import{useContext as dB,useState as mB}from"react";import{Fragment as uB,jsx as yl,jsxs as e1}from"react/jsx-runtime";var Yb={min:3,max:50},Qb=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:o,setIsSaveFiltersStep:n,handleCloseSaveFilter:l,setError:r,onSave:c,classNames:i,styles:s,labels:p,withSavedFilters:d=!0,onCancel:g,onApply:m}=dB(it),[v,y]=mB(!1),u=async()=>{try{if(t.filterName.length<Yb.min){r?.("filterName",p?.saveStep?.validation?.tooShort);return}if(t.filterName.length>Yb.max){r?.("filterName",p?.saveStep?.validation?.tooLong);return}y(!0),await c?.(t),n(!1)}catch(b){console.error("Error saving filters:",b)}finally{y(!1)}};return e?e1("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[yl(ee,{onClick:()=>n(!1),variant:"secondary",...i?.saveFilter?.backBtn,...s?.saveFilter?.backBtn,children:p?.saveStep?.back}),yl(ee,{onClick:u,isLoading:v,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...s?.saveFilter?.saveBtn,children:p?.saveStep?.save})]}):e1(uB,{children:[d&&yl(ee,{onClick:()=>{o(ki),n(!0)},variant:"borderless-blue",...i?.saveBtn,...s?.saveBtn,children:p?.save}),e1("div",{className:pB("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!d}),children:[yl(ee,{onClick:()=>{g?.(),l()},variant:"secondary",...i?.cancelBtn,...s?.cancelBtn,children:p?.cancel}),yl(ee,{onClick:()=>{m?.(),l()},...i?.applyBtn,...s?.applyBtn,children:p?.apply})]})]})};import{cn as Ti}from"@cleen/ui-core";import{Link as fB}from"react-router-dom";import{Fragment as Jb,jsx as sn,jsxs as t1}from"react/jsx-runtime";var Zb=({item:e,classNames:t,styles:o})=>({disabled:e?.disabled,className:Ti("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:o?.container,children:t1(Jb,{children:[e?.icon,sn("span",{className:Ti("cleen-flex-1",t?.label),style:o?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),o1=({item:e,isLast:t,handleClick:o,onEnterSubmenu:n,classNames:l,styles:r})=>{switch(e?.type){case"group":return t1(Jb,{children:[e?.label&&sn("p",{className:Ti("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",l?.groupLabel),style:r?.groupDivider,children:e?.label}),e?.items?.map((c,i,s)=>sn(o1,{item:c,handleClick:o,onEnterSubmenu:n,isLast:i===s.length-1},c?.id||i)),!t&&sn("hr",{className:Ti("cleen-text-neutral-200",l?.groupDivider),style:r?.groupDivider})]});case"button":{let c=e?.submenu&&e?.submenu?.length>0;return t1("button",{type:"button",onClick:()=>{c?n?.(e.submenu,e?.label):o?.(e)},...Zb({item:e,classNames:l,styles:r}),children:[e?.icon,sn("span",{className:"cleen-flex-1",children:e?.label}),c&&sn(mt,{className:"cleen-size-4 cleen-text-neutral-400"})]})}case"link":return sn(fB,{to:"",...Zb({item:e,classNames:l,styles:r})});default:return null}};import{cn as hB}from"@cleen/ui-core";import{useEffect as jb,useState as eI}from"react";import{Fragment as gB,jsx as tI,jsxs as oI}from"react/jsx-runtime";var nI=({items:e,keepOpenOnClick:t,hideMenu:o,classNames:n,styles:l})=>{let[r,c]=eI([]),[i,s]=eI(e),p=(m,v)=>{c(y=>[...y,{items:i,title:v}]),s(m)},d=()=>{let m=r[r?.length-1];m&&(s(m?.items),c(v=>v?.slice(0,-1)))};jb(()=>{s(e),c([])},[e]),jb(()=>{let m=v=>{if(v.key==="Escape")if(r.length>0){let y=r?.[r?.length-1];s(y?.items),c(u=>u?.slice(0,-1))}else o()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[o,r]);let g=m=>{m?.onClick?.(),t||o()};return oI(gB,{children:[r?.length>0&&oI("button",{onClick:d,className:hB("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",n?.submenuButton),style:l?.submenuButton,children:[tI(Ut,{className:"cleen-size-4 cleen-text-neutral-300"}),r?.[r?.length-1]?.title]}),i?.map((m,v,y)=>tI(o1,{item:m,isLast:v===y?.length-1,handleClick:g,onEnterSubmenu:p,classNames:n?.item,styles:l?.item},m?.id||v))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as yB,cn as n1,useDisclosure as vB,useOutsideClick as bB,usePositionClose as IB,ZIndex as CB}from"@cleen/ui-core";import{forwardRef as PB,useRef as rI}from"react";import{createPortal as xB}from"react-dom";import{jsx as Bi,jsxs as SB}from"react/jsx-runtime";var fr=PB(function({items:t=[],position:o="bottom-left",keepOpenOnClick:n=!0,triggerRef:l,menuRef:r,ignoreClickOutside:c=!1,zIndex:i=CB.MENU,children:s,className:p,classNames:d,style:g,styles:m,...v},y){let{isOpen:u,toggle:b,close:C}=vB(),x=rI(null),I=rI(null),P=l??x,k=r??I,{positionStyles:F,isMounted:T}=IB({triggerRef:P,targetRef:k,position:o,isOpen:u});bB({refs:[P,k],handler:C,enabled:u});let B=()=>{b()};return SB("div",{className:n1("cleen",p),style:g,ref:y,...v,children:[Bi("div",{ref:P,onClick:B,className:n1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:s}),u&&xB(Bi("div",{className:"cleen",...c&&{[yB]:"true"},children:Bi("div",{ref:k,className:n1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!T},d?.menu),style:{zIndex:i,top:`${F.top}px`,left:`${F.left}px`,...m?.menu},children:Bi(nI,{items:t,keepOpenOnClick:n,hideMenu:C,classNames:d,styles:m})})}),document.body)]})});import{cn as Ni,ColorHelpers as Ri}from"@cleen/ui-core";import{useMemo as wB}from"react";var r1=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow","foreground-transparent"],a1={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","foreground-transparent":"cleen-border-border cleen-bg-transparent cleen-text-foreground"},aI={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"},lI={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"},cI={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"},iI={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var sI=(e,t)=>!e&&!t?"primary":t?r1[t%r1.length]:e;import{jsx as l1,jsxs as MB}from"react/jsx-runtime";var we=({className:e,classNames:t,style:o,styles:n,label:l,color:r="primary",variant:c="rounded",showDot:i=!1,icon:s,removeable:p=!1,withBorder:d=!0,filled:g=!1,onRemoveClicked:m,onClick:v,colorByIndex:y,children:u,...b})=>{let{variantClass:C,dotVariantClass:x,dotVariantStyle:I,variantStyle:P}=wB(()=>{let k={};if(r in a1){let F=sI(r,y);k.variantClass=g?aI[F]:a1[F],k.dotVariantClass=g?cI[F]:lI[F]}else k.variantStyle={borderColor:g?r:Ri.trasparentize(r,.8),backgroundColor:g?r:Ri.trasparentize(r,.95),color:g?Ri.adjustColorForContrast(r,.5):r},k.dotVariantStyle={backgroundColor:g?Ri.adjustColorForContrast(r,.5):r};return k},[r,y,g]);return l1("div",{className:Ni("cleen",e),style:o,children:MB("span",{className:Ni("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":d},C,iI[c],{"hover:cleen-opacity-80 cleen-cursor-pointer":v||p},t?.container),style:{...P,...n?.container},onClick:v,...b,children:[i&&l1("span",{className:Ni("cleen-size-2 cleen-rounded-[50%]",x,t?.dot),style:{...I,...n?.dot}}),s,l??u,p&&l1(He,{className:Ni("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:n?.removable,onClick:m})]})})};import{cn as TB}from"@cleen/ui-core";import{useContext as BB,useState as pI}from"react";import{jsx as Mt,jsxs as NB}from"react/jsx-runtime";var dI=({filter:e,activeTabId:t})=>{let[o,n]=pI(!1),[l,r]=pI(!1),{labels:c,onFilterDelete:i,onFilterPin:s,onFilterSelect:p,onFilterUnpin:d,setIsFiltersDropdownOpen:g}=BB(it),m=async()=>{try{if(!i)return;n(!0),await i(e.filterID)}catch(y){console.error("Error while deleting filter:",y)}finally{n(!1)}},v=async()=>{try{r(!0),e?.isPinned?await d?.(e.filterID):await s?.(e.filterID)}catch(y){console.error("Error while pinning/unpinnning filter:",y)}finally{r(!1)}};return Mt("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:NB("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{p?.(e),g(!1)},children:[Mt("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),l?Mt(re,{classNames:{loader:"cleen-size-5"}}):Mt(we,{color:"gray",onClick:y=>{y.stopPropagation(),v()},icon:Mt(Ta,{name:"pin",className:TB("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"&&Mt(fr,{items:[{id:"duplicate",type:"button",label:c?.savedFilters?.filter?.cancelDelete,icon:Mt(He,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:c?.savedFilters?.filter?.delete,icon:Mt(lt,{}),danger:!0,onClick:()=>m()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:y=>y.stopPropagation(),className:"cleen-flex",children:o?Mt(re,{size:"sm",color:"rgb(var(--cleen-error))"}):Mt(lt,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as wo}from"@cleen/ui-core";import{forwardRef as RB,Fragment as LB,useMemo as uI,useState as fI}from"react";import{cn as c1}from"@cleen/ui-core";var vl={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"}},mI=e=>{let t=e==="vertical";return{underlined:{list:c1("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:c1("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:c1("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 bl,jsxs as hI}from"react/jsx-runtime";var Li=(e,t)=>e?.id??String(t),Il=RB(function({tabs:t,variant:o="underlined",direction:n="horizontal",currentTabIndex:l,onTabChange:r,multiple:c=!1,activeTabIds:i,defaultActiveTabIds:s,onChange:p,className:d,classNames:g,style:m,styles:v,...y},u){let[b,C]=fI(0),I=l!==void 0?l:b,[P,k]=fI(s??[]),F=i??P,T=uI(()=>{if(!c){let S=t?.[I];return S?[S]:[]}return t?.filter((S,w)=>F.includes(Li(S,w)))??[]},[t,c,I,F]),B=(S,w)=>c?F.includes(Li(S,w)):I===w,L=(S,w)=>{if(c){let E=Li(w,S),R=F.includes(E),D=t?.map((z,N)=>Li(z,N)).filter(z=>z===E?!R:F.includes(z))??[];k(D),p?.(D)}else C(S);r?.(S,w)},M=uI(()=>mI(n),[n]);return bl("div",{className:wo("cleen",d),style:m,ref:u,...y,children:hI("div",{className:wo(vl[n].container,g?.container),style:v?.container,children:[bl("nav",{className:wo(M[o].list,vl[n].list,g?.list),"aria-label":"Tabs",style:v?.list,children:t?.map((S,w)=>{let E=B(S,w),R=S?.isDisabled;return hI("button",{type:"button",disabled:R,onClick:()=>L(w,S),className:wo("cleen-flex cleen-items-center cleen-gap-2 cleen-whitespace-nowrap focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",!R&&"cleen-cursor-pointer",M[o].tab,vl[n].tab,g?.tab,R?wo(M[o].tabDisabled,g?.tabDisabled):E?wo(M[o].tabActive,g?.tabActive):wo(M[o].tabInactive,g?.tabInactive)),style:{...v?.tab,...R?v?.tabDisabled:E?v?.tabActive:v?.tabInactive},"aria-current":E?"page":void 0,children:[S?.label,!!S?.badge?.label&&bl(we,{variant:"rounded",color:E?"blue":"gray",...g?.count,...v?.count,...S.badge})]},S?.id||w)})}),T.some(S=>!!S?.content)&&bl("div",{className:wo("h-full",c&&"cleen-flex cleen-flex-col cleen-gap-4",vl[n].content,g?.content),style:v?.content,children:T.map((S,w)=>bl(LB,{children:S?.content},S?.id||w))})]})})});import{useContext as EB,useState as DB}from"react";import{jsx as pn,jsxs as AB}from"react/jsx-runtime";var FB=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},gI=({selectedSavedFilter:e,filters:t,isFiltersFetching:o,onFilterCategoryChange:n})=>{let[l,r]=DB("all"),{labels:c,classNames:i,styles:s,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:d}=EB(it);return pn(dl,{isOpen:p,onOpenChange:d,leftIcon:pn(ma,{className:"cleen-size-5"}),label:e?.title??c?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...s?.dropdown,children:AB("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[pn(Il,{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)=>{r(m?.id),n?.(FB(m?.id))},classNames:{list:"cleen-mb-2"}}),pn("div",{className:"flex flex-col",children:o?pn(re,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(g=>pn(dI,{filter:g,activeTabId:l},g.filterID)):pn("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:c?.savedFilters?.noFilters})})]})})};import{cn as Zt}from"@cleen/ui-core";import{forwardRef as OB,useEffect as _B,useId as VB,useState as zB}from"react";import{jsx as dn,jsxs as i1}from"react/jsx-runtime";var s1=OB(function({id:t,name:o,required:n,checked:l,defaultChecked:r=!1,onChange:c,title:i,label:s,labelTooltip:p,sublabel:d,disabled:g,classNames:m,className:v,style:y,styles:u,infoLabels:b,...C},x){let I=typeof l=="boolean",[P,k]=zB(r);_B(()=>{I||k(r)},[r,I]);let F=I?l:P,T=VB(),B=i?`${T}-title`:void 0,L=s?`${T}-label`:void 0,M=[B,L].filter(Boolean).join(" ")||void 0,S=()=>{g||(I||k(!P),c?.(!F))};return dn("div",{className:Zt("cleen",v),style:y,children:i1("div",{className:Zt("cleen-flex cleen-flex-col",m?.container),style:u?.container,children:[i&&dn(ae,{id:B,htmlFor:t||o,required:n,tooltip:p,className:Zt("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...u?.title,children:i}),i1("div",{className:Zt("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:u?.switchContainer,children:[dn("button",{id:t||o,type:"button",role:"switch","aria-checked":F,"aria-labelledby":M,disabled:g,onClick:S,className:Zt("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",F?"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:u?.switch,ref:x,...C,children:dn("span",{"aria-hidden":"true",className:Zt("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",F?"cleen-translate-x-5":"cleen-translate-x-0",m?.check),style:u?.check})}),(s||d)&&i1("div",{className:Zt("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:u?.labelContainer,children:[s&&dn("span",{id:L,className:Zt("cleen-font-semibold cleen-text-foreground",m?.label),style:u?.label,children:s}),d&&dn("span",{className:Zt("cleen-font-normal cleen-text-muted-foreground",m?.sublabel),style:u?.sublabel,children:d})]})]}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&dn(ne,{...b})]})})});import{useContext as HB}from"react";import{Fragment as UB,jsx as yI,jsxs as GB}from"react/jsx-runtime";var vI=()=>{let{classNames:e,styles:t,labels:o,saveStepValues:n,setSaveStepValues:l,errors:r,clearError:c}=HB(it);return GB(UB,{children:[yI(ye,{value:n.filterName,onChange:i=>{l(s=>({...s,filterName:i.target.value})),r?.filterName&&c?.("filterName")},label:o?.saveStep?.filterNameInput?.label,placeholder:o?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:r?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),yI(s1,{checked:n.exposed,onChange:i=>l(s=>({...s,exposed:i})),title:o?.saveStep?.exposureSwitch?.title,label:o?.saveStep?.exposureSwitch?.label,sublabel:o?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var bI={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 $B}from"@cleen/ui-core";import{useState as p1}from"react";import{jsx as WB}from"react/jsx-runtime";var II=({children:e,value:t})=>{let[o,n]=p1(!1),[l,r]=p1(ki),{errors:c,setError:i,clearError:s}=$B({}),[p,d]=p1(!1),g=()=>{n(!1),t?.onClose?.()};return WB(it.Provider,{value:{isSaveFiltersStep:o,setIsSaveFiltersStep:n,saveStepValues:l,setSaveStepValues:r,handleCloseSaveFilter:g,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:d,errors:c,setError:i,clearError:s,...t},children:e})};import{applyDefaults as qB,cn as CI}from"@cleen/ui-core";import{forwardRef as PI,useContext as XB}from"react";import{Fragment as QB,jsx as Mo,jsxs as ZB}from"react/jsx-runtime";var KB=PI(function({selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,children:l,classNames:r,styles:c,labels:i,withSavedFilters:s=!0,onClear:p,onSave:d,onCancel:g,onApply:m,onClose:v,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:b,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I,...P},k){return Mo(II,{value:{selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,classNames:r,styles:c,labels:qB(bI,i),withSavedFilters:s,onClear:p,onSave:d,onCancel:g,onApply:m,onClose:v,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:b,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I},children:Mo(YB,{...P,ref:k,children:l})})}),YB=PI(function({children:t,...o},n){let{handleCloseSaveFilter:l,isSaveFiltersStep:r,selectedSavedFilter:c,savedFilters:i,isFiltersFetching:s,classNames:p,styles:d,labels:g,withSavedFilters:m=!0,onClear:v,onFilterCategoryChange:y,onFilterSelect:u}=XB(it);return Mo(z0,{footer:Mo(Qb,{}),headerCloseBtn:Mo(ee,{onClick:()=>{v?.(),u?.(void 0)},leftIcon:Mo(lt,{}),variant:"secondary",...p?.clearBtn,...d?.clearBtn,children:g?.clear}),classNames:{...p,content:CI("cleen-space-y-4",p?.content),footer:CI("cleen-justify-between",p?.footer)},onClose:l,ref:n,...o,title:r?g?.saveStep?.title:o.title,subtitle:r?g?.saveStep?.subtitle:o.subtitle,children:r?Mo(vI,{}):ZB(QB,{children:[m&&Mo(gI,{filters:i,selectedSavedFilter:c,onFilterCategoryChange:y,isFiltersFetching:s}),t]})})});import{cn as hr}from"@cleen/ui-core";import{forwardRef as JB}from"react";import{jsx as Ei,jsxs as xI}from"react/jsx-runtime";var SI=JB(({title:e,titleTooltip:t,subtitle:o,required:n,labelProps:l,children:r,className:c,classNames:i,style:s,styles:p,...d},g)=>Ei("div",{ref:g,className:hr("cleen",c),style:{...s,width:"100%"},...d,children:xI("div",{className:hr("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:p?.container,children:[xI("div",{className:hr("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:p?.titleColumn,children:[Ei(ae,{...l,required:n,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:hr("cleen-truncate",i?.title?.classNames?.label)},...p?.title,children:e}),o&&Ei("div",{className:hr("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:o})]}),Ei("div",{className:hr("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:p?.controlsRow,children:r})]})}));SI.displayName="FormGroup";import{cn as Le,useDebounce as jB,useOutsideClick as eN,usePositionClose as tN,ZIndex as oN}from"@cleen/ui-core";import{useEffect as Di,useMemo as d1,useRef as m1,useState as vt}from"react";import{createPortal as nN}from"react-dom";import{Fragment as lN,jsx as J,jsxs as Ye}from"react/jsx-runtime";function rN(e){return e!==null&&typeof e=="object"}function Ve(e,t){if(rN(e)&&t in e)return e[t]}function wI(e,t){let o=Ve(e,t);return Array.isArray(o)?o:[]}function MI(e,t){let o=e?.[t];if(typeof o=="string"||typeof o=="number")return o;let n=e?.data?.[t];return typeof n=="string"||typeof n=="number"?n:null}var aN=({position:e="bottom-right",labels:t,groups:o=[],selectedItemID:n=null,groupThreeDotMenuOptions:l=[],itemThreeDotMenuOptions:r=[],refetchData:c,onGroupSave:i,onItemSave:s,onGroupThreeDotMenuClick:p,onItemThreeDotMenuClick:d,onSearchChange:g,onItemSelect:m,groupIDKey:v,groupTitleKey:y,itemsKey:u,itemIDKey:b,itemGroupIDKey:C,itemTitleKey:x,itemSubtitleKey:I,newValueMinLength:P=2,isLoading:k=!1,isGroupSaving:F=!1,isItemSaving:T=!1,selectedColor:B="rgb(var(--cleen-primary-100))",hasFiltering:L=!0,zIndex:M=oN.POPOVER,className:S,classNames:w,style:E,styles:R})=>{let[D,z]=vt(!1),[N,A]=vt(!1),[_,U]=vt(!1),[O,$]=vt(!1),[Q,G]=vt(null),[V,X]=vt(null),[H,q]=vt(""),[pe,fe]=vt(""),[me,$e]=vt(null),Pe=m1(void 0),[j,ce]=vt(""),[tt]=jB(j,500),[We,Be]=vt(""),De=m1(null),ze=m1(null),{positionStyles:Y,isMounted:xe}=tN({triggerRef:De,targetRef:ze,position:e,isOpen:D,offset:10});eN({refs:[ze],handler:()=>z(!1),enabled:D});let Ne=d1(()=>o??[],[o]),ge=d1(()=>{let W=new Map;for(let Z of Ne){let se=Ve(Z,v);se!=null&&W.set(se,wI(Z,u))}return W},[Ne,v,u]),qe=d1(()=>{let W=[];return Q==null?W=Array.from(ge?.values()).flat():W=ge?.get(Q)??[],L&&We.trim()!==""&&(W=W.filter(Z=>{let se=String(Ve(Z,x)??""),Re=I?String(Ve(Z,I)??""):"";return se.toLowerCase().includes(We?.toLowerCase()??"")||Re.toLowerCase().includes(We?.toLowerCase()??"")})),W},[Q,ge,We,x,I,L]);Di(()=>{let W=Pe.current!==n;if(Pe.current=n,n==null){W&&(X(null),G(null));return}let se=Array.from(ge?.values())?.flat()?.find(Re=>Ve(Re,b)===n);if(se){let Re=Ve(se,C)??null;X(se),G(Re)}else W&&X(null)},[n,ge,b,C]),Di(()=>{if(me==null)return;let Z=Array.from(ge?.values())?.flat()?.find(Re=>Ve(Re,b)===me);if(!Z)return;let se=Ve(Z,C);G(typeof se=="string"||typeof se=="number"?se:null),X(Z),$e(null),m?.(Z)},[me,ge,b,C,m]),Di(()=>{g&&g(tt??"")},[tt,g]),Di(()=>{D||(A(!1),U(!1),q(""),fe(""))},[D]);let ot=W=>{W===Q?(G(null),X(null),m?.(null)):(X(null),G(W),m?.(null))},Ar=W=>{let Z=Ve(W,C);G(typeof Z=="string"||typeof Z=="number"?Z:null),X(W),m?.(W),z(!1)};async function Dn(){if(!i)return;let W={[y]:H};try{let Z=await i(W);if(Z?.success){A(!1),q(""),c&&await c();let se=MI(Z,v);se!=null&&(G(se),X(null),m?.(null))}}catch{}}async function oe(){if(!s)return;let W={[x]:pe,...Q!=null?{[C]:Q}:{}};try{let Z=await s(W);Z?.success&&(U(!1),fe(""),$e(MI(Z,b)),c&&await c())}catch{}}return J("div",{className:Le("cleen",S),style:E,children:Ye("div",{ref:De,className:Le("cleen-relative cleen-w-full cleen-cursor-pointer",w?.container),style:R?.container,onClick:W=>{W.stopPropagation(),z(!0)},children:[J(ye,{placeholder:t?.inputPlaceholder,rightIcon:J(Gt,{className:Le("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!D})}),value:j,onChange:W=>{G(null),X(null),ce(W.target.value)},classNames:{input:D?"":"cleen-cursor-pointer"},className:w?.input,style:R?.input}),D&&nN(J("div",{className:"cleen",children:Ye("div",{ref:ze,className:Le("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},w?.columnsContainer),style:{zIndex:M,top:`${Y.top}px`,left:`${Y.left}px`,...R?.columnsContainer},children:[Ye("div",{className:"cleen-w-1/2 cleen-h-full",children:[J("div",{className:Le("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",w?.leftColumn),style:R?.leftColumn,children:k?J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:J(re,{size:"sm"})}):o?.map((W,Z)=>{let se=Ve(W,v),Re=se===Q,Fn=String(Ve(W,y)??""),Or=wI(W,u)?.length??0;return Ye("div",{className:Le("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",w?.groupItem),style:{...R?.groupItem||{},...Re?{backgroundColor:B}:{}},onClick:be=>{be.stopPropagation(),be.preventDefault(),ot(se??null)},children:[Ye("div",{className:Le("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[J("span",{className:Le("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",w?.groupItemTitle),style:R?.groupItemTitle,children:Fn}),J(we,{color:"lighter-blue",label:Or})]}),l?.length>0&&J("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:be=>{be.stopPropagation(),p?.(W)},children:J(fr,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(be=>{let Vo=be?.disabledOptionCallback?.(W);return{...be,type:"button",label:J("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:be?.label}),onClick:()=>{Vo||be?.onClick(W)},disabled:Vo}}),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:J(Gn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${Z}-${String(se??Z)}`)})}),J(gt,{isHorizontal:!0}),N?Ye("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[J(ye,{leftIcon:J(go,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:H,onChange:W=>q(W.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?F?J(re,{}):H?.length>P?J(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{Dn()},classNames:{container:"cleen-w-max cleen-h-7"}}):J("div",{}):J("div",{})})]}):Ye("div",{className:Le("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",w?.newGroupButton),style:R?.newGroupButton,onClick:()=>A(!0),children:[J(go,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),J("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),J(gt,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),Ye("div",{className:"cleen-w-1/2 cleen-h-full",children:[Ye("div",{className:Le("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",w?.rightColumn),style:R?.rightColumn,children:[L&&Ye(lN,{children:[J(ye,{leftIcon:J(qt,{className:"cleen-size-5"}),className:Le("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!O}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:W=>Be(W.target.value),placeholder:t?.filterPlaceholder}),J("button",{type:"button",className:Le("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":!O}),onClick:()=>$(W=>!W),children:J(Jr,{className:Le("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",O?"-cleen-rotate-90":"cleen-rotate-90")})})]}),k?J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:J(re,{size:"sm"})}):qe?.map((W,Z)=>{let se=Ve(W,b),Re=V&&Ve(V,b)===se,Fn=String(Ve(W,x)??""),Or=I?String(Ve(W,I)??""):"";return Ye("div",{className:Le("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",w?.item),style:{...R?.item||{},...Re?{backgroundColor:B}:{}},onClick:be=>{be.stopPropagation(),be.preventDefault(),Ar(W)},children:[Ye("div",{className:Le("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",r?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[J("span",{className:Le("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",w?.itemTitle),style:R?.itemTitle,children:Fn}),J("span",{className:Le("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",w?.itemSubtitle),style:R?.itemSubtitle,children:Or})]}),r?.length>0&&J("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:be=>{be.stopPropagation(),d?.(W)},children:J(fr,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:r?.map(be=>{let Vo=be?.disabledOptionCallback?.(W);return{...be,type:"button",label:J("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:be?.label}),onClick:()=>{Vo||be?.onClick(W)},disabled:Vo}}),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:J(Gn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${Z}-${String(se??Z)}`)})]}),J(gt,{isHorizontal:!0}),_?Ye("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[J(ye,{leftIcon:J(go,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:pe,onChange:W=>fe(W.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:s?T?J(re,{}):pe?.length>P?J(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{oe()},classNames:{container:"cleen-w-max cleen-h-7"}}):J("div",{}):J("div",{})})]}):Ye("div",{className:Le("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",w?.newItemButton),style:R?.newItemButton,onClick:()=>U(!0),children:[J(go,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),J("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!D&&V&&J("div",{className:"cleen-absolute cleen-top-1.5 cleen-left-1 cleen-flex cleen-items-center cleen-justify-start cleen-pl-2.5 cleen-w-[calc(100%-40px)] cleen-h-8 cleen-bg-surface",onClick:()=>z(!0),children:J("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(Ve(V,x)??"")})})]})})};import{cn as Oe,useDebounce as cN,useOutsideClick as iN,usePositionClose as sN,ZIndex as pN}from"@cleen/ui-core";import{forwardRef as dN,useEffect as BI,useId as mN,useMemo as NI,useRef as Fi,useState as Ai}from"react";import{createPortal as uN}from"react-dom";import{cn as mn}from"@cleen/ui-core";import{jsx as ko,jsxs as kI}from"react/jsx-runtime";var TI=({options:e,selection:t,classNames:o,styles:n,onChoose:l,displaySubtextInline:r=!0,activeIndex:c=-1,getOptionId:i,onActiveIndexChange:s,...p})=>ko("div",{...p,children:ko("div",{className:mn("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",o?.container),style:n?.container,children:e?.map((d,g)=>{let m=t?.some(y=>y?.value===d?.value),v=g===c;return kI("li",{id:i?.(g),role:"option","aria-selected":m,className:mn("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":v},o?.item),style:n?.item,onMouseEnter:()=>s?.(g),onClick:()=>l?.(d,m),children:[kI("div",{className:mn("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",o?.labels,!r&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:n?.labels,children:[d?.leadingBadgeValue&&ko(we,{color:"gray",label:d?.leadingBadgeValue}),d?.icon,d?.label&&ko("span",{className:mn("cleen-font-medium cleen-text-foreground cleen-text-base",!r&&"cleen-w-full cleen-truncate"),children:d?.label}),d?.preSublabel&&ko("span",{className:mn("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!r&&"cleen-w-full cleen-truncate"),children:d?.preSublabel}),d?.sublabel&&ko("span",{className:mn("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!r&&"cleen-w-full cleen-truncate"),children:d?.sublabel})]}),m&&ko("div",{className:o?.checkContainer,style:n?.checkContainer,children:ko(Ht,{className:mn("cleen-text-primary",o?.check),style:n?.check})})]},d.value)})})});import{Fragment as hN,jsx as ke,jsxs as Oi}from"react/jsx-runtime";var fN=dN(function({id:t,name:o,label:n,labelTooltip:l,labels:r,options:c,value:i,displaySelected:s="under",isLoading:p=!1,required:d,internalFiltering:g=!1,closeOnReachingLimit:m=!0,limit:v,getCustomBadgeLabel:y,displaySubtextInline:u=!0,selectedBadgeColor:b="blue",debounceDelay:C=0,characterThreshold:x=2,disabled:I=!1,isNoDataVisibleOnCreateNew:P=!0,zIndex:k=pN.DROPDOWN,className:F,classNames:T,style:B,styles:L,infoLabels:M,menuDetachedFromPortal:S,onInputChange:w,onChange:E,onCreateNewOption:R,createNewOptionLabelString:D,onLookupBlur:z,triggerBlurOnlyWhenOpen:N=!0,menuRef:A,..._},U){let[O,$]=Ai(!1),Q=Fi(null),G=Fi(null),V=A??Q,{positionStyles:X,isMounted:H}=sN({triggerRef:G,targetRef:V,position:"bottom-left",isOpen:O,offset:4});iN({refs:[V,G],handler:()=>{$(!1),z?.()},enabled:N?O:!0});let[q,pe]=Ai(""),fe=cN(q,C),me=C?fe:q,$e=Fi(me),Pe=Fi(!1),j=()=>{Pe.current=!1,pe("")},ce=Array.isArray(i),[tt,We]=Ai([]),Be=ce?i:tt,De=["inside","inside-badge"].includes(s),ze=(oe,W=!1)=>{if(W){let se=Be.filter(Re=>Re.value!==oe.value);ce||We(se),E?.(se);return}let Z;if(v===1)Z=[oe];else{if(v&&Be.length>=v)return;Z=[...Be,oe]}ce||We(Z),E?.(Z),m&&v&&Z.length>=v&&(j(),$(!1))},Y=NI(()=>g?c?.filter(oe=>oe?.label?.match(new RegExp(me,"i"))):c,[c,me,g]),xe=NI(()=>D&&R&&!p&&q?.length>0&&!Y?.some(oe=>oe?.label===q)?typeof D=="function"?D(q):D:null,[D,R,p,q,Y]);BI(()=>{if($e.current!==me)if($e.current=me,me.length<x)$(!1);else{w?.(me);let oe=!!G.current?.contains(document.activeElement);Pe.current&&oe&&$(!0)}},[me,w,x]);let Ne=mN(),ge=oe=>`${Ne}-option-${oe}`,[qe,ot]=Ai(-1);BI(()=>{ot(-1)},[me,O]);let Ar=oe=>{let W=Y?.length??0;switch(oe.key){case"ArrowDown":if(!W)return;if(oe.preventDefault(),!O){$(!0),ot(0);return}ot(Z=>(Z+1)%W);break;case"ArrowUp":if(!W)return;if(oe.preventDefault(),!O){$(!0),ot(W-1);return}ot(Z=>(Z-1+W)%W);break;case"Home":if(!O||!W)return;oe.preventDefault(),ot(0);break;case"End":if(!O||!W)return;oe.preventDefault(),ot(W-1);break;case"Enter":{if(!O||qe<0)return;let Z=Y?.[qe];if(!Z)return;oe.preventDefault();let se=Be?.some(Re=>Re.value===Z.value);ze(Z,se);break}case"Escape":O&&(oe.preventDefault(),$(!1));break;default:break}},Dn=Oi("ul",{id:Ne,role:"listbox",className:Oe("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",T?.menu?.container),style:L?.menu?.container,children:[p?ke(re,{className:Oe("cleen-py-3",T?.menu?.loader),style:L?.menu?.loader}):!Y||Y?.length===0?!!r?.noDataFound&&(P||!xe)&&ke("div",{className:Oe("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",T?.menu?.noDataFound),style:L?.menu?.noDataFound,children:r?.noDataFound}):ke(TI,{options:Y,selection:Be,onChoose:ze,displaySubtextInline:u,activeIndex:qe,getOptionId:ge,onActiveIndexChange:ot,...T?.menu?.list,...L?.menu?.list}),xe&&Oi("div",{className:Oe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",T?.createNewOption?.container),style:L?.createNewOption?.container,children:[ke(gt,{...T?.createNewOption?.divider,...L?.createNewOption?.divider}),ke("span",{className:Oe("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",T?.createNewOption?.value),style:L?.createNewOption?.value,onClick:()=>{let oe=R?.(q);typeof oe=="boolean"&&!oe||(j(),$(!1))},children:xe})]})]});return ke("div",{className:Oe("cleen",F),style:B,children:Oi("div",{className:Oe("cleen-flex cleen-flex-col cleen-w-full",T?.container),style:L?.container,children:[n&&ke(ae,{htmlFor:t||o,required:d,tooltip:l,className:Oe("cleen-mb-1.5",T?.label?.className),classNames:T?.label?.classNames,...L?.label,children:n}),ke("div",{ref:G,className:Oe("cleen-relative cleen-flex cleen-items-center",T?.input?.container),style:L?.input?.container,children:ke(ye,{id:t||o,type:"search",autoFocus:!1,autoComplete:"off",className:Oe("cleen-w-full",T?.input?.component?.className),classNames:{...T?.input?.component?.classNames,inputContainer:Oe({"cleen-flex-wrap":De},T?.input?.component?.classNames?.inputContainer),input:Oe({"cleen-pl-2":De},T?.input?.component?.classNames?.input),leftIconContainer:Oe({"cleen-pr-0":De},T?.input?.component?.classNames?.leftIconContainer)},...L?.input?.component,leftIcon:Oi(hN,{children:[ke(qt,{}),De&&(Be||[])?.length>0&&ke("div",{className:Oe("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{$(!O)},children:s==="inside-badge"?Be?.map(oe=>ke(we,{label:oe?.label,color:"blue",variant:"semiRounded"},oe.value)):ke("span",{className:Oe("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:Be?.map(oe=>oe?.label).join(", ")})})," "]}),onFocus:()=>{me.length>=x&&q.length>=x&&$(!0)},value:q,onChange:oe=>{Pe.current=!0,pe(oe.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":O,"aria-controls":O?Ne:void 0,"aria-activedescendant":O&&qe>=0?ge(qe):void 0,onKeyDown:Ar,ref:U,required:d,disabled:I,..._})}),O&&(S?ke("div",{ref:V,children:Dn}):uN(ke("div",{className:"cleen",children:ke("div",{ref:V,className:Oe("cleen-absolute",{"cleen-opacity-0":!H}),style:{zIndex:k,top:`${X.top}px`,left:`${X.left}px`,minWidth:G.current?.offsetWidth?`${G.current.offsetWidth}px`:void 0},children:Dn})}),document.body)),s==="under"&&Be?.length>0&&ke("span",{className:Oe("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",T?.pillbadge?.container),style:L?.pillbadge?.container,children:Be?.map(oe=>ke(we,{label:y?y(oe):oe?.label,color:b,removeable:!I,onRemoveClicked:()=>{if(I)return;let W=Be?.filter(Z=>Z?.value!==oe?.value);ce||We(W),E?.(W)},...T?.pillbadge?.component,...L?.pillbadge?.component},oe.value))}),(M?.errorMessage||M?.infoMessage||M?.subtitle)&&ke(ne,{...M})]})})});import{cn as ue}from"@cleen/ui-core";import{forwardRef as gN}from"react";import yN from"react-markdown";import vN from"remark-gfm";import{jsx as de}from"react/jsx-runtime";var bN=gN(function({components:t,children:o,className:n,classNames:l,style:r,styles:c,...i},s){let p={h1:({children:d})=>de("h1",{className:ue("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:d}),h2:({children:d})=>de("h2",{className:ue("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:d}),h3:({children:d})=>de("h3",{className:ue("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:d}),h4:({children:d})=>de("h4",{className:ue("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:d}),h5:({children:d})=>de("h5",{className:ue("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),h6:({children:d})=>de("h6",{className:ue("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),p:({children:d})=>de("p",{className:ue("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:d}),a:({href:d,children:g})=>de("a",{href:d,className:ue("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:g}),ul:({children:d})=>de("ul",{className:ue("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),ol:({children:d})=>de("ol",{className:ue("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),li:({children:d})=>de("li",{className:ue("cleen-mb-1"),children:d}),blockquote:({children:d})=>de("blockquote",{className:ue("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-neutral-700 cleen-mb-4"),children:d}),code:({className:d,children:g,...m})=>d?de("code",{className:ue("cleen-font-mono cleen-text-sm"),...m,children:g}):de("code",{className:ue("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...m,children:g}),pre:({children:d})=>de("pre",{className:ue("cleen-bg-muted dark:cleen-bg-neutral-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:d}),hr:()=>de("hr",{className:ue("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:d,alt:g})=>de("img",{src:d,alt:g,className:ue("cleen-max-w-full cleen-rounded")}),strong:({children:d})=>de("strong",{className:ue("cleen-font-semibold"),children:d}),em:({children:d})=>de("em",{className:ue("cleen-italic"),children:d}),table:({children:d})=>de("div",{className:ue("cleen-overflow-x-auto cleen-mb-4"),children:de("table",{className:ue("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:d})}),thead:({children:d})=>de("thead",{className:ue("cleen-border-b cleen-border-border"),children:d}),th:({children:d})=>de("th",{className:ue("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:d}),td:({children:d})=>de("td",{className:ue("cleen-p-2 cleen-border-b cleen-border-border"),children:d}),input:({type:d,checked:g,disabled:m})=>d==="checkbox"?de("input",{type:"checkbox",checked:g,disabled:m,readOnly:!0,className:ue("cleen-mr-2 cleen-align-middle")}):de("input",{type:d})};return de("div",{ref:s,className:ue("cleen",n,l?.container),style:{...r,...c?.container},...i,children:de(yN,{...i,remarkPlugins:[vN],components:{...p,...t},children:o})})});import{cn as un,useBodyScrollLock as IN,useCleenOverlays as RI,ZIndex as CN}from"@cleen/ui-core";import{forwardRef as PN,useCallback as xN,useEffect as u1,useId as SN,useRef as wN,useState as LI}from"react";import{createPortal as MN}from"react-dom";import{jsx as Cl,jsxs as DI}from"react/jsx-runtime";var kN={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},EI=300,TN=PN(function({isOpen:t=!1,onClose:o,closeOnOverlayClick:n=!0,closeButtonIcon:l=Cl(He,{className:"cleen-size-5"}),header:r,footer:c,zIndex:i=CN.MODAL,size:s="md",color:p,p:d,gap:g,radius:m=16,className:v,classNames:y,style:u,styles:b,children:C,...x},I){let[P,k]=LI(t),[F,T]=LI(t),B=wN(null),L=SN(),{addOverlay:M,removeOverlay:S}=RI(),w=xN(()=>{k(!1),setTimeout(()=>o?.(),EI)},[o]);return u1(()=>{if(t){T(!0);let E=setTimeout(()=>k(!0),1);return()=>clearTimeout(E)}else{k(!1);let E=setTimeout(()=>T(!1),EI);return()=>clearTimeout(E)}},[t]),u1(()=>{if(t)return M(L),()=>S(L)},[M,S,t,L]),u1(()=>{let E=R=>{let{overlays:D}=RI.getState();R.key==="Escape"&&D[D.length-1]===L&&w()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[w,L]),IN(F),F?MN(DI("div",{className:un("cleen",v),style:u,ref:I,...x,children:[Cl("div",{className:un("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",y?.overlay),style:{zIndex:i,...b?.overlay},onClick:()=>{n&&w()},"aria-hidden":"true"}),Cl("div",{className:un("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",y?.container),style:{zIndex:i,...b?.container},"aria-modal":"true",role:"dialog",children:DI(he,{header:r,footer:c,color:p,p:d,gap:g,radius:m,className:un("cleen-relative cleen-shadow-xl cleen-w-full cleen-max-w-lg cleen-rounded-lg cleen-pointer-events-auto",y?.modal?.className),style:{maxWidth:typeof s=="number"?s:kN[s],...b?.modal?.style},classNames:{...y?.modal?.classNames,container:un("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",y?.modal?.classNames?.container),childrenContainer:un("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",y?.modal?.classNames?.childrenContainer)},styles:b?.modal?.styles,ref:B,children:[C,l&&Cl("div",{className:un("cleen-top-3 cleen-right-3 cleen-absolute"),children:Cl(ee,{variant:"borderless",onClick:w,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:l})})]})})]}),document.body):null});import{Fragment as BN,jsxs as FI}from"react/jsx-runtime";var AI={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}},_i={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},OI=3,_I=180,VI=15e3,gr="general",Pl={[gr]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},zI={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"},HI={"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"},xl={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=>FI(BN,{children:[FI("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`},Qe="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var f1={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},UI=({exitDuration:e=_I}={})=>{let t=f1,o=new Set,n=new Map,l=new Map,r=0,c=M=>{t={...t,...M},o.forEach(S=>S())},i=M=>{let S=n.get(M);!S||S.handle||t.paused||(S.startedAt=Date.now(),S.handle=setTimeout(()=>b(M),S.remaining))},s=M=>{let S=n.get(M);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=M=>{let S=n.get(M);S?.handle&&clearTimeout(S.handle),n.delete(M)},d=M=>{p(M.id),!(M.priority!=="normal"||M.duration===!1||M.duration<=0)&&(n.set(M.id,{duration:M.duration,remaining:M.duration,startedAt:null,handle:null,revision:++r}),i(M.id))},g=M=>{let S=l.get(M);S&&(l.delete(M),S.ids.delete(M),S.ids.size||clearTimeout(S.handle))},m=M=>{M.forEach(E=>l.delete(E));let S=t.toasts.filter(E=>!M.includes(E.id)),w=S.some(E=>!E.leaving);c({toasts:S,...!w&&{ui:f1.ui}})},v=M=>{g(M.id);let S=t.toasts.some(w=>w.id===M.id);return d(M),c({toasts:S?t.toasts.map(w=>w.id===M.id?M:w):[...t.toasts,M]}),M.id},y=(M,S)=>{let w=t.toasts.find(R=>R.id===M);if(!w||w.leaving)return;let E={...w,...S};("priority"in S||"duration"in S)&&d(E),c({toasts:t.toasts.map(R=>R.id===M?E:R)})},u=M=>{let S=t.toasts.filter(R=>M.includes(R.id)&&!R.leaving);if(!S.length)return;S.forEach(R=>p(R.id));let w=S.filter(R=>R.animationType==="none"||e<=0).map(R=>R.id),E=S.filter(R=>!w.includes(R.id)).map(R=>R.id);if(E.length){let R=t.toasts.filter(N=>!N.leaving).length;c({toasts:t.toasts.map(N=>E.includes(N.id)?{...N,leaving:!0,leavingFromCount:R}:N)});let D=new Set(E),z=setTimeout(()=>m([...D]),e);E.forEach(N=>l.set(N,{handle:z,ids:D}))}w.length&&m(w)},b=M=>u([M]);return{add:v,update:y,dismiss:b,dismissMany:u,clear:()=>u(t.toasts.map(M=>M.id)),pauseAll:()=>{t.paused||(n.forEach((M,S)=>s(S)),c({paused:!0}))},resumeAll:()=>{t.paused&&(c({paused:!1}),n.forEach((M,S)=>i(S)))},setExpanded:M=>c({ui:{...t.ui,expanded:M}}),toggleGroup:M=>{let{expandedGroups:S}=t.ui;c({ui:{...t.ui,expandedGroups:S.includes(M)?S.filter(w=>w!==M):[...S,M]}})},resetUi:()=>c({ui:f1.ui}),getTimer:M=>{let S=n.get(M);if(!S)return;let w=S.startedAt?Date.now()-S.startedAt:0;return{duration:S.duration,remaining:Math.max(0,S.remaining-w),revision:S.revision}},subscribe:M=>(o.add(M),()=>{o.delete(M)}),getSnapshot:()=>t}},le=UI();var NN=0,GI=({id:e,variant:t="default",priority:o,actions:n,duration:l,closeButton:r=!0,hideProgressBar:c,animationType:i="slide",...s})=>{let p=AI[t];return le.add({...s,id:e??`cleen-notification-${++NN}`,variant:t,actions:n,priority:o??(n?.length?"important":"normal"),duration:l??p.duration,closeButton:r,progressBar:c===void 0?p.progressBar:!c,animationType:i,createdAt:Date.now()})},RN=(e,{hideProgressBar:t,...o})=>le.update(e,{...o,...t!==void 0&&{progressBar:!t}}),fn={show:GI,update:RN,dismiss:le.dismiss,dismissMany:le.dismissMany,clear:le.clear};import{useSyncExternalStore as LN}from"react";var Vi=()=>LN(le.subscribe,le.getSnapshot,le.getSnapshot);import{useMemo as EN}from"react";var DN=()=>{let{toasts:e,paused:t}=Vi();return{toasts:EN(()=>e.filter(n=>!n.leaving),[e]),paused:t,show:fn.show,update:fn.update,dismiss:fn.dismiss,dismissMany:fn.dismissMany,clear:fn.clear}};var $I={critical:0,important:1,normal:2},h1=e=>e.filter(t=>!t.leaving),zi=e=>[...e].reverse(),qI=e=>[...e].sort((t,o)=>$I[t.priority]-$I[o.priority]),yr=e=>!!e.actions?.length&&e.priority!=="normal",XI=e=>e.category??gr,hn=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),g1=e=>e.map(hn),WI=(e,t)=>(e.leavingFromCount??0)>t,vr=(e,t,o)=>{let n=h1(e);if(n.length>t)return o(n);let l=e.filter(r=>r.leaving&&WI(r,t));return!n.length&&l.length>t?o(l).map(r=>({...r,exiting:!0})):g1(e.filter(r=>!r.leaving||!WI(r,t)))};var y1=(e,t,o)=>vr(e,o,n=>{let l=qI(zi(n)),r=l.filter(u=>u.priority==="critical"),c=l.filter(u=>u.priority!=="critical"),i=new Map;c.forEach(u=>{let b=XI(u);i.set(b,[...i.get(b)??[],u])});let s=u=>Number(i.get(u).some(yr)),p=u=>i.get(u).length,d=[...i.keys()].sort((u,b)=>s(b)-s(u)||p(b)-p(u)),g=Math.max(0,o-Math.min(r.length,1)),m=d.slice(0,g),v=[...r.slice(1),...d.slice(g).flatMap(u=>i.get(u))],y=r.slice(0,1).map(hn);return m.forEach(u=>{let b=i.get(u);y.push(b.length===1?hn(b[0]):{type:"group",key:`group-${u}`,category:u,toasts:b,expanded:t.expandedGroups.includes(u)})}),y.push({type:"footer",key:"footer",overflow:v,toasts:n}),y});var v1=(e,t,o=1/0)=>vr(e,o,n=>[...g1(n),{type:"footer",key:"footer",overflow:[],toasts:n}]);var b1=(e,t,o)=>vr(e,o,n=>{let l=zi(n);if(t.expanded)return[{type:"list",key:"list",toasts:l}];let r=l.filter(d=>d.priority==="critical"),c=l.filter(d=>d.priority!=="critical"),[i,...s]=c,p=r.map(hn);return i&&s.length?p.push({type:"deck",key:"deck",top:i,hidden:s}):i&&p.push(hn(i)),p});var KI={list:v1,stack:b1,group:y1};import{createContext as FN,useContext as AN}from"react";var I1=FN({categories:Pl,labels:xl,hiddenElements:[],now:Date.now(),paused:!1}),ve=()=>AN(I1);import{cn as ON,getTimeAgoLabel as _N}from"@cleen/ui-core";var K=(e,t,o,n)=>{let l=n?.classNames,r=n?.styles,c=e.styles?.[t]||r?.[t]?{...e.styles?.[t],...r?.[t]}:void 0;return{className:ON(o,e.classNames?.[t],l?.[t]),style:c,"data-slot":t}},kt=({className:e,style:t,...o})=>({classNames:{container:e},styles:{container:t},...o}),br=(e,t)=>e.categories[t]??{...e.categories[gr],label:t,pluralLabel:t},Hi=(e,t,o)=>{let n=Math.floor(Math.max(0,t-e));return typeof o.timeAgo=="function"?o.timeAgo(n):_N(n,o?.timeAgoStamps)},YI=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 VN}from"@cleen/ui-core";import{jsx as QI}from"react/jsx-runtime";var Ui=({toast:e})=>{let t=ve();if(t.hiddenElements.includes("badges"))return null;let o=e.priority==="critical";if(!o&&!yr(e))return null;let n=K(t,"badge",void 0,e);return QI("span",{...K(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:QI(we,{color:o?"red":"primary",variant:"full",label:o?t.labels.critical:t.labels.action,classNames:{container:VN("cleen-px-1.5 cleen-py-0 cleen-text-[10.5px] cleen-font-semibold cleen-leading-4",n.className)},styles:{container:n.style},"data-slot":n["data-slot"]})})};import{cn as ZI}from"@cleen/ui-core";import{Fragment as zN,jsx as To}from"react/jsx-runtime";var JI=({icon:e,tone:t="neutral",size:o="md",className:n,...l})=>{let r=o==="sm"?14:18;return To("span",{className:ZI("cleen-inline-flex cleen-shrink-0 cleen-items-center cleen-justify-center",o==="sm"?"cleen-size-[26px] cleen-rounded-md":"cleen-size-[34px] cleen-rounded-lg",zI[t],n),"aria-hidden":"true",...l,children:To(Se,{name:e,width:r,height:r})})},C1=({category:e,...t})=>{let o=ve(),n=br(o,e);return To(JI,{icon:n.icon,tone:n.tone,...t})},Gi=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return To(zN,{children:e.icon});if(e.category)return To(C1,{category:e.category,size:t});let o=_i[e.variant];return o?To(JI,{icon:o.name,tone:o.tone,size:t}):null},gn=({icon:e,label:t,className:o,...n})=>To("button",{type:"button","aria-label":t,title:t,className:ZI("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",o),...n,children:To(Se,{name:e,width:14,height:14,strokeWidth:2})});import{cn as P1}from"@cleen/ui-core";import{Fragment as HN,jsx as Sl,jsxs as x1}from"react/jsx-runtime";var jI=({toast:e,children:t})=>{let o=ve(),n=e.title!==void 0&&e.title!==null,l=e.icon===void 0&&(!!e.category||!!_i[e.variant]),r=Sl(Gi,{toast:e}),c=Sl(Ui,{toast:e});return x1(HN,{children:[(e.icon!==void 0||l||e.variant!=="default")&&Sl("span",{...K(o,"icon",P1("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!l}),e),children:r}),x1("div",{...K(o,"body",P1("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[n?x1("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[Sl("span",{...K(o,"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,Sl("span",{...K(o,"message",P1("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":n,"cleen-text-foreground":!n}),e),children:e.message}),t]})]})};import{useState as UN}from"react";import{jsx as GN}from"react/jsx-runtime";var eC=({toast:e})=>{let t=ve(),[o]=UN(()=>le.getTimer(e.id));if(!o)return null;let n=K(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 GN("span",{"aria-hidden":"true",...n,style:{animationDuration:`${o.duration}ms`,animationDelay:`-${o.duration-o.remaining}ms`,animationPlayState:t.paused?"paused":"running",...n.style}})};import{cn as $N}from"@cleen/ui-core";import{jsx as Wi,jsxs as $i}from"react/jsx-runtime";var qi=({toast:e,inDeck:t=!1})=>{let o=ve(),{labels:n,hiddenElements:l}=o,r=e.priority==="critical",c=!!e.actions?.length,i=()=>le.dismiss(e.id),s=g=>{g.key==="Escape"&&(g.stopPropagation(),i())},p=!!e.category&&!l.includes("meta"),d=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!l.includes("progressBar");return $i("div",{role:r?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||c?void 0:0,onKeyDown:s,...K(o,"toast",$N("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)]":r,"cleen-z-10":t},!(t&&e.leaving)&&YI(e),e.className),e),children:[$i(jI,{toast:e,children:[p&&$i("span",{...K(o,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[br(o,e.category).label," \xB7"," ",Hi(e.createdAt,o.now,n)]}),c&&$i("div",{...K(o,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((g,m)=>{let v=K(o,"action",Qe,e);return Wi(ee,{variant:g.variant??(m?"secondary":"primary"),label:g.label,onClick:()=>{g.onClick?.(e),i()},...kt(v)},`${g.label}-${m}`)}),Wi(ee,{variant:"secondary",label:n.dismiss,onClick:i,...kt(K(o,"dismissButton",Qe,e))})]})]}),e.closeButton&&Wi(gn,{icon:"X",label:n.close,onClick:i,...K(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),d&&Wi(eC,{toast:e},le.getTimer(e.id)?.revision)]})};import{Fragment as WN,jsx as Ir,jsxs as Xi}from"react/jsx-runtime";var tC="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",oC=({top:e,hidden:t})=>{let o=ve(),{labels:n}=o,l=[e.id,...t.map(r=>r.id)];return Xi(WN,{children:[Xi("div",{...K(o,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[Ir(qi,{toast:e,inDeck:!0}),Ir("span",{"aria-hidden":"true",...K(o,"deckPeek",`${tC} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&Ir("span",{"aria-hidden":"true",...K(o,"deckPeek",`${tC} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!o.hiddenElements.includes("deckMoreBar")&&Xi("div",{...K(o,"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:[Ir("span",{...K(o,"deckMoreLabel"),children:n.moreBehind(t.length)}),Xi("span",{className:"cleen-flex cleen-gap-1",children:[Ir(ee,{variant:"secondary",label:n.showAll,"aria-expanded":!1,onClick:()=>le.setExpanded(!0),...kt(K(o,"deckShowAllButton",Qe))}),Ir(ee,{variant:"borderless",label:n.dismissAll,onClick:()=>le.dismissMany(l),...kt(K(o,"deckDismissAllButton",Qe))})]})]})]})};import{cn as qN}from"@cleen/ui-core";import{Fragment as XN,jsx as Ki,jsxs as KN}from"react/jsx-runtime";var nC=({count:e})=>{let t=ve(),{labels:o,onViewAll:n}=t;if(t.hiddenElements.includes("overflowPill"))return null;let l=KN(XN,{children:[o.overflow(e),Ki("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:Ki(Se,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),r=K(t,"overflowPill",qN("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":n}));return n?Ki("button",{type:"button",onClick:()=>n(),...r,children:l}):Ki("span",{...r,children:l})};import{jsx as rC,jsxs as YN}from"react/jsx-runtime";var aC=({overflow:e,toasts:t})=>{let o=ve(),n=!o.hiddenElements.includes("dismissAllButton");return!n&&!e.length?null:YN("div",{...K(o,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[n&&rC("button",{type:"button",onClick:()=>le.dismissMany(t.map(l=>l.id)),...K(o,"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:o.labels.dismissAll}),e.length>0&&rC(nC,{count:e.length})]})};import{jsx as yn,jsxs as Yi}from"react/jsx-runtime";var Qi=({toast:e,onDismiss:t})=>{let o=ve(),n=e.actions?.[0],l=e.title!==void 0&&e.title!==null;return Yi("div",{...K(o,"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:[yn("span",{...K(o,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:yn(Gi,{toast:e,size:"sm"})}),Yi("div",{...K(o,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[Yi("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[yn("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:l?e.title:e.message}),yn(Ui,{toast:e})]}),l&&yn("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),Yi("span",{...K(o,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[n&&yn(gn,{icon:"ArrowRight",label:n.label,onClick:()=>{n.onClick?.(e),t(e.id)}}),yn(gn,{icon:"X",label:o.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as QN,useLayoutEffect as ZN,useRef as JN}from"react";var jN='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',Zi=(e,t,o)=>{let n=JN(!1);return QN(()=>{e.current?.focus({preventScroll:!0})},[e]),ZN(()=>{let i=document.activeElement;n.current&&e.current&&(!i||i===document.body)&&e.current.focus({preventScroll:!0})},[e,t]),{onFocus:()=>{n.current=!0},onBlur:i=>{let s=i.relatedTarget;s&&!i.currentTarget.contains(s)&&(n.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),o();return}if(i.key!=="Tab"||!e.current)return;let s=[...e.current.querySelectorAll(jN)],p=s[0],d=s[s.length-1];!p||!d||(i.shiftKey&&document.activeElement===p?(i.preventDefault(),d.focus()):!i.shiftKey&&(document.activeElement===d||document.activeElement===e.current)&&(i.preventDefault(),p.focus()))}}};import{useRef as eR}from"react";import{Fragment as oR,jsx as Ue,jsxs as Jt}from"react/jsx-runtime";var S1=3,tR=({toasts:e,onCollapse:t})=>{let o=eR(null),n=Zi(o,e.length,t);return Ue("div",{ref:o,tabIndex:-1,...n,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=>Ue(Qi,{toast:l,onDismiss:le.dismiss},l.id))})},lC=({category:e,toasts:t,expanded:o})=>{let n=ve(),{labels:l,onViewAll:r,hiddenElements:c}=n,i=br(n,e),s=t.map(v=>v.id),p=t.filter(yr).length,d=Math.min(...t.map(v=>v.createdAt)),g=()=>le.dismissMany(s),m=()=>le.toggleGroup(e);return Jt("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:v=>{v.key==="Escape"&&!o&&(v.stopPropagation(),g())},...K(n,"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:[Jt("div",{...K(n,"groupHeader","cleen-flex cleen-items-center cleen-gap-2.5 cleen-pb-2 cleen-pl-3 cleen-pr-10 cleen-pt-2.5"),children:[Ue(C1,{category:e,...K(n,"groupIcon")}),Jt("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[Jt("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[Ue("span",{...K(n,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:l.groupTitle(t.length,i)}),Ue("span",{...K(n,"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")&&Jt("span",{...K(n,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[p>0&&Jt(oR,{children:[l.needAction(p)," \xB7 "]}),Hi(d,n.now,l)]})]})]}),o?Ue(tR,{toasts:t,onCollapse:m}):Jt("div",{...K(n,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,S1).map(v=>Jt("div",{...K(n,"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:[Ue("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),Ue("span",{className:"cleen-min-w-0 cleen-truncate",children:v.title??v.message})]},v.id)),t.length>S1&&!c.includes("groupMore")&&Ue("span",{...K(n,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:l.more(t.length-S1)})]}),Jt("div",{...K(n,"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:[r&&Ue(ee,{variant:"primary",label:l.review(i),rightIcon:Ue(Se,{name:"ArrowRight",width:14,height:14}),onClick:()=>r(e),...kt(K(n,"groupReviewButton",Qe))}),Ue(ee,{variant:"secondary",label:o?l.collapse:l.expand,"aria-expanded":o,onClick:m,...kt(K(n,"groupToggleButton",Qe))}),Ue("span",{className:"cleen-flex-1"}),Ue(ee,{variant:"borderless",label:l.dismiss,onClick:g,...kt(K(n,"groupDismissButton",Qe))})]}),Ue(gn,{icon:"X",label:l.dismissGroup,onClick:g,...K(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as nR}from"react";import{jsx as Bo,jsxs as Ji}from"react/jsx-runtime";var cC=({toasts:e})=>{let t=ve(),{labels:o,onViewAll:n}=t,l=nR(null),r=()=>le.setExpanded(!1),c=Zi(l,e.length,r);return Ji("div",{ref:l,tabIndex:-1,role:"group","aria-label":o.region,...c,...K(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:[Ji("div",{...K(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:[Ji("span",{children:[o.listTitle(e.length)," "]}),Bo("span",{className:"cleen-flex-1"}),Bo(ee,{variant:"borderless",label:o.collapse,"aria-expanded":!0,leftIcon:Bo(Se,{name:"ChevronUp",width:14,height:14}),onClick:r,classNames:{container:Qe}})]}),Bo("div",{...K(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>Bo(Qi,{toast:i,onDismiss:le.dismiss},i.id))}),Ji("div",{...K(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:[n&&Bo(ee,{variant:"secondary",label:o.openNotifications,onClick:()=>n(),classNames:{container:Qe}}),Bo("span",{className:"cleen-flex-1"}),Bo(ee,{variant:"secondary",label:o.dismissAll,onClick:()=>le.dismissMany(e.map(i=>i.id)),classNames:{container:Qe}})]})]})};import{useEffect as rR,useState as aR}from"react";var iC=e=>{let[t,o]=aR(()=>Date.now());return rR(()=>{if(!e)return;o(Date.now());let n=setInterval(()=>o(Date.now()),VI);return()=>clearInterval(n)},[e]),t};import{cn as M1}from"@cleen/ui-core";import{forwardRef as lR,useCallback as cR,useEffect as w1,useMemo as sC,useRef as pC}from"react";import{jsx as jt}from"react/jsx-runtime";var iR=e=>{switch(e.type){case"toast":return jt(qi,{toast:e.toast},e.key);case"deck":return jt(oC,{top:e.top,hidden:e.hidden},e.key);case"list":return jt(cC,{toasts:e.toasts},e.key);case"group":return jt(lC,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return jt(aC,{overflow:e.overflow,toasts:e.toasts},e.key)}},sR=(e,t)=>jt("div",{"aria-hidden":"true",className:M1("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:iR(e)},e.key),pR=lR(function({layout:t="list",maxVisible:o=OI,position:n="bottom-right",categories:l,onViewAll:r,labels:c,classNames:i,styles:s,hiddenElements:p,className:d,style:g,...m},v){let y=Vi(),u=h1(y.toasts).length,b=iC(y.toasts.length>0),C=pC(null),x=pC(!1),I=sC(()=>KI[t](y.toasts,y.ui,o),[t,y.toasts,y.ui,o]),P=sC(()=>({categories:{...Pl,...l},labels:{...xl,...c},classNames:i,styles:s,hiddenElements:p??[],onViewAll:r,now:b,paused:y.paused}),[l,c,i,s,p,r,b,y.paused]);w1(()=>{let{expanded:B,expandedGroups:L}=y.ui,M=y.toasts.some(S=>S.leaving);u<=o&&!M&&(B||L.length)&&le.resetUi()},[u,o,y.toasts,y.ui]);let k=cR(()=>{let B=document.activeElement,L=!!(B&&C.current?.contains(B))&&!!B?.matches(":focus-visible");x.current||L?le.pauseAll():le.resumeAll()},[]);w1(()=>{u||(x.current=!1),k()},[u,k]),w1(()=>{let B=L=>{x.current&&!C.current?.contains(L.target)&&(x.current=!1,k())};return document.addEventListener("pointermove",B,{passive:!0}),()=>document.removeEventListener("pointermove",B)},[k]);let F=B=>{x.current=B,k()},T=()=>requestAnimationFrame(k);return jt("div",{className:M1("cleen",d),style:g,ref:v,children:jt(I1.Provider,{value:P,children:jt("div",{role:"region","aria-live":"polite","aria-label":P.labels.region,ref:C,onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),onFocus:T,onBlur:T,...K(P,"region",M1("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",HI[n])),...m,children:I.map(B=>sR(B,n.endsWith("left")?"cleen-items-start":n.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as dC}from"@cleen/ui-core";import{forwardRef as dR,useState as mR}from"react";import{jsx as k1,jsxs as uR}from"react/jsx-runtime";var T1=dR(({totalPages:e,labels:t,onGoToPage:o,classNames:n,styles:l,...r},c)=>{let[i,s]=mR(""),p=()=>{let g=parseInt(i,10);isNaN(g)||(o?.(Math.min(Math.max(g,1),e)),s(""))},d=g=>{g.key==="Enter"?p():g.key==="Escape"&&s("")};return k1("div",{className:"cleen",...r,children:uR("div",{className:dC("cleen-flex cleen-items-center cleen-gap-2",n?.container),style:l?.container,children:[k1("span",{className:dC("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",n?.label),style:l?.label,children:t?.goToPage}),k1(ye,{ref:c,type:"number",min:1,max:e,value:i,onChange:g=>s(g.target.value),onKeyDown:d,...n?.input,...l?.input})]})})});import{cn as ji,useOutsideClick as fR,usePositionClose as hR}from"@cleen/ui-core";import{forwardRef as gR,useRef as mC,useState as uC}from"react";import{createPortal as yR}from"react-dom";import{jsx as Cr,jsxs as bR}from"react/jsx-runtime";var vR=[10,20,50,100],B1=gR(({pageSize:e,pageSizes:t=vR,labels:o,onPageSizeChange:n,classNames:l,styles:r,...c},i)=>{let[s,p]=uC(e??t?.[0]??void 0),[d,g]=uC(!1),m=mC(null),v=mC(null),{positionStyles:y,isMounted:u}=hR({triggerRef:m,targetRef:v,isOpen:d,position:"top-left"});return fR({refs:[m,v],handler:()=>g(!1),enabled:d}),Cr("div",{className:"cleen",ref:i,...c,children:bR("div",{className:ji("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",l?.container),style:r?.container,children:[Cr(Ie,{label:o?.itemsPerPage?.(s),classNames:{labelContainer:"cleen-min-w-max"},children:Cr("div",{className:ji("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:r?.trigger,onClick:()=>g(b=>!b),ref:m,children:s})}),d&&yR(Cr("div",{className:"cleen",children:Cr("div",{ref:v,className:ji("cleen-flex cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute cleen-z-50",{"cleen-opacity-0":!u},l?.menu),style:{top:`${y.top}px`,left:`${y.left}px`,...r?.menu},children:t?.filter(b=>b!==s)?.map(b=>Cr("div",{className:ji("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:r?.menuItem,onClick:()=>{p(b),n?.(b),g(!1)},children:b},b))})}),document.body)]})})});var fC={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as No}from"@cleen/ui-core";import{forwardRef as IR,useCallback as es,useMemo as CR,useRef as PR}from"react";import{jsx as Ze,jsxs as SR}from"react/jsx-runtime";var xR=IR(({currentPage:e,totalPages:t,pageSize:o,pageSizes:n,hasGotoPage:l=!0,hasPageSizeSelector:r=!0,onPageChange:c,onPageSizeChange:i,labels:s=fC,classNames:p,styles:d,...g},m)=>{let v=PR(null),y=es(()=>{e<t&&c?.(e+1)},[e,t,c]),u=es(()=>{e>1&&c?.(e-1)},[e,c]),b=es(I=>Ze("span",{className:No("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",p?.pageButton,I===e?p?.activePageButton:""),style:{...d?.pageButton,...I===e?d?.activePageButton:{}},onClick:()=>c?.(I),children:I},`page-${I}`),[e,c,p,d]),C=es(I=>Ze("span",{className:No("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:d?.ellipsis,onClick:()=>v.current?.focus(),children:"..."},I),[p,d]),x=CR(()=>{if(isNaN(e)||isNaN(t))return[];let I=[];if(I.push(Ze(Ie,{label:s.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ze("span",{className:No("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:d?.navButton,onClick:u,children:Ze(Ut,{})})},"prev")),t<=7)for(let P=1;P<=t;P++)I.push(b(P));else if(I.push(b(1)),e<=3){for(let P=2;P<5;P++)I.push(b(P));I.push(C("dots-end")),I.push(b(t))}else if(e>=t-2){I.push(C("dots-start"));for(let P=t-3;P<=t;P++)I.push(b(P))}else I.push(C("dots-start")),I.push(b(e-1)),I.push(b(e)),I.push(b(e+1)),I.push(C("dots-end")),I.push(b(t));return I.push(Ze(Ie,{label:s.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ze("span",{className:No("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:d?.navButton,onClick:y,children:Ze(mt,{})})},"next")),I},[e,t,s,p,d,C,b,y,u]);return Ze("div",{className:"cleen",ref:m,...g,children:SR("div",{className:No("cleen-flex cleen-justify-between cleen-gap-4",p?.container),style:d?.container,children:[r?Ze(B1,{pageSize:o,labels:s,onPageSizeChange:i,pageSizes:n,className:No("cleen-flex-1",p?.pageSizeSelector?.className),classNames:p?.pageSizeSelector?.classNames,...d?.pageSizeSelector}):Ze("div",{className:"cleen-flex-1"}),Ze("div",{className:No("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",p?.buttonsContainer),style:d?.buttonsContainer,children:x}),l?Ze(T1,{ref:v,totalPages:t,onGoToPage:c,labels:s,className:No("cleen-flex cleen-flex-1 cleen-justify-end",p?.goToPage?.className),classNames:p?.goToPage?.classNames,...d?.goToPage}):Ze("div",{className:"cleen-flex-1"})]})})});import{cn as N1,useDisclosure as wR,useOutsideClick as MR,usePositionClose as kR,ZIndex as TR}from"@cleen/ui-core";import{forwardRef as BR,useRef as hC}from"react";import{createPortal as NR}from"react-dom";import{jsx as R1,jsxs as RR}from"react/jsx-runtime";var wl=BR(function({isOpen:t,onOpenChange:o,content:n,position:l="bottom-left",offset:r,zIndex:c=TR.POPOVER,portalContainer:i,children:s,className:p,classNames:d,style:g,styles:m,...v},y){let{isOpen:u,toggle:b,close:C}=wR({value:t,setValue:o}),x=hC(null),I=hC(null),{positionStyles:P,isMounted:k}=kR({triggerRef:x,targetRef:I,position:l,isOpen:u,offset:r,container:i});MR({refs:[x,I],handler:C,enabled:u});let F=T=>{T.stopPropagation(),b()};return RR("div",{className:N1("cleen",p),style:g,ref:y,...v,children:[R1("div",{ref:x,onClick:F,className:N1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:s}),u&&NR(R1("div",{className:"cleen",onClick:T=>T.stopPropagation(),onPointerDown:T=>T.stopPropagation(),onMouseDown:T=>T.stopPropagation(),onTouchStart:T=>T.stopPropagation(),children:R1("div",{ref:I,className:N1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!k},d?.popover),style:{zIndex:c,top:`${P.top}px`,left:`${P.left}px`,...m?.popover},onClick:T=>T.stopPropagation(),children:n})}),i??document.body)]})});import{cn as gC}from"@cleen/ui-core";import{forwardRef as LR,useEffect as ER,useState as DR}from"react";import{jsx as ts,jsxs as yC}from"react/jsx-runtime";var FR={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},vC=LR(({isFullscreen:e,percentage:t,duration:o=1e3,radius:n,stroke:l=16,size:r="md",color:c="rgb(var(--cleen-primary))",emptyColor:i="rgb(var(--cleen-neutral-200))",textColor:s="rgb(var(--cleen-foreground))",textHidden:p=!1,fontSize:d,renderText:g,className:m,classNames:v,style:y,styles:u,...b},C)=>{let x=n??FR[r]/2,I=x-l/2,P=I*2*Math.PI,[k,F]=DR(0);ER(()=>{let B=null;if(o===0){F(t);return}let L=M=>{B||(B=M);let S=M-B,w=Math.min(S/o*t,t);F(w),w<t&&requestAnimationFrame(L)};requestAnimationFrame(L)},[t,o]);let T=P-k/100*P;return ts("div",{ref:C,className:gC("cleen",m),style:y,...b,children:yC("div",{className:gC("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},v?.container),style:u?.container,children:[yC("svg",{height:x*2,width:x*2,style:{transform:"rotate(-90deg)"},children:[ts("circle",{stroke:i,fill:"transparent",strokeWidth:l,r:I,cx:x,cy:x}),ts("circle",{stroke:c,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:P,strokeDashoffset:T,r:I,cx:x,cy:x})]}),!p&&ts("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:d??x/2.5,color:s},children:g?g(k):`${Math.round(k)}%`})]})})});vC.displayName="ProgressCircle";import{cn as st}from"@cleen/ui-core";import{useEffect as AR,useState as OR}from"react";import{Fragment as bC,jsx as eo,jsxs as Ml}from"react/jsx-runtime";var _R=({horizontal:e,boxes:t,selectedBox:o,onBoxClick:n,leftElement:l,rightElement:r,leftIcon:c,leftIconName:i,rightIconName:s,className:p,classNames:d,style:g,styles:m,...v})=>{let[y,u]=OR(o);AR(()=>{u(o)},[o]);let b=(P,k)=>Ml(bC,{children:[l&&l(P),c||(i?eo(Se,{name:i,className:st("cleen-w-5 cleen-h-5",k?"cleen-text-primary":"cleen-text-neutral-700",d?.leftIcon),style:m?.leftIcon}):null)]}),C=(P,k)=>eo("span",{className:st("cleen-font-semibold",k?"cleen-text-primary":"cleen-text-neutral-700",d?.label),style:m?.label,children:P?.label}),x=(P,k)=>eo("span",{className:st("cleen-font-semibold cleen-text-16px",k?"cleen-text-primary":"cleen-text-neutral-700",d?.subLabel),style:m?.subLabel,children:P?.subLabel}),I=(P,k)=>Ml(bC,{children:[r&&r(P),s&&eo(Se,{name:s,className:st("cleen-w-5 cleen-h-5",k?"cleen-text-primary":"cleen-text-neutral-700",d?.rightIcon),style:m?.rightIcon})]});return eo("div",{className:st("cleen",p),style:g,...v,children:e?eo("div",{className:st("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",d?.container),style:m?.container,children:t?.map(P=>{let k=P?.id===y?.id;return Ml("div",{className:st("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",k?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",d?.box),style:m?.box,onClick:()=>{u(P),n?.(P)},children:[b(P,k),P?.label&&C(P,k),P?.subLabel&&x(P,k),I(P,k)]},P?.id)})}):eo("div",{className:st("cleen-grid cleen-gap-3 cleen-w-full",d?.container),style:{gridTemplateColumns:"1fr auto 1fr",...m?.container},children:t?.map(P=>{let k=P?.id===y?.id;return Ml("div",{className:st("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",k?"cleen-bg-primary-100 cleen-border-muted-foreground":"cleen-bg-surface cleen-border-border",d?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...m?.box},onClick:()=>{u(P),n?.(P)},children:[eo("div",{className:st("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",d?.leftIconContainer),style:m?.leftIconContainer,children:b(P,k)}),eo("div",{className:st("cleen-flex cleen-items-center cleen-justify-center",d?.labelContainer),style:m?.labelContainer,children:P?.label&&C(P,k)}),Ml("div",{className:st("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",d?.rightIconContainer),style:m?.rightIconContainer,children:[P?.subLabel&&x(P,k),I(P,k)]})]},P?.id)})})})};import{cn as bt}from"@cleen/ui-core";import{forwardRef as HR,useEffect as UR,useId as GR,useRef as $R,useState as WR}from"react";import{cn as IC}from"@cleen/ui-core";import{forwardRef as VR}from"react";import{jsx as CC,jsxs as zR}from"react/jsx-runtime";var os=VR(function({checked:t,className:o,classNames:n,style:l,styles:r,...c},i){return zR("div",{className:IC("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",o),style:l,children:[CC("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...c}),CC("span",{className:IC("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",n?.innerCircle),style:r?.innerCircle})]})});import{jsx as Tt,jsxs as ns}from"react/jsx-runtime";var qR=HR(function({required:t,radios:o,label:n,labelTooltip:l,className:r,classNames:c,style:i,styles:s,name:p,direction:d="vertical",radioPosition:g="left",defaultActiveId:m,value:v,infoLabels:y,onChange:u},b){let C=v!==void 0,[x,I]=WR(m??o[0]?.id),P=GR(),k=`${P}-label`,F=p??`cleen-radio-group-${P}`;UR(()=>{!C&&m!==void 0&&I(m)},[m,C]);let T=C?v:x,B=N=>T!=null&&T==N,L=N=>{C||I(N),u?.(N)},M=$R([]),S=o?.findIndex(N=>!N.disabled&&B(N.id)),w=o?.findIndex(N=>!N.disabled),E=S>=0?S:Math.max(w,0),R=N=>{let A=o[N];!A||A.disabled||(L(A.id),M.current[N]?.focus())},D=(N,A)=>{let _=o.length;for(let U=1;U<_;U++){let O=(N+A*U+_)%_;if(!o[O]?.disabled)return O}return N},z=(N,A)=>{if(o.length)switch(N.key){case"ArrowDown":case"ArrowRight":N.preventDefault(),R(D(A,1));break;case"ArrowUp":case"ArrowLeft":N.preventDefault(),R(D(A,-1));break;default:break}};return Tt("div",{className:bt("cleen",r),style:i,ref:b,children:ns("div",{className:c?.container,style:s?.container,children:[n&&Tt(ae,{id:k,htmlFor:P,required:t,tooltip:l,className:bt("cleen-mb-1.5",c?.label?.className),classNames:c?.label?.classNames,...s?.label,children:n}),Tt("div",{id:P,role:"radiogroup","aria-labelledby":n?k:void 0,className:bt("cleen-flex cleen-flex-wrap cleen-gap-2.5",d==="vertical"&&"cleen-flex-col cleen-w-fit",c?.radios),style:s?.radios,children:o?.map((N,A)=>{let _=`${P}-${A}`,U=N.radioPosition??g,O=!!N.disabled;return ns("div",{className:bt("cleen-flex cleen-gap-2 cleen-p-5 cleen-border cleen-border-border cleen-rounded-xl cleen-transition-all cleen-duration-200",O?"cleen-cursor-not-allowed":"hover:cleen-bg-muted hover:cleen-border-neutral-300 cleen-cursor-pointer",d==="horizontal"&&"cleen-flex-1",B(N?.id)&&"cleen-border-primary hover:cleen-border-primary",c?.radioContainer,N?.className,B(N?.id)&&c?.radioActive),style:{...s?.radioContainer,...N?.style},onClick:$=>{!O&&$.target instanceof Element&&!$.target.closest("label, input, a, button")&&M.current[A]?.click()},children:[N.leftIcon,U==="left"&&Tt(os,{ref:$=>{M.current[A]=$},id:_,name:F,value:N.id,checked:B(N.id),disabled:O,tabIndex:A===E?0:-1,onChange:()=>L(N.id),onKeyDown:$=>z($,A),className:bt(O&&"cleen-opacity-50",c?.radioOuterCheckBox,N?.classNames?.outerCheckBox),style:{...s?.radioOuterCheckBox,...N?.styles?.outerCheckBox}}),ns("label",{htmlFor:_,className:bt("cleen-flex-1",O?"cleen-cursor-not-allowed":"cleen-cursor-pointer",c?.radioLabelsContainer,N?.classNames?.labelsContainer),style:{...s?.radioLabelsContainer,...N?.styles?.labelsContainer},children:[ns("div",{className:bt("cleen-flex cleen-items-center cleen-gap-1",O&&"cleen-opacity-50"),children:[Tt("span",{className:bt("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",c?.radioTitle,N?.classNames?.title),style:{...s?.radioTitle,...N?.styles?.title},children:N.title}),Tt("span",{className:bt("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",c?.radiotPostTitle,N?.classNames?.postTitle),style:{...s?.radiotPostTitle,...N?.styles?.postTitle},children:N.postTitle})]}),Tt("span",{className:bt("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",c?.radioSubTitle,N?.classNames?.subTitle),style:{...s?.radioSubTitle,...N?.styles?.subTitle},children:N?.subTitle})]}),U==="right"&&Tt(os,{ref:$=>{M.current[A]=$},id:_,name:F,value:N.id,checked:B(N.id),disabled:O,tabIndex:A===E?0:-1,onChange:()=>L(N.id),onKeyDown:$=>z($,A),className:bt(O&&"cleen-opacity-50",c?.radioOuterCheckBox),style:s?.radioOuterCheckBox}),U==="hidden"&&Tt(os,{ref:$=>{M.current[A]=$},id:_,name:F,value:N.id,checked:B(N.id),disabled:O,tabIndex:A===E?0:-1,onChange:()=>L(N.id),onKeyDown:$=>z($,A),className:"cleen-sr-only"}),N.rightIcon]},N?.id)})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&Tt(ne,{...y})]})})});import{cn as Pr,ColorHelpers as XR}from"@cleen/ui-core";import{forwardRef as KR,useRef as YR,useState as QR}from"react";import{jsx as vn,jsxs as PC}from"react/jsx-runtime";var ZR=KR(function({id:t,required:o,label:n,labelTooltip:l,labels:r,infoLabels:c,value:i,onChange:s,amount:p=5,options:d=[],gap:g,size:m=36,readonly:v,color:y="rgb(var(--cleen-primary))",className:u,style:b,classNames:C,styles:x,...I},P){let[k,F]=QR(0),T=i!==void 0,B=T?i:k,L=d?.length>0?d:Array.from({length:p},(N,A)=>A+1),M=YR([]),S=L.findIndex(N=>N===B),w=S>=0?S:0,E=N=>{T||F(N),s?.(N)},R=N=>{let A=L[N];A!==void 0&&(E(A),M.current[N]?.focus())},D=(N,A)=>{if(v)return;let _=L.length;if(_)switch(N.key){case"ArrowRight":case"ArrowUp":N.preventDefault(),R((A+1)%_);break;case"ArrowLeft":case"ArrowDown":N.preventDefault(),R((A-1+_)%_);break;case"Home":N.preventDefault(),R(0);break;case"End":N.preventDefault(),R(_-1);break;default:break}},z=typeof n=="string"?n:"Rating";return vn("div",{className:Pr("cleen",u),style:b,ref:P,...I,children:PC("div",{className:Pr("cleen-space-y-2",C?.container),style:x?.container,children:[n&&vn(ae,{htmlFor:t,required:o,tooltip:l,className:Pr("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...x?.label,children:n}),PC("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[vn("div",{role:"radiogroup","aria-label":z,className:Pr("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...g?{gap:g}:{},...x?.list},children:L?.map((N,A)=>vn("button",{id:t,ref:_=>{M.current[A]=_},role:"radio","aria-checked":B===N,"aria-label":`${N}`,tabIndex:A===w?0:-1,onClick:()=>E(N),onKeyDown:_=>D(_,A),className:Pr("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",v&&"cleen-cursor-default cleen-pointer-events-none",C?.item),style:{width:m,height:m,...B===N?{borderColor:y,backgroundColor:XR.trasparentize(y,.9),color:y}:{},...x?.item},type:"button",children:vn("span",{className:Pr("cleen-font-medium cleen-text-sm",C?.value),style:x?.value,children:N})},N))}),r?.helperText&&vn("span",{className:"cleen-text-sm cleen-text-neutral-600",children:r.helperText})]}),(c?.errorMessage||c?.infoMessage||c?.subtitle)&&vn(ne,{...c})]})})});import{useState as JR}from"react";import{components as jR}from"react-select";import{jsx as L1,jsxs as xC}from"react/jsx-runtime";var SC=e=>{let[t,o]=JR(!1),n=e.data;return L1("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:L1(jR.Option,{...e,children:xC("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[xC("div",{className:"cleen-flex-1",children:[n?.label,n?.sublabel&&L1("p",{className:"cleen-text-xs",children:n?.sublabel})]}),typeof n?.icon=="function"?n.icon({...e,isHovered:t}):n?.icon]})})})};import{components as eL}from"react-select";import{jsx as E1,jsxs as tL}from"react/jsx-runtime";var wC=e=>{let t=e.data;return E1(eL.SingleValue,{...e,children:tL("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[E1("p",{children:t?.label}),t?.sublabel&&E1("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as kl,ZIndex as NC}from"@cleen/ui-core";import{forwardRef as rL,useId as aL,useState as RC}from"react";import lL from"react-select";import{components as oL}from"react-select";import{jsx as D1,jsxs as MC}from"react/jsx-runtime";var kC=({isLoading:e,inputValue:t,options:o,createNewOptionCallback:n,createNewOptionLabelStringCb:l,children:r,...c})=>{let i=t?.trim().toLowerCase(),s=o?.some(p=>p?.labelString?p.labelString.toLowerCase()===i:typeof p?.label=="string"?p.label.toLowerCase()===i:!1);return D1("div",{className:"cleen",children:MC(oL.MenuList,{options:o,...c,children:[r,n&&!e&&t&&t?.length>0&&!s&&MC("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[D1(gt,{}),D1("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{n(t)},children:l?.(t)||t})]})]})})};import{components as nL}from"react-select";import{jsx as TC}from"react/jsx-runtime";var BC=({isLoading:e,noDataFound:t,...o})=>TC(nL.NoOptionsMessage,{...o,children:e?TC(re,{}):t||"No data found"});import{jsx as Ro,jsxs as EC}from"react/jsx-runtime";var LC=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),cL=rL(function({label:t,labelTooltip:o,sublabel:n,id:l,name:r,required:c,className:i,classNames:s,isLoading:p=!1,disabled:d,emboldenOptions:g=!1,labels:m,components:v,style:y,styles:u,infoLabels:b,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...I},P){let[k,F]=RC(!1),[T,B]=RC(""),L=aL(),M=I.inputId??l??r??L,S=(E,R)=>{if(!LC(E.data))return!1;let{labelString:D,label:z}=E.data;return D?D.toLowerCase().includes(R.toLowerCase()):typeof z=="string"?z.toLowerCase().includes(R.toLowerCase()):!1},w=E=>LC(E)?E.labelString??(typeof E.label=="string"?E.label:""):"";return Ro("div",{className:kl("cleen",i),style:y,ref:P,children:EC("div",{className:kl("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",s?.cleenContainer),style:u?.cleenContainer,children:[(t||n)&&EC("div",{className:kl("cleen-flex cleen-flex-col cleen-gap-1",s?.labels?.container),style:u?.labels?.container,children:[t&&Ro(ae,{htmlFor:M,required:c,tooltip:o,...s?.labels?.label,...u?.labels?.label,children:t}),n&&Ro("span",{className:kl("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",s?.labels?.sublabel),style:u?.labels?.sublabel,children:n})]}),Ro(lL,{...C&&{menuIsOpen:k,inputValue:T,onInputChange:E=>B(E),onMenuOpen:()=>F(!0),onMenuClose:()=>F(!1)},...!I.filterOption&&{filterOption:S},...!I.getOptionLabel&&{getOptionLabel:w},id:l||r,classNames:s,isDisabled:d,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:M,className:kl("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",s?.inputOuterContainer),styles:{...u,control:(E,R)=>{let D={...E,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:g&&R.hasValue?"600":"400",borderColor:b?.errorMessage?"rgba(var(--cleen-error), 0.7)":"rgb(var(--cleen-border))",color:R.isDisabled?"rgb(var(--cleen-neutral-500))":"rgb(var(--cleen-foreground))",backgroundColor:R.isDisabled?"rgb(var(--cleen-neutral-100))":"rgba(var(--cleen-background))",boxShadow:R.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:C?"rgba(var(--cleen-foreground))":"transparent","&:hover":{borderColor:b?.errorMessage?"rgba(var(--cleen-error))":"rgb(var(--cleen-border))"}};return u?.control?u?.control(D,R):D},menuPortal:(E,R)=>{let D={...E,zIndex:NC.SELECT,...u?.menuPortal};return u?.menuPortal?u?.menuPortal(D,R):D},menu:(E,R)=>{let D={...E,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:NC.SELECT,...u?.menu};return u?.menu?u?.menu(D,R):D},option:(E,R)=>{let D={...E,backgroundColor:R.isSelected?"rgba(var(--cleen-primary))":R.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:R.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-foreground))",fontWeight:g?"600":"400","&:hover":R.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:R.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 u?.option?u?.option(D,R):D},menuList:(E,R)=>{let D={...E,"::-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,...u?.menuList};return u?.menuList?u?.menuList(D,R):D},singleValue:(E,R)=>{let D={...E,color:R.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return u?.singleValue?u?.singleValue(D,R):D},input:(E,R)=>{let D={...E,color:"rgba(var(--cleen-foreground))"};return u?.input?u?.input(D,R):D}},components:{IndicatorSeparator:()=>null,SingleValue:E=>Ro(wC,{...E}),NoOptionsMessage:E=>Ro(BC,{isLoading:p,noDataFound:m?.noDataFound,...E}),MenuList:E=>Ro(kC,{isLoading:p,inputValue:T,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...E}),Option:SC,...v}}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&Ro(ne,{...b})]})})});import{jsx as DC,jsxs as iL}from"react/jsx-runtime";function FC({children:e,title:t,className:o="",renderHeader:n}){return iL("div",{className:`cleen-w-full cleen-h-full ${o}`,"data-testid":`drawer-container-${t}`,children:[n?n(t):DC("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),DC("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as to}from"@cleen/ui-core";import{forwardRef as sL,useState as pL}from"react";import{Fragment as fL,jsx as pt,jsxs as rs}from"react/jsx-runtime";function dL({icon:e,iconSrc:t,iconName:o,iconSize:n=24,title:l,className:r,style:c}){return e?pt("span",{className:to("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",r),style:{width:n,height:n,...c},children:e}):t?pt("img",{src:t,alt:l,width:n,height:n,className:r,style:c}):o?pt(Se,{name:o,width:n,height:n,className:r,style:c}):null}function AC({item:e,depth:t,iconSize:o=24,classNames:n,styles:l}){let[r,c]=pL(!1),i={...e,classNames:{...n,...e.classNames},styles:{...l,...e.styles}},s=Array.isArray(i?.items)&&i.items.length>0,p=i?.iconSize??o,d=t>0?{paddingLeft:12+t*28}:{},g=rs(fL,{children:[rs("div",{className:to("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[pt(dL,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:p,title:i?.name,className:to("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}),pt("span",{className:to("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)&&pt(we,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return s?rs("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[rs("summary",{className:to("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:{...d,...i?.styles?.parentItemContainer},onClick:()=>c(m=>!m),children:[g,pt(Se,{name:"ChevronDown",className:to("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":r},i?.classNames?.chevron),style:i?.styles?.chevron})]}),pt("div",{className:to("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(m=>pt(AC,{item:m,depth:t+1,iconSize:o,classNames:n,styles:l},m?.id??m?.name))})]}):pt("div",{className:to("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:{...d,...i?.styles?.container},onClick:()=>i?.onClick?.(i),children:g})}var mL=sL(function({title:t,icon:o,iconName:n,iconSrc:l,iconSize:r=24,badgeColor:c="gray",badgeCount:i,items:s,onClick:p,isActive:d=!1,disabled:g,className:m,classNames:v,style:y,styles:u},b){let C={id:"root",name:t,icon:o,iconName:n,iconSrc:l,iconSize:r,badgeColor:c,badgeCount:i,isActive:d,disabled:g,onClick:p?()=>p():void 0,classNames:v,styles:u,items:s};return pt("div",{className:to("cleen",m),style:y,ref:b,children:pt(AC,{item:C,depth:0,iconSize:r,classNames:v,styles:u})})}),uL=mL;import{cn as oo}from"@cleen/ui-core";import{useEffect as vL,useRef as bL,useState as IL}from"react";import{cn as Tl}from"@cleen/ui-core";import{useMemo as hL}from"react";import{Link as gL}from"react-router-dom";import{jsx as Bl,jsxs as yL}from"react/jsx-runtime";function Nl({item:e,activeId:t,onClick:o,countBadge:n,classNames:l,styles:r,renderIcon:c}){let i=t===e?.id,s=hL(()=>e?c?c(e,i):e.icon?e.icon:e.iconSrc?Bl("img",{src:e.iconSrc,alt:e?.name||e?.label,className:Tl("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,i&&"cleen-text-primary"),style:r?.icon}):e.iconName?Bl(Se,{name:e.iconName,className:Tl("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:r?.icon}):null:null,[e,i,c,l?.icon,r?.icon]),p=yL("div",{"data-testid":`nav-item-${e?.id}`,className:Tl("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:r?.container,onClick:()=>{e?.path||o?.(e)},children:[s,n&&Bl("div",{className:Tl("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:r?.badge,children:n})]});return Bl(Ie,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:Tl("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...r?.tooltip,label:e?.label,children:e?.path?Bl(gL,{to:e.path,children:p}):p})}import{jsx as no,jsxs as bn}from"react/jsx-runtime";function OC({navigationItems:e,bottomNavigationItems:t=[],drawerContent:o={},logo:n,onLogoClick:l,userAvatar:r,userInfo:c,drawerFooter:i,drawerWidth:s=330,direction:p="right",defaultActiveId:d=null,activeId:g,onActiveChange:m,closeOnOutsideClick:v=!0,closeOnBlur:y=!0,className:u,classNames:b,style:C,styles:x,renderSidebarItem:I}){let[P,k]=IL(d),F=bL(null),T=g!==void 0?g:P,B=!!T,L=S=>{let w=T===S.id?null:S.id;g===void 0&&k(w),m?.(w)};vL(()=>{if(!v||!B)return;let S=w=>{F.current&&!F.current.contains(w.target)&&(g===void 0&&k(null),m?.(null))};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[v,B,g,m]);let M=S=>{!y||!B||F.current&&!F.current.contains(S.relatedTarget)&&(g===void 0&&k(null),m?.(null))};return bn("div",{className:oo("cleen",u),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:p==="left"?"row-reverse":"row",...C},ref:F,onBlur:M,tabIndex:y?0:void 0,children:[bn("div",{className:oo("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",b?.navigation),style:x?.navigation,children:[n&&no("div",{className:oo("cleen-flex cleen-justify-center cleen-items-center cleen-pt-8 cleen-pb-6 cleen-w-full cleen-cursor-pointer",b?.logo),style:x?.logo,onClick:l,children:n}),bn("div",{className:oo("cleen-flex cleen-flex-col cleen-flex-1 cleen-justify-between cleen-gap-2 cleen-px-2 cleen-overflow-y-auto cleen-no-scrollbar",b?.navigationItems),style:x?.navigationItems,children:[no("nav",{className:oo("cleen-flex cleen-flex-col cleen-gap-2",b?.upperNavigationItemsWrapper),style:x?.upperNavigationItemsWrapper,children:e.map(S=>bn("div",{children:[I?I(S,T===S.id,L):no(Nl,{item:S,activeId:T,onClick:L,countBadge:S.badgeCount,classNames:{...b?.navigationItem,...S?.classNames},styles:{...x?.navigationItem,...S?.styles}}),S?.withBottomDivider&&no("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},S.id))}),bn("div",{className:oo("cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",b?.bottomNavigationItemsWrapper),style:x?.bottomNavigationItemsWrapper,children:[t.map(S=>bn("div",{children:[I?I(S,T===S.id,L):no(Nl,{item:S,activeId:T,onClick:L,countBadge:S.badgeCount,classNames:{...b?.navigationItem,...S?.classNames},styles:{...x?.navigationItem,...S?.styles}}),S?.withBottomDivider&&no("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},S.id)),r&&no("div",{className:"cleen-mt-6 cleen-mb-8",children:r})]})]})]}),bn("div",{className:oo("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":B&&p==="right","cleen-border-l cleen-border-l-border":B&&p==="left"},b?.drawer),style:{...x?.drawer,width:B?`${s}px`:"0px",visibility:B?"visible":"hidden"},children:[T&&o[T]&&no("div",{className:oo("cleen-flex-1 cleen-overflow-auto",b?.drawerContent),style:x?.drawerContent,children:o[T]}),T&&(i||c)&&no("div",{className:oo("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",b?.drawerFooter),style:x?.drawerFooter,children:typeof i=="function"?i(T):i||c})]})]})}var te=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as _C}from"@cleen/ui-core";import{forwardRef as CL}from"react";import{jsx as VC}from"react/jsx-runtime";var PL={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"},xL=CL(function({width:t,height:o,roundness:n="md",variant:l="default",className:r,style:c},i){let s=te(l),p={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...o!==void 0?{height:typeof o=="number"?`${o}px`:o}:{},...c};return VC("div",{ref:i,className:_C("cleen",r),children:VC("div",{className:_C("cleen-bg-muted",PL[n],t===void 0&&"cleen-w-full",o===void 0&&"cleen-h-4",s),style:p})})});import{cn as F1}from"@cleen/ui-core";import{forwardRef as SL}from"react";import{jsx as as,jsxs as wL}from"react/jsx-runtime";var A1=SL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let c=te(n);return as("div",{ref:r,className:F1("cleen",t),style:o,children:as("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((i,s)=>wL("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[as("div",{className:F1("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",c)}),as("div",{className:F1("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",c)})]},s))})})});import{cn as zC}from"@cleen/ui-core";import{forwardRef as ML}from"react";import{jsx as O1}from"react/jsx-runtime";var _1=ML(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let c=te(n);return O1("div",{ref:r,className:zC("cleen",t),style:o,children:O1("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((i,s)=>O1("div",{className:zC("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",c)},s))})})});import{cn as HC}from"@cleen/ui-core";import{forwardRef as kL}from"react";import{jsx as In,jsxs as ls}from"react/jsx-runtime";var V1=kL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return In("div",{ref:l,className:HC("cleen",t),style:o,children:ls("div",{className:HC("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",r),children:[In("div",{className:"cleen-h-48 cleen-w-full"}),ls("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:[In("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),ls("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[In("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),In("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),ls("div",{className:"cleen-flex cleen-gap-3",children:[In("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),In("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as UC}from"@cleen/ui-core";import{forwardRef as TL}from"react";import{jsx as z1}from"react/jsx-runtime";var H1=TL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let c=te(n);return z1("div",{ref:r,className:UC("cleen",t),style:o,children:z1("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((i,s)=>z1("div",{className:UC("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",c)},s))})})});import{cn as cs}from"@cleen/ui-core";import{forwardRef as BL}from"react";import{jsx as is,jsxs as GC}from"react/jsx-runtime";var Rl=BL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return is("div",{ref:l,className:cs("cleen",t),style:o,children:GC("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:[is("div",{className:cs("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",r)}),GC("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[is("div",{className:cs("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)}),is("div",{className:cs("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",r)})]})]})})});import{cn as xr}from"@cleen/ui-core";import{forwardRef as NL}from"react";import{jsx as Sr,jsxs as ss}from"react/jsx-runtime";var ps=NL(({className:e,style:t,variant:o="default"},n)=>{let l=te(o);return Sr("div",{ref:n,className:xr("cleen",e),style:t,children:ss("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:[ss("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[Sr("div",{className:xr("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",l)}),ss("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Sr("div",{className:xr("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",l)}),Sr("div",{className:xr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),ss("div",{className:"cleen-space-y-2 cleen-w-full",children:[Sr("div",{className:xr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",l)}),Sr("div",{className:xr("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});ps.displayName="AssessmentHeaderSkeleton";import{cn as Bt}from"@cleen/ui-core";import{forwardRef as RL}from"react";import{jsx as Nt,jsxs as wr}from"react/jsx-runtime";var U1=RL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return Nt("div",{ref:l,className:Bt("cleen",t),style:o,children:wr("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:[Nt("div",{className:Bt("cleen-bg-muted cleen-w-full cleen-h-40",r)}),wr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[wr("div",{className:"cleen-flex cleen-gap-2",children:[Nt("div",{className:Bt("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",r)}),Nt("div",{className:Bt("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",r)})]}),wr("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Nt("div",{className:Bt("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",r)}),Nt("div",{className:Bt("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Nt("div",{className:Bt("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)})]}),wr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[wr("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Nt("div",{className:Bt("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",r)}),Nt("div",{className:Bt("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),Nt("div",{className:Bt("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",r)})]})]})]})})});import{forwardRef as LL}from"react";import{cn as EL}from"@cleen/ui-core";import{jsx as G1}from"react/jsx-runtime";var $1=LL(function({className:t,style:o,itemCount:n=3,variant:l="default"},r){return G1("div",{ref:r,className:EL("cleen",t),style:o,children:G1("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:n}).map((c,i)=>G1(Rl,{variant:l},i))})})});import{cn as Cn}from"@cleen/ui-core";import{forwardRef as DL}from"react";import{jsx as dt,jsxs as Ll}from"react/jsx-runtime";var $C=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],W1=DL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return dt("div",{ref:l,className:Cn("cleen",t),style:o,children:Ll("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:[Ll("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[dt("div",{className:Cn("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",r)}),dt("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((c,i)=>Ll("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[dt("div",{className:Cn("cleen-bg-muted cleen-rounded-full cleen-size-2.5",r)}),dt("div",{className:Cn("cleen-bg-muted cleen-rounded cleen-h-3",r),style:{width:c}})]},i))})]}),Ll("div",{className:"cleen-flex cleen-gap-3",children:[dt("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=>dt("div",{className:Cn("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",r)},c))}),Ll("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[dt("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:$C.map((c,i)=>dt("div",{className:Cn("cleen-bg-muted cleen-rounded-t cleen-flex-1",c,r)},i))}),dt("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),dt("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:$C.map((c,i)=>dt("div",{className:Cn("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",r)},i))})]})]})]})})});import{cn as Pn}from"@cleen/ui-core";import{forwardRef as FL}from"react";import{jsx as ro,jsxs as ds}from"react/jsx-runtime";var q1=FL(({variant:e="default",itemCount:t=3,className:o,style:n},l)=>{let r=te(e);return ro("div",{ref:l,className:Pn("cleen",o),style:n,children:ro(he,{className:"cleen-max-h-fit",children:ds("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[ds("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",r)}),ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)})]}),ro("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((c,i)=>ds("div",{className:"cleen-space-y-3",children:[ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",r)}),ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",r)})]},i))}),ds("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)}),ro("div",{className:Pn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)})]})]})})})});import{cn as ms}from"@cleen/ui-core";import{forwardRef as AL}from"react";import{jsx as El,jsxs as OL}from"react/jsx-runtime";var X1=AL(function({className:t,style:o,variant:n="default",itemCount:l=5},r){let c=te(n),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 El("div",{ref:r,className:ms("cleen",t),style:o,children:OL("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[El("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((s,p)=>El("div",{className:ms("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",s,c)},p))}),Array.from({length:l}).map((s,p)=>El("div",{className:ms("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((d,g)=>El("div",{className:ms("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",g===i.length-1?"cleen-rounded-full":"cleen-rounded",d,c)},g))},p))]})})});import{cn as us}from"@cleen/ui-core";import{forwardRef as _L}from"react";import{jsx as Dl,jsxs as WC}from"react/jsx-runtime";var K1=_L(function({className:t,style:o,variant:n="default",itemCount:l=4},r){let c=te(n);return Dl("div",{ref:r,className:us("cleen",t),style:o,children:WC("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,s)=>WC("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Dl("div",{className:us("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",c)}),Dl("div",{className:us("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",c)})]},s)),Dl("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:Dl("div",{className:us("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",c)})})]})})});import{cn as qC}from"@cleen/ui-core";import{forwardRef as VL}from"react";import{jsx as Y1}from"react/jsx-runtime";var zL=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],Q1=VL(function({className:t,style:o,variant:n="default",colors:l=zL},r){let c=te(n);return Y1("div",{ref:r,className:qC("cleen",t),style:o,children:Y1("div",{className:qC("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:Y1("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as fs}from"@cleen/ui-core";import{forwardRef as HL}from"react";import{jsx as Mr,jsxs as XC}from"react/jsx-runtime";var Z1=HL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return Mr("div",{ref:l,className:fs("cleen",t),style:o,children:XC("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Mr("div",{className:fs("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:Mr("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:XC("div",{className:fs("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[Mr("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),Mr("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),Mr("div",{className:fs("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",r)})]})})});import{cn as et}from"@cleen/ui-core";import{forwardRef as UL}from"react";import{jsx as Je,jsxs as ao}from"react/jsx-runtime";var J1=UL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return Je("div",{ref:l,className:et("cleen",t),style:o,children:ao("div",{className:et("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:o,children:[ao("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Je("div",{className:et("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),ao("div",{className:"cleen-space-y-3 cleen-w-full",children:[ao("div",{children:[Je("div",{className:et("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),Je(he,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:ao("div",{className:"cleen-space-y-2",children:[Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",r)})]})})]}),ao("div",{children:[Je("div",{className:et("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),ao("div",{className:"cleen-space-y-2",children:[Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",r)})]})]}),ao("div",{children:[Je("div",{className:et("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),Je(he,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:ao("div",{className:"cleen-space-y-2",children:[Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",r)})]})})]})]})]})})});import{cn as j1}from"@cleen/ui-core";import{forwardRef as GL}from"react";import{jsx as eg,jsxs as $L}from"react/jsx-runtime";var tg=GL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return eg("div",{ref:l,className:j1("cleen",t),style:o,children:$L("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[eg("div",{className:j1("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",r)}),eg("div",{className:j1("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",r)})]})})});import{cn as Fl}from"@cleen/ui-core";import{forwardRef as WL}from"react";import{jsx as kr,jsxs as KC}from"react/jsx-runtime";var og=WL(function({className:t,style:o,variant:n="default",itemCount:l=5},r){let c=te(n),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return kr("div",{ref:r,className:Fl("cleen",t),style:o,children:kr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:l}).map((s,p)=>KC("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[kr("div",{className:Fl("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",c)}),KC("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[kr("div",{className:Fl("cleen-bg-muted cleen-rounded cleen-h-4",i[p%i.length],c)}),kr("div",{className:Fl("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",c)})]}),kr("div",{className:Fl("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",c)})]},p))})})});import{cn as YC}from"@cleen/ui-core";import{forwardRef as qL}from"react";import{jsx as rg}from"react/jsx-runtime";var ng=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],ag=qL(function({className:t,style:o,variant:n="default",itemCount:l},r){let c=te(n),i=l??ng.length;return rg("div",{ref:r,className:YC("cleen",t),style:o,children:rg("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((s,p)=>{let d=p<ng.length?ng[p]:p===i-1?"cleen-w-3/5":"cleen-w-full";return rg("div",{className:YC("cleen-bg-muted cleen-rounded cleen-h-3",d,c)},p)})})})});import{cn as QC}from"@cleen/ui-core";import{forwardRef as XL}from"react";import{jsx as ZC}from"react/jsx-runtime";var lg=XL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return ZC("div",{ref:l,className:QC("cleen",t),style:o,children:ZC("div",{className:QC("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)})})});import{cn as xn}from"@cleen/ui-core";import{forwardRef as KL}from"react";import{jsx as Rt,jsxs as hs}from"react/jsx-runtime";var cg=KL(function({className:t,style:o,variant:n="default"},l){let r=te(n);return Rt("div",{ref:l,className:xn("cleen",t),style:o,children:hs("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[Rt("div",{className:xn("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:Rt("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Rt("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:Rt("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"})})})}),hs("div",{className:"cleen-flex cleen-gap-3",children:[Rt("div",{className:xn("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",r)}),hs("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Rt("div",{className:xn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)}),Rt("div",{className:xn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),hs("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Rt("div",{className:xn("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",r)}),Rt("div",{className:xn("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",r)})]})]})]})]})})});import{cn as Al}from"@cleen/ui-core";import{forwardRef as YL}from"react";import{jsx as Ol,jsxs as ig}from"react/jsx-runtime";var gs=YL(function({variant:t="default",className:o,style:n},l){let r=te(t);return Ol("div",{ref:l,className:Al("cleen",o),style:n,children:ig("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:[ig("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:[Ol("div",{className:Al("cleen-bg-muted cleen-rounded-full cleen-size-1.5",r)}),Ol("div",{className:Al("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",r)})]}),ig("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[Ol("div",{className:Al("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",r)}),Ol("div",{className:Al("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",r)})]})]})})});gs.displayName="SkeletonBadgeCard";import{forwardRef as QL}from"react";import{jsx as Ce}from"react/jsx-runtime";var ZL=QL(function({className:t,style:o,variant:n="default",itemCount:l=3,colors:r,skeleton:c="card",isShowing:i=!1,children:s},p){if(!i)return s;let d={ref:p,variant:n,itemCount:l,colors:r,className:t,style:o};switch(c){case"card2":return Ce(ps,{...d});case"card3":return Ce(U1,{...d});case"cardStack":return Ce($1,{...d});case"contentCard":return Ce(q1,{...d});case"infoCard":return Ce(J1,{...d});case"widgetCard":return Ce(gs,{...d});case"image":return Ce(Z1,{...d});case"video":return Ce(cg,{...d});case"avatar":return Ce(A1,{...d});case"dataGrid":return Ce(X1,{...d});case"text":return Ce(lg,{...d});case"paragraph":return Ce(ag,{...d});case"list":return Ce(og,{...d});case"form":return Ce(K1,{...d});case"banner":return Ce(V1,{...d});case"chart":return Ce(W1,{...d});case"button":return Ce(H1,{...d});case"badge":return Ce(_1,{...d});case"input":return Ce(tg,{...d});case"glowingCard":return Ce(Q1,{...d});default:return Ce(Rl,{...d})}});import{cn as Lo}from"@cleen/ui-core";import{forwardRef as JL,useCallback as sg,useEffect as jL,useRef as JC,useState as jC}from"react";import{jsx as Eo,jsxs as ys}from"react/jsx-runtime";var Sn=JL(function({id:t,required:o,minValue:n=0,maxValue:l=100,step:r=1,keyboardStep:c=r,defaultValue:i=0,value:s,variant:p="default",onChange:d,onChangeEnd:g,className:m,classNames:v,style:y,styles:u,disabled:b=!1,label:C,labelTooltip:x,labels:I,tooltip:P,infoLabels:k},F){let[T,B]=jC(i??n),L=s!==void 0?s:T,M=JC(null),[S,w]=jC(!1),E=JC(!1),R=(L-n)/(l-n)*100,D=Math.min(100,Math.max(0,R)),z=sg(G=>{let V=Math.round((G-n)/r)*r+n;return Math.min(l,Math.max(n,V))},[n,l,r]),N=sg((G,V)=>{let X=z(G);s===void 0&&B(X),d?.(X),V&&g?.(X)},[z,s,d,g]),A=sg(G=>{let V=M.current;if(!V)return n;let X=V.getBoundingClientRect(),H=(G-X.left)/X.width;return z(n+H*(l-n))},[n,l,z]),_=G=>{if(b)return;let V;switch(G.key){case"ArrowRight":case"ArrowUp":V=L+c;break;case"ArrowLeft":case"ArrowDown":V=L-c;break;case"Home":V=n;break;case"End":V=l;break;default:return}G.preventDefault(),N(V,!0)},U=G=>{b||(G.preventDefault(),w(!0))},O=G=>{if(b||E.current){E.current=!1;return}N(A(G.clientX),!0)},$=G=>{b||(G.preventDefault(),w(!0))};jL(()=>{if(!S)return;let G=q=>{N(A(q.clientX))},V=q=>{w(!1),E.current=!0,g?.(z(A(q.clientX)))},X=q=>{q.touches.length>0&&N(A(q.touches[0].clientX))},H=q=>{w(!1),E.current=!0,g?.(z(A(q.changedTouches[0].clientX)))};return document.addEventListener("mousemove",G),document.addEventListener("mouseup",V),document.addEventListener("touchmove",X),document.addEventListener("touchend",H),()=>{document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",H)}},[S,z,A,N,g]);let Q=G=>Eo("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:G});return Eo("div",{className:Lo("cleen",m),style:y,ref:F,children:ys("div",{className:Lo("cleen-w-full",v?.container),style:u?.container,children:[C&&Eo(ae,{htmlFor:t,required:o,tooltip:x,...v?.label,...u?.label,children:C}),ys("div",{className:Lo({"cleen-flex cleen-items-center cleen-gap-2":p==="inline"},v?.slider),style:u?.slider,children:[p==="inline"&&I?.minLabel!==void 0&&Q(I?.minLabel),ys("div",{ref:M,className:Lo("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":b,"cleen-flex-1":p==="inline"},v?.track),style:u?.track,"aria-disabled":b,onClick:O,children:[Eo("div",{className:Lo("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",b?"cleen-cursor-not-allowed":"cleen-cursor-pointer",v?.path),style:u?.path,children:Eo("div",{className:Lo("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",v?.filledTrack),style:{width:`${D}%`,...u?.filledTrack}})}),Eo(Ie,{invertColors:!0,...P,label:I?.tooltip?.(L)??L,className:Lo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",P?.className),style:{left:`calc(${D}% - 8px)`,...P?.style},isOpen:S||P?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:Eo("div",{id:t,className:Lo("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",b?"cleen-cursor-not-allowed":"cleen-cursor-pointer",v?.thumb),style:u?.thumb,tabIndex:b?-1:0,role:"slider","aria-valuenow":L,"aria-valuemin":n,"aria-valuemax":l,"aria-disabled":b,"aria-label":typeof C=="string"?C:"Slider","aria-labelledby":t,onMouseDown:U,onTouchStart:$,onKeyDown:_})})]}),p==="inline"?I?.maxLabel&&Q(I?.maxLabel):(I?.minLabel||I?.maxLabel)&&ys("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[I?.minLabel&&Q(I?.minLabel),I?.maxLabel&&Q(I?.maxLabel)]})]}),(k?.errorMessage||k?.infoMessage||k?.subtitle)&&Eo(ne,{...k})]})})});import{cn as Lt}from"@cleen/ui-core";import{forwardRef as e6,useCallback as pg,useEffect as t6,useRef as o6,useState as eP}from"react";import{jsx as Et,jsxs as vs}from"react/jsx-runtime";var n6=e6(function({id:t,required:o,minValue:n=0,maxValue:l=100,step:r=1,defaultValue:c=[n,l],value:i,variant:s="default",onChange:p,onChangeEnd:d,className:g,classNames:m,style:v,styles:y,disabled:u=!1,label:b,labelTooltip:C,labels:x,tooltips:I,infoLabels:P},k){let[F,T]=eP(c??[n,l]),B=i!==void 0?i:F,L=o6(null),[M,S]=eP(null),w=pg(G=>{let V=Math.round((G-n)/r)*r+n;return Math.min(l,Math.max(n,V))},[n,l,r]),E=(B[0]-n)/(l-n)*100,R=Math.min(100,Math.max(0,E)),D=(B[1]-n)/(l-n)*100,z=Math.min(100,Math.max(0,D)),N=pg(G=>{let V=[w(Math.min(G[0],G[1])),w(Math.max(G[0],G[1]))];i===void 0&&T(V),p?.(V)},[w,i,p]),A=pg(G=>{let V=L.current;if(!V)return n;let X=V.getBoundingClientRect(),H=(G-X.left)/X.width;return w(n+H*(l-n))},[n,l,w]),_=G=>V=>{if(u)return;let X=G==="min"?B[0]:B[1],H;switch(V.key){case"ArrowRight":case"ArrowUp":H=X+r;break;case"ArrowLeft":case"ArrowDown":H=X-r;break;case"Home":H=n;break;case"End":H=l;break;default:return}V.preventDefault();let q=G==="min"?[Math.min(H,B[1]),B[1]]:[B[0],Math.max(H,B[0])];N(q),d?.([w(q[0]),w(q[1])])},U=G=>V=>{u||(V.preventDefault(),S(G))},O=G=>{if(u)return;let V=A(G.clientX),X=Math.abs(V-B[0]),H=Math.abs(V-B[1]);X<H?N([V,B[1]]):N([B[0],V])},$=G=>V=>{u||(V.preventDefault(),S(G))};t6(()=>{if(!M)return;let G=q=>{let pe=A(q.clientX);N(M==="min"?[pe,B[1]]:[B[0],pe])},V=q=>{let pe=A(q.clientX),fe=M==="min"?[pe,B[1]]:[B[0],pe];S(null),d?.(fe)},X=q=>{if(q.touches.length>0){let pe=A(q.touches[0].clientX);N(M==="min"?[pe,B[1]]:[B[0],pe])}},H=q=>{let pe=A(q.changedTouches[0].clientX),fe=M==="min"?[pe,B[1]]:[B[0],pe];S(null),d?.(fe)};return document.addEventListener("mousemove",G),document.addEventListener("mouseup",V),document.addEventListener("touchmove",X),document.addEventListener("touchend",H),()=>{document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",H)}},[M,B,A,N,d]);let Q=G=>Et("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:G});return Et("div",{className:Lt("cleen",g),style:v,ref:k,children:vs("div",{className:Lt("cleen-w-full",m?.container),style:y?.container,children:[b&&Et(ae,{htmlFor:t,required:o,tooltip:C,...m?.label,...y?.label,children:b}),vs("div",{className:Lt({"cleen-flex cleen-items-center cleen-gap-2":s==="inline"},m?.slider),style:y?.slider,children:[s==="inline"&&x?.minLabel!==void 0&&Q(x?.minLabel),vs("div",{ref:L,className:Lt("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":u,"cleen-flex-1":s==="inline"},m?.track),style:y?.track,"aria-disabled":u,onClick:O,children:[Et("div",{className:Lt("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",u?"cleen-cursor-not-allowed":"cleen-cursor-pointer"),children:Et("div",{className:Lt("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{left:`${R}%`,width:`${z-R}%`,...y?.filledTrack}})}),Et(Ie,{invertColors:!0,isOpen:M==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:x?.tooltip?.(B[0])??B[0]?.toString(),className:Lt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.min?.className),style:{left:`calc(${R}% - 8px)`,...I?.shared?.style,...I?.min?.style},children:Et("div",{className:Lt("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",u?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:y?.thumb,tabIndex:u?-1:0,role:"slider","aria-valuenow":B[0],"aria-valuemin":n,"aria-valuemax":B[1],"aria-disabled":u,"aria-label":typeof b=="string"?`${b} minimum value`:"Minimum value",onMouseDown:U("min"),onTouchStart:$("min"),onKeyDown:_("min")})}),Et(Ie,{invertColors:!0,isOpen:M==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:x?.tooltip?.(B[1])??B[1]?.toString(),className:Lt("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:Et("div",{className:Lt("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",u?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:y?.thumb,tabIndex:u?-1:0,role:"slider","aria-valuenow":B[1],"aria-valuemin":B[0],"aria-valuemax":l,"aria-disabled":u,"aria-label":typeof b=="string"?`${b} maximum value`:"Maximum value",onMouseDown:U("max"),onTouchStart:$("max"),onKeyDown:_("max")})})]}),s==="inline"?x?.maxLabel&&Q(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&vs("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)&&Et(ne,{...P})]})})});import{cn as Tr}from"@cleen/ui-core";import{forwardRef as r6,useRef as a6,useState as tP}from"react";import{jsx as wn,jsxs as c6}from"react/jsx-runtime";var l6=r6(function({label:t,infoLabels:o,value:n,onChange:l,amount:r=5,gap:c,size:i,readonly:s,color:p="rgb(var(--cleen-yellow))",className:d,style:g,classNames:m,styles:v,...y},u){let[b,C]=tP(0),x=n!==void 0,I=x?n:b,[P,k]=tP(null),F=P!==null?P+1:I,T=!s,B=a6([]),L=I>0?I-1:0,M=R=>{x||C(R),l?.(R)},S=R=>{R<0||R>=r||(M(R+1),B.current[R]?.focus())},w=(R,D)=>{switch(R.key){case"ArrowRight":case"ArrowUp":R.preventDefault(),S((D+1)%r);break;case"ArrowLeft":case"ArrowDown":R.preventDefault(),S((D-1+r)%r);break;case"Home":R.preventDefault(),S(0);break;case"End":R.preventDefault(),S(r-1);break;default:break}},E=typeof t=="string"?t:"Rating";return wn("div",{className:Tr("cleen",d),style:g,ref:u,...y,children:c6("div",{className:Tr("cleen-space-y-2",m?.container),style:v?.container,children:[t&&wn("span",{className:Tr("cleen-font-medium cleen-text-sm cleen-text-foreground",m?.label),style:v?.label,children:t}),wn("div",{role:T?"radiogroup":"img","aria-label":T?E:`${E}: ${I} out of ${r}`,className:Tr("cleen-flex cleen-gap-3",m?.list),style:{...c?{gap:c}:{},...v?.list},children:Array.from({length:r},(R,D)=>{let z=wn(za,{"aria-hidden":"true",className:Tr("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...v?.star,fill:(s?I:F)>D?p:"transparent"}});return T?wn("button",{type:"button",ref:N=>{B.current[D]=N},role:"radio","aria-checked":I===D+1,"aria-label":`${D+1} ${D+1===1?"star":"stars"}`,tabIndex:D===L?0:-1,onMouseEnter:()=>k(D),onMouseLeave:()=>k(null),onClick:()=>M(D+1),onKeyDown:N=>w(N,D),className:Tr("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},D):wn("span",{className:"cleen-cursor-default",children:z},D)})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&wn(ne,{...o})]})})});import{cn as lo}from"@cleen/ui-core";import{forwardRef as i6}from"react";import{jsx as Do,jsxs as oP}from"react/jsx-runtime";var nP=i6(({steps:e,activeStep:t=0,orientation:o="horizontal",color:n="rgb(var(--cleen-primary))",className:l,classNames:r,style:c,styles:i,...s},p)=>{let d=o==="vertical";return Do("div",{ref:p,className:lo("cleen",l),style:{...c,width:"100%"},...s,children:Do("div",{className:lo("cleen-flex cleen-w-full",d?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",r?.container),style:{width:"100%",...i?.container},children:e?.map((g,m)=>{let v=m+1<t,y=m+1===t;return oP("div",{className:lo("cleen-relative cleen-flex cleen-flex-1",d?"cleen-flex-row cleen-items-start":"cleen-flex-col cleen-items-center cleen-text-center",r?.step),style:i?.step,children:[m<e?.length-1&&Do("div",{className:lo("cleen-absolute cleen-bg-neutral-200 cleen-transition-all cleen-duration-300",d?"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)]",v&&"cleen-bg-primary",r?.connector),style:{backgroundColor:v?n:void 0,...i?.connector}}),Do("div",{className:lo("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",v||y?"cleen-border-[2px]":"cleen-border-border",r?.circle),style:{borderColor:y||v?n:void 0,backgroundColor:v?n:"transparent",...i?.circle},children:v?Do("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):Do("span",{className:lo("cleen-w-2 cleen-h-2 cleen-rounded-full",y?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:y?n:void 0}})}),oP("div",{className:lo("cleen-flex cleen-flex-col",d?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[g.title&&Do("div",{className:lo("cleen-font-medium cleen-text-sm",y?"cleen-text-primary":"cleen-text-foreground",r?.title),style:{color:y?n:void 0,...i?.title},children:g.title}),g.subtitle&&Do("div",{className:lo("cleen-text-xs cleen-text-neutral-600",r?.subtitle),style:{color:y?n:void 0,...i?.subtitle},children:g.subtitle})]})]},m)})})})});nP.displayName="Stepper";import{cn as Ee}from"@cleen/ui-core";import{forwardRef as s6,useMemo as aP,useState as Br}from"react";var rP={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 m6,jsx as Me,jsxs as Nr}from"react/jsx-runtime";var p6=[],d6=s6(function({items:t=p6,value:o,defaultValue:n,onApply:l,onCreate:r,isLoading:c=!1,icon:i,disabled:s=!1,isOpen:p,onOpenChange:d,position:g="bottom-left",zIndex:m,labels:v,className:y,classNames:u,style:b,styles:C,...x},I){let P={...rP,...v},[k,F]=Br(n??[]),T=o??k,[B,L]=Br(!1),M=p??B,[S,w]=Br(T),[E,R]=Br(""),[D,z]=Br([]),[N,A]=Br(!1),_=aP(()=>[...t,...D.filter(j=>!t.some(ce=>ce.id===j.id))],[t,D]),U=E.trim(),O=aP(()=>{let j=U.toLowerCase();return j?_.filter(ce=>ce.label.toLowerCase().includes(j)):_},[_,U]),$=!!U&&!_.some(j=>j.label.toLowerCase()===U.toLowerCase())&&!!r,Q=c||N,G=T.length,V=G>0,X=j=>{j&&(w(T),R("")),p===void 0&&L(j),d?.(j)},H=j=>{w(ce=>ce.includes(j)?ce.filter(tt=>tt!==j):[...ce,j])},q=async()=>{if(!(!r||!U||Q)){A(!0);try{let j=await r(U);j&&(z(ce=>ce.some(tt=>tt.id===j.id)?ce:[...ce,j]),w(ce=>ce.includes(j.id)?ce:[...ce,j.id]),R(""))}finally{A(!1)}}},pe=j=>{j.key==="Enter"&&$&&(j.preventDefault(),q())},fe=()=>{w([])},me=()=>{let j=_.filter(ce=>S.includes(ce.id));o===void 0&&F(S),l?.(S,j),X(!1)},$e=Nr(m6,{children:[$&&Me("div",{className:"cleen-p-1.5",children:Me(ee,{variant:"borderless-blue",fullWidth:!0,isLoading:Q,leftIcon:Me(Ba,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{q()},classNames:{container:Ee("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",u?.createButton)},styles:{container:C?.createButton},children:Me("span",{className:"cleen-truncate",children:P.create(U)})})}),O.length===0?$?null:Me("p",{className:Ee("cleen-px-3 cleen-py-4 cleen-text-gray-500 cleen-text-sm cleen-text-center cleen-opacity-50",u?.noData),style:C?.noData,children:_.length===0?P.noData:P.noMatches}):Me("ul",{className:Ee("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",u?.list),style:C?.list,children:O.map(j=>Nr("li",{onClick:()=>H(j.id),className:Ee("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",u?.item),style:C?.item,children:[Me(ml,{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:u?.checkbox,label:Ee("cleen-text-sm cleen-truncate cleen-cursor-pointer",u?.itemLabel)},styles:{checkbox:C?.checkbox,label:C?.itemLabel},checked:S.includes(j.id),onClick:ce=>ce.stopPropagation(),label:Me("span",{title:j.label,className:"cleen-select-none",children:j.label}),fullTriggerArea:!0}),j.count!==void 0&&Me("span",{className:Ee("cleen-shrink-0 cleen-text-gray-500 cleen-text-sm cleen-tabular-nums cleen-opacity-50 cleen-select-none",u?.count),style:C?.count,children:j.count})]},j.id))})]}),Pe=Nr("div",{className:Ee("cleen-flex cleen-flex-col",u?.content),style:C?.content,role:"dialog",children:[Me(ye,{autoFocus:!0,value:E,onChange:j=>R(j.target.value),onKeyDown:pe,placeholder:P.searchPlaceholder,"aria-label":P.searchPlaceholder,leftIcon:Me(qt,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:Ee("cleen-shrink-0 cleen-p-1.5 cleen-py-1",u?.search),style:C?.search,classNames:{inputContainer:"cleen-border-0 cleen-shadow-none cleen-rounded-none focus-within:cleen-ring-0",input:"cleen-text-sm"}}),Me(gt,{className:Ee("cleen-shrink-0",u?.divider),style:C?.divider}),Me("div",{className:"cleen-flex-1 cleen-min-h-0",children:$e}),Nr("div",{className:Ee("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",u?.footer),style:C?.footer,children:[Me("span",{className:Ee("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",u?.footerText),style:C?.footerText,children:S.length>0?P.selected(S.length):P.footer}),Nr("div",{className:Ee("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",u?.footerActions),style:C?.footerActions,children:[Me(ee,{variant:"secondary",onClick:fe,disabled:S.length===0,classNames:{container:Ee("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.clearButton)},styles:{container:C?.clearButton},children:P.clear}),Me(ee,{variant:"primary",onClick:me,classNames:{container:Ee("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.doneButton)},styles:{container:C?.doneButton},children:P.done})]})]})]});return Me(wl,{ref:I,isOpen:M,onOpenChange:X,position:g,zIndex:m,content:Pe,className:y,style:b,classNames:{trigger:Ee(s&&"cleen-pointer-events-none"),popover:Ee("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",u?.popover)},styles:{popover:C?.popover},...x,children:Nr("button",{type:"button",disabled:s,"aria-label":P.trigger,"aria-haspopup":"dialog","aria-expanded":M,className:Ee("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":s},u?.trigger,V&&u?.triggerActive),style:{...C?.trigger,...V?C?.triggerActive:{}},children:[i??Me(Ua,{className:"cleen-size-4 cleen-shrink-0"}),V&&Me("span",{className:Ee("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",u?.badge),style:C?.badge,children:G}),Me(Zr,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var dg={default:"Default","sans-serif":"Sans-serif",serif:"Serif",monospace:"Monospace",cursive:"Cursive",fantasy:"Fantasy"},mg={white:"White",yellow:"Yellow",green:"Green",cyan:"Cyan",blue:"Blue",magenta:"Magenta",red:"Red",black:"Black"},ug={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",quality:"Quality",qualityAuto:e=>e?`Auto (${e})`:"Auto",qualityLevel:e=>`${e}p`,settings:"Settings",language:"Language",captionsOff:"Off",captionsTrack:e=>`Track ${e}`,captionStyle:"Caption style",resetCaptionStyle:"Reset",fontFamily:"Font family",fontColor:"Font colour",fontSize:"Font size",backgroundColor:"Background colour",backgroundOpacity:"Background opacity",captionFontFamilies:dg,captionColors:mg,pictureInPicture:"Picture in picture",exitPictureInPicture:"Exit picture in picture",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",placeholder:"No video provided yet.",placeholderSubLabel:"Please provide a video source to play."};var fg=10,bs=1.7777777777777777,hg=1080,Rr=-1,gg=.5,yg=2,lP=.25,_l=.05,cP=2500,iP=5,sP=.5,Vl=5,pP=480,dP=24,mP=16,Is="--cleen-video-player-height",u6=.045,f6=12,h6=32,uP=`clamp(${f6}px, calc(var(${Is}, 360px) * ${u6}), ${h6}px)`,fP=250,hP=40,vg="cleen-video-player-caption-style",Fo={fontFamily:"default",fontColor:"white",fontSize:1,backgroundColor:"black",backgroundOpacity:.75},Lr={default:void 0,"sans-serif":"sans-serif",serif:"serif",monospace:"monospace",cursive:"cursive",fantasy:"fantasy"},zl={white:[255,255,255],yellow:[255,255,0],green:[0,255,0],cyan:[0,255,255],blue:[0,0,255],magenta:[255,0,255],red:[255,0,0],black:[0,0,0]},Cs=[.5,.75,1,1.25,1.5,1.75,2],Ps=[0,.25,.5,.75,1],gP=72,yP=240,vP=3,bP={playing:!1,currentTime:0,duration:0,muted:!1,volume:1,playbackRate:1,showCaptions:!1,captionsTrackIndex:0,settingsOpen:!1,isPictureInPicture:!1,isFullscreen:!1,controlsActive:!0,isLoading:!0};import{forwardRef as g6,useEffect as bg,useImperativeHandle as y6,useRef as v6}from"react";import{jsx as P6}from"react/jsx-runtime";var b6=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],I6=e=>{let t=b6;return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))},C6=g6(function({playing:t=!1,volume:o,playbackRate:n,...l},r){let c=v6(null);return y6(r,()=>c.current,[]),bg(()=>{let i=c.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,l.src]),bg(()=>{c.current&&o!==void 0&&(c.current.volume=o)},[o]),bg(()=>{c.current&&n!==void 0&&(c.current.playbackRate=n)},[n]),P6("video",{...I6(l),ref:c,width:"100%",height:"100%"})});import{forwardRef as x6}from"react";import S6 from"react-player";import{jsx as w6}from"react/jsx-runtime";var Ig=x6(function(t,o){return w6(S6,{...t,ref:o,width:"100%",height:"100%"})});var Hl=(m=>(m.PLAY="play",m.BACKWARD="backward",m.FORWARD="forward",m.VOLUME="volume",m.TIME="time",m.SEEKBAR="seekbar",m.SPEED="speed",m.SUBTITLES="subtitles",m.QUALITY="quality",m.SETTINGS="settings",m.PICTURE_IN_PICTURE="pictureInPicture",m.FULLSCREEN="fullscreen",m))(Hl||{});var Er=e=>{if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e),o=Math.floor(t/3600),n=Math.floor(t%3600/60),l=t%60,r=c=>String(c).padStart(2,"0");return o>0?`${o}:${r(n)}:${r(l)}`:`${n}:${r(l)}`},Cg=(e,t)=>{if(!Array.isArray(e)||!(t>0))return[];let o=e.filter(n=>Number.isFinite(n?.start)).map(n=>({...n,start:Math.min(Math.max(n.start,0),t)})).sort((n,l)=>n.start-l.start);return o.map((n,l)=>{let r=o[l+1]?.start??t,c=n.end!==void 0&&Number.isFinite(n.end)?Math.min(Math.max(n.end,n.start),r):r;return{...n,end:c}}).filter(n=>n.end>n.start)},Pg=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),IP=e=>e?Array.from({length:e.length},(t,o)=>({start:e.start(o),end:e.end(o)})):[],CP=(e,t)=>e.length===t.length&&e.every((o,n)=>o.start===t[n].start&&o.end===t[n].end),PP=(e,t,o)=>{let n=o-t;if(!(n>0)||!Number.isFinite(n))return[];let l=e.filter(c=>Number.isFinite(c.start)&&Number.isFinite(c.end)).map(c=>({start:Math.max(c.start,t),end:Math.min(c.end,o)})).filter(c=>c.end>c.start).sort((c,i)=>c.start-i.start),r=[];return l.forEach(c=>{let i=r[r.length-1];i&&c.start<=i.end?i.end=Math.max(i.end,c.end):r.push({...c})}),r.map(c=>({left:(c.start-t)/n,width:(c.end-c.start)/n}))},Mn=({width:e,height:t})=>e>0&&t>0?Math.min(e,t):Math.max(e,t,0),xg=(e,t)=>{if(!(t!==void 0&&t>0)||e.length===0)return-1;let o=[...e].sort((l,r)=>Mn(l)-Mn(r)||l.bitrate-r.bitrate),n=o.filter(l=>Mn(l)<=t);return(n[n.length-1]??o[0]).index},xP=(e,t)=>{let o=[...e].sort((n,l)=>Mn(l)-Mn(n)||l.bitrate-n.bitrate);return o.map(n=>{let l=Mn(n),r=l>0?t(l):`${Math.round(n.bitrate/1e3)} kbps`,c=o.filter(i=>Mn(i)===l);return{value:n.index,label:l>0&&c.length>1?`${r} (${(n.bitrate/1e6).toFixed(1)} Mbps)`:r}})},M6=(e,t)=>{let o=-1;return e.forEach((n,l)=>{t>=n.start&&(o=l)}),Math.max(o,0)},Gl=(e,t)=>e.find(o=>t>=o.start&&t<o.end)??(e.length>0&&t>=e[e.length-1].end?e[e.length-1]:void 0),SP=(e,t)=>{let o=Array.from(e).filter(n=>n.kind==="chapters");return t&&o.find(n=>n.language===t)||o[0]},wP=e=>Array.from(e).map(t=>({start:t.startTime,end:t.endTime,title:t.text?.replace(/<[^>]*>/g,"").trim()||void 0})),Ss=e=>Array.from(e).filter(({kind:t="subtitles"})=>["subtitles","captions"].includes(t)),MP=(e,t,o)=>e.label||e.srcLang||o(t+1),Ul=(e,t)=>e.includes(t),Sg=e=>{let t=e&&typeof e=="object"?e:{},o=Object.keys(zl),n=Object.keys(Lr);return{fontFamily:Ul(n,t.fontFamily)?t.fontFamily:Fo.fontFamily,fontColor:Ul(o,t.fontColor)?t.fontColor:Fo.fontColor,fontSize:Ul(Cs,t.fontSize)?t.fontSize:Fo.fontSize,backgroundColor:Ul(o,t.backgroundColor)?t.backgroundColor:Fo.backgroundColor,backgroundOpacity:Ul(Ps,t.backgroundOpacity)?t.backgroundOpacity:Fo.backgroundOpacity}},xs=(e,t=1)=>`rgba(${zl[e].join(",")},${t})`,kP=({fontFamily:e,fontColor:t,fontSize:o,backgroundColor:n,backgroundOpacity:l})=>({fontFamily:Lr[e],fontSize:`calc(${uP} * ${o})`,color:xs(t),backgroundColor:xs(n,l)});import{cn as ql}from"@cleen/ui-core";import{forwardRef as NE,useCallback as Ge,useImperativeHandle as RE,useMemo as _g,useReducer as LE,useRef as Tx,useState as EE}from"react";import{cn as Rn}from"@cleen/ui-core";var Ao="cleen-text-[#fff]",wg="cleen-text-[rgba(255,255,255,0.45)]",TP="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",BP="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",NP="!cleen-bg-[#fff] !cleen-text-[rgb(10,13,18)] !cleen-border-[#fff] hover:!cleen-bg-[rgba(255,255,255,0.85)] hover:!cleen-text-[rgb(10,13,18)]",Oo="focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",ws="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",Ms="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as LP}from"@cleen/ui-core";import{useLayoutEffect as B6,useRef as N6}from"react";import{useEffect as k6,useState as T6}from"react";var ks=[],RP=(e,t,o,n,l)=>{let[r,c]=T6(ks);return k6(()=>{let i=e.current?.textTracks;if(!t||!i)return;let s,p=()=>c(s?.activeCues?Array.from(s.activeCues):ks),d=()=>{let g=Ss(i),m=g[o]??g[0];m!==s&&(s&&(s.removeEventListener("cuechange",p),s.mode="disabled"),m?.addEventListener("cuechange",p),s=m),s&&s.mode!=="hidden"&&(s.mode="hidden"),p()};return d(),i.addEventListener("addtrack",d),i.addEventListener("removetrack",d),()=>{i.removeEventListener("addtrack",d),i.removeEventListener("removetrack",d),s&&(s.removeEventListener("cuechange",p),s.mode="disabled"),c(ks)}},[t,o,n,l,e]),t?r:ks};import{jsx as Mg}from"react/jsx-runtime";var R6=e=>typeof VTTCue<"u"&&e instanceof VTTCue?e.getCueAsHTML():"",L6=({cue:e,className:t,style:o})=>{let n=N6(null);return B6(()=>{n.current?.replaceChildren(R6(e))},[e]),Mg("span",{ref:n,className:t,style:o})},EP=({videoRef:e,src:t,showCaptions:o,trackIndex:n,captionStyle:l,pictureInPicture:r,hidden:c,controlsVisible:i,controlsOnHover:s,classNames:p,styles:d})=>{let g=RP(e,o&&!r,n,t,!c);return c||r||g.length===0?null:Mg("div",{className:LP("cleen-left-0 cleen-right-0 cleen-absolute cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-px-4 cleen-pb-3 cleen-text-center cleen-transition-[bottom] cleen-duration-300 cleen-pointer-events-none",i?s?"cleen-bottom-0 group-hover:cleen-bottom-full":"cleen-bottom-full":"cleen-bottom-0",p?.captions),style:d?.captions,children:g.map((m,v)=>Mg(L6,{cue:m,className:LP("cleen-max-w-[80%] cleen-rounded-md cleen-px-[0.5em] cleen-py-[0.2em] cleen-leading-snug cleen-whitespace-pre-line",p?.captionsText),style:{...kP(l),...d?.captionsText}},`${m.id}-${m.startTime}-${v}`))})};import{cn as E6}from"@cleen/ui-core";import{forwardRef as D6}from"react";import{jsx as F6}from"react/jsx-runtime";var Dt=D6(function({label:t,onClick:o,disabled:n,active:l,className:r,style:c,children:i},s){return F6("button",{ref:s,type:"button","aria-label":t,"aria-pressed":l,onClick:o,disabled:n,className:E6("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded disabled:cleen-opacity-40 cleen-text-[rgba(255,255,255,0.85)] hover:cleen-text-[#fff] cleen-transition-colors disabled:cleen-cursor-not-allowed",Oo,r),style:c,children:i})});import{cn as Ft}from"@cleen/ui-core";import{useRef as _P}from"react";import{useCallback as A6,useEffect as O6,useRef as DP,useState as _6}from"react";var FP=(e,t)=>{let[o,n]=_6(null),l=DP(!1),r=DP(!1),c=A6(s=>{let p=e.current;if(!p||!(t>0))return;let d=p.getBoundingClientRect(),g=d.width>0?Math.min(Math.max((s-d.left)/d.width,0),1):0;n({ratio:g,time:g*t})},[e,t]);return O6(()=>{let s=d=>{l.current&&c(d.clientX)},p=()=>{l.current=!1,r.current||n(null)};return window.addEventListener("pointermove",s),window.addEventListener("pointerup",p),()=>{window.removeEventListener("pointermove",s),window.removeEventListener("pointerup",p)}},[c]),{preview:o,previewHandlers:{onPointerEnter:s=>{r.current=!0,c(s.clientX)},onPointerMove:s=>c(s.clientX),onPointerDown:s=>{l.current=!0,c(s.clientX)},onPointerLeave:()=>{r.current=!1,l.current||n(null)}}}};import{cn as V6}from"@cleen/ui-core";import{Fragment as z6,jsx as AP}from"react/jsx-runtime";var Ts=({buffered:e,start:t,end:o,className:n,style:l})=>AP(z6,{children:PP(e,t,o).map(r=>AP("div",{"aria-hidden":!0,className:V6("cleen-absolute cleen-inset-y-0 cleen-bg-[rgba(255,255,255,0.5)] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",n),style:{...l,left:`${r.left*100}%`,width:`${r.width*100}%`}},r.left))});import{cn as Bs}from"@cleen/ui-core";import{jsx as Ns,jsxs as H6}from"react/jsx-runtime";var OP=({chapters:e,duration:t,currentTime:o,buffered:n,classNames:l,styles:r})=>Ns("div",{"aria-hidden":!0,className:Bs("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-h-1 -cleen-translate-y-1/2 cleen-pointer-events-none",l?.chapters),style:r?.chapters,children:e.map(c=>Ns("div",{className:Bs("cleen-absolute cleen-inset-y-0 cleen-pr-0.5 last:cleen-pr-0",l?.chapter),style:{...r?.chapter,left:`${c.start/t*100}%`,width:`${(c.end-c.start)/t*100}%`},children:H6("div",{className:Bs("cleen-relative cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-h-full cleen-overflow-hidden",l?.chapterTrack),style:r?.chapterTrack,children:[Ns(Ts,{buffered:n,start:c.start,end:c.end,className:l?.chapterBuffered,style:r?.chapterBuffered}),Ns("div",{className:Bs("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",l?.chapterFill),style:{...r?.chapterFill,width:`${Pg(c,o)*100}%`}})]})},c.start))});import{Fragment as U6,jsx as kn,jsxs as Rs}from"react/jsx-runtime";var VP=({allowBarSeeking:e,chapters:t,duration:o,currentTime:n,buffered:l,onSeek:r,seekLabel:c,progressLabel:i,classNames:s,styles:p})=>{let d=_P(null),g=_P(null),{preview:m,previewHandlers:v}=FP(d,o),y=m?Gl(t,m.time):void 0,u=t.length>0,b=u&&kn(OP,{chapters:t,duration:o,currentTime:n,buffered:l,classNames:s,styles:p}),C=kn(Ts,{buffered:l,start:0,end:o,className:s?.seekBuffered,style:p?.seekBuffered}),x=g.current?.offsetWidth||0;if(e){let P=s?.seekSlider?.classNames;return Rs("div",{ref:d,role:"group","aria-label":c,className:Ft("cleen-relative",s?.seekBar),style:p?.seekBar,...v,children:[b||kn("div",{"aria-hidden":!0,className:Ft("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-bg-[rgba(255,255,255,0.3)] cleen-rounded-sm cleen-h-1 cleen-overflow-hidden -cleen-translate-y-1/2 cleen-pointer-events-none",s?.seekTrack),style:p?.seekTrack,children:C}),m&&Rs("div",{ref:g,"aria-hidden":!0,className:Ft("cleen-bottom-full cleen-absolute cleen-flex cleen-gap-1 cleen-bg-[rgba(0,0,0,0.75)] cleen-mb-2 cleen-px-2 cleen-py-1 cleen-rounded-md cleen-max-w-[16rem] cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap cleen-pointer-events-none",Ao,{"cleen-opacity-0":g.current===null},s?.seekTooltip),style:{left:`clamp(0rem, calc(${m.ratio*100}% - ${x/2}px), calc(100% - ${x}px))`,...p?.seekTooltip},children:[kn("span",{children:Er(m.time)}),y?.title&&Rs("span",{className:Ft("cleen-font-medium cleen-truncate",s?.seekTooltipChapter),style:p?.seekTooltipChapter,children:["\xB7 ",y.title]})]}),kn(Sn,{value:n,maxValue:o,step:.01,keyboardStep:Vl,onChange:r,className:Ft("cleen-relative cleen-flex cleen-items-center cleen-h-3.5 cleen-cursor-pointer",s?.seekSlider?.className),classNames:{...P,track:Ft("!cleen-h-4",P?.track),path:Ft("!cleen-bg-transparent",P?.path),filledTrack:Ft({"!cleen-bg-transparent":u},P?.filledTrack)},tooltip:{isDisabled:!0},...p?.seekSlider})]})}let I=o>0?Math.min(n/o*100,100):0;return kn("div",{role:"progressbar","aria-label":i,"aria-valuemin":0,"aria-valuemax":Math.floor(o),"aria-valuenow":Math.floor(n),className:Ft("cleen-relative cleen-h-1",{"cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-overflow-hidden":!u},s?.seekBar),style:p?.seekBar,children:b||Rs(U6,{children:[C,kn("div",{className:Ft("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-rounded-full cleen-transition-[width] cleen-duration-200 cleen-ease-linear",s?.progressFill),style:{...p?.progressFill,width:`${I}%`}})]})})};import{cn as _o}from"@cleen/ui-core";import{useEffect as q6,useRef as qP,useState as XP}from"react";import{cn as G6}from"@cleen/ui-core";import{cn as At}from"@cleen/ui-core";import{useId as zP}from"react";import{jsx as Tn,jsxs as kg}from"react/jsx-runtime";var $l=({title:e,children:t,onReset:o,resetLabel:n,classNames:l,styles:r})=>{let c=zP();return kg("section",{"aria-labelledby":c,className:At("cleen-flex cleen-flex-col cleen-gap-3",l?.settingsGroup),style:r?.settingsGroup,children:[kg("div",{className:At("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.settingsGroupHeader),style:r?.settingsGroupHeader,children:[Tn("h3",{id:c,className:At("cleen-font-semibold cleen-text-foreground cleen-text-xs",l?.settingsGroupTitle),style:r?.settingsGroupTitle,children:e}),o&&Tn("button",{type:"button",onClick:o,className:At("cleen-font-semibold cleen-text-xs cleen-text-primary hover:cleen-underline",l?.settingsResetButton),style:r?.settingsResetButton,children:n})]}),t]})},co=({label:e,options:t,value:o,onChange:n,classNames:l,styles:r})=>{let c=zP(),i=Tn("div",{role:e?"group":void 0,"aria-labelledby":e?c:void 0,className:At("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-1.5",l?.settingsOptions),style:r?.settingsOptions,children:t.map(s=>{let p=s.value===o;return s.swatch?Tn("button",{type:"button","aria-label":s.ariaLabel,"aria-pressed":p,title:s.ariaLabel,onClick:()=>n(s.value),className:At("cleen-size-6 cleen-rounded-full cleen-border cleen-border-border cleen-transition-shadow focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.settingsSwatch,p&&["cleen-ring-2 cleen-ring-primary cleen-ring-offset-2 cleen-ring-offset-background",l?.settingsSwatchActive]),style:{backgroundColor:s.swatch,...s.style,...r?.settingsSwatch,...p?r?.settingsSwatchActive:void 0}},s.value):Tn("button",{type:"button","aria-label":s.ariaLabel,"aria-pressed":p,onClick:()=>n(s.value),className:At("cleen-rounded focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.settingsOption,p&&l?.settingsOptionActive),style:{...s.style,...r?.settingsOption,...p?r?.settingsOptionActive:void 0},children:Tn(we,{color:p?"primary":"foreground-transparent",variant:"sleek",className:l?.settingsOptionBadge?.className,classNames:{...l?.settingsOptionBadge?.classNames,container:At("cleen-font-medium",p?"hover:cleen-bg-primary-100":"hover:cleen-bg-muted",l?.settingsOptionBadge?.classNames?.container)},...r?.settingsOptionBadge,children:s.label})},s.value)})});return e?kg("div",{className:At("cleen-flex cleen-flex-col cleen-gap-1.5",l?.settingsField),style:r?.settingsField,children:[Tn("span",{id:c,className:At("cleen-text-muted-foreground cleen-text-xs",l?.settingsFieldLabel),style:r?.settingsFieldLabel,children:e}),i]}):i};import{jsx as Bn,jsxs as HP}from"react/jsx-runtime";var Tg=-1,$6=e=>`${Math.round(e*100)}%`,UP=({tracks:e,trackIndex:t,showCaptions:o,captionStyle:n,onCaptionStyleChange:l,dispatch:r,labels:c,classNames:i,styles:s})=>{let p={classNames:i,styles:s},d=t<e.length?t:0,g=[{value:Tg,label:c.captionsOff},...e.map((u,b)=>({value:b,label:MP(u,b,c.captionsTrack)}))],m=Object.keys(Lr).map(u=>({value:u,label:c.captionFontFamilies[u]??dg[u],style:{fontFamily:Lr[u]}})),v=Object.keys(zl).map(u=>{let b=c.captionColors[u]??mg[u];return{value:u,label:b,ariaLabel:b,swatch:xs(u)}}),y=u=>u.map(b=>({value:b,label:$6(b)}));return HP("div",{className:G6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",i?.captionsSettings),style:s?.captionsSettings,children:[Bn($l,{title:c.language,...p,children:Bn(co,{options:g,value:o?d:Tg,onChange:u=>r(u===Tg?{type:"hideCaptions"}:{type:"selectCaptionsTrack",index:u}),...p})}),HP($l,{title:c.captionStyle,onReset:()=>l(Fo),resetLabel:c.resetCaptionStyle,...p,children:[Bn(co,{label:c.fontFamily,options:m,value:n.fontFamily,onChange:u=>l({fontFamily:u}),...p}),Bn(co,{label:c.fontColor,options:v,value:n.fontColor,onChange:u=>l({fontColor:u}),...p}),Bn(co,{label:c.fontSize,options:y(Cs),value:n.fontSize,onChange:u=>l({fontSize:u}),...p}),Bn(co,{label:c.backgroundColor,options:v,value:n.backgroundColor,onChange:u=>l({backgroundColor:u}),...p}),Bn(co,{label:c.backgroundOpacity,options:y(Ps),value:n.backgroundOpacity,onChange:u=>l({backgroundOpacity:u}),...p})]})]})};import{cn as W6}from"@cleen/ui-core";import{jsx as Bg}from"react/jsx-runtime";var GP=({quality:e,labels:t,classNames:o,styles:n})=>{let l=xP(e.levels,t.qualityLevel),r=l.find(i=>i.value===e.current)?.label,c=[{value:Rr,label:t.qualityAuto(r)},...l];return Bg("div",{className:W6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",o?.qualitySettings),style:n?.qualitySettings,children:Bg($l,{title:t.quality,classNames:o,styles:n,children:Bg(co,{options:c,value:e.selected,onChange:e.onChange,classNames:o,styles:n})})})};import{cn as Ls}from"@cleen/ui-core";import{jsx as Ng,jsxs as $P}from"react/jsx-runtime";var WP=({playbackRate:e,dispatch:t,label:o,classNames:n,styles:l})=>$P("div",{className:Ls("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",n?.speedContent),style:l?.speedContent,children:[$P("div",{className:Ls("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",n?.speedHeader),style:l?.speedHeader,children:[Ng("span",{className:n?.speedLabel,style:l?.speedLabel,children:o}),Ng("span",{className:Ls("cleen-tabular-nums cleen-text-primary",n?.speedValue),style:l?.speedValue,children:`${e.toFixed(2)}\xD7`})]}),Ng(Sn,{minValue:gg,maxValue:yg,step:lP,value:e,onChange:r=>t({type:"setPlaybackRate",playbackRate:r}),className:Ls("cleen-w-full",n?.speedSlider?.className),classNames:n?.speedSlider?.classNames,labels:{minLabel:`${gg}\xD7`,maxLabel:`${yg}\xD7`},...l?.speedSlider})]});import{jsx as It}from"react/jsx-runtime";var Dr=18,KP='button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])',YP=({containerRef:e,portalContainer:t,isOpen:o,onOpenChange:n,showQualityTab:l,quality:r,showSpeedTab:c,showCaptionsTab:i,playbackRate:s,captionTracks:p,captionsTrackIndex:d,showCaptions:g,captionStyle:m,onCaptionStyleChange:v,dispatch:y,labels:u,iconSize:b,classNames:C,styles:x})=>{let[I,P]=XP(0),[k,F]=XP(),T=qP(null),B=qP(null),L=D=>{n(!1),D&&T.current?.focus()};q6(()=>{if(!o)return;let D=requestAnimationFrame(()=>{let N=B.current;(N?.querySelector('[aria-current="page"]')??N?.querySelector(KP))?.focus({preventScroll:!0})}),z=N=>{N.key==="Escape"&&(n(!1),document.activeElement===T.current&&T.current?.focus())};return document.addEventListener("keydown",z),()=>{cancelAnimationFrame(D),document.removeEventListener("keydown",z)}},[o,n]);let M=C?.settingsPopover?.classNames,S=C?.settingsTabs?.classNames,w=D=>{if(D){let z=e.current?.clientHeight;F(z===void 0?void 0:Math.min(yP,z-gP))}n(D)},E=D=>{if(D.stopPropagation(),D.key==="Escape"){L(!0);return}if(D.key==="Tab"&&B.current){let z=Array.from(B.current.querySelectorAll(KP)),N=z[0],A=z[z.length-1];D.shiftKey&&document.activeElement===N?(D.preventDefault(),A?.focus()):!D.shiftKey&&document.activeElement===A&&(D.preventDefault(),N?.focus())}},R=[...l?[{id:"quality",label:It(qr,{width:Dr,height:Dr}),content:It(GP,{quality:r,labels:u,classNames:C,styles:x})}]:[],...c?[{id:"speed",label:It(Va,{width:Dr,height:Dr}),content:It(WP,{playbackRate:s,dispatch:y,label:u.playbackSpeed,classNames:C,styles:x})}]:[],...i?[{id:"captions",label:It(ea,{width:Dr,height:Dr}),content:It(UP,{tracks:p,trackIndex:d,showCaptions:g,captionStyle:m,onCaptionStyleChange:v,dispatch:y,labels:u,classNames:C,styles:x})}]:[]];return It(wl,{position:"top-right",isOpen:o,onOpenChange:w,portalContainer:t,className:C?.settingsPopover?.className,classNames:{...M,popover:_o("!cleen-w-72 cleen-flex cleen-flex-col cleen-overflow-hidden",M?.popover),trigger:_o("cleen-flex cleen-items-center",M?.trigger)},...x?.settingsPopover,styles:{...x?.settingsPopover?.styles,popover:{height:k,...x?.settingsPopover?.styles?.popover}},content:It("div",{ref:B,className:"cleen-flex cleen-flex-col cleen-min-h-0",onKeyDown:E,onDoubleClick:D=>D.stopPropagation(),children:It(Il,{tabs:R,currentTabIndex:Math.min(I,R.length-1),onTabChange:P,variant:"underlined",className:_o("cleen-flex cleen-flex-col cleen-min-h-0",C?.settingsTabs?.className),classNames:{...S,container:_o("cleen-flex cleen-flex-col cleen-min-h-0",S?.container),list:_o("cleen-shrink-0 cleen-mb-0 cleen-px-3 cleen-pt-2",S?.list),tab:_o("cleen-pb-2",S?.tab),content:_o("cleen-min-h-0 cleen-overflow-y-auto",S?.content)},...x?.settingsTabs})}),children:It(Dt,{ref:T,label:u.settings,active:o,className:_o(C?.controlButton,C?.settingsButton),style:{...x?.controlButton,...x?.settingsButton},children:It(Da,{width:b,height:b})})})};import{cn as QP}from"@cleen/ui-core";import{jsx as Rg}from"react/jsx-runtime";var ZP=({hasTracks:e,showCaptions:t,onToggle:o,portalContainer:n,labels:l,classNames:r,styles:c})=>{let i=r?.subtitlesBadge?.classNames;return Rg(Ie,{label:e?l.subtitles:l.noSubtitles,className:r?.subtitlesTooltip?.className,classNames:r?.subtitlesTooltip?.classNames,portalContainer:n,...c?.subtitlesTooltip,children:Rg("button",{type:"button","aria-label":l.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:o,className:QP("cleen-rounded-md disabled:cleen-opacity-40",Oo,r?.subtitlesButton),style:c?.subtitlesButton,children:Rg(we,{variant:"sleek",className:r?.subtitlesBadge?.className,classNames:{...i,container:QP(TP,{[BP]:e},{[NP]:t},i?.container)},...c?.subtitlesBadge,children:l.subtitlesBadge})})})};import{jsx as Nn,jsxs as X6}from"react/jsx-runtime";var JP=({muted:e,volume:t,size:o})=>e||t===0?Nn(Ka,{width:o,height:o}):t<.75?Nn(Xa,{width:o,height:o}):Nn(qa,{width:o,height:o}),jP=({isFullscreen:e,size:t})=>e?Nn(xa,{width:t,height:t}):Nn(Ia,{width:t,height:t}),Fr=({forward:e,seconds:t,size:o})=>X6("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[Nn(e?La:Ra,{width:o,height:o}),Nn("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(o*.34)},children:t})]});import{cn as Es}from"@cleen/ui-core";import{jsx as Ds,jsxs as K6}from"react/jsx-runtime";var ex=({muted:e,volume:t,dispatch:o,labels:n,iconSize:l,classNames:r,styles:c})=>K6("div",{className:Es("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2 cleen-min-w-0",r?.volume),style:c?.volume,children:[Ds(Dt,{label:e?n.unmute:n.mute,active:e,onClick:()=>o({type:"toggleMuted"}),className:Es(r?.controlButton,r?.muteButton),style:{...c?.controlButton,...c?.muteButton},children:Ds(JP,{muted:e,volume:t,size:l})}),Ds("div",{role:"group","aria-label":n.volume,className:Es("cleen-min-w-0 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",r?.volumeSliderContainer),style:c?.volumeSliderContainer,children:Ds(Sn,{minValue:0,maxValue:1,step:_l,value:e?0:t,onChange:i=>o({type:"setVolume",volume:i,muted:i===0}),className:Es("cleen-w-full",r?.volumeSlider?.className),classNames:r?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...c?.volumeSlider})})]});import{jsx as Te,jsxs as Wl}from"react/jsx-runtime";var tx=({containerRef:e,portalContainer:t,videoRef:o,src:n,state:l,dispatch:r,isShown:c,allowBarSeeking:i,chapters:s,buffered:p,seekStep:d,quality:g,hasTracks:m,captionTracks:v,captionStyle:y,onCaptionStyleChange:u,onSettingsOpenChange:b,visible:C,hidden:x,controlsOnHover:I,onSeek:P,onSeekBy:k,onTogglePlay:F,onToggleFullscreen:T,pictureInPictureSupported:B,onTogglePictureInPicture:L,labels:M,compact:S,classNames:w,styles:E})=>{let{playing:R,currentTime:D,duration:z,muted:N,volume:A,playbackRate:_,showCaptions:U,captionsTrackIndex:O,settingsOpen:$,isPictureInPicture:Q,isFullscreen:G}=l,V=S?mP:dP,X=Gl(s,D)?.title,H=I&&!$,q=c("quality")&&g.levels.length>0,pe=c("speed"),fe=c("subtitles")&&v.length>0,me=$e=>({className:Rn(w?.controlButton,w?.[$e]),style:{...E?.controlButton,...E?.[$e]}});return Wl("div",{className:Rn("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-pointer-events-none",{"cleen-hidden":x},w?.controlBar),style:E?.controlBar,children:[Te(EP,{videoRef:o,src:n,showCaptions:U,trackIndex:O,captionStyle:y,pictureInPicture:Q,hidden:x,controlsVisible:C,controlsOnHover:H,classNames:w,styles:E}),Wl("div",{className:Rn("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",C?H?"cleen-opacity-0 group-hover:cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-0",w?.controls),style:E?.controls,children:[c("seekbar")&&Te(VP,{allowBarSeeking:i,chapters:s,duration:z,currentTime:D,buffered:p,onSeek:P,seekLabel:M.seek,progressLabel:M.progress,classNames:w,styles:E}),Wl("div",{className:Rn("cleen-flex cleen-items-center","cleen-gap-2.5",{"sm:cleen-gap-3.5":!S},Ao,w?.controlsRow),style:E?.controlsRow,children:[c("play")&&!S&&Te(Dt,{label:R?M.pause:M.play,onClick:F,...me("playButton"),children:R?Te(ft,{width:V,height:V}):Te(ht,{width:V,height:V})}),c("backward")&&Te(Dt,{label:M.seekBackward(d),onClick:()=>k(-d),...me("backwardButton"),children:Te(Fr,{seconds:d,size:V})}),c("forward")&&Te(Dt,{label:M.seekForward(d),onClick:()=>k(d),...me("forwardButton"),children:Te(Fr,{forward:!0,seconds:d,size:V})}),c("volume")&&Te(ex,{muted:N,volume:A,dispatch:r,labels:M,iconSize:V,classNames:w,styles:E}),c("time")&&Wl("span",{className:Rn("cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap",{"cleen-text-xxs":S},w?.time),style:E?.time,children:[Te("span",{className:w?.currentTime,style:E?.currentTime,children:Er(D)})," ",Wl("span",{className:Rn("cleen-font-medium",wg,w?.duration),style:E?.duration,children:["/ ",Er(z)]})]}),X?Te("span",{title:X,className:Rn("cleen-flex-1 cleen-min-w-0 cleen-font-medium cleen-text-[13px] cleen-truncate",wg,w?.chapterTitle),style:E?.chapterTitle,children:X}):Te("span",{className:"cleen-flex-1"}),c("subtitles")&&m&&!S&&Te(ZP,{hasTracks:m,showCaptions:U,onToggle:()=>r({type:"toggleCaptions"}),portalContainer:t,labels:M,classNames:w,styles:E}),c("settings")&&(q||pe||fe)&&Te(YP,{containerRef:e,portalContainer:t,isOpen:$,onOpenChange:b,showQualityTab:q,quality:g,showSpeedTab:pe,showCaptionsTab:fe,playbackRate:_,captionTracks:v,captionsTrackIndex:O,showCaptions:U,captionStyle:y,onCaptionStyleChange:u,dispatch:r,labels:M,iconSize:V,classNames:w,styles:E}),c("pictureInPicture")&&B&&Te(Dt,{label:Q?M.exitPictureInPicture:M.pictureInPicture,active:Q,onClick:L,...me("pictureInPictureButton"),children:Te(ka,{width:V,height:V})}),c("fullscreen")&&Te(Dt,{label:G?M.exitFullscreen:M.fullscreen,active:G,onClick:T,...me("fullscreenButton"),children:Te(jP,{isFullscreen:G,size:V})})]})]})]})};import{cn as ox}from"@cleen/ui-core";import{cn as Y6}from"@cleen/ui-core";import{jsx as Q6}from"react/jsx-runtime";var Lg=({label:e,onClick:t,className:o,style:n,children:l})=>Q6("button",{type:"button","aria-label":e,onClick:t,className:Y6("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",ws,Ms,Ao,Oo,o),style:n,children:l});import{jsx as Ln,jsxs as Z6}from"react/jsx-runtime";var nx=({playing:e,seekStep:t,visible:o,hidden:n,controlsOnHover:l,isShown:r,onTogglePlay:c,onSeekBy:i,labels:s,classNames:p,styles:d})=>Z6("div",{className:ox("cleen-relative cleen-flex cleen-items-center cleen-gap-6 cleen-transition-opacity cleen-duration-300",o?l?"cleen-opacity-0 group-hover:cleen-opacity-100":"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":n},p?.overlay),style:d?.overlay,children:[r("backward")&&Ln(Lg,{label:s.seekBackward(t),onClick:()=>i(-t),className:p?.overlayButton,style:d?.overlayButton,children:Ln(Fr,{seconds:t,size:26})}),r("play")&&Ln("button",{type:"button","aria-label":e?s.pause:s.play,onClick:c,className:ox("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",ws,Ms,Ao,Oo,p?.overlayPlayButton),style:d?.overlayPlayButton,children:e?Ln(ft,{width:28,height:28}):Ln(ht,{width:28,height:28})}),r("forward")&&Ln(Lg,{label:s.seekForward(t),onClick:()=>i(t),className:p?.overlayButton,style:d?.overlayButton,children:Ln(Fr,{forward:!0,seconds:t,size:26})})]});import{cn as Eg}from"@cleen/ui-core";import{jsx as rx,jsxs as J6}from"react/jsx-runtime";var ax=({label:e,subLabel:t,classNames:o,styles:n})=>J6("div",{className:Eg("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",o?.placeholder),style:n?.placeholder,children:[rx("span",{className:Eg("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",o?.placeholderLabel),style:n?.placeholderLabel,children:e}),t&&rx("span",{className:Eg("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",o?.placeholderSubLabel),style:n?.placeholderSubLabel,children:t})]});import{useEffect as lx,useState as j6}from"react";var Dg=[],cx=["progress","timeupdate","loadedmetadata","durationchange","seeked","emptied"],ix=(e,t,o)=>{let[n,l]=j6(Dg);return lx(()=>{l(Dg)},[t]),lx(()=>{let r=e.current;if(!r)return;let c=()=>{let i=IP(r.buffered);l(s=>CP(s,i)?s:i.length>0?i:Dg)};return c(),cx.forEach(i=>r.addEventListener(i,c)),()=>cx.forEach(i=>r.removeEventListener(i,c))},[e,t,o]),n};import{useCallback as eE,useState as tE}from"react";var oE=()=>{try{let e=window.localStorage.getItem(vg);return Sg(e?JSON.parse(e):void 0)}catch{return Sg(void 0)}},sx=()=>{let[e,t]=tE(oE),o=eE(n=>{t(l=>{let r={...l,...n};try{window.localStorage.setItem(vg,JSON.stringify(r))}catch{}return r})},[]);return{captionStyle:e,updateCaptionStyle:o}};import{useEffect as nE,useState as rE}from"react";var Fg=[],px=(e,t,o,n)=>{let[l,r]=rE(Fg);return nE(()=>{let c=e.current,i=c?.textTracks;if(!c||!i)return;let s,p,d=()=>{let y=s?.cues,u=!!(y&&y.length>0);return r(u&&y?wP(y):Fg),u},g=()=>{clearInterval(p);let y=0;p=setInterval(()=>{y+=1,(d()||y>=hP)&&clearInterval(p)},fP)},m=()=>{let y=SP(i,t);y!==s&&(s&&(s.removeEventListener("cuechange",d),s.mode="disabled"),y?.addEventListener("cuechange",d),s=y),s&&s.mode!=="hidden"&&(s.mode="hidden"),!d()&&s&&g()},v=y=>{y.target instanceof HTMLTrackElement&&d()};return m(),i.addEventListener("addtrack",m),i.addEventListener("removetrack",m),c.addEventListener("load",v,!0),()=>{clearInterval(p),i.removeEventListener("addtrack",m),i.removeEventListener("removetrack",m),c.removeEventListener("load",v,!0),s&&(s.removeEventListener("cuechange",d),s.mode="disabled"),r(Fg)}},[e,t,o,n]),l};import{useEffect as aE,useState as lE}from"react";var dx=e=>{let[t,o]=lE(!1);return aE(()=>{let n=e.current;if(!n||typeof ResizeObserver>"u")return;let l=new ResizeObserver(([r])=>{o(r.contentRect.width<pP)});return l.observe(n),()=>l.disconnect()},[e]),t};import{useCallback as Ot,useEffect as cE,useRef as mx,useState as iE}from"react";var ux=e=>{try{return e.matches(":focus-visible")}catch{return!1}},sE=()=>typeof window<"u"&&window.matchMedia?.("(hover: none)").matches?"touch":"mouse",fx=(e,t,o,n,l)=>{let r=mx(void 0),c=mx(void 0),[i,s]=iE(sE),p=Ot(()=>{let P=n.current,k=document.activeElement;return!!P&&!!k&&k!==P&&P.contains(k)&&ux(k)},[n]),d=Ot(()=>{clearTimeout(r.current);let P=()=>{r.current=setTimeout(()=>{if(p()){P();return}o({type:"setControlsActive",controlsActive:!1})},cP)};P()},[o,p]),g=Ot(()=>{o({type:"setControlsActive",controlsActive:!0}),d()},[o,d]),m=Ot(()=>{e&&!p()&&(clearTimeout(r.current),o({type:"setControlsActive",controlsActive:!1}))},[o,p,e]);cE(()=>{if(!e){clearTimeout(r.current),o({type:"setControlsActive",controlsActive:!0});return}return d(),()=>clearTimeout(r.current)},[o,e,d]);let v=!e||t,y=Ot(P=>{P.pointerType==="mouse"&&(s("mouse"),g())},[g]),u=Ot(P=>{P.pointerType==="mouse"&&m()},[m]),b=Ot(P=>{if(c.current=P.pointerType,P.pointerType!=="touch"){s("mouse");return}s("touch"),P.target!==l.current&&g()},[l,g]),C=Ot(P=>{P.metaKey||P.ctrlKey||P.altKey||(s("keyboard"),g())},[g]),x=Ot(P=>{P.target!==P.currentTarget&&ux(P.target)&&(s("keyboard"),g())},[g]),I=Ot(()=>c.current!=="touch"?!1:(v&&e?m():g(),!0),[v,m,e,g]);return{controlsVisible:v,inputMode:i,revealControls:g,handleMediaClick:I,containerHandlers:{onPointerMove:y,onPointerLeave:u,onPointerDown:b,onKeyDown:C,onFocus:x}}};import{useCallback as pE,useEffect as dE}from"react";var hx=(e,t,o)=>(dE(()=>{let n=()=>o({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",n),()=>document.removeEventListener("fullscreenchange",n)},[e,o]),pE(()=>{let n=e.current;!n||!t||(document.fullscreenElement?document.exitFullscreen():n.requestFullscreen?.())},[e,t]));import{useLayoutEffect as mE,useRef as uE}from"react";var gx=(e,t)=>{let o=uE(null);mE(()=>{let n=e.current;if(!n)return;if(t){let r=document.activeElement;r instanceof HTMLElement&&r!==n&&n.contains(r)&&(o.current=r,n.focus({preventScroll:!0}));return}let l=o.current;o.current=null,l?.isConnected&&document.activeElement===n&&l.focus({preventScroll:!0})},[e,t])};import{useCallback as fE}from"react";var hE='input, textarea, select, [contenteditable]:not([contenteditable="false"])',gE='button, a[href], [role="button"], [role="tab"]',yE='[role="slider"], [role="radiogroup"], [role="tablist"]',vE=e=>{let t=e.target;return t===e.currentTarget?!1:t.closest(hE)?!0:e.key===" "||e.key==="Enter"?!!t.closest(gE):e.key.startsWith("Arrow")||e.key==="Home"||e.key==="End"?!!t.closest(yE):!1},yx=({volume:e,canSeekBackward:t,canSeekForward:o,canUseVolume:n,canUseCaptions:l,dispatch:r,seekBy:c,seekToPercentage:i,togglePlay:s,toggleFullscreen:p,restart:d})=>fE(g=>{if(g.metaKey||g.ctrlKey||g.altKey||vE(g))return;let m=(y,u=!0)=>{u&&(g.preventDefault(),y())},v=y=>r({type:"setVolume",volume:y,muted:!1});switch(g.key){case"ArrowLeft":return m(()=>c(-Vl),t);case"ArrowRight":return m(()=>c(Vl),o);case"ArrowUp":return m(()=>v(Math.min(e+_l,1)),n);case"ArrowDown":return m(()=>v(Math.max(e-_l,0)),n);case"f":return m(p);case"m":return m(()=>r({type:"toggleMuted"}),n);case"r":return m(d);case"c":return m(()=>{l&&r({type:"toggleCaptions"})});case"0":return m(()=>i(0));case"1":return m(()=>i(.1));case"2":return m(()=>i(.2));case"3":return m(()=>i(.3));case"4":return m(()=>i(.4));case"5":return m(()=>i(.5));case"6":return m(()=>i(.6));case"7":return m(()=>i(.7));case"8":return m(()=>i(.8));case"9":return m(()=>i(.9));case" ":return m(s);default:return}},[t,o,l,n,r,d,c,i,p,s,e]);import{useCallback as bE,useEffect as vx,useRef as IE,useState as CE}from"react";var Ag=()=>{},bx=e=>!!e&&typeof document<"u"&&document.pictureInPictureEnabled===!0&&typeof e.requestPictureInPicture=="function"&&!e.disablePictureInPicture,Ix=(e,t,o,n,l)=>{let[r,c]=CE(!1),i=IE(!1);vx(()=>{let p=e.current;if(c(bx(p)),!p)return;let d=v=>{i.current=v,l({type:"setPictureInPicture",isPictureInPicture:v})},g=()=>d(!0),m=()=>d(!1);return p.addEventListener("enterpictureinpicture",g),p.addEventListener("leavepictureinpicture",m),()=>{p.removeEventListener("enterpictureinpicture",g),p.removeEventListener("leavepictureinpicture",m)}},[e,o,n,l]),vx(()=>()=>{i.current&&document.pictureInPictureElement&&document.exitPictureInPicture().catch(Ag)},[]);let s=bE(()=>{let p=e.current;!t||!bx(p)||(i.current&&document.pictureInPictureElement?document.exitPictureInPicture().catch(Ag):p?.requestPictureInPicture().catch(Ag))},[t,e]);return{isSupported:t&&r,togglePictureInPicture:s}};import{useEffect as PE}from"react";var Cx=e=>{PE(()=>{let t=e.current;if(!t||typeof ResizeObserver>"u")return;let o=new ResizeObserver(([n])=>{t.style.setProperty(Is,`${n.contentRect.height}px`)});return o.observe(t),()=>{o.disconnect(),t.style.removeProperty(Is)}},[e])};import{useCallback as xE,useEffect as Px,useRef as SE,useState as Fs}from"react";var Og=[],wE=e=>{let t=e?.api;return t&&Array.isArray(t.levels)&&typeof t.on=="function"?t:void 0},ME=e=>e.map((t,o)=>({index:o,width:t.width??0,height:t.height??0,bitrate:t.bitrate??0})),xx=(e,t,o,n)=>{let[l,r]=Fs(),[c,i]=Fs(Og),[s,p]=Fs(Rr),[d,g]=Fs(-1),m=SE(n);m.current=n,Px(()=>{let y=wE(e.current);if(!y)return;let u=()=>{let x=ME(y.levels);y.autoLevelCapping=xg(x,m.current),i(x.length>1?x:Og),p(y.autoLevelEnabled?Rr:y.currentLevel),g(y.currentLevel)},b=(x,I)=>g(I.level),C=()=>{r(void 0),i(Og),p(Rr),g(-1)};return r(y),u(),y.on("hlsManifestParsed",u),y.on("hlsLevelsUpdated",u),y.on("hlsLevelSwitched",b),y.on("hlsDestroying",C),()=>{y.off("hlsManifestParsed",u),y.off("hlsLevelsUpdated",u),y.off("hlsLevelSwitched",b),y.off("hlsDestroying",C)}},[e,t,o]),Px(()=>{l&&(l.autoLevelCapping=xg(c,n))},[l,c,n]);let v=xE(y=>{l&&(l.nextLevel=y,p(y))},[l]);return{levels:c,selected:s,current:d,onChange:v}};import{useCallback as As,useEffect as kE,useRef as TE}from"react";var Sx=(e,t,o,n)=>{let l=TE(0);kE(()=>{l.current=0},[o]);let r=As(p=>{let d=e.current;if(!d||!Number.isFinite(d.duration))return;n();let g=t?d.duration:Math.min(Math.max(l.current,d.currentTime),d.duration);d.currentTime=Math.min(Math.max(p,0),g)},[t,n,e]),c=As(p=>{let d=e.current;!d||!Number.isFinite(d.duration)||r(d.duration*Math.min(Math.max(p,0),1))},[r,e]),i=As(p=>r((e.current?.currentTime??0)+p),[r,e]),s=As(p=>{let d=e.current;!d||!Number.isFinite(d.duration)||(n(),d.currentTime=Math.min(Math.max(p,0),d.duration))},[n,e]);return{seekTo:r,seekToPercentage:c,seekBy:i,jumpTo:s,watchedTimeRef:l}};import{useCallback as wx,useRef as BE}from"react";var Mx=(e,t)=>{let o=BE({seconds:e,src:null,attempts:0,done:!1}),n=wx(r=>{let c=o.current;if(!r?.src||c.done||(c.src===null&&(c.src=r.src),c.src!==r.src))return;let{seconds:i}=c,s=Number.isFinite(r.duration);if(i===void 0||!Number.isFinite(i)||i<=0||s&&i>r.duration){c.done=!0;return}s&&(c.attempts+=1,Math.abs(r.currentTime-i)>sP?r.currentTime=i:c.done=!0,c.attempts>=iP&&(c.done=!0),t({type:"seek",currentTime:i}))},[t]),l=wx(()=>{o.current.done=!0},[]);return{applyStartTime:n,cancelStartTime:l}};var kx=(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"selectCaptionsTrack":return{...e,captionsTrackIndex:t.index,showCaptions:!0};case"hideCaptions":return{...e,showCaptions:!1};case"setSettingsOpen":return{...e,settingsOpen:t.settingsOpen};case"setPictureInPicture":return{...e,isPictureInPicture:t.isPictureInPicture};case"setFullscreen":return{...e,isFullscreen:t.isFullscreen};case"setControlsActive":return{...e,controlsActive:t.controlsActive};default:return e}};import{jsx as En,jsxs as Nx}from"react/jsx-runtime";var DE=[],Bx=[],FE=NE(function({src:t,tracks:o=DE,startTime:n,allowBarSeeking:l=!0,allowSeekingPastWatched:r=!0,chapters:c,hiddenControls:i=Bx,hiddenOverlayControls:s=Bx,aspectRatio:p=bs,controlsOnHover:d=!1,seekStep:g=10,maxQuality:m=hg,engine:v=Ig,labels:y,onTimeChange:u,onDurationChange:b,onPause:C,onEnded:x,className:I,classNames:P,style:k,styles:F,...T},B){let L=Tx(null),M=Tx(null),[S,w]=LE(kx,bP),{playing:E,duration:R,muted:D,volume:z,playbackRate:N,isLoading:A,isFullscreen:_}=S,U=_g(()=>({...ug,...y}),[y]),O=_g(()=>Ss(o),[o]),$=O.length>0,{captionStyle:Q,updateCaptionStyle:G}=sx(),V=ie=>!i.includes(ie),X=ie=>!s.includes(ie),H=V("volume"),q=V("fullscreen"),pe=V("pictureInPicture"),fe=$&&V("subtitles"),me=V("backward")||X("backward"),$e=V("forward")||X("forward"),{applyStartTime:Pe,cancelStartTime:j}=Mx(n,w),{seekTo:ce,seekToPercentage:tt,seekBy:We,jumpTo:Be,watchedTimeRef:De}=Sx(M,r,t,j),{controlsVisible:ze,inputMode:Y,revealControls:xe,handleMediaClick:Ne,containerHandlers:ge}=fx(E,S.controlsActive||S.settingsOpen,w,L,M),qe=d&&Y==="mouse",ot=Ge(ie=>{w({type:"setSettingsOpen",settingsOpen:ie}),ie||xe()},[xe]);Cx(L);let Ar=dx(L),{isSupported:Dn,togglePictureInPicture:oe}=Ix(M,pe,t,!A,w),W=hx(L,q,w);RE(B,()=>({getMediaElement:()=>M.current,play:()=>w({type:"play"}),pause:()=>w({type:"pause"}),jumpTo:Be}),[Be]);let Z=Ge(()=>w({type:"togglePlay"}),[]),se=Ge(()=>{ce(0),w({type:"play"})},[ce]),Re=yx({volume:z,canSeekBackward:me,canSeekForward:$e,canUseVolume:H,canUseCaptions:fe,dispatch:w,seekBy:We,seekToPercentage:tt,togglePlay:Z,toggleFullscreen:W,restart:se}),Fn=ge.onKeyDown,Or=Ge(ie=>{Fn(ie),Re(ie)},[Fn,Re]),be=Ge(()=>{Ne()||Z()},[Ne,Z]),Vo=Ge(()=>w({type:"play"}),[]),Rx=Ge(()=>{w({type:"pause"}),C?.()},[C]),Lx=Ge(ie=>{De.current=ie.currentTarget.duration,w({type:"pause"}),x?.()},[x,De]),Ex=Ge(ie=>{let _r=ie.currentTarget,zo=_r.currentTime;if(zo-De.current<=vP)De.current=Math.max(De.current,zo);else if(!r){_r.currentTime=De.current;return}w({type:"timeUpdate",currentTime:zo}),u?.(zo)},[r,u,De]),[Dx,Fx]=EE(),Ax=Ge(ie=>{let{videoWidth:_r,videoHeight:zo}=ie.currentTarget;Fx(_r>0&&zo>0?_r/zo:void 0),w({type:"loaded",duration:ie.currentTarget.duration}),Pe(ie.currentTarget)},[Pe]),Vg=Ge(ie=>Pe(ie.currentTarget),[Pe]),Ox=Ge(ie=>{w({type:"ready"}),Pe(ie.currentTarget)},[Pe]),_x=Ge(ie=>{w({type:"durationChange",duration:ie.currentTarget.duration}),Pe(ie.currentTarget),b?.(ie)},[Pe,b]),Vx=Ge(()=>w({type:"buffering"}),[]),zx=Ge(()=>w({type:"ready"}),[]),zg=!!t&&A,Hg=!t||!A&&(!Number.isFinite(R)||R===0),Os=Hg||zg;gx(L,Os);let _s=px(M,(O[S.captionsTrackIndex]??O[0])?.srcLang,t,!A),Hx=ix(M,t,!A),Ux=xx(M,t,!A,m),Gx=_g(()=>Cg(_s.length>0?_s:c,R),[_s,c,R]);return En("div",{className:ql("cleen",I),style:k,children:Nx("div",{ref:L,className:ql("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":!ze,"focus-visible:cleen-ring-0":_},P?.container),style:F?.container,onPointerMove:ge.onPointerMove,onPointerLeave:ge.onPointerLeave,onPointerDown:ge.onPointerDown,onFocus:ge.onFocus,onDoubleClick:W,onKeyDown:Or,tabIndex:0,children:[Nx("div",{className:ql("cleen-relative cleen-flex cleen-justify-center cleen-items-center",{"cleen-h-full":_},P?.viewport),style:{aspectRatio:_?void 0:p==="auto"?Dx??bs:p,...F?.viewport},children:[En(v,{...T,ref:M,src:t||void 0,controls:!1,playing:E,muted:D,volume:z,playbackRate:N,playsInline:!0,className:ql("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",P?.video),style:F?.video,onClick:be,onPlay:Vo,onPause:Rx,onEnded:Lx,onTimeUpdate:Ex,onLoadedMetadata:Ax,onLoadedData:Vg,onCanPlay:Ox,onSeeked:Vg,onDurationChange:_x,onWaiting:Vx,onError:zx,crossOrigin:"anonymous",children:o.map(ie=>En("track",{kind:ie.kind??"subtitles",src:ie.src,srcLang:ie.srcLang,label:ie.label},ie.src))}),Hg&&En(ax,{label:U.placeholder,subLabel:U.placeholderSubLabel,classNames:P,styles:F}),zg&&En(re,{size:"xl",className:ql("cleen-absolute",P?.loader?.className),classNames:P?.loader?.classNames,...F?.loader}),En(nx,{playing:E,seekStep:g,visible:ze,hidden:Os,controlsOnHover:qe,isShown:X,onTogglePlay:Z,onSeekBy:We,labels:U,classNames:P,styles:F})]}),En(tx,{compact:Ar,containerRef:L,portalContainer:_?L.current:null,videoRef:M,src:t,state:S,dispatch:w,isShown:V,allowBarSeeking:l,chapters:Gx,buffered:Hx,quality:Ux,seekStep:g,hasTracks:$,captionTracks:O,captionStyle:Q,onCaptionStyleChange:G,onSettingsOpenChange:ot,visible:ze,hidden:Os,controlsOnHover:qe,onSeek:ce,onSeekBy:We,onTogglePlay:Z,onToggleFullscreen:W,pictureInPictureSupported:Dn,onTogglePictureInPicture:oe,labels:U,classNames:P,styles:F})]})})});export{Zx as AdvancedProgressBar,y3 as AudioPlayback,S3 as AudioRecorder,fi as Avatar,B3 as AvatarRow,L3 as Breadcrumb,ee as Button,A0 as Calendar,W3 as CalendarDropdown,d3 as CanvasButton,he as Card,Rk as CardIcon,Ak as CardMedia,Z3 as Carousel,ml as Checkbox,iT as CheckboxGroup,Se as CleenIcon,pR as CleenNotificationContainer,cb as Collapsible,hT as ColorPicker,IT as CreditCardInput,Pl as DEFAULT_NOTIFICATION_CATEGORIES,xl as DEFAULT_NOTIFICATION_LABELS,ug as DEFAULT_VIDEO_PLAYER_LABELS,gt as Divider,z0 as Drawer,FC as DrawerContainer,uL as DrawerContentTitle,dl as Dropdown,eB as Dropzone,c3 as EditableCard,C0 as EditableText,S0 as EditableTextArea,cB as FileCard,Y0 as FileStackedProgressTracker,KB as FilterDrawer,SI as FormGroup,aN as GroupSelector,js as Icon48AlertFeatured,ep as Icon48SuccessFeatured,Uo as IconAlertCircle,op as IconAlertOctagon,rp as IconAlertTriangle,ap as IconApps,cp as IconArchive,ip as IconArrowBarDown,sp as IconArrowBarLeft,pp as IconArrowBarRight,dp as IconArrowBarToDown,mp as IconArrowBarToLeft,up as IconArrowBarToRight,fp as IconArrowBarToUp,hp as IconArrowBarUp,yp as IconArrowDown,vp as IconArrowDownLeft,Ip as IconArrowDownNarrow,Cp as IconArrowDownRight,xp as IconArrowLeft,wp as IconArrowLeftNarrow,kp as IconArrowRight,Bp as IconArrowRightNarrow,Rp as IconArrowUp,Lp as IconArrowUpLeft,Dp as IconArrowUpNarrow,Fp as IconArrowUpRight,Ap as IconAttachment,qr as IconBadgeHd,Op as IconBarChart,_p as IconBarChartSquare,Vp as IconBell,zp as IconBold,qp as IconBookOpen,Hp as IconBookmark,qs as IconBookmarkCheck,Xs as IconBookmarkCheckFill,Up as IconBookmarkFill,Gp as IconBookmarkMinus,Ys as IconBookmarkPlus,Wp as IconBookmarkX,Xp as IconBoxLines,Yp as IconBoxText,Zp as IconBracketsCheck,Jp as IconBracketsEllipses,jp as IconBrickWall,ed as IconBriefcase,Qs as IconBuilding,td as IconCalculator,Qr as IconCalendar,od as IconCertificate,Ht as IconCheck,Go as IconCheckCircle,nd as IconCheckCircleBroken,rd as IconCheckFill,ad as IconCheckVerified,ld as IconCheckVerifiedFill,Zr as IconChevronDown,cd as IconChevronDownDouble,id as IconChevronDownLeft,sd as IconChevronDownLeftDouble,pd as IconChevronDownRight,dd as IconChevronDownRightDouble,Ut as IconChevronLeft,md as IconChevronLeftDouble,mt as IconChevronRight,Jr as IconChevronRightDouble,ud as IconChevronSelectorVertical,Gt as IconChevronUp,fd as IconChevronUpDouble,hd as IconChevronUpLeft,gd as IconChevronUpLeftDouble,yd as IconChevronUpRight,vd as IconChevronUpRightDouble,bd as IconClick,Id as IconClock,Cd as IconClockFastForward,xd as IconClockPlay,Sd as IconClockRewind,wd as IconClone,ea as IconClosedCaption,Td as IconCode,Bd as IconCodeBrowser,Rd as IconCodeCircle,Ed as IconColors,Zs as IconColumnEdit,Dd as IconCopy,Fd as IconCopy2,Od as IconCopyCheck,_d as IconCreditCard,Vd as IconCube,zd as IconCubeOutline,ta as IconCursorBox,Hd as IconDataflow,Ud as IconDataflow2,Gd as IconDataflow3,Wd as IconDistributeHorizontal,qd as IconDollar,Kd as IconDollarCircle,Yd as IconDot,Qd as IconDotFill,Zd as IconDotsGrid,jd as IconDotsHorizontal,Gn as IconDotsVertical,om as IconDownload,nm as IconEdit,am as IconEditable,lm as IconExpand,im as IconExternalLink,pm as IconExternalLink2,dm as IconEye,um as IconEyeHidden,fm as IconEyeHidden2,hm as IconFaceAngry,gm as IconFaceLaugh,ym as IconFaceSmile,Wo as IconFile,bm as IconFileCheck,aa as IconFileCsv,Im as IconFileDownload,la as IconFileJson,Cm as IconFileList,at as IconFileMusic,qo as IconFilePdf,ia as IconFileSpreadsheet,Wt as IconFileText,Sm as IconFileUpload,pa as IconFileXls,da as IconFileXlsx,Ct as IconFileZip,xm as IconFiles,wm as IconFilter,ma as IconFilter2,km as IconFlag,Tm as IconFlag2,Bm as IconFlagFill,Nm as IconFocus,Rm as IconFolder,Lm as IconFolderExport,Em as IconFolderImport,Dm as IconGraduationCap,Fm as IconGripVertical,Am as IconHand,Om as IconHandShield,_m as IconHash,Vm as IconHeadsetMic,zm as IconHeart,Hm as IconHeartFill,Gm as IconHouse,fa as IconHouseLine,_e as IconImage,$m as IconImage2,Wm as IconImageCheck,qm as IconImageOff,Xm as IconImport,Km as IconInbox,Qm as IconInfoCircle,Jm as IconInfoHexagon,eu as IconItalic,ou as IconLayersMultiple,nu as IconLayersSingle,ru as IconLayout,lu as IconLayout2,cu as IconLayoutColumns,iu as IconLayoutCustom,pu as IconLayoutStuffed,du as IconLayoutTile,mu as IconLifeBuoy,fu as IconLightbulb,hu as IconLightning,gu as IconLightningFast,yu as IconLineChart,vu as IconLineChartBar,bu as IconLineChartBreakoutSquare,Cu as IconLineChartUp,Pu as IconLines,xu as IconLinesCheck,Su as IconLinesPlay,Mu as IconLink,ku as IconLink2,Tu as IconLinkOff,Bu as IconListBullet,Nu as IconListOrder,Lu as IconLock,Eu as IconLockFill,Fu as IconLogIn,Ou as IconLogOut,Vu as IconLogOut2,zu as IconMagicWand,Hu as IconMail,Uu as IconMailOpen,Gu as IconMapPin,Ia as IconMaximize,$u as IconMaximize2,Wu as IconMessageCircle,Xu as IconMessageSquare,Ku as IconMessageSquare2,Yu as IconMessageXSquare,Pa as IconMicrophone,xa as IconMinimize,Qu as IconMinimize2,Zu as IconMinusCircle,ju as IconMobile,ef as IconMonitor,tf as IconMonitor2,of as IconMoon,nf as IconMoonCircle,ut as IconMovie,Pt as IconName,rf as IconNavigationPointer,af as IconNotificationBox,uf as IconPCSetup,lf as IconPackage,cf as IconPalette,sf as IconPasscodeLock,ft as IconPause,df as IconPauseCircle,hf as IconPen,gf as IconPercentageCircle,yf as IconPerspective,bf as IconPhoneCall,ka as IconPictureInPicture,Ta as IconPin,ht as IconPlay,Cf as IconPlayCircle,Ba as IconPlus,go as IconPlusCircle,Sf as IconPrinter,wf as IconPulse,Na as IconQuestionCircle,kf as IconQuote,Tf as IconRadioButton,Bf as IconRadioButtonFill,Nf as IconReceipt,Rf as IconReceiptCheck,Lf as IconRedo,Ra as IconRefresh,Ef as IconRefresh2,Df as IconRefresh3,Ff as IconRepeat,Af as IconReplace,La as IconReplay,_f as IconRestore,zf as IconRocket,Hf as IconRoundChart,Uf as IconRoundChart2,$f as IconRoute,qf as IconSave,Xf as IconScanDots,Ea as IconScissors,qt as IconSearch,Kf as IconSend,Yf as IconServer,Da as IconSettings,Qf as IconSettings2,Zf as IconShare,Jf as IconShieldLightning,eh as IconShieldPlus,oh as IconShieldRemove,nh as IconShoppingBag,rh as IconShoppingCart,ah as IconShrink,lh as IconShuffle,ch as IconSkipForward,ih as IconSlashCircle,sh as IconSlashOctagon,ph as IconSocialAndroid,dh as IconSocialApple,mh as IconSocialGithub,uh as IconSocialGlobe,fh as IconSocialGoogle,gh as IconSocialInstagram,yh as IconSocialLinkedin,bh as IconSocialMastercard,Ih as IconSocialReact,Ch as IconSocialVisa,Ph as IconSocialX,Va as IconSpeedometer,xh as IconStairs,za as IconStar,Sh as IconStarFill,wh as IconStarHalf,Mh as IconStars,Ha as IconStop,kh as IconStrikethrough,Th as IconSun,Bh as IconSwap,Nh as IconSwitchHorizontal,Lh as IconTable,Ua as IconTag,Eh as IconTarget,Fh as IconTarget2,Oh as IconTextFormat,_h as IconTextFormat2,Vh as IconTextHighlight,zh as IconThumbsDown,Hh as IconThumbsUp,Uh as IconThumbsUpFill,Gh as IconToggle,$h as IconTranslate,lt as IconTrash,Wh as IconTrending,qh as IconUnderline,Xh as IconUndo,Yh as IconUnlock,Yo as IconUploadCloud,$a as IconUser,Jh as IconUserCheck,jh as IconUserDollar,t0 as IconUserEdit,o0 as IconUserPlus,n0 as IconUserRight,l0 as IconUserSquare,Js as IconUserVoice,r0 as IconUsers,c0 as IconUsersUp,i0 as IconVideo,p0 as IconVideoChat,qa as IconVolume,Xa as IconVolumeDown,Ka as IconVolumeMute,m0 as IconWrench,He as IconX,u0 as IconXCircle,f0 as IconXCircleFill,h0 as IconXSquare,g0 as IconZoomIn,v0 as IconZoomOut,ne as InfoLabels,ye as Input,ae as Label,re as Loader,fN as Lookup,bN as Markdown,fr as Menu,TN as Modal,gr as NOTIFICATION_GENERAL_CATEGORY,C6 as NativeVideoEngine,xR as Pagination,T1 as PaginationGoToPage,B1 as PaginationPageSize,we as PillBadge,wl as Popover,ur as ProgressBar,vC as ProgressCircle,_R as RadioBoxGroup,qR as RadioButtonGroup,ZR as Rating,Ig as ReactPlayerEngine,cL as Select,OC as Sidebar,Nl as SidebarItem,xL as Skeleton,A1 as SkeletonAvatar,_1 as SkeletonBadge,V1 as SkeletonBanner,H1 as SkeletonButton,Rl as SkeletonCard,ps as SkeletonCard2,U1 as SkeletonCard3,$1 as SkeletonCardStack,W1 as SkeletonChart,q1 as SkeletonContentCard,X1 as SkeletonDataGrid,K1 as SkeletonForm,Q1 as SkeletonGlowingCard,Z1 as SkeletonImage,J1 as SkeletonInfoCard,tg as SkeletonInput,og as SkeletonList,ag as SkeletonParagraph,lg as SkeletonText,cg as SkeletonVideo,gs as SkeletonWidgetCard,ZL as SkeletonWrapper,Sn as Slider,n6 as SliderRange,X0 as StackedProgressTracker,U0 as StackedProgressTrackerRow,G0 as StackedProgressTrackerStatusFilter,l6 as StarRating,nP as Stepper,s1 as Switch,gl as TRACKER_STATUS_FILTER_ORDER,Il as Tabs,d6 as TagFilter,x0 as TextArea,Ie as Tooltip,fl as TrackerItemStatus,hl as TrackerStatusFilter,bs as VIDEO_PLAYER_ASPECT_RATIO_DEFAULT,hg as VIDEO_PLAYER_MAX_QUALITY_DEFAULT,fg as VIDEO_PLAYER_SEEK_STEP_DEFAULT,FE as VideoPlayer,Hl as VideoPlayerControl,UI as createNotificationStore,Er as formatTime,b0 as getFileIcon,Gl as getVideoChapterAt,M6 as getVideoChapterIndex,Pg as getVideoChapterProgress,Cg as getVideoChapters,y1 as groupLayout,v1 as listLayout,fn as notification,le as notificationStore,O0 as parseRgbaString,GI as showNotification,b1 as stackLayout,DN as useNotifications};