@cleen/ui 0.1.293 → 0.1.294

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 Yo,useAnimateNumber as kS}from"@cleen/ui-core";import{forwardRef as TS,useMemo as hb}from"react";import{cn as sc,usePositionClose as xS,ZIndex as PS}from"@cleen/ui-core";import{useEffect as sb,useRef as op,useState as pb}from"react";import{createPortal as SS}from"react-dom";import{jsx as np,jsxs as db}from"react/jsx-runtime";var Ne=({bg:e,label:t,color:n,closeOnClick:o=!0,hideOnMouseDown:a=!0,isOpen:r,children:l,hasArrow:i,placement:s="top",offset:d=8,className:p,classNames:f,isDisabled:m,openDelay:b=0,invertColors:y=!1,extraUpdateTriggers:u,allowNonDescendantHover:v=!0,zIndex:C=PS.TOOLTIP,portalContainer:S,style:I,styles:x,onClick:w,onMouseEnter:R,onMouseLeave:T,...N})=>{let[D,M]=pb(r??!1),[P,k]=pb(!1),E=op(null),L=op(null),F=op(null),{positionStyles:O,isMounted:B,optimalPosition:A}=xS({triggerRef:L,targetRef:E,position:s,isOpen:D&&!m,offset:d,extraUpdateTriggers:u,container:S});sb(()=>{M(r??!1)},[r]);let V=_=>{w?.(_),o&&M(!1)},U=(_,W)=>{if(r!==void 0)return;let j=L.current?.contains(_.target);!v&&!j||(W?(R?.(_),b&&b>0?F.current=setTimeout(()=>{M(!0)},b):M(!0)):(F.current&&(clearTimeout(F.current),F.current=null),M(!1),T?.(_)))};return sb(()=>{let _=()=>{a&&k(!0)},W=()=>{k(!1)};return document.addEventListener("mousedown",_),document.addEventListener("mouseup",W),()=>{document.removeEventListener("mousedown",_),document.removeEventListener("mouseup",W)}},[a]),db("div",{className:sc("cleen",p),style:I,children:[np("div",{ref:L,className:sc("cleen-relative cleen-max-w-fit",f?.container),style:x?.container,onClick:V,onMouseEnter:_=>U(_,!0),onMouseLeave:_=>U(_,!1),...N,children:l}),t!==void 0&&D&&!m&&!P&&SS(np("div",{className:"cleen",children:db("div",{ref:E,className:sc("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":!B,"cleen-opacity-100":B},f?.labelContainer),style:{zIndex:C,top:`${O.top}px`,left:`${O.left}px`,...e&&{backgroundColor:e},...n&&{color:n},...x?.labelContainer},children:[t,np("div",{className:sc(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:{}})]})}),S??document.body)]})};import{cn as ta}from"@cleen/ui-core";var Wt=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),qt=(e,t,n)=>{let o=Number.isFinite(t)?t:0,a=Number.isFinite(n)?n:100;return a===o?0:(e-o)/(a-o)*100};import{cn as pc}from"@cleen/ui-core";import{jsx as rp}from"react/jsx-runtime";var dc=({serie:e,minValue:t,maxValue:n,color:o,trackHeight:a,className:r,style:l})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,s=Number.isFinite(i)?i:t,d=Wt(qt(s,t,n)),p=Math.max(2,e?.height??a*1.5),f={left:`${d}%`,top:"50%"};return e.tooltip?rp(Ne,{invertColors:!0,...e.tooltip,className:pc("cleen-absolute cleen-z-10 -cleen-translate-x-1/2 -cleen-translate-y-1/2",e.tooltip.className),style:{...f,...e.tooltip.style},classNames:{...e.tooltip.classNames,labelContainer:pc("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:rp("div",{className:pc("cleen-rounded-full",r),style:{width:p,height:p,backgroundColor:o,...l}})}):rp("div",{className:pc("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",r),style:{width:p,height:p,backgroundColor:o,...f,...l}})};import{jsx as mc}from"react/jsx-runtime";var mb=({serie:e,minValue:t,maxValue:n,animatedGlobal:o=t,renderAnimated:a,color:r,trackHeight:l,trackRadius:i,className:s,style:d})=>{if(e.type!=="bar")return null;let p=typeof e.start=="number"?e.start:t,f=typeof e.end=="number"?e.end:n,m=Wt(qt(p,t,n)),b=Wt(qt(f,t,n));b<m&&([m,b]=[b,m]);let y=Math.max(0,a?o-m:b-m);if(y<1&&!a||a&&o>=b&&y===0)return mc(dc,{serie:{...e,type:"clamp",value:m},color:r,trackHeight:l,minValue:t,maxValue:n,className:s,style:d});let u={left:`${m}%`,top:e?.height?(l-e.height)/2:0,width:`${y}%`,height:e?.height??"100%"},v={width:"100%",height:"100%"},C={background:r,borderRadius:e?.radius??i??(e?.height??l)/2};return e.tooltip?mc(Ne,{invertColors:!0,...e.tooltip,className:ta("cleen-absolute",e.tooltip.className),style:{...u,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:ta("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:ta("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:mc("div",{className:ta("cleen-relative cleen-size-full",s),style:{...C,...v,...d}})}):mc("div",{className:ta("cleen-absolute cleen-pointer-events-none",s),style:{...C,...u,...d}})};import{cn as wS}from"@cleen/ui-core";import{jsx as MS}from"react/jsx-runtime";var ub=({serie:e,minValue:t,maxValue:n,className:o,style:a})=>{let r=0;if(e.type==="clamp"){let l=typeof e.value=="number"?e.value:0,i=Number.isFinite(l)?l:t;r=Wt(qt(i,t,n))}else{let l=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:n,s=Wt(qt(l,t,n)),d=Wt(qt(i,t,n));r=(s+d)/2}return MS("div",{className:wS("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",o),style:{left:`${r}%`,...a},children:e.label})};var fb={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as Qn,jsxs as gb}from"react/jsx-runtime";var NS=TS(function({series:t=[],track:n,renderAnimated:o,renderAnimatedDuration:a=1e3,className:r,classNames:l,style:i,styles:s,minValue:d=0,maxValue:p=100,...f},m){let b=hb(()=>({...fb,...n}),[n]),y=hb(()=>t.reduce((S,I)=>{if(I.type==="bar"){let x=typeof I.end=="number"?I.end:p,w=Math.max(d,Math.min(x,p));if(w>S)return w}return S},0),[t,d,p]),u=kS({targetNumber:y,defaultNumber:d,duration:a,disabled:!o}),{bars:v,clamps:C}=t.reduce((S,I,x)=>{if(I==null||!I.type)return S;let w=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":S.clamps.push(Qn(dc,{serie:I,color:w,trackHeight:b.height,minValue:d,maxValue:p,className:Yo(l?.clamp,I.className),style:{...s?.clamp,...I.style}},`clamp-${x}`));break;case"bar":S.bars.push(Qn(mb,{serie:I,color:w,trackHeight:b.height,trackRadius:b.radius,minValue:d,maxValue:p,renderAnimated:o,animatedGlobal:u,className:Yo(l?.bar,I.className),style:{...s?.bar,...I.style}},`bar-${x}`));break;default:break}return S},{clamps:[],bars:[]});return Qn("div",{className:Yo("cleen",r),style:i,ref:m,...f,children:gb("div",{className:Yo("cleen-relative cleen-w-full",l?.container),style:s?.container,children:[gb("div",{className:Yo("cleen-relative cleen-size-full",l?.trackWrapper),style:s?.trackWrapper,children:[Qn("div",{className:Yo("cleen-relative cleen-w-full",l?.track),style:{height:b.height,backgroundColor:b.color,borderRadius:b.radius??b.height/2,...s?.track},children:v}),C]}),t.some(S=>!!S.label)&&Qn("div",{"aria-hidden":!0,className:Yo("cleen-relative cleen-mt-2 cleen-h-5",l?.labels),style:s?.labels,children:t.map((S,I)=>!S||!S.type||!S.label?null:Qn(ub,{serie:S,minValue:d,maxValue:p,className:l?.label,style:s?.label},`label-${I}`))})]})})});import{cn as ap}from"@cleen/ui-core";import{jsx as lp}from"react/jsx-runtime";var BS={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"},RS={slow:1.3,normal:.65,fast:.4},ce=({isFullscreen:e,size:t="xs",stroke:n,speed:o="normal",className:a,classNames:r,style:l,styles:i,color:s,...d})=>lp("div",{className:ap("cleen",a),style:l,children:lp("div",{className:ap("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,...d,children:lp("span",{className:ap("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"&&BS[t],r?.loader),style:{...s&&{borderInlineColor:s,borderTopColor:s},...typeof t=="number"&&{width:t,height:t},...typeof n=="number"&&{borderWidth:n},animationDuration:`${typeof o=="number"?o:RS[o]}s`,...i?.loader}})})});import{cn as cp,useWidthDynamicResize as ES}from"@cleen/ui-core";import{forwardRef as LS,useImperativeHandle as DS,useRef as FS}from"react";var bb={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"},yb={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 vb,jsxs as AS}from"react/jsx-runtime";var te=LS(function({type:t="button",label:n,onClick:o,className:a,classNames:r,style:l,styles:i,disabled:s=!1,leftIcon:d,rightIcon:p,loaderColor:f,isLoading:m=!1,variant:b="primary",fullWidth:y=!1,children:u,...v},C){let S=FS(null);return DS(C,()=>S.current),ES({ref:S,skip:y},[m,d,p,y]),vb("div",{className:cp("cleen",a),style:l,children:AS("button",{type:t,ref:S,className:cp("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",bb[b],{"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:o,...v,children:[m&&vb(ce,{size:"xs",color:f||yb[b],className:cp("cleen-mr-1.5 cleen-w-fit",r?.loaderContainer),style:i?.loaderContainer,classNames:{loader:r?.loader},styles:{loader:i?.loader}}),d||null,n||u,p||null]})})});var Ib={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"},Cb={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 bo,ColorHelpers as XS}from"@cleen/ui-core";function Zn(e,t,n){return Math.min(Math.max(e,n),t)}var ip=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},oa=ip;function OS(e){if(typeof e!="string")throw new oa(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=WS.test(e)?zS(e):e;let n=HS.exec(t);if(n){let l=Array.from(n).slice(1);return[...l.slice(0,3).map(i=>parseInt(na(i,2),16)),parseInt(na(l[3]||"f",2),16)/255]}let o=US.exec(t);if(o){let l=Array.from(o).slice(1);return[...l.slice(0,3).map(i=>parseInt(i,16)),parseInt(l[3]||"ff",16)/255]}let a=GS.exec(t);if(a){let l=Array.from(a).slice(1);return[...l.slice(0,3).map(i=>parseInt(i,10)),parseFloat(l[3]||"1")]}let r=$S.exec(t);if(r){let[l,i,s,d]=Array.from(r).slice(1).map(parseFloat);if(Zn(0,100,i)!==i)throw new oa(e);if(Zn(0,100,s)!==s)throw new oa(e);return[...qS(l,i,s),Number.isNaN(d)?1:d]}throw new oa(e)}function _S(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}var xb=e=>parseInt(e.replace(/_/g,""),36),VS="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let n=xb(t.substring(0,3)),o=xb(t.substring(3)).toString(16),a="";for(let r=0;r<6-o.length;r++)a+="0";return e[n]=`${a}${o}`,e},{});function zS(e){let t=e.toLowerCase().trim(),n=VS[_S(t)];if(!n)throw new oa(e);return`#${n}`}var na=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),HS=new RegExp(`^#${na("([a-f0-9])",3)}([a-f0-9])?$`,"i"),US=new RegExp(`^#${na("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),GS=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${na(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),$S=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,WS=/^[a-z]+$/i,Pb=e=>Math.round(e*255),qS=(e,t,n)=>{let o=n/100;if(t===0)return[o,o,o].map(Pb);let a=(e%360+360)%360/60,r=(1-Math.abs(2*o-1))*(t/100),l=r*(1-Math.abs(a%2-1)),i=0,s=0,d=0;a>=0&&a<1?(i=r,s=l):a>=1&&a<2?(i=l,s=r):a>=2&&a<3?(s=r,d=l):a>=3&&a<4?(s=l,d=r):a>=4&&a<5?(i=l,d=r):a>=5&&a<6&&(i=r,d=l);let p=o-r/2,f=i+p,m=s+p,b=d+p;return[f,m,b].map(Pb)};function KS(e,t,n,o){return`rgba(${Zn(0,255,e).toFixed()}, ${Zn(0,255,t).toFixed()}, ${Zn(0,255,n).toFixed()}, ${parseFloat(Zn(0,1,o).toFixed(3))})`}function ra(e,t){let[n,o,a,r]=OS(e);return KS(n,o,a,r-t)}import{forwardRef as YS,useMemo as QS}from"react";import{jsx as Jn,jsxs as Sb}from"react/jsx-runtime";var Pe=YS(function({header:t,footer:n,color:o,isGlass:a=!1,hoverable:r=!1,p:l,gap:i,radius:s=8,children:d,className:p,classNames:f,style:m,styles:b,...y},u){let{cardColor:v,backgroundColor:C,borderColor:S}=QS(()=>{let I=XS.getComputedColor(o);return I?{cardColor:I,backgroundColor:ra(I,.9),borderColor:ra(I,.8)}:{cardColor:I}},[o]);return Jn("div",{className:bo("cleen",p),style:m,ref:u,...y,children:Sb("div",{className:bo("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",n?.content?"cleen-pb-3":"cleen-pb-6",f?.container),style:{...v&&{backgroundColor:C,borderColor:S,color:v},...a&&{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%)`},...l!==void 0&&{paddingBlock:l},...i!==void 0&&{gap:i},borderRadius:s,...b?.container},children:[(t?.content||t?.title)&&Sb("div",{className:bo("cleen-px-6",f?.header?.content),style:{...v&&{color:v},...l!==void 0&&{paddingInline:l},...b?.header?.content},children:[t?.title&&Jn("div",{className:bo("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",f?.header?.title),style:{...v&&{color:v},...b?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&Jn("hr",{className:bo("cleen-text-neutral-200",f?.header?.divider),style:{...v&&{color:S},...b?.header?.divider}}),d&&Jn("div",{className:bo("cleen-px-6",f?.childrenContainer),style:{...l!==void 0&&{paddingInline:l},...b?.childrenContainer},children:d}),n?.content&&n?.hasDivider&&Jn("hr",{className:bo("cleen-text-neutral-200",f?.footer?.divider),style:{...v&&{color:S},...b?.footer?.divider}}),n?.content&&Jn("div",{className:bo("cleen-px-6 -cleen-mt-3 cleen-text-foreground",f?.footer?.content),style:{...v&&{color:v},...l!==void 0&&{paddingInline:l},...b?.footer?.content},children:n.content})]})})});import{jsx as ZS}from"react/jsx-runtime";function c({size:e=24,width:t,height:n,strokeWidth:o=1.5,isFilled:a=!1,children:r,...l}){return delete l.color1,delete l.color2,ZS("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:n??e,viewBox:"0 0 24 24",fill:a?"currentColor":"none",stroke:"currentColor",strokeWidth:a?0:o,strokeLinecap:"round",strokeLinejoin:"round",...l,children:r})}import{jsx as wb,jsxs as JS}from"react/jsx-runtime";var sp=e=>JS(c,{...e,children:[wb("path",{d:"M9 10.5l2 2l4 -4"}),wb("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as Mb}from"react/jsx-runtime";var pp=e=>Mb(c,{isFilled:!0,...e,children:Mb("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 dp,jsxs as jS}from"react/jsx-runtime";var mp=e=>jS(c,{...e,children:[dp("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),dp("path",{d:"M16 19h6"}),dp("path",{d:"M19 16v6"})]});import{jsx as yo,jsxs as ew}from"react/jsx-runtime";var up=e=>ew(c,{...e,children:[yo("path",{d:"M3 21l18 0"}),yo("path",{d:"M9 8l1 0"}),yo("path",{d:"M9 12l1 0"}),yo("path",{d:"M9 16l1 0"}),yo("path",{d:"M14 8l1 0"}),yo("path",{d:"M14 12l1 0"}),yo("path",{d:"M14 16l1 0"}),yo("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as kb,jsxs as tw}from"react/jsx-runtime";var fp=e=>tw(c,{...e,children:[kb("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"}),kb("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 uc,jsxs as ow}from"react/jsx-runtime";var hp=e=>ow(c,{...e,children:[uc("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),uc("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),uc("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),uc("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as aa,jsxs as nw}from"react/jsx-runtime";var gp=e=>nw(c,{viewBox:"0 0 48 48",...e,children:[aa("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),aa("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),aa("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),aa("path",{d:"M24 18v8"}),aa("path",{d:"M24 30h.01"})]});import{jsx as fc,jsxs as rw}from"react/jsx-runtime";var bp=e=>rw(c,{viewBox:"0 0 48 48",...e,children:[fc("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),fc("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),fc("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),fc("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as yp,jsxs as aw}from"react/jsx-runtime";var Qo=e=>aw(c,{...e,children:[yp("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),yp("path",{d:"M12 8v4"}),yp("path",{d:"M12 16h.01"})]});import{jsx as Tb}from"react/jsx-runtime";var vp=e=>Tb(c,{isFilled:!0,...e,children:Tb("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 Ip,jsxs as lw}from"react/jsx-runtime";var Cp=e=>lw(c,{...e,children:[Ip("path",{d:"M12 9v4"}),Ip("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"}),Ip("path",{d:"M12 16h.01"})]});import{jsx as la,jsxs as cw}from"react/jsx-runtime";var xp=e=>cw(c,{...e,children:[la("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"}),la("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"}),la("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"}),la("path",{d:"M14 7l6 0"}),la("path",{d:"M17 4l0 6"})]});import{jsx as Pp,jsxs as iw}from"react/jsx-runtime";var Sp=e=>iw(c,{...e,children:[Pp("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"}),Pp("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),Pp("path",{d:"M10 12l4 0"})]});import{jsx as hc,jsxs as sw}from"react/jsx-runtime";var wp=e=>sw(c,{...e,children:[hc("path",{d:"M12 20l0 -10"}),hc("path",{d:"M12 20l4 -4"}),hc("path",{d:"M12 20l-4 -4"}),hc("path",{d:"M4 4l16 0"})]});import{jsx as gc,jsxs as pw}from"react/jsx-runtime";var Mp=e=>pw(c,{...e,children:[gc("path",{d:"M4 12l10 0"}),gc("path",{d:"M4 12l4 4"}),gc("path",{d:"M4 12l4 -4"}),gc("path",{d:"M20 4l0 16"})]});import{jsx as bc,jsxs as dw}from"react/jsx-runtime";var kp=e=>dw(c,{...e,children:[bc("path",{d:"M20 12l-10 0"}),bc("path",{d:"M20 12l-4 4"}),bc("path",{d:"M20 12l-4 -4"}),bc("path",{d:"M4 4l0 16"})]});import{jsx as yc,jsxs as mw}from"react/jsx-runtime";var Tp=e=>mw(c,{...e,children:[yc("path",{d:"M4 20l16 0"}),yc("path",{d:"M12 14l0 -10"}),yc("path",{d:"M12 14l4 -4"}),yc("path",{d:"M12 14l-4 -4"})]});import{jsx as vc,jsxs as uw}from"react/jsx-runtime";var Np=e=>uw(c,{...e,children:[vc("path",{d:"M10 12l10 0"}),vc("path",{d:"M10 12l4 4"}),vc("path",{d:"M10 12l4 -4"}),vc("path",{d:"M4 4l0 16"})]});import{jsx as Ic,jsxs as fw}from"react/jsx-runtime";var Bp=e=>fw(c,{...e,children:[Ic("path",{d:"M14 12l-10 0"}),Ic("path",{d:"M14 12l-4 4"}),Ic("path",{d:"M14 12l-4 -4"}),Ic("path",{d:"M20 4l0 16"})]});import{jsx as Cc,jsxs as hw}from"react/jsx-runtime";var Rp=e=>hw(c,{...e,children:[Cc("path",{d:"M12 10l0 10"}),Cc("path",{d:"M12 10l4 4"}),Cc("path",{d:"M12 10l-4 4"}),Cc("path",{d:"M4 4l16 0"})]});import{jsx as xc,jsxs as gw}from"react/jsx-runtime";var Ep=e=>gw(c,{...e,children:[xc("path",{d:"M12 4l0 10"}),xc("path",{d:"M12 4l4 4"}),xc("path",{d:"M12 4l-4 4"}),xc("path",{d:"M4 20l16 0"})]});import{jsx as Lp,jsxs as bw}from"react/jsx-runtime";var Dp=e=>bw(c,{...e,children:[Lp("path",{d:"M12 5l0 14"}),Lp("path",{d:"M18 13l-6 6"}),Lp("path",{d:"M6 13l6 6"})]});import{jsx as Nb,jsxs as yw}from"react/jsx-runtime";var Fp=e=>yw(c,{...e,children:[Nb("path",{d:"M17 7l-10 10"}),Nb("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as Ap,jsxs as vw}from"react/jsx-runtime";var Op=e=>vw(c,{...e,children:[Ap("path",{d:"M12 5l0 14"}),Ap("path",{d:"M16 15l-4 4"}),Ap("path",{d:"M8 15l4 4"})]});import{jsx as Bb,jsxs as Iw}from"react/jsx-runtime";var _p=e=>Iw(c,{...e,children:[Bb("path",{d:"M7 7l10 10"}),Bb("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as Vp,jsxs as Cw}from"react/jsx-runtime";var zp=e=>Cw(c,{...e,children:[Vp("path",{d:"M5 12l14 0"}),Vp("path",{d:"M5 12l6 6"}),Vp("path",{d:"M5 12l6 -6"})]});import{jsx as Hp,jsxs as xw}from"react/jsx-runtime";var Up=e=>xw(c,{...e,children:[Hp("path",{d:"M5 12l14 0"}),Hp("path",{d:"M5 12l4 4"}),Hp("path",{d:"M5 12l4 -4"})]});import{jsx as Gp,jsxs as Pw}from"react/jsx-runtime";var $p=e=>Pw(c,{...e,children:[Gp("path",{d:"M5 12l14 0"}),Gp("path",{d:"M13 18l6 -6"}),Gp("path",{d:"M13 6l6 6"})]});import{jsx as Wp,jsxs as Sw}from"react/jsx-runtime";var qp=e=>Sw(c,{...e,children:[Wp("path",{d:"M5 12l14 0"}),Wp("path",{d:"M15 16l4 -4"}),Wp("path",{d:"M15 8l4 4"})]});import{jsx as Kp,jsxs as ww}from"react/jsx-runtime";var Xp=e=>ww(c,{...e,children:[Kp("path",{d:"M12 5l0 14"}),Kp("path",{d:"M18 11l-6 -6"}),Kp("path",{d:"M6 11l6 -6"})]});import{jsx as Rb,jsxs as Mw}from"react/jsx-runtime";var Yp=e=>Mw(c,{...e,children:[Rb("path",{d:"M7 7l10 10"}),Rb("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as Qp,jsxs as kw}from"react/jsx-runtime";var Zp=e=>kw(c,{...e,children:[Qp("path",{d:"M12 5l0 14"}),Qp("path",{d:"M16 9l-4 -4"}),Qp("path",{d:"M8 9l4 -4"})]});import{jsx as Eb,jsxs as Tw}from"react/jsx-runtime";var Jp=e=>Tw(c,{...e,children:[Eb("path",{d:"M17 7l-10 10"}),Eb("path",{d:"M8 7l9 0l0 9"})]});import{jsx as Lb}from"react/jsx-runtime";var jp=e=>Lb(c,{...e,children:Lb("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 ca,jsxs as Nw}from"react/jsx-runtime";var ia=e=>Nw(c,{...e,children:[ca("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"}),ca("path",{d:"M14 9v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1"}),ca("path",{d:"M7 15v-6"}),ca("path",{d:"M10 15v-6"}),ca("path",{d:"M7 12h3"})]});import{jsx as Pc,jsxs as Bw}from"react/jsx-runtime";var ed=e=>Bw(c,{...e,children:[Pc("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"}),Pc("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"}),Pc("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"}),Pc("path",{d:"M4 20h14"})]});import{jsx as sa,jsxs as Rw}from"react/jsx-runtime";var td=e=>Rw(c,{...e,children:[sa("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"}),sa("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"}),sa("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"}),sa("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"}),sa("path",{d:"M7 18.5h10"})]});import{jsx as Db,jsxs as Ew}from"react/jsx-runtime";var od=e=>Ew(c,{...e,children:[Db("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"}),Db("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as Fb,jsxs as Lw}from"react/jsx-runtime";var nd=e=>Lw(c,{...e,children:[Fb("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),Fb("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as Ab}from"react/jsx-runtime";var rd=e=>Ab(c,{...e,children:Ab("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as Ob}from"react/jsx-runtime";var ad=e=>Ob(c,{isFilled:!0,...e,children:Ob("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 _b,jsxs as Dw}from"react/jsx-runtime";var ld=e=>Dw(c,{...e,children:[_b("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),_b("path",{d:"M16 19h6"})]});import{jsx as cd,jsxs as Fw}from"react/jsx-runtime";var id=e=>Fw(c,{...e,children:[cd("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),cd("path",{d:"M20.5 21.5l-5 -5"}),cd("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as pa,jsxs as Aw}from"react/jsx-runtime";var sd=e=>Aw(c,{...e,children:[pa("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),pa("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),pa("path",{d:"M3 6l0 13"}),pa("path",{d:"M12 6l0 13"}),pa("path",{d:"M21 6l0 13"})]});import{jsx as Sc,jsxs as Ow}from"react/jsx-runtime";var pd=e=>Ow(c,{...e,children:[Sc("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"}),Sc("path",{d:"M9 13h-2"}),Sc("path",{d:"M13 10h-6"}),Sc("path",{d:"M11 7h-4"})]});import{jsx as dd,jsxs as _w}from"react/jsx-runtime";var md=e=>_w(c,{...e,children:[dd("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"}),dd("path",{d:"M10 8h4"}),dd("path",{d:"M12 8v8"})]});import{jsx as ud,jsxs as Vw}from"react/jsx-runtime";var fd=e=>Vw(c,{...e,children:[ud("path",{d:"M9 12l2 2l4 -4"}),ud("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),ud("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as da,jsxs as zw}from"react/jsx-runtime";var hd=e=>zw(c,{...e,children:[da("path",{d:"M15 12h.01"}),da("path",{d:"M12 12h.01"}),da("path",{d:"M9 12h.01"}),da("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),da("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Kt,jsxs as Hw}from"react/jsx-runtime";var gd=e=>Hw(c,{...e,children:[Kt("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"}),Kt("path",{d:"M4 8h16"}),Kt("path",{d:"M20 12h-16"}),Kt("path",{d:"M4 16h16"}),Kt("path",{d:"M9 4v4"}),Kt("path",{d:"M14 8v4"}),Kt("path",{d:"M8 12v4"}),Kt("path",{d:"M16 12v4"}),Kt("path",{d:"M11 16v4"})]});import{jsx as wc,jsxs as Uw}from"react/jsx-runtime";var bd=e=>Uw(c,{...e,children:[wc("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"}),wc("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),wc("path",{d:"M12 12l0 .01"}),wc("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as vo,jsxs as Gw}from"react/jsx-runtime";var yd=e=>Gw(c,{...e,children:[vo("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"}),vo("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"}),vo("path",{d:"M8 14l0 .01"}),vo("path",{d:"M12 14l0 .01"}),vo("path",{d:"M16 14l0 .01"}),vo("path",{d:"M8 17l0 .01"}),vo("path",{d:"M12 17l0 .01"}),vo("path",{d:"M16 17l0 .01"})]});import{jsx as jn,jsxs as $w}from"react/jsx-runtime";var ma=e=>$w(c,{...e,children:[jn("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"}),jn("path",{d:"M16 3v4"}),jn("path",{d:"M8 3v4"}),jn("path",{d:"M4 11h16"}),jn("path",{d:"M11 15h1"}),jn("path",{d:"M12 15v3"})]});import{jsx as er,jsxs as Ww}from"react/jsx-runtime";var vd=e=>Ww(c,{...e,children:[er("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),er("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),er("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"}),er("path",{d:"M6 9l12 0"}),er("path",{d:"M6 12l3 0"}),er("path",{d:"M6 15l2 0"})]});import{jsx as Vb}from"react/jsx-runtime";var Xt=e=>Vb(c,{...e,children:Vb("path",{d:"M5 12l5 5l10 -10"})});import{jsx as zb,jsxs as qw}from"react/jsx-runtime";var Zo=e=>qw(c,{...e,children:[zb("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),zb("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as Hb,jsxs as Kw}from"react/jsx-runtime";var Id=e=>Kw(c,{...e,children:[Hb("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),Hb("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as Ub}from"react/jsx-runtime";var Cd=e=>Ub(c,{isFilled:!0,...e,children:Ub("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 Gb,jsxs as Xw}from"react/jsx-runtime";var xd=e=>Xw(c,{...e,children:[Gb("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"}),Gb("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as $b}from"react/jsx-runtime";var Pd=e=>$b(c,{isFilled:!0,...e,children:$b("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 Wb}from"react/jsx-runtime";var Jo=e=>Wb(c,{...e,children:Wb("path",{d:"M6 9l6 6l6 -6"})});import{jsx as qb,jsxs as Yw}from"react/jsx-runtime";var Sd=e=>Yw(c,{...e,children:[qb("path",{d:"M7 7l5 5l5 -5"}),qb("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as Kb}from"react/jsx-runtime";var wd=e=>Kb(c,{...e,children:Kb("path",{d:"M8 8v8h8"})});import{jsx as Xb,jsxs as Qw}from"react/jsx-runtime";var Md=e=>Qw(c,{...e,children:[Xb("path",{d:"M11 5v8h8"}),Xb("path",{d:"M7 9v8h8"})]});import{jsx as Yb}from"react/jsx-runtime";var kd=e=>Yb(c,{...e,children:Yb("path",{d:"M16 8v8h-8"})});import{jsx as Qb,jsxs as Zw}from"react/jsx-runtime";var Td=e=>Zw(c,{...e,children:[Qb("path",{d:"M13 5v8h-8"}),Qb("path",{d:"M17 9v8h-8"})]});import{jsx as Zb}from"react/jsx-runtime";var Yt=e=>Zb(c,{...e,children:Zb("path",{d:"M15 6l-6 6l6 6"})});import{jsx as Jb,jsxs as Jw}from"react/jsx-runtime";var Nd=e=>Jw(c,{...e,children:[Jb("path",{d:"M11 7l-5 5l5 5"}),Jb("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as jb}from"react/jsx-runtime";var bt=e=>jb(c,{...e,children:jb("path",{d:"M9 6l6 6l-6 6"})});import{jsx as ey,jsxs as jw}from"react/jsx-runtime";var ua=e=>jw(c,{...e,children:[ey("path",{d:"M7 7l5 5l-5 5"}),ey("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as ty,jsxs as eM}from"react/jsx-runtime";var Bd=e=>eM(c,{...e,children:[ty("path",{d:"M8 9l4 -4l4 4"}),ty("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as oy}from"react/jsx-runtime";var Qt=e=>oy(c,{...e,children:oy("path",{d:"M6 15l6 -6l6 6"})});import{jsx as ny,jsxs as tM}from"react/jsx-runtime";var Rd=e=>tM(c,{...e,children:[ny("path",{d:"M7 11l5 -5l5 5"}),ny("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as ry}from"react/jsx-runtime";var Ed=e=>ry(c,{...e,children:ry("path",{d:"M8 16v-8h8"})});import{jsx as ay,jsxs as oM}from"react/jsx-runtime";var Ld=e=>oM(c,{...e,children:[ay("path",{d:"M7 15v-8h8"}),ay("path",{d:"M11 19v-8h8"})]});import{jsx as ly}from"react/jsx-runtime";var Dd=e=>ly(c,{...e,children:ly("path",{d:"M8 8h8v8"})});import{jsx as cy,jsxs as nM}from"react/jsx-runtime";var Fd=e=>nM(c,{...e,children:[cy("path",{d:"M9 7h8v8"}),cy("path",{d:"M5 11h8v8"})]});import{jsx as tr,jsxs as rM}from"react/jsx-runtime";var Ad=e=>rM(c,{...e,children:[tr("path",{d:"M3 12l3 0"}),tr("path",{d:"M12 3l0 3"}),tr("path",{d:"M7.8 7.8l-2.2 -2.2"}),tr("path",{d:"M16.2 7.8l2.2 -2.2"}),tr("path",{d:"M7.8 16.2l-2.2 2.2"}),tr("path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9"})]});import{jsx as iy,jsxs as aM}from"react/jsx-runtime";var fa=e=>aM(c,{...e,children:[iy("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),iy("path",{d:"M12 7v5l3 3"})]});import{jsx as Mc,jsxs as lM}from"react/jsx-runtime";var Od=e=>lM(c,{...e,children:[Mc("path",{d:"M12 7v5l2 2"}),Mc("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),Mc("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),Mc("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as _d,jsxs as cM}from"react/jsx-runtime";var Vd=e=>cM(c,{...e,children:[_d("path",{d:"M12 7v5l2 2"}),_d("path",{d:"M17 22l5 -3l-5 -3z"}),_d("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as sy,jsxs as iM}from"react/jsx-runtime";var zd=e=>iM(c,{...e,children:[sy("path",{d:"M12 8l0 4l2 2"}),sy("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as ha,jsxs as sM}from"react/jsx-runtime";var Hd=e=>sM(c,{...e,children:[ha("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),ha("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"}),ha("path",{d:"M11 14h6"}),ha("path",{d:"M14 11v6"}),ha("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 Ud,jsxs as pM}from"react/jsx-runtime";var ga=e=>pM(c,{...e,children:[Ud("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"}),Ud("path",{d:"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Ud("path",{d:"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"})]});import{jsx as Gd,jsxs as dM}from"react/jsx-runtime";var $d=e=>dM(c,{...e,children:[Gd("path",{d:"M7 8l-4 4l4 4"}),Gd("path",{d:"M17 8l4 4l-4 4"}),Gd("path",{d:"M14 4l-4 16"})]});import{jsx as or,jsxs as mM}from"react/jsx-runtime";var Wd=e=>mM(c,{...e,children:[or("path",{d:"M4 8h16"}),or("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"}),or("path",{d:"M8 4v4"}),or("path",{d:"M9 12l-2 2l2 2"}),or("path",{d:"M15 12l2 2l-2 2"}),or("path",{d:"M13 11l-2 6"})]});import{jsx as qd,jsxs as uM}from"react/jsx-runtime";var Kd=e=>uM(c,{...e,children:[qd("path",{d:"M10 14l-2 -2l2 -2"}),qd("path",{d:"M14 10l2 2l-2 2"}),qd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Xd,jsxs as fM}from"react/jsx-runtime";var Yd=e=>fM(c,{...e,children:[Xd("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Xd("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Xd("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as py,jsxs as hM}from"react/jsx-runtime";var Qd=e=>hM(c,{...e,children:[py("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"}),py("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 dy,jsxs as gM}from"react/jsx-runtime";var Zd=e=>gM(c,{...e,children:[dy("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"}),dy("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 Jd,jsxs as bM}from"react/jsx-runtime";var jd=e=>bM(c,{...e,children:[Jd("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"}),Jd("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"}),Jd("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as kc,jsxs as yM}from"react/jsx-runtime";var em=e=>yM(c,{...e,children:[kc("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"}),kc("path",{d:"M3 10l18 0"}),kc("path",{d:"M7 15l.01 0"}),kc("path",{d:"M11 15l2 0"})]});import{jsx as Tc,jsxs as vM}from"react/jsx-runtime";var tm=e=>vM(c,{...e,children:[Tc("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"}),Tc("path",{d:"M12 22v-10"}),Tc("path",{d:"M12 12l8.73 -5.04"}),Tc("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as ct,jsxs as IM}from"react/jsx-runtime";var om=e=>IM(c,{...e,children:[ct("path",{d:"M6 17.6l-2 -1.1v-2.5"}),ct("path",{d:"M4 10v-2.5l2 -1.1"}),ct("path",{d:"M10 4.1l2 -1.1l2 1.1"}),ct("path",{d:"M18 6.4l2 1.1v2.5"}),ct("path",{d:"M20 14v2.5l-2 1.12"}),ct("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),ct("path",{d:"M12 12l2 -1.1"}),ct("path",{d:"M18 8.6l2 -1.1"}),ct("path",{d:"M12 12l0 2.5"}),ct("path",{d:"M12 18.5l0 2.5"}),ct("path",{d:"M12 12l-2 -1.12"}),ct("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as my,jsxs as CM}from"react/jsx-runtime";var ba=e=>CM(c,{...e,children:[my("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"}),my("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 jo,jsxs as xM}from"react/jsx-runtime";var nm=e=>xM(c,{...e,children:[jo("path",{d:"M5 2h5v4h-5z"}),jo("path",{d:"M15 10h5v4h-5z"}),jo("path",{d:"M5 18h5v4h-5z"}),jo("path",{d:"M5 10h5v4h-5z"}),jo("path",{d:"M10 12h5"}),jo("path",{d:"M7.5 6v4"}),jo("path",{d:"M7.5 14v4"})]});import{jsx as it,jsxs as PM}from"react/jsx-runtime";var rm=e=>PM(c,{...e,children:[it("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),it("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),it("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),it("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),it("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),it("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),it("path",{d:"M5 17l2 -3"}),it("path",{d:"M9 10l2 -3"}),it("path",{d:"M13 7l2 3"}),it("path",{d:"M17 14l2 3"}),it("path",{d:"M15 14l-2 3"}),it("path",{d:"M9 14l2 3"})]});import{jsx as ya,jsxs as SM}from"react/jsx-runtime";var am=e=>SM(c,{...e,children:[ya("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"}),ya("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"}),ya("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"}),ya("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),ya("path",{d:"M12 9l0 3"})]});import{jsx as lm,jsxs as wM}from"react/jsx-runtime";var cm=e=>wM(c,{...e,children:[lm("path",{d:"M4 4l16 0"}),lm("path",{d:"M4 20l16 0"}),lm("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 uy,jsxs as MM}from"react/jsx-runtime";var im=e=>MM(c,{...e,children:[uy("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"}),uy("path",{d:"M12 3v3m0 12v3"})]});import{jsx as sm,jsxs as kM}from"react/jsx-runtime";var pm=e=>kM(c,{...e,children:[sm("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),sm("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"}),sm("path",{d:"M12 7v10"})]});import{jsx as fy}from"react/jsx-runtime";var dm=e=>fy(c,{...e,children:fy("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as hy}from"react/jsx-runtime";var mm=e=>hy(c,{isFilled:!0,...e,children:hy("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 Zt,jsxs as TM}from"react/jsx-runtime";var um=e=>TM(c,{...e,children:[Zt("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zt("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zt("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zt("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zt("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zt("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zt("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zt("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zt("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as fm,jsxs as NM}from"react/jsx-runtime";var va=e=>NM(c,{...e,children:[fm("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fm("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fm("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as hm,jsxs as BM}from"react/jsx-runtime";var nr=e=>BM(c,{...e,children:[hm("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hm("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hm("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as gm,jsxs as RM}from"react/jsx-runtime";var bm=e=>RM(c,{...e,children:[gm("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),gm("path",{d:"M7 11l5 5l5 -5"}),gm("path",{d:"M12 4l0 12"})]});import{jsx as gy,jsxs as EM}from"react/jsx-runtime";var ym=e=>EM(c,{...e,children:[gy("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),gy("path",{d:"M13.5 6.5l4 4"})]});import{jsx as vm,jsxs as LM}from"react/jsx-runtime";var Im=e=>LM(c,{...e,children:[vm("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),vm("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),vm("path",{d:"M16 5l3 3"})]});import{jsx as Io,jsxs as DM}from"react/jsx-runtime";var Cm=e=>DM(c,{...e,children:[Io("path",{d:"M16 4l4 0l0 4"}),Io("path",{d:"M14 10l6 -6"}),Io("path",{d:"M8 20l-4 0l0 -4"}),Io("path",{d:"M4 20l6 -6"}),Io("path",{d:"M16 20l4 0l0 -4"}),Io("path",{d:"M14 14l6 6"}),Io("path",{d:"M8 4l-4 0l0 4"}),Io("path",{d:"M4 4l6 6"})]});import{jsx as xm,jsxs as FM}from"react/jsx-runtime";var Pm=e=>FM(c,{...e,children:[xm("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),xm("path",{d:"M11 13l9 -9"}),xm("path",{d:"M15 4h5v5"})]});import{jsx as Sm,jsxs as AM}from"react/jsx-runtime";var wm=e=>AM(c,{...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 by,jsxs as OM}from"react/jsx-runtime";var Mm=e=>OM(c,{...e,children:[by("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),by("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 km,jsxs as _M}from"react/jsx-runtime";var Tm=e=>_M(c,{...e,children:[km("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),km("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"}),km("path",{d:"M3 3l18 18"})]});import{jsx as Ia,jsxs as VM}from"react/jsx-runtime";var Nm=e=>VM(c,{...e,children:[Ia("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),Ia("path",{d:"M3 15l2.5 -3.8"}),Ia("path",{d:"M21 14.976l-2.492 -3.776"}),Ia("path",{d:"M9 17l.5 -4"}),Ia("path",{d:"M15 17l-.5 -4"})]});import{jsx as Nc,jsxs as zM}from"react/jsx-runtime";var Bm=e=>zM(c,{...e,children:[Nc("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),Nc("path",{d:"M8 9l2 1"}),Nc("path",{d:"M16 9l-2 1"}),Nc("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as rr,jsxs as HM}from"react/jsx-runtime";var Rm=e=>HM(c,{...e,children:[rr("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),rr("path",{d:"M7 8.5l3 3"}),rr("path",{d:"M7 11.5l3 -3"}),rr("path",{d:"M14 8.5l3 3"}),rr("path",{d:"M14 11.5l3 -3"}),rr("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Bc,jsxs as UM}from"react/jsx-runtime";var Em=e=>UM(c,{...e,children:[Bc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Bc("path",{d:"M9 10l.01 0"}),Bc("path",{d:"M15 10l.01 0"}),Bc("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as yy,jsxs as GM}from"react/jsx-runtime";var en=e=>GM(c,{...e,children:[yy("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),yy("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 Lm,jsxs as $M}from"react/jsx-runtime";var Dm=e=>$M(c,{...e,children:[Lm("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Lm("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"}),Lm("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as Ca,jsxs as WM}from"react/jsx-runtime";var xa=e=>WM(c,{...e,children:[Ca("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ca("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Ca("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Ca("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"}),Ca("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as Rc,jsxs as qM}from"react/jsx-runtime";var Fm=e=>qM(c,{...e,children:[Rc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Rc("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"}),Rc("path",{d:"M12 17v-6"}),Rc("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as ar,jsxs as KM}from"react/jsx-runtime";var Pa=e=>KM(c,{...e,children:[ar("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ar("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),ar("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),ar("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"}),ar("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"}),ar("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as Ec,jsxs as XM}from"react/jsx-runtime";var Am=e=>XM(c,{...e,children:[Ec("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ec("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"}),Ec("path",{d:"M9 17h6"}),Ec("path",{d:"M9 13h6"})]});import{jsx as Lc,jsxs as YM}from"react/jsx-runtime";var st=e=>YM(c,{...e,children:[Lc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Lc("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"}),Lc("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Lc("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as lr,jsxs as QM}from"react/jsx-runtime";var tn=e=>QM(c,{...e,children:[lr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),lr("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),lr("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),lr("path",{d:"M17 18h2"}),lr("path",{d:"M20 15h-3v6"}),lr("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as Om,jsxs as ZM}from"react/jsx-runtime";var _m=e=>ZM(c,{...e,children:[Om("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),Om("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"}),Om("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 Sa,jsxs as JM}from"react/jsx-runtime";var wa=e=>JM(c,{...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:"M8 11h8v7h-8z"}),Sa("path",{d:"M8 15h8"}),Sa("path",{d:"M11 11v7"})]});import{jsx as Ma,jsxs as jM}from"react/jsx-runtime";var Jt=e=>jM(c,{...e,children:[Ma("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ma("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"}),Ma("path",{d:"M9 9l1 0"}),Ma("path",{d:"M9 13l6 0"}),Ma("path",{d:"M9 17l6 0"})]});import{jsx as Dc,jsxs as e5}from"react/jsx-runtime";var Vm=e=>e5(c,{...e,children:[Dc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Dc("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"}),Dc("path",{d:"M12 11v6"}),Dc("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as cr,jsxs as t5}from"react/jsx-runtime";var ka=e=>t5(c,{...e,children:[cr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),cr("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),cr("path",{d:"M4 15l4 6"}),cr("path",{d:"M4 21l4 -6"}),cr("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"}),cr("path",{d:"M11 15v6h3"})]});import{jsx as Co,jsxs as o5}from"react/jsx-runtime";var Ta=e=>o5(c,{...e,children:[Co("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Co("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Co("path",{d:"M4 16l3 5"}),Co("path",{d:"M4 21l3 -5"}),Co("path",{d:"M8.5 16v5h2"}),Co("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"}),Co("path",{d:"M16.5 16l3 5"}),Co("path",{d:"M16.5 21l3 -5"})]});import{jsx as xo,jsxs as n5}from"react/jsx-runtime";var kt=e=>n5(c,{...e,children:[xo("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"}),xo("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"}),xo("path",{d:"M11 5l-1 0"}),xo("path",{d:"M13 7l-1 0"}),xo("path",{d:"M11 9l-1 0"}),xo("path",{d:"M13 11l-1 0"}),xo("path",{d:"M11 13l-1 0"}),xo("path",{d:"M13 15l-1 0"})]});import{jsx as vy}from"react/jsx-runtime";var zm=e=>vy(c,{...e,children:vy("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 Hm,jsxs as r5}from"react/jsx-runtime";var Na=e=>r5(c,{...e,children:[Hm("path",{d:"M4 6h16"}),Hm("path",{d:"M6 12h12"}),Hm("path",{d:"M9 18h6"})]});import{jsx as Iy,jsxs as a5}from"react/jsx-runtime";var Um=e=>a5(c,{...e,children:[Iy("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"}),Iy("path",{d:"M5 21v-7"})]});import{jsx as Cy}from"react/jsx-runtime";var Gm=e=>Cy(c,{...e,children:Cy("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as xy}from"react/jsx-runtime";var $m=e=>xy(c,{isFilled:!0,...e,children:xy("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 Ba,jsxs as l5}from"react/jsx-runtime";var Wm=e=>l5(c,{...e,children:[Ba("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ba("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Ba("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Ba("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Ba("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Py}from"react/jsx-runtime";var qm=e=>Py(c,{...e,children:Py("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 Fc,jsxs as c5}from"react/jsx-runtime";var Km=e=>c5(c,{...e,children:[Fc("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"}),Fc("path",{d:"M1 12.5l7 0"}),Fc("path",{d:"M1 12.5l2 2"}),Fc("path",{d:"M1 12.5l2 -2"})]});import{jsx as Ac,jsxs as i5}from"react/jsx-runtime";var Xm=e=>i5(c,{...e,children:[Ac("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"}),Ac("path",{d:"M2 13l7 0"}),Ac("path",{d:"M9 13l-2 2"}),Ac("path",{d:"M9 13l-2 -2"})]});import{jsx as Sy,jsxs as s5}from"react/jsx-runtime";var Ym=e=>s5(c,{...e,children:[Sy("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),Sy("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as ir,jsxs as p5}from"react/jsx-runtime";var Qm=e=>p5(c,{...e,children:[ir("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ir("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ir("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ir("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ir("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ir("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Oc,jsxs as d5}from"react/jsx-runtime";var Zm=e=>d5(c,{...e,children:[Oc("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Oc("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Oc("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Oc("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 sr,jsxs as m5}from"react/jsx-runtime";var Jm=e=>m5(c,{...e,children:[sr("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),sr("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),sr("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),sr("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),sr("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"}),sr("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 _c,jsxs as u5}from"react/jsx-runtime";var jm=e=>u5(c,{...e,children:[_c("path",{d:"M5 9l14 0"}),_c("path",{d:"M5 15l14 0"}),_c("path",{d:"M11 4l-4 16"}),_c("path",{d:"M17 4l-4 16"})]});import{jsx as Vc,jsxs as f5}from"react/jsx-runtime";var eu=e=>f5(c,{...e,children:[Vc("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),Vc("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),Vc("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"}),Vc("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 wy}from"react/jsx-runtime";var tu=e=>wy(c,{...e,children:wy("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 My}from"react/jsx-runtime";var ou=e=>My(c,{isFilled:!0,...e,children:My("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 nu,jsxs as h5}from"react/jsx-runtime";var ru=e=>h5(c,{...e,children:[nu("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),nu("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),nu("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as ky,jsxs as g5}from"react/jsx-runtime";var Ra=e=>g5(c,{...e,children:[ky("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"}),ky("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as zc,jsxs as b5}from"react/jsx-runtime";var We=e=>b5(c,{...e,children:[zc("path",{d:"M15 8h.01"}),zc("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"}),zc("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),zc("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as Ea,jsxs as y5}from"react/jsx-runtime";var au=e=>y5(c,{...e,children:[Ea("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"}),Ea("path",{d:"M4 16l16 0"}),Ea("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),Ea("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),Ea("path",{d:"M14 7l.01 0"})]});import{jsx as La,jsxs as v5}from"react/jsx-runtime";var lu=e=>v5(c,{...e,children:[La("path",{d:"M15 8h.01"}),La("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"}),La("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),La("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),La("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Da,jsxs as I5}from"react/jsx-runtime";var cu=e=>I5(c,{...e,children:[Da("path",{d:"M15 8h.01"}),Da("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"}),Da("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Da("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),Da("path",{d:"M3 3l18 18"})]});import{jsx as Ty,jsxs as C5}from"react/jsx-runtime";var iu=e=>C5(c,{...e,children:[Ty("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ty("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 Ny,jsxs as x5}from"react/jsx-runtime";var su=e=>x5(c,{...e,children:[Ny("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"}),Ny("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as pu,jsxs as P5}from"react/jsx-runtime";var du=e=>P5(c,{...e,children:[pu("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),pu("path",{d:"M12 9h.01"}),pu("path",{d:"M11 12h1v4h1"})]});import{jsx as mu,jsxs as S5}from"react/jsx-runtime";var uu=e=>S5(c,{...e,children:[mu("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"}),mu("path",{d:"M12 9h.01"}),mu("path",{d:"M11 12h1v4h1"})]});import{jsx as fu,jsxs as w5}from"react/jsx-runtime";var hu=e=>w5(c,{...e,children:[fu("path",{d:"M11 5l6 0"}),fu("path",{d:"M7 19l6 0"}),fu("path",{d:"M14 5l-4 14"})]});import{jsx as gu,jsxs as M5}from"react/jsx-runtime";var bu=e=>M5(c,{...e,children:[gu("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),gu("path",{d:"M4 12l8 4l8 -4"}),gu("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as By,jsxs as k5}from"react/jsx-runtime";var yu=e=>k5(c,{...e,children:[By("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),By("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as Ry,jsxs as T5}from"react/jsx-runtime";var vu=e=>T5(c,{...e,children:[Ry("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"}),Ry("path",{d:"M9 4l0 16"})]});import{jsx as Iu,jsxs as N5}from"react/jsx-runtime";var Cu=e=>N5(c,{...e,children:[Iu("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"}),Iu("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"}),Iu("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 Hc,jsxs as B5}from"react/jsx-runtime";var xu=e=>B5(c,{...e,children:[Hc("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"}),Hc("path",{d:"M4 9h8"}),Hc("path",{d:"M12 15h8"}),Hc("path",{d:"M12 4v16"})]});import{jsx as Fa,jsxs as R5}from"react/jsx-runtime";var Pu=e=>R5(c,{...e,children:[Fa("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"}),Fa("path",{d:"M4 12h8"}),Fa("path",{d:"M12 15h8"}),Fa("path",{d:"M12 9h8"}),Fa("path",{d:"M12 4v16"})]});import{jsx as Su,jsxs as E5}from"react/jsx-runtime";var wu=e=>E5(c,{...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 Uc,jsxs as L5}from"react/jsx-runtime";var Mu=e=>L5(c,{...e,children:[Uc("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"}),Uc("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"}),Uc("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"}),Uc("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 pr,jsxs as D5}from"react/jsx-runtime";var ku=e=>D5(c,{...e,children:[pr("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),pr("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),pr("path",{d:"M15 15l3.35 3.35"}),pr("path",{d:"M9 15l-3.35 3.35"}),pr("path",{d:"M5.65 5.65l3.35 3.35"}),pr("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as Tu,jsxs as F5}from"react/jsx-runtime";var Nu=e=>F5(c,{...e,children:[Tu("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),Tu("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"}),Tu("path",{d:"M9.7 17l4.6 0"})]});import{jsx as Ey}from"react/jsx-runtime";var Bu=e=>Ey(c,{...e,children:Ey("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as Ly,jsxs as A5}from"react/jsx-runtime";var Ru=e=>A5(c,{...e,children:[Ly("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),Ly("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as Dy,jsxs as O5}from"react/jsx-runtime";var Eu=e=>O5(c,{...e,children:[Dy("path",{d:"M4 19l16 0"}),Dy("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as dr,jsxs as _5}from"react/jsx-runtime";var Lu=e=>_5(c,{...e,children:[dr("path",{d:"M3 3v18h18"}),dr("path",{d:"M20 18v3"}),dr("path",{d:"M16 16v5"}),dr("path",{d:"M12 13v8"}),dr("path",{d:"M8 16v5"}),dr("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as mr,jsxs as V5}from"react/jsx-runtime";var Du=e=>V5(c,{...e,children:[mr("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"}),mr("path",{d:"M3 13c0 0, 8 0, 12 -4"}),mr("path",{d:"M12 8h4v4"}),mr("path",{d:"M15 2v1.44"}),mr("path",{d:"M18.75 4.75l1.2 -1.2"}),mr("path",{d:"M20 9h1.44"})]});import{jsx as Fu,jsxs as z5}from"react/jsx-runtime";var Au=e=>z5(c,{...e,children:[Fu("path",{d:"M4 19l16 0"}),Fu("path",{d:"M4 16l6 -6l4 4l5 -5"}),Fu("path",{d:"M15 8h5v5"})]});import{jsx as Fy,jsxs as H5}from"react/jsx-runtime";var Ou=e=>H5(c,{...e,children:[Fy("path",{d:"M5 10h14"}),Fy("path",{d:"M5 14h14"})]});import{jsx as ur,jsxs as U5}from"react/jsx-runtime";var _u=e=>U5(c,{...e,children:[ur("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),ur("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),ur("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),ur("path",{d:"M11 6l9 0"}),ur("path",{d:"M11 12l9 0"}),ur("path",{d:"M11 18l9 0"})]});import{jsx as Gc,jsxs as G5}from"react/jsx-runtime";var Vu=e=>G5(c,{...e,children:[Gc("path",{d:"M12 10v8l8 -4z"}),Gc("path",{d:"M4 6h16"}),Gc("path",{d:"M4 12h4.5"}),Gc("path",{d:"M4 18h4.5"})]});import{jsx as zu,jsxs as $5}from"react/jsx-runtime";var Hu=e=>$5(c,{...e,children:[zu("path",{d:"M9 15l6 -6"}),zu("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),zu("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 Ay,jsxs as W5}from"react/jsx-runtime";var Uu=e=>W5(c,{...e,children:[Ay("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),Ay("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as $c,jsxs as q5}from"react/jsx-runtime";var Gu=e=>q5(c,{...e,children:[$c("path",{d:"M9 15l3 -3m2 -2l1 -1"}),$c("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),$c("path",{d:"M3 3l18 18"}),$c("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 fr,jsxs as K5}from"react/jsx-runtime";var $u=e=>K5(c,{...e,children:[fr("path",{d:"M9 6l11 0"}),fr("path",{d:"M9 12l11 0"}),fr("path",{d:"M9 18l11 0"}),fr("path",{d:"M5 6l0 .01"}),fr("path",{d:"M5 12l0 .01"}),fr("path",{d:"M5 18l0 .01"})]});import{jsx as Aa,jsxs as X5}from"react/jsx-runtime";var Wu=e=>X5(c,{...e,children:[Aa("path",{d:"M11 6h9"}),Aa("path",{d:"M11 12h9"}),Aa("path",{d:"M12 18h8"}),Aa("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),Aa("path",{d:"M6 10v-6l-2 2"})]});import{jsx as qu,jsxs as Y5}from"react/jsx-runtime";var Ku=e=>Y5(c,{...e,children:[qu("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"}),qu("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),qu("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as Oy}from"react/jsx-runtime";var Xu=e=>Oy(c,{isFilled:!0,...e,children:Oy("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 Yu,jsxs as Q5}from"react/jsx-runtime";var Qu=e=>Q5(c,{...e,children:[Yu("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"}),Yu("path",{d:"M3 12h13l-3 -3"}),Yu("path",{d:"M13 15l3 -3"})]});import{jsx as Zu,jsxs as Z5}from"react/jsx-runtime";var Ju=e=>Z5(c,{...e,children:[Zu("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"}),Zu("path",{d:"M9 12h12l-3 -3"}),Zu("path",{d:"M18 15l3 -3"})]});import{jsx as ju,jsxs as J5}from"react/jsx-runtime";var ef=e=>J5(c,{...e,children:[ju("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"}),ju("path",{d:"M15 12h-12l3 -3"}),ju("path",{d:"M6 15l-3 -3"})]});import{jsx as Wc,jsxs as j5}from"react/jsx-runtime";var tf=e=>j5(c,{...e,children:[Wc("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Wc("path",{d:"M15 6l3 3"}),Wc("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"}),Wc("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 _y,jsxs as e4}from"react/jsx-runtime";var of=e=>e4(c,{...e,children:[_y("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"}),_y("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as qc,jsxs as t4}from"react/jsx-runtime";var nf=e=>t4(c,{...e,children:[qc("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),qc("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),qc("path",{d:"M3 19l6 -6"}),qc("path",{d:"M15 13l6 6"})]});import{jsx as Vy,jsxs as o4}from"react/jsx-runtime";var rf=e=>o4(c,{...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 Kc,jsxs as n4}from"react/jsx-runtime";var Oa=e=>n4(c,{...e,children:[Kc("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Kc("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Kc("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Kc("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Xc,jsxs as r4}from"react/jsx-runtime";var af=e=>r4(c,{...e,children:[Xc("path",{d:"M16 4l4 0l0 4"}),Xc("path",{d:"M14 10l6 -6"}),Xc("path",{d:"M8 20l-4 0l0 -4"}),Xc("path",{d:"M4 20l6 -6"})]});import{jsx as zy}from"react/jsx-runtime";var lf=e=>zy(c,{...e,children:zy("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 cf,jsxs as a4}from"react/jsx-runtime";var on=e=>a4(c,{...e,children:[cf("path",{d:"M8 9h8"}),cf("path",{d:"M8 13h6"}),cf("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 Yc,jsxs as l4}from"react/jsx-runtime";var sf=e=>l4(c,{...e,children:[Yc("path",{d:"M12 11v.01"}),Yc("path",{d:"M8 11v.01"}),Yc("path",{d:"M16 11v.01"}),Yc("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 _a,jsxs as c4}from"react/jsx-runtime";var pf=e=>c4(c,{...e,children:[_a("path",{d:"M8 9h8"}),_a("path",{d:"M8 13h6"}),_a("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"}),_a("path",{d:"M22 22l-5 -5"}),_a("path",{d:"M17 22l5 -5"})]});import{jsx as Qc,jsxs as i4}from"react/jsx-runtime";var Va=e=>i4(c,{...e,children:[Qc("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"}),Qc("path",{d:"M5 10a7 7 0 0 0 14 0"}),Qc("path",{d:"M8 21l8 0"}),Qc("path",{d:"M12 17l0 4"})]});import{jsx as Zc,jsxs as s4}from"react/jsx-runtime";var za=e=>s4(c,{...e,children:[Zc("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),Zc("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),Zc("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),Zc("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Jc,jsxs as p4}from"react/jsx-runtime";var df=e=>p4(c,{...e,children:[Jc("path",{d:"M18 10h-4v-4"}),Jc("path",{d:"M20 4l-6 6"}),Jc("path",{d:"M6 14h4v4"}),Jc("path",{d:"M10 14l-6 6"})]});import{jsx as Hy,jsxs as d4}from"react/jsx-runtime";var mf=e=>d4(c,{...e,children:[Hy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Hy("path",{d:"M9 12l6 0"})]});import{jsx as uf,jsxs as m4}from"react/jsx-runtime";var ff=e=>m4(c,{...e,children:[uf("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"}),uf("path",{d:"M11 4h2"}),uf("path",{d:"M12 17v.01"})]});import{jsx as jc,jsxs as u4}from"react/jsx-runtime";var hf=e=>u4(c,{...e,children:[jc("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"}),jc("path",{d:"M7 20h10"}),jc("path",{d:"M9 16v4"}),jc("path",{d:"M15 16v4"})]});import{jsx as Ha,jsxs as f4}from"react/jsx-runtime";var gf=e=>f4(c,{...e,children:[Ha("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"}),Ha("path",{d:"M3 13h18"}),Ha("path",{d:"M8 21h8"}),Ha("path",{d:"M10 17l-.5 4"}),Ha("path",{d:"M14 17l.5 4"})]});import{jsx as Uy}from"react/jsx-runtime";var bf=e=>Uy(c,{...e,children:Uy("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 Gy,jsxs as h4}from"react/jsx-runtime";var yf=e=>h4(c,{...e,children:[Gy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Gy("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 Po,jsxs as g4}from"react/jsx-runtime";var yt=e=>g4(c,{...e,children:[Po("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"}),Po("path",{d:"M8 4l0 16"}),Po("path",{d:"M16 4l0 16"}),Po("path",{d:"M4 8l4 0"}),Po("path",{d:"M4 16l4 0"}),Po("path",{d:"M4 12l16 0"}),Po("path",{d:"M16 8l4 0"}),Po("path",{d:"M16 16l4 0"})]});import{jsx as $y}from"react/jsx-runtime";var vf=e=>$y(c,{...e,children:$y("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 Wy,jsxs as b4}from"react/jsx-runtime";var If=e=>b4(c,{...e,children:[Wy("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),Wy("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as Ua,jsxs as y4}from"react/jsx-runtime";var Cf=e=>y4(c,{...e,children:[Ua("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),Ua("path",{d:"M12 12l8 -4.5"}),Ua("path",{d:"M12 12l0 9"}),Ua("path",{d:"M12 12l-8 -4.5"}),Ua("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as ei,jsxs as v4}from"react/jsx-runtime";var xf=e=>v4(c,{...e,children:[ei("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"}),ei("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ei("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ei("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ga,jsxs as I4}from"react/jsx-runtime";var Pf=e=>I4(c,{...e,children:[Ga("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"}),Ga("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),Ga("path",{d:"M15 16h.01"}),Ga("path",{d:"M12.01 16h.01"}),Ga("path",{d:"M9.02 16h.01"})]});import{jsx as qy,jsxs as C4}from"react/jsx-runtime";var vt=e=>C4(c,{...e,children:[qy("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"}),qy("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 Sf,jsxs as x4}from"react/jsx-runtime";var wf=e=>x4(c,{...e,children:[Sf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Sf("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"}),Sf("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 P4}from"react/jsx-runtime";var kf=e=>P4(c,{...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 Tf,jsxs as S4}from"react/jsx-runtime";var Nf=e=>S4(c,{...e,children:[Tf("path",{d:"M14 6l7 7l-4 4"}),Tf("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"}),Tf("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as ti,jsxs as w4}from"react/jsx-runtime";var Bf=e=>w4(c,{...e,children:[ti("path",{d:"M9 15l6 -6"}),ti("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),ti("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),ti("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Ky}from"react/jsx-runtime";var Rf=e=>Ky(c,{...e,children:Ky("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 Ef,jsxs as M4}from"react/jsx-runtime";var Lf=e=>M4(c,{...e,children:[Ef("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"}),Ef("path",{d:"M15 7a2 2 0 0 1 2 2"}),Ef("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as Xy,jsxs as k4}from"react/jsx-runtime";var $a=e=>k4(c,{...e,children:[Xy("path",{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"}),Xy("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 Df,jsxs as T4}from"react/jsx-runtime";var Wa=e=>T4(c,{...e,children:[Df("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),Df("path",{d:"M9 15l-4.5 4.5"}),Df("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as Yy}from"react/jsx-runtime";var It=e=>Yy(c,{...e,children:Yy("path",{d:"M7 4v16l13 -8z"})});import{jsx as Qy,jsxs as N4}from"react/jsx-runtime";var Ff=e=>N4(c,{...e,children:[Qy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Qy("path",{d:"M9 8v8l8 -4z"})]});import{jsx as Zy,jsxs as B4}from"react/jsx-runtime";var nn=e=>B4(c,{...e,children:[Zy("path",{d:"M12 5l0 14"}),Zy("path",{d:"M5 12l14 0"})]});import{jsx as Af,jsxs as R4}from"react/jsx-runtime";var So=e=>R4(c,{...e,children:[Af("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Af("path",{d:"M9 12h6"}),Af("path",{d:"M12 9v6"})]});import{jsx as Of,jsxs as E4}from"react/jsx-runtime";var _f=e=>E4(c,{...e,children:[Of("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"}),Of("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),Of("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 Jy}from"react/jsx-runtime";var Vf=e=>Jy(c,{...e,children:Jy("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as zf,jsxs as L4}from"react/jsx-runtime";var qa=e=>L4(c,{...e,children:[zf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),zf("path",{d:"M12 16v.01"}),zf("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as jy,jsxs as D4}from"react/jsx-runtime";var Hf=e=>D4(c,{...e,children:[jy("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"}),jy("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 ev,jsxs as F4}from"react/jsx-runtime";var Uf=e=>F4(c,{...e,children:[ev("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ev("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as tv}from"react/jsx-runtime";var Gf=e=>tv(c,{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-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 ov}from"react/jsx-runtime";var $f=e=>ov(c,{...e,children:ov("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 nv,jsxs as A4}from"react/jsx-runtime";var Wf=e=>A4(c,{...e,children:[nv("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"}),nv("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as rv,jsxs as O4}from"react/jsx-runtime";var qf=e=>O4(c,{...e,children:[rv("path",{d:"M15 14l4 -4l-4 -4"}),rv("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as av}from"react/jsx-runtime";var Ka=e=>av(c,{...e,children:av("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as lv,jsxs as _4}from"react/jsx-runtime";var Kf=e=>_4(c,{...e,children:[lv("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),lv("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as cv,jsxs as V4}from"react/jsx-runtime";var Xf=e=>V4(c,{...e,children:[cv("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),cv("path",{d:"M20 4v5h-5"})]});import{jsx as iv,jsxs as z4}from"react/jsx-runtime";var Yf=e=>z4(c,{...e,children:[iv("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),iv("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as oi,jsxs as H4}from"react/jsx-runtime";var Qf=e=>H4(c,{...e,children:[oi("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"}),oi("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"}),oi("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),oi("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as sv}from"react/jsx-runtime";var Xa=e=>sv(c,{...e,children:sv("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Zf,jsxs as U4}from"react/jsx-runtime";var Jf=e=>U4(c,{...e,children:[Zf("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Zf("path",{d:"M3 4.001v5h5"}),Zf("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as jf,jsxs as G4}from"react/jsx-runtime";var eh=e=>G4(c,{...e,children:[jf("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"}),jf("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),jf("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as pv,jsxs as $4}from"react/jsx-runtime";var th=e=>$4(c,{...e,children:[pv("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"}),pv("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 dv,jsxs as W4}from"react/jsx-runtime";var oh=e=>W4(c,{...e,children:[dv("path",{d:"M12 3v9h9"}),dv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as nh,jsxs as q4}from"react/jsx-runtime";var rh=e=>q4(c,{...e,children:[nh("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),nh("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),nh("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 ah,jsxs as K4}from"react/jsx-runtime";var lh=e=>K4(c,{...e,children:[ah("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"}),ah("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ah("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as wo,jsxs as X4}from"react/jsx-runtime";var ch=e=>X4(c,{...e,children:[wo("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),wo("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),wo("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),wo("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),wo("path",{d:"M5 11h1v2h-1z"}),wo("path",{d:"M10 11l0 2"}),wo("path",{d:"M14 11h1v2h-1z"}),wo("path",{d:"M19 11l0 2"})]});import{jsx as ni,jsxs as Y4}from"react/jsx-runtime";var Ya=e=>Y4(c,{...e,children:[ni("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),ni("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),ni("path",{d:"M8.6 8.6l10.4 10.4"}),ni("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as mv,jsxs as Q4}from"react/jsx-runtime";var Ct=e=>Q4(c,{...e,children:[mv("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),mv("path",{d:"M21 21l-6 -6"})]});import{jsx as uv,jsxs as Z4}from"react/jsx-runtime";var ih=e=>Z4(c,{...e,children:[uv("path",{d:"M10 14l11 -11"}),uv("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 ri,jsxs as J4}from"react/jsx-runtime";var sh=e=>J4(c,{...e,children:[ri("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"}),ri("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"}),ri("path",{d:"M7 8l0 .01"}),ri("path",{d:"M7 16l0 .01"})]});import{jsx as fv,jsxs as j4}from"react/jsx-runtime";var Qa=e=>j4(c,{...e,children:[fv("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"}),fv("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as jt,jsxs as ek}from"react/jsx-runtime";var ph=e=>ek(c,{...e,children:[jt("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),jt("path",{d:"M4 6l8 0"}),jt("path",{d:"M16 6l4 0"}),jt("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),jt("path",{d:"M4 12l2 0"}),jt("path",{d:"M10 12l10 0"}),jt("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),jt("path",{d:"M4 18l11 0"}),jt("path",{d:"M19 18l1 0"})]});import{jsx as Za,jsxs as tk}from"react/jsx-runtime";var dh=e=>tk(c,{...e,children:[Za("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Za("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Za("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Za("path",{d:"M8.7 10.7l6.6 -3.4"}),Za("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as hv,jsxs as ok}from"react/jsx-runtime";var mh=e=>ok(c,{...e,children:[hv("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"}),hv("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as uh,jsxs as nk}from"react/jsx-runtime";var fh=e=>nk(c,{...e,children:[uh("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"}),uh("path",{d:"M16 19h6"}),uh("path",{d:"M19 16v6"})]});import{jsx as hh,jsxs as rk}from"react/jsx-runtime";var gh=e=>rk(c,{...e,children:[hh("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"}),hh("path",{d:"M22 22l-5 -5"}),hh("path",{d:"M17 22l5 -5"})]});import{jsx as gv,jsxs as ak}from"react/jsx-runtime";var bh=e=>ak(c,{...e,children:[gv("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"}),gv("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as ai,jsxs as lk}from"react/jsx-runtime";var yh=e=>lk(c,{...e,children:[ai("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ai("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ai("path",{d:"M17 17h-11v-14h-2"}),ai("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as Mo,jsxs as ck}from"react/jsx-runtime";var vh=e=>ck(c,{...e,children:[Mo("path",{d:"M5 9l4 0l0 -4"}),Mo("path",{d:"M3 3l6 6"}),Mo("path",{d:"M5 15l4 0l0 4"}),Mo("path",{d:"M3 21l6 -6"}),Mo("path",{d:"M19 9l-4 0l0 -4"}),Mo("path",{d:"M15 9l6 -6"}),Mo("path",{d:"M19 15l-4 0l0 4"}),Mo("path",{d:"M15 15l6 6"})]});import{jsx as li,jsxs as ik}from"react/jsx-runtime";var Ih=e=>ik(c,{...e,children:[li("path",{d:"M18 4l3 3l-3 3"}),li("path",{d:"M18 20l3 -3l-3 -3"}),li("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),li("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 bv,jsxs as sk}from"react/jsx-runtime";var Ch=e=>sk(c,{...e,children:[bv("path",{d:"M4 5v14l12 -7z"}),bv("path",{d:"M20 5l0 14"})]});import{jsx as yv,jsxs as pk}from"react/jsx-runtime";var xh=e=>pk(c,{...e,children:[yv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),yv("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as vv,jsxs as dk}from"react/jsx-runtime";var Ph=e=>dk(c,{...e,children:[vv("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"}),vv("path",{d:"M5 5 L19 19"})]});import{jsx as rn,jsxs as mk}from"react/jsx-runtime";var Sh=e=>mk(c,{...e,children:[rn("path",{d:"M4 10l0 6"}),rn("path",{d:"M20 10l0 6"}),rn("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),rn("path",{d:"M8 3l1 2"}),rn("path",{d:"M16 3l-1 2"}),rn("path",{d:"M9 18l0 3"}),rn("path",{d:"M15 18l0 3"})]});import{jsx as Iv,jsxs as uk}from"react/jsx-runtime";var wh=e=>uk(c,{...e,children:[Iv("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"}),Iv("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as Cv}from"react/jsx-runtime";var Mh=e=>Cv(c,{...e,children:Cv("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 Ja,jsxs as fk}from"react/jsx-runtime";var kh=e=>fk(c,{...e,children:[Ja("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Ja("path",{d:"M3.6 9h16.8"}),Ja("path",{d:"M3.6 15h16.8"}),Ja("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),Ja("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as xv}from"react/jsx-runtime";var Th=e=>xv(c,{...e,children:xv("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 Nh,jsxs as hk}from"react/jsx-runtime";var Bh=e=>hk(c,{...e,children:[Nh("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"}),Nh("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Nh("path",{d:"M16.5 7.5v.01"})]});import{jsx as ja,jsxs as gk}from"react/jsx-runtime";var Rh=e=>gk(c,{...e,children:[ja("path",{d:"M8 11v5"}),ja("path",{d:"M8 8v.01"}),ja("path",{d:"M12 16v-5"}),ja("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),ja("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 Eh,jsxs as bk}from"react/jsx-runtime";var Lh=e=>bk(c,{...e,children:[Eh("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Eh("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),Eh("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 an,jsxs as yk}from"react/jsx-runtime";var Dh=e=>yk(c,{...e,children:[an("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"}),an("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"}),an("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"}),an("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"}),an("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"}),an("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"}),an("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"})]});import{jsx as el,jsxs as vk}from"react/jsx-runtime";var Fh=e=>vk(c,{...e,children:[el("path",{d:"M21 15l-1 -6l-2.5 6"}),el("path",{d:"M9 15l1 -6"}),el("path",{d:"M3 9h1v6h.5l2.5 -6"}),el("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"}),el("path",{d:"M18 14h2.7"})]});import{jsx as Pv,jsxs as Ik}from"react/jsx-runtime";var Ah=e=>Ik(c,{...e,children:[Pv("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),Pv("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as ci,jsxs as Ck}from"react/jsx-runtime";var tl=e=>Ck(c,{...e,children:[ci("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),ci("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ci("path",{d:"M13.41 10.59l2.59 -2.59"}),ci("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as Sv}from"react/jsx-runtime";var Oh=e=>Sv(c,{...e,children:Sv("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as wv}from"react/jsx-runtime";var ol=e=>wv(c,{...e,children:wv("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 Mv}from"react/jsx-runtime";var _h=e=>Mv(c,{isFilled:!0,...e,children:Mv("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 kv}from"react/jsx-runtime";var Vh=e=>kv(c,{isFilled:!0,...e,children:kv("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 Tv}from"react/jsx-runtime";var zh=e=>Tv(c,{...e,children:Tv("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 Nv}from"react/jsx-runtime";var nl=e=>Nv(c,{...e,children:Nv("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 Bv,jsxs as xk}from"react/jsx-runtime";var Hh=e=>xk(c,{...e,children:[Bv("path",{d:"M5 12l14 0"}),Bv("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 Rv,jsxs as Pk}from"react/jsx-runtime";var Uh=e=>Pk(c,{...e,children:[Rv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Rv("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 Ev,jsxs as Sk}from"react/jsx-runtime";var Gh=e=>Sk(c,{...e,children:[Ev("path",{d:"M7 10h14l-4 -4"}),Ev("path",{d:"M17 14h-14l4 4"})]});import{jsx as ii,jsxs as wk}from"react/jsx-runtime";var $h=e=>wk(c,{...e,children:[ii("path",{d:"M16 3l4 4l-4 4"}),ii("path",{d:"M10 7l10 0"}),ii("path",{d:"M8 13l-4 4l4 4"}),ii("path",{d:"M4 17l9 0"})]});import{jsx as Wh,jsxs as Mk}from"react/jsx-runtime";var qh=e=>Mk(c,{...e,children:[Wh("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"}),Wh("path",{d:"M3 10h18"}),Wh("path",{d:"M10 3v18"})]});import{jsx as Lv,jsxs as kk}from"react/jsx-runtime";var rl=e=>kk(c,{...e,children:[Lv("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Lv("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 hr,jsxs as Tk}from"react/jsx-runtime";var Kh=e=>Tk(c,{...e,children:[hr("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),hr("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),hr("path",{d:"M12 2l0 2"}),hr("path",{d:"M12 20l0 2"}),hr("path",{d:"M20 12l2 0"}),hr("path",{d:"M2 12l2 0"})]});import{jsx as Xh,jsxs as Nk}from"react/jsx-runtime";var Yh=e=>Nk(c,{...e,children:[Xh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Xh("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Xh("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Qh,jsxs as Bk}from"react/jsx-runtime";var Zh=e=>Bk(c,{...e,children:[Qh("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),Qh("path",{d:"M9 11h6"}),Qh("path",{d:"M5 19h14"})]});import{jsx as Dv,jsxs as Rk}from"react/jsx-runtime";var Jh=e=>Rk(c,{...e,children:[Dv("path",{d:"M6 4l12 0"}),Dv("path",{d:"M12 4l0 16"})]});import{jsx as si,jsxs as Ek}from"react/jsx-runtime";var jh=e=>Ek(c,{...e,children:[si("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),si("path",{d:"M12.5 5.5l4 4"}),si("path",{d:"M4.5 13.5l4 4"}),si("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as Fv}from"react/jsx-runtime";var e0=e=>Fv(c,{...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 Av}from"react/jsx-runtime";var t0=e=>Av(c,{...e,children:Av("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 Ov,jsxs as Lk}from"react/jsx-runtime";var o0=e=>Lk(c,{isFilled:!0,...e,children:[Ov("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"}),Ov("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 _v,jsxs as Dk}from"react/jsx-runtime";var n0=e=>Dk(c,{...e,children:[_v("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),_v("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 gr,jsxs as Fk}from"react/jsx-runtime";var r0=e=>Fk(c,{...e,children:[gr("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),gr("path",{d:"M4 6.371h7"}),gr("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),gr("path",{d:"M12 20l4 -9l4 9"}),gr("path",{d:"M19.1 18h-6.2"}),gr("path",{d:"M6.694 3l.793 .582"})]});import{jsx as al,jsxs as Ak}from"react/jsx-runtime";var pt=e=>Ak(c,{...e,children:[al("path",{d:"M4 7l16 0"}),al("path",{d:"M10 11l0 6"}),al("path",{d:"M14 11l0 6"}),al("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),al("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as Vv,jsxs as Ok}from"react/jsx-runtime";var a0=e=>Ok(c,{...e,children:[Vv("path",{d:"M3 17l6 -6l4 4l8 -8"}),Vv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as zv,jsxs as _k}from"react/jsx-runtime";var l0=e=>_k(c,{...e,children:[zv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),zv("path",{d:"M5 19h14"})]});import{jsx as Hv,jsxs as Vk}from"react/jsx-runtime";var c0=e=>Vk(c,{...e,children:[Hv("path",{d:"M9 14l-4 -4l4 -4"}),Hv("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as i0,jsxs as zk}from"react/jsx-runtime";var s0=e=>zk(c,{...e,children:[i0("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"}),i0("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),i0("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as p0,jsxs as Hk}from"react/jsx-runtime";var ln=e=>Hk(c,{...e,children:[p0("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"}),p0("path",{d:"M9 15l3 -3l3 3"}),p0("path",{d:"M12 12l0 9"})]});import{jsx as Uv,jsxs as Uk}from"react/jsx-runtime";var ll=e=>Uk(c,{...e,children:[Uv("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Uv("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as d0,jsxs as Gk}from"react/jsx-runtime";var m0=e=>Gk(c,{...e,children:[d0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),d0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),d0("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as pi,jsxs as $k}from"react/jsx-runtime";var u0=e=>$k(c,{...e,children:[pi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),pi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),pi("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),pi("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as f0,jsxs as Wk}from"react/jsx-runtime";var h0=e=>Wk(c,{...e,children:[f0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),f0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),f0("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 di,jsxs as qk}from"react/jsx-runtime";var g0=e=>qk(c,{...e,children:[di("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),di("path",{d:"M16 19h6"}),di("path",{d:"M19 16v6"}),di("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as mi,jsxs as Kk}from"react/jsx-runtime";var b0=e=>Kk(c,{...e,children:[mi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),mi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),mi("path",{d:"M16 22l5 -5"}),mi("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as ui,jsxs as Xk}from"react/jsx-runtime";var y0=e=>Xk(c,{...e,children:[ui("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),ui("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),ui("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),ui("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as v0,jsxs as Yk}from"react/jsx-runtime";var I0=e=>Yk(c,{...e,children:[v0("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),v0("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),v0("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 cl,jsxs as Qk}from"react/jsx-runtime";var C0=e=>Qk(c,{...e,children:[cl("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),cl("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),cl("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),cl("path",{d:"M19 22v-6"}),cl("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as Gv,jsxs as Zk}from"react/jsx-runtime";var x0=e=>Zk(c,{...e,children:[Gv("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"}),Gv("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 P0,jsxs as Jk}from"react/jsx-runtime";var S0=e=>Jk(c,{...e,children:[P0("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),P0("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),P0("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 w0,jsxs as jk}from"react/jsx-runtime";var il=e=>jk(c,{...e,children:[w0("path",{d:"M15 8a5 5 0 0 1 0 8"}),w0("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),w0("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 $v,jsxs as e3}from"react/jsx-runtime";var sl=e=>e3(c,{...e,children:[$v("path",{d:"M15 8a5 5 0 0 1 0 8"}),$v("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 Wv,jsxs as t3}from"react/jsx-runtime";var pl=e=>t3(c,{...e,children:[Wv("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"}),Wv("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as qv}from"react/jsx-runtime";var M0=e=>qv(c,{...e,children:qv("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 Kv,jsxs as o3}from"react/jsx-runtime";var He=e=>o3(c,{...e,children:[Kv("path",{d:"M18 6l-12 12"}),Kv("path",{d:"M6 6l12 12"})]});import{jsx as Xv,jsxs as n3}from"react/jsx-runtime";var k0=e=>n3(c,{...e,children:[Xv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Xv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Yv}from"react/jsx-runtime";var T0=e=>Yv(c,{isFilled:!0,...e,children:Yv("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 Qv,jsxs as r3}from"react/jsx-runtime";var N0=e=>r3(c,{...e,children:[Qv("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"}),Qv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as fi,jsxs as a3}from"react/jsx-runtime";var B0=e=>a3(c,{...e,children:[fi("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),fi("path",{d:"M7 10l6 0"}),fi("path",{d:"M10 7l0 6"}),fi("path",{d:"M21 21l-6 -6"})]});import{jsx as R0,jsxs as l3}from"react/jsx-runtime";var E0=e=>l3(c,{...e,children:[R0("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),R0("path",{d:"M7 10l6 0"}),R0("path",{d:"M21 21l-6 -6"})]});var Tt=(h=>(h["48AlertFeatured"]="48AlertFeatured",h["48SuccessFeatured"]="48SuccessFeatured",h.AlertCircle="AlertCircle",h.AlertOctagon="AlertOctagon",h.AlertTriangle="AlertTriangle",h.Apps="Apps",h.ArrowBarDown="ArrowBarDown",h.ArrowBarLeft="ArrowBarLeft",h.ArrowBarRight="ArrowBarRight",h.ArrowBarToDown="ArrowBarToDown",h.ArrowBarToLeft="ArrowBarToLeft",h.ArrowBarToRight="ArrowBarToRight",h.ArrowBarToUp="ArrowBarToUp",h.ArrowBarUp="ArrowBarUp",h.Archive="Archive",h.ArrowDown="ArrowDown",h.ArrowDownLeft="ArrowDownLeft",h.ArrowDownNarrow="ArrowDownNarrow",h.ArrowDownRight="ArrowDownRight",h.ArrowLeft="ArrowLeft",h.ArrowLeftNarrow="ArrowLeftNarrow",h.ArrowRight="ArrowRight",h.ArrowRightNarrow="ArrowRightNarrow",h.ArrowUp="ArrowUp",h.ArrowUpLeft="ArrowUpLeft",h.ArrowUpNarrow="ArrowUpNarrow",h.ArrowUpRight="ArrowUpRight",h.Attachment="Attachment",h.BadgeHd="BadgeHd",h.BarChart="BarChart",h.BarChartSquare="BarChartSquare",h.Bell="Bell",h.Bold="Bold",h.Bookmark="Bookmark",h.BookmarkCheck="BookmarkCheck",h.BookmarkCheckFill="BookmarkCheckFill",h.BookmarkFill="BookmarkFill",h.BookmarkMinus="BookmarkMinus",h.BookmarkPlus="BookmarkPlus",h.BookmarkX="BookmarkX",h.BookOpen="BookOpen",h.BoxLines="BoxLines",h.BoxText="BoxText",h.BracketsCheck="BracketsCheck",h.BracketsEllipses="BracketsEllipses",h.BrickWall="BrickWall",h.Briefcase="Briefcase",h.Building="Building",h.Calculator="Calculator",h.Calendar="Calendar",h.Certificate="Certificate",h.Check="Check",h.CheckCircle="CheckCircle",h.CheckCircleBroken="CheckCircleBroken",h.CheckFill="CheckFill",h.CheckVerified="CheckVerified",h.CheckVerifiedFill="CheckVerifiedFill",h.ChevronDown="ChevronDown",h.ChevronDownDouble="ChevronDownDouble",h.ChevronDownLeft="ChevronDownLeft",h.ChevronDownLeftDouble="ChevronDownLeftDouble",h.ChevronDownRight="ChevronDownRight",h.ChevronDownRightDouble="ChevronDownRightDouble",h.ChevronLeft="ChevronLeft",h.ChevronLeftDouble="ChevronLeftDouble",h.ChevronRight="ChevronRight",h.ChevronRightDouble="ChevronRightDouble",h.ChevronSelectorVertical="ChevronSelectorVertical",h.ChevronUp="ChevronUp",h.ChevronUpDouble="ChevronUpDouble",h.ChevronUpLeft="ChevronUpLeft",h.ChevronUpLeftDouble="ChevronUpLeftDouble",h.ChevronUpRight="ChevronUpRight",h.ChevronUpRightDouble="ChevronUpRightDouble",h.Click="Click",h.Clock="Clock",h.ClockFastForward="ClockFastForward",h.ClockPlay="ClockPlay",h.ClockRewind="ClockRewind",h.Clone="Clone",h.ClosedCaption="ClosedCaption",h.Code="Code",h.CodeBrowser="CodeBrowser",h.CodeCircle="CodeCircle",h.Colors="Colors",h.ColumnEdit="ColumnEdit",h.Copy="Copy",h.Copy2="Copy2",h.CopyCheck="CopyCheck",h.CreditCard="CreditCard",h.Cube="Cube",h.CubeOutline="CubeOutline",h.CursorBox="CursorBox",h.Dataflow="Dataflow",h.Dataflow2="Dataflow2",h.Dataflow3="Dataflow3",h.DistributeHorizontal="DistributeHorizontal",h.Dollar="Dollar",h.DollarCircle="DollarCircle",h.Dot="Dot",h.DotFill="DotFill",h.DotsGrid="DotsGrid",h.DotsHorizontal="DotsHorizontal",h.DotsVertical="DotsVertical",h.Download="Download",h.Edit="Edit",h.Editable="Editable",h.Expand="Expand",h.ExternalLink="ExternalLink",h.ExternalLink2="ExternalLink2",h.Eye="Eye",h.EyeHidden="EyeHidden",h.EyeHidden2="EyeHidden2",h.FaceAngry="FaceAngry",h.FaceLaugh="FaceLaugh",h.FaceSmile="FaceSmile",h.File="File",h.FileCheck="FileCheck",h.FileCsv="FileCsv",h.FileDownload="FileDownload",h.FileJson="FileJson",h.FileList="FileList",h.FileMusic="FileMusic",h.FilePdf="FilePdf",h.Files="Files",h.FileSpreadsheet="FileSpreadsheet",h.FileText="FileText",h.FileUpload="FileUpload",h.FileXls="FileXls",h.FileXlsx="FileXlsx",h.FileZip="FileZip",h.Filter="Filter",h.Filter2="Filter2",h.Flag="Flag",h.Flag2="Flag2",h.FlagFill="FlagFill",h.Focus="Focus",h.Folder="Folder",h.FolderExport="FolderExport",h.FolderImport="FolderImport",h.GraduationCap="GraduationCap",h.GripVertical="GripVertical",h.Hand="Hand",h.HandShield="HandShield",h.Hash="Hash",h.HeadsetMic="HeadsetMic",h.Heart="Heart",h.HeartFill="HeartFill",h.House="House",h.HouseLine="HouseLine",h.Image="Image",h.Image2="Image2",h.ImageCheck="ImageCheck",h.ImageOff="ImageOff",h.Import="Import",h.Inbox="Inbox",h.InfoCircle="InfoCircle",h.InfoHexagon="InfoHexagon",h.Italic="Italic",h.LayersMultiple="LayersMultiple",h.LayersSingle="LayersSingle",h.Layout="Layout",h.Layout2="Layout2",h.LayoutColumns="LayoutColumns",h.LayoutCustom="LayoutCustom",h.LayoutStuffed="LayoutStuffed",h.LayoutTile="LayoutTile",h.LifeBuoy="LifeBuoy",h.Lightbulb="Lightbulb",h.Lightning="Lightning",h.LightningFast="LightningFast",h.LineChart="LineChart",h.LineChartBar="LineChartBar",h.LineChartBreakoutSquare="LineChartBreakoutSquare",h.LineChartUp="LineChartUp",h.Lines="Lines",h.LinesCheck="LinesCheck",h.LinesPlay="LinesPlay",h.Link="Link",h.Link2="Link2",h.LinkOff="LinkOff",h.ListBullet="ListBullet",h.ListOrder="ListOrder",h.Lock="Lock",h.LockFill="LockFill",h.LogIn="LogIn",h.LogOut="LogOut",h.LogOut2="LogOut2",h.MagicWand="MagicWand",h.Mail="Mail",h.MailOpen="MailOpen",h.MapPin="MapPin",h.Maximize="Maximize",h.Maximize2="Maximize2",h.MessageCircle="MessageCircle",h.MessageSquare="MessageSquare",h.MessageSquare2="MessageSquare2",h.MessageXSquare="MessageXSquare",h.Microphone="Microphone",h.Minimize="Minimize",h.Minimize2="Minimize2",h.MinusCircle="MinusCircle",h.Mobile="Mobile",h.Monitor="Monitor",h.Monitor2="Monitor2",h.Moon="Moon",h.MoonCircle="MoonCircle",h.Movie="Movie",h.NavigationPointer="NavigationPointer",h.NotificationBox="NotificationBox",h.Package="Package",h.Palette="Palette",h.PasscodeLock="PasscodeLock",h.Pause="Pause",h.PauseCircle="PauseCircle",h.PCSetup="PCSetup",h.Pen="Pen",h.PercentageCircle="PercentageCircle",h.Perspective="Perspective",h.PhoneCall="PhoneCall",h.PictureInPicture="PictureInPicture",h.Pin="Pin",h.Play="Play",h.PlayCircle="PlayCircle",h.Plus="Plus",h.PlusCircle="PlusCircle",h.Printer="Printer",h.Pulse="Pulse",h.QuestionCircle="QuestionCircle",h.Quote="Quote",h.RadioButton="RadioButton",h.RadioButtonFill="RadioButtonFill",h.Receipt="Receipt",h.ReceiptCheck="ReceiptCheck",h.Redo="Redo",h.Refresh="Refresh",h.Refresh2="Refresh2",h.Refresh3="Refresh3",h.Repeat="Repeat",h.Replace="Replace",h.Replay="Replay",h.Restore="Restore",h.Rocket="Rocket",h.RoundChart="RoundChart",h.RoundChart2="RoundChart2",h.Route="Route",h.Save="Save",h.ScanDots="ScanDots",h.Scissors="Scissors",h.Search="Search",h.Send="Send",h.Server="Server",h.Settings="Settings",h.Settings2="Settings2",h.Share="Share",h.ShieldLightning="ShieldLightning",h.ShieldPlus="ShieldPlus",h.ShieldRemove="ShieldRemove",h.ShoppingBag="ShoppingBag",h.ShoppingCart="ShoppingCart",h.Shrink="Shrink",h.Shuffle="Shuffle",h.SkipForward="SkipForward",h.SlashCircle="SlashCircle",h.SlashOctagon="SlashOctagon",h.SocialAndroid="SocialAndroid",h.SocialApple="SocialApple",h.SocialGithub="SocialGithub",h.SocialGlobe="SocialGlobe",h.SocialGoogle="SocialGoogle",h.SocialInstagram="SocialInstagram",h.SocialLinkedin="SocialLinkedin",h.SocialMastercard="SocialMastercard",h.SocialReact="SocialReact",h.SocialVisa="SocialVisa",h.SocialX="SocialX",h.Speedometer="Speedometer",h.Stairs="Stairs",h.Star="Star",h.StarFill="StarFill",h.StarHalf="StarHalf",h.Stars="Stars",h.Stop="Stop",h.Strikethrough="Strikethrough",h.Sun="Sun",h.Swap="Swap",h.SwitchHorizontal="SwitchHorizontal",h.Table="Table",h.Tag="Tag",h.Target="Target",h.Target2="Target2",h.TextFormat="TextFormat",h.TextFormat2="TextFormat2",h.TextHighlight="TextHighlight",h.ThumbsDown="ThumbsDown",h.ThumbsUp="ThumbsUp",h.ThumbsUpFill="ThumbsUpFill",h.Toggle="Toggle",h.Translate="Translate",h.Trash="Trash",h.Trending="Trending",h.Underline="Underline",h.Undo="Undo",h.Unlock="Unlock",h.UploadCloud="UploadCloud",h.User="User",h.UserCheck="UserCheck",h.UserDollar="UserDollar",h.UserEdit="UserEdit",h.UserPlus="UserPlus",h.UserRight="UserRight",h.Users="Users",h.UserSquare="UserSquare",h.UsersUp="UsersUp",h.UserVoice="UserVoice",h.Video="Video",h.VideoChat="VideoChat",h.Volume="Volume",h.VolumeDown="VolumeDown",h.VolumeMute="VolumeMute",h.Wrench="Wrench",h.X="X",h.XCircle="XCircle",h.XCircleFill="XCircleFill",h.XSquare="XSquare",h.ZoomIn="ZoomIn",h.ZoomOut="ZoomOut",h))(Tt||{});import{jsx as g}from"react/jsx-runtime";function Ee({name:e,...t}){switch(e){case"48AlertFeatured":return g(gp,{...t});case"48SuccessFeatured":return g(bp,{...t});case"AlertCircle":return g(Qo,{...t});case"AlertOctagon":return g(vp,{...t});case"AlertTriangle":return g(Cp,{...t});case"ArrowBarDown":return g(wp,{...t});case"ArrowBarLeft":return g(Mp,{...t});case"ArrowBarRight":return g(kp,{...t});case"ArrowBarToDown":return g(Tp,{...t});case"ArrowBarToLeft":return g(Np,{...t});case"ArrowBarToRight":return g(Bp,{...t});case"ArrowBarToUp":return g(Rp,{...t});case"ArrowBarUp":return g(Ep,{...t});case"Apps":return g(xp,{...t});case"Archive":return g(Sp,{...t});case"ArrowDown":return g(Dp,{...t});case"ArrowDownLeft":return g(Fp,{...t});case"ArrowDownNarrow":return g(Op,{...t});case"ArrowDownRight":return g(_p,{...t});case"ArrowLeft":return g(zp,{...t});case"ArrowLeftNarrow":return g(Up,{...t});case"ArrowRight":return g($p,{...t});case"ArrowRightNarrow":return g(qp,{...t});case"ArrowUp":return g(Xp,{...t});case"ArrowUpLeft":return g(Yp,{...t});case"ArrowUpNarrow":return g(Zp,{...t});case"ArrowUpRight":return g(Jp,{...t});case"Attachment":return g(jp,{...t});case"BadgeHd":return g(ia,{...t});case"BarChart":return g(ed,{...t});case"BarChartSquare":return g(td,{...t});case"Bell":return g(od,{...t});case"Bold":return g(nd,{...t});case"BookOpen":return g(sd,{...t});case"Bookmark":return g(rd,{...t});case"BookmarkCheck":return g(sp,{...t});case"BookmarkCheckFill":return g(pp,{...t});case"BookmarkFill":return g(ad,{...t});case"BookmarkMinus":return g(ld,{...t});case"BookmarkPlus":return g(mp,{...t});case"BookmarkX":return g(id,{...t});case"BoxLines":return g(pd,{...t});case"BoxText":return g(md,{...t});case"BracketsCheck":return g(fd,{...t});case"BracketsEllipses":return g(hd,{...t});case"BrickWall":return g(gd,{...t});case"Briefcase":return g(bd,{...t});case"Building":return g(up,{...t});case"Calculator":return g(yd,{...t});case"Calendar":return g(ma,{...t});case"Certificate":return g(vd,{...t});case"Check":return g(Xt,{...t});case"CheckCircle":return g(Zo,{...t});case"CheckCircleBroken":return g(Id,{...t});case"CheckFill":return g(Cd,{...t});case"CheckVerified":return g(xd,{...t});case"CheckVerifiedFill":return g(Pd,{...t});case"ChevronDown":return g(Jo,{...t});case"ChevronDownDouble":return g(Sd,{...t});case"ChevronDownLeft":return g(wd,{...t});case"ChevronDownLeftDouble":return g(Md,{...t});case"ChevronDownRight":return g(kd,{...t});case"ChevronDownRightDouble":return g(Td,{...t});case"ChevronLeft":return g(Yt,{...t});case"ChevronLeftDouble":return g(Nd,{...t});case"ChevronRight":return g(bt,{...t});case"ChevronRightDouble":return g(ua,{...t});case"ChevronSelectorVertical":return g(Bd,{...t});case"ChevronUp":return g(Qt,{...t});case"ChevronUpDouble":return g(Rd,{...t});case"ChevronUpLeft":return g(Ed,{...t});case"ChevronUpLeftDouble":return g(Ld,{...t});case"ChevronUpRight":return g(Dd,{...t});case"ChevronUpRightDouble":return g(Fd,{...t});case"Click":return g(Ad,{...t});case"Clock":return g(fa,{...t});case"ClockFastForward":return g(Od,{...t});case"ClockPlay":return g(Vd,{...t});case"ClockRewind":return g(zd,{...t});case"Clone":return g(Hd,{...t});case"ClosedCaption":return g(ga,{...t});case"Code":return g($d,{...t});case"CodeBrowser":return g(Wd,{...t});case"CodeCircle":return g(Kd,{...t});case"Colors":return g(Yd,{...t});case"ColumnEdit":return g(fp,{...t});case"Copy":return g(Qd,{...t});case"Copy2":return g(Zd,{...t});case"CopyCheck":return g(jd,{...t});case"Files":return g(_m,{...t});case"CreditCard":return g(em,{...t});case"Cube":return g(tm,{...t});case"CubeOutline":return g(om,{...t});case"CursorBox":return g(ba,{...t});case"Dataflow":return g(nm,{...t});case"Dataflow2":return g(rm,{...t});case"Dataflow3":return g(am,{...t});case"DistributeHorizontal":return g(cm,{...t});case"Dollar":return g(im,{...t});case"DollarCircle":return g(pm,{...t});case"Dot":return g(dm,{...t});case"DotFill":return g(mm,{...t});case"DotsGrid":return g(um,{...t});case"DotsHorizontal":return g(va,{...t});case"DotsVertical":return g(nr,{...t});case"Download":return g(bm,{...t});case"Edit":return g(ym,{...t});case"Editable":return g(Im,{...t});case"Expand":return g(Cm,{...t});case"ExternalLink":return g(Pm,{...t});case"ExternalLink2":return g(wm,{...t});case"Eye":return g(Mm,{...t});case"EyeHidden":return g(Tm,{...t});case"EyeHidden2":return g(Nm,{...t});case"FaceAngry":return g(Bm,{...t});case"FaceLaugh":return g(Rm,{...t});case"FaceSmile":return g(Em,{...t});case"File":return g(en,{...t});case"FileCheck":return g(Dm,{...t});case"FileCsv":return g(xa,{...t});case"FileDownload":return g(Fm,{...t});case"FileJson":return g(Pa,{...t});case"FileList":return g(Am,{...t});case"FileMusic":return g(st,{...t});case"FilePdf":return g(tn,{...t});case"FileSpreadsheet":return g(wa,{...t});case"FileText":return g(Jt,{...t});case"FileUpload":return g(Vm,{...t});case"FileXls":return g(ka,{...t});case"FileXlsx":return g(Ta,{...t});case"FileZip":return g(kt,{...t});case"Filter":return g(zm,{...t});case"Filter2":return g(Na,{...t});case"Flag":return g(Um,{...t});case"Flag2":return g(Gm,{...t});case"FlagFill":return g($m,{...t});case"Focus":return g(Wm,{...t});case"Folder":return g(qm,{...t});case"FolderExport":return g(Km,{...t});case"FolderImport":return g(Xm,{...t});case"GraduationCap":return g(Ym,{...t});case"GripVertical":return g(Qm,{...t});case"Hand":return g(Zm,{...t});case"HandShield":return g(Jm,{...t});case"Hash":return g(jm,{...t});case"HeadsetMic":return g(eu,{...t});case"Heart":return g(tu,{...t});case"HeartFill":return g(ou,{...t});case"House":return g(ru,{...t});case"HouseLine":return g(Ra,{...t});case"Image":return g(We,{...t});case"Image2":return g(au,{...t});case"ImageCheck":return g(lu,{...t});case"ImageOff":return g(cu,{...t});case"Import":return g(iu,{...t});case"Inbox":return g(su,{...t});case"InfoCircle":return g(du,{...t});case"InfoHexagon":return g(uu,{...t});case"Italic":return g(hu,{...t});case"LayersMultiple":return g(bu,{...t});case"LayersSingle":return g(yu,{...t});case"Layout":return g(vu,{...t});case"Layout2":return g(Cu,{...t});case"LayoutColumns":return g(xu,{...t});case"LayoutCustom":return g(Pu,{...t});case"LayoutStuffed":return g(wu,{...t});case"LayoutTile":return g(Mu,{...t});case"LifeBuoy":return g(ku,{...t});case"Lightbulb":return g(Nu,{...t});case"Lightning":return g(Bu,{...t});case"LightningFast":return g(Ru,{...t});case"LineChartBar":return g(Lu,{...t});case"LineChartBreakoutSquare":return g(Du,{...t});case"LineChart":return g(Eu,{...t});case"LineChartUp":return g(Au,{...t});case"Lines":return g(Ou,{...t});case"LinesCheck":return g(_u,{...t});case"LinesPlay":return g(Vu,{...t});case"Link":return g(Hu,{...t});case"Link2":return g(Uu,{...t});case"LinkOff":return g(Gu,{...t});case"ListBullet":return g($u,{...t});case"ListOrder":return g(Wu,{...t});case"Lock":return g(Ku,{...t});case"LockFill":return g(Xu,{...t});case"LogIn":return g(Qu,{...t});case"LogOut":return g(Ju,{...t});case"LogOut2":return g(ef,{...t});case"MagicWand":return g(tf,{...t});case"Mail":return g(of,{...t});case"MailOpen":return g(nf,{...t});case"MapPin":return g(rf,{...t});case"Maximize":return g(Oa,{...t});case"Maximize2":return g(af,{...t});case"MessageCircle":return g(lf,{...t});case"MessageSquare":return g(on,{...t});case"MessageSquare2":return g(sf,{...t});case"MessageXSquare":return g(pf,{...t});case"Microphone":return g(Va,{...t});case"Minimize":return g(za,{...t});case"Minimize2":return g(df,{...t});case"MinusCircle":return g(mf,{...t});case"Mobile":return g(ff,{...t});case"Monitor":return g(hf,{...t});case"Monitor2":return g(gf,{...t});case"Moon":return g(bf,{...t});case"MoonCircle":return g(yf,{...t});case"Movie":return g(yt,{...t});case"NavigationPointer":return g(vf,{...t});case"NotificationBox":return g(If,{...t});case"Package":return g(Cf,{...t});case"Palette":return g(xf,{...t});case"PasscodeLock":return g(Pf,{...t});case"Pause":return g(vt,{...t});case"PauseCircle":return g(wf,{...t});case"PCSetup":return g(kf,{...t});case"Pen":return g(Nf,{...t});case"PercentageCircle":return g(Bf,{...t});case"Perspective":return g(Rf,{...t});case"PhoneCall":return g(Lf,{...t});case"PictureInPicture":return g($a,{...t});case"Pin":return g(Wa,{...t});case"Play":return g(It,{...t});case"PlayCircle":return g(Ff,{...t});case"Plus":return g(nn,{...t});case"PlusCircle":return g(So,{...t});case"Printer":return g(_f,{...t});case"Pulse":return g(Vf,{...t});case"QuestionCircle":return g(qa,{...t});case"Quote":return g(Hf,{...t});case"RadioButton":return g(Uf,{...t});case"RadioButtonFill":return g(Gf,{...t});case"Receipt":return g($f,{...t});case"ReceiptCheck":return g(Wf,{...t});case"Redo":return g(qf,{...t});case"Refresh":return g(Ka,{...t});case"Refresh2":return g(Kf,{...t});case"Refresh3":return g(Xf,{...t});case"Repeat":return g(Yf,{...t});case"Replace":return g(Qf,{...t});case"Replay":return g(Xa,{...t});case"Restore":return g(Jf,{...t});case"Rocket":return g(eh,{...t});case"RoundChart":return g(th,{...t});case"RoundChart2":return g(oh,{...t});case"Route":return g(rh,{...t});case"Save":return g(lh,{...t});case"ScanDots":return g(ch,{...t});case"Scissors":return g(Ya,{...t});case"Search":return g(Ct,{...t});case"Send":return g(ih,{...t});case"Server":return g(sh,{...t});case"Settings":return g(Qa,{...t});case"Settings2":return g(ph,{...t});case"Share":return g(dh,{...t});case"ShieldLightning":return g(mh,{...t});case"ShieldPlus":return g(fh,{...t});case"ShieldRemove":return g(gh,{...t});case"ShoppingBag":return g(bh,{...t});case"ShoppingCart":return g(yh,{...t});case"Shrink":return g(vh,{...t});case"Shuffle":return g(Ih,{...t});case"SkipForward":return g(Ch,{...t});case"SlashCircle":return g(xh,{...t});case"SlashOctagon":return g(Ph,{...t});case"SocialAndroid":return g(Sh,{...t});case"SocialApple":return g(wh,{...t});case"SocialGithub":return g(Mh,{...t});case"SocialGlobe":return g(kh,{...t});case"SocialGoogle":return g(Th,{...t});case"SocialInstagram":return g(Bh,{...t});case"SocialLinkedin":return g(Rh,{...t});case"SocialMastercard":return g(Lh,{...t});case"SocialReact":return g(Dh,{...t});case"SocialVisa":return g(Fh,{...t});case"SocialX":return g(Ah,{...t});case"Speedometer":return g(tl,{...t});case"Stairs":return g(Oh,{...t});case"Star":return g(ol,{...t});case"StarFill":return g(_h,{...t});case"StarHalf":return g(Vh,{...t});case"Stars":return g(zh,{...t});case"Stop":return g(nl,{...t});case"Strikethrough":return g(Hh,{...t});case"Sun":return g(Uh,{...t});case"Swap":return g(Gh,{...t});case"SwitchHorizontal":return g($h,{...t});case"Table":return g(qh,{...t});case"Tag":return g(rl,{...t});case"Target":return g(Kh,{...t});case"Target2":return g(Yh,{...t});case"TextFormat":return g(Zh,{...t});case"TextFormat2":return g(Jh,{...t});case"TextHighlight":return g(jh,{...t});case"ThumbsDown":return g(e0,{...t});case"ThumbsUp":return g(t0,{...t});case"ThumbsUpFill":return g(o0,{...t});case"Toggle":return g(n0,{...t});case"Translate":return g(r0,{...t});case"Trash":return g(pt,{...t});case"Trending":return g(a0,{...t});case"Underline":return g(l0,{...t});case"Undo":return g(c0,{...t});case"Unlock":return g(s0,{...t});case"UploadCloud":return g(ln,{...t});case"User":return g(ll,{...t});case"UserCheck":return g(m0,{...t});case"UserDollar":return g(u0,{...t});case"UserEdit":return g(h0,{...t});case"UserPlus":return g(g0,{...t});case"UserRight":return g(b0,{...t});case"UserSquare":return g(I0,{...t});case"Users":return g(y0,{...t});case"UsersUp":return g(C0,{...t});case"UserVoice":return g(hp,{...t});case"Video":return g(x0,{...t});case"VideoChat":return g(S0,{...t});case"Volume":return g(il,{...t});case"VolumeDown":return g(sl,{...t});case"VolumeMute":return g(pl,{...t});case"Wrench":return g(M0,{...t});case"X":return g(He,{...t});case"XCircle":return g(k0,{...t});case"XCircleFill":return g(T0,{...t});case"XSquare":return g(N0,{...t});case"ZoomIn":return g(B0,{...t});case"ZoomOut":return g(E0,{...t});default:return null}}var Zv=en,Jv={png:We,jpg:We,jpeg:We,gif:We,bmp:We,webp:We,svg:We,avif:We,heic:We,ico:We,tif:We,tiff:We,mp4:yt,mov:yt,webm:yt,avi:yt,mkv:yt,m4v:yt,ogv:yt,mp3:st,wav:st,ogg:st,oga:st,m4a:st,aac:st,flac:st,weba:st,pdf:tn,doc:Jt,docx:Jt,txt:Jt,rtf:Jt,odt:Jt,json:Pa,csv:xa,xls:ka,xlsx:Ta,ods:wa,zip:kt,rar:kt,"7z":kt,tar:kt,gz:kt,tgz:kt};var L0=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&Jv[t]||Zv};import{cn as D0,ColorHelpers as c3}from"@cleen/ui-core";import{forwardRef as i3}from"react";import{Fragment as p3,jsx as dl,jsxs as d3}from"react/jsx-runtime";var s3=i3(function({iconName:t,iconSrc:n,icon:o,iconSize:a=20,header:r,color:l,children:i,classNames:s,styles:d,...p},f){let m=c3.getComputedColor(l);return dl(Pe,{ref:f,classNames:{...s,header:{...s?.header,title:D0("cleen-flex cleen-gap-4",s?.header?.title)}},header:{...r,title:d3(p3,{children:[dl("div",{className:D0("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:ra(m,.85),color:m,borderColor:"transparent"},...d?.iconHolder},children:o||(t?dl(Ee,{name:t,className:"cleen-text-foreground",style:{width:a,height:a,...m&&{color:m}}}):n?dl("img",{src:n,alt:"Icon",className:"cleen-text-foreground",style:{width:a,height:a,...m&&{color:m}}}):null)}),r?.title]})},color:l,...p,children:i&&dl("div",{className:D0("cleen-flex-1",s?.content),style:d?.content,children:i})})});import{cn as br}from"@cleen/ui-core";import{forwardRef as m3,useMemo as u3}from"react";import{jsx as ml}from"react/jsx-runtime";var f3=m3(function({media:t,header:n,color:o,children:a,classNames:r,styles:l,...i},s){let d=u3(()=>{switch(t?.type){case"image":return ml("img",{...t,alt:t.alt??"Card media",className:br("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:l?.media?.content});case"video":return ml("video",{playsInline:!0,controls:!0,...t,className:br("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:l?.media?.content});case"iframe":return ml("iframe",{...t,title:t.title??"Card iframe",className:br("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:l?.media?.content});default:return null}},[t,r?.media,l?.media]);return ml(Pe,{ref:s,color:o,classNames:{...r,container:br("cleen-pt-0",r?.container),header:{...r?.header,content:br("cleen-p-0",r?.header?.content)}},header:{...n,...d&&{content:ml("div",{className:br("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",r?.media?.container),style:l?.media?.container,children:d})}},...i,children:a})});import{cn as ul}from"@cleen/ui-core";import{jsx as hi,jsxs as h3}from"react/jsx-runtime";var ie=({className:e,classNames:t,style:n,styles:o,infoMessage:a,errorMessage:r,subtitle:l,...i})=>hi("div",{className:ul("cleen",e),style:n,children:h3("div",{className:ul(t?.container),style:o?.container,...i,children:[a&&hi("div",{className:ul("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:o?.infoMessage,role:"note",children:a}),r&&hi("div",{className:ul("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:o?.errorMessage,role:"alert",children:r}),l&&hi("div",{className:ul("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:o?.subtitle,children:l})]})});import{cn as fl}from"@cleen/ui-core";import{jsx as hl,jsxs as g3}from"react/jsx-runtime";var de=({required:e=!1,tooltip:t,children:n,className:o,classNames:a,style:r,styles:l,...i})=>hl("div",{className:fl("cleen",o),style:r,children:g3("label",{...i,className:fl("cleen-w-full cleen-flex cleen-gap-1 cleen-items-center cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-leading-6",a?.container),style:l?.container,children:[hl("div",{className:fl({"cleen-flex-1":!e&&!t},a?.label),style:l?.label,children:n}),e&&hl("span",{className:fl("cleen-text-primary",a?.required),style:l?.required,children:"*"}),t&&hl(Ne,{hasArrow:!0,placement:"top",label:t,color:"rgb(var(--cleen-neutral-600))",...a?.tooltip,style:l?.tooltip?.style,styles:{...l?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...l?.tooltip?.styles?.labelContainer}},children:hl(qa,{className:fl("cleen-size-3 cleen-text-neutral-500 hover:cleen-text-neutral-900 cleen-transition-colors cleen-cursor-help",a?.questionIcon),style:l?.questionIcon})})]})});import{cn as eo}from"@cleen/ui-core";import{forwardRef as b3,useEffect as y3,useId as v3,useMemo as I3,useState as jv}from"react";import{jsx as ko,jsxs as gi}from"react/jsx-runtime";var Ie=b3(function({name:t,id:n,type:o,label:a,labelTooltip:r,defaultValue:l,value:i,files:s,disabled:d,required:p,className:f,classNames:m,style:b,styles:y,autoComplete:u="off",isFocusedBorder:v,maxLength:C,minLength:S,maxLengthLabelThreshold:I=.5,uploadLabel:x="Choose a file",leftIcon:w,rightIcon:R,topRightIcon:T,inputOverlay:N,infoLabels:D,maxLengthLabel:M,minLengthLabel:P,onChange:k,...E},L){let F=i!==void 0||s!==void 0,[O,B]=jv(l??""),[A,V]=jv(null),U=F?i:O,_=F?s:A;y3(()=>{F||B(i??l??"")},[i,l,F]);let W=$=>{let Y=$.target.value;if(o==="file"&&$.target.files){F||V($.target.files),k?.($);return}(!C||Y.length<=C)&&(F||B(Y),k?.($))},j=I3(()=>S&&P&&(U?.toString()?.length??0)<S?P(S-(U?.toString()?.length??0)):!C||!M||(U?.toString()?.length??0)/C<I?D?.subtitle:M?.(C-(U?.toString()?.length??0)),[U,C,I,D?.subtitle]),G=v3(),H=!!(D?.errorMessage||D?.infoMessage||j),X=H?`${G}-info`:void 0;return ko("div",{className:eo("cleen",f),style:b,children:gi("div",{className:eo("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:[(a||T)&&gi("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[ko(de,{htmlFor:n||t,required:p,tooltip:r,className:eo("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...y?.label,children:a}),T]}),gi("label",{className:eo("cleen-relative cleen-flex cleen-items-stretch cleen-bg-background cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-all cleen-duration-200 cleen-overflow-hidden focus-within:cleen-ring-4 focus-within:cleen-ring-primary-100 focus-within:cleen-ring-offset-0",{"has-[:focus]:cleen-border has-[:focus]:cleen-border-primary/30":v},d&&"cleen-bg-muted",{"cleen-cursor-pointer":o==="file"&&!d},D?.errorMessage?["cleen-border-error/70 focus-within:cleen-ring-error-bg",!d&&"hover:cleen-border-error"]:["cleen-border-border focus-within:cleen-border-primary-400",!d&&"hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary"],m?.inputContainer),style:y?.inputContainer,children:[w&&ko("div",{className:eo("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",d?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.leftIconContainer),style:y?.leftIconContainer,children:w}),gi("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[ko("input",{id:n||t,name:t,type:o,disabled:d,maxLength:C,autoComplete:u,value:U,className:eo("cleen-block cleen-border-0 cleen-bg-transparent cleen-rounded-md cleen-w-full cleen-text-base","cleen-py-2 cleen-pr-2 placeholder:cleen-text-neutral-400 sm:cleen-text-sm focus:cleen-ring-transparent focus:cleen-outline-none cleen-my-auto",w?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":w,"cleen-rounded-r-none":R,"cleen-hidden":o==="file"},d?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:y?.input,onChange:W,required:p,"aria-invalid":D?.errorMessage?!0:void 0,"aria-describedby":X,ref:L,...E}),N&&ko("div",{className:eo("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",w?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",m?.inputOverlay),style:y?.inputOverlay,children:N}),o==="file"&&ko("p",{className:eo("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",d?"cleen-text-neutral-400":"cleen-text-muted-foreground",_&&_.length>0&&"cleen-text-foreground"),children:_&&_.length>0?Array.from(_).map($=>$.name).join(", "):x})]}),R&&ko("div",{className:eo("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",d?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.rightIconContainer),style:y?.rightIconContainer,children:R})]}),H&&ko(ie,{id:X,...D,subtitle:j})]})})});import{cn as gl,useOutsideClick as C3}from"@cleen/ui-core";import{forwardRef as x3,useEffect as e2,useImperativeHandle as P3,useMemo as S3,useRef as w3,useState as bi}from"react";import{jsx as bl,jsxs as M3}from"react/jsx-runtime";var F0=x3(function({value:t,defaultValue:n,defaultIsEditing:o=!1,isEditing:a,onIsEditingChange:r,placeholder:l,placeholderText:i,canEdit:s=!0,onSave:d,onCancel:p,onChange:f,inputProps:m,blurOnOutsideClick:b=!0,saveOnBlur:y=!0,isLoading:u,customLoader:v=bl(ce,{}),selectAllOnEdit:C=!1,renderText:S,className:I,classNames:x,style:w,styles:R,...T},N){let D=t!==void 0,[M,P]=bi(n??""),k=D?t??"":M,[E,L]=bi(!1),F=u??E,O=S3(()=>typeof S=="function"?S(k):S||k||i||l,[k,S,l,i]),[B,A]=bi(o),V=a!==void 0,U=V?a:B,[_,W]=bi(k),j=w3(null);P3(N,()=>({...j.current,save:H,cancel:G})),e2(()=>{D||P(n??"")},[n,D]),e2(()=>{U||W(k)},[k,U]);let G=async()=>{V||A(!1),r?.(!1),W(k),await p?.()},H=async()=>{if(!F){if(k===_){await p?.(),V||A(!1),r?.(!1);return}L(!0),D||P(_);try{await d?.(_),V||A(!1),r?.(!1)}finally{L(!1)}}},X=async $=>{$.key==="Enter"&&($.preventDefault(),await H()),$.key==="Escape"&&($.stopPropagation(),$.preventDefault(),await G()),m?.onKeyDown?.($)};return C3({refs:[j],enabled:b&&U,handler:async()=>{y?await H():await G()}}),bl("div",{className:gl("cleen",I),style:w,ref:j,...T,children:U?M3("div",{className:gl("cleen-relative cleen-h-full",x?.container),style:R?.container,children:[bl(Ie,{value:_,onChange:$=>{W($.target.value),f?.($.target.value)},autoFocus:!0,placeholder:l,className:x?.input?.className,classNames:{...x?.input?.classNames,inputContainer:gl("cleen-border-primary hover:cleen-border-primary/60",x?.input?.classNames?.inputContainer)},...R?.input,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:F||m?.disabled,onKeyDown:X}),F&&bl("div",{className:gl("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",x?.loaderContainer),style:R?.loaderContainer,children:v})]}):bl("div",{onClick:()=>{s&&(V||A(!0),r?.(!0))},className:gl("cleen-min-h-6 cleen-text-foreground",s&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!k&&"cleen-text-muted-foreground",x?.preview),style:R?.preview,children:O})})});import{cn as yr}from"@cleen/ui-core";import{forwardRef as k3,useEffect as t2,useId as T3,useMemo as N3,useRef as B3,useState as R3}from"react";import{jsx as cn,jsxs as A0}from"react/jsx-runtime";var yl=k3(function({name:t,id:n,value:o,defaultValue:a,label:r,labelTooltip:l,disabled:i,required:s,infoLabels:d,topRightElement:p,labelRightElement:f,textareaOverlay:m,onChange:b,minHeight:y,maxHeight:u=200,autoResize:v=!0,maxLength:C,minLength:S,maxLengthLabelThreshold:I=.5,maxLengthLabel:x,minLengthLabel:w,className:R,classNames:T,style:N,styles:D,...M},P){let k=o!==void 0,[E,L]=R3(typeof a=="string"?a:""),F=B3(null),O=P??F,B=k?o:E;t2(()=>{k||L(o??(typeof a=="string"?a:""))},[o,a,k]);let A=$=>{$.style.height="auto";let Y=Math.min($.scrollHeight,u);$.style.height=`${Y}px`},V=$=>{A($.target)};t2(()=>{!v||!F.current||A(F.current)},[v,B,u]);let U=$=>{$.preventDefault()},_=$=>{$.preventDefault();let Y=$.dataTransfer?.getData("text/plain");k?b?.(`${o??""}${Y}`):(L(ae=>`${ae}${Y}`),b?.(`${E}${Y}`))},W=$=>{let Y=$.target.value;(!C||Y.length<=C)&&(k||L(Y),b?.(Y),v&&V($))},j=N3(()=>S&&w&&(B?.length??0)<S?w(S-(B?.length??0)):!C||!x||(B?.toString()?.length??0)/C<I?d?.subtitle:x?.(C-(B?.toString()?.length??0)),[B,C,I,d?.subtitle]),G=T3(),H=!!(d?.errorMessage||d?.infoMessage||j),X=H?`${G}-info`:void 0;return cn("div",{className:yr("cleen",R),style:N,children:A0("div",{className:yr("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",T?.container),style:D?.container,children:[(r||f)&&A0("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[r&&cn(de,{htmlFor:n||t,required:s,tooltip:l,className:yr("cleen-w-full",T?.label?.className),classNames:T?.label?.classNames,...D?.label,children:r}),f&&cn("div",{className:"cleen-ml-auto",children:f})]}),A0("div",{className:yr("cleen-relative cleen-flex cleen-items-center cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-colors cleen-duration-200",d?.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:D?.textareaContainer,children:[p&&cn("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:p}),m&&cn("div",{className:yr("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}),cn("textarea",{id:n||t,name:t,ref:O,disabled:i,value:B,minLength:S,maxLength:C,"aria-invalid":d?.errorMessage?!0:void 0,"aria-describedby":X,className:yr("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`},...D?.textarea},onFocus:$=>$.currentTarget.setSelectionRange($.currentTarget.value.length,$.currentTarget.value.length),onDragOver:U,onDrop:_,...M,onChange:W})]}),H&&cn(ie,{id:X,...d,subtitle:j})]})})});import{cn as vl,useOutsideClick as E3}from"@cleen/ui-core";import{forwardRef as L3,useEffect as o2,useImperativeHandle as D3,useMemo as F3,useRef as A3,useState as yi}from"react";import{jsx as Il,jsxs as O3}from"react/jsx-runtime";var O0=L3(function({value:t,defaultValue:n,defaultIsEditing:o=!1,isEditing:a,onIsEditingChange:r,placeholder:l,placeholderText:i,canEdit:s=!0,onSave:d,onCancel:p,onChange:f,textAreaProps:m,blurOnOutsideClick:b=!0,saveOnBlur:y=!0,isLoading:u,customLoader:v=Il(ce,{size:"md"}),selectAllOnEdit:C=!1,renderText:S,className:I,classNames:x,style:w,styles:R,...T},N){let D=t!==void 0,[M,P]=yi(n??""),k=D?t??"":M,[E,L]=yi(!1),F=u??E,O=F3(()=>typeof S=="function"?S(k):S||k||i||l,[k,S,l,i]),[B,A]=yi(o),V=a!==void 0,U=V?a:B,[_,W]=yi(k),j=A3(null);D3(N,()=>({...j.current,save:H,cancel:G})),o2(()=>{D||P(n??"")},[n,D]),o2(()=>{U||W(k)},[k,U]);let G=async()=>{V||A(!1),r?.(!1),W(k),await p?.()},H=async()=>{if(!F){if(k===_){await p?.(),V||A(!1),r?.(!1);return}L(!0),D||P(_);try{await d?.(_),V||A(!1),r?.(!1)}finally{L(!1)}}},X=async $=>{$.key==="Escape"&&($.preventDefault(),$.stopPropagation(),await G()),$.key==="Enter"&&($.metaKey||$.ctrlKey)&&($.preventDefault(),await H()),m?.onKeyDown?.($)};return E3({refs:[j],enabled:b&&U,handler:async()=>{y?await H():await G()}}),Il("div",{className:vl("cleen",I),style:w,ref:j,...T,children:U?O3("div",{className:vl("cleen-relative cleen-h-full",x?.container),style:R?.container,children:[Il(yl,{value:_,onChange:$=>{W($),f?.($)},autoFocus:!0,placeholder:l,className:x?.textArea?.className,classNames:{...x?.textArea?.classNames,textareaContainer:vl("cleen-border-primary hover:cleen-border-primary/60",x?.textArea?.classNames?.textareaContainer)},...R?.textArea,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:F||m?.disabled,onKeyDown:X}),F&&Il("div",{className:vl("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",x?.loaderContainer),style:R?.loaderContainer,children:v})]}):Il("div",{onClick:()=>{s&&(V||A(!0),r?.(!0))},className:vl("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",!k&&"cleen-text-muted-foreground",x?.preview),style:R?.preview,children:O})})});import"@cleen/ui-core";import{forwardRef as _3}from"react";import{Fragment as z3,jsx as _0,jsxs as H3}from"react/jsx-runtime";var V3=_3(function({header:t,color:n,children:o,description:a,onSave:r,isDescriptionHidden:l=!1,titleProps:i,descriptionProps:s,classNames:d,styles:p,...f},m){let b=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return _0(Pe,{ref:m,color:n,header:{...t,title:_0(F0,{value:b??"",onSave:async y=>{await r?.("title",y)},...d?.titleTextInput,...p?.titleTextInput,...i})},classNames:d,styles:p,...f,children:(!l||o)&&H3(z3,{children:[_0(O0,{value:a??"",onSave:async y=>{await r?.("description",y)},...s,textAreaProps:s?.textAreaProps,...d?.descriptionTextInput,...p?.descriptionTextInput}),o]})})});import{cn as Cl}from"@cleen/ui-core";import{forwardRef as U3}from"react";import{jsx as vi}from"react/jsx-runtime";var G3=U3(function({type:t="button",label:n,onClick:o,containerRef:a,className:r,classNames:l,style:i,styles:s,disabled:d=!1,loaderOptions:p,isLoading:f=!1,variant:m="primary",children:b,...y},u){return vi("div",{className:Cl("cleen",r),style:i,ref:a,children:vi("button",{type:t,ref:u,disabled:f||d,onClick:o,className:Cl("cleen-size-full",l?.container),style:s?.container,...y,children:vi(Pe,{p:0,className:Cl("cleen-size-full cleen-group",l?.card?.className),classNames:{...l?.card?.classNames,container:Cl("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",Ib[m],l?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":d||f}),childrenContainer:Cl("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",l?.card?.classNames?.childrenContainer)},"aria-disabled":d||f,...s?.card,children:f?vi(ce,{size:"lg",...p,color:p?.color||Cb[m],...l?.loader,...s?.loader}):n||b})})})});import{cn as xl,ColorHelpers as n2,formatAudioTime as r2}from"@cleen/ui-core";import{useWavesurfer as $3}from"@wavesurfer/react";import{forwardRef as W3,useCallback as q3,useRef as K3}from"react";import{jsx as Pl,jsxs as a2}from"react/jsx-runtime";var X3={waveColor:n2.getComputedColor("var(--cleen-neutral-200)"),progressColor:n2.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},Y3=W3(function({url:t,options:n,className:o,classNames:a,style:r,styles:l,...i},s){let d=K3(null),{wavesurfer:p,isPlaying:f,isReady:m,currentTime:b}=$3({...X3,...n,container:d,url:t}),y=m?p?.getDuration()??0:0,u=q3(()=>{p?.playPause()},[p]);return Pl("div",{ref:s,className:xl("cleen",o),style:r,...i,children:a2("div",{className:xl("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",a?.container),style:l?.container,children:[Pl(te,{type:"button",onClick:u,disabled:!m,"aria-label":f?"Pause":"Play",className:a?.playButton?.className,classNames:{...a?.playButton?.classNames,container:xl("cleen-p-0 !cleen-size-9 cleen-rounded-full",a?.playButton?.classNames?.container)},...l?.playButton,children:f?Pl(vt,{className:"cleen-fill-current"}):Pl(It,{className:"cleen-fill-current"})}),Pl("div",{ref:d,className:xl("cleen-flex-1 cleen-min-w-0",a?.waveform),style:l?.waveform}),a2("span",{className:xl("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",a?.timestamp),style:l?.timestamp,children:[r2(b),"\xA0/\xA0",r2(y)]})]})})});import{ColorHelpers as Q3}from"@cleen/ui-core";var l2=Q3.getComputedColor("var(--cleen-primary)"),c2="rgba(var(--cleen-primary), 0.15)",i2={waveColor:l2,progressColor:l2,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var s2={startRecording:"Click to start recording"};import{cn as rt,formatAudioTime as ki,trimBlob as J3}from"@cleen/ui-core";import{useWavesurfer as j3}from"@wavesurfer/react";import{forwardRef as eT,useCallback as Ir,useEffect as $0,useMemo as tT,useRef as m2,useState as Ti}from"react";function V0(e,t,n,o){return new(n||(n=Promise))((function(a,r){function l(d){try{s(o.next(d))}catch(p){r(p)}}function i(d){try{s(o.throw(d))}catch(p){r(p)}}function s(d){var p;d.done?a(d.value):(p=d.value,p instanceof n?p:new n((function(f){f(p)}))).then(l,i)}s((o=o.apply(e,t||[])).next())}))}var Ii=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let a=(...r)=>{this.un(t,a),n(...r)};return this.listeners[t].add(a),()=>this.un(t,a)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},H0=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}},U0=class extends Ii{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()}},z0=100,Z3=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],Ci=class e extends H0{constructor(t){var n,o,a,r,l,i;super(Object.assign(Object.assign({},t),{audioBitsPerSecond:(n=t.audioBitsPerSecond)!==null&&n!==void 0?n:128e3,scrollingWaveform:(o=t.scrollingWaveform)!==null&&o!==void 0&&o,scrollingWaveformWindow:(a=t.scrollingWaveformWindow)!==null&&a!==void 0?a:5,continuousWaveform:(r=t.continuousWaveform)!==null&&r!==void 0&&r,renderRecordedAudio:(l=t.renderRecordedAudio)===null||l===void 0||l,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 U0,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 n;let o=new AudioContext,a=o.createMediaStreamSource(t),r=o.createAnalyser();a.connect(r),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(r.fftSize=32);let l=r.frequencyBinCount,i=new Float32Array(l),s=0;this.wavesurfer&&((n=this.originalOptions)!==null&&n!==void 0||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let d=setInterval((()=>{var p,f,m,b;if(!this.isWaveformPaused){if(r.getFloatTimeDomainData(i),this.options.scrollingWaveform){let y=Math.floor((this.options.scrollingWaveformWindow||0)*z0),u=0;for(let C=0;C<l;C++){let S=Math.abs(i[C]);S>u&&(u=S)}this.dataWindow||(this.dataWindow=new Float32Array(y));let v=new Float32Array(y);if(this.dataWindow&&this.dataWindow.length>0){let C=y-1,S=this.dataWindow.slice(-C);v.set(S,0)}v[y-1]=u,this.dataWindow=v}else if(this.options.continuousWaveform){if(!this.dataWindow){let u=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*z0):((f=(p=this.wavesurfer)===null||p===void 0?void 0:p.getWidth())!==null&&f!==void 0?f:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(u)}let y=0;for(let u=0;u<l;u++){let v=Math.abs(i[u]);v>y&&(y=v)}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=((b=(m=this.dataWindow)===null||m===void 0?void 0:m.length)!==null&&b!==void 0?b:0)/z0;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(d),a?.disconnect(),o?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return V0(this,void 0,void 0,(function*(){let n;this.micStream&&this.stopMic();try{n=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(a){throw new Error("Error accessing the microphone: "+a.message)}let o=this.renderMicStream(n);return this.micStream=o,this.unsubscribeDestroy=this.once("destroy",o.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",o.onEnd),this.stream=n,n}))}stopMic(){var t,n,o;(t=this.micStream)===null||t===void 0||t.onDestroy(),(n=this.unsubscribeDestroy)===null||n===void 0||n.call(this),(o=this.unsubscribeRecordEnd)===null||o===void 0||o.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((a=>a.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(t){return V0(this,void 0,void 0,(function*(){let n=this.stream||(yield this.startMic(t));this.dataWindow=null;let o=this.mediaRecorder||new MediaRecorder(n,{mimeType:this.options.mimeType||Z3.find((l=>MediaRecorder.isTypeSupported(l))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=o,this.stopRecording();let a=[];o.ondataavailable=l=>{l.data.size>0&&a.push(l.data),this.emit("record-data-available",l.data)};let r=l=>{var i;let s=new Blob(a,{type:o.mimeType});this.emit(l,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))};o.onpause=()=>r("record-pause"),o.onstop=()=>r("record-end"),o.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit("record-start")}))}getDuration(){return this.duration}isRecording(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="recording"}isPaused(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="paused"}isActive(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)!=="inactive"}stopRecording(){var t;this.isActive()&&((t=this.mediaRecorder)===null||t===void 0||t.stop(),this.timer.stop())}pauseRecording(){var t,n;this.isRecording()&&(this.isWaveformPaused=!0,(t=this.mediaRecorder)===null||t===void 0||t.requestData(),(n=this.mediaRecorder)===null||n===void 0||n.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var t;this.isPaused()&&(this.isWaveformPaused=!1,(t=this.mediaRecorder)===null||t===void 0||t.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit("record-resume"))}static getAvailableAudioDevices(){return V0(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((t=>t.filter((n=>n.kind==="audioinput"))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}};var Si=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let a=(...r)=>{this.un(t,a),n(...r)};return this.listeners[t].add(a),()=>this.un(t,a)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},G0=class extends Si{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 p2(e,t){let n=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[o,a]of Object.entries(t))if(o==="children"&&a)for(let[r,l]of Object.entries(a))l instanceof Node?n.appendChild(l):typeof l=="string"?n.appendChild(document.createTextNode(l)):n.appendChild(p2(r,l));else o==="style"?Object.assign(n.style,a):o==="textContent"?n.textContent=a:n.setAttribute(o,a.toString());return n}function Sl(e,t,n){let o=p2(e,t||{});return n?.appendChild(o),o}function d2(e){let t=e,n=new Set;return{get value(){return t},set(o){Object.is(t,o)||(t=o,n.forEach((a=>a(t))))},update(o){this.set(o(t))},subscribe:o=>(n.add(o),()=>n.delete(o))}}function xi(e,t){let n,o=()=>{n&&(n(),n=void 0),n=e()},a=t.map((r=>r.subscribe(o)));return o(),()=>{n&&(n(),n=void 0),a.forEach((r=>r()))}}function vr(e,t){let n=d2(null),o=a=>{n.set(a)};return e.addEventListener(t,o),n._cleanup=()=>{e.removeEventListener(t,o)},n}function sn(e){let t=e._cleanup;typeof t=="function"&&t()}function Pi(e,t={}){let{threshold:n=3,mouseButton:o=0,touchDelay:a=100}=t,r=d2(null),l=new Map,i=matchMedia("(pointer: coarse)").matches,s=()=>{},d=p=>{if(p.button!==o||(l.set(p.pointerId,p),l.size>1))return;let f=p.clientX,m=p.clientY,b=!1,y=Date.now(),u=e.getBoundingClientRect(),{left:v,top:C}=u,S=T=>{if(T.defaultPrevented||l.size>1||i&&Date.now()-y<a)return;let N=T.clientX,D=T.clientY,M=N-f,P=D-m;(b||Math.abs(M)>n||Math.abs(P)>n)&&(T.preventDefault(),T.stopPropagation(),b||(r.set({type:"start",x:f-v,y:m-C}),b=!0),r.set({type:"move",x:N-v,y:D-C,deltaX:M,deltaY:P}),f=N,m=D)},I=T=>{if(l.delete(T.pointerId),b){let N=T.clientX,D=T.clientY;r.set({type:"end",x:N-v,y:D-C})}s()},x=T=>{l.delete(T.pointerId),T.relatedTarget&&T.relatedTarget!==document.documentElement||I(T)},w=T=>{b&&(T.stopPropagation(),T.preventDefault())},R=T=>{T.defaultPrevented||l.size>1||b&&T.preventDefault()};document.addEventListener("pointermove",S),document.addEventListener("pointerup",I),document.addEventListener("pointerout",x),document.addEventListener("pointercancel",x),document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("click",w,{capture:!0}),s=()=>{document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",x),document.removeEventListener("pointercancel",x),document.removeEventListener("touchmove",R),setTimeout((()=>{document.removeEventListener("click",w,{capture:!0})}),10)}};return e.addEventListener("pointerdown",d),{signal:r,cleanup:()=>{s(),e.removeEventListener("pointerdown",d),l.clear(),sn(r)}}}var wi=class extends Si{constructor(t,n,o=0){var a,r,l,i,s,d,p,f,m,b;super(),this.totalDuration=n,this.numberOfChannels=o,this.element=null,this.minLength=0,this.maxLength=1/0,this.contentEditable=!1,this.subscriptions=[],this.updatingSide=void 0,this.isRemoved=!1,this.subscriptions=[],this.id=t.id||`region-${Math.random().toString(32).slice(2)}`,this.start=this.clampPosition(t.start),this.end=this.clampPosition((a=t.end)!==null&&a!==void 0?a:t.start),this.drag=(r=t.drag)===null||r===void 0||r,this.resize=(l=t.resize)===null||l===void 0||l,this.resizeStart=(i=t.resizeStart)===null||i===void 0||i,this.resizeEnd=(s=t.resizeEnd)===null||s===void 0||s,this.color=(d=t.color)!==null&&d!==void 0?d:"rgba(0, 0, 0, 0.1)",this.minLength=(p=t.minLength)!==null&&p!==void 0?p:this.minLength,this.maxLength=(f=t.maxLength)!==null&&f!==void 0?f:this.maxLength,this.channelIdx=(m=t.channelIdx)!==null&&m!==void 0?m:-1,this.contentEditable=(b=t.contentEditable)!==null&&b!==void 0?b:this.contentEditable,this.element=this.initElement(),this.setContent(t.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(t){return Math.max(0,Math.min(this.totalDuration,t))}setPart(){var t;let n=this.start===this.end;(t=this.element)===null||t===void 0||t.setAttribute("part",`${n?"marker":"region"} ${this.id}`)}addResizeHandles(t){let n={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},o=Sl("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},n),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},t),a=Sl("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},n),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},t),r=Pi(o,{threshold:1}),l=Pi(a,{threshold:1}),i=xi((()=>{let d=r.signal.value;d&&(d.type==="move"&&d.deltaX!==void 0?this.onResize(d.deltaX,"start"):d.type==="end"&&this.onEndResizing("start"))}),[r.signal]),s=xi((()=>{let d=l.signal.value;d&&(d.type==="move"&&d.deltaX!==void 0?this.onResize(d.deltaX,"end"):d.type==="end"&&this.onEndResizing("end"))}),[l.signal]);this.subscriptions.push((()=>{i(),s(),r.cleanup(),l.cleanup()}))}removeResizeHandles(t){let n=t.querySelector('[part*="region-handle-left"]'),o=t.querySelector('[part*="region-handle-right"]');n&&t.removeChild(n),o&&t.removeChild(o)}initElement(){if(this.isRemoved)return null;let t=this.start===this.end,n=0,o=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(o=100/this.numberOfChannels,n=o*this.channelIdx);let a=Sl("div",{style:{position:"absolute",top:`${n}%`,height:`${o}%`,backgroundColor:t?"none":this.color,borderLeft:t?"2px solid "+this.color:"none",borderRadius:"2px",boxSizing:"border-box",transition:"background-color 0.2s ease",cursor:this.drag?"grab":"default",pointerEvents:"all"}});return!t&&this.resize&&this.addResizeHandles(a),a}renderPosition(){if(!this.element)return;let t=this.start/this.totalDuration,n=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*t+"%",this.element.style.right=100*n+"%"}toggleCursor(t){var n;this.drag&&(!((n=this.element)===null||n===void 0)&&n.style)&&(this.element.style.cursor=t?"grabbing":"grab")}initMouseEvents(){let{element:t}=this;if(!t)return;let n=vr(t,"click"),o=vr(t,"mouseenter"),a=vr(t,"mouseleave"),r=vr(t,"dblclick"),l=vr(t,"pointerdown"),i=vr(t,"pointerup"),s=n.subscribe((v=>v&&this.emit("click",v))),d=o.subscribe((v=>v&&this.emit("over",v))),p=a.subscribe((v=>v&&this.emit("leave",v))),f=r.subscribe((v=>v&&this.emit("dblclick",v))),m=l.subscribe((v=>v&&this.toggleCursor(!0))),b=i.subscribe((v=>v&&this.toggleCursor(!1)));this.subscriptions.push((()=>{s(),d(),p(),f(),m(),b(),sn(n),sn(o),sn(a),sn(r),sn(l),sn(i)}));let y=Pi(t),u=xi((()=>{let v=y.signal.value;v&&(v.type==="start"?this.toggleCursor(!0):v.type==="move"&&v.deltaX!==void 0?this.onMove(v.deltaX):v.type==="end"&&(this.toggleCursor(!1),this.drag&&this.emit("update-end")))}),[y.signal]);this.subscriptions.push((()=>{u(),y.cleanup()})),this.contentEditable&&this.content&&(this.contentClickListener=v=>this.onContentClick(v),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener))}_onUpdate(t,n,o){var a;if(!(!((a=this.element)===null||a===void 0)&&a.parentElement))return;let{width:r}=this.element.parentElement.getBoundingClientRect(),l=t/r*this.totalDuration,i=n&&n!=="start"?this.start:this.start+l,s=n&&n!=="end"?this.end:this.end+l,d=o!==void 0;d&&this.updatingSide&&this.updatingSide!==n&&(this.updatingSide==="start"?i=o:s=o),i=Math.max(0,i),s=Math.min(this.totalDuration,s);let p=s-i;this.updatingSide=n;let f=p>=this.minLength&&p<=this.maxLength;i<=s&&(f||d)&&(this.start=i,this.end=s,this.renderPosition(),this.emit("update",n))}onMove(t){this.drag&&this._onUpdate(t)}onResize(t,n){this.resize&&(this.resizeStart||n!=="start")&&(this.resizeEnd||n!=="end")&&this._onUpdate(t,n)}onEndResizing(t){this.resize&&(this.emit("update-end",t),this.updatingSide=void 0)}onContentClick(t){t.stopPropagation(),t.target.focus(),this.emit("click",t)}onContentBlur(){this.emit("update-end")}_setTotalDuration(t){this.totalDuration=t,this.renderPosition()}play(t){this.emit("play",t&&this.end!==this.start?this.end:void 0)}getContent(t=!1){var n;return t?this.content||void 0:this.element instanceof HTMLElement?((n=this.content)===null||n===void 0?void 0:n.innerHTML)||void 0:""}setContent(t){var n;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(n=this.content)===null||n===void 0||n.remove(),t){if(typeof t=="string"){let o=this.start===this.end;this.content=Sl("div",{style:{padding:`0.2em ${o?.2:.4}em`,display:"inline-block"},textContent:t})}else this.content=t;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=o=>this.onContentClick(o),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener)),this.content.setAttribute("part","region-content"),this.element.appendChild(this.content),this.emit("content-changed")}else this.content=void 0}setOptions(t){var n,o;if(this.element){if(t.color&&(this.color=t.color,this.element.style.backgroundColor=this.color),t.drag!==void 0&&(this.drag=t.drag,this.element.style.cursor=this.drag?"grab":"default"),t.start!==void 0||t.end!==void 0){let a=this.start===this.end;this.start=this.clampPosition((n=t.start)!==null&&n!==void 0?n:this.start),this.end=this.clampPosition((o=t.end)!==null&&o!==void 0?o:a?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 a=this.start===this.end;this.resize=t.resize,this.resize&&!a?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()}},Mi=class e extends G0{constructor(t){super(t),this.regions=[],this.regionsContainer=this.initRegionsContainer()}static create(t){return new e(t)}onInit(){if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");this.wavesurfer.getWrapper().appendChild(this.regionsContainer),this.subscriptions.push(this.wavesurfer.on("ready",(n=>{this.regions.forEach((o=>o._setTotalDuration(n)))})));let t=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(n=>{let o=this.regions.filter((a=>a.start<=n&&(a.end===a.start?a.start+.05:a.end)>=n));o.forEach((a=>{t.includes(a)||this.emit("region-in",a)})),t.forEach((a=>{o.includes(a)||this.emit("region-out",a)})),t=o})))}initRegionsContainer(){return Sl("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(t){t.content&&setTimeout((()=>{let n=t.content,o=n.getBoundingClientRect(),a=this.regions.map((r=>{if(r===t||!r.content)return 0;let l=r.content.getBoundingClientRect();return o.left<l.left+l.width&&l.left<o.left+o.width?l.height:0})).reduce(((r,l)=>r+l),0);n.style.marginTop=`${a}px`}),10)}adjustScroll(t){var n,o;if(!t.element)return;let a=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper())===null||o===void 0?void 0:o.parentElement;if(!a)return;let{clientWidth:r,scrollWidth:l}=a;if(l<=r)return;let i=a.getBoundingClientRect(),s=t.element.getBoundingClientRect(),d=s.left-i.left,p=s.right-i.left;d<0?a.scrollLeft+=d:p>r&&(a.scrollLeft+=p-r)}virtualAppend(t,n,o){let a=()=>{if(!this.wavesurfer)return;let r=this.wavesurfer.getWidth(),l=this.wavesurfer.getScroll(),i=n.clientWidth,s=this.wavesurfer.getDuration(),d=Math.round(t.start/s*i),p=d+(Math.round((t.end-t.start)/s*i)||1)>l&&d<l+r;p&&!o.parentElement?n.appendChild(o):!p&&o.parentElement&&o.remove()};setTimeout((()=>{if(!this.wavesurfer||!t.element)return;a();let r=this.wavesurfer.on("scroll",a),l=this.wavesurfer.on("zoom",a),i=this.wavesurfer.on("resize",a);this.subscriptions.push(r,l,i),t.once("remove",(()=>{r(),l(),i()}))}),0)}saveRegion(t){if(!t.element)return;this.virtualAppend(t,this.regionsContainer,t.element),this.avoidOverlapping(t),this.regions.push(t);let n=[t.on("update",(o=>{o||this.adjustScroll(t),this.emit("region-update",t,o)})),t.on("update-end",(o=>{this.avoidOverlapping(t),this.emit("region-updated",t,o)})),t.on("play",(o=>{var a;(a=this.wavesurfer)===null||a===void 0||a.play(t.start,o)})),t.on("click",(o=>{this.emit("region-clicked",t,o)})),t.on("dblclick",(o=>{this.emit("region-double-clicked",t,o)})),t.on("content-changed",(()=>{this.emit("region-content-changed",t)})),t.once("remove",(()=>{n.forEach((o=>o())),this.regions=this.regions.filter((o=>o!==t)),this.emit("region-removed",t)}))];this.subscriptions.push(...n),this.emit("region-created",t)}addRegion(t){var n,o;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let a=this.wavesurfer.getDuration(),r=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getDecodedData())===null||o===void 0?void 0:o.numberOfChannels,l=new wi(t,a,r);return this.emit("region-initialized",l),a?this.saveRegion(l):this.subscriptions.push(this.wavesurfer.once("ready",(i=>{l._setTotalDuration(i),this.saveRegion(l)}))),l}enableDragSelection(t,n=3){var o;let a=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper();if(!(a&&a instanceof HTMLElement))return()=>{};let r=null,l=0,i=0,s=Pi(a,{threshold:n}),d=xi((()=>{var p,f;let m=s.signal.value;if(m)if(m.type==="start"){if(l=m.x,!this.wavesurfer)return;let b=this.wavesurfer.getDuration(),y=(f=(p=this.wavesurfer)===null||p===void 0?void 0:p.getDecodedData())===null||f===void 0?void 0:f.numberOfChannels,{width:u}=this.wavesurfer.getWrapper().getBoundingClientRect();i=l/u*b;let v=m.x/u*b,C=(m.x+5)/u*b;r=new wi(Object.assign(Object.assign({},t),{start:v,end:C}),b,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>l?"end":"start",i):m.type==="end"&&r&&(this.saveRegion(r),r.updatingSide=void 0,r=null)}),[s.signal]);return()=>{d(),s.cleanup()}}clearRegions(){this.regions.slice().forEach((t=>t.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as nT,jsx as Ue,jsxs as wl}from"react/jsx-runtime";var oT=eT(function({onFinalize:t,recordOptions:n,options:o,labels:a=s2,className:r,classNames:l,style:i,styles:s,...d},p){let f=m2(null),[m,b]=Ti("idle"),[y,u]=Ti(null),[v,C]=Ti(null),[S,I]=Ti(!1),x=m2("idle");x.current=m;let w=tT(()=>[Ci.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...n}),Mi.create()],[]),[R,T]=w,{wavesurfer:N,isPlaying:D,isReady:M,currentTime:P}=j3({...i2,...o,container:f,plugins:w}),k=M?N?.getDuration()??0:0;$0(()=>{let U=[R.on("record-start",()=>b("recording")),R.on("record-end",_=>{b("recorded"),u(_)}),T.on("region-clicked",(_,W)=>{W.stopPropagation(),_.play(!0)})];return()=>U.forEach(_=>_?.())},[T,R]),$0(()=>N?N.on("ready",()=>{if(x.current!=="recorded")return;let _=N.getDuration();T.clearRegions();let W=T.addRegion({start:0,end:_,color:o?.regionColor??c2,drag:!1,resize:!0});C({start:W.start,end:W.end})}):void 0,[N,T,o]),$0(()=>T.on("region-updated",_=>{C({start:_.start,end:_.end})}),[T]);let E=Ir(async()=>{await R.startRecording()},[R]),L=Ir(()=>{R.stopRecording()},[R]),F=Ir(()=>{N?.playPause()},[N]),O=Ir(async()=>{if(!(!y||!v||!N)){I(!0);try{let U=await J3(y,v.start,v.end),_=URL.createObjectURL(U);u(U),N.load(_)}finally{I(!1)}}},[y,v,N]),B=Ir(()=>{T.clearRegions(),N?.empty(),u(null),C(null),b("idle")},[N,T]),A=Ir(()=>{if(y){let U=URL.createObjectURL(y);t?.(y,U)}},[t,y]),V=!v||v.start<=0&&v.end>=k;return Ue("div",{ref:p,className:rt("cleen wavesurfer-handle",r),style:i,...d,children:wl("div",{className:rt("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",l?.container),style:s?.container,children:[m==="idle"&&wl(nT,{children:[Ue("button",{type:"button",onClick:E,"aria-label":"Start recording",className:rt("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",l?.startButton),style:s?.startButton,children:Ue(Va,{className:"cleen-size-8 cleen-text-primary"})}),Ue("p",{className:rt("cleen-text-neutral-600 cleen-text-sm cleen-select-none",l?.startLabel),style:s?.startLabel,children:a.startRecording})]}),m==="recording"&&Ue("button",{type:"button",onClick:L,"aria-label":"Stop recording",className:rt("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",l?.stopButton),style:s?.stopButton,children:Ue(nl,{className:"cleen-size-8 cleen-text-primary"})}),Ue("div",{ref:f,className:rt("cleen-w-full cleen-min-w-0 cleen-waveform",m==="idle"&&"cleen-hidden",l?.waveform),style:s?.waveform}),m==="recorded"&&wl("div",{className:rt("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",l?.recordedContainer),style:s?.recordedContainer,children:[Ue(te,{type:"button",onClick:F,disabled:!M,"aria-label":D?"Pause":"Play",className:l?.playPauseButton?.className,classNames:{...l?.playPauseButton?.classNames,container:rt("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",l?.playPauseButton?.classNames?.container)},...s?.playPauseButton,children:D?Ue(vt,{className:"cleen-fill-current"}):Ue(It,{className:"cleen-fill-current"})}),wl("span",{className:rt("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",l?.timestamp),style:s?.timestamp,children:[ki(P),"\xA0/\xA0",ki(k)]}),Ue("span",{className:"cleen-flex-1"}),!V&&v&&wl("span",{className:rt("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",l?.trimmedTimestamp),style:s?.trimmedTimestamp,children:[ki(v.start),"\u2013",ki(v.end)]}),Ue(te,{type:"button",onClick:B,variant:"secondary","aria-label":"Discard recording",className:l?.discardButton?.className,classNames:{...l?.discardButton?.classNames,container:rt("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",l?.discardButton?.classNames?.container)},...s?.discardButton,children:Ue(pt,{className:"cleen-text-error"})}),Ue(te,{type:"button",onClick:O,disabled:V||S||!M,"aria-label":"Apply trim",variant:"secondary",className:l?.trimButton?.className,classNames:{...l?.trimButton?.classNames,container:rt("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",l?.trimButton?.classNames?.container)},...s?.trimButton,children:Ue(Ya,{})}),Ue(te,{type:"button",onClick:A,"aria-label":"Finalize recording",className:l?.finalizeButton?.className,classNames:{...l?.finalizeButton?.classNames,container:rt("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",l?.finalizeButton?.classNames?.container)},...s?.finalizeButton,children:Ue(Xt,{})})]})]})})});import{cn as Ni}from"@cleen/ui-core";import{forwardRef as rT,useMemo as aT}from"react";var u2={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 Ml}from"react/jsx-runtime";var Bi=rT(function({title:t,name:n,src:o,alt:a,size:r="md",initialsLength:l=2,isSelected:i=!1,showBorder:s=!1,fallback:d=Ml(ll,{}),className:p,classNames:f,style:m,styles:b,onClick:y,...u},v){let C=aT(()=>(l===2?n?.split(" ").map(S=>S.charAt(0).toUpperCase()).join("").slice(0,l):n?.charAt(0).toUpperCase())||d,[n,l,d]);return Ml("div",{className:Ni("cleen",p),style:m,ref:v,...u,children:Ml("div",{onClick:y,className:Ni("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof r=="string"&&u2[r],{"cleen-border-2 cleen-border-white":s,"cleen-cursor-pointer":!!y},f?.avatar,s&&i&&["cleen-border-primary",f?.avatarSelected]),style:{...typeof r=="number"&&{width:r,height:r,fontSize:r*.4,lineHeight:`${r}px`},...b?.avatar,...s&&i&&b?.avatarSelected},title:t||n,children:o?Ml("img",{src:o,alt:a||n,className:Ni("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",f?.image),style:b?.image}):Ml("span",{className:Ni("cleen-select-none cleen-text-neutral-700",f?.fallback),style:b?.fallback,children:C})})})});import{cn as f2}from"@cleen/ui-core";import{forwardRef as lT}from"react";import{jsx as W0,jsxs as iT}from"react/jsx-runtime";var cT=lT(function({avatars:t,size:n="md",selectedAvatars:o=[],onAvatarToggle:a,gap:r=4,maxVisible:l,maxExtra:i=99,showBorder:s=!0,initialsLength:d,fallback:p,className:f,classNames:m,style:b,styles:y,...u},v){let C=l?t?.slice(0,l):t,S=l&&t&&t.length>l?Math.min(t.length-l,i):0;return W0("div",{className:f2("cleen",f),style:b,ref:v,...u,children:iT("div",{className:f2("cleen-flex cleen-items-center",m?.row),style:{gap:r,...y?.row},children:[C?.map((I,x)=>{let w=o.includes(I?.id??"");return W0(Bi,{name:I.name,src:I.src,size:n,isSelected:w,showBorder:s,initialsLength:d,fallback:p,onClick:()=>a?.(I.id??""),...m?.avatar,style:{zIndex:C.length-x,...y?.avatar?.style},styles:y?.avatar?.styles,...I},I.id||x)}),S>0&&W0(Bi,{size:n,fallback:`+${S}`,...m?.extra,...y?.extra})]})})});import{cn as To}from"@cleen/ui-core";import{forwardRef as sT}from"react";import{Link as h2}from"react-router-dom";import{jsx as kl,jsxs as Ri}from"react/jsx-runtime";var pT=sT(function({root:t={path:"/",icon:kl(Ra,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:n,className:o,classNames:a,style:r,styles:l,...i},s){return!n||n.length===0?null:kl("div",{className:To("cleen",o),style:r,ref:s,...i,children:kl("nav",{className:To("cleen-hidden sm:cleen-flex",a?.container),style:l?.container,"aria-label":"Breadcrumb",children:Ri("ol",{role:"list",className:To("cleen-flex cleen-items-center cleen-gap-4",a?.list),style:l?.list,children:[t&&kl("li",{className:To("cleen-flex cleen-items-center",a?.rootItem),style:l?.rootItem,children:Ri(h2,{to:t?.path,className:To("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",a?.rootLink),style:l?.rootLink,"aria-current":"page",children:[t?.icon,t?.label]})}),n.map(({path:d,icon:p,label:f,id:m},b)=>{let y=b===n.length-1,u=f||d.charAt(0).toUpperCase()+d.slice(1);return Ri("li",{className:To("cleen-flex cleen-items-center cleen-gap-4",a?.item),style:l?.item,children:[(t||!t&&b!==0)&&kl(bt,{className:To("cleen-h-5 cleen-w-5 cleen-text-neutral-300",a?.chevron),style:l?.chevron,"aria-hidden":"true"}),Ri(h2,{to:d,className:To("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",a?.link),style:l?.link,"aria-current":y?"page":void 0,children:[p,u]})]},m||d)})]})})})});var Ei=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:n,max:o}=t,a=new Date,r=new Date(a.getFullYear(),a.getMonth(),a.getDate());if(n){let l=n==="today"?r:n;if(l>=e)return l}if(o){let l=o==="today"?r:o;if(l<=e)return l}return e};import{cn as Li}from"@cleen/ui-core";import{forwardRef as dT,useState as q0}from"react";import{DayPicker as g2,MonthGrid as mT}from"react-day-picker";import{Fragment as uT,jsx as pn,jsxs as X0}from"react/jsx-runtime";var K0=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),Y0=dT(function({label:t,labelTooltip:n,infoLabels:o,required:a,withDateInput:r=!1,withTodayButton:l=!1,selected:i,onSelect:s,month:d,labels:p,className:f,style:m,classNames:b,styles:y,mode:u="single",min:v,max:C,disabled:S,disabledDates:I,components:x,...w},R){let T=i!==void 0,N=u==="single",[D,M]=q0(),[P,k]=q0(),E=T?i:N?D:P,[L,F]=q0(d),O=(V,U)=>{T||(N&&(V===void 0||V instanceof Date)?M(V):N||k(V)),s?.(V,U)},B={MonthGrid:V=>X0(uT,{children:[(l||r)&&X0("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[r&&pn(Ie,{value:u==="single"?K0(E):E?.from||E?.to?`${K0(E?.from)??"..."} - ${K0(E?.to)??"..."}`:void 0,placeholder:p?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),l&&pn(te,{variant:"secondary",onClick:()=>F(new Date),children:p?.today??"Today"})]}),pn(mT,{...V})]}),...x},A={navLayout:"around",...w,className:Li("cleen-text-foreground",b?.calendar?.className),classNames:{...b?.calendar?.classNames,nav:Li("cleen-text-error",b?.calendar?.classNames?.nav)},disabled:v||C?{before:v==="today"?new Date:v,after:C==="today"?new Date:C}:I||S,components:B,month:L,onMonthChange:F,...y?.calendar};return X0("div",{ref:R,className:Li("cleen",f),style:m,children:[t&&pn(de,{required:a,tooltip:n,className:Li("cleen-mb-1.5",b?.label?.className),classNames:b?.label?.classNames,...y?.label,children:t}),N?pn(g2,{mode:"single",...A,selected:E,onSelect:(V,U)=>{if(v||C){O(Ei(V,{min:v,max:C}),U);return}O(V,U)}}):pn(g2,{mode:"range",...A,selected:E,onSelect:(V,U)=>{if(v||C){O({from:Ei(V?.from,{min:v,max:C}),to:Ei(V?.to,{min:v,max:C})},U);return}O(V,U)}}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&pn(ie,{...o})]})});import{cn as Cr,useOutsideClick as fT,usePositionClose as hT,ZIndex as gT}from"@cleen/ui-core";import{forwardRef as bT,useEffect as yT,useRef as b2,useState as vT}from"react";import{createPortal as IT}from"react-dom";import{jsx as dn,jsxs as y2}from"react/jsx-runtime";var Tl=bT(function({type:t="button",required:n,label:o,title:a,titleTooltip:r,disabled:l=!1,leftIcon:i,rightIcon:s=dn(ba,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:d=!0,fullWidthDropdown:p,offset:f=4,isOpen:m,onOpenChange:b,keepOpenOnClickContent:y=!0,zIndex:u=gT.DROPDOWN,infoLabels:v,className:C,classNames:S,style:I,styles:x,children:w,...R},T){let[N,D]=vT(!1),M=m!==void 0?m:N,P=b2(null),k=b2(null),{positionStyles:E,isMounted:L}=hT({triggerRef:k,targetRef:P,position:"bottom-left",isOpen:M,offset:f});fT({refs:[P,k],handler:()=>{D(!1),b?.(!1)},enabled:M}),yT(()=>{let B=A=>{A.key==="Escape"&&M&&(D(!1),b?.(!1))};return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[M,b]);let F=()=>{let B=!M;m===void 0&&D(B),b?.(B)},O=()=>{y||(m===void 0&&D(!1),b?.(!1))};return y2("div",{className:Cr("cleen",C),style:I,ref:T,...R,children:[a&&dn(de,{required:n,tooltip:r,className:Cr("cleen-mb-1.5",S?.title?.className),classNames:S?.title?.classNames,...x?.title,children:a}),dn("div",{className:Cr("cleen-inline-block cleen-relative",d&&"cleen-w-full"),ref:k,children:y2("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":d,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":l},d&&"cleen-w-full",S?.trigger),style:x?.trigger,disabled:l,"aria-haspopup":"dialog","aria-expanded":M,onClick:F,children:[i,dn("div",{className:Cr("cleen-flex-1 cleen-text-left",S?.label),style:x?.label,children:o}),s]})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&dn(ie,{...v}),w&&M&&IT(dn("div",{className:"cleen",children:dn("div",{ref:P,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":!L},S?.dropdown),style:{zIndex:u,top:`${E.top}px`,left:`${E.left}px`,minWidth:p&&k.current?.offsetWidth?`${k.current.offsetWidth}px`:void 0,...x?.dropdown},onClick:O,children:w})}),document.body)]})});import{cn as v2}from"@cleen/ui-core";import{forwardRef as CT,useMemo as xT,useState as Di}from"react";import{jsx as mn,jsxs as I2}from"react/jsx-runtime";var PT=CT(function({label:t,placeholder:n,infoLabels:o,required:a,selected:r,onSelect:l,onSelectInternal:i,leftIcon:s,rightIcon:d=mn(ma,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:p,style:f,classNames:m,styles:b,mode:y="single",min:u,max:v,disabled:C,disabledDates:S,...I},x){let w=r!==void 0,R=y==="single",[T,N]=Di(!1),[D,M]=Di(),[P,k]=Di(),E=w?r:R?D:P,[L,F]=Di(),O=A=>{w||(R&&(A===void 0||A instanceof Date)?M(A):R||k(A)),l?.(A)},B=xT(()=>{if(!E)return n;if(R)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 n},[n,E,R]);return I2("div",{ref:x,className:v2("cleen",p),style:f,children:[mn(Tl,{title:t,label:B,isOpen:T,onOpenChange:A=>{F(E),N(A)},leftIcon:s,rightIcon:d,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:v2("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:a,disabled:C,...b?.dropdown,children:mn(Pe,{footer:{hasDivider:!0,content:I2("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[mn(te,{variant:"secondary",onClick:()=>N(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),mn(te,{onClick:()=>{O(L),N(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...b?.card,children:mn(Y0,{mode:y,...I,selected:L,onSelect:(A,V)=>F(i?.(A,V)??A),min:u,max:v,disabledDates:S,...m?.calendar,...b?.calendar})})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&mn(ie,{...o})]})});import"react";import{cn as xr}from"@cleen/ui-core";import ST from"embla-carousel-auto-scroll";import wT from"embla-carousel-autoplay";import MT from"embla-carousel-react";import{forwardRef as kT,useEffect as TT,useMemo as C2,useState as x2}from"react";import{jsx as un,jsxs as BT}from"react/jsx-runtime";var NT=kT(function({options:t,slideAmount:n=3,slideSize:o,prevBtn:a,nextBtn:r,autoPlay:l=!1,autoPlayOptions:i,autoScroll:s=!1,autoScrollOptions:d,children:p,className:f,classNames:m,style:b,styles:y,...u},v){let C=C2(()=>{let k=[];return l&&k.push(wT(i)),s&&k.push(ST(d)),k},[l,s,i,d]),[S,I]=MT({skipSnaps:!0,...t},C),[x,w]=x2(!0),[R,T]=x2(!0),N=()=>I?.scrollPrev(),D=()=>I?.scrollNext(),M=k=>{w(!k?.canScrollPrev()),T(!k?.canScrollNext())};TT(()=>{I&&(M(I),I.on("reInit",M),I.on("select",M))},[I]);let P=C2(()=>o?`${o}%`:`${100/n}%`,[o,n]);return un("div",{className:xr("cleen",f),style:b,ref:v,...u,children:BT("div",{className:xr("cleen-flex cleen-gap-2",m?.container),style:y?.container,children:[un("button",{className:xr("cleen-text-foreground",m?.prevBtn,x&&"cleen-opacity-50"),onClick:N,disabled:x,style:y?.prevBtn,children:a||un(Yt,{})}),un("div",{className:xr("cleen-flex-1 cleen-overflow-hidden",m?.viewport),style:y?.viewport,ref:S,children:un("div",{className:xr("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":P},children:p})}),un("button",{className:xr("cleen-text-foreground",m?.nextBtn,R&&"cleen-opacity-50"),onClick:D,disabled:R,style:y?.nextBtn,children:r||un(bt,{})})]})})});import{cn as fn}from"@cleen/ui-core";import{forwardRef as RT,useEffect as w2,useId as ET,useRef as LT,useState as DT}from"react";var P2={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)]"},S2={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 FT,jsx as Nt,jsxs as Fi}from"react/jsx-runtime";var hn=RT(function({id:t,name:n,required:o,checked:a,defaultChecked:r=!1,className:l,classNames:i,style:s,styles:d,onChange:p,disabled:f,title:m,titleTooltip:b,label:y,sublabel:u,variant:v="primary",allowIndeterminate:C=!1,fullTriggerArea:S=!1,infoLabels:I,inputRef:x,...w},R){let T=ET(),N=t??T,D=typeof a=="boolean"||a===null,[M,P]=DT(r),k=LT(null),E=A=>{k.current=A,x&&(x.current=A)};w2(()=>{D||P(r)},[r,D]);let L=D?a:M;w2(()=>{k.current&&(k.current.indeterminate=C&&L===null)},[C,L]);let F=A=>{let V;if(C)switch(L){case!0:V=null;break;case!1:V=!0;break;default:V=!1;break}else V=!L;D||P(V),p?.({...A,target:{...A.target,checked:V}})},O=Fi(FT,{children:[Fi("label",{className:fn("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",{[P2[v]]:L,[S2[v]]:L===null},f&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:d?.checkbox,children:[Nt("input",{ref:E,type:"checkbox",disabled:f,className:"cleen-sr-only",checked:L===!0,onChange:F,id:N,name:n,...w}),L===null?Nt("span",{className:"cleen-block cleen-m-auto cleen-border cleen-border-white cleen-rounded-sm cleen-w-2.5 cleen-h-0.5 cleen-size-3"}):L?Nt(Xt,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(y||u)&&Fi("div",{children:[Nt("label",{htmlFor:N,className:fn("cleen-block cleen-text-foreground",i?.label),style:d?.label,children:y}),Nt("label",{htmlFor:N,className:fn("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:d?.sublabel,children:u})]})]}),B={className:fn("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":f},i?.checkboxContainer),style:d?.checkboxContainer};return Nt("div",{className:fn("cleen",l),style:s,ref:R,children:Fi("div",{className:fn(i?.container),style:d?.container,children:[m&&Nt(de,{htmlFor:N,required:o,tooltip:b,className:fn("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...d?.title,children:m}),S?Nt("div",{...B,onClick:A=>{A.target instanceof Element&&!A.target.closest("label")&&k.current?.click()},children:O}):Nt("div",{...B,children:O}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&Nt(ie,{...I})]})})});import{cn as Nl}from"@cleen/ui-core";import{forwardRef as AT,useId as OT,useMemo as _T,useState as VT}from"react";import{jsx as Pr,jsxs as HT}from"react/jsx-runtime";var zT=AT(function({id:t,required:n,label:o,labelTooltip:a,checkboxes:r,allowIndeterminate:l,infoLabels:i,requiresAtLeastOneOptions:s,classNames:d,styles:p,onChange:f,...m},b){let y=OT(),u=t??y,[v,C]=VT(!1),S=_T(()=>s&&v&&r?.every(x=>x.checked===!1)?s.title:i?.errorMessage,[s,i?.errorMessage,r,v]),I=(x,w)=>{let R={...w,checked:x.target.checked},T;r&&w?.id&&(T=[...r].map(N=>N.id===w.id?R:N)),f?.(R,T),C(!0)};return Pr("div",{className:Nl("cleen"),...m,ref:b,children:HT("div",{className:Nl("cleen-flex cleen-flex-col cleen-gap-2",d?.container),style:p?.container,children:[o&&Pr(de,{htmlFor:u,required:n,tooltip:a,className:Nl("cleen-mb-1.5",d?.label?.className),classNames:d?.label?.classNames,...p?.label,children:o}),Pr("div",{className:Nl("cleen-flex cleen-flex-col cleen-gap-3",d?.checkboxes),style:p?.checkboxes,children:r?.map((x,w)=>Pr("div",{className:Nl("cleen-flex",d?.checkboxContainer),style:p?.checkboxContainer,children:Pr(hn,{allowIndeterminate:l,...x,id:`${u}-${w}`,fullTriggerArea:!0,onChange:R=>I(R,x)})},x.id))}),(S||i?.infoMessage||i?.subtitle)&&Pr(ie,{...i,errorMessage:S})]})})});import{cn as gn}from"@cleen/ui-core";import{forwardRef as UT,useState as M2}from"react";import{jsx as Sr,jsxs as k2}from"react/jsx-runtime";var T2=UT(({sections:e,defaultOpenIndex:t,allowExpandAll:n=!1,className:o,classNames:a,style:r,styles:l,...i},s)=>{let[d,p]=M2(t??null),[f,m]=M2(()=>new Set(e.map((u,v)=>v))),b=u=>n?f.has(u):d===u,y=(u,v)=>{v.onClick?.(),v.items?.length&&(n?m(C=>{let S=new Set(C);return S.has(u)?S.delete(u):S.add(u),S}):p(d===u?null:u))};return Sr("div",{ref:s,className:gn("cleen",o),style:{...r,width:"100%"},...i,children:Sr("div",{className:gn("cleen-w-full",a?.container),style:l?.container,children:e.map((u,v)=>k2("div",{className:gn("cleen-mb-3",a?.section),style:l?.section,children:[k2("div",{onClick:()=>y(v,u),className:gn("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",a?.sectionHeader),style:l?.sectionHeader,children:[Sr("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:u?.title}),u?.items?.length?Sr(Qt,{className:gn("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!b(v)})}):null]}),b(v)&&u?.items&&Sr("div",{className:gn("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",a?.sectionBody),style:l?.sectionBody,children:u?.items?.map((C,S)=>Sr("div",{className:gn("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",a?.item),style:l?.item,onClick:C?.onClick,children:C?.content},C?.key??S))})]},u?.key??v))})})});T2.displayName="Collapsible";function Q0(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 N2(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as Ai}from"@cleen/ui-core";import{useEffect as GT,useState as $T}from"react";import{HexAlphaColorPicker as WT,RgbaColorPicker as qT}from"react-colorful";import{jsx as wr,jsxs as XT}from"react/jsx-runtime";var B2="rgba(0, 0, 0, 1)",R2="#000000ff",KT=({required:e,value:t,defaultValue:n,onChange:o,colorModel:a="rgba",disabled:r,label:l,labelTooltip:i,className:s,classNames:d,style:p,styles:f,infoLabels:m,...b})=>{let y=t!==void 0,u=n??(a==="hexa"?R2:B2),[v,C]=$T(u),S=y?t:v;GT(()=>{y||C(n??(a==="hexa"?R2:B2))},[n,y,a]);let I=w=>{let R=N2(w);y||C(R),o?.(R)},x=w=>{y||C(w),o?.(w)};return wr("div",{className:Ai("cleen",s),style:p,...b,children:XT("div",{className:Ai("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",d?.container),style:f?.container,children:[l&&wr(de,{required:e,tooltip:i,className:Ai("cleen-mb-1.5",d?.label?.className),classNames:d?.label?.classNames,...f?.label,children:l}),wr("div",{className:Ai("cleen-rounded-md",r&&"cleen-opacity-50 cleen-pointer-events-none",d?.picker),style:f?.picker,children:a==="hexa"?wr(WT,{color:S,onChange:x}):wr(qT,{color:Q0(S),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&wr(ie,{...m})]})})};import{cn as dt}from"@cleen/ui-core";import{forwardRef as YT,useMemo as QT,useState as ZT}from"react";var Z0=(e="")=>e.replace(/\D+/g,""),E2=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function L2(e,t="other"){if(!e)return e;let n=Z0(e),o;switch(t){case"amex":o=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,15)}`;break;case"dinersclub":o=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,14)}`;break;default:o=`${n.slice(0,4)} ${n.slice(4,8)} ${n.slice(8,12)} ${n.slice(12,19)}`;break}return o.trim()}var D2=e=>Z0(e);function F2(e){let t=Z0(e);if(!t||parseInt(t.charAt(0),10)>=2)return"";if(t.length<2)return t;let n=t.slice(0,2);if(parseInt(n,10)<1||parseInt(n,10)>12)return t.slice(0,1);if(t.length<3)return n;if(t.length===3)return`${n}/${t.charAt(2)}`;let o=t.length===6?t.slice(-2):t.slice(2,4),a=new Date,r=a.getFullYear()%100,l=a.getMonth()+1;return parseInt(o,10)<r||parseInt(o,10)===r&&parseInt(n,10)<l?`${n}/${o.charAt(0)}`:`${n}/${o}`}import{jsx as No,jsxs as A2}from"react/jsx-runtime";var JT=YT(function({labels:t,value:n,isLoading:o,errors:a,className:r,classNames:l,style:i,styles:s,infoLabels:d,onChange:p,onFieldFocus:f,...m},b){let[y,u]=ZT({number:"",expiry:"",cvc:""}),v=!!n,C=v?n:y,S=QT(()=>E2(C.number),[C.number]),I=w=>{let{name:R}=w.target,{value:T}=w.target;switch(R){case"number":T=L2(T,S);break;case"expiry":T=F2(T);break;case"cvc":T=D2(T);break;default:return}v||u(N=>({...N,[R]:T})),p?.({...n,[R]:T})},x=w=>{f?.(w.target.name)};return No("div",{className:dt("cleen",r),style:i,ref:b,...m,children:No("div",{className:dt("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",l?.container),style:s?.container,children:o?No("div",{className:dt("cleen-py-4",l?.loader?.container),style:s?.loader?.container,children:No(ce,{...l?.loader?.component,...s?.loader?.component})}):A2("form",{className:dt("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",l?.form?.container),style:s?.form?.container,onSubmit:w=>w.preventDefault(),children:[No(Ie,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:dt("cleen-w-full",l?.form?.cardNumber?.className),classNames:{...l?.form?.cardNumber?.classNames,inputContainer:dt({"cleen-border-error":a?.number},l?.form?.cardNumber?.classNames?.inputContainer),input:dt({"cleen-text-error":a?.number},l?.form?.cardNumber?.classNames?.input)},...s?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:C.number,onChange:I,onFocus:x,infoLabels:{errorMessage:a?.number}}),A2("div",{className:dt("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",l?.form?.cvcExpiryContainer),style:s?.form?.cvcExpiryContainer,children:[No(Ie,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:l?.form?.expiry?.className,classNames:{...l?.form?.expiry?.classNames,inputContainer:dt({"cleen-border-error":a?.expiry},l?.form?.expiry?.classNames?.inputContainer),input:dt({"cleen-text-error":a?.expiry},l?.form?.expiry?.classNames?.input)},...s?.form?.expiry,placeholder:"00/00",value:C.expiry,onChange:I,onFocus:x,infoLabels:{errorMessage:a?.expiry}}),No(Ie,{label:t?.cvc,name:"cvc",type:"tel",inputMode:"numeric",autoComplete:"cc-csc",maxLength:S==="amex"?4:3,className:l?.form?.cvc?.className,classNames:{...l?.form?.cvc?.classNames,inputContainer:dt({"cleen-border-error":a?.cvc},l?.form?.cvc?.classNames?.inputContainer),input:dt({"cleen-text-error":a?.cvc},l?.form?.cvc?.classNames?.input)},...s?.form?.cvc,placeholder:"***",value:C.cvc,onChange:I,onFocus:x,infoLabels:{errorMessage:a?.cvc}})]}),(d?.infoMessage||d?.errorMessage||d?.subtitle)&&No(ie,{...d})]})})})});import{cn as O2}from"@cleen/ui-core";import{jsx as _2}from"react/jsx-runtime";var xt=({isHorizontal:e=!0,className:t,classNames:n,style:o,styles:a,...r})=>_2("div",{className:O2("cleen",t),style:o,children:_2("div",{className:O2("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",n?.container),style:a?.container,...r})});import{cn as Bo,useBodyScrollLock as jT,useCleenOverlays as V2,ZIndex as eN}from"@cleen/ui-core";import{forwardRef as tN,useCallback as oN,useEffect as J0,useId as nN,useRef as rN,useState as z2}from"react";import{createPortal as aN}from"react-dom";import{jsx as Mr,jsxs as Oi}from"react/jsx-runtime";var lN={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},H2=300,j0=tN(function({title:t,subtitle:n,children:o,headerCloseBtn:a,footer:r,isOpen:l=!1,onClose:i,closeOnOverlayClick:s=!0,position:d="right",zIndex:p=eN.DRAWER,size:f="lg",p:m,gap:b,className:y,classNames:u,style:v,styles:C,...S},I){let[x,w]=z2(l),[R,T]=z2(l),N=rN(null),D=nN(),{addOverlay:M,removeOverlay:P}=V2(),k=oN(()=>{w(!1),setTimeout(()=>i?.(),H2)},[i]);return J0(()=>{if(l){T(!0);let E=setTimeout(()=>w(!0),1);return()=>clearTimeout(E)}else{w(!1);let E=setTimeout(()=>T(!1),H2);return()=>clearTimeout(E)}},[l]),J0(()=>{if(l)return M(D),()=>P(D)},[M,P,l,D]),J0(()=>{let E=L=>{let{overlays:F}=V2.getState();L.key==="Escape"&&F[F.length-1]===D&&k()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[k,D]),jT(R),R?aN(Oi("div",{className:Bo("cleen",y),style:v,ref:I,...S,children:[Mr("div",{className:Bo("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",x?"cleen-opacity-100":"cleen-opacity-0",u?.overlay),onClick:()=>{s&&k()},style:{zIndex:p-1,...C?.overlay},"aria-hidden":"true"}),Oi("div",{className:Bo("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",d==="right"?"cleen-right-0":"cleen-left-0",x?"cleen-translate-x-0":d==="right"?"cleen-translate-x-full":"-cleen-translate-x-full",u?.drawer),style:{zIndex:p,width:typeof f=="number"?f:lN[f],...b!==void 0&&{gap:b},...C?.drawer},ref:N,children:[Oi("div",{className:Bo("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:[Oi("div",{className:"cleen-flex cleen-flex-col",children:[Mr("span",{className:Bo("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",u?.title),style:C?.title,children:t}),Mr("span",{className:Bo("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",u?.subtitle),style:C?.subtitle,children:n})]}),a||Mr(He,{onClick:k,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),Mr("div",{className:Bo("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",u?.content),style:{...m!==void 0&&{paddingInline:m},...C?.content},children:o}),r&&Mr("div",{className:Bo("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:b},...C?.footer},children:r})]})]}),document.body):null});import{cn as bn,useAnimateNumber as cN}from"@cleen/ui-core";import{forwardRef as iN,useEffect as sN,useMemo as pN,useRef as dN,useState as mN}from"react";import{jsx as _i,jsxs as e1}from"react/jsx-runtime";var kr=iN(({percentage:e,title:t,barColor:n,backgroundColor:o="rgb(var(--cleen-neutral-200))",textColor:a="rgb(var(--cleen-foreground))",invertProgressColors:r=!1,showPercentage:l=!1,renderAnimated:i=!1,renderAnimatedDuration:s=1e3,className:d,classNames:p,style:f,styles:m,...b},y)=>{let u=Math.max(0,Math.min(e,100)),v=dN(u),[C,S]=mN(i?0:u),I=cN({targetNumber:C,duration:s,disabled:!i});sN(()=>{if(i){setTimeout(()=>S(u),0);return}v.current!==u&&(S(u),v.current=u)},[u,i]);let x=pN(()=>{if(n)return n;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,n]);return _i("div",{ref:y,className:bn("cleen",d),style:f,children:e1("div",{className:bn("cleen-w-full",p?.container),style:m?.container,...b,children:[t&&_i("div",{className:bn("cleen-mb-1 cleen-font-semibold cleen-text-xs",p?.title),style:m?.title,children:t}),e1("div",{className:bn("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",p?.wrapper||p?.progress),style:m?.wrapper??m?.progress,children:[_i("div",{className:bn("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",p?.track),style:{backgroundColor:o,...m?.track},children:_i("div",{className:bn("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",p?.fill),style:{width:`${C}%`,backgroundColor:x,...i&&{transitionDuration:`${s}ms`},...m?.fill}})}),l&&e1("span",{className:bn("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",p?.text),style:{color:a,...m?.text},children:[Math.round(I),"%"]})]})]})})});kr.displayName="ProgressBar";import{cn as Ro,FileEntryStatus as yn}from"@cleen/ui-core";import{useMemo as U2}from"react";import{Fragment as G2,jsx as Ge,jsxs as vn}from"react/jsx-runtime";var $2=({fileEntry:e,onRemove:t,onFileClick:n,labels:o,classNames:a,styles:r})=>{let{id:l,file:i,name:s,size:d,url:p,type:f,status:m,progress:b=0,preExisting:y}=e,u=m===yn.UPLOADING,v=m===yn.ERROR,C=m===yn.DONE,S=m===yn.DELETING,I=d?d*b/100:0,x=U2(()=>{switch(m){case yn.UPLOADING:return vn(G2,{children:[Ge(ln,{className:"cleen-size-4"}),Ge("span",{children:o?.uploading})]});case yn.DONE:return Ge(Zo,{className:"cleen-size-4"});case yn.ERROR:return Ge(Qo,{className:"cleen-size-4"});default:return null}},[m,o]),w=()=>{if(n){n(e);return}p&&window.open(p,"_blank","noopener,noreferrer")},R=s||i?.name||"",[T,N]=R.split("."),D=U2(()=>f?.startsWith("image/")&&p?Ge("img",{src:p,alt:R,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):f==="application/pdf"?Ge(tn,{className:"cleen-size-8"}):Ge(en,{className:"cleen-size-8"}),[R,f,p]);return Ge(Pe,{p:12,className:a?.card?.className,classNames:{...a?.card?.classNames,container:Ro(a?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":C})},...r?.card,onClick:C?w:void 0,children:vn("div",{className:Ro("cleen-space-y-1",a?.container),style:r?.container,children:[vn("div",{className:Ro("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",a?.nameContainer),style:r?.nameContainer,children:[D,vn("div",{className:Ro("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",a?.name),style:{maxWidth:D?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...r?.name},children:[Ge("span",{className:"cleen-truncate cleen-shrink",children:T}),vn("span",{className:"cleen-whitespace-nowrap",children:[".",N]})]}),Ge("div",{className:"cleen-flex-1"}),!u&&(S?Ge(ce,{color:"rgb(var(--cleen-error))",className:Ro("cleen-shrink-0")}):Ge(pt,{className:Ro("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?.(l)}}))]}),vn("div",{className:Ro("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",a?.statusContainer),style:r?.statusContainer,children:[!!d&&(u?Ge("p",{children:o?.uploadProgress?.(I,d)}):C&&Ge("p",{children:o?.uploaded?.(d)})),!y&&vn(G2,{children:[Ge("span",{children:"|"}),Ge("div",{className:Ro("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":v,"cleen-text-success":C},a?.statusText),style:r?.statusText,children:x})]})]}),u&&Ge(kr,{barColor:"rgb(var(--cleen-primary))",percentage:b,showPercentage:!0,...a?.progressBar,...r?.progressBar})]})},l)};var Vi=e=>{if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,o)).toFixed(1))} ${n[o]}`};var W2={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${Vi(e)} of ${Vi(t)}`,uploaded:e=>Vi(e)};var q2={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 Bl=(r=>(r.PENDING="pending",r.IN_PROGRESS="inProgress",r.DONE="done",r.ERROR="error",r.REMOVING="removing",r))(Bl||{});import{cn as In}from"@cleen/ui-core";import{jsx as Eo,jsxs as K2}from"react/jsx-runtime";var t1=({item:e,labels:t,classNames:n,styles:o})=>{let{status:a,progress:r=0,icon:l,name:i}=e,s=a==="inProgress",d=a==="done",p=a==="error",f=a==="removing",m=a==="pending";return K2("div",{className:In("cleen-flex cleen-items-center cleen-gap-3",n?.container),style:o?.container,children:[l,K2("div",{className:In("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",n?.infoContainer),style:o?.infoContainer,children:[Eo("p",{className:In("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",n?.name),style:o?.name,children:i}),s&&Eo(kr,{barColor:"rgb(var(--cleen-primary))",percentage:r,...n?.progressBar,...o?.progressBar})]}),s&&Eo("span",{className:In("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",n?.progressText),style:o?.progressText,children:t?.itemProgress?.(r)}),f&&Eo(ce,{color:"rgb(var(--cleen-error))"}),d&&Eo(Zo,{className:In("cleen-size-5 cleen-shrink-0 cleen-text-success",n?.statusIcon),style:o?.statusIcon}),p&&Eo(Qo,{className:In("cleen-size-5 cleen-shrink-0 cleen-text-error",n?.statusIcon),style:o?.statusIcon}),m&&Eo("div",{className:In("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",n?.statusIcon),style:o?.statusIcon,children:Array.from({length:3}).map((b,y)=>Eo("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${y*.1}s`}},y))})]})};var Rl=(a=>(a.NOT_STARTED="notStarted",a.IN_PROGRESS="inProgress",a.COMPLETED="completed",a.ALL="all",a))(Rl||{}),El=["notStarted","inProgress","completed","all"];import{cn as zi}from"@cleen/ui-core";import{jsx as X2,jsxs as uN}from"react/jsx-runtime";var o1=({value:e,onChange:t,counts:n,labels:o,classNames:a,styles:r})=>X2("div",{role:"group","aria-label":o?.statusFilter,className:zi("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",a?.container),style:r?.container,children:El.map(l=>{let i=l===e;return uN("button",{type:"button","aria-pressed":i,onClick:()=>t(l),className:zi("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",a?.option,i&&zi("cleen-bg-background cleen-text-foreground cleen-shadow-sm",a?.optionActive)),style:{...r?.option,...i&&r?.optionActive},children:[o?.statusFilterOptions?.[l],n&&X2("span",{className:zi("cleen-text-neutral-400 cleen-tabular-nums",a?.optionCount),style:r?.optionCount,children:n[l]})]},l)})});var Y2={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 Q2=e=>e.status==="inProgress"||e.status==="pending",Z2=e=>e.length>0&&e.every(t=>t.status==="done"),n1=(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 fN,cn as Pt,useControlled as J2,useDisclosure as hN}from"@cleen/ui-core";import{forwardRef as gN,useEffect as j2,useMemo as r1,useRef as bN}from"react";import{jsx as Bt,jsxs as a1}from"react/jsx-runtime";var l1=gN(function({items:t,title:n,maxVisibleItems:o=5,isExpanded:a,defaultExpanded:r=!1,onExpandedChange:l,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:s,showHeader:d=!0,showStatusFilter:p=!1,showStatusFilterCounts:f=!1,statusFilter:m,defaultStatusFilter:b="inProgress",onStatusFilterChange:y,labels:u,className:v,classNames:C,style:S,styles:I,...x},w){let{isOpen:R,toggle:T,close:N}=hN(),{value:D,handleChange:M}=J2({value:a,defaultValue:r,onChange:l});j2(()=>{t.length>0&&N()},[t.length,N]);let P=fN(Y2,u),{value:k,handleChange:E}=J2({value:m,defaultValue:b,onChange:y}),L=bN(i);L.current=i;let F=Z2(t);j2(()=>{if(s==null||!L.current||!F)return;if(s<=0){L.current();return}let W=setTimeout(()=>L.current?.(),s);return()=>clearTimeout(W)},[F,s]);let O=r1(()=>t.filter(Q2).length,[t]),B=r1(()=>!p||!k?t:t.filter(W=>n1(W,k)),[t,p,k]),A=r1(()=>{if(f)return El.reduce((W,j)=>({...W,[j]:t.filter(G=>n1(G,j)).length}),{})},[t,f]);if(!t.length)return null;let V=Math.max(B.length-o,0),U=D||!V?B:B.slice(0,o),_=n??(O?P?.processing?.(O):P?.completed);return Bt(Pe,{p:16,gap:12,ref:w,className:Pt(v,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:Pt(C?.card?.classNames?.childrenContainer,{"cleen-hidden":R})},style:S,styles:I?.card?.styles,header:d?{hasDivider:!R,content:a1("div",{className:Pt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",C?.header),style:I?.header,children:[Bt("p",{className:Pt("cleen-font-semibold cleen-text-foreground cleen-text-sm",C?.title),style:I?.title,children:_}),a1("div",{className:Pt("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:I?.headerButtons,children:[Bt("button",{type:"button","aria-label":P?.contract,onClick:T,className:Pt("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:Bt(Qt,{className:Pt("cleen-size-5 cleen-transition-transform",R&&"cleen-rotate-180")})}),i&&Bt("button",{type:"button","aria-label":P?.dismiss,onClick:i,className:Pt("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:Bt(He,{className:"cleen-size-4"})})]})]})}:void 0,...x,children:a1("div",{className:Pt("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:I?.list,children:[p&&k&&Bt(o1,{value:k,onChange:E,counts:A,labels:P,classNames:C?.statusFilter,styles:I?.statusFilter}),!U.length&&Bt("p",{className:Pt("cleen-text-muted-foreground cleen-text-xs",C?.emptyStatusFilter),style:I?.emptyStatusFilter,children:P?.emptyStatusFilter}),U.map(W=>Bt(t1,{item:W,labels:P,classNames:C?.row,styles:I?.row},W.id)),!!V&&Bt("button",{type:"button","aria-expanded":D,onClick:()=>M(!D),className:Pt("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:D?P?.showLess:P?.showMore?.(V)})]})})});import{FileEntryStatus as to}from"@cleen/ui-core";var yN=[{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"]}],eI={label:"FILE",className:"cleen-bg-neutral-500"},vN={[to.QUEUED]:"inProgress",[to.UPLOADING]:"inProgress",[to.PAUSED]:"inProgress",[to.DONE]:"done",[to.ERROR]:"error",[to.DELETING]:"removing"},c1=e=>e.name||e.file?.name||"",tI=e=>{let t=c1(e).split(".").pop()?.toLowerCase()??"",n=yN.find(({extensions:o})=>o.includes(t));return n?{label:n.label,className:n.className}:{label:t?t.slice(0,4).toUpperCase():eI.label,className:eI.className}},oI=e=>e.status===to.QUEUED||e.status===to.UPLOADING||e.status===to.PAUSED,nI=e=>vN[e.status]??"pending",rI=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as IN}from"@cleen/ui-core";import{jsx as CN}from"react/jsx-runtime";var aI=({fileEntry:e,className:t,style:n})=>{let o=tI(e);return CN("div",{className:IN("cleen-flex cleen-justify-center cleen-items-center cleen-rounded-md cleen-size-8 cleen-shrink-0 cleen-font-semibold cleen-text-[10px] cleen-text-white",o.className,t),style:n,children:o.label})};import{jsx as xN}from"react/jsx-runtime";var lI=(e,t)=>({id:e.id,name:c1(e),progress:e.progress,status:nI(e),icon:xN(aI,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as PN}from"@cleen/ui-core";import{forwardRef as SN,useMemo as cI}from"react";import{jsx as wN}from"react/jsx-runtime";var i1=SN(function({files:t,title:n,maxVisibleFiles:o=5,labels:a,classNames:r,styles:l,...i},s){let d=cI(()=>rI(t),[t]),p=PN(q2,a),f=cI(()=>d.map(y=>lI(y,{className:r?.row?.typeBadge,style:l?.row?.typeBadge})),[d,r?.row?.typeBadge,l?.row?.typeBadge]),m=d.filter(oI).length,b=n??(m?p?.uploading?.(m):p?.completed);return wN(l1,{ref:s,items:f,title:b,maxVisibleItems:o,labels:{showMore:p?.showMore,showLess:p?.showLess,dismiss:p?.dismiss,contract:p?.contract,itemProgress:p?.uploadProgress},classNames:r,styles:l,...i})});import{applyDefaults as MN,cn as Qe,FileEntryStatus as kN,useFileUpload as TN}from"@cleen/ui-core";import{forwardRef as NN,useEffect as BN,useMemo as iI,useRef as sI,useState as s1}from"react";import{createPortal as RN}from"react-dom";import{jsx as Ze,jsxs as Hi}from"react/jsx-runtime";var EN=NN(function({required:t,icon:n,files:o,initialFiles:a=[],onFilesChange:r,onFileUpload:l,onFilesUpload:i,onFileRemove:s,onFileClick:d,infoLabels:p,containerRef:f,label:m,labelTooltip:b,labels:y,showUploadedFiles:u=!1,showProgressTracker:v=!1,progressTracker:C,className:S,classNames:I,style:x,styles:w,multiple:R,disabled:T,loadingWhileUploading:N,isLoading:D,readOnly:M,onChange:P,id:k,name:E,...L},F){let O=sI(null),{files:B,addFiles:A,remove:V}=TN({files:o,onFilesChange:r,initialFiles:a,onFileUpload:l,onFilesUpload:i,onFileRemove:s}),U=iI(()=>D||N&&Array.from(B.values()).some(Z=>Z.status===kN.UPLOADING),[B,N,D]),[_,W]=s1(!1),[j,G]=s1([]),[H,X]=s1(!1),$=sI(new Set(B.keys()));BN(()=>{let Z=Array.from(B.keys()),Re=Z.filter(Oe=>!$.current.has(Oe));$.current=new Set(Z),G(Oe=>{let Se=Oe.filter(Ye=>B.has(Ye));return Re.length?H?Re:[...Se,...Re.filter(Ye=>!Se.includes(Ye))]:Se.length===Oe.length?Oe:Se}),Re.length&&X(!1)},[B,H]);let Y=iI(()=>j.map(Z=>B.get(Z)).filter(Z=>!!Z),[j,B]),ae=()=>{X(!0),G([]),C?.onDismiss?.()},be=!T&&!M&&!U,pe=Z=>{let Re=Array.from(Z.target.files??[]);A(Re),P?.(Z)},Me=Z=>{V(Z)},q=()=>{be&&O.current?.click()},Q=Z=>{if(!Z.length)return;let Re=R?Z:Z.slice(0,1);if(!O.current||typeof DataTransfer>"u"){A(Re);return}let Oe=new DataTransfer;Re.forEach(Se=>Oe.items.add(Se));try{O.current.files=Oe.files}catch{A(Re);return}A(Re),P?.({target:O.current,currentTarget:O.current})},z=Z=>{Z.preventDefault(),Z.stopPropagation(),W(!1),be&&Q(Array.from(Z.dataTransfer.files??[]))},re=Z=>{Z.preventDefault(),Z.stopPropagation(),be&&W(!0)},se=Z=>{Z.preventDefault(),Z.stopPropagation(),be&&W(!0)},ye=Z=>{Z.preventDefault(),Z.stopPropagation(),be&&W(!1)},ue=Z=>{be&&(Z.key!=="Enter"&&Z.key!==" "||(Z.preventDefault(),q()))},xe=MN(W2,y);return Hi("div",{className:Qe("cleen",S),style:x,ref:f,children:[Ze("input",{id:k||E,name:E,ref:Z=>{if(O.current=Z,typeof F=="function"){F(Z);return}F&&(F.current=Z)},type:"file",multiple:R,disabled:T||U,readOnly:M,className:Qe("cleen-hidden",I?.input),style:w?.input,onChange:pe,...L}),m&&Ze(de,{htmlFor:k||E,required:t,tooltip:b,className:Qe("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...w?.label,children:m}),Hi("div",{className:Qe("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":U}),children:[Ze(Pe,{tabIndex:be?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":T||M||U,onClick:q,onKeyDown:ue,onDrop:z,onDragEnter:re,onDragOver:se,onDragLeave:ye,p:16,className:Qe("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:Qe("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,_&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:Qe({"cleen-blur-sm":U},I?.card?.classNames?.childrenContainer)},style:w?.card?.style,styles:{...w?.card?.styles,container:{...w?.card?.styles?.container,..._?w?.cardDragActive:void 0}},children:Hi("div",{className:Qe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:w?.dropArea,"aria-disabled":T||M||U,children:[Ze("div",{className:Qe("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-border cleen-border-border cleen-rounded-xl cleen-size-11 cleen-text-neutral-700",I?.iconContainer),style:w?.iconContainer,children:n||Ze(ln,{className:"cleen-size-5"})}),Hi("p",{className:Qe("cleen-font-medium cleen-text-sm",I?.textContainer),style:w?.textContainer,children:[Ze("span",{className:Qe(T?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:w?.primaryText,children:xe?.primaryText})," ",Ze("span",{className:Qe("cleen-text-foreground",I?.secondaryText),style:w?.secondaryText,children:xe?.secondaryText})]}),Ze("p",{className:Qe("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:w?.helperText,children:xe?.helperText})]})}),U&&Ze(ce,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),u&&B.size>0&&Ze("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(B.values()).map(Z=>Ze($2,{fileEntry:Z,onRemove:Me,onFileClick:d,labels:xe,classNames:I?.fileCard,styles:w?.fileCard},Z.id))}),v&&!H&&Y.length>0&&RN(Ze("div",{className:"cleen",children:Ze(i1,{...C,files:Y,onDismiss:ae,className:Qe("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",I?.progressTracker?.className),classNames:I?.progressTracker?.classNames,...w?.progressTracker})}),document.body),(p?.errorMessage||p?.infoMessage||p?.subtitle)&&Ze(ie,{...p})]})});import{cn as je,useControlled as yI}from"@cleen/ui-core";import{forwardRef as UN,Fragment as GN,useMemo as vI,useRef as $N,useState as WN}from"react";import{cn as p1,useDisclosure as LN,useOutsideClick as DN,usePositionClose as FN,ZIndex as AN}from"@cleen/ui-core";import{forwardRef as ON,useRef as pI}from"react";import{createPortal as _N}from"react-dom";import{jsx as d1,jsxs as VN}from"react/jsx-runtime";var oo=ON(function({isOpen:t,onOpenChange:n,content:o,position:a="bottom-left",offset:r,zIndex:l=AN.POPOVER,portalContainer:i,children:s,className:d,classNames:p,style:f,styles:m,...b},y){let{isOpen:u,toggle:v,close:C}=LN({value:t,setValue:n}),S=pI(null),I=pI(null),{positionStyles:x,isMounted:w}=FN({triggerRef:S,targetRef:I,position:a,isOpen:u,offset:r,container:i});DN({refs:[S,I],handler:C,enabled:u});let R=T=>{T.stopPropagation(),v()};return VN("div",{className:p1("cleen",d),style:f,ref:y,...b,children:[d1("div",{ref:S,onClick:R,className:p1("cleen-size-fit",p?.trigger,u&&p?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:s}),u&&_N(d1("div",{className:"cleen",onClick:T=>T.stopPropagation(),onPointerDown:T=>T.stopPropagation(),onMouseDown:T=>T.stopPropagation(),onTouchStart:T=>T.stopPropagation(),children:d1("div",{ref:I,className:p1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!w},p?.popover),style:{zIndex:l,top:`${x.top}px`,left:`${x.left}px`,...m?.popover},onClick:T=>T.stopPropagation(),children:o})}),i??document.body)]})});import{cn as m1}from"@cleen/ui-core";import{Fragment as zN,useEffect as dI,useMemo as mI,useRef as HN,useState as u1}from"react";import{jsx as Rt,jsxs as Tr}from"react/jsx-runtime";var uI=({sections:e,labels:t,onAddRow:n,onSearchChange:o,isLoading:a=!1,className:r,style:l,popoverClassName:i,popoverStyle:s})=>{let[d,p]=u1(!1),[f,m]=u1(""),[b,y]=u1(0),u=HN(null),v=mI(()=>{let w=o?"":f.trim().toLowerCase();return e.filter(R=>!R.readOnly&&R.options?.length).map(R=>{let T=new Set(R.rows.map(N=>N.id));return{section:R,options:(R.options??[]).filter(N=>!T.has(N.id)&&(!w||N.label.toLowerCase().includes(w)||N.meta?.toLowerCase().includes(w)))}}).filter(R=>R.options.length)},[e,f,o]),C=mI(()=>v.flatMap(w=>w.options.map(R=>({sectionId:w.section.id,option:R}))),[v]);dI(()=>{y(0),o?.(f.trim())},[f]),dI(()=>{if(!d){m("");return}requestAnimationFrame(()=>u.current?.focus())},[d]);let S=w=>{w&&(n(w),p(!1))},I=w=>{w.key==="ArrowDown"?(w.preventDefault(),y(R=>Math.min(R+1,C.length-1))):w.key==="ArrowUp"?(w.preventDefault(),y(R=>Math.max(R-1,0))):w.key==="Enter"?(w.preventDefault(),S(C[b])):w.key==="Escape"&&p(!1)},x=-1;return Rt(oo,{isOpen:d,onOpenChange:p,position:"top-left",classNames:{popover:m1("cleen-w-80",i)},styles:{popover:s},content:Tr("div",{className:"cleen-flex cleen-flex-col",children:[Rt("div",{className:"cleen-border-b cleen-border-border cleen-p-2",children:Rt(Ie,{ref:u,value:f,placeholder:t.searchPlaceholder,leftIcon:Rt(Ct,{size:14}),onChange:w=>m(w.target.value),onKeyDown:I,role:"combobox","aria-expanded":d,"aria-autocomplete":"list"})}),Tr("div",{className:"cleen-max-h-72 cleen-overflow-y-auto cleen-py-1",role:"listbox",children:[a&&Rt("div",{className:"cleen-flex cleen-justify-center cleen-py-3",children:Rt(ce,{})}),!a&&!C.length&&Rt("div",{className:"cleen-px-3 cleen-py-4 cleen-text-center cleen-text-sm cleen-text-muted-foreground",children:t.noOptions}),v.map(w=>Tr(zN,{children:[Tr("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5 cleen-px-3 cleen-pb-1 cleen-pt-2 cleen-text-xs cleen-font-medium cleen-uppercase cleen-text-muted-foreground",children:[w.section.icon,w.section.label]}),w.options.map(R=>{x+=1;let T=x;return Tr("button",{type:"button",role:"option","aria-selected":T===b,onMouseEnter:()=>y(T),onClick:()=>S({sectionId:w.section.id,option:R}),className:m1("cleen-flex cleen-w-full cleen-flex-col cleen-px-3 cleen-py-1.5 cleen-text-left",T===b&&"cleen-bg-muted"),children:[Rt("span",{className:"cleen-text-sm cleen-text-foreground",children:R.label}),R.meta&&Rt("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:R.meta})]},R.id)})]},w.section.id))]})]}),children:Tr(te,{variant:"secondary",className:m1("cleen-gap-1.5",r),style:l,children:[Rt(nn,{size:14}),t.add]})})};import{cn as Ui}from"@cleen/ui-core";import{useEffect as hI,useRef as xn,useState as y1}from"react";var Cn=(e,t)=>`${e}|${t}`,Nr=(e,t=1)=>+`${Math.round(+`${e.toFixed(12)}e${t}`)}e-${t}`,Je=(e,t=1)=>Nr(e,t).toFixed(t),f1=e=>{let t=/^(\d{1,2}):([0-5]\d)$/.exec(e??"");if(!t)return null;let n=Number(t[1]),o=Number(t[2]);return n>23||o>59?null:n*60+o},h1=(e,t,n)=>{let o=f1(e),a=f1(t);if(o===null||a===null)return null;let r=a-o+(n?1440:0);return r>0?r:null},fI=e=>{let t=Math.floor(e/60),n=e%60;return[t?`${t} h`:"",n?`${n} min`:""].filter(Boolean).join(" ")},g1=e=>{let t=e.trim().replace(",",".");if(!t)return null;let n=/^(\d{1,2}):([0-5]\d)$/.exec(t);return n?Number(n[1])+Number(n[2])/60:/^\d*\.?\d+$|^\d+\.$/.test(t)?Number(t):Number.NaN},Ll=e=>{let t={};return typeof e.value=="number"&&e.value>0&&(t.value=e.value),e.note?.trim()&&(t.note=e.note.trim()),e.start&&(t.start=e.start),e.end&&(t.end=e.end),e.endsNextDay&&(e.start||e.end)&&(t.endsNextDay=!0),Object.keys(t).length?t:null},b1=(e,t,n)=>{let o={rows:{},sections:{},sectionColumns:{},columns:{},grand:0};return e.forEach(a=>{o.sections[a.id]=0,o.sectionColumns[a.id]={},a.rows.forEach(r=>{o.rows[r.id]=0,t.forEach(l=>{let i=n[Cn(r.id,l.id)]?.value??0;o.rows[r.id]+=i,o.sections[a.id]+=i,o.sectionColumns[a.id][l.id]=(o.sectionColumns[a.id][l.id]??0)+i,o.columns[l.id]=(o.columns[l.id]??0)+i,o.grand+=i})})}),o};import{jsx as we,jsxs as no}from"react/jsx-runtime";var gI=({cellKey:e,column:t,rowLabel:n,cell:o,min:a,max:r,precision:l,density:i,notePreviews:s,noteMaxLength:d,readOnly:p,flash:f,isDetailOpen:m,labels:b,onDetailOpenChange:y,onCommit:u,onNavigate:v,className:C,style:S,popoverClassName:I,popoverStyle:x})=>{let w=typeof o?.value=="number"?Je(o.value,l):"",[R,T]=y1(w),[N,D]=y1(null),[M,P]=y1({}),k=xn(null),E=xn(!1),L=xn(!1),F=xn(m);F.current=m;let O=xn(null),B=xn(null),A=xn(null);hI(()=>{T(w),D(null),B.current=null},[w]),hI(()=>{m&&(P(A.current??o??{}),A.current=null,E.current&&(E.current=!1,requestAnimationFrame(()=>k.current?.focus())))},[m]);let V=Je(a,l),U=Je(r,l),_=!!(o?.start&&o?.end),W=i==="compact",j=z=>{if(z===null)return null;if(Number.isNaN(z))return b.invalidError;let re=Nr(z,l);return re<a||re>r?b.rangeError(V,U):null},G=()=>{if(R===w||R===B.current)return D(null),o??{};let z=g1(R),re=j(z);if(D(re),re)return!1;let se=Ll({note:o?.note,value:z===null?void 0:Nr(z,l)});return B.current=R,F.current&&P(ye=>({...ye,value:se?.value,start:void 0,end:void 0,endsNextDay:void 0})),u(se),se??{}},H=()=>{if(L.current){L.current=!1;return}F.current&&R===O.current||G()},X=(z=!1)=>{if(p)return;let re=G();O.current=R,F.current=!0,A.current=re===!1?o??{}:re,E.current=z,y(!0)},$=z=>{if(z.key==="Escape"){T(w),D(null),L.current=!0,z.currentTarget.blur(),L.current=!1;return}if(z.key==="n"||z.key==="N"){z.preventDefault(),X(!0);return}if(z.key==="."&&z.ctrlKey){z.preventDefault(),X();return}let se={ArrowUp:"up",ArrowDown:"down",Enter:"down"}[z.key];se&&v&&(z.preventDefault(),G()!==!1&&v(se))},Y=h1(M.start,M.end,M.endsNextDay),ae=Y===null?null:Nr(Y/60,l),be=M.start&&M.end&&Y===null?b.timeError:null,pe=ae!==null?j(ae):null,Me=be??pe,q=z=>{if(z&&!Me){let re=ae??o?.value,se=Ll({...M,value:re,note:M.note?.slice(0,d)}),ye=JSON.stringify(Ll(o??{}));JSON.stringify(se)!==ye&&u(se),ae!=null&&(T(se?.value===void 0?"":Je(se.value,l)),D(null),B.current=null)}y(!1)},Q=no("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-p-3",onKeyDown:z=>{z.key==="Escape"&&(z.stopPropagation(),y(!1))},children:[no("div",{className:"cleen-flex cleen-flex-col",children:[we("span",{className:"cleen-text-sm cleen-font-medium cleen-text-foreground",children:t.title??t.label}),we("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:n})]}),no("div",{className:"cleen-grid cleen-grid-cols-2 cleen-gap-2",children:[we(Ie,{type:"time",label:b.start,value:M.start??"",onChange:z=>P(re=>({...re,start:z.target.value}))}),we(Ie,{type:"time",label:b.end,value:M.end??"",onChange:z=>P(re=>({...re,end:z.target.value}))})]}),no("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-gap-2",children:[we(hn,{label:b.endsNextDay,checked:!!M.endsNextDay,onChange:z=>P(re=>({...re,endsNextDay:z.target.checked}))}),(M.start||M.end)&&we(te,{variant:"borderless",className:"cleen-text-xs cleen-px-2 cleen-py-1",onClick:()=>P(z=>({...z,start:void 0,end:void 0,endsNextDay:void 0})),children:b.clearTimes})]}),Me?we("span",{className:"cleen-text-xs cleen-text-error",role:"alert",children:Me}):Y!==null&&ae!==null&&no("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:[fI(Y)," ="," ",we("span",{className:"cleen-font-medium cleen-text-foreground",children:b.formatHours(Number(Je(ae,l)))})]}),we(yl,{ref:k,label:b.note,placeholder:b.notePlaceholder,value:M.note??"",maxLength:d,onChange:z=>P(re=>({...re,note:z})),minHeight:64}),we("div",{className:"cleen-flex cleen-justify-end",children:we(te,{variant:"primary",disabled:!!Me,onClick:()=>q(!0),children:b.done})})]});return we("td",{className:Ui("cleen-group cleen-relative cleen-border-b cleen-border-border cleen-align-top cleen-transition-colors",W?"cleen-px-1 cleen-py-1":"cleen-px-1.5 cleen-py-1.5",t.tone==="accent"&&"cleen-bg-primary/10",t.tone==="muted"&&"cleen-bg-surface",f&&"cleen-bg-primary-100",C),style:S,"data-cell-key":e,children:no("div",{className:"cleen-flex cleen-flex-col cleen-gap-0.5",children:[no("div",{className:"cleen-relative cleen-flex cleen-items-center",children:[_&&we(fa,{size:12,className:"cleen-absolute cleen-left-1.5 cleen-text-muted-foreground cleen-pointer-events-none","aria-hidden":!0}),we("input",{type:"text",inputMode:"decimal","aria-label":`${n}, ${t.title??String(t.label)}`,"aria-invalid":!!N,title:N??void 0,readOnly:p,value:R,placeholder:p?"":"\u2013",onChange:z=>{T(z.target.value),N&&D(null)},onBlur:H,onKeyDown:$,"data-matrix-input":e,className:Ui("cleen-w-full cleen-min-w-0 cleen-rounded-md cleen-border cleen-bg-background cleen-text-right cleen-text-sm cleen-text-foreground cleen-tabular-nums cleen-outline-none cleen-transition-colors",W?"cleen-h-7 cleen-px-1.5":"cleen-h-8 cleen-px-2",_&&"cleen-pl-5",!p&&"cleen-pr-6",N?"cleen-border-error":"cleen-border-transparent hover:cleen-border-border focus:cleen-border-primary",!R&&"placeholder:cleen-text-neutral-300")}),!p&&we(oo,{className:"cleen-absolute cleen-right-0.5",isOpen:m,onOpenChange:z=>z?X():q(!0),position:"bottom-right",content:m?Q:null,classNames:{popover:Ui("cleen-w-72",I)},styles:{popover:x},children:we("button",{type:"button","aria-label":b.details,title:b.details,tabIndex:-1,className:Ui("cleen-flex cleen-h-6 cleen-w-5 cleen-items-center cleen-justify-center cleen-rounded cleen-text-muted-foreground hover:cleen-bg-muted hover:cleen-text-foreground",m?"cleen-opacity-100":"cleen-opacity-0 group-hover:cleen-opacity-100 group-focus-within:cleen-opacity-100"),children:we(va,{size:14})})})]}),N&&we("span",{className:"cleen-text-[10px] cleen-leading-tight cleen-text-error",children:N}),o?.note&&s&&!W?no("button",{type:"button",onClick:()=>X(!0),title:o.note,disabled:p,className:"cleen-flex cleen-max-w-full cleen-items-center cleen-gap-1 cleen-rounded cleen-px-1 cleen-text-left cleen-text-[11px] cleen-text-muted-foreground hover:cleen-bg-muted hover:cleen-text-foreground",children:[we(on,{size:11,className:"cleen-shrink-0"}),we("span",{className:"cleen-truncate",children:o.note})]}):o?.note?we("button",{type:"button",onClick:()=>X(!0),title:o.note,"aria-label":o.note,disabled:p,className:"cleen-ml-auto cleen-mr-1 cleen-text-muted-foreground hover:cleen-text-foreground",children:we(on,{size:11})}):!p&&s&&!W&&typeof o?.value=="number"&&no("button",{type:"button",tabIndex:-1,onClick:()=>X(!0),className:"cleen-flex cleen-items-center cleen-gap-1 cleen-rounded cleen-px-1 cleen-text-[11px] cleen-text-muted-foreground cleen-opacity-0 group-hover:cleen-opacity-100 hover:cleen-bg-muted hover:cleen-text-foreground",children:[we(on,{size:11}),b.addNote]})]})})};var bI={corner:"",total:"Total",footer:"Daily total",add:"Add row",searchPlaceholder:"Search",noOptions:"No matches found",emptySection:"No rows have values in this period.",details:"Start and end time, note",start:"Start",end:"End",endsNextDay:"Ends next day",clearTimes:"Clear times",note:"Note (optional)",notePlaceholder:"Describe the work performed",addNote:"Add note",done:"Done",removeRow:"Remove row",collapse:"Collapse",expand:"Expand",hint:"",rangeError:(e,t)=>`Enter a value from ${e} to ${t}`,invalidError:"Enter a number",timeError:"End time must be after the start time",formatHours:e=>`${e} h`};import{jsx as he,jsxs as mt}from"react/jsx-runtime";var v1=e=>typeof e=="string"||typeof e=="number"?String(e):"",II={},CI=[],qN=UN(function({columns:t,sections:n,values:o,defaultValues:a,onValuesChange:r,onCellChange:l,onAddRow:i,onRemoveRow:s,onAddRowSearchChange:d,isAddRowLoading:p=!1,min:f=.1,max:m=24,precision:b=1,density:y="comfortable",notePreviews:u=!0,noteMaxLength:v=1e3,readOnly:C=!1,isLoading:S=!1,flash:I,showFooter:x=!0,showHint:w=!0,collapsedSections:R,defaultCollapsedSections:T,onCollapsedSectionsChange:N,labels:D,className:M,classNames:P,style:k,styles:E,...L},F){let O={...bI,...D},B=$N(null),[A,V]=WN(null),{value:U=II,handleChange:_}=yI({value:o,defaultValue:a??II,onChange:r}),{value:W=CI,handleChange:j}=yI({value:R,defaultValue:T??CI,onChange:N}),G=vI(()=>b1(n,t,U),[n,t,U]),H=q=>q?Je(q,b):"",X=vI(()=>n.filter(q=>!W.includes(q.id)).flatMap(q=>q.rows.map(Q=>Q.id)),[n,W]),$=(q,Q,z,re)=>{let se=Cn(Q,z),ye=U[se]??null,ue={...U};re?ue[se]=re:delete ue[se],_(ue),l?.({key:se,sectionId:q,rowId:Q,columnId:z,value:re,previous:ye})},Y=(q,Q,z)=>{let re=X.indexOf(q),se=t.findIndex(Z=>Z.id===Q),ye=X[re+(z==="down"?1:z==="up"?-1:0)],ue=t[se+(z==="right"?1:z==="left"?-1:0)];if(!ye||!ue)return;let xe=B.current?.querySelector(`[data-matrix-input="${CSS.escape(Cn(ye,ue.id))}"]`);xe?.focus(),xe?.select()},ae=q=>j(W.includes(q)?W.filter(Q=>Q!==q):[...W,q]),be=y==="compact",pe="cleen-sticky cleen-left-0 cleen-z-[1] cleen-bg-background cleen-border-r cleen-border-border",Me=!C&&!!i&&n.some(q=>!q.readOnly&&(d||q.options?.length));return mt("div",{ref:F,className:je("cleen cleen-relative cleen-flex cleen-flex-col cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background",M,P?.container),style:{...k,...E?.container},...L,children:[he("div",{className:"cleen-overflow-x-auto",children:mt("table",{ref:B,className:je("cleen-w-full cleen-border-separate cleen-border-spacing-0 cleen-text-sm",P?.table),style:E?.table,children:[he("thead",{children:mt("tr",{children:[he("th",{scope:"col",className:je(pe,"cleen-min-w-56 cleen-border-b cleen-px-3 cleen-py-2 cleen-text-left cleen-text-xs cleen-font-medium cleen-text-muted-foreground",P?.headerCell),style:E?.headerCell,children:O.corner}),t.map(q=>mt("th",{scope:"col",title:q.title,className:je("cleen-min-w-20 cleen-border-b cleen-border-border cleen-px-2 cleen-py-2 cleen-text-center cleen-font-medium",q.tone==="accent"&&"cleen-bg-primary/10 cleen-text-primary",q.tone==="muted"&&"cleen-bg-surface cleen-text-muted-foreground",(!q.tone||q.tone==="default")&&"cleen-text-foreground",P?.headerCell),style:E?.headerCell,children:[he("div",{className:"cleen-text-xs",children:q.label}),q.sublabel&&he("div",{className:"cleen-text-[11px] cleen-font-normal cleen-text-muted-foreground",children:q.sublabel})]},q.id)),he("th",{scope:"col",className:je("cleen-min-w-20 cleen-border-b cleen-border-l cleen-border-border cleen-bg-muted cleen-px-3 cleen-py-2 cleen-text-right cleen-text-xs cleen-font-medium cleen-text-foreground",P?.headerCell),style:E?.headerCell,children:O.total})]})}),he("tbody",{children:n.map(q=>{let Q=W.includes(q.id);return mt(GN,{children:[mt("tr",{className:je("cleen-bg-muted",P?.sectionRow),style:E?.sectionRow,children:[he("th",{scope:"rowgroup",className:je(pe,"cleen-bg-muted cleen-border-b cleen-px-2 cleen-py-1.5 cleen-text-left"),children:mt("button",{type:"button",onClick:()=>ae(q.id),"aria-expanded":!Q,"aria-label":`${Q?O.expand:O.collapse} ${v1(q.label)}`,className:"cleen-flex cleen-w-full cleen-items-center cleen-gap-2 cleen-text-xs cleen-font-semibold cleen-uppercase cleen-text-foreground",children:[he(Jo,{size:14,className:je("cleen-transition-transform",Q&&"-cleen-rotate-90")}),q.icon,he("span",{children:q.label}),he("span",{className:"cleen-rounded-full cleen-bg-background cleen-px-1.5 cleen-text-[11px] cleen-font-medium cleen-normal-case cleen-text-muted-foreground",children:q.rows.length})]})}),t.map(z=>he("td",{className:"cleen-border-b cleen-border-border cleen-px-2 cleen-py-1.5 cleen-text-right cleen-text-xs cleen-font-medium cleen-tabular-nums cleen-text-muted-foreground",children:H(G.sectionColumns[q.id]?.[z.id]??0)},z.id)),he("td",{className:"cleen-border-b cleen-border-l cleen-border-border cleen-px-3 cleen-py-1.5 cleen-text-right cleen-text-xs cleen-font-semibold cleen-tabular-nums cleen-text-foreground",children:Je(G.sections[q.id]??0,b)})]}),!Q&&!q.rows.length&&he("tr",{children:he("td",{colSpan:t.length+2,className:"cleen-border-b cleen-border-border cleen-px-3 cleen-py-3 cleen-text-sm cleen-text-muted-foreground",children:q.emptyText??O.emptySection})}),!Q&&q.rows.map(z=>{let re=C||!!(q.readOnly||z.readOnly),se=G.rows[z.id]??0,ye=!re&&!!s&&z.removable!==!1&&!t.some(ue=>U[Cn(z.id,ue.id)]);return mt("tr",{className:je("cleen-group/row",P?.row),style:E?.row,children:[he("th",{scope:"row",className:je(pe,"cleen-border-b cleen-text-left cleen-font-normal",be?"cleen-px-3 cleen-py-1":"cleen-px-3 cleen-py-2",P?.rowLabel),style:E?.rowLabel,children:mt("div",{className:"cleen-flex cleen-items-start cleen-gap-2",children:[mt("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col",children:[he("span",{className:"cleen-truncate cleen-text-sm cleen-font-medium cleen-text-foreground",children:z.label}),z.meta&&!be&&he("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:z.meta})]}),ye&&he("button",{type:"button","aria-label":`${O.removeRow} ${v1(z.label)}`,title:O.removeRow,onClick:()=>s?.({sectionId:q.id,rowId:z.id}),className:"cleen-rounded cleen-p-0.5 cleen-text-muted-foreground cleen-opacity-0 hover:cleen-bg-muted hover:cleen-text-foreground focus:cleen-opacity-100 group-hover/row:cleen-opacity-100",children:he(He,{size:14})})]})}),t.map(ue=>{let xe=Cn(z.id,ue.id);return he(gI,{cellKey:xe,column:ue,rowLabel:v1(z.label),cell:U[xe],min:f,max:m,precision:b,density:y,notePreviews:u,noteMaxLength:v,readOnly:re,flash:I?.[xe],isDetailOpen:A===xe,labels:O,onDetailOpenChange:Z=>V(Z?xe:null),onCommit:Z=>$(q.id,z.id,ue.id,Z),onNavigate:Z=>Y(z.id,ue.id,Z),className:P?.cell,style:E?.cell,popoverClassName:P?.popover,popoverStyle:E?.popover},ue.id)}),he("td",{className:je("cleen-border-b cleen-border-l cleen-border-border cleen-bg-surface cleen-px-3 cleen-text-right cleen-font-medium cleen-tabular-nums cleen-text-foreground",P?.totalCell),style:E?.totalCell,children:Je(se,b)})]},z.id)})]},q.id)})}),x&&he("tfoot",{children:mt("tr",{className:je("cleen-bg-muted",P?.footer),style:E?.footer,children:[he("th",{scope:"row",className:je(pe,"cleen-bg-muted cleen-px-3 cleen-py-2 cleen-text-left cleen-text-xs cleen-font-semibold cleen-text-foreground"),children:O.footer}),t.map(q=>he("td",{className:je("cleen-px-2 cleen-py-2 cleen-text-right cleen-font-semibold cleen-tabular-nums",q.tone==="accent"?"cleen-text-primary":"cleen-text-foreground"),children:H(G.columns[q.id]??0)},q.id)),he("td",{className:"cleen-border-l cleen-border-border cleen-px-3 cleen-py-2 cleen-text-right cleen-font-bold cleen-tabular-nums cleen-text-primary",children:Je(G.grand,b)})]})})]})}),(Me||w&&!C)&&mt("div",{className:"cleen-flex cleen-flex-wrap cleen-items-center cleen-justify-between cleen-gap-3 cleen-border-t cleen-border-border cleen-px-3 cleen-py-2",children:[Me&&i?he(uI,{sections:n,labels:O,onAddRow:i,onSearchChange:d,isLoading:p,className:P?.addButton,style:E?.addButton,popoverClassName:P?.popover,popoverStyle:E?.popover}):he("span",{}),w&&!C&&he("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:O.hint||`Type a value from ${Je(f,b)} to ${Je(m,b)}, or open the cell menu for a start and end time. Press N in a cell for its note.`})]}),S&&he("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center cleen-rounded-lg cleen-bg-background/60",children:he(ce,{})})]})});var KN=e=>{let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;let n={dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat("en-US",n).format(t)}catch{return new Intl.DateTimeFormat("en-US",n).format(t)}},xI={uploaded:e=>`Uploaded: ${KN(e)}`};var I1={"image/":"image","video/":"video","audio/":"audio"},C1={"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"},PI={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"},SI=["http:","https:","blob:"];var XN=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in C1)return C1[t];let n=Object.keys(I1).find(o=>t.startsWith(o));return n?I1[n]:void 0},x1=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},YN=e=>{let t=x1(e);return t?PI[t]:void 0},wI=e=>XN(e.type)??YN(e.name)??"generic",MI=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return SI.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as ro,formatFileSize as QN}from"@cleen/ui-core";import{forwardRef as ZN,useMemo as kI,useState as JN}from"react";import{Fragment as eB,jsx as Et,jsxs as Gi}from"react/jsx-runtime";var jN=ZN(function({file:t,preview:n=!1,onRemove:o,description:a,labels:r,className:l,classNames:i,style:s,styles:d,...p},f){let[m,b]=JN(),y=kI(()=>({...xI,...r}),[r]),u=wI(t),v=L0(x1(t.name)),C=MI(t.url)?t.url:void 0,S=t.previewUrl||t.url,I=n&&(u==="image"||u==="video")&&!!S&&m!==S,x=kI(()=>{if(a!=null)return a;let N=[];if(t.size!=null&&N.push(QN(t.size)),t.uploadedAt!=null){let D=y?.uploaded(t.uploadedAt);D&&N.push(D)}return N.length>0?N.join(" \u2022 "):null},[a,t.uploadedAt,t.size,y]),w=N=>{N.stopPropagation(),o?.(t)},R=ro("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=Gi(eB,{children:[Gi("div",{className:ro("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:d?.media,children:[I&&(u==="image"||u==="video"&&t.previewUrl)&&Et("img",{src:S,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>b(S)}),I&&u==="video"&&!t.previewUrl&&Et("video",{src:S,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>b(S)}),!I&&Et(v,{"aria-hidden":!0,className:ro("cleen-size-5",i?.icon),style:d?.icon})]}),Gi("div",{className:ro("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:d?.content,children:[Et("span",{className:ro("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:d?.title,title:t.name,children:t.name}),x!==null&&Et("span",{className:ro("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:d?.description,children:x})]})]});return Et("div",{className:ro("cleen",l),style:s,ref:f,...p,children:Gi("div",{className:ro("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:d?.container,children:[C?Et("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:R,style:d?.main,children:T}):Et("div",{className:R,style:d?.main,children:T}),o&&Et("button",{type:"button",className:ro("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:d?.removeButton,onClick:w,children:Et(He,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var $i={filterName:"",exposed:!1};import{createContext as tB}from"react";var ut=tB({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as oB}from"@cleen/ui-core";import{useContext as nB,useState as rB}from"react";import{Fragment as aB,jsx as Dl,jsxs as P1}from"react/jsx-runtime";var TI={min:3,max:50},NI=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:n,setIsSaveFiltersStep:o,handleCloseSaveFilter:a,setError:r,onSave:l,classNames:i,styles:s,labels:d,withSavedFilters:p=!0,onCancel:f,onApply:m}=nB(ut),[b,y]=rB(!1),u=async()=>{try{if(t.filterName.length<TI.min){r?.("filterName",d?.saveStep?.validation?.tooShort);return}if(t.filterName.length>TI.max){r?.("filterName",d?.saveStep?.validation?.tooLong);return}y(!0),await l?.(t),o(!1)}catch(v){console.error("Error saving filters:",v)}finally{y(!1)}};return e?P1("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[Dl(te,{onClick:()=>o(!1),variant:"secondary",...i?.saveFilter?.backBtn,...s?.saveFilter?.backBtn,children:d?.saveStep?.back}),Dl(te,{onClick:u,isLoading:b,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...s?.saveFilter?.saveBtn,children:d?.saveStep?.save})]}):P1(aB,{children:[p&&Dl(te,{onClick:()=>{n($i),o(!0)},variant:"borderless-blue",...i?.saveBtn,...s?.saveBtn,children:d?.save}),P1("div",{className:oB("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!p}),children:[Dl(te,{onClick:()=>{f?.(),a()},variant:"secondary",...i?.cancelBtn,...s?.cancelBtn,children:d?.cancel}),Dl(te,{onClick:()=>{m?.(),a()},...i?.applyBtn,...s?.applyBtn,children:d?.apply})]})]})};import{cn as Wi}from"@cleen/ui-core";import{Link as lB}from"react-router-dom";import{Fragment as RI,jsx as Pn,jsxs as S1}from"react/jsx-runtime";var BI=({item:e,classNames:t,styles:n})=>({disabled:e?.disabled,className:Wi("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-foreground cleen-text-sm cleen-text-left cleen-transition-colors",e?.disabled?"cleen-opacity-50 cleen-select-none cleen-cursor-not-allowed cleen-pointer-events-none":"hover:cleen-bg-muted cleen-cursor-pointer",{"cleen-text-error hover:cleen-bg-error-bg":e?.danger},t?.container),style:n?.container,children:S1(RI,{children:[e?.icon,Pn("span",{className:Wi("cleen-flex-1",t?.label),style:n?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),w1=({item:e,isLast:t,handleClick:n,onEnterSubmenu:o,classNames:a,styles:r})=>{switch(e?.type){case"group":return S1(RI,{children:[e?.label&&Pn("p",{className:Wi("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",a?.groupLabel),style:r?.groupDivider,children:e?.label}),e?.items?.map((l,i,s)=>Pn(w1,{item:l,handleClick:n,onEnterSubmenu:o,isLast:i===s.length-1},l?.id||i)),!t&&Pn("hr",{className:Wi("cleen-text-neutral-200",a?.groupDivider),style:r?.groupDivider})]});case"button":{let l=e?.submenu&&e?.submenu?.length>0;return S1("button",{type:"button",onClick:()=>{l?o?.(e.submenu,e?.label):n?.(e)},...BI({item:e,classNames:a,styles:r}),children:[e?.icon,Pn("span",{className:"cleen-flex-1",children:e?.label}),l&&Pn(bt,{className:"cleen-size-4 cleen-text-neutral-400"})]})}case"link":return Pn(lB,{to:"",...BI({item:e,classNames:a,styles:r})});default:return null}};import{cn as cB}from"@cleen/ui-core";import{useEffect as EI,useState as LI}from"react";import{Fragment as iB,jsx as DI,jsxs as FI}from"react/jsx-runtime";var AI=({items:e,keepOpenOnClick:t,hideMenu:n,classNames:o,styles:a})=>{let[r,l]=LI([]),[i,s]=LI(e),d=(m,b)=>{l(y=>[...y,{items:i,title:b}]),s(m)},p=()=>{let m=r[r?.length-1];m&&(s(m?.items),l(b=>b?.slice(0,-1)))};EI(()=>{s(e),l([])},[e]),EI(()=>{let m=b=>{if(b.key==="Escape")if(r.length>0){let y=r?.[r?.length-1];s(y?.items),l(u=>u?.slice(0,-1))}else n()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[n,r]);let f=m=>{m?.onClick?.(),t||n()};return FI(iB,{children:[r?.length>0&&FI("button",{onClick:p,className:cB("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-sm cleen-text-foreground hover:cleen-bg-neutral-50",o?.submenuButton),style:a?.submenuButton,children:[DI(Yt,{className:"cleen-size-4 cleen-text-neutral-300"}),r?.[r?.length-1]?.title]}),i?.map((m,b,y)=>DI(w1,{item:m,isLast:b===y?.length-1,handleClick:f,onEnterSubmenu:d,classNames:o?.item,styles:a?.item},m?.id||b))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as sB,cn as M1,useDisclosure as pB,useOutsideClick as dB,usePositionClose as mB,ZIndex as uB}from"@cleen/ui-core";import{forwardRef as fB,useRef as OI}from"react";import{createPortal as hB}from"react-dom";import{jsx as qi,jsxs as gB}from"react/jsx-runtime";var Br=fB(function({items:t=[],position:n="bottom-left",keepOpenOnClick:o=!0,triggerRef:a,menuRef:r,ignoreClickOutside:l=!1,zIndex:i=uB.MENU,children:s,className:d,classNames:p,style:f,styles:m,...b},y){let{isOpen:u,toggle:v,close:C}=pB(),S=OI(null),I=OI(null),x=a??S,w=r??I,{positionStyles:R,isMounted:T}=mB({triggerRef:x,targetRef:w,position:n,isOpen:u});dB({refs:[x,w],handler:C,enabled:u});let N=()=>{v()};return gB("div",{className:M1("cleen",d),style:f,ref:y,...b,children:[qi("div",{ref:x,onClick:N,className:M1("cleen-size-fit",p?.trigger,u&&p?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:s}),u&&hB(qi("div",{className:"cleen",...l&&{[sB]:"true"},children:qi("div",{ref:w,className:M1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!T},p?.menu),style:{zIndex:i,top:`${R.top}px`,left:`${R.left}px`,...m?.menu},children:qi(AI,{items:t,keepOpenOnClick:o,hideMenu:C,classNames:p,styles:m})})}),document.body)]})});import{cn as Ki,ColorHelpers as Xi}from"@cleen/ui-core";import{useMemo as bB}from"react";var k1=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow","foreground-transparent"],T1={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"},_I={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"},VI={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"},zI={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"},HI={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var UI=(e,t)=>!e&&!t?"primary":t?k1[t%k1.length]:e;import{jsx as N1,jsxs as yB}from"react/jsx-runtime";var Le=({className:e,classNames:t,style:n,styles:o,label:a,color:r="primary",variant:l="rounded",showDot:i=!1,icon:s,removeable:d=!1,withBorder:p=!0,filled:f=!1,onRemoveClicked:m,onClick:b,colorByIndex:y,children:u,...v})=>{let{variantClass:C,dotVariantClass:S,dotVariantStyle:I,variantStyle:x}=bB(()=>{let w={};if(r in T1){let R=UI(r,y);w.variantClass=f?_I[R]:T1[R],w.dotVariantClass=f?zI[R]:VI[R]}else w.variantStyle={borderColor:f?r:Xi.trasparentize(r,.8),backgroundColor:f?r:Xi.trasparentize(r,.95),color:f?Xi.adjustColorForContrast(r,.5):r},w.dotVariantStyle={backgroundColor:f?Xi.adjustColorForContrast(r,.5):r};return w},[r,y,f]);return N1("div",{className:Ki("cleen",e),style:n,children:yB("span",{className:Ki("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-text-xs cleen-font-medium cleen-py-0.5 cleen-px-2 cleen-w-fit cleen-min-w-max cleen-transition-all cleen-duration-200",{"cleen-border":p},C,HI[l],{"hover:cleen-opacity-80 cleen-cursor-pointer":b||d},t?.container),style:{...x,...o?.container},onClick:b,...v,children:[i&&N1("span",{className:Ki("cleen-size-2 cleen-rounded-[50%]",S,t?.dot),style:{...I,...o?.dot}}),s,a??u,d&&N1(He,{className:Ki("cleen-size-3 cleen-cursor-pointer cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-transition-transform cleen-duration-200 hover:cleen-scale-125",t?.removable),style:o?.removable,onClick:m})]})})};import{cn as IB}from"@cleen/ui-core";import{useContext as CB,useState as GI}from"react";import{jsx as Lt,jsxs as xB}from"react/jsx-runtime";var $I=({filter:e,activeTabId:t})=>{let[n,o]=GI(!1),[a,r]=GI(!1),{labels:l,onFilterDelete:i,onFilterPin:s,onFilterSelect:d,onFilterUnpin:p,setIsFiltersDropdownOpen:f}=CB(ut),m=async()=>{try{if(!i)return;o(!0),await i(e.filterID)}catch(y){console.error("Error while deleting filter:",y)}finally{o(!1)}},b=async()=>{try{r(!0),e?.isPinned?await p?.(e.filterID):await s?.(e.filterID)}catch(y){console.error("Error while pinning/unpinnning filter:",y)}finally{r(!1)}};return Lt("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:xB("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{d?.(e),f(!1)},children:[Lt("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),a?Lt(ce,{classNames:{loader:"cleen-size-5"}}):Lt(Le,{color:"gray",onClick:y=>{y.stopPropagation(),b()},icon:Lt(Wa,{name:"pin",className:IB("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?l?.savedFilters?.filter?.unpin:l?.savedFilters?.filter?.pin}),t==="mine"&&Lt(Br,{items:[{id:"duplicate",type:"button",label:l?.savedFilters?.filter?.cancelDelete,icon:Lt(He,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:l?.savedFilters?.filter?.delete,icon:Lt(pt,{}),danger:!0,onClick:()=>m()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:y=>y.stopPropagation(),className:"cleen-flex",children:n?Lt(ce,{size:"sm",color:"rgb(var(--cleen-error))"}):Lt(pt,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as Lo}from"@cleen/ui-core";import{forwardRef as PB,Fragment as SB,useMemo as qI,useState as KI}from"react";import{cn as B1}from"@cleen/ui-core";var Fl={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"}},WI=e=>{let t=e==="vertical";return{underlined:{list:B1("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:B1("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:B1("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 Al,jsxs as XI}from"react/jsx-runtime";var Yi=(e,t)=>e?.id??String(t),Ol=PB(function({tabs:t,variant:n="underlined",direction:o="horizontal",currentTabIndex:a,onTabChange:r,multiple:l=!1,activeTabIds:i,defaultActiveTabIds:s,onChange:d,className:p,classNames:f,style:m,styles:b,...y},u){let[v,C]=KI(0),I=a!==void 0?a:v,[x,w]=KI(s??[]),R=i??x,T=qI(()=>{if(!l){let P=t?.[I];return P?[P]:[]}return t?.filter((P,k)=>R.includes(Yi(P,k)))??[]},[t,l,I,R]),N=(P,k)=>l?R.includes(Yi(P,k)):I===k,D=(P,k)=>{if(l){let E=Yi(k,P),L=R.includes(E),F=t?.map((O,B)=>Yi(O,B)).filter(O=>O===E?!L:R.includes(O))??[];w(F),d?.(F)}else C(P);r?.(P,k)},M=qI(()=>WI(o),[o]);return Al("div",{className:Lo("cleen",p),style:m,ref:u,...y,children:XI("div",{className:Lo(Fl[o].container,f?.container),style:b?.container,children:[Al("nav",{className:Lo(M[n].list,Fl[o].list,f?.list),"aria-label":"Tabs",style:b?.list,children:t?.map((P,k)=>{let E=N(P,k),L=P?.isDisabled;return XI("button",{type:"button",disabled:L,onClick:()=>D(k,P),className:Lo("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",!L&&"cleen-cursor-pointer",M[n].tab,Fl[o].tab,f?.tab,L?Lo(M[n].tabDisabled,f?.tabDisabled):E?Lo(M[n].tabActive,f?.tabActive):Lo(M[n].tabInactive,f?.tabInactive)),style:{...b?.tab,...L?b?.tabDisabled:E?b?.tabActive:b?.tabInactive},"aria-current":E?"page":void 0,children:[P?.label,!!P?.badge?.label&&Al(Le,{variant:"rounded",color:E?"blue":"gray",...f?.count,...b?.count,...P.badge})]},P?.id||k)})}),T.some(P=>!!P?.content)&&Al("div",{className:Lo("h-full",l&&"cleen-flex cleen-flex-col cleen-gap-4",Fl[o].content,f?.content),style:b?.content,children:T.map((P,k)=>Al(SB,{children:P?.content},P?.id||k))})]})})});import{useContext as wB,useState as MB}from"react";import{jsx as Sn,jsxs as TB}from"react/jsx-runtime";var kB=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},YI=({selectedSavedFilter:e,filters:t,isFiltersFetching:n,onFilterCategoryChange:o})=>{let[a,r]=MB("all"),{labels:l,classNames:i,styles:s,isFiltersDropdownOpen:d,setIsFiltersDropdownOpen:p}=wB(ut);return Sn(Tl,{isOpen:d,onOpenChange:p,leftIcon:Sn(Na,{className:"cleen-size-5"}),label:e?.title??l?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...s?.dropdown,children:TB("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[Sn(Ol,{tabs:[{id:"all",label:l?.savedFilters?.tabs?.all},{id:"mine",label:l?.savedFilters?.tabs?.mine},{id:"shared",label:l?.savedFilters?.tabs?.shared},{id:"featured",label:l?.savedFilters?.tabs?.featured},{id:"pinned",label:l?.savedFilters?.tabs?.pinned}],variant:"padded",onTabChange:(f,m)=>{r(m?.id),o?.(kB(m?.id))},classNames:{list:"cleen-mb-2"}}),Sn("div",{className:"flex flex-col",children:n?Sn(ce,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(f=>Sn($I,{filter:f,activeTabId:a},f.filterID)):Sn("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:l?.savedFilters?.noFilters})})]})})};import{cn as ao}from"@cleen/ui-core";import{forwardRef as NB,useEffect as BB,useId as RB,useState as EB}from"react";import{jsx as wn,jsxs as R1}from"react/jsx-runtime";var E1=NB(function({id:t,name:n,required:o,checked:a,defaultChecked:r=!1,onChange:l,title:i,label:s,labelTooltip:d,sublabel:p,disabled:f,classNames:m,className:b,style:y,styles:u,infoLabels:v,...C},S){let I=typeof a=="boolean",[x,w]=EB(r);BB(()=>{I||w(r)},[r,I]);let R=I?a:x,T=RB(),N=i?`${T}-title`:void 0,D=s?`${T}-label`:void 0,M=[N,D].filter(Boolean).join(" ")||void 0,P=()=>{f||(I||w(!x),l?.(!R))};return wn("div",{className:ao("cleen",b),style:y,children:R1("div",{className:ao("cleen-flex cleen-flex-col",m?.container),style:u?.container,children:[i&&wn(de,{id:N,htmlFor:t||n,required:o,tooltip:d,className:ao("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...u?.title,children:i}),R1("div",{className:ao("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:u?.switchContainer,children:[wn("button",{id:t||n,type:"button",role:"switch","aria-checked":R,"aria-labelledby":M,disabled:f,onClick:P,className:ao("cleen-inline-flex cleen-relative cleen-flex-shrink-0 cleen-my-auto cleen-mb-auto cleen-border-2 cleen-border-transparent cleen-rounded-full cleen-w-11 cleen-h-6 cleen-transition-colors cleen-duration-200 cleen-ease-in-out cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",R?"cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]":"cleen-bg-neutral-200 hover:cleen-bg-neutral-300",m?.switch),style:u?.switch,ref:S,...C,children:wn("span",{"aria-hidden":"true",className:ao("cleen-inline-block cleen-bg-primary-foreground cleen-shadow cleen-rounded-full cleen-ring-0 cleen-w-5 cleen-h-5 cleen-transition cleen-duration-200 cleen-ease-in-out cleen-pointer-events-none cleen-transform",R?"cleen-translate-x-5":"cleen-translate-x-0",m?.check),style:u?.check})}),(s||p)&&R1("div",{className:ao("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:u?.labelContainer,children:[s&&wn("span",{id:D,className:ao("cleen-font-semibold cleen-text-foreground",m?.label),style:u?.label,children:s}),p&&wn("span",{className:ao("cleen-font-normal cleen-text-muted-foreground",m?.sublabel),style:u?.sublabel,children:p})]})]}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&wn(ie,{...v})]})})});import{useContext as LB}from"react";import{Fragment as DB,jsx as QI,jsxs as FB}from"react/jsx-runtime";var ZI=()=>{let{classNames:e,styles:t,labels:n,saveStepValues:o,setSaveStepValues:a,errors:r,clearError:l}=LB(ut);return FB(DB,{children:[QI(Ie,{value:o.filterName,onChange:i=>{a(s=>({...s,filterName:i.target.value})),r?.filterName&&l?.("filterName")},label:n?.saveStep?.filterNameInput?.label,placeholder:n?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:r?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),QI(E1,{checked:o.exposed,onChange:i=>a(s=>({...s,exposed:i})),title:n?.saveStep?.exposureSwitch?.title,label:n?.saveStep?.exposureSwitch?.label,sublabel:n?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var JI={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 AB}from"@cleen/ui-core";import{useState as L1}from"react";import{jsx as OB}from"react/jsx-runtime";var jI=({children:e,value:t})=>{let[n,o]=L1(!1),[a,r]=L1($i),{errors:l,setError:i,clearError:s}=AB({}),[d,p]=L1(!1),f=()=>{o(!1),t?.onClose?.()};return OB(ut.Provider,{value:{isSaveFiltersStep:n,setIsSaveFiltersStep:o,saveStepValues:a,setSaveStepValues:r,handleCloseSaveFilter:f,isFiltersDropdownOpen:d,setIsFiltersDropdownOpen:p,errors:l,setError:i,clearError:s,...t},children:e})};import{applyDefaults as _B,cn as eC}from"@cleen/ui-core";import{forwardRef as tC,useContext as VB}from"react";import{Fragment as UB,jsx as Do,jsxs as GB}from"react/jsx-runtime";var zB=tC(function({selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,children:a,classNames:r,styles:l,labels:i,withSavedFilters:s=!0,onClear:d,onSave:p,onCancel:f,onApply:m,onClose:b,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:v,onFilterPin:C,onFilterSelect:S,onFilterUnpin:I,...x},w){return Do(jI,{value:{selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,classNames:r,styles:l,labels:_B(JI,i),withSavedFilters:s,onClear:d,onSave:p,onCancel:f,onApply:m,onClose:b,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:v,onFilterPin:C,onFilterSelect:S,onFilterUnpin:I},children:Do(HB,{...x,ref:w,children:a})})}),HB=tC(function({children:t,...n},o){let{handleCloseSaveFilter:a,isSaveFiltersStep:r,selectedSavedFilter:l,savedFilters:i,isFiltersFetching:s,classNames:d,styles:p,labels:f,withSavedFilters:m=!0,onClear:b,onFilterCategoryChange:y,onFilterSelect:u}=VB(ut);return Do(j0,{footer:Do(NI,{}),headerCloseBtn:Do(te,{onClick:()=>{b?.(),u?.(void 0)},leftIcon:Do(pt,{}),variant:"secondary",...d?.clearBtn,...p?.clearBtn,children:f?.clear}),classNames:{...d,content:eC("cleen-space-y-4",d?.content),footer:eC("cleen-justify-between",d?.footer)},onClose:a,ref:o,...n,title:r?f?.saveStep?.title:n.title,subtitle:r?f?.saveStep?.subtitle:n.subtitle,children:r?Do(ZI,{}):GB(UB,{children:[m&&Do(YI,{filters:i,selectedSavedFilter:l,onFilterCategoryChange:y,isFiltersFetching:s}),t]})})});import{cn as Rr}from"@cleen/ui-core";import{forwardRef as $B}from"react";import{jsx as Qi,jsxs as oC}from"react/jsx-runtime";var nC=$B(({title:e,titleTooltip:t,subtitle:n,required:o,labelProps:a,children:r,className:l,classNames:i,style:s,styles:d,...p},f)=>Qi("div",{ref:f,className:Rr("cleen",l),style:{...s,width:"100%"},...p,children:oC("div",{className:Rr("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:d?.container,children:[oC("div",{className:Rr("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:d?.titleColumn,children:[Qi(de,{...a,required:o,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:Rr("cleen-truncate",i?.title?.classNames?.label)},...d?.title,children:e}),n&&Qi("div",{className:Rr("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:d?.subtitle,children:n})]}),Qi("div",{className:Rr("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:d?.controlsRow,children:r})]})}));nC.displayName="FormGroup";import{cn as Ve,useDebounce as WB,useOutsideClick as qB,usePositionClose as KB,ZIndex as XB}from"@cleen/ui-core";import{useEffect as Zi,useMemo as D1,useRef as F1,useState as St}from"react";import{createPortal as YB}from"react-dom";import{Fragment as JB,jsx as oe,jsxs as et}from"react/jsx-runtime";function QB(e){return e!==null&&typeof e=="object"}function qe(e,t){if(QB(e)&&t in e)return e[t]}function rC(e,t){let n=qe(e,t);return Array.isArray(n)?n:[]}function aC(e,t){let n=e?.[t];if(typeof n=="string"||typeof n=="number")return n;let o=e?.data?.[t];return typeof o=="string"||typeof o=="number"?o:null}var ZB=({position:e="bottom-right",labels:t,groups:n=[],selectedItemID:o=null,groupThreeDotMenuOptions:a=[],itemThreeDotMenuOptions:r=[],refetchData:l,onGroupSave:i,onItemSave:s,onGroupThreeDotMenuClick:d,onItemThreeDotMenuClick:p,onSearchChange:f,onItemSelect:m,groupIDKey:b,groupTitleKey:y,itemsKey:u,itemIDKey:v,itemGroupIDKey:C,itemTitleKey:S,itemSubtitleKey:I,newValueMinLength:x=2,isLoading:w=!1,isGroupSaving:R=!1,isItemSaving:T=!1,selectedColor:N="rgb(var(--cleen-primary-100))",hasFiltering:D=!0,zIndex:M=XB.POPOVER,className:P,classNames:k,style:E,styles:L})=>{let[F,O]=St(!1),[B,A]=St(!1),[V,U]=St(!1),[_,W]=St(!1),[j,G]=St(null),[H,X]=St(null),[$,Y]=St(""),[ae,be]=St(""),[pe,Me]=St(null),q=F1(void 0),[Q,z]=St(""),[re]=WB(Q,500),[se,ye]=St(""),ue=F1(null),xe=F1(null),{positionStyles:Z,isMounted:Re}=KB({triggerRef:ue,targetRef:xe,position:e,isOpen:F,offset:10});qB({refs:[xe],handler:()=>O(!1),enabled:F});let Oe=D1(()=>n??[],[n]),Se=D1(()=>{let K=new Map;for(let ee of Oe){let ge=qe(ee,b);ge!=null&&K.set(ge,rC(ee,u))}return K},[Oe,b,u]),Ye=D1(()=>{let K=[];return j==null?K=Array.from(Se?.values()).flat():K=Se?.get(j)??[],D&&se.trim()!==""&&(K=K.filter(ee=>{let ge=String(qe(ee,S)??""),_e=I?String(qe(ee,I)??""):"";return ge.toLowerCase().includes(se?.toLowerCase()??"")||_e.toLowerCase().includes(se?.toLowerCase()??"")})),K},[j,Se,se,S,I,D]);Zi(()=>{let K=q.current!==o;if(q.current=o,o==null){K&&(X(null),G(null));return}let ge=Array.from(Se?.values())?.flat()?.find(_e=>qe(_e,v)===o);if(ge){let _e=qe(ge,C)??null;X(ge),G(_e)}else K&&X(null)},[o,Se,v,C]),Zi(()=>{if(pe==null)return;let ee=Array.from(Se?.values())?.flat()?.find(_e=>qe(_e,v)===pe);if(!ee)return;let ge=qe(ee,C);G(typeof ge=="string"||typeof ge=="number"?ge:null),X(ee),Me(null),m?.(ee)},[pe,Se,v,C,m]),Zi(()=>{f&&f(re??"")},[re,f]),Zi(()=>{F||(A(!1),U(!1),Y(""),be(""))},[F]);let lt=K=>{K===j?(G(null),X(null),m?.(null)):(X(null),G(K),m?.(null))},Jr=K=>{let ee=qe(K,C);G(typeof ee=="string"||typeof ee=="number"?ee:null),X(K),m?.(K),O(!1)};async function Xn(){if(!i)return;let K={[y]:$};try{let ee=await i(K);if(ee?.success){A(!1),Y(""),l&&await l();let ge=aC(ee,b);ge!=null&&(G(ge),X(null),m?.(null))}}catch{}}async function le(){if(!s)return;let K={[S]:ae,...j!=null?{[C]:j}:{}};try{let ee=await s(K);ee?.success&&(U(!1),be(""),Me(aC(ee,v)),l&&await l())}catch{}}return oe("div",{className:Ve("cleen",P),style:E,children:et("div",{ref:ue,className:Ve("cleen-relative cleen-w-full cleen-cursor-pointer",k?.container),style:L?.container,onClick:K=>{K.stopPropagation(),O(!0)},children:[oe(Ie,{placeholder:t?.inputPlaceholder,rightIcon:oe(Qt,{className:Ve("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!F})}),value:Q,onChange:K=>{G(null),X(null),z(K.target.value)},classNames:{input:F?"":"cleen-cursor-pointer"},className:k?.input,style:L?.input}),F&&YB(oe("div",{className:"cleen",children:et("div",{ref:xe,className:Ve("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":!Re},k?.columnsContainer),style:{zIndex:M,top:`${Z.top}px`,left:`${Z.left}px`,...L?.columnsContainer},children:[et("div",{className:"cleen-w-1/2 cleen-h-full",children:[oe("div",{className:Ve("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",k?.leftColumn),style:L?.leftColumn,children:w?oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:oe(ce,{size:"sm"})}):n?.map((K,ee)=>{let ge=qe(K,b),_e=ge===j,Yn=String(qe(K,y)??""),jr=rC(K,u)?.length??0;return et("div",{className:Ve("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",k?.groupItem),style:{...L?.groupItem||{},..._e?{backgroundColor:N}:{}},onClick:Te=>{Te.stopPropagation(),Te.preventDefault(),lt(ge??null)},children:[et("div",{className:Ve("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",a?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[oe("span",{className:Ve("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",k?.groupItemTitle),style:L?.groupItemTitle,children:Yn}),oe(Le,{color:"lighter-blue",label:jr})]}),a?.length>0&&oe("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Te=>{Te.stopPropagation(),d?.(K)},children:oe(Br,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:a?.map(Te=>{let Ko=Te?.disabledOptionCallback?.(K);return{...Te,type:"button",label:oe("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:Te?.label}),onClick:()=>{Ko||Te?.onClick(K)},disabled:Ko}}),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:oe(nr,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${ee}-${String(ge??ee)}`)})}),oe(xt,{isHorizontal:!0}),B?et("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[oe(Ie,{leftIcon:oe(So,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:$,onChange:K=>Y(K.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?R?oe(ce,{}):$?.length>x?oe(te,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{Xn()},classNames:{container:"cleen-w-max cleen-h-7"}}):oe("div",{}):oe("div",{})})]}):et("div",{className:Ve("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",k?.newGroupButton),style:L?.newGroupButton,onClick:()=>A(!0),children:[oe(So,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),oe("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),oe(xt,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),et("div",{className:"cleen-w-1/2 cleen-h-full",children:[et("div",{className:Ve("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",k?.rightColumn),style:L?.rightColumn,children:[D&&et(JB,{children:[oe(Ie,{leftIcon:oe(Ct,{className:"cleen-size-5"}),className:Ve("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!_}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:K=>ye(K.target.value),placeholder:t?.filterPlaceholder}),oe("button",{type:"button",className:Ve("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":!_}),onClick:()=>W(K=>!K),children:oe(ua,{className:Ve("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",_?"-cleen-rotate-90":"cleen-rotate-90")})})]}),w?oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:oe(ce,{size:"sm"})}):Ye?.map((K,ee)=>{let ge=qe(K,v),_e=H&&qe(H,v)===ge,Yn=String(qe(K,S)??""),jr=I?String(qe(K,I)??""):"";return et("div",{className:Ve("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",k?.item),style:{...L?.item||{},..._e?{backgroundColor:N}:{}},onClick:Te=>{Te.stopPropagation(),Te.preventDefault(),Jr(K)},children:[et("div",{className:Ve("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",r?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[oe("span",{className:Ve("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",k?.itemTitle),style:L?.itemTitle,children:Yn}),oe("span",{className:Ve("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",k?.itemSubtitle),style:L?.itemSubtitle,children:jr})]}),r?.length>0&&oe("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Te=>{Te.stopPropagation(),p?.(K)},children:oe(Br,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:r?.map(Te=>{let Ko=Te?.disabledOptionCallback?.(K);return{...Te,type:"button",label:oe("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:Te?.label}),onClick:()=>{Ko||Te?.onClick(K)},disabled:Ko}}),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:oe(nr,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${ee}-${String(ge??ee)}`)})]}),oe(xt,{isHorizontal:!0}),V?et("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[oe(Ie,{leftIcon:oe(So,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:ae,onChange:K=>be(K.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:s?T?oe(ce,{}):ae?.length>x?oe(te,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{le()},classNames:{container:"cleen-w-max cleen-h-7"}}):oe("div",{}):oe("div",{})})]}):et("div",{className:Ve("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",k?.newItemButton),style:L?.newItemButton,onClick:()=>U(!0),children:[oe(So,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),oe("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!F&&H&&oe("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:oe("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(qe(H,S)??"")})})]})})};import{cn as $e,useDebounce as jB,useOutsideClick as eR,usePositionClose as tR,ZIndex as oR}from"@cleen/ui-core";import{forwardRef as nR,useEffect as iC,useId as rR,useMemo as sC,useRef as Ji,useState as ji}from"react";import{createPortal as aR}from"react-dom";import{cn as Mn}from"@cleen/ui-core";import{jsx as Fo,jsxs as lC}from"react/jsx-runtime";var cC=({options:e,selection:t,classNames:n,styles:o,onChoose:a,displaySubtextInline:r=!0,activeIndex:l=-1,getOptionId:i,onActiveIndexChange:s,...d})=>Fo("div",{...d,children:Fo("div",{className:Mn("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",n?.container),style:o?.container,children:e?.map((p,f)=>{let m=t?.some(y=>y?.value===p?.value),b=f===l;return lC("li",{id:i?.(f),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":b},n?.item),style:o?.item,onMouseEnter:()=>s?.(f),onClick:()=>a?.(p,m),children:[lC("div",{className:Mn("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",n?.labels,!r&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:o?.labels,children:[p?.leadingBadgeValue&&Fo(Le,{color:"gray",label:p?.leadingBadgeValue}),p?.icon,p?.label&&Fo("span",{className:Mn("cleen-font-medium cleen-text-foreground cleen-text-base",!r&&"cleen-w-full cleen-truncate"),children:p?.label}),p?.preSublabel&&Fo("span",{className:Mn("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!r&&"cleen-w-full cleen-truncate"),children:p?.preSublabel}),p?.sublabel&&Fo("span",{className:Mn("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!r&&"cleen-w-full cleen-truncate"),children:p?.sublabel})]}),m&&Fo("div",{className:n?.checkContainer,style:o?.checkContainer,children:Fo(Xt,{className:Mn("cleen-text-primary",n?.check),style:o?.check})})]},p.value)})})});import{Fragment as cR,jsx as Fe,jsxs as es}from"react/jsx-runtime";var lR=nR(function({id:t,name:n,label:o,labelTooltip:a,labels:r,options:l,value:i,displaySelected:s="under",isLoading:d=!1,required:p,internalFiltering:f=!1,closeOnReachingLimit:m=!0,limit:b,getCustomBadgeLabel:y,displaySubtextInline:u=!0,selectedBadgeColor:v="blue",debounceDelay:C=0,characterThreshold:S=2,disabled:I=!1,isNoDataVisibleOnCreateNew:x=!0,zIndex:w=oR.DROPDOWN,className:R,classNames:T,style:N,styles:D,infoLabels:M,menuDetachedFromPortal:P,onInputChange:k,onChange:E,onCreateNewOption:L,createNewOptionLabelString:F,onLookupBlur:O,triggerBlurOnlyWhenOpen:B=!0,menuRef:A,...V},U){let[_,W]=ji(!1),j=Ji(null),G=Ji(null),H=A??j,{positionStyles:X,isMounted:$}=tR({triggerRef:G,targetRef:H,position:"bottom-left",isOpen:_,offset:4});eR({refs:[H,G],handler:()=>{W(!1),O?.()},enabled:B?_:!0});let[Y,ae]=ji(""),be=jB(Y,C),pe=C?be:Y,Me=Ji(pe),q=Ji(!1),Q=()=>{q.current=!1,ae("")},z=Array.isArray(i),[re,se]=ji([]),ye=z?i:re,ue=["inside","inside-badge"].includes(s),xe=(le,K=!1)=>{if(K){let ge=ye.filter(_e=>_e.value!==le.value);z||se(ge),E?.(ge);return}let ee;if(b===1)ee=[le];else{if(b&&ye.length>=b)return;ee=[...ye,le]}z||se(ee),E?.(ee),m&&b&&ee.length>=b&&(Q(),W(!1))},Z=sC(()=>f?l?.filter(le=>le?.label?.match(new RegExp(pe,"i"))):l,[l,pe,f]),Re=sC(()=>F&&L&&!d&&Y?.length>0&&!Z?.some(le=>le?.label===Y)?typeof F=="function"?F(Y):F:null,[F,L,d,Y,Z]);iC(()=>{if(Me.current!==pe)if(Me.current=pe,pe.length<S)W(!1);else{k?.(pe);let le=!!G.current?.contains(document.activeElement);q.current&&le&&W(!0)}},[pe,k,S]);let Oe=rR(),Se=le=>`${Oe}-option-${le}`,[Ye,lt]=ji(-1);iC(()=>{lt(-1)},[pe,_]);let Jr=le=>{let K=Z?.length??0;switch(le.key){case"ArrowDown":if(!K)return;if(le.preventDefault(),!_){W(!0),lt(0);return}lt(ee=>(ee+1)%K);break;case"ArrowUp":if(!K)return;if(le.preventDefault(),!_){W(!0),lt(K-1);return}lt(ee=>(ee-1+K)%K);break;case"Home":if(!_||!K)return;le.preventDefault(),lt(0);break;case"End":if(!_||!K)return;le.preventDefault(),lt(K-1);break;case"Enter":{if(!_||Ye<0)return;let ee=Z?.[Ye];if(!ee)return;le.preventDefault();let ge=ye?.some(_e=>_e.value===ee.value);xe(ee,ge);break}case"Escape":_&&(le.preventDefault(),W(!1));break;default:break}},Xn=es("ul",{id:Oe,role:"listbox",className:$e("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:D?.menu?.container,children:[d?Fe(ce,{className:$e("cleen-py-3",T?.menu?.loader),style:D?.menu?.loader}):!Z||Z?.length===0?!!r?.noDataFound&&(x||!Re)&&Fe("div",{className:$e("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:D?.menu?.noDataFound,children:r?.noDataFound}):Fe(cC,{options:Z,selection:ye,onChoose:xe,displaySubtextInline:u,activeIndex:Ye,getOptionId:Se,onActiveIndexChange:lt,...T?.menu?.list,...D?.menu?.list}),Re&&es("div",{className:$e("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",T?.createNewOption?.container),style:D?.createNewOption?.container,children:[Fe(xt,{...T?.createNewOption?.divider,...D?.createNewOption?.divider}),Fe("span",{className:$e("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",T?.createNewOption?.value),style:D?.createNewOption?.value,onClick:()=>{let le=L?.(Y);typeof le=="boolean"&&!le||(Q(),W(!1))},children:Re})]})]});return Fe("div",{className:$e("cleen",R),style:N,children:es("div",{className:$e("cleen-flex cleen-flex-col cleen-w-full",T?.container),style:D?.container,children:[o&&Fe(de,{htmlFor:t||n,required:p,tooltip:a,className:$e("cleen-mb-1.5",T?.label?.className),classNames:T?.label?.classNames,...D?.label,children:o}),Fe("div",{ref:G,className:$e("cleen-relative cleen-flex cleen-items-center",T?.input?.container),style:D?.input?.container,children:Fe(Ie,{id:t||n,type:"search",autoFocus:!1,autoComplete:"off",className:$e("cleen-w-full",T?.input?.component?.className),classNames:{...T?.input?.component?.classNames,inputContainer:$e({"cleen-flex-wrap":ue},T?.input?.component?.classNames?.inputContainer),input:$e({"cleen-pl-2":ue},T?.input?.component?.classNames?.input),leftIconContainer:$e({"cleen-pr-0":ue},T?.input?.component?.classNames?.leftIconContainer)},...D?.input?.component,leftIcon:es(cR,{children:[Fe(Ct,{}),ue&&(ye||[])?.length>0&&Fe("div",{className:$e("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{W(!_)},children:s==="inside-badge"?ye?.map(le=>Fe(Le,{label:le?.label,color:"blue",variant:"semiRounded"},le.value)):Fe("span",{className:$e("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:ye?.map(le=>le?.label).join(", ")})})," "]}),onFocus:()=>{pe.length>=S&&Y.length>=S&&W(!0)},value:Y,onChange:le=>{q.current=!0,ae(le.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":_,"aria-controls":_?Oe:void 0,"aria-activedescendant":_&&Ye>=0?Se(Ye):void 0,onKeyDown:Jr,ref:U,required:p,disabled:I,...V})}),_&&(P?Fe("div",{ref:H,children:Xn}):aR(Fe("div",{className:"cleen",children:Fe("div",{ref:H,className:$e("cleen-absolute",{"cleen-opacity-0":!$}),style:{zIndex:w,top:`${X.top}px`,left:`${X.left}px`,minWidth:G.current?.offsetWidth?`${G.current.offsetWidth}px`:void 0},children:Xn})}),document.body)),s==="under"&&ye?.length>0&&Fe("span",{className:$e("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",T?.pillbadge?.container),style:D?.pillbadge?.container,children:ye?.map(le=>Fe(Le,{label:y?y(le):le?.label,color:v,removeable:!I,onRemoveClicked:()=>{if(I)return;let K=ye?.filter(ee=>ee?.value!==le?.value);z||se(K),E?.(K)},...T?.pillbadge?.component,...D?.pillbadge?.component},le.value))}),(M?.errorMessage||M?.infoMessage||M?.subtitle)&&Fe(ie,{...M})]})})});import{cn as Ce}from"@cleen/ui-core";import{forwardRef as iR}from"react";import sR from"react-markdown";import pR from"remark-gfm";import{jsx as ve}from"react/jsx-runtime";var dR=iR(function({components:t,children:n,className:o,classNames:a,style:r,styles:l,...i},s){let d={h1:({children:p})=>ve("h1",{className:Ce("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:p}),h2:({children:p})=>ve("h2",{className:Ce("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:p}),h3:({children:p})=>ve("h3",{className:Ce("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:p}),h4:({children:p})=>ve("h4",{className:Ce("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:p}),h5:({children:p})=>ve("h5",{className:Ce("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:p}),h6:({children:p})=>ve("h6",{className:Ce("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:p}),p:({children:p})=>ve("p",{className:Ce("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:p}),a:({href:p,children:f})=>ve("a",{href:p,className:Ce("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:f}),ul:({children:p})=>ve("ul",{className:Ce("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:p}),ol:({children:p})=>ve("ol",{className:Ce("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:p}),li:({children:p})=>ve("li",{className:Ce("cleen-mb-1"),children:p}),blockquote:({children:p})=>ve("blockquote",{className:Ce("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-neutral-700 cleen-mb-4"),children:p}),code:({className:p,children:f,...m})=>p?ve("code",{className:Ce("cleen-font-mono cleen-text-sm"),...m,children:f}):ve("code",{className:Ce("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...m,children:f}),pre:({children:p})=>ve("pre",{className:Ce("cleen-bg-muted dark:cleen-bg-neutral-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:p}),hr:()=>ve("hr",{className:Ce("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:p,alt:f})=>ve("img",{src:p,alt:f,className:Ce("cleen-max-w-full cleen-rounded")}),strong:({children:p})=>ve("strong",{className:Ce("cleen-font-semibold"),children:p}),em:({children:p})=>ve("em",{className:Ce("cleen-italic"),children:p}),table:({children:p})=>ve("div",{className:Ce("cleen-overflow-x-auto cleen-mb-4"),children:ve("table",{className:Ce("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:p})}),thead:({children:p})=>ve("thead",{className:Ce("cleen-border-b cleen-border-border"),children:p}),th:({children:p})=>ve("th",{className:Ce("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:p}),td:({children:p})=>ve("td",{className:Ce("cleen-p-2 cleen-border-b cleen-border-border"),children:p}),input:({type:p,checked:f,disabled:m})=>p==="checkbox"?ve("input",{type:"checkbox",checked:f,disabled:m,readOnly:!0,className:Ce("cleen-mr-2 cleen-align-middle")}):ve("input",{type:p})};return ve("div",{ref:s,className:Ce("cleen",o,a?.container),style:{...r,...l?.container},...i,children:ve(sR,{...i,remarkPlugins:[pR],components:{...d,...t},children:n})})});import{cn as kn,useBodyScrollLock as mR,useCleenOverlays as pC,ZIndex as uR}from"@cleen/ui-core";import{forwardRef as fR,useCallback as hR,useEffect as A1,useId as gR,useRef as bR,useState as dC}from"react";import{createPortal as yR}from"react-dom";import{jsx as _l,jsxs as uC}from"react/jsx-runtime";var vR={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},mC=300,IR=fR(function({isOpen:t=!1,onClose:n,closeOnOverlayClick:o=!0,closeButtonIcon:a=_l(He,{className:"cleen-size-5"}),header:r,footer:l,zIndex:i=uR.MODAL,size:s="md",color:d,p,gap:f,radius:m=16,className:b,classNames:y,style:u,styles:v,children:C,...S},I){let[x,w]=dC(t),[R,T]=dC(t),N=bR(null),D=gR(),{addOverlay:M,removeOverlay:P}=pC(),k=hR(()=>{w(!1),setTimeout(()=>n?.(),mC)},[n]);return A1(()=>{if(t){T(!0);let E=setTimeout(()=>w(!0),1);return()=>clearTimeout(E)}else{w(!1);let E=setTimeout(()=>T(!1),mC);return()=>clearTimeout(E)}},[t]),A1(()=>{if(t)return M(D),()=>P(D)},[M,P,t,D]),A1(()=>{let E=L=>{let{overlays:F}=pC.getState();L.key==="Escape"&&F[F.length-1]===D&&k()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[k,D]),mR(R),R?yR(uC("div",{className:kn("cleen",b),style:u,ref:I,...S,children:[_l("div",{className:kn("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",x?"cleen-opacity-100":"cleen-opacity-0",y?.overlay),style:{zIndex:i,...v?.overlay},onClick:()=>{o&&k()},"aria-hidden":"true"}),_l("div",{className:kn("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",x?"cleen-opacity-100 cleen-scale-100":"cleen-opacity-0 cleen-scale-95",y?.container),style:{zIndex:i,...v?.container},"aria-modal":"true",role:"dialog",children:uC(Pe,{header:r,footer:l,color:d,p,gap:f,radius:m,className:kn("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:vR[s],...v?.modal?.style},classNames:{...y?.modal?.classNames,container:kn("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",y?.modal?.classNames?.container),childrenContainer:kn("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",y?.modal?.classNames?.childrenContainer)},styles:v?.modal?.styles,ref:N,children:[C,a&&_l("div",{className:kn("cleen-top-3 cleen-right-3 cleen-absolute"),children:_l(te,{variant:"borderless",onClick:k,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:a})})]})})]}),document.body):null});import{Fragment as CR,jsxs as fC}from"react/jsx-runtime";var hC={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}},ts={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},gC=3,bC=180,yC=15e3,Er="general",Vl={[Er]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},vC={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"},IC={"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"},zl={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=>fC(CR,{children:[fC("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`},tt="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var O1={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},CC=({exitDuration:e=bC}={})=>{let t=O1,n=new Set,o=new Map,a=new Map,r=0,l=M=>{t={...t,...M},n.forEach(P=>P())},i=M=>{let P=o.get(M);!P||P.handle||t.paused||(P.startedAt=Date.now(),P.handle=setTimeout(()=>v(M),P.remaining))},s=M=>{let P=o.get(M);P?.handle&&(clearTimeout(P.handle),P.remaining=Math.max(0,P.remaining-(Date.now()-(P.startedAt??Date.now()))),P.handle=null,P.startedAt=null)},d=M=>{let P=o.get(M);P?.handle&&clearTimeout(P.handle),o.delete(M)},p=M=>{d(M.id),!(M.priority!=="normal"||M.duration===!1||M.duration<=0)&&(o.set(M.id,{duration:M.duration,remaining:M.duration,startedAt:null,handle:null,revision:++r}),i(M.id))},f=M=>{let P=a.get(M);P&&(a.delete(M),P.ids.delete(M),P.ids.size||clearTimeout(P.handle))},m=M=>{M.forEach(E=>a.delete(E));let P=t.toasts.filter(E=>!M.includes(E.id)),k=P.some(E=>!E.leaving);l({toasts:P,...!k&&{ui:O1.ui}})},b=M=>{f(M.id);let P=t.toasts.some(k=>k.id===M.id);return p(M),l({toasts:P?t.toasts.map(k=>k.id===M.id?M:k):[...t.toasts,M]}),M.id},y=(M,P)=>{let k=t.toasts.find(L=>L.id===M);if(!k||k.leaving)return;let E={...k,...P};("priority"in P||"duration"in P)&&p(E),l({toasts:t.toasts.map(L=>L.id===M?E:L)})},u=M=>{let P=t.toasts.filter(L=>M.includes(L.id)&&!L.leaving);if(!P.length)return;P.forEach(L=>d(L.id));let k=P.filter(L=>L.animationType==="none"||e<=0).map(L=>L.id),E=P.filter(L=>!k.includes(L.id)).map(L=>L.id);if(E.length){let L=t.toasts.filter(B=>!B.leaving).length;l({toasts:t.toasts.map(B=>E.includes(B.id)?{...B,leaving:!0,leavingFromCount:L}:B)});let F=new Set(E),O=setTimeout(()=>m([...F]),e);E.forEach(B=>a.set(B,{handle:O,ids:F}))}k.length&&m(k)},v=M=>u([M]);return{add:b,update:y,dismiss:v,dismissMany:u,clear:()=>u(t.toasts.map(M=>M.id)),pauseAll:()=>{t.paused||(o.forEach((M,P)=>s(P)),l({paused:!0}))},resumeAll:()=>{t.paused&&(l({paused:!1}),o.forEach((M,P)=>i(P)))},setExpanded:M=>l({ui:{...t.ui,expanded:M}}),toggleGroup:M=>{let{expandedGroups:P}=t.ui;l({ui:{...t.ui,expandedGroups:P.includes(M)?P.filter(k=>k!==M):[...P,M]}})},resetUi:()=>l({ui:O1.ui}),getTimer:M=>{let P=o.get(M);if(!P)return;let k=P.startedAt?Date.now()-P.startedAt:0;return{duration:P.duration,remaining:Math.max(0,P.remaining-k),revision:P.revision}},subscribe:M=>(n.add(M),()=>{n.delete(M)}),getSnapshot:()=>t}},me=CC();var xR=0,xC=({id:e,variant:t="default",priority:n,actions:o,duration:a,closeButton:r=!0,hideProgressBar:l,animationType:i="slide",...s})=>{let d=hC[t];return me.add({...s,id:e??`cleen-notification-${++xR}`,variant:t,actions:o,priority:n??(o?.length?"important":"normal"),duration:a??d.duration,closeButton:r,progressBar:l===void 0?d.progressBar:!l,animationType:i,createdAt:Date.now()})},PR=(e,{hideProgressBar:t,...n})=>me.update(e,{...n,...t!==void 0&&{progressBar:!t}}),Tn={show:xC,update:PR,dismiss:me.dismiss,dismissMany:me.dismissMany,clear:me.clear};import{useSyncExternalStore as SR}from"react";var os=()=>SR(me.subscribe,me.getSnapshot,me.getSnapshot);import{useMemo as wR}from"react";var MR=()=>{let{toasts:e,paused:t}=os();return{toasts:wR(()=>e.filter(o=>!o.leaving),[e]),paused:t,show:Tn.show,update:Tn.update,dismiss:Tn.dismiss,dismissMany:Tn.dismissMany,clear:Tn.clear}};var PC={critical:0,important:1,normal:2},_1=e=>e.filter(t=>!t.leaving),ns=e=>[...e].reverse(),wC=e=>[...e].sort((t,n)=>PC[t.priority]-PC[n.priority]),Lr=e=>!!e.actions?.length&&e.priority!=="normal",MC=e=>e.category??Er,Nn=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),V1=e=>e.map(Nn),SC=(e,t)=>(e.leavingFromCount??0)>t,Dr=(e,t,n)=>{let o=_1(e);if(o.length>t)return n(o);let a=e.filter(r=>r.leaving&&SC(r,t));return!o.length&&a.length>t?n(a).map(r=>({...r,exiting:!0})):V1(e.filter(r=>!r.leaving||!SC(r,t)))};var z1=(e,t,n)=>Dr(e,n,o=>{let a=wC(ns(o)),r=a.filter(u=>u.priority==="critical"),l=a.filter(u=>u.priority!=="critical"),i=new Map;l.forEach(u=>{let v=MC(u);i.set(v,[...i.get(v)??[],u])});let s=u=>Number(i.get(u).some(Lr)),d=u=>i.get(u).length,p=[...i.keys()].sort((u,v)=>s(v)-s(u)||d(v)-d(u)),f=Math.max(0,n-Math.min(r.length,1)),m=p.slice(0,f),b=[...r.slice(1),...p.slice(f).flatMap(u=>i.get(u))],y=r.slice(0,1).map(Nn);return m.forEach(u=>{let v=i.get(u);y.push(v.length===1?Nn(v[0]):{type:"group",key:`group-${u}`,category:u,toasts:v,expanded:t.expandedGroups.includes(u)})}),y.push({type:"footer",key:"footer",overflow:b,toasts:o}),y});var H1=(e,t,n=1/0)=>Dr(e,n,o=>[...V1(o),{type:"footer",key:"footer",overflow:[],toasts:o}]);var U1=(e,t,n)=>Dr(e,n,o=>{let a=ns(o);if(t.expanded)return[{type:"list",key:"list",toasts:a}];let r=a.filter(p=>p.priority==="critical"),l=a.filter(p=>p.priority!=="critical"),[i,...s]=l,d=r.map(Nn);return i&&s.length?d.push({type:"deck",key:"deck",top:i,hidden:s}):i&&d.push(Nn(i)),d});var kC={list:H1,stack:U1,group:z1};import{createContext as kR,useContext as TR}from"react";var G1=kR({categories:Vl,labels:zl,hiddenElements:[],now:Date.now(),paused:!1}),ke=()=>TR(G1);import{cn as NR,getTimeAgoLabel as BR}from"@cleen/ui-core";var J=(e,t,n,o)=>{let a=o?.classNames,r=o?.styles,l=e.styles?.[t]||r?.[t]?{...e.styles?.[t],...r?.[t]}:void 0;return{className:NR(n,e.classNames?.[t],a?.[t]),style:l,"data-slot":t}},Dt=({className:e,style:t,...n})=>({classNames:{container:e},styles:{container:t},...n}),Fr=(e,t)=>e.categories[t]??{...e.categories[Er],label:t,pluralLabel:t},rs=(e,t,n)=>{let o=Math.floor(Math.max(0,t-e));return typeof n.timeAgo=="function"?n.timeAgo(o):BR(o,n?.timeAgoStamps)},TC=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 RR}from"@cleen/ui-core";import{jsx as NC}from"react/jsx-runtime";var as=({toast:e})=>{let t=ke();if(t.hiddenElements.includes("badges"))return null;let n=e.priority==="critical";if(!n&&!Lr(e))return null;let o=J(t,"badge",void 0,e);return NC("span",{...J(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:NC(Le,{color:n?"red":"primary",variant:"full",label:n?t.labels.critical:t.labels.action,classNames:{container:RR("cleen-px-1.5 cleen-py-0 cleen-text-[10.5px] cleen-font-semibold cleen-leading-4",o.className)},styles:{container:o.style},"data-slot":o["data-slot"]})})};import{cn as BC}from"@cleen/ui-core";import{Fragment as ER,jsx as Ao}from"react/jsx-runtime";var RC=({icon:e,tone:t="neutral",size:n="md",className:o,...a})=>{let r=n==="sm"?14:18;return Ao("span",{className:BC("cleen-inline-flex cleen-shrink-0 cleen-items-center cleen-justify-center",n==="sm"?"cleen-size-[26px] cleen-rounded-md":"cleen-size-[34px] cleen-rounded-lg",vC[t],o),"aria-hidden":"true",...a,children:Ao(Ee,{name:e,width:r,height:r})})},$1=({category:e,...t})=>{let n=ke(),o=Fr(n,e);return Ao(RC,{icon:o.icon,tone:o.tone,...t})},ls=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return Ao(ER,{children:e.icon});if(e.category)return Ao($1,{category:e.category,size:t});let n=ts[e.variant];return n?Ao(RC,{icon:n.name,tone:n.tone,size:t}):null},Bn=({icon:e,label:t,className:n,...o})=>Ao("button",{type:"button","aria-label":t,title:t,className:BC("cleen-inline-flex cleen-size-[26px] cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-muted-foreground cleen-transition-colors hover:cleen-bg-muted hover:cleen-text-foreground focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary",n),...o,children:Ao(Ee,{name:e,width:14,height:14,strokeWidth:2})});import{cn as W1}from"@cleen/ui-core";import{Fragment as LR,jsx as Hl,jsxs as q1}from"react/jsx-runtime";var EC=({toast:e,children:t})=>{let n=ke(),o=e.title!==void 0&&e.title!==null,a=e.icon===void 0&&(!!e.category||!!ts[e.variant]),r=Hl(ls,{toast:e}),l=Hl(as,{toast:e});return q1(LR,{children:[(e.icon!==void 0||a||e.variant!=="default")&&Hl("span",{...J(n,"icon",W1("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!a}),e),children:r}),q1("div",{...J(n,"body",W1("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[o?q1("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[Hl("span",{...J(n,"title","cleen-min-w-0 cleen-max-w-full cleen-break-words cleen-text-sm cleen-font-semibold cleen-leading-[18px] cleen-text-foreground",e),children:e.title}),l]}):l,Hl("span",{...J(n,"message",W1("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":o,"cleen-text-foreground":!o}),e),children:e.message}),t]})]})};import{useState as DR}from"react";import{jsx as FR}from"react/jsx-runtime";var LC=({toast:e})=>{let t=ke(),[n]=DR(()=>me.getTimer(e.id));if(!n)return null;let o=J(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 FR("span",{"aria-hidden":"true",...o,style:{animationDuration:`${n.duration}ms`,animationDelay:`-${n.duration-n.remaining}ms`,animationPlayState:t.paused?"paused":"running",...o.style}})};import{cn as AR}from"@cleen/ui-core";import{jsx as is,jsxs as cs}from"react/jsx-runtime";var ss=({toast:e,inDeck:t=!1})=>{let n=ke(),{labels:o,hiddenElements:a}=n,r=e.priority==="critical",l=!!e.actions?.length,i=()=>me.dismiss(e.id),s=f=>{f.key==="Escape"&&(f.stopPropagation(),i())},d=!!e.category&&!a.includes("meta"),p=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!a.includes("progressBar");return cs("div",{role:r?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||l?void 0:0,onKeyDown:s,...J(n,"toast",AR("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)&&TC(e),e.className),e),children:[cs(EC,{toast:e,children:[d&&cs("span",{...J(n,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[Fr(n,e.category).label," \xB7"," ",rs(e.createdAt,n.now,o)]}),l&&cs("div",{...J(n,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((f,m)=>{let b=J(n,"action",tt,e);return is(te,{variant:f.variant??(m?"secondary":"primary"),label:f.label,onClick:()=>{f.onClick?.(e),i()},...Dt(b)},`${f.label}-${m}`)}),is(te,{variant:"secondary",label:o.dismiss,onClick:i,...Dt(J(n,"dismissButton",tt,e))})]})]}),e.closeButton&&is(Bn,{icon:"X",label:o.close,onClick:i,...J(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),p&&is(LC,{toast:e},me.getTimer(e.id)?.revision)]})};import{Fragment as OR,jsx as Ar,jsxs as ps}from"react/jsx-runtime";var DC="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",FC=({top:e,hidden:t})=>{let n=ke(),{labels:o}=n,a=[e.id,...t.map(r=>r.id)];return ps(OR,{children:[ps("div",{...J(n,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[Ar(ss,{toast:e,inDeck:!0}),Ar("span",{"aria-hidden":"true",...J(n,"deckPeek",`${DC} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&Ar("span",{"aria-hidden":"true",...J(n,"deckPeek",`${DC} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!n.hiddenElements.includes("deckMoreBar")&&ps("div",{...J(n,"deckMoreBar","cleen-pointer-events-auto cleen-mt-1.5 cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-gap-2 cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-py-2 cleen-pl-3 cleen-pr-2.5 cleen-text-xs cleen-font-medium cleen-text-muted-foreground cleen-shadow-lg"),children:[Ar("span",{...J(n,"deckMoreLabel"),children:o.moreBehind(t.length)}),ps("span",{className:"cleen-flex cleen-gap-1",children:[Ar(te,{variant:"secondary",label:o.showAll,"aria-expanded":!1,onClick:()=>me.setExpanded(!0),...Dt(J(n,"deckShowAllButton",tt))}),Ar(te,{variant:"borderless",label:o.dismissAll,onClick:()=>me.dismissMany(a),...Dt(J(n,"deckDismissAllButton",tt))})]})]})]})};import{cn as _R}from"@cleen/ui-core";import{Fragment as VR,jsx as ds,jsxs as zR}from"react/jsx-runtime";var AC=({count:e})=>{let t=ke(),{labels:n,onViewAll:o}=t;if(t.hiddenElements.includes("overflowPill"))return null;let a=zR(VR,{children:[n.overflow(e),ds("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:ds(Ee,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),r=J(t,"overflowPill",_R("cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-gap-2 cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-pl-3 cleen-pr-1.5 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors motion-safe:cleen-animate-toast-in",{"hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary":o}));return o?ds("button",{type:"button",onClick:()=>o(),...r,children:a}):ds("span",{...r,children:a})};import{jsx as OC,jsxs as HR}from"react/jsx-runtime";var _C=({overflow:e,toasts:t})=>{let n=ke(),o=!n.hiddenElements.includes("dismissAllButton");return!o&&!e.length?null:HR("div",{...J(n,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[o&&OC("button",{type:"button",onClick:()=>me.dismissMany(t.map(a=>a.id)),...J(n,"dismissAllButton","cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-px-3 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary motion-safe:cleen-animate-toast-in"),children:n.labels.dismissAll}),e.length>0&&OC(AC,{count:e.length})]})};import{jsx as Rn,jsxs as ms}from"react/jsx-runtime";var us=({toast:e,onDismiss:t})=>{let n=ke(),o=e.actions?.[0],a=e.title!==void 0&&e.title!==null;return ms("div",{...J(n,"row","cleen-flex cleen-items-start cleen-gap-2.5 cleen-border-b cleen-border-border cleen-py-2.5 cleen-pl-3.5 cleen-pr-3 last:cleen-border-b-0 hover:cleen-bg-surface"),children:[Rn("span",{...J(n,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:Rn(ls,{toast:e,size:"sm"})}),ms("div",{...J(n,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[ms("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[Rn("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:a?e.title:e.message}),Rn(as,{toast:e})]}),a&&Rn("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),ms("span",{...J(n,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[o&&Rn(Bn,{icon:"ArrowRight",label:o.label,onClick:()=>{o.onClick?.(e),t(e.id)}}),Rn(Bn,{icon:"X",label:n.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as UR,useLayoutEffect as GR,useRef as $R}from"react";var WR='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',fs=(e,t,n)=>{let o=$R(!1);return UR(()=>{e.current?.focus({preventScroll:!0})},[e]),GR(()=>{let i=document.activeElement;o.current&&e.current&&(!i||i===document.body)&&e.current.focus({preventScroll:!0})},[e,t]),{onFocus:()=>{o.current=!0},onBlur:i=>{let s=i.relatedTarget;s&&!i.currentTarget.contains(s)&&(o.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),n();return}if(i.key!=="Tab"||!e.current)return;let s=[...e.current.querySelectorAll(WR)],d=s[0],p=s[s.length-1];!d||!p||(i.shiftKey&&document.activeElement===d?(i.preventDefault(),p.focus()):!i.shiftKey&&(document.activeElement===p||document.activeElement===e.current)&&(i.preventDefault(),d.focus()))}}};import{useRef as qR}from"react";import{Fragment as XR,jsx as Ke,jsxs as lo}from"react/jsx-runtime";var K1=3,KR=({toasts:e,onCollapse:t})=>{let n=qR(null),o=fs(n,e.length,t);return Ke("div",{ref:n,tabIndex:-1,...o,className:"cleen-max-h-[min(40vh,320px)] cleen-overflow-auto cleen-border-y cleen-border-border focus-visible:cleen-outline-none",children:e.map(a=>Ke(us,{toast:a,onDismiss:me.dismiss},a.id))})},VC=({category:e,toasts:t,expanded:n})=>{let o=ke(),{labels:a,onViewAll:r,hiddenElements:l}=o,i=Fr(o,e),s=t.map(b=>b.id),d=t.filter(Lr).length,p=Math.min(...t.map(b=>b.createdAt)),f=()=>me.dismissMany(s),m=()=>me.toggleGroup(e);return lo("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:b=>{b.key==="Escape"&&!n&&(b.stopPropagation(),f())},...J(o,"group","cleen-pointer-events-auto cleen-relative cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl motion-safe:cleen-animate-toast-in"),children:[lo("div",{...J(o,"groupHeader","cleen-flex cleen-items-center cleen-gap-2.5 cleen-pb-2 cleen-pl-3 cleen-pr-10 cleen-pt-2.5"),children:[Ke($1,{category:e,...J(o,"groupIcon")}),lo("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[lo("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[Ke("span",{...J(o,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:a.groupTitle(t.length,i)}),Ke("span",{...J(o,"groupCount","cleen-inline-flex cleen-h-5 cleen-min-w-5 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-full cleen-bg-primary cleen-px-1.5 cleen-text-[11px] cleen-font-semibold cleen-text-primary-foreground"),children:t.length})]}),!l.includes("meta")&&lo("span",{...J(o,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[d>0&&lo(XR,{children:[a.needAction(d)," \xB7 "]}),rs(p,o.now,a)]})]})]}),n?Ke(KR,{toasts:t,onCollapse:m}):lo("div",{...J(o,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,K1).map(b=>lo("div",{...J(o,"groupPreviewLine","cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5 cleen-text-[12.5px] cleen-leading-[17px] cleen-text-foreground"),children:[Ke("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),Ke("span",{className:"cleen-min-w-0 cleen-truncate",children:b.title??b.message})]},b.id)),t.length>K1&&!l.includes("groupMore")&&Ke("span",{...J(o,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:a.more(t.length-K1)})]}),lo("div",{...J(o,"groupFooter","cleen-flex cleen-items-center cleen-gap-1.5 cleen-pb-2.5 cleen-pl-14 cleen-pr-3 cleen-pt-1.5"),children:[r&&Ke(te,{variant:"primary",label:a.review(i),rightIcon:Ke(Ee,{name:"ArrowRight",width:14,height:14}),onClick:()=>r(e),...Dt(J(o,"groupReviewButton",tt))}),Ke(te,{variant:"secondary",label:n?a.collapse:a.expand,"aria-expanded":n,onClick:m,...Dt(J(o,"groupToggleButton",tt))}),Ke("span",{className:"cleen-flex-1"}),Ke(te,{variant:"borderless",label:a.dismiss,onClick:f,...Dt(J(o,"groupDismissButton",tt))})]}),Ke(Bn,{icon:"X",label:a.dismissGroup,onClick:f,...J(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as YR}from"react";import{jsx as Oo,jsxs as hs}from"react/jsx-runtime";var zC=({toasts:e})=>{let t=ke(),{labels:n,onViewAll:o}=t,a=YR(null),r=()=>me.setExpanded(!1),l=fs(a,e.length,r);return hs("div",{ref:a,tabIndex:-1,role:"group","aria-label":n.region,...l,...J(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:[hs("div",{...J(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:[hs("span",{children:[n.listTitle(e.length)," "]}),Oo("span",{className:"cleen-flex-1"}),Oo(te,{variant:"borderless",label:n.collapse,"aria-expanded":!0,leftIcon:Oo(Ee,{name:"ChevronUp",width:14,height:14}),onClick:r,classNames:{container:tt}})]}),Oo("div",{...J(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>Oo(us,{toast:i,onDismiss:me.dismiss},i.id))}),hs("div",{...J(t,"listFooter","cleen-flex cleen-gap-1.5 cleen-border-t cleen-border-border cleen-bg-surface cleen-px-2.5 cleen-py-2"),children:[o&&Oo(te,{variant:"secondary",label:n.openNotifications,onClick:()=>o(),classNames:{container:tt}}),Oo("span",{className:"cleen-flex-1"}),Oo(te,{variant:"secondary",label:n.dismissAll,onClick:()=>me.dismissMany(e.map(i=>i.id)),classNames:{container:tt}})]})]})};import{useEffect as QR,useState as ZR}from"react";var HC=e=>{let[t,n]=ZR(()=>Date.now());return QR(()=>{if(!e)return;n(Date.now());let o=setInterval(()=>n(Date.now()),yC);return()=>clearInterval(o)},[e]),t};import{cn as Y1}from"@cleen/ui-core";import{forwardRef as JR,useCallback as jR,useEffect as X1,useMemo as UC,useRef as GC}from"react";import{jsx as co}from"react/jsx-runtime";var eE=e=>{switch(e.type){case"toast":return co(ss,{toast:e.toast},e.key);case"deck":return co(FC,{top:e.top,hidden:e.hidden},e.key);case"list":return co(zC,{toasts:e.toasts},e.key);case"group":return co(VC,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return co(_C,{overflow:e.overflow,toasts:e.toasts},e.key)}},tE=(e,t)=>co("div",{"aria-hidden":"true",className:Y1("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:eE(e)},e.key),oE=JR(function({layout:t="list",maxVisible:n=gC,position:o="bottom-right",categories:a,onViewAll:r,labels:l,classNames:i,styles:s,hiddenElements:d,className:p,style:f,...m},b){let y=os(),u=_1(y.toasts).length,v=HC(y.toasts.length>0),C=GC(null),S=GC(!1),I=UC(()=>kC[t](y.toasts,y.ui,n),[t,y.toasts,y.ui,n]),x=UC(()=>({categories:{...Vl,...a},labels:{...zl,...l},classNames:i,styles:s,hiddenElements:d??[],onViewAll:r,now:v,paused:y.paused}),[a,l,i,s,d,r,v,y.paused]);X1(()=>{let{expanded:N,expandedGroups:D}=y.ui,M=y.toasts.some(P=>P.leaving);u<=n&&!M&&(N||D.length)&&me.resetUi()},[u,n,y.toasts,y.ui]);let w=jR(()=>{let N=document.activeElement,D=!!(N&&C.current?.contains(N))&&!!N?.matches(":focus-visible");S.current||D?me.pauseAll():me.resumeAll()},[]);X1(()=>{u||(S.current=!1),w()},[u,w]),X1(()=>{let N=D=>{S.current&&!C.current?.contains(D.target)&&(S.current=!1,w())};return document.addEventListener("pointermove",N,{passive:!0}),()=>document.removeEventListener("pointermove",N)},[w]);let R=N=>{S.current=N,w()},T=()=>requestAnimationFrame(w);return co("div",{className:Y1("cleen",p),style:f,ref:b,children:co(G1.Provider,{value:x,children:co("div",{role:"region","aria-live":"polite","aria-label":x.labels.region,ref:C,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),onFocus:T,onBlur:T,...J(x,"region",Y1("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",IC[o])),...m,children:I.map(N=>tE(N,o.endsWith("left")?"cleen-items-start":o.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as $C}from"@cleen/ui-core";import{forwardRef as nE,useState as rE}from"react";import{jsx as Q1,jsxs as aE}from"react/jsx-runtime";var Z1=nE(({totalPages:e,labels:t,onGoToPage:n,classNames:o,styles:a,...r},l)=>{let[i,s]=rE(""),d=()=>{let f=parseInt(i,10);isNaN(f)||(n?.(Math.min(Math.max(f,1),e)),s(""))},p=f=>{f.key==="Enter"?d():f.key==="Escape"&&s("")};return Q1("div",{className:"cleen",...r,children:aE("div",{className:$C("cleen-flex cleen-items-center cleen-gap-2",o?.container),style:a?.container,children:[Q1("span",{className:$C("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",o?.label),style:a?.label,children:t?.goToPage}),Q1(Ie,{ref:l,type:"number",min:1,max:e,value:i,onChange:f=>s(f.target.value),onKeyDown:p,...o?.input,...a?.input})]})})});import{cn as gs,useOutsideClick as lE,usePositionClose as cE}from"@cleen/ui-core";import{forwardRef as iE,useRef as WC,useState as qC}from"react";import{createPortal as sE}from"react-dom";import{jsx as Or,jsxs as dE}from"react/jsx-runtime";var pE=[10,20,50,100],J1=iE(({pageSize:e,pageSizes:t=pE,labels:n,onPageSizeChange:o,classNames:a,styles:r,...l},i)=>{let[s,d]=qC(e??t?.[0]??void 0),[p,f]=qC(!1),m=WC(null),b=WC(null),{positionStyles:y,isMounted:u}=cE({triggerRef:m,targetRef:b,isOpen:p,position:"top-left"});return lE({refs:[m,b],handler:()=>f(!1),enabled:p}),Or("div",{className:"cleen",ref:i,...l,children:dE("div",{className:gs("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",a?.container),style:r?.container,children:[Or(Ne,{label:n?.itemsPerPage?.(s),classNames:{labelContainer:"cleen-min-w-max"},children:Or("div",{className:gs("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",a?.trigger),style:r?.trigger,onClick:()=>f(v=>!v),ref:m,children:s})}),p&&sE(Or("div",{className:"cleen",children:Or("div",{ref:b,className:gs("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},a?.menu),style:{top:`${y.top}px`,left:`${y.left}px`,...r?.menu},children:t?.filter(v=>v!==s)?.map(v=>Or("div",{className:gs("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",a?.menuItem),style:r?.menuItem,onClick:()=>{d(v),o?.(v),f(!1)},children:v},v))})}),document.body)]})})});var KC={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as _o}from"@cleen/ui-core";import{forwardRef as mE,useCallback as bs,useMemo as uE,useRef as fE}from"react";import{jsx as ot,jsxs as gE}from"react/jsx-runtime";var hE=mE(({currentPage:e,totalPages:t,pageSize:n,pageSizes:o,hasGotoPage:a=!0,hasPageSizeSelector:r=!0,onPageChange:l,onPageSizeChange:i,labels:s=KC,classNames:d,styles:p,...f},m)=>{let b=fE(null),y=bs(()=>{e<t&&l?.(e+1)},[e,t,l]),u=bs(()=>{e>1&&l?.(e-1)},[e,l]),v=bs(I=>ot("span",{className:_o("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",d?.pageButton,I===e?d?.activePageButton:""),style:{...p?.pageButton,...I===e?p?.activePageButton:{}},onClick:()=>l?.(I),children:I},`page-${I}`),[e,l,d,p]),C=bs(I=>ot("span",{className:_o("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",d?.ellipsis),style:p?.ellipsis,onClick:()=>b.current?.focus(),children:"..."},I),[d,p]),S=uE(()=>{if(isNaN(e)||isNaN(t))return[];let I=[];if(I.push(ot(Ne,{label:s.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:ot("span",{className:_o("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",d?.navButton),style:p?.navButton,onClick:u,children:ot(Yt,{})})},"prev")),t<=7)for(let x=1;x<=t;x++)I.push(v(x));else if(I.push(v(1)),e<=3){for(let x=2;x<5;x++)I.push(v(x));I.push(C("dots-end")),I.push(v(t))}else if(e>=t-2){I.push(C("dots-start"));for(let x=t-3;x<=t;x++)I.push(v(x))}else I.push(C("dots-start")),I.push(v(e-1)),I.push(v(e)),I.push(v(e+1)),I.push(C("dots-end")),I.push(v(t));return I.push(ot(Ne,{label:s.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:ot("span",{className:_o("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",d?.navButton),style:p?.navButton,onClick:y,children:ot(bt,{})})},"next")),I},[e,t,s,d,p,C,v,y,u]);return ot("div",{className:"cleen",ref:m,...f,children:gE("div",{className:_o("cleen-flex cleen-justify-between cleen-gap-4",d?.container),style:p?.container,children:[r?ot(J1,{pageSize:n,labels:s,onPageSizeChange:i,pageSizes:o,className:_o("cleen-flex-1",d?.pageSizeSelector?.className),classNames:d?.pageSizeSelector?.classNames,...p?.pageSizeSelector}):ot("div",{className:"cleen-flex-1"}),ot("div",{className:_o("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",d?.buttonsContainer),style:p?.buttonsContainer,children:S}),a?ot(Z1,{ref:b,totalPages:t,onGoToPage:l,labels:s,className:_o("cleen-flex cleen-flex-1 cleen-justify-end",d?.goToPage?.className),classNames:d?.goToPage?.classNames,...p?.goToPage}):ot("div",{className:"cleen-flex-1"})]})})});import{cn as XC}from"@cleen/ui-core";import{forwardRef as bE,useEffect as yE,useState as vE}from"react";import{jsx as ys,jsxs as YC}from"react/jsx-runtime";var IE={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},QC=bE(({isFullscreen:e,percentage:t,duration:n=1e3,radius:o,stroke:a=16,size:r="md",color:l="rgb(var(--cleen-primary))",emptyColor:i="rgb(var(--cleen-neutral-200))",textColor:s="rgb(var(--cleen-foreground))",textHidden:d=!1,fontSize:p,renderText:f,className:m,classNames:b,style:y,styles:u,...v},C)=>{let S=o??IE[r]/2,I=S-a/2,x=I*2*Math.PI,[w,R]=vE(0);yE(()=>{let N=null;if(n===0){R(t);return}let D=M=>{N||(N=M);let P=M-N,k=Math.min(P/n*t,t);R(k),k<t&&requestAnimationFrame(D)};requestAnimationFrame(D)},[t,n]);let T=x-w/100*x;return ys("div",{ref:C,className:XC("cleen",m),style:y,...v,children:YC("div",{className:XC("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},b?.container),style:u?.container,children:[YC("svg",{height:S*2,width:S*2,style:{transform:"rotate(-90deg)"},children:[ys("circle",{stroke:i,fill:"transparent",strokeWidth:a,r:I,cx:S,cy:S}),ys("circle",{stroke:l,fill:"transparent",strokeWidth:a,strokeLinecap:"round",strokeDasharray:x,strokeDashoffset:T,r:I,cx:S,cy:S})]}),!d&&ys("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:p??S/2.5,color:s},children:f?f(w):`${Math.round(w)}%`})]})})});QC.displayName="ProgressCircle";import{cn as ft}from"@cleen/ui-core";import{useEffect as CE,useState as xE}from"react";import{Fragment as ZC,jsx as io,jsxs as Ul}from"react/jsx-runtime";var PE=({horizontal:e,boxes:t,selectedBox:n,onBoxClick:o,leftElement:a,rightElement:r,leftIcon:l,leftIconName:i,rightIconName:s,className:d,classNames:p,style:f,styles:m,...b})=>{let[y,u]=xE(n);CE(()=>{u(n)},[n]);let v=(x,w)=>Ul(ZC,{children:[a&&a(x),l||(i?io(Ee,{name:i,className:ft("cleen-w-5 cleen-h-5",w?"cleen-text-primary":"cleen-text-neutral-700",p?.leftIcon),style:m?.leftIcon}):null)]}),C=(x,w)=>io("span",{className:ft("cleen-font-semibold",w?"cleen-text-primary":"cleen-text-neutral-700",p?.label),style:m?.label,children:x?.label}),S=(x,w)=>io("span",{className:ft("cleen-font-semibold cleen-text-16px",w?"cleen-text-primary":"cleen-text-neutral-700",p?.subLabel),style:m?.subLabel,children:x?.subLabel}),I=(x,w)=>Ul(ZC,{children:[r&&r(x),s&&io(Ee,{name:s,className:ft("cleen-w-5 cleen-h-5",w?"cleen-text-primary":"cleen-text-neutral-700",p?.rightIcon),style:m?.rightIcon})]});return io("div",{className:ft("cleen",d),style:f,...b,children:e?io("div",{className:ft("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",p?.container),style:m?.container,children:t?.map(x=>{let w=x?.id===y?.id;return Ul("div",{className:ft("cleen-flex cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary-100 cleen-w-max",w?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",p?.box),style:m?.box,onClick:()=>{u(x),o?.(x)},children:[v(x,w),x?.label&&C(x,w),x?.subLabel&&S(x,w),I(x,w)]},x?.id)})}):io("div",{className:ft("cleen-grid cleen-gap-3 cleen-w-full",p?.container),style:{gridTemplateColumns:"1fr auto 1fr",...m?.container},children:t?.map(x=>{let w=x?.id===y?.id;return Ul("div",{className:ft("cleen-grid cleen-col-span-full cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary-50",w?"cleen-bg-primary-100 cleen-border-muted-foreground":"cleen-bg-surface cleen-border-border",p?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...m?.box},onClick:()=>{u(x),o?.(x)},children:[io("div",{className:ft("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",p?.leftIconContainer),style:m?.leftIconContainer,children:v(x,w)}),io("div",{className:ft("cleen-flex cleen-items-center cleen-justify-center",p?.labelContainer),style:m?.labelContainer,children:x?.label&&C(x,w)}),Ul("div",{className:ft("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",p?.rightIconContainer),style:m?.rightIconContainer,children:[x?.subLabel&&S(x,w),I(x,w)]})]},x?.id)})})})};import{cn as wt}from"@cleen/ui-core";import{forwardRef as ME,useEffect as kE,useId as TE,useRef as NE,useState as BE}from"react";import{cn as JC}from"@cleen/ui-core";import{forwardRef as SE}from"react";import{jsx as jC,jsxs as wE}from"react/jsx-runtime";var vs=SE(function({checked:t,className:n,classNames:o,style:a,styles:r,...l},i){return wE("div",{className:JC("group cleen-flex cleen-size-5 cleen-min-h-5 cleen-min-w-5 cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-border-neutral-300 focus-within:cleen-ring-2 focus-within:cleen-ring-primary focus-within:cleen-ring-offset-1",t?"cleen-bg-primary":"cleen-bg-surface",n),style:a,children:[jC("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...l}),jC("span",{className:JC("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",o?.innerCircle),style:r?.innerCircle})]})});import{jsx as Ft,jsxs as Is}from"react/jsx-runtime";var RE=ME(function({required:t,radios:n,label:o,labelTooltip:a,className:r,classNames:l,style:i,styles:s,name:d,direction:p="vertical",radioPosition:f="left",defaultActiveId:m,value:b,infoLabels:y,onChange:u},v){let C=b!==void 0,[S,I]=BE(m??n[0]?.id),x=TE(),w=`${x}-label`,R=d??`cleen-radio-group-${x}`;kE(()=>{!C&&m!==void 0&&I(m)},[m,C]);let T=C?b:S,N=B=>T!=null&&T==B,D=B=>{C||I(B),u?.(B)},M=NE([]),P=n?.findIndex(B=>!B.disabled&&N(B.id)),k=n?.findIndex(B=>!B.disabled),E=P>=0?P:Math.max(k,0),L=B=>{let A=n[B];!A||A.disabled||(D(A.id),M.current[B]?.focus())},F=(B,A)=>{let V=n.length;for(let U=1;U<V;U++){let _=(B+A*U+V)%V;if(!n[_]?.disabled)return _}return B},O=(B,A)=>{if(n.length)switch(B.key){case"ArrowDown":case"ArrowRight":B.preventDefault(),L(F(A,1));break;case"ArrowUp":case"ArrowLeft":B.preventDefault(),L(F(A,-1));break;default:break}};return Ft("div",{className:wt("cleen",r),style:i,ref:v,children:Is("div",{className:l?.container,style:s?.container,children:[o&&Ft(de,{id:w,htmlFor:x,required:t,tooltip:a,className:wt("cleen-mb-1.5",l?.label?.className),classNames:l?.label?.classNames,...s?.label,children:o}),Ft("div",{id:x,role:"radiogroup","aria-labelledby":o?w:void 0,className:wt("cleen-flex cleen-flex-wrap cleen-gap-2.5",p==="vertical"&&"cleen-flex-col cleen-w-fit",l?.radios),style:s?.radios,children:n?.map((B,A)=>{let V=`${x}-${A}`,U=B.radioPosition??f,_=!!B.disabled;return Is("div",{className:wt("cleen-flex cleen-gap-2 cleen-p-5 cleen-border cleen-border-border cleen-rounded-xl cleen-transition-all cleen-duration-200",_?"cleen-cursor-not-allowed":"hover:cleen-bg-muted hover:cleen-border-neutral-300 cleen-cursor-pointer",p==="horizontal"&&"cleen-flex-1",N(B?.id)&&"cleen-border-primary hover:cleen-border-primary",l?.radioContainer,B?.className,N(B?.id)&&l?.radioActive),style:{...s?.radioContainer,...B?.style},onClick:W=>{!_&&W.target instanceof Element&&!W.target.closest("label, input, a, button")&&M.current[A]?.click()},children:[B.leftIcon,U==="left"&&Ft(vs,{ref:W=>{M.current[A]=W},id:V,name:R,value:B.id,checked:N(B.id),disabled:_,tabIndex:A===E?0:-1,onChange:()=>D(B.id),onKeyDown:W=>O(W,A),className:wt(_&&"cleen-opacity-50",l?.radioOuterCheckBox,B?.classNames?.outerCheckBox),style:{...s?.radioOuterCheckBox,...B?.styles?.outerCheckBox}}),Is("label",{htmlFor:V,className:wt("cleen-flex-1",_?"cleen-cursor-not-allowed":"cleen-cursor-pointer",l?.radioLabelsContainer,B?.classNames?.labelsContainer),style:{...s?.radioLabelsContainer,...B?.styles?.labelsContainer},children:[Is("div",{className:wt("cleen-flex cleen-items-center cleen-gap-1",_&&"cleen-opacity-50"),children:[Ft("span",{className:wt("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",l?.radioTitle,B?.classNames?.title),style:{...s?.radioTitle,...B?.styles?.title},children:B.title}),Ft("span",{className:wt("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",l?.radiotPostTitle,B?.classNames?.postTitle),style:{...s?.radiotPostTitle,...B?.styles?.postTitle},children:B.postTitle})]}),Ft("span",{className:wt("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",l?.radioSubTitle,B?.classNames?.subTitle),style:{...s?.radioSubTitle,...B?.styles?.subTitle},children:B?.subTitle})]}),U==="right"&&Ft(vs,{ref:W=>{M.current[A]=W},id:V,name:R,value:B.id,checked:N(B.id),disabled:_,tabIndex:A===E?0:-1,onChange:()=>D(B.id),onKeyDown:W=>O(W,A),className:wt(_&&"cleen-opacity-50",l?.radioOuterCheckBox),style:s?.radioOuterCheckBox}),U==="hidden"&&Ft(vs,{ref:W=>{M.current[A]=W},id:V,name:R,value:B.id,checked:N(B.id),disabled:_,tabIndex:A===E?0:-1,onChange:()=>D(B.id),onKeyDown:W=>O(W,A),className:"cleen-sr-only"}),B.rightIcon]},B?.id)})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&Ft(ie,{...y})]})})});import{cn as _r,ColorHelpers as EE}from"@cleen/ui-core";import{forwardRef as LE,useRef as DE,useState as FE}from"react";import{jsx as En,jsxs as ex}from"react/jsx-runtime";var AE=LE(function({id:t,required:n,label:o,labelTooltip:a,labels:r,infoLabels:l,value:i,onChange:s,amount:d=5,options:p=[],gap:f,size:m=36,readonly:b,color:y="rgb(var(--cleen-primary))",className:u,style:v,classNames:C,styles:S,...I},x){let[w,R]=FE(0),T=i!==void 0,N=T?i:w,D=p?.length>0?p:Array.from({length:d},(B,A)=>A+1),M=DE([]),P=D.findIndex(B=>B===N),k=P>=0?P:0,E=B=>{T||R(B),s?.(B)},L=B=>{let A=D[B];A!==void 0&&(E(A),M.current[B]?.focus())},F=(B,A)=>{if(b)return;let V=D.length;if(V)switch(B.key){case"ArrowRight":case"ArrowUp":B.preventDefault(),L((A+1)%V);break;case"ArrowLeft":case"ArrowDown":B.preventDefault(),L((A-1+V)%V);break;case"Home":B.preventDefault(),L(0);break;case"End":B.preventDefault(),L(V-1);break;default:break}},O=typeof o=="string"?o:"Rating";return En("div",{className:_r("cleen",u),style:v,ref:x,...I,children:ex("div",{className:_r("cleen-space-y-2",C?.container),style:S?.container,children:[o&&En(de,{htmlFor:t,required:n,tooltip:a,className:_r("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...S?.label,children:o}),ex("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[En("div",{role:"radiogroup","aria-label":O,className:_r("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...f?{gap:f}:{},...S?.list},children:D?.map((B,A)=>En("button",{id:t,ref:V=>{M.current[A]=V},role:"radio","aria-checked":N===B,"aria-label":`${B}`,tabIndex:A===k?0:-1,onClick:()=>E(B),onKeyDown:V=>F(V,A),className:_r("cleen-flex cleen-justify-center cleen-items-center cleen-border cleen-border-border hover:cleen-border-muted-foreground cleen-rounded-full cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",b&&"cleen-cursor-default cleen-pointer-events-none",C?.item),style:{width:m,height:m,...N===B?{borderColor:y,backgroundColor:EE.trasparentize(y,.9),color:y}:{},...S?.item},type:"button",children:En("span",{className:_r("cleen-font-medium cleen-text-sm",C?.value),style:S?.value,children:B})},B))}),r?.helperText&&En("span",{className:"cleen-text-sm cleen-text-neutral-600",children:r.helperText})]}),(l?.errorMessage||l?.infoMessage||l?.subtitle)&&En(ie,{...l})]})})});import{useState as OE}from"react";import{components as _E}from"react-select";import{jsx as j1,jsxs as tx}from"react/jsx-runtime";var ox=e=>{let[t,n]=OE(!1),o=e.data;return j1("div",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:j1(_E.Option,{...e,children:tx("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[tx("div",{className:"cleen-flex-1",children:[o?.label,o?.sublabel&&j1("p",{className:"cleen-text-xs",children:o?.sublabel})]}),typeof o?.icon=="function"?o.icon({...e,isHovered:t}):o?.icon]})})})};import{components as VE}from"react-select";import{jsx as eg,jsxs as zE}from"react/jsx-runtime";var nx=e=>{let t=e.data;return eg(VE.SingleValue,{...e,children:zE("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[eg("p",{children:t?.label}),t?.sublabel&&eg("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as Gl,ZIndex as ix}from"@cleen/ui-core";import{forwardRef as GE,useId as $E,useState as sx}from"react";import WE from"react-select";import{components as HE}from"react-select";import{jsx as tg,jsxs as rx}from"react/jsx-runtime";var ax=({isLoading:e,inputValue:t,options:n,createNewOptionCallback:o,createNewOptionLabelStringCb:a,children:r,...l})=>{let i=t?.trim().toLowerCase(),s=n?.some(d=>d?.labelString?d.labelString.toLowerCase()===i:typeof d?.label=="string"?d.label.toLowerCase()===i:!1);return tg("div",{className:"cleen",children:rx(HE.MenuList,{options:n,...l,children:[r,o&&!e&&t&&t?.length>0&&!s&&rx("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[tg(xt,{}),tg("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{o(t)},children:a?.(t)||t})]})]})})};import{components as UE}from"react-select";import{jsx as lx}from"react/jsx-runtime";var cx=({isLoading:e,noDataFound:t,...n})=>lx(UE.NoOptionsMessage,{...n,children:e?lx(ce,{}):t||"No data found"});import{jsx as Vo,jsxs as dx}from"react/jsx-runtime";var px=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),qE=GE(function({label:t,labelTooltip:n,sublabel:o,id:a,name:r,required:l,className:i,classNames:s,isLoading:d=!1,disabled:p,emboldenOptions:f=!1,labels:m,components:b,style:y,styles:u,infoLabels:v,createNewOptionCallback:C,createNewOptionLabelStringCb:S,...I},x){let[w,R]=sx(!1),[T,N]=sx(""),D=$E(),M=I.inputId??a??r??D,P=(E,L)=>{if(!px(E.data))return!1;let{labelString:F,label:O}=E.data;return F?F.toLowerCase().includes(L.toLowerCase()):typeof O=="string"?O.toLowerCase().includes(L.toLowerCase()):!1},k=E=>px(E)?E.labelString??(typeof E.label=="string"?E.label:""):"";return Vo("div",{className:Gl("cleen",i),style:y,ref:x,children:dx("div",{className:Gl("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",s?.cleenContainer),style:u?.cleenContainer,children:[(t||o)&&dx("div",{className:Gl("cleen-flex cleen-flex-col cleen-gap-1",s?.labels?.container),style:u?.labels?.container,children:[t&&Vo(de,{htmlFor:M,required:l,tooltip:n,...s?.labels?.label,...u?.labels?.label,children:t}),o&&Vo("span",{className:Gl("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",s?.labels?.sublabel),style:u?.labels?.sublabel,children:o})]}),Vo(WE,{...C&&{menuIsOpen:w,inputValue:T,onInputChange:E=>N(E),onMenuOpen:()=>R(!0),onMenuClose:()=>R(!1)},...!I.filterOption&&{filterOption:P},...!I.getOptionLabel&&{getOptionLabel:k},id:a||r,classNames:s,isDisabled:p,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:M,className:Gl("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",s?.inputOuterContainer),styles:{...u,control:(E,L)=>{let F={...E,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:f&&L.hasValue?"600":"400",borderColor:v?.errorMessage?"rgba(var(--cleen-error), 0.7)":"rgb(var(--cleen-border))",color:L.isDisabled?"rgb(var(--cleen-neutral-500))":"rgb(var(--cleen-foreground))",backgroundColor:L.isDisabled?"rgb(var(--cleen-neutral-100))":"rgba(var(--cleen-background))",boxShadow:L.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:C?"rgba(var(--cleen-foreground))":"transparent","&:hover":{borderColor:v?.errorMessage?"rgba(var(--cleen-error))":"rgb(var(--cleen-border))"}};return u?.control?u?.control(F,L):F},menuPortal:(E,L)=>{let F={...E,zIndex:ix.SELECT,...u?.menuPortal};return u?.menuPortal?u?.menuPortal(F,L):F},menu:(E,L)=>{let F={...E,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:ix.SELECT,...u?.menu};return u?.menu?u?.menu(F,L):F},option:(E,L)=>{let F={...E,backgroundColor:L.isSelected?"rgba(var(--cleen-primary))":L.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:L.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-foreground))",fontWeight:f?"600":"400","&:hover":L.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:L.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-neutral-600))"},"&:hover p":{color:"rgba(var(--cleen-white))"},"&:active":{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))"}};return u?.option?u?.option(F,L):F},menuList:(E,L)=>{let F={...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(F,L):F},singleValue:(E,L)=>{let F={...E,color:L.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return u?.singleValue?u?.singleValue(F,L):F},input:(E,L)=>{let F={...E,color:"rgba(var(--cleen-foreground))"};return u?.input?u?.input(F,L):F}},components:{IndicatorSeparator:()=>null,SingleValue:E=>Vo(nx,{...E}),NoOptionsMessage:E=>Vo(cx,{isLoading:d,noDataFound:m?.noDataFound,...E}),MenuList:E=>Vo(ax,{isLoading:d,inputValue:T,createNewOptionCallback:C,createNewOptionLabelStringCb:S,...E}),Option:ox,...b}}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Vo(ie,{...v})]})})});import{jsx as mx,jsxs as KE}from"react/jsx-runtime";function ux({children:e,title:t,className:n="",renderHeader:o}){return KE("div",{className:`cleen-w-full cleen-h-full ${n}`,"data-testid":`drawer-container-${t}`,children:[o?o(t):mx("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),mx("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as so}from"@cleen/ui-core";import{forwardRef as XE,useState as YE}from"react";import{Fragment as jE,jsx as ht,jsxs as Cs}from"react/jsx-runtime";function QE({icon:e,iconSrc:t,iconName:n,iconSize:o=24,title:a,className:r,style:l}){return e?ht("span",{className:so("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",r),style:{width:o,height:o,...l},children:e}):t?ht("img",{src:t,alt:a,width:o,height:o,className:r,style:l}):n?ht(Ee,{name:n,width:o,height:o,className:r,style:l}):null}function fx({item:e,depth:t,iconSize:n=24,classNames:o,styles:a}){let[r,l]=YE(!1),i={...e,classNames:{...o,...e.classNames},styles:{...a,...e.styles}},s=Array.isArray(i?.items)&&i.items.length>0,d=i?.iconSize??n,p=t>0?{paddingLeft:12+t*28}:{},f=Cs(jE,{children:[Cs("div",{className:so("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[ht(QE,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:d,title:i?.name,className:so("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}),ht("span",{className:so("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)&&ht(Le,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return s?Cs("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[Cs("summary",{className:so("cleen-group/row [&::-webkit-details-marker]:cleen-hidden cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-muted cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer cleen-list-none",t===0?"cleen-px-3":void 0,i?.classNames?.parentItemContainer),style:{...p,...i?.styles?.parentItemContainer},onClick:()=>l(m=>!m),children:[f,ht(Ee,{name:"ChevronDown",className:so("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})]}),ht("div",{className:so("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(m=>ht(fx,{item:m,depth:t+1,iconSize:n,classNames:o,styles:a},m?.id??m?.name))})]}):ht("div",{className:so("cleen-group/row cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-primary/5 cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer",t===0?"cleen-px-3 hover:cleen-bg-muted":void 0,i?.isActive&&t===0&&"cleen-bg-muted",i?.disabled&&"cleen-opacity-50 cleen-pointer-events-none",i?.classNames?.container),style:{...p,...i?.styles?.container},onClick:()=>i?.onClick?.(i),children:f})}var ZE=XE(function({title:t,icon:n,iconName:o,iconSrc:a,iconSize:r=24,badgeColor:l="gray",badgeCount:i,items:s,onClick:d,isActive:p=!1,disabled:f,className:m,classNames:b,style:y,styles:u},v){let C={id:"root",name:t,icon:n,iconName:o,iconSrc:a,iconSize:r,badgeColor:l,badgeCount:i,isActive:p,disabled:f,onClick:d?()=>d():void 0,classNames:b,styles:u,items:s};return ht("div",{className:so("cleen",m),style:y,ref:v,children:ht(fx,{item:C,depth:0,iconSize:r,classNames:b,styles:u})})}),JE=ZE;import{cn as po}from"@cleen/ui-core";import{useEffect as nL,useRef as rL,useState as aL}from"react";import{cn as $l}from"@cleen/ui-core";import{useMemo as eL}from"react";import{Link as tL}from"react-router-dom";import{jsx as Wl,jsxs as oL}from"react/jsx-runtime";function ql({item:e,activeId:t,onClick:n,countBadge:o,classNames:a,styles:r,renderIcon:l}){let i=t===e?.id,s=eL(()=>e?l?l(e,i):e.icon?e.icon:e.iconSrc?Wl("img",{src:e.iconSrc,alt:e?.name||e?.label,className:$l("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",a?.icon,i&&"cleen-text-primary"),style:r?.icon}):e.iconName?Wl(Ee,{name:e.iconName,className:$l("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",a?.icon,i&&"cleen-text-primary"),style:r?.icon}):null:null,[e,i,l,a?.icon,r?.icon]),d=oL("div",{"data-testid":`nav-item-${e?.id}`,className:$l("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",a?.container,i&&"cleen-bg-primary/10"),style:r?.container,onClick:()=>{e?.path||n?.(e)},children:[s,o&&Wl("div",{className:$l("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",a?.badge),style:r?.badge,children:o})]});return Wl(Ne,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:a?.tooltip?.className,classNames:{...a?.tooltip,labelContainer:$l("cleen-min-w-max",a?.tooltip?.classNames?.labelContainer)},...r?.tooltip,label:e?.label,children:e?.path?Wl(tL,{to:e.path,children:d}):d})}import{jsx as mo,jsxs as Ln}from"react/jsx-runtime";function hx({navigationItems:e,bottomNavigationItems:t=[],drawerContent:n={},logo:o,onLogoClick:a,userAvatar:r,userInfo:l,drawerFooter:i,drawerWidth:s=330,direction:d="right",defaultActiveId:p=null,activeId:f,onActiveChange:m,closeOnOutsideClick:b=!0,closeOnBlur:y=!0,className:u,classNames:v,style:C,styles:S,renderSidebarItem:I}){let[x,w]=aL(p),R=rL(null),T=f!==void 0?f:x,N=!!T,D=P=>{let k=T===P.id?null:P.id;f===void 0&&w(k),m?.(k)};nL(()=>{if(!b||!N)return;let P=k=>{R.current&&!R.current.contains(k.target)&&(f===void 0&&w(null),m?.(null))};return document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[b,N,f,m]);let M=P=>{!y||!N||R.current&&!R.current.contains(P.relatedTarget)&&(f===void 0&&w(null),m?.(null))};return Ln("div",{className:po("cleen",u),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:d==="left"?"row-reverse":"row",...C},ref:R,onBlur:M,tabIndex:y?0:void 0,children:[Ln("div",{className:po("cleen-flex cleen-flex-col cleen-items-center cleen-h-full",d==="right"?"cleen-border-r cleen-border-r-border":"cleen-border-l cleen-border-l-border",v?.navigation),style:S?.navigation,children:[o&&mo("div",{className:po("cleen-flex cleen-justify-center cleen-items-center cleen-pt-8 cleen-pb-6 cleen-w-full cleen-cursor-pointer",v?.logo),style:S?.logo,onClick:a,children:o}),Ln("div",{className:po("cleen-flex cleen-flex-col cleen-flex-1 cleen-justify-between cleen-gap-2 cleen-px-2 cleen-overflow-y-auto cleen-no-scrollbar",v?.navigationItems),style:S?.navigationItems,children:[mo("nav",{className:po("cleen-flex cleen-flex-col cleen-gap-2",v?.upperNavigationItemsWrapper),style:S?.upperNavigationItemsWrapper,children:e.map(P=>Ln("div",{children:[I?I(P,T===P.id,D):mo(ql,{item:P,activeId:T,onClick:D,countBadge:P.badgeCount,classNames:{...v?.navigationItem,...P?.classNames},styles:{...S?.navigationItem,...P?.styles}}),P?.withBottomDivider&&mo("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},P.id))}),Ln("div",{className:po("cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",v?.bottomNavigationItemsWrapper),style:S?.bottomNavigationItemsWrapper,children:[t.map(P=>Ln("div",{children:[I?I(P,T===P.id,D):mo(ql,{item:P,activeId:T,onClick:D,countBadge:P.badgeCount,classNames:{...v?.navigationItem,...P?.classNames},styles:{...S?.navigationItem,...P?.styles}}),P?.withBottomDivider&&mo("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},P.id)),r&&mo("div",{className:"cleen-mt-6 cleen-mb-8",children:r})]})]})]}),Ln("div",{className:po("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&&d==="right","cleen-border-l cleen-border-l-border":N&&d==="left"},v?.drawer),style:{...S?.drawer,width:N?`${s}px`:"0px",visibility:N?"visible":"hidden"},children:[T&&n[T]&&mo("div",{className:po("cleen-flex-1 cleen-overflow-auto",v?.drawerContent),style:S?.drawerContent,children:n[T]}),T&&(i||l)&&mo("div",{className:po("cleen-mt-auto cleen-flex cleen-justify-between cleen-items-start cleen-gap-4 cleen-px-5 cleen-pt-4 cleen-pb-8 cleen-border-border cleen-border-t cleen-w-full",v?.drawerFooter),style:S?.drawerFooter,children:typeof i=="function"?i(T):i||l})]})]})}var ne=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as gx}from"@cleen/ui-core";import{forwardRef as lL}from"react";import{jsx as bx}from"react/jsx-runtime";var cL={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"},iL=lL(function({width:t,height:n,roundness:o="md",variant:a="default",className:r,style:l},i){let s=ne(a),d={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...n!==void 0?{height:typeof n=="number"?`${n}px`:n}:{},...l};return bx("div",{ref:i,className:gx("cleen",r),children:bx("div",{className:gx("cleen-bg-muted",cL[o],t===void 0&&"cleen-w-full",n===void 0&&"cleen-h-4",s),style:d})})});import{cn as og}from"@cleen/ui-core";import{forwardRef as sL}from"react";import{jsx as xs,jsxs as pL}from"react/jsx-runtime";var ng=sL(function({className:t,style:n,variant:o="default",itemCount:a=1},r){let l=ne(o);return xs("div",{ref:r,className:og("cleen",t),style:n,children:xs("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:a}).map((i,s)=>pL("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[xs("div",{className:og("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",l)}),xs("div",{className:og("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",l)})]},s))})})});import{cn as yx}from"@cleen/ui-core";import{forwardRef as dL}from"react";import{jsx as rg}from"react/jsx-runtime";var ag=dL(function({className:t,style:n,variant:o="default",itemCount:a=1},r){let l=ne(o);return rg("div",{ref:r,className:yx("cleen",t),style:n,children:rg("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:a}).map((i,s)=>rg("div",{className:yx("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",l)},s))})})});import{cn as vx}from"@cleen/ui-core";import{forwardRef as mL}from"react";import{jsx as Dn,jsxs as Ps}from"react/jsx-runtime";var lg=mL(function({className:t,style:n,variant:o="default"},a){let r=ne(o);return Dn("div",{ref:a,className:vx("cleen",t),style:n,children:Ps("div",{className:vx("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",r),children:[Dn("div",{className:"cleen-h-48 cleen-w-full"}),Ps("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:[Dn("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),Ps("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Dn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),Dn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),Ps("div",{className:"cleen-flex cleen-gap-3",children:[Dn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),Dn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as Ix}from"@cleen/ui-core";import{forwardRef as uL}from"react";import{jsx as cg}from"react/jsx-runtime";var ig=uL(function({className:t,style:n,variant:o="default",itemCount:a=1},r){let l=ne(o);return cg("div",{ref:r,className:Ix("cleen",t),style:n,children:cg("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:a}).map((i,s)=>cg("div",{className:Ix("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",l)},s))})})});import{cn as Ss}from"@cleen/ui-core";import{forwardRef as fL}from"react";import{jsx as ws,jsxs as Cx}from"react/jsx-runtime";var Kl=fL(function({className:t,style:n,variant:o="default"},a){let r=ne(o);return ws("div",{ref:a,className:Ss("cleen",t),style:n,children:Cx("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:[ws("div",{className:Ss("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)}),Cx("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[ws("div",{className:Ss("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)}),ws("div",{className:Ss("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",r)})]})]})})});import{cn as Vr}from"@cleen/ui-core";import{forwardRef as hL}from"react";import{jsx as zr,jsxs as Ms}from"react/jsx-runtime";var ks=hL(({className:e,style:t,variant:n="default"},o)=>{let a=ne(n);return zr("div",{ref:o,className:Vr("cleen",e),style:t,children:Ms("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:[Ms("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[zr("div",{className:Vr("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",a)}),Ms("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[zr("div",{className:Vr("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",a)}),zr("div",{className:Vr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",a)})]})]}),Ms("div",{className:"cleen-space-y-2 cleen-w-full",children:[zr("div",{className:Vr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",a)}),zr("div",{className:Vr("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",a)})]})]})})});ks.displayName="AssessmentHeaderSkeleton";import{cn as At}from"@cleen/ui-core";import{forwardRef as gL}from"react";import{jsx as Ot,jsxs as Hr}from"react/jsx-runtime";var sg=gL(function({className:t,style:n,variant:o="default"},a){let r=ne(o);return Ot("div",{ref:a,className:At("cleen",t),style:n,children:Hr("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:[Ot("div",{className:At("cleen-bg-muted cleen-w-full cleen-h-40",r)}),Hr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[Hr("div",{className:"cleen-flex cleen-gap-2",children:[Ot("div",{className:At("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",r)}),Ot("div",{className:At("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",r)})]}),Hr("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Ot("div",{className:At("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",r)}),Ot("div",{className:At("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Ot("div",{className:At("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)})]}),Hr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[Hr("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Ot("div",{className:At("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",r)}),Ot("div",{className:At("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),Ot("div",{className:At("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",r)})]})]})]})})});import{forwardRef as bL}from"react";import{cn as yL}from"@cleen/ui-core";import{jsx as pg}from"react/jsx-runtime";var dg=bL(function({className:t,style:n,itemCount:o=3,variant:a="default"},r){return pg("div",{ref:r,className:yL("cleen",t),style:n,children:pg("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:o}).map((l,i)=>pg(Kl,{variant:a},i))})})});import{cn as Fn}from"@cleen/ui-core";import{forwardRef as vL}from"react";import{jsx as gt,jsxs as Xl}from"react/jsx-runtime";var xx=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],mg=vL(function({className:t,style:n,variant:o="default"},a){let r=ne(o);return gt("div",{ref:a,className:Fn("cleen",t),style:n,children:Xl("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:[Xl("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[gt("div",{className:Fn("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",r)}),gt("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((l,i)=>Xl("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[gt("div",{className:Fn("cleen-bg-muted cleen-rounded-full cleen-size-2.5",r)}),gt("div",{className:Fn("cleen-bg-muted cleen-rounded cleen-h-3",r),style:{width:l}})]},i))})]}),Xl("div",{className:"cleen-flex cleen-gap-3",children:[gt("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(l=>gt("div",{className:Fn("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",r)},l))}),Xl("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[gt("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:xx.map((l,i)=>gt("div",{className:Fn("cleen-bg-muted cleen-rounded-t cleen-flex-1",l,r)},i))}),gt("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),gt("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:xx.map((l,i)=>gt("div",{className:Fn("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",r)},i))})]})]})]})})});import{cn as An}from"@cleen/ui-core";import{forwardRef as IL}from"react";import{jsx as uo,jsxs as Ts}from"react/jsx-runtime";var ug=IL(({variant:e="default",itemCount:t=3,className:n,style:o},a)=>{let r=ne(e);return uo("div",{ref:a,className:An("cleen",n),style:o,children:uo(Pe,{className:"cleen-max-h-fit",children:Ts("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[Ts("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[uo("div",{className:An("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",r)}),uo("div",{className:An("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)})]}),uo("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((l,i)=>Ts("div",{className:"cleen-space-y-3",children:[uo("div",{className:An("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",r)}),uo("div",{className:An("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",r)})]},i))}),Ts("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[uo("div",{className:An("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)}),uo("div",{className:An("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)})]})]})})})});import{cn as Ns}from"@cleen/ui-core";import{forwardRef as CL}from"react";import{jsx as Yl,jsxs as xL}from"react/jsx-runtime";var fg=CL(function({className:t,style:n,variant:o="default",itemCount:a=5},r){let l=ne(o),i=["cleen-w-1/12","cleen-w-3/12","cleen-w-2/12","cleen-w-3/12","cleen-w-2/12","cleen-w-1/12"];return Yl("div",{ref:r,className:Ns("cleen",t),style:n,children:xL("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[Yl("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,d)=>Yl("div",{className:Ns("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",s,l)},d))}),Array.from({length:a}).map((s,d)=>Yl("div",{className:Ns("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",d<a-1?"cleen-border-b cleen-border-border":""),children:i.map((p,f)=>Yl("div",{className:Ns("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",f===i.length-1?"cleen-rounded-full":"cleen-rounded",p,l)},f))},d))]})})});import{cn as Bs}from"@cleen/ui-core";import{forwardRef as PL}from"react";import{jsx as Ql,jsxs as Px}from"react/jsx-runtime";var hg=PL(function({className:t,style:n,variant:o="default",itemCount:a=4},r){let l=ne(o);return Ql("div",{ref:r,className:Bs("cleen",t),style:n,children:Px("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:a}).map((i,s)=>Px("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Ql("div",{className:Bs("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",l)}),Ql("div",{className:Bs("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",l)})]},s)),Ql("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:Ql("div",{className:Bs("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",l)})})]})})});import{cn as Sx}from"@cleen/ui-core";import{forwardRef as SL}from"react";import{jsx as gg}from"react/jsx-runtime";var wL=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],bg=SL(function({className:t,style:n,variant:o="default",colors:a=wL},r){let l=ne(o);return gg("div",{ref:r,className:Sx("cleen",t),style:n,children:gg("div",{className:Sx("cleen-p-1 cleen-size-full cleen-rounded-lg cleen-animate-[cleen-rotate-gradient-angle_2.5s_linear_infinite]",l),style:{background:`conic-gradient(from var(--cleen--gradient-angle),${a.join(",")})`},children:gg("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as Rs}from"@cleen/ui-core";import{forwardRef as ML}from"react";import{jsx as Ur,jsxs as wx}from"react/jsx-runtime";var yg=ML(function({className:t,style:n,variant:o="default"},a){let r=ne(o);return Ur("div",{ref:a,className:Rs("cleen",t),style:n,children:wx("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Ur("div",{className:Rs("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:Ur("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:wx("div",{className:Rs("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[Ur("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),Ur("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),Ur("div",{className:Rs("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",r)})]})})});import{cn as at}from"@cleen/ui-core";import{forwardRef as kL}from"react";import{jsx as nt,jsxs as fo}from"react/jsx-runtime";var vg=kL(function({className:t,style:n,variant:o="default"},a){let r=ne(o);return nt("div",{ref:a,className:at("cleen",t),style:n,children:fo("div",{className:at("cleen-flex cleen-flex-col cleen-items-start cleen-gap-4 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-h-fit",t),style:n,children:[fo("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[nt("div",{className:at("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",r)}),nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),fo("div",{className:"cleen-space-y-3 cleen-w-full",children:[fo("div",{children:[nt("div",{className:at("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),nt(Pe,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:fo("div",{className:"cleen-space-y-2",children:[nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",r)})]})})]}),fo("div",{children:[nt("div",{className:at("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),fo("div",{className:"cleen-space-y-2",children:[nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",r)})]})]}),fo("div",{children:[nt("div",{className:at("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),nt(Pe,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:fo("div",{className:"cleen-space-y-2",children:[nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",r)})]})})]})]})]})})});import{cn as Ig}from"@cleen/ui-core";import{forwardRef as TL}from"react";import{jsx as Cg,jsxs as NL}from"react/jsx-runtime";var xg=TL(function({className:t,style:n,variant:o="default"},a){let r=ne(o);return Cg("div",{ref:a,className:Ig("cleen",t),style:n,children:NL("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Cg("div",{className:Ig("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",r)}),Cg("div",{className:Ig("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",r)})]})})});import{cn as Zl}from"@cleen/ui-core";import{forwardRef as BL}from"react";import{jsx as Gr,jsxs as Mx}from"react/jsx-runtime";var Pg=BL(function({className:t,style:n,variant:o="default",itemCount:a=5},r){let l=ne(o),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return Gr("div",{ref:r,className:Zl("cleen",t),style:n,children:Gr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:a}).map((s,d)=>Mx("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[Gr("div",{className:Zl("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",l)}),Mx("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[Gr("div",{className:Zl("cleen-bg-muted cleen-rounded cleen-h-4",i[d%i.length],l)}),Gr("div",{className:Zl("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",l)})]}),Gr("div",{className:Zl("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",l)})]},d))})})});import{cn as kx}from"@cleen/ui-core";import{forwardRef as RL}from"react";import{jsx as wg}from"react/jsx-runtime";var Sg=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],Mg=RL(function({className:t,style:n,variant:o="default",itemCount:a},r){let l=ne(o),i=a??Sg.length;return wg("div",{ref:r,className:kx("cleen",t),style:n,children:wg("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((s,d)=>{let p=d<Sg.length?Sg[d]:d===i-1?"cleen-w-3/5":"cleen-w-full";return wg("div",{className:kx("cleen-bg-muted cleen-rounded cleen-h-3",p,l)},d)})})})});import{cn as Tx}from"@cleen/ui-core";import{forwardRef as EL}from"react";import{jsx as Nx}from"react/jsx-runtime";var kg=EL(function({className:t,style:n,variant:o="default"},a){let r=ne(o);return Nx("div",{ref:a,className:Tx("cleen",t),style:n,children:Nx("div",{className:Tx("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)})})});import{cn as On}from"@cleen/ui-core";import{forwardRef as LL}from"react";import{jsx as _t,jsxs as Es}from"react/jsx-runtime";var Tg=LL(function({className:t,style:n,variant:o="default"},a){let r=ne(o);return _t("div",{ref:a,className:On("cleen",t),style:n,children:Es("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[_t("div",{className:On("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:_t("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:_t("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:_t("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"})})})}),Es("div",{className:"cleen-flex cleen-gap-3",children:[_t("div",{className:On("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",r)}),Es("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[_t("div",{className:On("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)}),_t("div",{className:On("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),Es("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[_t("div",{className:On("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",r)}),_t("div",{className:On("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",r)})]})]})]})]})})});import{cn as Jl}from"@cleen/ui-core";import{forwardRef as DL}from"react";import{jsx as jl,jsxs as Ng}from"react/jsx-runtime";var Ls=DL(function({variant:t="default",className:n,style:o},a){let r=ne(t);return jl("div",{ref:a,className:Jl("cleen",n),style:o,children:Ng("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:[Ng("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:[jl("div",{className:Jl("cleen-bg-muted cleen-rounded-full cleen-size-1.5",r)}),jl("div",{className:Jl("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",r)})]}),Ng("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[jl("div",{className:Jl("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",r)}),jl("div",{className:Jl("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",r)})]})]})})});Ls.displayName="SkeletonBadgeCard";import{forwardRef as FL}from"react";import{jsx as Be}from"react/jsx-runtime";var AL=FL(function({className:t,style:n,variant:o="default",itemCount:a=3,colors:r,skeleton:l="card",isShowing:i=!1,children:s},d){if(!i)return s;let p={ref:d,variant:o,itemCount:a,colors:r,className:t,style:n};switch(l){case"card2":return Be(ks,{...p});case"card3":return Be(sg,{...p});case"cardStack":return Be(dg,{...p});case"contentCard":return Be(ug,{...p});case"infoCard":return Be(vg,{...p});case"widgetCard":return Be(Ls,{...p});case"image":return Be(yg,{...p});case"video":return Be(Tg,{...p});case"avatar":return Be(ng,{...p});case"dataGrid":return Be(fg,{...p});case"text":return Be(kg,{...p});case"paragraph":return Be(Mg,{...p});case"list":return Be(Pg,{...p});case"form":return Be(hg,{...p});case"banner":return Be(lg,{...p});case"chart":return Be(mg,{...p});case"button":return Be(ig,{...p});case"badge":return Be(ag,{...p});case"input":return Be(xg,{...p});case"glowingCard":return Be(bg,{...p});default:return Be(Kl,{...p})}});import{cn as zo}from"@cleen/ui-core";import{forwardRef as OL,useCallback as Bg,useEffect as _L,useRef as Bx,useState as Rx}from"react";import{jsx as Ho,jsxs as Ds}from"react/jsx-runtime";var _n=OL(function({id:t,required:n,minValue:o=0,maxValue:a=100,step:r=1,keyboardStep:l=r,defaultValue:i=0,value:s,variant:d="default",onChange:p,onChangeEnd:f,className:m,classNames:b,style:y,styles:u,disabled:v=!1,label:C,labelTooltip:S,labels:I,tooltip:x,infoLabels:w},R){let[T,N]=Rx(i??o),D=s!==void 0?s:T,M=Bx(null),[P,k]=Rx(!1),E=Bx(!1),L=(D-o)/(a-o)*100,F=Math.min(100,Math.max(0,L)),O=Bg(G=>{let H=Math.round((G-o)/r)*r+o;return Math.min(a,Math.max(o,H))},[o,a,r]),B=Bg((G,H)=>{let X=O(G);s===void 0&&N(X),p?.(X),H&&f?.(X)},[O,s,p,f]),A=Bg(G=>{let H=M.current;if(!H)return o;let X=H.getBoundingClientRect(),$=(G-X.left)/X.width;return O(o+$*(a-o))},[o,a,O]),V=G=>{if(v)return;let H;switch(G.key){case"ArrowRight":case"ArrowUp":H=D+l;break;case"ArrowLeft":case"ArrowDown":H=D-l;break;case"Home":H=o;break;case"End":H=a;break;default:return}G.preventDefault(),B(H,!0)},U=G=>{v||(G.preventDefault(),k(!0))},_=G=>{if(v||E.current){E.current=!1;return}B(A(G.clientX),!0)},W=G=>{v||(G.preventDefault(),k(!0))};_L(()=>{if(!P)return;let G=Y=>{B(A(Y.clientX))},H=Y=>{k(!1),E.current=!0,f?.(O(A(Y.clientX)))},X=Y=>{Y.touches.length>0&&B(A(Y.touches[0].clientX))},$=Y=>{k(!1),E.current=!0,f?.(O(A(Y.changedTouches[0].clientX)))};return document.addEventListener("mousemove",G),document.addEventListener("mouseup",H),document.addEventListener("touchmove",X),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",$)}},[P,O,A,B,f]);let j=G=>Ho("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:G});return Ho("div",{className:zo("cleen",m),style:y,ref:R,children:Ds("div",{className:zo("cleen-w-full",b?.container),style:u?.container,children:[C&&Ho(de,{htmlFor:t,required:n,tooltip:S,...b?.label,...u?.label,children:C}),Ds("div",{className:zo({"cleen-flex cleen-items-center cleen-gap-2":d==="inline"},b?.slider),style:u?.slider,children:[d==="inline"&&I?.minLabel!==void 0&&j(I?.minLabel),Ds("div",{ref:M,className:zo("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":v,"cleen-flex-1":d==="inline"},b?.track),style:u?.track,"aria-disabled":v,onClick:_,children:[Ho("div",{className:zo("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",v?"cleen-cursor-not-allowed":"cleen-cursor-pointer",b?.path),style:u?.path,children:Ho("div",{className:zo("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",b?.filledTrack),style:{width:`${F}%`,...u?.filledTrack}})}),Ho(Ne,{invertColors:!0,...x,label:I?.tooltip?.(D)??D,className:zo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",x?.className),style:{left:`calc(${F}% - 8px)`,...x?.style},isOpen:P||x?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:Ho("div",{id:t,className:zo("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",v?"cleen-cursor-not-allowed":"cleen-cursor-pointer",b?.thumb),style:u?.thumb,tabIndex:v?-1:0,role:"slider","aria-valuenow":D,"aria-valuemin":o,"aria-valuemax":a,"aria-disabled":v,"aria-label":typeof C=="string"?C:"Slider","aria-labelledby":t,onMouseDown:U,onTouchStart:W,onKeyDown:V})})]}),d==="inline"?I?.maxLabel&&j(I?.maxLabel):(I?.minLabel||I?.maxLabel)&&Ds("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[I?.minLabel&&j(I?.minLabel),I?.maxLabel&&j(I?.maxLabel)]})]}),(w?.errorMessage||w?.infoMessage||w?.subtitle)&&Ho(ie,{...w})]})})});import{cn as Vt}from"@cleen/ui-core";import{forwardRef as VL,useCallback as Rg,useEffect as zL,useRef as HL,useState as Ex}from"react";import{jsx as zt,jsxs as Fs}from"react/jsx-runtime";var UL=VL(function({id:t,required:n,minValue:o=0,maxValue:a=100,step:r=1,defaultValue:l=[o,a],value:i,variant:s="default",onChange:d,onChangeEnd:p,className:f,classNames:m,style:b,styles:y,disabled:u=!1,label:v,labelTooltip:C,labels:S,tooltips:I,infoLabels:x},w){let[R,T]=Ex(l??[o,a]),N=i!==void 0?i:R,D=HL(null),[M,P]=Ex(null),k=Rg(G=>{let H=Math.round((G-o)/r)*r+o;return Math.min(a,Math.max(o,H))},[o,a,r]),E=(N[0]-o)/(a-o)*100,L=Math.min(100,Math.max(0,E)),F=(N[1]-o)/(a-o)*100,O=Math.min(100,Math.max(0,F)),B=Rg(G=>{let H=[k(Math.min(G[0],G[1])),k(Math.max(G[0],G[1]))];i===void 0&&T(H),d?.(H)},[k,i,d]),A=Rg(G=>{let H=D.current;if(!H)return o;let X=H.getBoundingClientRect(),$=(G-X.left)/X.width;return k(o+$*(a-o))},[o,a,k]),V=G=>H=>{if(u)return;let X=G==="min"?N[0]:N[1],$;switch(H.key){case"ArrowRight":case"ArrowUp":$=X+r;break;case"ArrowLeft":case"ArrowDown":$=X-r;break;case"Home":$=o;break;case"End":$=a;break;default:return}H.preventDefault();let Y=G==="min"?[Math.min($,N[1]),N[1]]:[N[0],Math.max($,N[0])];B(Y),p?.([k(Y[0]),k(Y[1])])},U=G=>H=>{u||(H.preventDefault(),P(G))},_=G=>{if(u)return;let H=A(G.clientX),X=Math.abs(H-N[0]),$=Math.abs(H-N[1]);X<$?B([H,N[1]]):B([N[0],H])},W=G=>H=>{u||(H.preventDefault(),P(G))};zL(()=>{if(!M)return;let G=Y=>{let ae=A(Y.clientX);B(M==="min"?[ae,N[1]]:[N[0],ae])},H=Y=>{let ae=A(Y.clientX),be=M==="min"?[ae,N[1]]:[N[0],ae];P(null),p?.(be)},X=Y=>{if(Y.touches.length>0){let ae=A(Y.touches[0].clientX);B(M==="min"?[ae,N[1]]:[N[0],ae])}},$=Y=>{let ae=A(Y.changedTouches[0].clientX),be=M==="min"?[ae,N[1]]:[N[0],ae];P(null),p?.(be)};return document.addEventListener("mousemove",G),document.addEventListener("mouseup",H),document.addEventListener("touchmove",X),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",$)}},[M,N,A,B,p]);let j=G=>zt("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:G});return zt("div",{className:Vt("cleen",f),style:b,ref:w,children:Fs("div",{className:Vt("cleen-w-full",m?.container),style:y?.container,children:[v&&zt(de,{htmlFor:t,required:n,tooltip:C,...m?.label,...y?.label,children:v}),Fs("div",{className:Vt({"cleen-flex cleen-items-center cleen-gap-2":s==="inline"},m?.slider),style:y?.slider,children:[s==="inline"&&S?.minLabel!==void 0&&j(S?.minLabel),Fs("div",{ref:D,className:Vt("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:_,children:[zt("div",{className:Vt("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:zt("div",{className:Vt("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{left:`${L}%`,width:`${O-L}%`,...y?.filledTrack}})}),zt(Ne,{invertColors:!0,isOpen:M==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:S?.tooltip?.(N[0])??N[0]?.toString(),className:Vt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.min?.className),style:{left:`calc(${L}% - 8px)`,...I?.shared?.style,...I?.min?.style},children:zt("div",{className:Vt("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":o,"aria-valuemax":N[1],"aria-disabled":u,"aria-label":typeof v=="string"?`${v} minimum value`:"Minimum value",onMouseDown:U("min"),onTouchStart:W("min"),onKeyDown:V("min")})}),zt(Ne,{invertColors:!0,isOpen:M==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:S?.tooltip?.(N[1])??N[1]?.toString(),className:Vt("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:zt("div",{className:Vt("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":a,"aria-disabled":u,"aria-label":typeof v=="string"?`${v} maximum value`:"Maximum value",onMouseDown:U("max"),onTouchStart:W("max"),onKeyDown:V("max")})})]}),s==="inline"?S?.maxLabel&&j(S?.maxLabel):(S?.minLabel||S?.maxLabel)&&Fs("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[S?.minLabel&&j(S?.minLabel),S?.maxLabel&&j(S?.maxLabel)]})]}),(x?.errorMessage||x?.infoMessage||x?.subtitle)&&zt(ie,{...x})]})})});import{cn as $r}from"@cleen/ui-core";import{forwardRef as GL,useRef as $L,useState as Lx}from"react";import{jsx as Vn,jsxs as qL}from"react/jsx-runtime";var WL=GL(function({label:t,infoLabels:n,value:o,onChange:a,amount:r=5,gap:l,size:i,readonly:s,color:d="rgb(var(--cleen-yellow))",className:p,style:f,classNames:m,styles:b,...y},u){let[v,C]=Lx(0),S=o!==void 0,I=S?o:v,[x,w]=Lx(null),R=x!==null?x+1:I,T=!s,N=$L([]),D=I>0?I-1:0,M=L=>{S||C(L),a?.(L)},P=L=>{L<0||L>=r||(M(L+1),N.current[L]?.focus())},k=(L,F)=>{switch(L.key){case"ArrowRight":case"ArrowUp":L.preventDefault(),P((F+1)%r);break;case"ArrowLeft":case"ArrowDown":L.preventDefault(),P((F-1+r)%r);break;case"Home":L.preventDefault(),P(0);break;case"End":L.preventDefault(),P(r-1);break;default:break}},E=typeof t=="string"?t:"Rating";return Vn("div",{className:$r("cleen",p),style:f,ref:u,...y,children:qL("div",{className:$r("cleen-space-y-2",m?.container),style:b?.container,children:[t&&Vn("span",{className:$r("cleen-font-medium cleen-text-sm cleen-text-foreground",m?.label),style:b?.label,children:t}),Vn("div",{role:T?"radiogroup":"img","aria-label":T?E:`${E}: ${I} out of ${r}`,className:$r("cleen-flex cleen-gap-3",m?.list),style:{...l?{gap:l}:{},...b?.list},children:Array.from({length:r},(L,F)=>{let O=Vn(ol,{"aria-hidden":"true",className:$r("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...b?.star,fill:(s?I:R)>F?d:"transparent"}});return T?Vn("button",{type:"button",ref:B=>{N.current[F]=B},role:"radio","aria-checked":I===F+1,"aria-label":`${F+1} ${F+1===1?"star":"stars"}`,tabIndex:F===D?0:-1,onMouseEnter:()=>w(F),onMouseLeave:()=>w(null),onClick:()=>M(F+1),onKeyDown:B=>k(B,F),className:$r("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},F):Vn("span",{className:"cleen-cursor-default",children:O},F)})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&Vn(ie,{...n})]})})});import{cn as ho}from"@cleen/ui-core";import{forwardRef as KL}from"react";import{jsx as Uo,jsxs as Dx}from"react/jsx-runtime";var Fx=KL(({steps:e,activeStep:t=0,orientation:n="horizontal",color:o="rgb(var(--cleen-primary))",className:a,classNames:r,style:l,styles:i,...s},d)=>{let p=n==="vertical";return Uo("div",{ref:d,className:ho("cleen",a),style:{...l,width:"100%"},...s,children:Uo("div",{className:ho("cleen-flex cleen-w-full",p?"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((f,m)=>{let b=m+1<t,y=m+1===t;return Dx("div",{className:ho("cleen-relative cleen-flex cleen-flex-1",p?"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&&Uo("div",{className:ho("cleen-absolute cleen-bg-neutral-200 cleen-transition-all cleen-duration-300",p?"cleen-left-3 cleen-top-7 cleen-w-[2px] cleen-h-[calc(100%-4px)]":"cleen-top-3 cleen-left-[calc(50%+14px)] cleen-h-[2px] cleen-w-[calc(100%+4px)]",b&&"cleen-bg-primary",r?.connector),style:{backgroundColor:b?o:void 0,...i?.connector}}),Uo("div",{className:ho("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",b||y?"cleen-border-[2px]":"cleen-border-border",r?.circle),style:{borderColor:y||b?o:void 0,backgroundColor:b?o:"transparent",...i?.circle},children:b?Uo("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):Uo("span",{className:ho("cleen-w-2 cleen-h-2 cleen-rounded-full",y?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:y?o:void 0}})}),Dx("div",{className:ho("cleen-flex cleen-flex-col",p?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[f.title&&Uo("div",{className:ho("cleen-font-medium cleen-text-sm",y?"cleen-text-primary":"cleen-text-foreground",r?.title),style:{color:y?o:void 0,...i?.title},children:f.title}),f.subtitle&&Uo("div",{className:ho("cleen-text-xs cleen-text-neutral-600",r?.subtitle),style:{color:y?o:void 0,...i?.subtitle},children:f.subtitle})]})]},m)})})})});Fx.displayName="Stepper";import{cn as ze}from"@cleen/ui-core";import{forwardRef as XL,useMemo as Ox,useState as Wr}from"react";var Ax={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 ZL,jsx as De,jsxs as qr}from"react/jsx-runtime";var YL=[],QL=XL(function({items:t=YL,value:n,defaultValue:o,onApply:a,onCreate:r,isLoading:l=!1,icon:i,disabled:s=!1,isOpen:d,onOpenChange:p,position:f="bottom-left",zIndex:m,labels:b,className:y,classNames:u,style:v,styles:C,...S},I){let x={...Ax,...b},[w,R]=Wr(o??[]),T=n??w,[N,D]=Wr(!1),M=d??N,[P,k]=Wr(T),[E,L]=Wr(""),[F,O]=Wr([]),[B,A]=Wr(!1),V=Ox(()=>[...t,...F.filter(Q=>!t.some(z=>z.id===Q.id))],[t,F]),U=E.trim(),_=Ox(()=>{let Q=U.toLowerCase();return Q?V.filter(z=>z.label.toLowerCase().includes(Q)):V},[V,U]),W=!!U&&!V.some(Q=>Q.label.toLowerCase()===U.toLowerCase())&&!!r,j=l||B,G=T.length,H=G>0,X=Q=>{Q&&(k(T),L("")),d===void 0&&D(Q),p?.(Q)},$=Q=>{k(z=>z.includes(Q)?z.filter(re=>re!==Q):[...z,Q])},Y=async()=>{if(!(!r||!U||j)){A(!0);try{let Q=await r(U);Q&&(O(z=>z.some(re=>re.id===Q.id)?z:[...z,Q]),k(z=>z.includes(Q.id)?z:[...z,Q.id]),L(""))}finally{A(!1)}}},ae=Q=>{Q.key==="Enter"&&W&&(Q.preventDefault(),Y())},be=()=>{k([])},pe=()=>{let Q=V.filter(z=>P.includes(z.id));n===void 0&&R(P),a?.(P,Q),X(!1)},Me=qr(ZL,{children:[W&&De("div",{className:"cleen-p-1.5",children:De(te,{variant:"borderless-blue",fullWidth:!0,isLoading:j,leftIcon:De(nn,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{Y()},classNames:{container:ze("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",u?.createButton)},styles:{container:C?.createButton},children:De("span",{className:"cleen-truncate",children:x.create(U)})})}),_.length===0?W?null:De("p",{className:ze("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:V.length===0?x.noData:x.noMatches}):De("ul",{className:ze("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:_.map(Q=>qr("li",{onClick:()=>$(Q.id),className:ze("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:[De(hn,{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:ze("cleen-text-sm cleen-truncate cleen-cursor-pointer",u?.itemLabel)},styles:{checkbox:C?.checkbox,label:C?.itemLabel},checked:P.includes(Q.id),onClick:z=>z.stopPropagation(),label:De("span",{title:Q.label,className:"cleen-select-none",children:Q.label}),fullTriggerArea:!0}),Q.count!==void 0&&De("span",{className:ze("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:Q.count})]},Q.id))})]}),q=qr("div",{className:ze("cleen-flex cleen-flex-col",u?.content),style:C?.content,role:"dialog",children:[De(Ie,{autoFocus:!0,value:E,onChange:Q=>L(Q.target.value),onKeyDown:ae,placeholder:x.searchPlaceholder,"aria-label":x.searchPlaceholder,leftIcon:De(Ct,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:ze("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"}}),De(xt,{className:ze("cleen-shrink-0",u?.divider),style:C?.divider}),De("div",{className:"cleen-flex-1 cleen-min-h-0",children:Me}),qr("div",{className:ze("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:[De("span",{className:ze("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",u?.footerText),style:C?.footerText,children:P.length>0?x.selected(P.length):x.footer}),qr("div",{className:ze("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",u?.footerActions),style:C?.footerActions,children:[De(te,{variant:"secondary",onClick:be,disabled:P.length===0,classNames:{container:ze("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.clearButton)},styles:{container:C?.clearButton},children:x.clear}),De(te,{variant:"primary",onClick:pe,classNames:{container:ze("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.doneButton)},styles:{container:C?.doneButton},children:x.done})]})]})]});return De(oo,{ref:I,isOpen:M,onOpenChange:X,position:f,zIndex:m,content:q,className:y,style:v,classNames:{trigger:ze(s&&"cleen-pointer-events-none"),popover:ze("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",u?.popover)},styles:{popover:C?.popover},...S,children:qr("button",{type:"button",disabled:s,"aria-label":x.trigger,"aria-haspopup":"dialog","aria-expanded":M,className:ze("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":H,"cleen-opacity-50 cleen-cursor-not-allowed":s},u?.trigger,H&&u?.triggerActive),style:{...C?.trigger,...H?C?.triggerActive:{}},children:[i??De(rl,{className:"cleen-size-4 cleen-shrink-0"}),H&&De("span",{className:ze("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}),De(Jo,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var Eg={default:"Default","sans-serif":"Sans-serif",serif:"Serif",monospace:"Monospace",cursive:"Cursive",fantasy:"Fantasy"},Lg={white:"White",yellow:"Yellow",green:"Green",cyan:"Cyan",blue:"Blue",magenta:"Magenta",red:"Red",black:"Black"},Dg={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:Eg,captionColors:Lg,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,As=1.7777777777777777,Ag=1080,Kr=-1,Og=.5,_g=2,_x=.25,ec=.05,Vx=2500,zx=5,Hx=.5,tc=5,Ux=480,Gx=24,$x=16,Os="--cleen-video-player-height",JL=.045,jL=12,e6=32,Wx=`clamp(${jL}px, calc(var(${Os}, 360px) * ${JL}), ${e6}px)`,qx=250,Kx=40,Vg="cleen-video-player-caption-style",Go={fontFamily:"default",fontColor:"white",fontSize:1,backgroundColor:"black",backgroundOpacity:.75},Xr={default:void 0,"sans-serif":"sans-serif",serif:"serif",monospace:"monospace",cursive:"cursive",fantasy:"fantasy"},oc={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]},_s=[.5,.75,1,1.25,1.5,1.75,2],Vs=[0,.25,.5,.75,1],Xx=72,Yx=240,Qx=3,Zx={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 t6,useEffect as zg,useImperativeHandle as o6,useRef as n6}from"react";import{jsx as c6}from"react/jsx-runtime";var r6=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],a6=e=>{let t=r6;return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))},l6=t6(function({playing:t=!1,volume:n,playbackRate:o,...a},r){let l=n6(null);return o6(r,()=>l.current,[]),zg(()=>{let i=l.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,a.src]),zg(()=>{l.current&&n!==void 0&&(l.current.volume=n)},[n]),zg(()=>{l.current&&o!==void 0&&(l.current.playbackRate=o)},[o]),c6("video",{...a6(a),ref:l,width:"100%",height:"100%"})});import{forwardRef as i6}from"react";import s6 from"react-player";import{jsx as p6}from"react/jsx-runtime";var Hg=i6(function(t,n){return p6(s6,{...t,ref:n,width:"100%",height:"100%"})});var nc=(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))(nc||{});var Yr=e=>{if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e),n=Math.floor(t/3600),o=Math.floor(t%3600/60),a=t%60,r=l=>String(l).padStart(2,"0");return n>0?`${n}:${r(o)}:${r(a)}`:`${o}:${r(a)}`},Ug=(e,t)=>{if(!Array.isArray(e)||!(t>0))return[];let n=e.filter(o=>Number.isFinite(o?.start)).map(o=>({...o,start:Math.min(Math.max(o.start,0),t)})).sort((o,a)=>o.start-a.start);return n.map((o,a)=>{let r=n[a+1]?.start??t,l=o.end!==void 0&&Number.isFinite(o.end)?Math.min(Math.max(o.end,o.start),r):r;return{...o,end:l}}).filter(o=>o.end>o.start)},Gg=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),Jx=e=>e?Array.from({length:e.length},(t,n)=>({start:e.start(n),end:e.end(n)})):[],jx=(e,t)=>e.length===t.length&&e.every((n,o)=>n.start===t[o].start&&n.end===t[o].end),eP=(e,t,n)=>{let o=n-t;if(!(o>0)||!Number.isFinite(o))return[];let a=e.filter(l=>Number.isFinite(l.start)&&Number.isFinite(l.end)).map(l=>({start:Math.max(l.start,t),end:Math.min(l.end,n)})).filter(l=>l.end>l.start).sort((l,i)=>l.start-i.start),r=[];return a.forEach(l=>{let i=r[r.length-1];i&&l.start<=i.end?i.end=Math.max(i.end,l.end):r.push({...l})}),r.map(l=>({left:(l.start-t)/o,width:(l.end-l.start)/o}))},zn=({width:e,height:t})=>e>0&&t>0?Math.min(e,t):Math.max(e,t,0),$g=(e,t)=>{if(!(t!==void 0&&t>0)||e.length===0)return-1;let n=[...e].sort((a,r)=>zn(a)-zn(r)||a.bitrate-r.bitrate),o=n.filter(a=>zn(a)<=t);return(o[o.length-1]??n[0]).index},tP=(e,t)=>{let n=[...e].sort((o,a)=>zn(a)-zn(o)||a.bitrate-o.bitrate);return n.map(o=>{let a=zn(o),r=a>0?t(a):`${Math.round(o.bitrate/1e3)} kbps`,l=n.filter(i=>zn(i)===a);return{value:o.index,label:a>0&&l.length>1?`${r} (${(o.bitrate/1e6).toFixed(1)} Mbps)`:r}})},d6=(e,t)=>{let n=-1;return e.forEach((o,a)=>{t>=o.start&&(n=a)}),Math.max(n,0)},ac=(e,t)=>e.find(n=>t>=n.start&&t<n.end)??(e.length>0&&t>=e[e.length-1].end?e[e.length-1]:void 0),oP=(e,t)=>{let n=Array.from(e).filter(o=>o.kind==="chapters");return t&&n.find(o=>o.language===t)||n[0]},nP=e=>Array.from(e).map(t=>({start:t.startTime,end:t.endTime,title:t.text?.replace(/<[^>]*>/g,"").trim()||void 0})),Hs=e=>Array.from(e).filter(({kind:t="subtitles"})=>["subtitles","captions"].includes(t)),rP=(e,t,n)=>e.label||e.srcLang||n(t+1),rc=(e,t)=>e.includes(t),Wg=e=>{let t=e&&typeof e=="object"?e:{},n=Object.keys(oc),o=Object.keys(Xr);return{fontFamily:rc(o,t.fontFamily)?t.fontFamily:Go.fontFamily,fontColor:rc(n,t.fontColor)?t.fontColor:Go.fontColor,fontSize:rc(_s,t.fontSize)?t.fontSize:Go.fontSize,backgroundColor:rc(n,t.backgroundColor)?t.backgroundColor:Go.backgroundColor,backgroundOpacity:rc(Vs,t.backgroundOpacity)?t.backgroundOpacity:Go.backgroundOpacity}},zs=(e,t=1)=>`rgba(${oc[e].join(",")},${t})`,aP=({fontFamily:e,fontColor:t,fontSize:n,backgroundColor:o,backgroundOpacity:a})=>({fontFamily:Xr[e],fontSize:`calc(${Wx} * ${n})`,color:zs(t),backgroundColor:zs(o,a)});import{cn as ic}from"@cleen/ui-core";import{forwardRef as hD,useCallback as Xe,useImperativeHandle as gD,useMemo as ab,useReducer as bD,useRef as lS,useState as yD}from"react";import{cn as Wn}from"@cleen/ui-core";var $o="cleen-text-[#fff]",qg="cleen-text-[rgba(255,255,255,0.45)]",lP="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",cP="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",iP="!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)]",Wo="focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",Us="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",Gs="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as pP}from"@cleen/ui-core";import{useLayoutEffect as f6,useRef as h6}from"react";import{useEffect as m6,useState as u6}from"react";var $s=[],sP=(e,t,n,o,a)=>{let[r,l]=u6($s);return m6(()=>{let i=e.current?.textTracks;if(!t||!i)return;let s,d=()=>l(s?.activeCues?Array.from(s.activeCues):$s),p=()=>{let f=Hs(i),m=f[n]??f[0];m!==s&&(s&&(s.removeEventListener("cuechange",d),s.mode="disabled"),m?.addEventListener("cuechange",d),s=m),s&&s.mode!=="hidden"&&(s.mode="hidden"),d()};return p(),i.addEventListener("addtrack",p),i.addEventListener("removetrack",p),()=>{i.removeEventListener("addtrack",p),i.removeEventListener("removetrack",p),s&&(s.removeEventListener("cuechange",d),s.mode="disabled"),l($s)}},[t,n,o,a,e]),t?r:$s};import{jsx as Kg}from"react/jsx-runtime";var g6=e=>typeof VTTCue<"u"&&e instanceof VTTCue?e.getCueAsHTML():"",b6=({cue:e,className:t,style:n})=>{let o=h6(null);return f6(()=>{o.current?.replaceChildren(g6(e))},[e]),Kg("span",{ref:o,className:t,style:n})},dP=({videoRef:e,src:t,showCaptions:n,trackIndex:o,captionStyle:a,pictureInPicture:r,hidden:l,controlsVisible:i,controlsOnHover:s,classNames:d,styles:p})=>{let f=sP(e,n&&!r,o,t,!l);return l||r||f.length===0?null:Kg("div",{className:pP("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",d?.captions),style:p?.captions,children:f.map((m,b)=>Kg(b6,{cue:m,className:pP("cleen-max-w-[80%] cleen-rounded-md cleen-px-[0.5em] cleen-py-[0.2em] cleen-leading-snug cleen-whitespace-pre-line",d?.captionsText),style:{...aP(a),...p?.captionsText}},`${m.id}-${m.startTime}-${b}`))})};import{cn as y6}from"@cleen/ui-core";import{forwardRef as v6}from"react";import{jsx as I6}from"react/jsx-runtime";var Ht=v6(function({label:t,onClick:n,disabled:o,active:a,className:r,style:l,children:i},s){return I6("button",{ref:s,type:"button","aria-label":t,"aria-pressed":a,onClick:n,disabled:o,className:y6("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",Wo,r),style:l,children:i})});import{cn as Ut}from"@cleen/ui-core";import{useRef as gP}from"react";import{useCallback as C6,useEffect as x6,useRef as mP,useState as P6}from"react";var uP=(e,t)=>{let[n,o]=P6(null),a=mP(!1),r=mP(!1),l=C6(s=>{let d=e.current;if(!d||!(t>0))return;let p=d.getBoundingClientRect(),f=p.width>0?Math.min(Math.max((s-p.left)/p.width,0),1):0;o({ratio:f,time:f*t})},[e,t]);return x6(()=>{let s=p=>{a.current&&l(p.clientX)},d=()=>{a.current=!1,r.current||o(null)};return window.addEventListener("pointermove",s),window.addEventListener("pointerup",d),()=>{window.removeEventListener("pointermove",s),window.removeEventListener("pointerup",d)}},[l]),{preview:n,previewHandlers:{onPointerEnter:s=>{r.current=!0,l(s.clientX)},onPointerMove:s=>l(s.clientX),onPointerDown:s=>{a.current=!0,l(s.clientX)},onPointerLeave:()=>{r.current=!1,a.current||o(null)}}}};import{cn as S6}from"@cleen/ui-core";import{Fragment as w6,jsx as fP}from"react/jsx-runtime";var Ws=({buffered:e,start:t,end:n,className:o,style:a})=>fP(w6,{children:eP(e,t,n).map(r=>fP("div",{"aria-hidden":!0,className:S6("cleen-absolute cleen-inset-y-0 cleen-bg-[rgba(255,255,255,0.5)] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",o),style:{...a,left:`${r.left*100}%`,width:`${r.width*100}%`}},r.left))});import{cn as qs}from"@cleen/ui-core";import{jsx as Ks,jsxs as M6}from"react/jsx-runtime";var hP=({chapters:e,duration:t,currentTime:n,buffered:o,classNames:a,styles:r})=>Ks("div",{"aria-hidden":!0,className:qs("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-h-1 -cleen-translate-y-1/2 cleen-pointer-events-none",a?.chapters),style:r?.chapters,children:e.map(l=>Ks("div",{className:qs("cleen-absolute cleen-inset-y-0 cleen-pr-0.5 last:cleen-pr-0",a?.chapter),style:{...r?.chapter,left:`${l.start/t*100}%`,width:`${(l.end-l.start)/t*100}%`},children:M6("div",{className:qs("cleen-relative cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-h-full cleen-overflow-hidden",a?.chapterTrack),style:r?.chapterTrack,children:[Ks(Ws,{buffered:o,start:l.start,end:l.end,className:a?.chapterBuffered,style:r?.chapterBuffered}),Ks("div",{className:qs("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",a?.chapterFill),style:{...r?.chapterFill,width:`${Gg(l,n)*100}%`}})]})},l.start))});import{Fragment as k6,jsx as Hn,jsxs as Xs}from"react/jsx-runtime";var bP=({allowBarSeeking:e,chapters:t,duration:n,currentTime:o,buffered:a,onSeek:r,seekLabel:l,progressLabel:i,classNames:s,styles:d})=>{let p=gP(null),f=gP(null),{preview:m,previewHandlers:b}=uP(p,n),y=m?ac(t,m.time):void 0,u=t.length>0,v=u&&Hn(hP,{chapters:t,duration:n,currentTime:o,buffered:a,classNames:s,styles:d}),C=Hn(Ws,{buffered:a,start:0,end:n,className:s?.seekBuffered,style:d?.seekBuffered}),S=f.current?.offsetWidth||0;if(e){let x=s?.seekSlider?.classNames;return Xs("div",{ref:p,role:"group","aria-label":l,className:Ut("cleen-relative",s?.seekBar),style:d?.seekBar,...b,children:[v||Hn("div",{"aria-hidden":!0,className:Ut("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:d?.seekTrack,children:C}),m&&Xs("div",{ref:f,"aria-hidden":!0,className:Ut("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",$o,{"cleen-opacity-0":f.current===null},s?.seekTooltip),style:{left:`clamp(0rem, calc(${m.ratio*100}% - ${S/2}px), calc(100% - ${S}px))`,...d?.seekTooltip},children:[Hn("span",{children:Yr(m.time)}),y?.title&&Xs("span",{className:Ut("cleen-font-medium cleen-truncate",s?.seekTooltipChapter),style:d?.seekTooltipChapter,children:["\xB7 ",y.title]})]}),Hn(_n,{value:o,maxValue:n,step:.01,keyboardStep:tc,onChange:r,className:Ut("cleen-relative cleen-flex cleen-items-center cleen-h-3.5 cleen-cursor-pointer",s?.seekSlider?.className),classNames:{...x,track:Ut("!cleen-h-4",x?.track),path:Ut("!cleen-bg-transparent",x?.path),filledTrack:Ut({"!cleen-bg-transparent":u},x?.filledTrack)},tooltip:{isDisabled:!0},...d?.seekSlider})]})}let I=n>0?Math.min(o/n*100,100):0;return Hn("div",{role:"progressbar","aria-label":i,"aria-valuemin":0,"aria-valuemax":Math.floor(n),"aria-valuenow":Math.floor(o),className:Ut("cleen-relative cleen-h-1",{"cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-overflow-hidden":!u},s?.seekBar),style:d?.seekBar,children:v||Xs(k6,{children:[C,Hn("div",{className:Ut("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:{...d?.progressFill,width:`${I}%`}})]})})};import{cn as qo}from"@cleen/ui-core";import{useEffect as R6,useRef as SP,useState as wP}from"react";import{cn as T6}from"@cleen/ui-core";import{cn as Gt}from"@cleen/ui-core";import{useId as yP}from"react";import{jsx as Un,jsxs as Xg}from"react/jsx-runtime";var lc=({title:e,children:t,onReset:n,resetLabel:o,classNames:a,styles:r})=>{let l=yP();return Xg("section",{"aria-labelledby":l,className:Gt("cleen-flex cleen-flex-col cleen-gap-3",a?.settingsGroup),style:r?.settingsGroup,children:[Xg("div",{className:Gt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",a?.settingsGroupHeader),style:r?.settingsGroupHeader,children:[Un("h3",{id:l,className:Gt("cleen-font-semibold cleen-text-foreground cleen-text-xs",a?.settingsGroupTitle),style:r?.settingsGroupTitle,children:e}),n&&Un("button",{type:"button",onClick:n,className:Gt("cleen-font-semibold cleen-text-xs cleen-text-primary hover:cleen-underline",a?.settingsResetButton),style:r?.settingsResetButton,children:o})]}),t]})},go=({label:e,options:t,value:n,onChange:o,classNames:a,styles:r})=>{let l=yP(),i=Un("div",{role:e?"group":void 0,"aria-labelledby":e?l:void 0,className:Gt("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-1.5",a?.settingsOptions),style:r?.settingsOptions,children:t.map(s=>{let d=s.value===n;return s.swatch?Un("button",{type:"button","aria-label":s.ariaLabel,"aria-pressed":d,title:s.ariaLabel,onClick:()=>o(s.value),className:Gt("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",a?.settingsSwatch,d&&["cleen-ring-2 cleen-ring-primary cleen-ring-offset-2 cleen-ring-offset-background",a?.settingsSwatchActive]),style:{backgroundColor:s.swatch,...s.style,...r?.settingsSwatch,...d?r?.settingsSwatchActive:void 0}},s.value):Un("button",{type:"button","aria-label":s.ariaLabel,"aria-pressed":d,onClick:()=>o(s.value),className:Gt("cleen-rounded focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",a?.settingsOption,d&&a?.settingsOptionActive),style:{...s.style,...r?.settingsOption,...d?r?.settingsOptionActive:void 0},children:Un(Le,{color:d?"primary":"foreground-transparent",variant:"sleek",className:a?.settingsOptionBadge?.className,classNames:{...a?.settingsOptionBadge?.classNames,container:Gt("cleen-font-medium",d?"hover:cleen-bg-primary-100":"hover:cleen-bg-muted",a?.settingsOptionBadge?.classNames?.container)},...r?.settingsOptionBadge,children:s.label})},s.value)})});return e?Xg("div",{className:Gt("cleen-flex cleen-flex-col cleen-gap-1.5",a?.settingsField),style:r?.settingsField,children:[Un("span",{id:l,className:Gt("cleen-text-muted-foreground cleen-text-xs",a?.settingsFieldLabel),style:r?.settingsFieldLabel,children:e}),i]}):i};import{jsx as Gn,jsxs as vP}from"react/jsx-runtime";var Yg=-1,N6=e=>`${Math.round(e*100)}%`,IP=({tracks:e,trackIndex:t,showCaptions:n,captionStyle:o,onCaptionStyleChange:a,dispatch:r,labels:l,classNames:i,styles:s})=>{let d={classNames:i,styles:s},p=t<e.length?t:0,f=[{value:Yg,label:l.captionsOff},...e.map((u,v)=>({value:v,label:rP(u,v,l.captionsTrack)}))],m=Object.keys(Xr).map(u=>({value:u,label:l.captionFontFamilies[u]??Eg[u],style:{fontFamily:Xr[u]}})),b=Object.keys(oc).map(u=>{let v=l.captionColors[u]??Lg[u];return{value:u,label:v,ariaLabel:v,swatch:zs(u)}}),y=u=>u.map(v=>({value:v,label:N6(v)}));return vP("div",{className:T6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",i?.captionsSettings),style:s?.captionsSettings,children:[Gn(lc,{title:l.language,...d,children:Gn(go,{options:f,value:n?p:Yg,onChange:u=>r(u===Yg?{type:"hideCaptions"}:{type:"selectCaptionsTrack",index:u}),...d})}),vP(lc,{title:l.captionStyle,onReset:()=>a(Go),resetLabel:l.resetCaptionStyle,...d,children:[Gn(go,{label:l.fontFamily,options:m,value:o.fontFamily,onChange:u=>a({fontFamily:u}),...d}),Gn(go,{label:l.fontColor,options:b,value:o.fontColor,onChange:u=>a({fontColor:u}),...d}),Gn(go,{label:l.fontSize,options:y(_s),value:o.fontSize,onChange:u=>a({fontSize:u}),...d}),Gn(go,{label:l.backgroundColor,options:b,value:o.backgroundColor,onChange:u=>a({backgroundColor:u}),...d}),Gn(go,{label:l.backgroundOpacity,options:y(Vs),value:o.backgroundOpacity,onChange:u=>a({backgroundOpacity:u}),...d})]})]})};import{cn as B6}from"@cleen/ui-core";import{jsx as Qg}from"react/jsx-runtime";var CP=({quality:e,labels:t,classNames:n,styles:o})=>{let a=tP(e.levels,t.qualityLevel),r=a.find(i=>i.value===e.current)?.label,l=[{value:Kr,label:t.qualityAuto(r)},...a];return Qg("div",{className:B6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",n?.qualitySettings),style:o?.qualitySettings,children:Qg(lc,{title:t.quality,classNames:n,styles:o,children:Qg(go,{options:l,value:e.selected,onChange:e.onChange,classNames:n,styles:o})})})};import{cn as Ys}from"@cleen/ui-core";import{jsx as Zg,jsxs as xP}from"react/jsx-runtime";var PP=({playbackRate:e,dispatch:t,label:n,classNames:o,styles:a})=>xP("div",{className:Ys("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",o?.speedContent),style:a?.speedContent,children:[xP("div",{className:Ys("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",o?.speedHeader),style:a?.speedHeader,children:[Zg("span",{className:o?.speedLabel,style:a?.speedLabel,children:n}),Zg("span",{className:Ys("cleen-tabular-nums cleen-text-primary",o?.speedValue),style:a?.speedValue,children:`${e.toFixed(2)}\xD7`})]}),Zg(_n,{minValue:Og,maxValue:_g,step:_x,value:e,onChange:r=>t({type:"setPlaybackRate",playbackRate:r}),className:Ys("cleen-w-full",o?.speedSlider?.className),classNames:o?.speedSlider?.classNames,labels:{minLabel:`${Og}\xD7`,maxLabel:`${_g}\xD7`},...a?.speedSlider})]});import{jsx as Mt}from"react/jsx-runtime";var Qr=18,MP='button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])',kP=({containerRef:e,portalContainer:t,isOpen:n,onOpenChange:o,showQualityTab:a,quality:r,showSpeedTab:l,showCaptionsTab:i,playbackRate:s,captionTracks:d,captionsTrackIndex:p,showCaptions:f,captionStyle:m,onCaptionStyleChange:b,dispatch:y,labels:u,iconSize:v,classNames:C,styles:S})=>{let[I,x]=wP(0),[w,R]=wP(),T=SP(null),N=SP(null),D=F=>{o(!1),F&&T.current?.focus()};R6(()=>{if(!n)return;let F=requestAnimationFrame(()=>{let B=N.current;(B?.querySelector('[aria-current="page"]')??B?.querySelector(MP))?.focus({preventScroll:!0})}),O=B=>{B.key==="Escape"&&(o(!1),document.activeElement===T.current&&T.current?.focus())};return document.addEventListener("keydown",O),()=>{cancelAnimationFrame(F),document.removeEventListener("keydown",O)}},[n,o]);let M=C?.settingsPopover?.classNames,P=C?.settingsTabs?.classNames,k=F=>{if(F){let O=e.current?.clientHeight;R(O===void 0?void 0:Math.min(Yx,O-Xx))}o(F)},E=F=>{if(F.stopPropagation(),F.key==="Escape"){D(!0);return}if(F.key==="Tab"&&N.current){let O=Array.from(N.current.querySelectorAll(MP)),B=O[0],A=O[O.length-1];F.shiftKey&&document.activeElement===B?(F.preventDefault(),A?.focus()):!F.shiftKey&&document.activeElement===A&&(F.preventDefault(),B?.focus())}},L=[...a?[{id:"quality",label:Mt(ia,{width:Qr,height:Qr}),content:Mt(CP,{quality:r,labels:u,classNames:C,styles:S})}]:[],...l?[{id:"speed",label:Mt(tl,{width:Qr,height:Qr}),content:Mt(PP,{playbackRate:s,dispatch:y,label:u.playbackSpeed,classNames:C,styles:S})}]:[],...i?[{id:"captions",label:Mt(ga,{width:Qr,height:Qr}),content:Mt(IP,{tracks:d,trackIndex:p,showCaptions:f,captionStyle:m,onCaptionStyleChange:b,dispatch:y,labels:u,classNames:C,styles:S})}]:[]];return Mt(oo,{position:"top-right",isOpen:n,onOpenChange:k,portalContainer:t,className:C?.settingsPopover?.className,classNames:{...M,popover:qo("!cleen-w-72 cleen-flex cleen-flex-col cleen-overflow-hidden",M?.popover),trigger:qo("cleen-flex cleen-items-center",M?.trigger)},...S?.settingsPopover,styles:{...S?.settingsPopover?.styles,popover:{height:w,...S?.settingsPopover?.styles?.popover}},content:Mt("div",{ref:N,className:"cleen-flex cleen-flex-col cleen-min-h-0",onKeyDown:E,onDoubleClick:F=>F.stopPropagation(),children:Mt(Ol,{tabs:L,currentTabIndex:Math.min(I,L.length-1),onTabChange:x,variant:"underlined",className:qo("cleen-flex cleen-flex-col cleen-min-h-0",C?.settingsTabs?.className),classNames:{...P,container:qo("cleen-flex cleen-flex-col cleen-min-h-0",P?.container),list:qo("cleen-shrink-0 cleen-mb-0 cleen-px-3 cleen-pt-2",P?.list),tab:qo("cleen-pb-2",P?.tab),content:qo("cleen-min-h-0 cleen-overflow-y-auto",P?.content)},...S?.settingsTabs})}),children:Mt(Ht,{ref:T,label:u.settings,active:n,className:qo(C?.controlButton,C?.settingsButton),style:{...S?.controlButton,...S?.settingsButton},children:Mt(Qa,{width:v,height:v})})})};import{cn as TP}from"@cleen/ui-core";import{jsx as Jg}from"react/jsx-runtime";var NP=({hasTracks:e,showCaptions:t,onToggle:n,portalContainer:o,labels:a,classNames:r,styles:l})=>{let i=r?.subtitlesBadge?.classNames;return Jg(Ne,{label:e?a.subtitles:a.noSubtitles,className:r?.subtitlesTooltip?.className,classNames:r?.subtitlesTooltip?.classNames,portalContainer:o,...l?.subtitlesTooltip,children:Jg("button",{type:"button","aria-label":a.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:n,className:TP("cleen-rounded-md disabled:cleen-opacity-40",Wo,r?.subtitlesButton),style:l?.subtitlesButton,children:Jg(Le,{variant:"sleek",className:r?.subtitlesBadge?.className,classNames:{...i,container:TP(lP,{[cP]:e},{[iP]:t},i?.container)},...l?.subtitlesBadge,children:a.subtitlesBadge})})})};import{jsx as $n,jsxs as E6}from"react/jsx-runtime";var BP=({muted:e,volume:t,size:n})=>e||t===0?$n(pl,{width:n,height:n}):t<.75?$n(sl,{width:n,height:n}):$n(il,{width:n,height:n}),RP=({isFullscreen:e,size:t})=>e?$n(za,{width:t,height:t}):$n(Oa,{width:t,height:t}),Zr=({forward:e,seconds:t,size:n})=>E6("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[$n(e?Xa:Ka,{width:n,height:n}),$n("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(n*.34)},children:t})]});import{cn as Qs}from"@cleen/ui-core";import{jsx as Zs,jsxs as L6}from"react/jsx-runtime";var EP=({muted:e,volume:t,dispatch:n,labels:o,iconSize:a,classNames:r,styles:l})=>L6("div",{className:Qs("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2 cleen-min-w-0",r?.volume),style:l?.volume,children:[Zs(Ht,{label:e?o.unmute:o.mute,active:e,onClick:()=>n({type:"toggleMuted"}),className:Qs(r?.controlButton,r?.muteButton),style:{...l?.controlButton,...l?.muteButton},children:Zs(BP,{muted:e,volume:t,size:a})}),Zs("div",{role:"group","aria-label":o.volume,className:Qs("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:l?.volumeSliderContainer,children:Zs(_n,{minValue:0,maxValue:1,step:ec,value:e?0:t,onChange:i=>n({type:"setVolume",volume:i,muted:i===0}),className:Qs("cleen-w-full",r?.volumeSlider?.className),classNames:r?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...l?.volumeSlider})})]});import{jsx as Ae,jsxs as cc}from"react/jsx-runtime";var LP=({containerRef:e,portalContainer:t,videoRef:n,src:o,state:a,dispatch:r,isShown:l,allowBarSeeking:i,chapters:s,buffered:d,seekStep:p,quality:f,hasTracks:m,captionTracks:b,captionStyle:y,onCaptionStyleChange:u,onSettingsOpenChange:v,visible:C,hidden:S,controlsOnHover:I,onSeek:x,onSeekBy:w,onTogglePlay:R,onToggleFullscreen:T,pictureInPictureSupported:N,onTogglePictureInPicture:D,labels:M,compact:P,classNames:k,styles:E})=>{let{playing:L,currentTime:F,duration:O,muted:B,volume:A,playbackRate:V,showCaptions:U,captionsTrackIndex:_,settingsOpen:W,isPictureInPicture:j,isFullscreen:G}=a,H=P?$x:Gx,X=ac(s,F)?.title,$=I&&!W,Y=l("quality")&&f.levels.length>0,ae=l("speed"),be=l("subtitles")&&b.length>0,pe=Me=>({className:Wn(k?.controlButton,k?.[Me]),style:{...E?.controlButton,...E?.[Me]}});return cc("div",{className:Wn("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-pointer-events-none",{"cleen-hidden":S},k?.controlBar),style:E?.controlBar,children:[Ae(dP,{videoRef:n,src:o,showCaptions:U,trackIndex:_,captionStyle:y,pictureInPicture:j,hidden:S,controlsVisible:C,controlsOnHover:$,classNames:k,styles:E}),cc("div",{className:Wn("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?$?"cleen-opacity-0 group-hover:cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-0",k?.controls),style:E?.controls,children:[l("seekbar")&&Ae(bP,{allowBarSeeking:i,chapters:s,duration:O,currentTime:F,buffered:d,onSeek:x,seekLabel:M.seek,progressLabel:M.progress,classNames:k,styles:E}),cc("div",{className:Wn("cleen-flex cleen-items-center","cleen-gap-2.5",{"sm:cleen-gap-3.5":!P},$o,k?.controlsRow),style:E?.controlsRow,children:[l("play")&&!P&&Ae(Ht,{label:L?M.pause:M.play,onClick:R,...pe("playButton"),children:L?Ae(vt,{width:H,height:H}):Ae(It,{width:H,height:H})}),l("backward")&&Ae(Ht,{label:M.seekBackward(p),onClick:()=>w(-p),...pe("backwardButton"),children:Ae(Zr,{seconds:p,size:H})}),l("forward")&&Ae(Ht,{label:M.seekForward(p),onClick:()=>w(p),...pe("forwardButton"),children:Ae(Zr,{forward:!0,seconds:p,size:H})}),l("volume")&&Ae(EP,{muted:B,volume:A,dispatch:r,labels:M,iconSize:H,classNames:k,styles:E}),l("time")&&cc("span",{className:Wn("cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap",{"cleen-text-xxs":P},k?.time),style:E?.time,children:[Ae("span",{className:k?.currentTime,style:E?.currentTime,children:Yr(F)})," ",cc("span",{className:Wn("cleen-font-medium",qg,k?.duration),style:E?.duration,children:["/ ",Yr(O)]})]}),X?Ae("span",{title:X,className:Wn("cleen-flex-1 cleen-min-w-0 cleen-font-medium cleen-text-[13px] cleen-truncate",qg,k?.chapterTitle),style:E?.chapterTitle,children:X}):Ae("span",{className:"cleen-flex-1"}),l("subtitles")&&m&&!P&&Ae(NP,{hasTracks:m,showCaptions:U,onToggle:()=>r({type:"toggleCaptions"}),portalContainer:t,labels:M,classNames:k,styles:E}),l("settings")&&(Y||ae||be)&&Ae(kP,{containerRef:e,portalContainer:t,isOpen:W,onOpenChange:v,showQualityTab:Y,quality:f,showSpeedTab:ae,showCaptionsTab:be,playbackRate:V,captionTracks:b,captionsTrackIndex:_,showCaptions:U,captionStyle:y,onCaptionStyleChange:u,dispatch:r,labels:M,iconSize:H,classNames:k,styles:E}),l("pictureInPicture")&&N&&Ae(Ht,{label:j?M.exitPictureInPicture:M.pictureInPicture,active:j,onClick:D,...pe("pictureInPictureButton"),children:Ae($a,{width:H,height:H})}),l("fullscreen")&&Ae(Ht,{label:G?M.exitFullscreen:M.fullscreen,active:G,onClick:T,...pe("fullscreenButton"),children:Ae(RP,{isFullscreen:G,size:H})})]})]})]})};import{cn as DP}from"@cleen/ui-core";import{cn as D6}from"@cleen/ui-core";import{jsx as F6}from"react/jsx-runtime";var jg=({label:e,onClick:t,className:n,style:o,children:a})=>F6("button",{type:"button","aria-label":e,onClick:t,className:D6("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",Us,Gs,$o,Wo,n),style:o,children:a});import{jsx as qn,jsxs as A6}from"react/jsx-runtime";var FP=({playing:e,seekStep:t,visible:n,hidden:o,controlsOnHover:a,isShown:r,onTogglePlay:l,onSeekBy:i,labels:s,classNames:d,styles:p})=>A6("div",{className:DP("cleen-relative cleen-flex cleen-items-center cleen-gap-6 cleen-transition-opacity cleen-duration-300",n?a?"cleen-opacity-0 group-hover:cleen-opacity-100":"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":o},d?.overlay),style:p?.overlay,children:[r("backward")&&qn(jg,{label:s.seekBackward(t),onClick:()=>i(-t),className:d?.overlayButton,style:p?.overlayButton,children:qn(Zr,{seconds:t,size:26})}),r("play")&&qn("button",{type:"button","aria-label":e?s.pause:s.play,onClick:l,className:DP("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",Us,Gs,$o,Wo,d?.overlayPlayButton),style:p?.overlayPlayButton,children:e?qn(vt,{width:28,height:28}):qn(It,{width:28,height:28})}),r("forward")&&qn(jg,{label:s.seekForward(t),onClick:()=>i(t),className:d?.overlayButton,style:p?.overlayButton,children:qn(Zr,{forward:!0,seconds:t,size:26})})]});import{cn as eb}from"@cleen/ui-core";import{jsx as AP,jsxs as O6}from"react/jsx-runtime";var OP=({label:e,subLabel:t,classNames:n,styles:o})=>O6("div",{className:eb("cleen-absolute cleen-inset-0 cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-1 cleen-pointer-events-none cleen-text-center",n?.placeholder),style:o?.placeholder,children:[AP("span",{className:eb("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",n?.placeholderLabel),style:o?.placeholderLabel,children:e}),t&&AP("span",{className:eb("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",n?.placeholderSubLabel),style:o?.placeholderSubLabel,children:t})]});import{useEffect as _P,useState as _6}from"react";var tb=[],VP=["progress","timeupdate","loadedmetadata","durationchange","seeked","emptied"],zP=(e,t,n)=>{let[o,a]=_6(tb);return _P(()=>{a(tb)},[t]),_P(()=>{let r=e.current;if(!r)return;let l=()=>{let i=Jx(r.buffered);a(s=>jx(s,i)?s:i.length>0?i:tb)};return l(),VP.forEach(i=>r.addEventListener(i,l)),()=>VP.forEach(i=>r.removeEventListener(i,l))},[e,t,n]),o};import{useCallback as V6,useState as z6}from"react";var H6=()=>{try{let e=window.localStorage.getItem(Vg);return Wg(e?JSON.parse(e):void 0)}catch{return Wg(void 0)}},HP=()=>{let[e,t]=z6(H6),n=V6(o=>{t(a=>{let r={...a,...o};try{window.localStorage.setItem(Vg,JSON.stringify(r))}catch{}return r})},[]);return{captionStyle:e,updateCaptionStyle:n}};import{useEffect as U6,useState as G6}from"react";var ob=[],UP=(e,t,n,o)=>{let[a,r]=G6(ob);return U6(()=>{let l=e.current,i=l?.textTracks;if(!l||!i)return;let s,d,p=()=>{let y=s?.cues,u=!!(y&&y.length>0);return r(u&&y?nP(y):ob),u},f=()=>{clearInterval(d);let y=0;d=setInterval(()=>{y+=1,(p()||y>=Kx)&&clearInterval(d)},qx)},m=()=>{let y=oP(i,t);y!==s&&(s&&(s.removeEventListener("cuechange",p),s.mode="disabled"),y?.addEventListener("cuechange",p),s=y),s&&s.mode!=="hidden"&&(s.mode="hidden"),!p()&&s&&f()},b=y=>{y.target instanceof HTMLTrackElement&&p()};return m(),i.addEventListener("addtrack",m),i.addEventListener("removetrack",m),l.addEventListener("load",b,!0),()=>{clearInterval(d),i.removeEventListener("addtrack",m),i.removeEventListener("removetrack",m),l.removeEventListener("load",b,!0),s&&(s.removeEventListener("cuechange",p),s.mode="disabled"),r(ob)}},[e,t,n,o]),a};import{useEffect as $6,useState as W6}from"react";var GP=e=>{let[t,n]=W6(!1);return $6(()=>{let o=e.current;if(!o||typeof ResizeObserver>"u")return;let a=new ResizeObserver(([r])=>{n(r.contentRect.width<Ux)});return a.observe(o),()=>a.disconnect()},[e]),t};import{useCallback as $t,useEffect as q6,useRef as $P,useState as K6}from"react";var WP=e=>{try{return e.matches(":focus-visible")}catch{return!1}},X6=()=>typeof window<"u"&&window.matchMedia?.("(hover: none)").matches?"touch":"mouse",qP=(e,t,n,o,a)=>{let r=$P(void 0),l=$P(void 0),[i,s]=K6(X6),d=$t(()=>{let x=o.current,w=document.activeElement;return!!x&&!!w&&w!==x&&x.contains(w)&&WP(w)},[o]),p=$t(()=>{clearTimeout(r.current);let x=()=>{r.current=setTimeout(()=>{if(d()){x();return}n({type:"setControlsActive",controlsActive:!1})},Vx)};x()},[n,d]),f=$t(()=>{n({type:"setControlsActive",controlsActive:!0}),p()},[n,p]),m=$t(()=>{e&&!d()&&(clearTimeout(r.current),n({type:"setControlsActive",controlsActive:!1}))},[n,d,e]);q6(()=>{if(!e){clearTimeout(r.current),n({type:"setControlsActive",controlsActive:!0});return}return p(),()=>clearTimeout(r.current)},[n,e,p]);let b=!e||t,y=$t(x=>{x.pointerType==="mouse"&&(s("mouse"),f())},[f]),u=$t(x=>{x.pointerType==="mouse"&&m()},[m]),v=$t(x=>{if(l.current=x.pointerType,x.pointerType!=="touch"){s("mouse");return}s("touch"),x.target!==a.current&&f()},[a,f]),C=$t(x=>{x.metaKey||x.ctrlKey||x.altKey||(s("keyboard"),f())},[f]),S=$t(x=>{x.target!==x.currentTarget&&WP(x.target)&&(s("keyboard"),f())},[f]),I=$t(()=>l.current!=="touch"?!1:(b&&e?m():f(),!0),[b,m,e,f]);return{controlsVisible:b,inputMode:i,revealControls:f,handleMediaClick:I,containerHandlers:{onPointerMove:y,onPointerLeave:u,onPointerDown:v,onKeyDown:C,onFocus:S}}};import{useCallback as Y6,useEffect as Q6}from"react";var KP=(e,t,n)=>(Q6(()=>{let o=()=>n({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",o),()=>document.removeEventListener("fullscreenchange",o)},[e,n]),Y6(()=>{let o=e.current;!o||!t||(document.fullscreenElement?document.exitFullscreen():o.requestFullscreen?.())},[e,t]));import{useLayoutEffect as Z6,useRef as J6}from"react";var XP=(e,t)=>{let n=J6(null);Z6(()=>{let o=e.current;if(!o)return;if(t){let r=document.activeElement;r instanceof HTMLElement&&r!==o&&o.contains(r)&&(n.current=r,o.focus({preventScroll:!0}));return}let a=n.current;n.current=null,a?.isConnected&&document.activeElement===o&&a.focus({preventScroll:!0})},[e,t])};import{useCallback as j6}from"react";var eD='input, textarea, select, [contenteditable]:not([contenteditable="false"])',tD='button, a[href], [role="button"], [role="tab"]',oD='[role="slider"], [role="radiogroup"], [role="tablist"]',nD=e=>{let t=e.target;return t===e.currentTarget?!1:t.closest(eD)?!0:e.key===" "||e.key==="Enter"?!!t.closest(tD):e.key.startsWith("Arrow")||e.key==="Home"||e.key==="End"?!!t.closest(oD):!1},YP=({volume:e,canSeekBackward:t,canSeekForward:n,canUseVolume:o,canUseCaptions:a,dispatch:r,seekBy:l,seekToPercentage:i,togglePlay:s,toggleFullscreen:d,restart:p})=>j6(f=>{if(f.metaKey||f.ctrlKey||f.altKey||nD(f))return;let m=(y,u=!0)=>{u&&(f.preventDefault(),y())},b=y=>r({type:"setVolume",volume:y,muted:!1});switch(f.key){case"ArrowLeft":return m(()=>l(-tc),t);case"ArrowRight":return m(()=>l(tc),n);case"ArrowUp":return m(()=>b(Math.min(e+ec,1)),o);case"ArrowDown":return m(()=>b(Math.max(e-ec,0)),o);case"f":return m(d);case"m":return m(()=>r({type:"toggleMuted"}),o);case"r":return m(p);case"c":return m(()=>{a&&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,n,a,o,r,p,l,i,d,s,e]);import{useCallback as rD,useEffect as QP,useRef as aD,useState as lD}from"react";var nb=()=>{},ZP=e=>!!e&&typeof document<"u"&&document.pictureInPictureEnabled===!0&&typeof e.requestPictureInPicture=="function"&&!e.disablePictureInPicture,JP=(e,t,n,o,a)=>{let[r,l]=lD(!1),i=aD(!1);QP(()=>{let d=e.current;if(l(ZP(d)),!d)return;let p=b=>{i.current=b,a({type:"setPictureInPicture",isPictureInPicture:b})},f=()=>p(!0),m=()=>p(!1);return d.addEventListener("enterpictureinpicture",f),d.addEventListener("leavepictureinpicture",m),()=>{d.removeEventListener("enterpictureinpicture",f),d.removeEventListener("leavepictureinpicture",m)}},[e,n,o,a]),QP(()=>()=>{i.current&&document.pictureInPictureElement&&document.exitPictureInPicture().catch(nb)},[]);let s=rD(()=>{let d=e.current;!t||!ZP(d)||(i.current&&document.pictureInPictureElement?document.exitPictureInPicture().catch(nb):d?.requestPictureInPicture().catch(nb))},[t,e]);return{isSupported:t&&r,togglePictureInPicture:s}};import{useEffect as cD}from"react";var jP=e=>{cD(()=>{let t=e.current;if(!t||typeof ResizeObserver>"u")return;let n=new ResizeObserver(([o])=>{t.style.setProperty(Os,`${o.contentRect.height}px`)});return n.observe(t),()=>{n.disconnect(),t.style.removeProperty(Os)}},[e])};import{useCallback as iD,useEffect as eS,useRef as sD,useState as Js}from"react";var rb=[],pD=e=>{let t=e?.api;return t&&Array.isArray(t.levels)&&typeof t.on=="function"?t:void 0},dD=e=>e.map((t,n)=>({index:n,width:t.width??0,height:t.height??0,bitrate:t.bitrate??0})),tS=(e,t,n,o)=>{let[a,r]=Js(),[l,i]=Js(rb),[s,d]=Js(Kr),[p,f]=Js(-1),m=sD(o);m.current=o,eS(()=>{let y=pD(e.current);if(!y)return;let u=()=>{let S=dD(y.levels);y.autoLevelCapping=$g(S,m.current),i(S.length>1?S:rb),d(y.autoLevelEnabled?Kr:y.currentLevel),f(y.currentLevel)},v=(S,I)=>f(I.level),C=()=>{r(void 0),i(rb),d(Kr),f(-1)};return r(y),u(),y.on("hlsManifestParsed",u),y.on("hlsLevelsUpdated",u),y.on("hlsLevelSwitched",v),y.on("hlsDestroying",C),()=>{y.off("hlsManifestParsed",u),y.off("hlsLevelsUpdated",u),y.off("hlsLevelSwitched",v),y.off("hlsDestroying",C)}},[e,t,n]),eS(()=>{a&&(a.autoLevelCapping=$g(l,o))},[a,l,o]);let b=iD(y=>{a&&(a.nextLevel=y,d(y))},[a]);return{levels:l,selected:s,current:p,onChange:b}};import{useCallback as js,useEffect as mD,useRef as uD}from"react";var oS=(e,t,n,o)=>{let a=uD(0);mD(()=>{a.current=0},[n]);let r=js(d=>{let p=e.current;if(!p||!Number.isFinite(p.duration))return;o();let f=t?p.duration:Math.min(Math.max(a.current,p.currentTime),p.duration);p.currentTime=Math.min(Math.max(d,0),f)},[t,o,e]),l=js(d=>{let p=e.current;!p||!Number.isFinite(p.duration)||r(p.duration*Math.min(Math.max(d,0),1))},[r,e]),i=js(d=>r((e.current?.currentTime??0)+d),[r,e]),s=js(d=>{let p=e.current;!p||!Number.isFinite(p.duration)||(o(),p.currentTime=Math.min(Math.max(d,0),p.duration))},[o,e]);return{seekTo:r,seekToPercentage:l,seekBy:i,jumpTo:s,watchedTimeRef:a}};import{useCallback as nS,useRef as fD}from"react";var rS=(e,t)=>{let n=fD({seconds:e,src:null,attempts:0,done:!1}),o=nS(r=>{let l=n.current;if(!r?.src||l.done||(l.src===null&&(l.src=r.src),l.src!==r.src))return;let{seconds:i}=l,s=Number.isFinite(r.duration);if(i===void 0||!Number.isFinite(i)||i<=0||s&&i>r.duration){l.done=!0;return}s&&(l.attempts+=1,Math.abs(r.currentTime-i)>Hx?r.currentTime=i:l.done=!0,l.attempts>=zx&&(l.done=!0),t({type:"seek",currentTime:i}))},[t]),a=nS(()=>{n.current.done=!0},[]);return{applyStartTime:o,cancelStartTime:a}};var aS=(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 Kn,jsxs as iS}from"react/jsx-runtime";var vD=[],cS=[],ID=hD(function({src:t,tracks:n=vD,startTime:o,allowBarSeeking:a=!0,allowSeekingPastWatched:r=!0,chapters:l,hiddenControls:i=cS,hiddenOverlayControls:s=cS,aspectRatio:d=As,controlsOnHover:p=!1,seekStep:f=10,maxQuality:m=Ag,engine:b=Hg,labels:y,onTimeChange:u,onDurationChange:v,onPause:C,onEnded:S,className:I,classNames:x,style:w,styles:R,...T},N){let D=lS(null),M=lS(null),[P,k]=bD(aS,Zx),{playing:E,duration:L,muted:F,volume:O,playbackRate:B,isLoading:A,isFullscreen:V}=P,U=ab(()=>({...Dg,...y}),[y]),_=ab(()=>Hs(n),[n]),W=_.length>0,{captionStyle:j,updateCaptionStyle:G}=HP(),H=fe=>!i.includes(fe),X=fe=>!s.includes(fe),$=H("volume"),Y=H("fullscreen"),ae=H("pictureInPicture"),be=W&&H("subtitles"),pe=H("backward")||X("backward"),Me=H("forward")||X("forward"),{applyStartTime:q,cancelStartTime:Q}=rS(o,k),{seekTo:z,seekToPercentage:re,seekBy:se,jumpTo:ye,watchedTimeRef:ue}=oS(M,r,t,Q),{controlsVisible:xe,inputMode:Z,revealControls:Re,handleMediaClick:Oe,containerHandlers:Se}=qP(E,P.controlsActive||P.settingsOpen,k,D,M),Ye=p&&Z==="mouse",lt=Xe(fe=>{k({type:"setSettingsOpen",settingsOpen:fe}),fe||Re()},[Re]);jP(D);let Jr=GP(D),{isSupported:Xn,togglePictureInPicture:le}=JP(M,ae,t,!A,k),K=KP(D,Y,k);gD(N,()=>({getMediaElement:()=>M.current,play:()=>k({type:"play"}),pause:()=>k({type:"pause"}),jumpTo:ye}),[ye]);let ee=Xe(()=>k({type:"togglePlay"}),[]),ge=Xe(()=>{z(0),k({type:"play"})},[z]),_e=YP({volume:O,canSeekBackward:pe,canSeekForward:Me,canUseVolume:$,canUseCaptions:be,dispatch:k,seekBy:se,seekToPercentage:re,togglePlay:ee,toggleFullscreen:K,restart:ge}),Yn=Se.onKeyDown,jr=Xe(fe=>{Yn(fe),_e(fe)},[Yn,_e]),Te=Xe(()=>{Oe()||ee()},[Oe,ee]),Ko=Xe(()=>k({type:"play"}),[]),sS=Xe(()=>{k({type:"pause"}),C?.()},[C]),pS=Xe(fe=>{ue.current=fe.currentTarget.duration,k({type:"pause"}),S?.()},[S,ue]),dS=Xe(fe=>{let ea=fe.currentTarget,Xo=ea.currentTime;if(Xo-ue.current<=Qx)ue.current=Math.max(ue.current,Xo);else if(!r){ea.currentTime=ue.current;return}k({type:"timeUpdate",currentTime:Xo}),u?.(Xo)},[r,u,ue]),[mS,uS]=yD(),fS=Xe(fe=>{let{videoWidth:ea,videoHeight:Xo}=fe.currentTarget;uS(ea>0&&Xo>0?ea/Xo:void 0),k({type:"loaded",duration:fe.currentTarget.duration}),q(fe.currentTarget)},[q]),lb=Xe(fe=>q(fe.currentTarget),[q]),hS=Xe(fe=>{k({type:"ready"}),q(fe.currentTarget)},[q]),gS=Xe(fe=>{k({type:"durationChange",duration:fe.currentTarget.duration}),q(fe.currentTarget),v?.(fe)},[q,v]),bS=Xe(()=>k({type:"buffering"}),[]),yS=Xe(()=>k({type:"ready"}),[]),cb=!!t&&A,ib=!t||!A&&(!Number.isFinite(L)||L===0),ep=ib||cb;XP(D,ep);let tp=UP(M,(_[P.captionsTrackIndex]??_[0])?.srcLang,t,!A),vS=zP(M,t,!A),IS=tS(M,t,!A,m),CS=ab(()=>Ug(tp.length>0?tp:l,L),[tp,l,L]);return Kn("div",{className:ic("cleen",I),style:w,children:iS("div",{ref:D,className:ic("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":!xe,"focus-visible:cleen-ring-0":V},x?.container),style:R?.container,onPointerMove:Se.onPointerMove,onPointerLeave:Se.onPointerLeave,onPointerDown:Se.onPointerDown,onFocus:Se.onFocus,onDoubleClick:K,onKeyDown:jr,tabIndex:0,children:[iS("div",{className:ic("cleen-relative cleen-flex cleen-justify-center cleen-items-center",{"cleen-h-full":V},x?.viewport),style:{aspectRatio:V?void 0:d==="auto"?mS??As:d,...R?.viewport},children:[Kn(b,{...T,ref:M,src:t||void 0,controls:!1,playing:E,muted:F,volume:O,playbackRate:B,playsInline:!0,className:ic("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",x?.video),style:R?.video,onClick:Te,onPlay:Ko,onPause:sS,onEnded:pS,onTimeUpdate:dS,onLoadedMetadata:fS,onLoadedData:lb,onCanPlay:hS,onSeeked:lb,onDurationChange:gS,onWaiting:bS,onError:yS,crossOrigin:"anonymous",children:n.map(fe=>Kn("track",{kind:fe.kind??"subtitles",src:fe.src,srcLang:fe.srcLang,label:fe.label},fe.src))}),ib&&Kn(OP,{label:U.placeholder,subLabel:U.placeholderSubLabel,classNames:x,styles:R}),cb&&Kn(ce,{size:"xl",className:ic("cleen-absolute",x?.loader?.className),classNames:x?.loader?.classNames,...R?.loader}),Kn(FP,{playing:E,seekStep:f,visible:xe,hidden:ep,controlsOnHover:Ye,isShown:X,onTogglePlay:ee,onSeekBy:se,labels:U,classNames:x,styles:R})]}),Kn(LP,{compact:Jr,containerRef:D,portalContainer:V?D.current:null,videoRef:M,src:t,state:P,dispatch:k,isShown:H,allowBarSeeking:a,chapters:CS,buffered:vS,quality:IS,seekStep:f,hasTracks:W,captionTracks:_,captionStyle:j,onCaptionStyleChange:G,onSettingsOpenChange:lt,visible:xe,hidden:ep,controlsOnHover:Ye,onSeek:z,onSeekBy:se,onTogglePlay:ee,onToggleFullscreen:K,pictureInPictureSupported:Xn,onTogglePictureInPicture:le,labels:U,classNames:x,styles:R})]})})});export{NS as AdvancedProgressBar,Y3 as AudioPlayback,oT as AudioRecorder,Bi as Avatar,cT as AvatarRow,pT as Breadcrumb,te as Button,Y0 as Calendar,PT as CalendarDropdown,G3 as CanvasButton,Pe as Card,s3 as CardIcon,f3 as CardMedia,NT as Carousel,hn as Checkbox,zT as CheckboxGroup,Ee as CleenIcon,oE as CleenNotificationContainer,T2 as Collapsible,KT as ColorPicker,JT as CreditCardInput,Vl as DEFAULT_NOTIFICATION_CATEGORIES,zl as DEFAULT_NOTIFICATION_LABELS,Dg as DEFAULT_VIDEO_PLAYER_LABELS,xt as Divider,j0 as Drawer,ux as DrawerContainer,JE as DrawerContentTitle,Tl as Dropdown,EN as Dropzone,V3 as EditableCard,qN as EditableMatrix,F0 as EditableText,O0 as EditableTextArea,jN as FileCard,i1 as FileStackedProgressTracker,zB as FilterDrawer,nC as FormGroup,ZB as GroupSelector,gp as Icon48AlertFeatured,bp as Icon48SuccessFeatured,Qo as IconAlertCircle,vp as IconAlertOctagon,Cp as IconAlertTriangle,xp as IconApps,Sp as IconArchive,wp as IconArrowBarDown,Mp as IconArrowBarLeft,kp as IconArrowBarRight,Tp as IconArrowBarToDown,Np as IconArrowBarToLeft,Bp as IconArrowBarToRight,Rp as IconArrowBarToUp,Ep as IconArrowBarUp,Dp as IconArrowDown,Fp as IconArrowDownLeft,Op as IconArrowDownNarrow,_p as IconArrowDownRight,zp as IconArrowLeft,Up as IconArrowLeftNarrow,$p as IconArrowRight,qp as IconArrowRightNarrow,Xp as IconArrowUp,Yp as IconArrowUpLeft,Zp as IconArrowUpNarrow,Jp as IconArrowUpRight,jp as IconAttachment,ia as IconBadgeHd,ed as IconBarChart,td as IconBarChartSquare,od as IconBell,nd as IconBold,sd as IconBookOpen,rd as IconBookmark,sp as IconBookmarkCheck,pp as IconBookmarkCheckFill,ad as IconBookmarkFill,ld as IconBookmarkMinus,mp as IconBookmarkPlus,id as IconBookmarkX,pd as IconBoxLines,md as IconBoxText,fd as IconBracketsCheck,hd as IconBracketsEllipses,gd as IconBrickWall,bd as IconBriefcase,up as IconBuilding,yd as IconCalculator,ma as IconCalendar,vd as IconCertificate,Xt as IconCheck,Zo as IconCheckCircle,Id as IconCheckCircleBroken,Cd as IconCheckFill,xd as IconCheckVerified,Pd as IconCheckVerifiedFill,Jo as IconChevronDown,Sd as IconChevronDownDouble,wd as IconChevronDownLeft,Md as IconChevronDownLeftDouble,kd as IconChevronDownRight,Td as IconChevronDownRightDouble,Yt as IconChevronLeft,Nd as IconChevronLeftDouble,bt as IconChevronRight,ua as IconChevronRightDouble,Bd as IconChevronSelectorVertical,Qt as IconChevronUp,Rd as IconChevronUpDouble,Ed as IconChevronUpLeft,Ld as IconChevronUpLeftDouble,Dd as IconChevronUpRight,Fd as IconChevronUpRightDouble,Ad as IconClick,fa as IconClock,Od as IconClockFastForward,Vd as IconClockPlay,zd as IconClockRewind,Hd as IconClone,ga as IconClosedCaption,$d as IconCode,Wd as IconCodeBrowser,Kd as IconCodeCircle,Yd as IconColors,fp as IconColumnEdit,Qd as IconCopy,Zd as IconCopy2,jd as IconCopyCheck,em as IconCreditCard,tm as IconCube,om as IconCubeOutline,ba as IconCursorBox,nm as IconDataflow,rm as IconDataflow2,am as IconDataflow3,cm as IconDistributeHorizontal,im as IconDollar,pm as IconDollarCircle,dm as IconDot,mm as IconDotFill,um as IconDotsGrid,va as IconDotsHorizontal,nr as IconDotsVertical,bm as IconDownload,ym as IconEdit,Im as IconEditable,Cm as IconExpand,Pm as IconExternalLink,wm as IconExternalLink2,Mm as IconEye,Tm as IconEyeHidden,Nm as IconEyeHidden2,Bm as IconFaceAngry,Rm as IconFaceLaugh,Em as IconFaceSmile,en as IconFile,Dm as IconFileCheck,xa as IconFileCsv,Fm as IconFileDownload,Pa as IconFileJson,Am as IconFileList,st as IconFileMusic,tn as IconFilePdf,wa as IconFileSpreadsheet,Jt as IconFileText,Vm as IconFileUpload,ka as IconFileXls,Ta as IconFileXlsx,kt as IconFileZip,_m as IconFiles,zm as IconFilter,Na as IconFilter2,Um as IconFlag,Gm as IconFlag2,$m as IconFlagFill,Wm as IconFocus,qm as IconFolder,Km as IconFolderExport,Xm as IconFolderImport,Ym as IconGraduationCap,Qm as IconGripVertical,Zm as IconHand,Jm as IconHandShield,jm as IconHash,eu as IconHeadsetMic,tu as IconHeart,ou as IconHeartFill,ru as IconHouse,Ra as IconHouseLine,We as IconImage,au as IconImage2,lu as IconImageCheck,cu as IconImageOff,iu as IconImport,su as IconInbox,du as IconInfoCircle,uu as IconInfoHexagon,hu as IconItalic,bu as IconLayersMultiple,yu as IconLayersSingle,vu as IconLayout,Cu as IconLayout2,xu as IconLayoutColumns,Pu as IconLayoutCustom,wu as IconLayoutStuffed,Mu as IconLayoutTile,ku as IconLifeBuoy,Nu as IconLightbulb,Bu as IconLightning,Ru as IconLightningFast,Eu as IconLineChart,Lu as IconLineChartBar,Du as IconLineChartBreakoutSquare,Au as IconLineChartUp,Ou as IconLines,_u as IconLinesCheck,Vu as IconLinesPlay,Hu as IconLink,Uu as IconLink2,Gu as IconLinkOff,$u as IconListBullet,Wu as IconListOrder,Ku as IconLock,Xu as IconLockFill,Qu as IconLogIn,Ju as IconLogOut,ef as IconLogOut2,tf as IconMagicWand,of as IconMail,nf as IconMailOpen,rf as IconMapPin,Oa as IconMaximize,af as IconMaximize2,lf as IconMessageCircle,on as IconMessageSquare,sf as IconMessageSquare2,pf as IconMessageXSquare,Va as IconMicrophone,za as IconMinimize,df as IconMinimize2,mf as IconMinusCircle,ff as IconMobile,hf as IconMonitor,gf as IconMonitor2,bf as IconMoon,yf as IconMoonCircle,yt as IconMovie,Tt as IconName,vf as IconNavigationPointer,If as IconNotificationBox,kf as IconPCSetup,Cf as IconPackage,xf as IconPalette,Pf as IconPasscodeLock,vt as IconPause,wf as IconPauseCircle,Nf as IconPen,Bf as IconPercentageCircle,Rf as IconPerspective,Lf as IconPhoneCall,$a as IconPictureInPicture,Wa as IconPin,It as IconPlay,Ff as IconPlayCircle,nn as IconPlus,So as IconPlusCircle,_f as IconPrinter,Vf as IconPulse,qa as IconQuestionCircle,Hf as IconQuote,Uf as IconRadioButton,Gf as IconRadioButtonFill,$f as IconReceipt,Wf as IconReceiptCheck,qf as IconRedo,Ka as IconRefresh,Kf as IconRefresh2,Xf as IconRefresh3,Yf as IconRepeat,Qf as IconReplace,Xa as IconReplay,Jf as IconRestore,eh as IconRocket,th as IconRoundChart,oh as IconRoundChart2,rh as IconRoute,lh as IconSave,ch as IconScanDots,Ya as IconScissors,Ct as IconSearch,ih as IconSend,sh as IconServer,Qa as IconSettings,ph as IconSettings2,dh as IconShare,mh as IconShieldLightning,fh as IconShieldPlus,gh as IconShieldRemove,bh as IconShoppingBag,yh as IconShoppingCart,vh as IconShrink,Ih as IconShuffle,Ch as IconSkipForward,xh as IconSlashCircle,Ph as IconSlashOctagon,Sh as IconSocialAndroid,wh as IconSocialApple,Mh as IconSocialGithub,kh as IconSocialGlobe,Th as IconSocialGoogle,Bh as IconSocialInstagram,Rh as IconSocialLinkedin,Lh as IconSocialMastercard,Dh as IconSocialReact,Fh as IconSocialVisa,Ah as IconSocialX,tl as IconSpeedometer,Oh as IconStairs,ol as IconStar,_h as IconStarFill,Vh as IconStarHalf,zh as IconStars,nl as IconStop,Hh as IconStrikethrough,Uh as IconSun,Gh as IconSwap,$h as IconSwitchHorizontal,qh as IconTable,rl as IconTag,Kh as IconTarget,Yh as IconTarget2,Zh as IconTextFormat,Jh as IconTextFormat2,jh as IconTextHighlight,e0 as IconThumbsDown,t0 as IconThumbsUp,o0 as IconThumbsUpFill,n0 as IconToggle,r0 as IconTranslate,pt as IconTrash,a0 as IconTrending,l0 as IconUnderline,c0 as IconUndo,s0 as IconUnlock,ln as IconUploadCloud,ll as IconUser,m0 as IconUserCheck,u0 as IconUserDollar,h0 as IconUserEdit,g0 as IconUserPlus,b0 as IconUserRight,I0 as IconUserSquare,hp as IconUserVoice,y0 as IconUsers,C0 as IconUsersUp,x0 as IconVideo,S0 as IconVideoChat,il as IconVolume,sl as IconVolumeDown,pl as IconVolumeMute,M0 as IconWrench,He as IconX,k0 as IconXCircle,T0 as IconXCircleFill,N0 as IconXSquare,B0 as IconZoomIn,E0 as IconZoomOut,ie as InfoLabels,Ie as Input,de as Label,ce as Loader,lR as Lookup,dR as Markdown,Br as Menu,IR as Modal,Er as NOTIFICATION_GENERAL_CATEGORY,l6 as NativeVideoEngine,hE as Pagination,Z1 as PaginationGoToPage,J1 as PaginationPageSize,Le as PillBadge,oo as Popover,kr as ProgressBar,QC as ProgressCircle,PE as RadioBoxGroup,RE as RadioButtonGroup,AE as Rating,Hg as ReactPlayerEngine,qE as Select,hx as Sidebar,ql as SidebarItem,iL as Skeleton,ng as SkeletonAvatar,ag as SkeletonBadge,lg as SkeletonBanner,ig as SkeletonButton,Kl as SkeletonCard,ks as SkeletonCard2,sg as SkeletonCard3,dg as SkeletonCardStack,mg as SkeletonChart,ug as SkeletonContentCard,fg as SkeletonDataGrid,hg as SkeletonForm,bg as SkeletonGlowingCard,yg as SkeletonImage,vg as SkeletonInfoCard,xg as SkeletonInput,Pg as SkeletonList,Mg as SkeletonParagraph,kg as SkeletonText,Tg as SkeletonVideo,Ls as SkeletonWidgetCard,AL as SkeletonWrapper,_n as Slider,UL as SliderRange,l1 as StackedProgressTracker,t1 as StackedProgressTrackerRow,o1 as StackedProgressTrackerStatusFilter,WL as StarRating,Fx as Stepper,E1 as Switch,El as TRACKER_STATUS_FILTER_ORDER,Ol as Tabs,QL as TagFilter,yl as TextArea,Ne as Tooltip,Bl as TrackerItemStatus,Rl as TrackerStatusFilter,As as VIDEO_PLAYER_ASPECT_RATIO_DEFAULT,Ag as VIDEO_PLAYER_MAX_QUALITY_DEFAULT,Fg as VIDEO_PLAYER_SEEK_STEP_DEFAULT,ID as VideoPlayer,nc as VideoPlayerControl,Ll as cleanCellValue,CC as createNotificationStore,Je as formatHours,Yr as formatTime,Cn as getEditableMatrixKey,b1 as getEditableMatrixTotals,L0 as getFileIcon,h1 as getMinutesBetween,ac as getVideoChapterAt,d6 as getVideoChapterIndex,Gg as getVideoChapterProgress,Ug as getVideoChapters,z1 as groupLayout,H1 as listLayout,Tn as notification,me as notificationStore,g1 as parseHours,Q0 as parseRgbaString,Nr as roundHours,xC as showNotification,U1 as stackLayout,f1 as timeToMinutes,MR as useNotifications};
1
+ import{cn as Zo,useAnimateNumber as TS}from"@cleen/ui-core";import{forwardRef as NS,useMemo as hb}from"react";import{cn as mc,usePositionClose as PS,ZIndex as SS}from"@cleen/ui-core";import{useEffect as sb,useRef as np,useState as pb}from"react";import{createPortal as wS}from"react-dom";import{jsx as rp,jsxs as db}from"react/jsx-runtime";var Ne=({bg:e,label:t,color:o,closeOnClick:n=!0,hideOnMouseDown:l=!0,isOpen:r,children:a,hasArrow:i,placement:p="top",offset:s=8,className:d,classNames:f,isDisabled:m,openDelay:b=0,invertColors:y=!1,extraUpdateTriggers:u,allowNonDescendantHover:v=!0,zIndex:C=SS.TOOLTIP,portalContainer:S,style:I,styles:x,onClick:w,onMouseEnter:R,onMouseLeave:T,...N})=>{let[D,M]=pb(r??!1),[P,k]=pb(!1),E=np(null),L=np(null),F=np(null),{positionStyles:O,isMounted:B,optimalPosition:A}=PS({triggerRef:L,targetRef:E,position:p,isOpen:D&&!m,offset:s,extraUpdateTriggers:u,container:S});sb(()=>{M(r??!1)},[r]);let V=_=>{w?.(_),n&&M(!1)},U=(_,W)=>{if(r!==void 0)return;let j=L.current?.contains(_.target);!v&&!j||(W?(R?.(_),b&&b>0?F.current=setTimeout(()=>{M(!0)},b):M(!0)):(F.current&&(clearTimeout(F.current),F.current=null),M(!1),T?.(_)))};return sb(()=>{let _=()=>{l&&k(!0)},W=()=>{k(!1)};return document.addEventListener("mousedown",_),document.addEventListener("mouseup",W),()=>{document.removeEventListener("mousedown",_),document.removeEventListener("mouseup",W)}},[l]),db("div",{className:mc("cleen",d),style:I,children:[rp("div",{ref:L,className:mc("cleen-relative cleen-max-w-fit",f?.container),style:x?.container,onClick:V,onMouseEnter:_=>U(_,!0),onMouseLeave:_=>U(_,!1),...N,children:a}),t!==void 0&&D&&!m&&!P&&wS(rp("div",{className:"cleen",children:db("div",{ref:E,className:mc("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":!B,"cleen-opacity-100":B},f?.labelContainer),style:{zIndex:C,top:`${O.top}px`,left:`${O.left}px`,...e&&{backgroundColor:e},...o&&{color:o},...x?.labelContainer},children:[t,rp("div",{className:mc(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:{}})]})}),S??document.body)]})};import{cn as oa}from"@cleen/ui-core";var qt=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),Kt=(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 uc}from"@cleen/ui-core";import{jsx as ap}from"react/jsx-runtime";var fc=({serie:e,minValue:t,maxValue:o,color:n,trackHeight:l,className:r,style:a})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,p=Number.isFinite(i)?i:t,s=qt(Kt(p,t,o)),d=Math.max(2,e?.height??l*1.5),f={left:`${s}%`,top:"50%"};return e.tooltip?ap(Ne,{invertColors:!0,...e.tooltip,className:uc("cleen-absolute cleen-z-10 -cleen-translate-x-1/2 -cleen-translate-y-1/2",e.tooltip.className),style:{...f,...e.tooltip.style},classNames:{...e.tooltip.classNames,labelContainer:uc("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:ap("div",{className:uc("cleen-rounded-full",r),style:{width:d,height:d,backgroundColor:n,...a}})}):ap("div",{className:uc("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,...f,...a}})};import{jsx as hc}from"react/jsx-runtime";var mb=({serie:e,minValue:t,maxValue:o,animatedGlobal:n=t,renderAnimated:l,color:r,trackHeight:a,trackRadius:i,className:p,style:s})=>{if(e.type!=="bar")return null;let d=typeof e.start=="number"?e.start:t,f=typeof e.end=="number"?e.end:o,m=qt(Kt(d,t,o)),b=qt(Kt(f,t,o));b<m&&([m,b]=[b,m]);let y=Math.max(0,l?n-m:b-m);if(y<1&&!l||l&&n>=b&&y===0)return hc(fc,{serie:{...e,type:"clamp",value:m},color:r,trackHeight:a,minValue:t,maxValue:o,className:p,style:s});let u={left:`${m}%`,top:e?.height?(a-e.height)/2:0,width:`${y}%`,height:e?.height??"100%"},v={width:"100%",height:"100%"},C={background:r,borderRadius:e?.radius??i??(e?.height??a)/2};return e.tooltip?hc(Ne,{invertColors:!0,...e.tooltip,className:oa("cleen-absolute",e.tooltip.className),style:{...u,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:oa("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:oa("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:hc("div",{className:oa("cleen-relative cleen-size-full",p),style:{...C,...v,...s}})}):hc("div",{className:oa("cleen-absolute cleen-pointer-events-none",p),style:{...C,...u,...s}})};import{cn as MS}from"@cleen/ui-core";import{jsx as kS}from"react/jsx-runtime";var ub=({serie:e,minValue:t,maxValue:o,className:n,style:l})=>{let r=0;if(e.type==="clamp"){let a=typeof e.value=="number"?e.value:0,i=Number.isFinite(a)?a:t;r=qt(Kt(i,t,o))}else{let a=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:o,p=qt(Kt(a,t,o)),s=qt(Kt(i,t,o));r=(p+s)/2}return kS("div",{className:MS("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",n),style:{left:`${r}%`,...l},children:e.label})};var fb={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as jn,jsxs as gb}from"react/jsx-runtime";var BS=NS(function({series:t=[],track:o,renderAnimated:n,renderAnimatedDuration:l=1e3,className:r,classNames:a,style:i,styles:p,minValue:s=0,maxValue:d=100,...f},m){let b=hb(()=>({...fb,...o}),[o]),y=hb(()=>t.reduce((S,I)=>{if(I.type==="bar"){let x=typeof I.end=="number"?I.end:d,w=Math.max(s,Math.min(x,d));if(w>S)return w}return S},0),[t,s,d]),u=TS({targetNumber:y,defaultNumber:s,duration:l,disabled:!n}),{bars:v,clamps:C}=t.reduce((S,I,x)=>{if(I==null||!I.type)return S;let w=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":S.clamps.push(jn(fc,{serie:I,color:w,trackHeight:b.height,minValue:s,maxValue:d,className:Zo(a?.clamp,I.className),style:{...p?.clamp,...I.style}},`clamp-${x}`));break;case"bar":S.bars.push(jn(mb,{serie:I,color:w,trackHeight:b.height,trackRadius:b.radius,minValue:s,maxValue:d,renderAnimated:n,animatedGlobal:u,className:Zo(a?.bar,I.className),style:{...p?.bar,...I.style}},`bar-${x}`));break;default:break}return S},{clamps:[],bars:[]});return jn("div",{className:Zo("cleen",r),style:i,ref:m,...f,children:gb("div",{className:Zo("cleen-relative cleen-w-full",a?.container),style:p?.container,children:[gb("div",{className:Zo("cleen-relative cleen-size-full",a?.trackWrapper),style:p?.trackWrapper,children:[jn("div",{className:Zo("cleen-relative cleen-w-full",a?.track),style:{height:b.height,backgroundColor:b.color,borderRadius:b.radius??b.height/2,...p?.track},children:v}),C]}),t.some(S=>!!S.label)&&jn("div",{"aria-hidden":!0,className:Zo("cleen-relative cleen-mt-2 cleen-h-5",a?.labels),style:p?.labels,children:t.map((S,I)=>!S||!S.type||!S.label?null:jn(ub,{serie:S,minValue:s,maxValue:d,className:a?.label,style:p?.label},`label-${I}`))})]})})});import{cn as lp}from"@cleen/ui-core";import{jsx as cp}from"react/jsx-runtime";var RS={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"},ES={slow:1.3,normal:.65,fast:.4},ce=({isFullscreen:e,size:t="xs",stroke:o,speed:n="normal",className:l,classNames:r,style:a,styles:i,color:p,...s})=>cp("div",{className:lp("cleen",l),style:a,children:cp("div",{className:lp("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,...s,children:cp("span",{className:lp("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"&&RS[t],r?.loader),style:{...p&&{borderInlineColor:p,borderTopColor:p},...typeof t=="number"&&{width:t,height:t},...typeof o=="number"&&{borderWidth:o},animationDuration:`${typeof n=="number"?n:ES[n]}s`,...i?.loader}})})});import{cn as ip,useWidthDynamicResize as LS}from"@cleen/ui-core";import{forwardRef as DS,useImperativeHandle as FS,useRef as AS}from"react";var bb={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"},yb={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 vb,jsxs as OS}from"react/jsx-runtime";var te=DS(function({type:t="button",label:o,onClick:n,className:l,classNames:r,style:a,styles:i,disabled:p=!1,leftIcon:s,rightIcon:d,loaderColor:f,isLoading:m=!1,variant:b="primary",fullWidth:y=!1,children:u,...v},C){let S=AS(null);return FS(C,()=>S.current),LS({ref:S,skip:y},[m,s,d,y]),vb("div",{className:ip("cleen",l),style:a,children:OS("button",{type:t,ref:S,className:ip("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",bb[b],{"cleen-w-full cleen-flex-1":y,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":p||m},r?.container),style:i?.container,disabled:m||p,onClick:n,...v,children:[m&&vb(ce,{size:"xs",color:f||yb[b],className:ip("cleen-mr-1.5 cleen-w-fit",r?.loaderContainer),style:i?.loaderContainer,classNames:{loader:r?.loader},styles:{loader:i?.loader}}),s||null,o||u,d||null]})})});var Ib={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"},Cb={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 yo,ColorHelpers as YS}from"@cleen/ui-core";function er(e,t,o){return Math.min(Math.max(e,o),t)}var sp=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},na=sp;function _S(e){if(typeof e!="string")throw new na(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=qS.test(e)?HS(e):e;let o=US.exec(t);if(o){let a=Array.from(o).slice(1);return[...a.slice(0,3).map(i=>parseInt(ra(i,2),16)),parseInt(ra(a[3]||"f",2),16)/255]}let n=GS.exec(t);if(n){let a=Array.from(n).slice(1);return[...a.slice(0,3).map(i=>parseInt(i,16)),parseInt(a[3]||"ff",16)/255]}let l=$S.exec(t);if(l){let a=Array.from(l).slice(1);return[...a.slice(0,3).map(i=>parseInt(i,10)),parseFloat(a[3]||"1")]}let r=WS.exec(t);if(r){let[a,i,p,s]=Array.from(r).slice(1).map(parseFloat);if(er(0,100,i)!==i)throw new na(e);if(er(0,100,p)!==p)throw new na(e);return[...KS(a,i,p),Number.isNaN(s)?1:s]}throw new na(e)}function VS(e){let t=5381,o=e.length;for(;o;)t=t*33^e.charCodeAt(--o);return(t>>>0)%2341}var xb=e=>parseInt(e.replace(/_/g,""),36),zS="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=xb(t.substring(0,3)),n=xb(t.substring(3)).toString(16),l="";for(let r=0;r<6-n.length;r++)l+="0";return e[o]=`${l}${n}`,e},{});function HS(e){let t=e.toLowerCase().trim(),o=zS[VS(t)];if(!o)throw new na(e);return`#${o}`}var ra=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),US=new RegExp(`^#${ra("([a-f0-9])",3)}([a-f0-9])?$`,"i"),GS=new RegExp(`^#${ra("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),$S=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ra(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),WS=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,qS=/^[a-z]+$/i,Pb=e=>Math.round(e*255),KS=(e,t,o)=>{let n=o/100;if(t===0)return[n,n,n].map(Pb);let l=(e%360+360)%360/60,r=(1-Math.abs(2*n-1))*(t/100),a=r*(1-Math.abs(l%2-1)),i=0,p=0,s=0;l>=0&&l<1?(i=r,p=a):l>=1&&l<2?(i=a,p=r):l>=2&&l<3?(p=r,s=a):l>=3&&l<4?(p=a,s=r):l>=4&&l<5?(i=a,s=r):l>=5&&l<6&&(i=r,s=a);let d=n-r/2,f=i+d,m=p+d,b=s+d;return[f,m,b].map(Pb)};function XS(e,t,o,n){return`rgba(${er(0,255,e).toFixed()}, ${er(0,255,t).toFixed()}, ${er(0,255,o).toFixed()}, ${parseFloat(er(0,1,n).toFixed(3))})`}function aa(e,t){let[o,n,l,r]=_S(e);return XS(o,n,l,r-t)}import{forwardRef as QS,useMemo as ZS}from"react";import{jsx as tr,jsxs as Sb}from"react/jsx-runtime";var Pe=QS(function({header:t,footer:o,color:n,isGlass:l=!1,hoverable:r=!1,p:a,gap:i,radius:p=8,children:s,className:d,classNames:f,style:m,styles:b,...y},u){let{cardColor:v,backgroundColor:C,borderColor:S}=ZS(()=>{let I=YS.getComputedColor(n);return I?{cardColor:I,backgroundColor:aa(I,.9),borderColor:aa(I,.8)}:{cardColor:I}},[n]);return tr("div",{className:yo("cleen",d),style:m,ref:u,...y,children:Sb("div",{className:yo("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",f?.container),style:{...v&&{backgroundColor:C,borderColor:S,color:v},...l&&{backgroundImage:`linear-gradient(to right, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 5%),
2
+ linear-gradient(to bottom, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 10%)`},...a!==void 0&&{paddingBlock:a},...i!==void 0&&{gap:i},borderRadius:p,...b?.container},children:[(t?.content||t?.title)&&Sb("div",{className:yo("cleen-px-6",f?.header?.content),style:{...v&&{color:v},...a!==void 0&&{paddingInline:a},...b?.header?.content},children:[t?.title&&tr("div",{className:yo("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",f?.header?.title),style:{...v&&{color:v},...b?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&tr("hr",{className:yo("cleen-text-neutral-200",f?.header?.divider),style:{...v&&{color:S},...b?.header?.divider}}),s&&tr("div",{className:yo("cleen-px-6",f?.childrenContainer),style:{...a!==void 0&&{paddingInline:a},...b?.childrenContainer},children:s}),o?.content&&o?.hasDivider&&tr("hr",{className:yo("cleen-text-neutral-200",f?.footer?.divider),style:{...v&&{color:S},...b?.footer?.divider}}),o?.content&&tr("div",{className:yo("cleen-px-6 -cleen-mt-3 cleen-text-foreground",f?.footer?.content),style:{...v&&{color:v},...a!==void 0&&{paddingInline:a},...b?.footer?.content},children:o.content})]})})});import{jsx as JS}from"react/jsx-runtime";function c({size:e=24,width:t,height:o,strokeWidth:n=1.5,isFilled:l=!1,children:r,...a}){return delete a.color1,delete a.color2,JS("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",...a,children:r})}import{jsx as wb,jsxs as jS}from"react/jsx-runtime";var pp=e=>jS(c,{...e,children:[wb("path",{d:"M9 10.5l2 2l4 -4"}),wb("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as Mb}from"react/jsx-runtime";var dp=e=>Mb(c,{isFilled:!0,...e,children:Mb("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 mp,jsxs as ew}from"react/jsx-runtime";var up=e=>ew(c,{...e,children:[mp("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),mp("path",{d:"M16 19h6"}),mp("path",{d:"M19 16v6"})]});import{jsx as vo,jsxs as tw}from"react/jsx-runtime";var fp=e=>tw(c,{...e,children:[vo("path",{d:"M3 21l18 0"}),vo("path",{d:"M9 8l1 0"}),vo("path",{d:"M9 12l1 0"}),vo("path",{d:"M9 16l1 0"}),vo("path",{d:"M14 8l1 0"}),vo("path",{d:"M14 12l1 0"}),vo("path",{d:"M14 16l1 0"}),vo("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as kb,jsxs as ow}from"react/jsx-runtime";var hp=e=>ow(c,{...e,children:[kb("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"}),kb("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 gc,jsxs as nw}from"react/jsx-runtime";var gp=e=>nw(c,{...e,children:[gc("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),gc("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),gc("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),gc("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as la,jsxs as rw}from"react/jsx-runtime";var bp=e=>rw(c,{viewBox:"0 0 48 48",...e,children:[la("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),la("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),la("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),la("path",{d:"M24 18v8"}),la("path",{d:"M24 30h.01"})]});import{jsx as bc,jsxs as aw}from"react/jsx-runtime";var yp=e=>aw(c,{viewBox:"0 0 48 48",...e,children:[bc("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),bc("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),bc("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),bc("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as vp,jsxs as lw}from"react/jsx-runtime";var Jo=e=>lw(c,{...e,children:[vp("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),vp("path",{d:"M12 8v4"}),vp("path",{d:"M12 16h.01"})]});import{jsx as Tb}from"react/jsx-runtime";var Ip=e=>Tb(c,{isFilled:!0,...e,children:Tb("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 Cp,jsxs as cw}from"react/jsx-runtime";var xp=e=>cw(c,{...e,children:[Cp("path",{d:"M12 9v4"}),Cp("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"}),Cp("path",{d:"M12 16h.01"})]});import{jsx as ca,jsxs as iw}from"react/jsx-runtime";var Pp=e=>iw(c,{...e,children:[ca("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"}),ca("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"}),ca("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"}),ca("path",{d:"M14 7l6 0"}),ca("path",{d:"M17 4l0 6"})]});import{jsx as Sp,jsxs as sw}from"react/jsx-runtime";var wp=e=>sw(c,{...e,children:[Sp("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"}),Sp("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),Sp("path",{d:"M10 12l4 0"})]});import{jsx as yc,jsxs as pw}from"react/jsx-runtime";var Mp=e=>pw(c,{...e,children:[yc("path",{d:"M12 20l0 -10"}),yc("path",{d:"M12 20l4 -4"}),yc("path",{d:"M12 20l-4 -4"}),yc("path",{d:"M4 4l16 0"})]});import{jsx as vc,jsxs as dw}from"react/jsx-runtime";var kp=e=>dw(c,{...e,children:[vc("path",{d:"M4 12l10 0"}),vc("path",{d:"M4 12l4 4"}),vc("path",{d:"M4 12l4 -4"}),vc("path",{d:"M20 4l0 16"})]});import{jsx as Ic,jsxs as mw}from"react/jsx-runtime";var Tp=e=>mw(c,{...e,children:[Ic("path",{d:"M20 12l-10 0"}),Ic("path",{d:"M20 12l-4 4"}),Ic("path",{d:"M20 12l-4 -4"}),Ic("path",{d:"M4 4l0 16"})]});import{jsx as Cc,jsxs as uw}from"react/jsx-runtime";var Np=e=>uw(c,{...e,children:[Cc("path",{d:"M4 20l16 0"}),Cc("path",{d:"M12 14l0 -10"}),Cc("path",{d:"M12 14l4 -4"}),Cc("path",{d:"M12 14l-4 -4"})]});import{jsx as xc,jsxs as fw}from"react/jsx-runtime";var Bp=e=>fw(c,{...e,children:[xc("path",{d:"M10 12l10 0"}),xc("path",{d:"M10 12l4 4"}),xc("path",{d:"M10 12l4 -4"}),xc("path",{d:"M4 4l0 16"})]});import{jsx as Pc,jsxs as hw}from"react/jsx-runtime";var Rp=e=>hw(c,{...e,children:[Pc("path",{d:"M14 12l-10 0"}),Pc("path",{d:"M14 12l-4 4"}),Pc("path",{d:"M14 12l-4 -4"}),Pc("path",{d:"M20 4l0 16"})]});import{jsx as Sc,jsxs as gw}from"react/jsx-runtime";var Ep=e=>gw(c,{...e,children:[Sc("path",{d:"M12 10l0 10"}),Sc("path",{d:"M12 10l4 4"}),Sc("path",{d:"M12 10l-4 4"}),Sc("path",{d:"M4 4l16 0"})]});import{jsx as wc,jsxs as bw}from"react/jsx-runtime";var Lp=e=>bw(c,{...e,children:[wc("path",{d:"M12 4l0 10"}),wc("path",{d:"M12 4l4 4"}),wc("path",{d:"M12 4l-4 4"}),wc("path",{d:"M4 20l16 0"})]});import{jsx as Dp,jsxs as yw}from"react/jsx-runtime";var Fp=e=>yw(c,{...e,children:[Dp("path",{d:"M12 5l0 14"}),Dp("path",{d:"M18 13l-6 6"}),Dp("path",{d:"M6 13l6 6"})]});import{jsx as Nb,jsxs as vw}from"react/jsx-runtime";var Ap=e=>vw(c,{...e,children:[Nb("path",{d:"M17 7l-10 10"}),Nb("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as Op,jsxs as Iw}from"react/jsx-runtime";var _p=e=>Iw(c,{...e,children:[Op("path",{d:"M12 5l0 14"}),Op("path",{d:"M16 15l-4 4"}),Op("path",{d:"M8 15l4 4"})]});import{jsx as Bb,jsxs as Cw}from"react/jsx-runtime";var Vp=e=>Cw(c,{...e,children:[Bb("path",{d:"M7 7l10 10"}),Bb("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as zp,jsxs as xw}from"react/jsx-runtime";var Hp=e=>xw(c,{...e,children:[zp("path",{d:"M5 12l14 0"}),zp("path",{d:"M5 12l6 6"}),zp("path",{d:"M5 12l6 -6"})]});import{jsx as Up,jsxs as Pw}from"react/jsx-runtime";var Gp=e=>Pw(c,{...e,children:[Up("path",{d:"M5 12l14 0"}),Up("path",{d:"M5 12l4 4"}),Up("path",{d:"M5 12l4 -4"})]});import{jsx as $p,jsxs as Sw}from"react/jsx-runtime";var Wp=e=>Sw(c,{...e,children:[$p("path",{d:"M5 12l14 0"}),$p("path",{d:"M13 18l6 -6"}),$p("path",{d:"M13 6l6 6"})]});import{jsx as qp,jsxs as ww}from"react/jsx-runtime";var Kp=e=>ww(c,{...e,children:[qp("path",{d:"M5 12l14 0"}),qp("path",{d:"M15 16l4 -4"}),qp("path",{d:"M15 8l4 4"})]});import{jsx as Xp,jsxs as Mw}from"react/jsx-runtime";var Yp=e=>Mw(c,{...e,children:[Xp("path",{d:"M12 5l0 14"}),Xp("path",{d:"M18 11l-6 -6"}),Xp("path",{d:"M6 11l6 -6"})]});import{jsx as Rb,jsxs as kw}from"react/jsx-runtime";var Qp=e=>kw(c,{...e,children:[Rb("path",{d:"M7 7l10 10"}),Rb("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as Zp,jsxs as Tw}from"react/jsx-runtime";var Jp=e=>Tw(c,{...e,children:[Zp("path",{d:"M12 5l0 14"}),Zp("path",{d:"M16 9l-4 -4"}),Zp("path",{d:"M8 9l4 -4"})]});import{jsx as Eb,jsxs as Nw}from"react/jsx-runtime";var jp=e=>Nw(c,{...e,children:[Eb("path",{d:"M17 7l-10 10"}),Eb("path",{d:"M8 7l9 0l0 9"})]});import{jsx as Lb}from"react/jsx-runtime";var ed=e=>Lb(c,{...e,children:Lb("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 ia,jsxs as Bw}from"react/jsx-runtime";var sa=e=>Bw(c,{...e,children:[ia("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"}),ia("path",{d:"M14 9v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1"}),ia("path",{d:"M7 15v-6"}),ia("path",{d:"M10 15v-6"}),ia("path",{d:"M7 12h3"})]});import{jsx as Mc,jsxs as Rw}from"react/jsx-runtime";var td=e=>Rw(c,{...e,children:[Mc("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"}),Mc("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"}),Mc("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"}),Mc("path",{d:"M4 20h14"})]});import{jsx as pa,jsxs as Ew}from"react/jsx-runtime";var od=e=>Ew(c,{...e,children:[pa("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),pa("path",{d:"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"}),pa("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"}),pa("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"}),pa("path",{d:"M7 18.5h10"})]});import{jsx as Db,jsxs as Lw}from"react/jsx-runtime";var nd=e=>Lw(c,{...e,children:[Db("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"}),Db("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as Fb,jsxs as Dw}from"react/jsx-runtime";var rd=e=>Dw(c,{...e,children:[Fb("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),Fb("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as Ab}from"react/jsx-runtime";var ad=e=>Ab(c,{...e,children:Ab("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as Ob}from"react/jsx-runtime";var ld=e=>Ob(c,{isFilled:!0,...e,children:Ob("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 _b,jsxs as Fw}from"react/jsx-runtime";var cd=e=>Fw(c,{...e,children:[_b("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),_b("path",{d:"M16 19h6"})]});import{jsx as id,jsxs as Aw}from"react/jsx-runtime";var sd=e=>Aw(c,{...e,children:[id("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),id("path",{d:"M20.5 21.5l-5 -5"}),id("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as da,jsxs as Ow}from"react/jsx-runtime";var pd=e=>Ow(c,{...e,children:[da("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),da("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),da("path",{d:"M3 6l0 13"}),da("path",{d:"M12 6l0 13"}),da("path",{d:"M21 6l0 13"})]});import{jsx as kc,jsxs as _w}from"react/jsx-runtime";var dd=e=>_w(c,{...e,children:[kc("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"}),kc("path",{d:"M9 13h-2"}),kc("path",{d:"M13 10h-6"}),kc("path",{d:"M11 7h-4"})]});import{jsx as md,jsxs as Vw}from"react/jsx-runtime";var ud=e=>Vw(c,{...e,children:[md("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"}),md("path",{d:"M10 8h4"}),md("path",{d:"M12 8v8"})]});import{jsx as fd,jsxs as zw}from"react/jsx-runtime";var hd=e=>zw(c,{...e,children:[fd("path",{d:"M9 12l2 2l4 -4"}),fd("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),fd("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as ma,jsxs as Hw}from"react/jsx-runtime";var gd=e=>Hw(c,{...e,children:[ma("path",{d:"M15 12h.01"}),ma("path",{d:"M12 12h.01"}),ma("path",{d:"M9 12h.01"}),ma("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),ma("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Xt,jsxs as Uw}from"react/jsx-runtime";var bd=e=>Uw(c,{...e,children:[Xt("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"}),Xt("path",{d:"M4 8h16"}),Xt("path",{d:"M20 12h-16"}),Xt("path",{d:"M4 16h16"}),Xt("path",{d:"M9 4v4"}),Xt("path",{d:"M14 8v4"}),Xt("path",{d:"M8 12v4"}),Xt("path",{d:"M16 12v4"}),Xt("path",{d:"M11 16v4"})]});import{jsx as Tc,jsxs as Gw}from"react/jsx-runtime";var yd=e=>Gw(c,{...e,children:[Tc("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"}),Tc("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),Tc("path",{d:"M12 12l0 .01"}),Tc("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as Io,jsxs as $w}from"react/jsx-runtime";var vd=e=>$w(c,{...e,children:[Io("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"}),Io("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"}),Io("path",{d:"M8 14l0 .01"}),Io("path",{d:"M12 14l0 .01"}),Io("path",{d:"M16 14l0 .01"}),Io("path",{d:"M8 17l0 .01"}),Io("path",{d:"M12 17l0 .01"}),Io("path",{d:"M16 17l0 .01"})]});import{jsx as or,jsxs as Ww}from"react/jsx-runtime";var ua=e=>Ww(c,{...e,children:[or("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"}),or("path",{d:"M16 3v4"}),or("path",{d:"M8 3v4"}),or("path",{d:"M4 11h16"}),or("path",{d:"M11 15h1"}),or("path",{d:"M12 15v3"})]});import{jsx as nr,jsxs as qw}from"react/jsx-runtime";var Id=e=>qw(c,{...e,children:[nr("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),nr("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),nr("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"}),nr("path",{d:"M6 9l12 0"}),nr("path",{d:"M6 12l3 0"}),nr("path",{d:"M6 15l2 0"})]});import{jsx as Vb}from"react/jsx-runtime";var Yt=e=>Vb(c,{...e,children:Vb("path",{d:"M5 12l5 5l10 -10"})});import{jsx as zb,jsxs as Kw}from"react/jsx-runtime";var jo=e=>Kw(c,{...e,children:[zb("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),zb("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as Hb,jsxs as Xw}from"react/jsx-runtime";var Cd=e=>Xw(c,{...e,children:[Hb("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),Hb("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as Ub}from"react/jsx-runtime";var xd=e=>Ub(c,{isFilled:!0,...e,children:Ub("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 Gb,jsxs as Yw}from"react/jsx-runtime";var Pd=e=>Yw(c,{...e,children:[Gb("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"}),Gb("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as $b}from"react/jsx-runtime";var Sd=e=>$b(c,{isFilled:!0,...e,children:$b("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 Wb}from"react/jsx-runtime";var en=e=>Wb(c,{...e,children:Wb("path",{d:"M6 9l6 6l6 -6"})});import{jsx as qb,jsxs as Qw}from"react/jsx-runtime";var wd=e=>Qw(c,{...e,children:[qb("path",{d:"M7 7l5 5l5 -5"}),qb("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as Kb}from"react/jsx-runtime";var Md=e=>Kb(c,{...e,children:Kb("path",{d:"M8 8v8h8"})});import{jsx as Xb,jsxs as Zw}from"react/jsx-runtime";var kd=e=>Zw(c,{...e,children:[Xb("path",{d:"M11 5v8h8"}),Xb("path",{d:"M7 9v8h8"})]});import{jsx as Yb}from"react/jsx-runtime";var Td=e=>Yb(c,{...e,children:Yb("path",{d:"M16 8v8h-8"})});import{jsx as Qb,jsxs as Jw}from"react/jsx-runtime";var Nd=e=>Jw(c,{...e,children:[Qb("path",{d:"M13 5v8h-8"}),Qb("path",{d:"M17 9v8h-8"})]});import{jsx as Zb}from"react/jsx-runtime";var Qt=e=>Zb(c,{...e,children:Zb("path",{d:"M15 6l-6 6l6 6"})});import{jsx as Jb,jsxs as jw}from"react/jsx-runtime";var Bd=e=>jw(c,{...e,children:[Jb("path",{d:"M11 7l-5 5l5 5"}),Jb("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as jb}from"react/jsx-runtime";var ct=e=>jb(c,{...e,children:jb("path",{d:"M9 6l6 6l-6 6"})});import{jsx as ey,jsxs as eM}from"react/jsx-runtime";var fa=e=>eM(c,{...e,children:[ey("path",{d:"M7 7l5 5l-5 5"}),ey("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as ty,jsxs as tM}from"react/jsx-runtime";var Rd=e=>tM(c,{...e,children:[ty("path",{d:"M8 9l4 -4l4 4"}),ty("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as oy}from"react/jsx-runtime";var Zt=e=>oy(c,{...e,children:oy("path",{d:"M6 15l6 -6l6 6"})});import{jsx as ny,jsxs as oM}from"react/jsx-runtime";var Ed=e=>oM(c,{...e,children:[ny("path",{d:"M7 11l5 -5l5 5"}),ny("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as ry}from"react/jsx-runtime";var Ld=e=>ry(c,{...e,children:ry("path",{d:"M8 16v-8h8"})});import{jsx as ay,jsxs as nM}from"react/jsx-runtime";var Dd=e=>nM(c,{...e,children:[ay("path",{d:"M7 15v-8h8"}),ay("path",{d:"M11 19v-8h8"})]});import{jsx as ly}from"react/jsx-runtime";var Fd=e=>ly(c,{...e,children:ly("path",{d:"M8 8h8v8"})});import{jsx as cy,jsxs as rM}from"react/jsx-runtime";var Ad=e=>rM(c,{...e,children:[cy("path",{d:"M9 7h8v8"}),cy("path",{d:"M5 11h8v8"})]});import{jsx as rr,jsxs as aM}from"react/jsx-runtime";var Od=e=>aM(c,{...e,children:[rr("path",{d:"M3 12l3 0"}),rr("path",{d:"M12 3l0 3"}),rr("path",{d:"M7.8 7.8l-2.2 -2.2"}),rr("path",{d:"M16.2 7.8l2.2 -2.2"}),rr("path",{d:"M7.8 16.2l-2.2 2.2"}),rr("path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9"})]});import{jsx as iy,jsxs as lM}from"react/jsx-runtime";var ha=e=>lM(c,{...e,children:[iy("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),iy("path",{d:"M12 7v5l3 3"})]});import{jsx as Nc,jsxs as cM}from"react/jsx-runtime";var _d=e=>cM(c,{...e,children:[Nc("path",{d:"M12 7v5l2 2"}),Nc("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),Nc("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),Nc("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as Vd,jsxs as iM}from"react/jsx-runtime";var zd=e=>iM(c,{...e,children:[Vd("path",{d:"M12 7v5l2 2"}),Vd("path",{d:"M17 22l5 -3l-5 -3z"}),Vd("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as sy,jsxs as sM}from"react/jsx-runtime";var Hd=e=>sM(c,{...e,children:[sy("path",{d:"M12 8l0 4l2 2"}),sy("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as ga,jsxs as pM}from"react/jsx-runtime";var Ud=e=>pM(c,{...e,children:[ga("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),ga("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"}),ga("path",{d:"M11 14h6"}),ga("path",{d:"M14 11v6"}),ga("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 Gd,jsxs as dM}from"react/jsx-runtime";var ba=e=>dM(c,{...e,children:[Gd("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"}),Gd("path",{d:"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Gd("path",{d:"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"})]});import{jsx as $d,jsxs as mM}from"react/jsx-runtime";var Wd=e=>mM(c,{...e,children:[$d("path",{d:"M7 8l-4 4l4 4"}),$d("path",{d:"M17 8l4 4l-4 4"}),$d("path",{d:"M14 4l-4 16"})]});import{jsx as ar,jsxs as uM}from"react/jsx-runtime";var qd=e=>uM(c,{...e,children:[ar("path",{d:"M4 8h16"}),ar("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),ar("path",{d:"M8 4v4"}),ar("path",{d:"M9 12l-2 2l2 2"}),ar("path",{d:"M15 12l2 2l-2 2"}),ar("path",{d:"M13 11l-2 6"})]});import{jsx as Kd,jsxs as fM}from"react/jsx-runtime";var Xd=e=>fM(c,{...e,children:[Kd("path",{d:"M10 14l-2 -2l2 -2"}),Kd("path",{d:"M14 10l2 2l-2 2"}),Kd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Yd,jsxs as hM}from"react/jsx-runtime";var Qd=e=>hM(c,{...e,children:[Yd("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Yd("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Yd("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as py,jsxs as gM}from"react/jsx-runtime";var Zd=e=>gM(c,{...e,children:[py("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"}),py("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 dy,jsxs as bM}from"react/jsx-runtime";var Jd=e=>bM(c,{...e,children:[dy("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"}),dy("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 jd,jsxs as yM}from"react/jsx-runtime";var em=e=>yM(c,{...e,children:[jd("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"}),jd("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"}),jd("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as Bc,jsxs as vM}from"react/jsx-runtime";var tm=e=>vM(c,{...e,children:[Bc("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"}),Bc("path",{d:"M3 10l18 0"}),Bc("path",{d:"M7 15l.01 0"}),Bc("path",{d:"M11 15l2 0"})]});import{jsx as Rc,jsxs as IM}from"react/jsx-runtime";var om=e=>IM(c,{...e,children:[Rc("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"}),Rc("path",{d:"M12 22v-10"}),Rc("path",{d:"M12 12l8.73 -5.04"}),Rc("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as it,jsxs as CM}from"react/jsx-runtime";var nm=e=>CM(c,{...e,children:[it("path",{d:"M6 17.6l-2 -1.1v-2.5"}),it("path",{d:"M4 10v-2.5l2 -1.1"}),it("path",{d:"M10 4.1l2 -1.1l2 1.1"}),it("path",{d:"M18 6.4l2 1.1v2.5"}),it("path",{d:"M20 14v2.5l-2 1.12"}),it("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),it("path",{d:"M12 12l2 -1.1"}),it("path",{d:"M18 8.6l2 -1.1"}),it("path",{d:"M12 12l0 2.5"}),it("path",{d:"M12 18.5l0 2.5"}),it("path",{d:"M12 12l-2 -1.12"}),it("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as my,jsxs as xM}from"react/jsx-runtime";var ya=e=>xM(c,{...e,children:[my("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"}),my("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 tn,jsxs as PM}from"react/jsx-runtime";var rm=e=>PM(c,{...e,children:[tn("path",{d:"M5 2h5v4h-5z"}),tn("path",{d:"M15 10h5v4h-5z"}),tn("path",{d:"M5 18h5v4h-5z"}),tn("path",{d:"M5 10h5v4h-5z"}),tn("path",{d:"M10 12h5"}),tn("path",{d:"M7.5 6v4"}),tn("path",{d:"M7.5 14v4"})]});import{jsx as st,jsxs as SM}from"react/jsx-runtime";var am=e=>SM(c,{...e,children:[st("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),st("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),st("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),st("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),st("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),st("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),st("path",{d:"M5 17l2 -3"}),st("path",{d:"M9 10l2 -3"}),st("path",{d:"M13 7l2 3"}),st("path",{d:"M17 14l2 3"}),st("path",{d:"M15 14l-2 3"}),st("path",{d:"M9 14l2 3"})]});import{jsx as va,jsxs as wM}from"react/jsx-runtime";var lm=e=>wM(c,{...e,children:[va("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"}),va("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"}),va("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"}),va("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),va("path",{d:"M12 9l0 3"})]});import{jsx as cm,jsxs as MM}from"react/jsx-runtime";var im=e=>MM(c,{...e,children:[cm("path",{d:"M4 4l16 0"}),cm("path",{d:"M4 20l16 0"}),cm("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 uy,jsxs as kM}from"react/jsx-runtime";var sm=e=>kM(c,{...e,children:[uy("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"}),uy("path",{d:"M12 3v3m0 12v3"})]});import{jsx as pm,jsxs as TM}from"react/jsx-runtime";var dm=e=>TM(c,{...e,children:[pm("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),pm("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"}),pm("path",{d:"M12 7v10"})]});import{jsx as fy}from"react/jsx-runtime";var mm=e=>fy(c,{...e,children:fy("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as hy}from"react/jsx-runtime";var um=e=>hy(c,{isFilled:!0,...e,children:hy("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 Jt,jsxs as NM}from"react/jsx-runtime";var fm=e=>NM(c,{...e,children:[Jt("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jt("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jt("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jt("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jt("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jt("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jt("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jt("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Jt("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as hm,jsxs as BM}from"react/jsx-runtime";var Ia=e=>BM(c,{...e,children:[hm("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hm("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hm("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as gm,jsxs as RM}from"react/jsx-runtime";var Co=e=>RM(c,{...e,children:[gm("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),gm("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),gm("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as bm,jsxs as EM}from"react/jsx-runtime";var ym=e=>EM(c,{...e,children:[bm("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),bm("path",{d:"M7 11l5 5l5 -5"}),bm("path",{d:"M12 4l0 12"})]});import{jsx as gy,jsxs as LM}from"react/jsx-runtime";var vm=e=>LM(c,{...e,children:[gy("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),gy("path",{d:"M13.5 6.5l4 4"})]});import{jsx as Im,jsxs as DM}from"react/jsx-runtime";var Cm=e=>DM(c,{...e,children:[Im("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),Im("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),Im("path",{d:"M16 5l3 3"})]});import{jsx as xo,jsxs as FM}from"react/jsx-runtime";var xm=e=>FM(c,{...e,children:[xo("path",{d:"M16 4l4 0l0 4"}),xo("path",{d:"M14 10l6 -6"}),xo("path",{d:"M8 20l-4 0l0 -4"}),xo("path",{d:"M4 20l6 -6"}),xo("path",{d:"M16 20l4 0l0 -4"}),xo("path",{d:"M14 14l6 6"}),xo("path",{d:"M8 4l-4 0l0 4"}),xo("path",{d:"M4 4l6 6"})]});import{jsx as Pm,jsxs as AM}from"react/jsx-runtime";var Sm=e=>AM(c,{...e,children:[Pm("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),Pm("path",{d:"M11 13l9 -9"}),Pm("path",{d:"M15 4h5v5"})]});import{jsx as wm,jsxs as OM}from"react/jsx-runtime";var Mm=e=>OM(c,{...e,children:[wm("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"}),wm("path",{d:"M15 9l-6 6"}),wm("path",{d:"M10 9l5 0l0 5"})]});import{jsx as by,jsxs as _M}from"react/jsx-runtime";var km=e=>_M(c,{...e,children:[by("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),by("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 Tm,jsxs as VM}from"react/jsx-runtime";var Nm=e=>VM(c,{...e,children:[Tm("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),Tm("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"}),Tm("path",{d:"M3 3l18 18"})]});import{jsx as Ca,jsxs as zM}from"react/jsx-runtime";var Bm=e=>zM(c,{...e,children:[Ca("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),Ca("path",{d:"M3 15l2.5 -3.8"}),Ca("path",{d:"M21 14.976l-2.492 -3.776"}),Ca("path",{d:"M9 17l.5 -4"}),Ca("path",{d:"M15 17l-.5 -4"})]});import{jsx as Ec,jsxs as HM}from"react/jsx-runtime";var Rm=e=>HM(c,{...e,children:[Ec("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),Ec("path",{d:"M8 9l2 1"}),Ec("path",{d:"M16 9l-2 1"}),Ec("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as lr,jsxs as UM}from"react/jsx-runtime";var Em=e=>UM(c,{...e,children:[lr("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),lr("path",{d:"M7 8.5l3 3"}),lr("path",{d:"M7 11.5l3 -3"}),lr("path",{d:"M14 8.5l3 3"}),lr("path",{d:"M14 11.5l3 -3"}),lr("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Lc,jsxs as GM}from"react/jsx-runtime";var Lm=e=>GM(c,{...e,children:[Lc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Lc("path",{d:"M9 10l.01 0"}),Lc("path",{d:"M15 10l.01 0"}),Lc("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as yy,jsxs as $M}from"react/jsx-runtime";var on=e=>$M(c,{...e,children:[yy("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),yy("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 Dm,jsxs as WM}from"react/jsx-runtime";var Fm=e=>WM(c,{...e,children:[Dm("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Dm("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"}),Dm("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as xa,jsxs as qM}from"react/jsx-runtime";var Pa=e=>qM(c,{...e,children:[xa("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),xa("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),xa("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),xa("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"}),xa("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as Dc,jsxs as KM}from"react/jsx-runtime";var Am=e=>KM(c,{...e,children:[Dc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Dc("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"}),Dc("path",{d:"M12 17v-6"}),Dc("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as cr,jsxs as XM}from"react/jsx-runtime";var Sa=e=>XM(c,{...e,children:[cr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),cr("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),cr("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),cr("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"}),cr("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"}),cr("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as Fc,jsxs as YM}from"react/jsx-runtime";var Om=e=>YM(c,{...e,children:[Fc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Fc("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"}),Fc("path",{d:"M9 17h6"}),Fc("path",{d:"M9 13h6"})]});import{jsx as Ac,jsxs as QM}from"react/jsx-runtime";var pt=e=>QM(c,{...e,children:[Ac("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ac("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"}),Ac("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ac("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as ir,jsxs as ZM}from"react/jsx-runtime";var nn=e=>ZM(c,{...e,children:[ir("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ir("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),ir("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),ir("path",{d:"M17 18h2"}),ir("path",{d:"M20 15h-3v6"}),ir("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as _m,jsxs as JM}from"react/jsx-runtime";var Vm=e=>JM(c,{...e,children:[_m("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),_m("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"}),_m("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 wa,jsxs as jM}from"react/jsx-runtime";var Ma=e=>jM(c,{...e,children:[wa("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),wa("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"}),wa("path",{d:"M8 11h8v7h-8z"}),wa("path",{d:"M8 15h8"}),wa("path",{d:"M11 11v7"})]});import{jsx as ka,jsxs as e5}from"react/jsx-runtime";var jt=e=>e5(c,{...e,children:[ka("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ka("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"}),ka("path",{d:"M9 9l1 0"}),ka("path",{d:"M9 13l6 0"}),ka("path",{d:"M9 17l6 0"})]});import{jsx as Oc,jsxs as t5}from"react/jsx-runtime";var zm=e=>t5(c,{...e,children:[Oc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Oc("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"}),Oc("path",{d:"M12 11v6"}),Oc("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as sr,jsxs as o5}from"react/jsx-runtime";var Ta=e=>o5(c,{...e,children:[sr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),sr("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),sr("path",{d:"M4 15l4 6"}),sr("path",{d:"M4 21l4 -6"}),sr("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"}),sr("path",{d:"M11 15v6h3"})]});import{jsx as Po,jsxs as n5}from"react/jsx-runtime";var Na=e=>n5(c,{...e,children:[Po("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Po("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Po("path",{d:"M4 16l3 5"}),Po("path",{d:"M4 21l3 -5"}),Po("path",{d:"M8.5 16v5h2"}),Po("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"}),Po("path",{d:"M16.5 16l3 5"}),Po("path",{d:"M16.5 21l3 -5"})]});import{jsx as So,jsxs as r5}from"react/jsx-runtime";var Tt=e=>r5(c,{...e,children:[So("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"}),So("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"}),So("path",{d:"M11 5l-1 0"}),So("path",{d:"M13 7l-1 0"}),So("path",{d:"M11 9l-1 0"}),So("path",{d:"M13 11l-1 0"}),So("path",{d:"M11 13l-1 0"}),So("path",{d:"M13 15l-1 0"})]});import{jsx as vy}from"react/jsx-runtime";var Hm=e=>vy(c,{...e,children:vy("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 Um,jsxs as a5}from"react/jsx-runtime";var Ba=e=>a5(c,{...e,children:[Um("path",{d:"M4 6h16"}),Um("path",{d:"M6 12h12"}),Um("path",{d:"M9 18h6"})]});import{jsx as Iy,jsxs as l5}from"react/jsx-runtime";var Gm=e=>l5(c,{...e,children:[Iy("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"}),Iy("path",{d:"M5 21v-7"})]});import{jsx as Cy}from"react/jsx-runtime";var $m=e=>Cy(c,{...e,children:Cy("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as xy}from"react/jsx-runtime";var Wm=e=>xy(c,{isFilled:!0,...e,children:xy("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 Ra,jsxs as c5}from"react/jsx-runtime";var qm=e=>c5(c,{...e,children:[Ra("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ra("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Ra("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Ra("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Ra("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Py}from"react/jsx-runtime";var Km=e=>Py(c,{...e,children:Py("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 _c,jsxs as i5}from"react/jsx-runtime";var Xm=e=>i5(c,{...e,children:[_c("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"}),_c("path",{d:"M1 12.5l7 0"}),_c("path",{d:"M1 12.5l2 2"}),_c("path",{d:"M1 12.5l2 -2"})]});import{jsx as Vc,jsxs as s5}from"react/jsx-runtime";var Ym=e=>s5(c,{...e,children:[Vc("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"}),Vc("path",{d:"M2 13l7 0"}),Vc("path",{d:"M9 13l-2 2"}),Vc("path",{d:"M9 13l-2 -2"})]});import{jsx as Sy,jsxs as p5}from"react/jsx-runtime";var Qm=e=>p5(c,{...e,children:[Sy("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),Sy("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as pr,jsxs as d5}from"react/jsx-runtime";var Zm=e=>d5(c,{...e,children:[pr("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),pr("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),pr("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),pr("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),pr("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),pr("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as zc,jsxs as m5}from"react/jsx-runtime";var Jm=e=>m5(c,{...e,children:[zc("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),zc("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),zc("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),zc("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 dr,jsxs as u5}from"react/jsx-runtime";var jm=e=>u5(c,{...e,children:[dr("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),dr("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),dr("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),dr("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),dr("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"}),dr("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 Hc,jsxs as f5}from"react/jsx-runtime";var eu=e=>f5(c,{...e,children:[Hc("path",{d:"M5 9l14 0"}),Hc("path",{d:"M5 15l14 0"}),Hc("path",{d:"M11 4l-4 16"}),Hc("path",{d:"M17 4l-4 16"})]});import{jsx as Uc,jsxs as h5}from"react/jsx-runtime";var tu=e=>h5(c,{...e,children:[Uc("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),Uc("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),Uc("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"}),Uc("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 wy}from"react/jsx-runtime";var ou=e=>wy(c,{...e,children:wy("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 My}from"react/jsx-runtime";var nu=e=>My(c,{isFilled:!0,...e,children:My("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 ru,jsxs as g5}from"react/jsx-runtime";var au=e=>g5(c,{...e,children:[ru("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),ru("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),ru("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as ky,jsxs as b5}from"react/jsx-runtime";var Ea=e=>b5(c,{...e,children:[ky("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"}),ky("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Gc,jsxs as y5}from"react/jsx-runtime";var We=e=>y5(c,{...e,children:[Gc("path",{d:"M15 8h.01"}),Gc("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"}),Gc("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Gc("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as La,jsxs as v5}from"react/jsx-runtime";var lu=e=>v5(c,{...e,children:[La("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"}),La("path",{d:"M4 16l16 0"}),La("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),La("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),La("path",{d:"M14 7l.01 0"})]});import{jsx as Da,jsxs as I5}from"react/jsx-runtime";var cu=e=>I5(c,{...e,children:[Da("path",{d:"M15 8h.01"}),Da("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"}),Da("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),Da("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),Da("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Fa,jsxs as C5}from"react/jsx-runtime";var iu=e=>C5(c,{...e,children:[Fa("path",{d:"M15 8h.01"}),Fa("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"}),Fa("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Fa("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),Fa("path",{d:"M3 3l18 18"})]});import{jsx as Ty,jsxs as x5}from"react/jsx-runtime";var su=e=>x5(c,{...e,children:[Ty("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ty("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 Ny,jsxs as P5}from"react/jsx-runtime";var pu=e=>P5(c,{...e,children:[Ny("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"}),Ny("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as du,jsxs as S5}from"react/jsx-runtime";var mu=e=>S5(c,{...e,children:[du("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),du("path",{d:"M12 9h.01"}),du("path",{d:"M11 12h1v4h1"})]});import{jsx as uu,jsxs as w5}from"react/jsx-runtime";var fu=e=>w5(c,{...e,children:[uu("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"}),uu("path",{d:"M12 9h.01"}),uu("path",{d:"M11 12h1v4h1"})]});import{jsx as hu,jsxs as M5}from"react/jsx-runtime";var gu=e=>M5(c,{...e,children:[hu("path",{d:"M11 5l6 0"}),hu("path",{d:"M7 19l6 0"}),hu("path",{d:"M14 5l-4 14"})]});import{jsx as bu,jsxs as k5}from"react/jsx-runtime";var yu=e=>k5(c,{...e,children:[bu("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),bu("path",{d:"M4 12l8 4l8 -4"}),bu("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as By,jsxs as T5}from"react/jsx-runtime";var vu=e=>T5(c,{...e,children:[By("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),By("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as Ry,jsxs as N5}from"react/jsx-runtime";var Iu=e=>N5(c,{...e,children:[Ry("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"}),Ry("path",{d:"M9 4l0 16"})]});import{jsx as Cu,jsxs as B5}from"react/jsx-runtime";var xu=e=>B5(c,{...e,children:[Cu("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"}),Cu("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"}),Cu("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 $c,jsxs as R5}from"react/jsx-runtime";var Pu=e=>R5(c,{...e,children:[$c("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"}),$c("path",{d:"M4 9h8"}),$c("path",{d:"M12 15h8"}),$c("path",{d:"M12 4v16"})]});import{jsx as Aa,jsxs as E5}from"react/jsx-runtime";var Su=e=>E5(c,{...e,children:[Aa("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"}),Aa("path",{d:"M4 12h8"}),Aa("path",{d:"M12 15h8"}),Aa("path",{d:"M12 9h8"}),Aa("path",{d:"M12 4v16"})]});import{jsx as wu,jsxs as L5}from"react/jsx-runtime";var Mu=e=>L5(c,{...e,children:[wu("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"}),wu("path",{d:"M10 4l4 16"}),wu("path",{d:"M12 12l-8 2"})]});import{jsx as Wc,jsxs as D5}from"react/jsx-runtime";var ku=e=>D5(c,{...e,children:[Wc("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"}),Wc("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"}),Wc("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"}),Wc("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 mr,jsxs as F5}from"react/jsx-runtime";var Tu=e=>F5(c,{...e,children:[mr("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),mr("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),mr("path",{d:"M15 15l3.35 3.35"}),mr("path",{d:"M9 15l-3.35 3.35"}),mr("path",{d:"M5.65 5.65l3.35 3.35"}),mr("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as Nu,jsxs as A5}from"react/jsx-runtime";var Bu=e=>A5(c,{...e,children:[Nu("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),Nu("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"}),Nu("path",{d:"M9.7 17l4.6 0"})]});import{jsx as Ey}from"react/jsx-runtime";var Ru=e=>Ey(c,{...e,children:Ey("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as Ly,jsxs as O5}from"react/jsx-runtime";var Eu=e=>O5(c,{...e,children:[Ly("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),Ly("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as Dy,jsxs as _5}from"react/jsx-runtime";var Lu=e=>_5(c,{...e,children:[Dy("path",{d:"M4 19l16 0"}),Dy("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as ur,jsxs as V5}from"react/jsx-runtime";var Du=e=>V5(c,{...e,children:[ur("path",{d:"M3 3v18h18"}),ur("path",{d:"M20 18v3"}),ur("path",{d:"M16 16v5"}),ur("path",{d:"M12 13v8"}),ur("path",{d:"M8 16v5"}),ur("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as fr,jsxs as z5}from"react/jsx-runtime";var Fu=e=>z5(c,{...e,children:[fr("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"}),fr("path",{d:"M3 13c0 0, 8 0, 12 -4"}),fr("path",{d:"M12 8h4v4"}),fr("path",{d:"M15 2v1.44"}),fr("path",{d:"M18.75 4.75l1.2 -1.2"}),fr("path",{d:"M20 9h1.44"})]});import{jsx as Au,jsxs as H5}from"react/jsx-runtime";var Ou=e=>H5(c,{...e,children:[Au("path",{d:"M4 19l16 0"}),Au("path",{d:"M4 16l6 -6l4 4l5 -5"}),Au("path",{d:"M15 8h5v5"})]});import{jsx as Fy,jsxs as U5}from"react/jsx-runtime";var _u=e=>U5(c,{...e,children:[Fy("path",{d:"M5 10h14"}),Fy("path",{d:"M5 14h14"})]});import{jsx as hr,jsxs as G5}from"react/jsx-runtime";var Vu=e=>G5(c,{...e,children:[hr("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),hr("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),hr("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),hr("path",{d:"M11 6l9 0"}),hr("path",{d:"M11 12l9 0"}),hr("path",{d:"M11 18l9 0"})]});import{jsx as qc,jsxs as $5}from"react/jsx-runtime";var zu=e=>$5(c,{...e,children:[qc("path",{d:"M12 10v8l8 -4z"}),qc("path",{d:"M4 6h16"}),qc("path",{d:"M4 12h4.5"}),qc("path",{d:"M4 18h4.5"})]});import{jsx as Hu,jsxs as W5}from"react/jsx-runtime";var Uu=e=>W5(c,{...e,children:[Hu("path",{d:"M9 15l6 -6"}),Hu("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Hu("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 Ay,jsxs as q5}from"react/jsx-runtime";var Gu=e=>q5(c,{...e,children:[Ay("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),Ay("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Kc,jsxs as K5}from"react/jsx-runtime";var $u=e=>K5(c,{...e,children:[Kc("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Kc("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Kc("path",{d:"M3 3l18 18"}),Kc("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 gr,jsxs as X5}from"react/jsx-runtime";var Wu=e=>X5(c,{...e,children:[gr("path",{d:"M9 6l11 0"}),gr("path",{d:"M9 12l11 0"}),gr("path",{d:"M9 18l11 0"}),gr("path",{d:"M5 6l0 .01"}),gr("path",{d:"M5 12l0 .01"}),gr("path",{d:"M5 18l0 .01"})]});import{jsx as Oa,jsxs as Y5}from"react/jsx-runtime";var qu=e=>Y5(c,{...e,children:[Oa("path",{d:"M11 6h9"}),Oa("path",{d:"M11 12h9"}),Oa("path",{d:"M12 18h8"}),Oa("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),Oa("path",{d:"M6 10v-6l-2 2"})]});import{jsx as Ku,jsxs as Q5}from"react/jsx-runtime";var Xu=e=>Q5(c,{...e,children:[Ku("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"}),Ku("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Ku("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as Oy}from"react/jsx-runtime";var Yu=e=>Oy(c,{isFilled:!0,...e,children:Oy("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 Qu,jsxs as Z5}from"react/jsx-runtime";var Zu=e=>Z5(c,{...e,children:[Qu("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"}),Qu("path",{d:"M3 12h13l-3 -3"}),Qu("path",{d:"M13 15l3 -3"})]});import{jsx as Ju,jsxs as J5}from"react/jsx-runtime";var ju=e=>J5(c,{...e,children:[Ju("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"}),Ju("path",{d:"M9 12h12l-3 -3"}),Ju("path",{d:"M18 15l3 -3"})]});import{jsx as ef,jsxs as j5}from"react/jsx-runtime";var tf=e=>j5(c,{...e,children:[ef("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"}),ef("path",{d:"M15 12h-12l3 -3"}),ef("path",{d:"M6 15l-3 -3"})]});import{jsx as Xc,jsxs as e4}from"react/jsx-runtime";var of=e=>e4(c,{...e,children:[Xc("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Xc("path",{d:"M15 6l3 3"}),Xc("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"}),Xc("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 _y,jsxs as t4}from"react/jsx-runtime";var nf=e=>t4(c,{...e,children:[_y("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"}),_y("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as Yc,jsxs as o4}from"react/jsx-runtime";var rf=e=>o4(c,{...e,children:[Yc("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),Yc("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),Yc("path",{d:"M3 19l6 -6"}),Yc("path",{d:"M15 13l6 6"})]});import{jsx as Vy,jsxs as n4}from"react/jsx-runtime";var af=e=>n4(c,{...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 Qc,jsxs as r4}from"react/jsx-runtime";var _a=e=>r4(c,{...e,children:[Qc("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Qc("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Qc("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Qc("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Zc,jsxs as a4}from"react/jsx-runtime";var lf=e=>a4(c,{...e,children:[Zc("path",{d:"M16 4l4 0l0 4"}),Zc("path",{d:"M14 10l6 -6"}),Zc("path",{d:"M8 20l-4 0l0 -4"}),Zc("path",{d:"M4 20l6 -6"})]});import{jsx as zy}from"react/jsx-runtime";var cf=e=>zy(c,{...e,children:zy("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 sf,jsxs as l4}from"react/jsx-runtime";var rn=e=>l4(c,{...e,children:[sf("path",{d:"M8 9h8"}),sf("path",{d:"M8 13h6"}),sf("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 Jc,jsxs as c4}from"react/jsx-runtime";var pf=e=>c4(c,{...e,children:[Jc("path",{d:"M12 11v.01"}),Jc("path",{d:"M8 11v.01"}),Jc("path",{d:"M16 11v.01"}),Jc("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 Va,jsxs as i4}from"react/jsx-runtime";var df=e=>i4(c,{...e,children:[Va("path",{d:"M8 9h8"}),Va("path",{d:"M8 13h6"}),Va("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"}),Va("path",{d:"M22 22l-5 -5"}),Va("path",{d:"M17 22l5 -5"})]});import{jsx as jc,jsxs as s4}from"react/jsx-runtime";var za=e=>s4(c,{...e,children:[jc("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"}),jc("path",{d:"M5 10a7 7 0 0 0 14 0"}),jc("path",{d:"M8 21l8 0"}),jc("path",{d:"M12 17l0 4"})]});import{jsx as ei,jsxs as p4}from"react/jsx-runtime";var Ha=e=>p4(c,{...e,children:[ei("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),ei("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),ei("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),ei("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as ti,jsxs as d4}from"react/jsx-runtime";var mf=e=>d4(c,{...e,children:[ti("path",{d:"M18 10h-4v-4"}),ti("path",{d:"M20 4l-6 6"}),ti("path",{d:"M6 14h4v4"}),ti("path",{d:"M10 14l-6 6"})]});import{jsx as Hy,jsxs as m4}from"react/jsx-runtime";var uf=e=>m4(c,{...e,children:[Hy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Hy("path",{d:"M9 12l6 0"})]});import{jsx as ff,jsxs as u4}from"react/jsx-runtime";var hf=e=>u4(c,{...e,children:[ff("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"}),ff("path",{d:"M11 4h2"}),ff("path",{d:"M12 17v.01"})]});import{jsx as oi,jsxs as f4}from"react/jsx-runtime";var gf=e=>f4(c,{...e,children:[oi("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"}),oi("path",{d:"M7 20h10"}),oi("path",{d:"M9 16v4"}),oi("path",{d:"M15 16v4"})]});import{jsx as Ua,jsxs as h4}from"react/jsx-runtime";var bf=e=>h4(c,{...e,children:[Ua("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"}),Ua("path",{d:"M3 13h18"}),Ua("path",{d:"M8 21h8"}),Ua("path",{d:"M10 17l-.5 4"}),Ua("path",{d:"M14 17l.5 4"})]});import{jsx as Uy}from"react/jsx-runtime";var yf=e=>Uy(c,{...e,children:Uy("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 Gy,jsxs as g4}from"react/jsx-runtime";var vf=e=>g4(c,{...e,children:[Gy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Gy("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 wo,jsxs as b4}from"react/jsx-runtime";var yt=e=>b4(c,{...e,children:[wo("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"}),wo("path",{d:"M8 4l0 16"}),wo("path",{d:"M16 4l0 16"}),wo("path",{d:"M4 8l4 0"}),wo("path",{d:"M4 16l4 0"}),wo("path",{d:"M4 12l16 0"}),wo("path",{d:"M16 8l4 0"}),wo("path",{d:"M16 16l4 0"})]});import{jsx as $y}from"react/jsx-runtime";var If=e=>$y(c,{...e,children:$y("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 Wy,jsxs as y4}from"react/jsx-runtime";var Cf=e=>y4(c,{...e,children:[Wy("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),Wy("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as Ga,jsxs as v4}from"react/jsx-runtime";var xf=e=>v4(c,{...e,children:[Ga("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),Ga("path",{d:"M12 12l8 -4.5"}),Ga("path",{d:"M12 12l0 9"}),Ga("path",{d:"M12 12l-8 -4.5"}),Ga("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as ni,jsxs as I4}from"react/jsx-runtime";var Pf=e=>I4(c,{...e,children:[ni("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"}),ni("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ni("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ni("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as $a,jsxs as C4}from"react/jsx-runtime";var Sf=e=>C4(c,{...e,children:[$a("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"}),$a("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),$a("path",{d:"M15 16h.01"}),$a("path",{d:"M12.01 16h.01"}),$a("path",{d:"M9.02 16h.01"})]});import{jsx as qy,jsxs as x4}from"react/jsx-runtime";var vt=e=>x4(c,{...e,children:[qy("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"}),qy("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 wf,jsxs as P4}from"react/jsx-runtime";var Mf=e=>P4(c,{...e,children:[wf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),wf("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"}),wf("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 kf,jsxs as S4}from"react/jsx-runtime";var Tf=e=>S4(c,{...e,children:[kf("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"}),kf("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),kf("path",{d:"M16 9h2"})]});import{jsx as Nf,jsxs as w4}from"react/jsx-runtime";var Bf=e=>w4(c,{...e,children:[Nf("path",{d:"M14 6l7 7l-4 4"}),Nf("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"}),Nf("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as ri,jsxs as M4}from"react/jsx-runtime";var Rf=e=>M4(c,{...e,children:[ri("path",{d:"M9 15l6 -6"}),ri("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),ri("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),ri("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Ky}from"react/jsx-runtime";var Ef=e=>Ky(c,{...e,children:Ky("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 Lf,jsxs as k4}from"react/jsx-runtime";var Df=e=>k4(c,{...e,children:[Lf("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"}),Lf("path",{d:"M15 7a2 2 0 0 1 2 2"}),Lf("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as Xy,jsxs as T4}from"react/jsx-runtime";var Wa=e=>T4(c,{...e,children:[Xy("path",{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"}),Xy("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 Ff,jsxs as N4}from"react/jsx-runtime";var qa=e=>N4(c,{...e,children:[Ff("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),Ff("path",{d:"M9 15l-4.5 4.5"}),Ff("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as Yy}from"react/jsx-runtime";var It=e=>Yy(c,{...e,children:Yy("path",{d:"M7 4v16l13 -8z"})});import{jsx as Qy,jsxs as B4}from"react/jsx-runtime";var Af=e=>B4(c,{...e,children:[Qy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Qy("path",{d:"M9 8v8l8 -4z"})]});import{jsx as Zy,jsxs as R4}from"react/jsx-runtime";var an=e=>R4(c,{...e,children:[Zy("path",{d:"M12 5l0 14"}),Zy("path",{d:"M5 12l14 0"})]});import{jsx as Of,jsxs as E4}from"react/jsx-runtime";var Mo=e=>E4(c,{...e,children:[Of("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Of("path",{d:"M9 12h6"}),Of("path",{d:"M12 9v6"})]});import{jsx as _f,jsxs as L4}from"react/jsx-runtime";var Vf=e=>L4(c,{...e,children:[_f("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"}),_f("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),_f("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 Jy}from"react/jsx-runtime";var zf=e=>Jy(c,{...e,children:Jy("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as Hf,jsxs as D4}from"react/jsx-runtime";var Ka=e=>D4(c,{...e,children:[Hf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Hf("path",{d:"M12 16v.01"}),Hf("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as jy,jsxs as F4}from"react/jsx-runtime";var Uf=e=>F4(c,{...e,children:[jy("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"}),jy("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 ev,jsxs as A4}from"react/jsx-runtime";var Gf=e=>A4(c,{...e,children:[ev("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ev("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as tv}from"react/jsx-runtime";var $f=e=>tv(c,{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-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 ov}from"react/jsx-runtime";var Wf=e=>ov(c,{...e,children:ov("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 nv,jsxs as O4}from"react/jsx-runtime";var qf=e=>O4(c,{...e,children:[nv("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"}),nv("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as rv,jsxs as _4}from"react/jsx-runtime";var Kf=e=>_4(c,{...e,children:[rv("path",{d:"M15 14l4 -4l-4 -4"}),rv("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as av}from"react/jsx-runtime";var Xa=e=>av(c,{...e,children:av("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as lv,jsxs as V4}from"react/jsx-runtime";var Xf=e=>V4(c,{...e,children:[lv("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),lv("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as cv,jsxs as z4}from"react/jsx-runtime";var Yf=e=>z4(c,{...e,children:[cv("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),cv("path",{d:"M20 4v5h-5"})]});import{jsx as iv,jsxs as H4}from"react/jsx-runtime";var Qf=e=>H4(c,{...e,children:[iv("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),iv("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as ai,jsxs as U4}from"react/jsx-runtime";var Zf=e=>U4(c,{...e,children:[ai("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"}),ai("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"}),ai("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),ai("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as sv}from"react/jsx-runtime";var Ya=e=>sv(c,{...e,children:sv("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Jf,jsxs as G4}from"react/jsx-runtime";var jf=e=>G4(c,{...e,children:[Jf("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Jf("path",{d:"M3 4.001v5h5"}),Jf("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as eh,jsxs as $4}from"react/jsx-runtime";var th=e=>$4(c,{...e,children:[eh("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"}),eh("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),eh("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as pv,jsxs as W4}from"react/jsx-runtime";var oh=e=>W4(c,{...e,children:[pv("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"}),pv("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 dv,jsxs as q4}from"react/jsx-runtime";var nh=e=>q4(c,{...e,children:[dv("path",{d:"M12 3v9h9"}),dv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as rh,jsxs as K4}from"react/jsx-runtime";var ah=e=>K4(c,{...e,children:[rh("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),rh("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),rh("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 lh,jsxs as X4}from"react/jsx-runtime";var ch=e=>X4(c,{...e,children:[lh("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"}),lh("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),lh("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as ko,jsxs as Y4}from"react/jsx-runtime";var ih=e=>Y4(c,{...e,children:[ko("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),ko("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),ko("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),ko("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),ko("path",{d:"M5 11h1v2h-1z"}),ko("path",{d:"M10 11l0 2"}),ko("path",{d:"M14 11h1v2h-1z"}),ko("path",{d:"M19 11l0 2"})]});import{jsx as li,jsxs as Q4}from"react/jsx-runtime";var Qa=e=>Q4(c,{...e,children:[li("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),li("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),li("path",{d:"M8.6 8.6l10.4 10.4"}),li("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as mv,jsxs as Z4}from"react/jsx-runtime";var Ct=e=>Z4(c,{...e,children:[mv("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),mv("path",{d:"M21 21l-6 -6"})]});import{jsx as uv,jsxs as J4}from"react/jsx-runtime";var sh=e=>J4(c,{...e,children:[uv("path",{d:"M10 14l11 -11"}),uv("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 ci,jsxs as j4}from"react/jsx-runtime";var ph=e=>j4(c,{...e,children:[ci("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"}),ci("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"}),ci("path",{d:"M7 8l0 .01"}),ci("path",{d:"M7 16l0 .01"})]});import{jsx as fv,jsxs as ek}from"react/jsx-runtime";var Za=e=>ek(c,{...e,children:[fv("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"}),fv("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as eo,jsxs as tk}from"react/jsx-runtime";var dh=e=>tk(c,{...e,children:[eo("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),eo("path",{d:"M4 6l8 0"}),eo("path",{d:"M16 6l4 0"}),eo("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),eo("path",{d:"M4 12l2 0"}),eo("path",{d:"M10 12l10 0"}),eo("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),eo("path",{d:"M4 18l11 0"}),eo("path",{d:"M19 18l1 0"})]});import{jsx as Ja,jsxs as ok}from"react/jsx-runtime";var mh=e=>ok(c,{...e,children:[Ja("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Ja("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Ja("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Ja("path",{d:"M8.7 10.7l6.6 -3.4"}),Ja("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as hv,jsxs as nk}from"react/jsx-runtime";var uh=e=>nk(c,{...e,children:[hv("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"}),hv("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as fh,jsxs as rk}from"react/jsx-runtime";var hh=e=>rk(c,{...e,children:[fh("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"}),fh("path",{d:"M16 19h6"}),fh("path",{d:"M19 16v6"})]});import{jsx as gh,jsxs as ak}from"react/jsx-runtime";var bh=e=>ak(c,{...e,children:[gh("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"}),gh("path",{d:"M22 22l-5 -5"}),gh("path",{d:"M17 22l5 -5"})]});import{jsx as gv,jsxs as lk}from"react/jsx-runtime";var yh=e=>lk(c,{...e,children:[gv("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"}),gv("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as ii,jsxs as ck}from"react/jsx-runtime";var vh=e=>ck(c,{...e,children:[ii("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ii("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ii("path",{d:"M17 17h-11v-14h-2"}),ii("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as To,jsxs as ik}from"react/jsx-runtime";var Ih=e=>ik(c,{...e,children:[To("path",{d:"M5 9l4 0l0 -4"}),To("path",{d:"M3 3l6 6"}),To("path",{d:"M5 15l4 0l0 4"}),To("path",{d:"M3 21l6 -6"}),To("path",{d:"M19 9l-4 0l0 -4"}),To("path",{d:"M15 9l6 -6"}),To("path",{d:"M19 15l-4 0l0 4"}),To("path",{d:"M15 15l6 6"})]});import{jsx as si,jsxs as sk}from"react/jsx-runtime";var Ch=e=>sk(c,{...e,children:[si("path",{d:"M18 4l3 3l-3 3"}),si("path",{d:"M18 20l3 -3l-3 -3"}),si("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),si("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 bv,jsxs as pk}from"react/jsx-runtime";var xh=e=>pk(c,{...e,children:[bv("path",{d:"M4 5v14l12 -7z"}),bv("path",{d:"M20 5l0 14"})]});import{jsx as yv,jsxs as dk}from"react/jsx-runtime";var Ph=e=>dk(c,{...e,children:[yv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),yv("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as vv,jsxs as mk}from"react/jsx-runtime";var Sh=e=>mk(c,{...e,children:[vv("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"}),vv("path",{d:"M5 5 L19 19"})]});import{jsx as ln,jsxs as uk}from"react/jsx-runtime";var wh=e=>uk(c,{...e,children:[ln("path",{d:"M4 10l0 6"}),ln("path",{d:"M20 10l0 6"}),ln("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),ln("path",{d:"M8 3l1 2"}),ln("path",{d:"M16 3l-1 2"}),ln("path",{d:"M9 18l0 3"}),ln("path",{d:"M15 18l0 3"})]});import{jsx as Iv,jsxs as fk}from"react/jsx-runtime";var Mh=e=>fk(c,{...e,children:[Iv("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"}),Iv("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as Cv}from"react/jsx-runtime";var kh=e=>Cv(c,{...e,children:Cv("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 ja,jsxs as hk}from"react/jsx-runtime";var Th=e=>hk(c,{...e,children:[ja("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),ja("path",{d:"M3.6 9h16.8"}),ja("path",{d:"M3.6 15h16.8"}),ja("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),ja("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as xv}from"react/jsx-runtime";var Nh=e=>xv(c,{...e,children:xv("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 Bh,jsxs as gk}from"react/jsx-runtime";var Rh=e=>gk(c,{...e,children:[Bh("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"}),Bh("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Bh("path",{d:"M16.5 7.5v.01"})]});import{jsx as el,jsxs as bk}from"react/jsx-runtime";var Eh=e=>bk(c,{...e,children:[el("path",{d:"M8 11v5"}),el("path",{d:"M8 8v.01"}),el("path",{d:"M12 16v-5"}),el("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),el("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 Lh,jsxs as yk}from"react/jsx-runtime";var Dh=e=>yk(c,{...e,children:[Lh("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Lh("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),Lh("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 cn,jsxs as vk}from"react/jsx-runtime";var Fh=e=>vk(c,{...e,children:[cn("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"}),cn("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"}),cn("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"}),cn("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"}),cn("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"}),cn("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"}),cn("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"})]});import{jsx as tl,jsxs as Ik}from"react/jsx-runtime";var Ah=e=>Ik(c,{...e,children:[tl("path",{d:"M21 15l-1 -6l-2.5 6"}),tl("path",{d:"M9 15l1 -6"}),tl("path",{d:"M3 9h1v6h.5l2.5 -6"}),tl("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"}),tl("path",{d:"M18 14h2.7"})]});import{jsx as Pv,jsxs as Ck}from"react/jsx-runtime";var Oh=e=>Ck(c,{...e,children:[Pv("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),Pv("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as pi,jsxs as xk}from"react/jsx-runtime";var ol=e=>xk(c,{...e,children:[pi("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),pi("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),pi("path",{d:"M13.41 10.59l2.59 -2.59"}),pi("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as Sv}from"react/jsx-runtime";var _h=e=>Sv(c,{...e,children:Sv("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as wv}from"react/jsx-runtime";var nl=e=>wv(c,{...e,children:wv("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 Mv}from"react/jsx-runtime";var Vh=e=>Mv(c,{isFilled:!0,...e,children:Mv("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 kv}from"react/jsx-runtime";var zh=e=>kv(c,{isFilled:!0,...e,children:kv("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 Tv}from"react/jsx-runtime";var Hh=e=>Tv(c,{...e,children:Tv("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 Nv}from"react/jsx-runtime";var rl=e=>Nv(c,{...e,children:Nv("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 Bv,jsxs as Pk}from"react/jsx-runtime";var Uh=e=>Pk(c,{...e,children:[Bv("path",{d:"M5 12l14 0"}),Bv("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 Rv,jsxs as Sk}from"react/jsx-runtime";var Gh=e=>Sk(c,{...e,children:[Rv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Rv("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 Ev,jsxs as wk}from"react/jsx-runtime";var $h=e=>wk(c,{...e,children:[Ev("path",{d:"M7 10h14l-4 -4"}),Ev("path",{d:"M17 14h-14l4 4"})]});import{jsx as di,jsxs as Mk}from"react/jsx-runtime";var Wh=e=>Mk(c,{...e,children:[di("path",{d:"M16 3l4 4l-4 4"}),di("path",{d:"M10 7l10 0"}),di("path",{d:"M8 13l-4 4l4 4"}),di("path",{d:"M4 17l9 0"})]});import{jsx as qh,jsxs as kk}from"react/jsx-runtime";var Kh=e=>kk(c,{...e,children:[qh("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"}),qh("path",{d:"M3 10h18"}),qh("path",{d:"M10 3v18"})]});import{jsx as Lv,jsxs as Tk}from"react/jsx-runtime";var al=e=>Tk(c,{...e,children:[Lv("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Lv("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 br,jsxs as Nk}from"react/jsx-runtime";var Xh=e=>Nk(c,{...e,children:[br("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),br("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),br("path",{d:"M12 2l0 2"}),br("path",{d:"M12 20l0 2"}),br("path",{d:"M20 12l2 0"}),br("path",{d:"M2 12l2 0"})]});import{jsx as Yh,jsxs as Bk}from"react/jsx-runtime";var Qh=e=>Bk(c,{...e,children:[Yh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Yh("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Yh("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Zh,jsxs as Rk}from"react/jsx-runtime";var Jh=e=>Rk(c,{...e,children:[Zh("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),Zh("path",{d:"M9 11h6"}),Zh("path",{d:"M5 19h14"})]});import{jsx as Dv,jsxs as Ek}from"react/jsx-runtime";var jh=e=>Ek(c,{...e,children:[Dv("path",{d:"M6 4l12 0"}),Dv("path",{d:"M12 4l0 16"})]});import{jsx as mi,jsxs as Lk}from"react/jsx-runtime";var e0=e=>Lk(c,{...e,children:[mi("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),mi("path",{d:"M12.5 5.5l4 4"}),mi("path",{d:"M4.5 13.5l4 4"}),mi("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as Fv}from"react/jsx-runtime";var t0=e=>Fv(c,{...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 Av}from"react/jsx-runtime";var o0=e=>Av(c,{...e,children:Av("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 Ov,jsxs as Dk}from"react/jsx-runtime";var n0=e=>Dk(c,{isFilled:!0,...e,children:[Ov("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"}),Ov("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 _v,jsxs as Fk}from"react/jsx-runtime";var r0=e=>Fk(c,{...e,children:[_v("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),_v("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 yr,jsxs as Ak}from"react/jsx-runtime";var a0=e=>Ak(c,{...e,children:[yr("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),yr("path",{d:"M4 6.371h7"}),yr("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),yr("path",{d:"M12 20l4 -9l4 9"}),yr("path",{d:"M19.1 18h-6.2"}),yr("path",{d:"M6.694 3l.793 .582"})]});import{jsx as ll,jsxs as Ok}from"react/jsx-runtime";var dt=e=>Ok(c,{...e,children:[ll("path",{d:"M4 7l16 0"}),ll("path",{d:"M10 11l0 6"}),ll("path",{d:"M14 11l0 6"}),ll("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),ll("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as Vv,jsxs as _k}from"react/jsx-runtime";var l0=e=>_k(c,{...e,children:[Vv("path",{d:"M3 17l6 -6l4 4l8 -8"}),Vv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as zv,jsxs as Vk}from"react/jsx-runtime";var c0=e=>Vk(c,{...e,children:[zv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),zv("path",{d:"M5 19h14"})]});import{jsx as Hv,jsxs as zk}from"react/jsx-runtime";var i0=e=>zk(c,{...e,children:[Hv("path",{d:"M9 14l-4 -4l4 -4"}),Hv("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as s0,jsxs as Hk}from"react/jsx-runtime";var p0=e=>Hk(c,{...e,children:[s0("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"}),s0("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),s0("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as d0,jsxs as Uk}from"react/jsx-runtime";var sn=e=>Uk(c,{...e,children:[d0("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"}),d0("path",{d:"M9 15l3 -3l3 3"}),d0("path",{d:"M12 12l0 9"})]});import{jsx as Uv,jsxs as Gk}from"react/jsx-runtime";var cl=e=>Gk(c,{...e,children:[Uv("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Uv("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as m0,jsxs as $k}from"react/jsx-runtime";var u0=e=>$k(c,{...e,children:[m0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),m0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),m0("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as ui,jsxs as Wk}from"react/jsx-runtime";var f0=e=>Wk(c,{...e,children:[ui("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),ui("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),ui("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),ui("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as h0,jsxs as qk}from"react/jsx-runtime";var g0=e=>qk(c,{...e,children:[h0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),h0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),h0("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 fi,jsxs as Kk}from"react/jsx-runtime";var b0=e=>Kk(c,{...e,children:[fi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),fi("path",{d:"M16 19h6"}),fi("path",{d:"M19 16v6"}),fi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as hi,jsxs as Xk}from"react/jsx-runtime";var y0=e=>Xk(c,{...e,children:[hi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),hi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),hi("path",{d:"M16 22l5 -5"}),hi("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as gi,jsxs as Yk}from"react/jsx-runtime";var v0=e=>Yk(c,{...e,children:[gi("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),gi("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),gi("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),gi("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as I0,jsxs as Qk}from"react/jsx-runtime";var C0=e=>Qk(c,{...e,children:[I0("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),I0("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),I0("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 il,jsxs as Zk}from"react/jsx-runtime";var x0=e=>Zk(c,{...e,children:[il("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),il("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),il("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),il("path",{d:"M19 22v-6"}),il("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as Gv,jsxs as Jk}from"react/jsx-runtime";var P0=e=>Jk(c,{...e,children:[Gv("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"}),Gv("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 jk}from"react/jsx-runtime";var w0=e=>jk(c,{...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 M0,jsxs as e3}from"react/jsx-runtime";var sl=e=>e3(c,{...e,children:[M0("path",{d:"M15 8a5 5 0 0 1 0 8"}),M0("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),M0("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 $v,jsxs as t3}from"react/jsx-runtime";var pl=e=>t3(c,{...e,children:[$v("path",{d:"M15 8a5 5 0 0 1 0 8"}),$v("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 Wv,jsxs as o3}from"react/jsx-runtime";var dl=e=>o3(c,{...e,children:[Wv("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"}),Wv("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as qv}from"react/jsx-runtime";var k0=e=>qv(c,{...e,children:qv("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 Kv,jsxs as n3}from"react/jsx-runtime";var He=e=>n3(c,{...e,children:[Kv("path",{d:"M18 6l-12 12"}),Kv("path",{d:"M6 6l12 12"})]});import{jsx as Xv,jsxs as r3}from"react/jsx-runtime";var T0=e=>r3(c,{...e,children:[Xv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Xv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Yv}from"react/jsx-runtime";var N0=e=>Yv(c,{isFilled:!0,...e,children:Yv("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 Qv,jsxs as a3}from"react/jsx-runtime";var B0=e=>a3(c,{...e,children:[Qv("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"}),Qv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as bi,jsxs as l3}from"react/jsx-runtime";var R0=e=>l3(c,{...e,children:[bi("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),bi("path",{d:"M7 10l6 0"}),bi("path",{d:"M10 7l0 6"}),bi("path",{d:"M21 21l-6 -6"})]});import{jsx as E0,jsxs as c3}from"react/jsx-runtime";var L0=e=>c3(c,{...e,children:[E0("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),E0("path",{d:"M7 10l6 0"}),E0("path",{d:"M21 21l-6 -6"})]});var Nt=(h=>(h["48AlertFeatured"]="48AlertFeatured",h["48SuccessFeatured"]="48SuccessFeatured",h.AlertCircle="AlertCircle",h.AlertOctagon="AlertOctagon",h.AlertTriangle="AlertTriangle",h.Apps="Apps",h.ArrowBarDown="ArrowBarDown",h.ArrowBarLeft="ArrowBarLeft",h.ArrowBarRight="ArrowBarRight",h.ArrowBarToDown="ArrowBarToDown",h.ArrowBarToLeft="ArrowBarToLeft",h.ArrowBarToRight="ArrowBarToRight",h.ArrowBarToUp="ArrowBarToUp",h.ArrowBarUp="ArrowBarUp",h.Archive="Archive",h.ArrowDown="ArrowDown",h.ArrowDownLeft="ArrowDownLeft",h.ArrowDownNarrow="ArrowDownNarrow",h.ArrowDownRight="ArrowDownRight",h.ArrowLeft="ArrowLeft",h.ArrowLeftNarrow="ArrowLeftNarrow",h.ArrowRight="ArrowRight",h.ArrowRightNarrow="ArrowRightNarrow",h.ArrowUp="ArrowUp",h.ArrowUpLeft="ArrowUpLeft",h.ArrowUpNarrow="ArrowUpNarrow",h.ArrowUpRight="ArrowUpRight",h.Attachment="Attachment",h.BadgeHd="BadgeHd",h.BarChart="BarChart",h.BarChartSquare="BarChartSquare",h.Bell="Bell",h.Bold="Bold",h.Bookmark="Bookmark",h.BookmarkCheck="BookmarkCheck",h.BookmarkCheckFill="BookmarkCheckFill",h.BookmarkFill="BookmarkFill",h.BookmarkMinus="BookmarkMinus",h.BookmarkPlus="BookmarkPlus",h.BookmarkX="BookmarkX",h.BookOpen="BookOpen",h.BoxLines="BoxLines",h.BoxText="BoxText",h.BracketsCheck="BracketsCheck",h.BracketsEllipses="BracketsEllipses",h.BrickWall="BrickWall",h.Briefcase="Briefcase",h.Building="Building",h.Calculator="Calculator",h.Calendar="Calendar",h.Certificate="Certificate",h.Check="Check",h.CheckCircle="CheckCircle",h.CheckCircleBroken="CheckCircleBroken",h.CheckFill="CheckFill",h.CheckVerified="CheckVerified",h.CheckVerifiedFill="CheckVerifiedFill",h.ChevronDown="ChevronDown",h.ChevronDownDouble="ChevronDownDouble",h.ChevronDownLeft="ChevronDownLeft",h.ChevronDownLeftDouble="ChevronDownLeftDouble",h.ChevronDownRight="ChevronDownRight",h.ChevronDownRightDouble="ChevronDownRightDouble",h.ChevronLeft="ChevronLeft",h.ChevronLeftDouble="ChevronLeftDouble",h.ChevronRight="ChevronRight",h.ChevronRightDouble="ChevronRightDouble",h.ChevronSelectorVertical="ChevronSelectorVertical",h.ChevronUp="ChevronUp",h.ChevronUpDouble="ChevronUpDouble",h.ChevronUpLeft="ChevronUpLeft",h.ChevronUpLeftDouble="ChevronUpLeftDouble",h.ChevronUpRight="ChevronUpRight",h.ChevronUpRightDouble="ChevronUpRightDouble",h.Click="Click",h.Clock="Clock",h.ClockFastForward="ClockFastForward",h.ClockPlay="ClockPlay",h.ClockRewind="ClockRewind",h.Clone="Clone",h.ClosedCaption="ClosedCaption",h.Code="Code",h.CodeBrowser="CodeBrowser",h.CodeCircle="CodeCircle",h.Colors="Colors",h.ColumnEdit="ColumnEdit",h.Copy="Copy",h.Copy2="Copy2",h.CopyCheck="CopyCheck",h.CreditCard="CreditCard",h.Cube="Cube",h.CubeOutline="CubeOutline",h.CursorBox="CursorBox",h.Dataflow="Dataflow",h.Dataflow2="Dataflow2",h.Dataflow3="Dataflow3",h.DistributeHorizontal="DistributeHorizontal",h.Dollar="Dollar",h.DollarCircle="DollarCircle",h.Dot="Dot",h.DotFill="DotFill",h.DotsGrid="DotsGrid",h.DotsHorizontal="DotsHorizontal",h.DotsVertical="DotsVertical",h.Download="Download",h.Edit="Edit",h.Editable="Editable",h.Expand="Expand",h.ExternalLink="ExternalLink",h.ExternalLink2="ExternalLink2",h.Eye="Eye",h.EyeHidden="EyeHidden",h.EyeHidden2="EyeHidden2",h.FaceAngry="FaceAngry",h.FaceLaugh="FaceLaugh",h.FaceSmile="FaceSmile",h.File="File",h.FileCheck="FileCheck",h.FileCsv="FileCsv",h.FileDownload="FileDownload",h.FileJson="FileJson",h.FileList="FileList",h.FileMusic="FileMusic",h.FilePdf="FilePdf",h.Files="Files",h.FileSpreadsheet="FileSpreadsheet",h.FileText="FileText",h.FileUpload="FileUpload",h.FileXls="FileXls",h.FileXlsx="FileXlsx",h.FileZip="FileZip",h.Filter="Filter",h.Filter2="Filter2",h.Flag="Flag",h.Flag2="Flag2",h.FlagFill="FlagFill",h.Focus="Focus",h.Folder="Folder",h.FolderExport="FolderExport",h.FolderImport="FolderImport",h.GraduationCap="GraduationCap",h.GripVertical="GripVertical",h.Hand="Hand",h.HandShield="HandShield",h.Hash="Hash",h.HeadsetMic="HeadsetMic",h.Heart="Heart",h.HeartFill="HeartFill",h.House="House",h.HouseLine="HouseLine",h.Image="Image",h.Image2="Image2",h.ImageCheck="ImageCheck",h.ImageOff="ImageOff",h.Import="Import",h.Inbox="Inbox",h.InfoCircle="InfoCircle",h.InfoHexagon="InfoHexagon",h.Italic="Italic",h.LayersMultiple="LayersMultiple",h.LayersSingle="LayersSingle",h.Layout="Layout",h.Layout2="Layout2",h.LayoutColumns="LayoutColumns",h.LayoutCustom="LayoutCustom",h.LayoutStuffed="LayoutStuffed",h.LayoutTile="LayoutTile",h.LifeBuoy="LifeBuoy",h.Lightbulb="Lightbulb",h.Lightning="Lightning",h.LightningFast="LightningFast",h.LineChart="LineChart",h.LineChartBar="LineChartBar",h.LineChartBreakoutSquare="LineChartBreakoutSquare",h.LineChartUp="LineChartUp",h.Lines="Lines",h.LinesCheck="LinesCheck",h.LinesPlay="LinesPlay",h.Link="Link",h.Link2="Link2",h.LinkOff="LinkOff",h.ListBullet="ListBullet",h.ListOrder="ListOrder",h.Lock="Lock",h.LockFill="LockFill",h.LogIn="LogIn",h.LogOut="LogOut",h.LogOut2="LogOut2",h.MagicWand="MagicWand",h.Mail="Mail",h.MailOpen="MailOpen",h.MapPin="MapPin",h.Maximize="Maximize",h.Maximize2="Maximize2",h.MessageCircle="MessageCircle",h.MessageSquare="MessageSquare",h.MessageSquare2="MessageSquare2",h.MessageXSquare="MessageXSquare",h.Microphone="Microphone",h.Minimize="Minimize",h.Minimize2="Minimize2",h.MinusCircle="MinusCircle",h.Mobile="Mobile",h.Monitor="Monitor",h.Monitor2="Monitor2",h.Moon="Moon",h.MoonCircle="MoonCircle",h.Movie="Movie",h.NavigationPointer="NavigationPointer",h.NotificationBox="NotificationBox",h.Package="Package",h.Palette="Palette",h.PasscodeLock="PasscodeLock",h.Pause="Pause",h.PauseCircle="PauseCircle",h.PCSetup="PCSetup",h.Pen="Pen",h.PercentageCircle="PercentageCircle",h.Perspective="Perspective",h.PhoneCall="PhoneCall",h.PictureInPicture="PictureInPicture",h.Pin="Pin",h.Play="Play",h.PlayCircle="PlayCircle",h.Plus="Plus",h.PlusCircle="PlusCircle",h.Printer="Printer",h.Pulse="Pulse",h.QuestionCircle="QuestionCircle",h.Quote="Quote",h.RadioButton="RadioButton",h.RadioButtonFill="RadioButtonFill",h.Receipt="Receipt",h.ReceiptCheck="ReceiptCheck",h.Redo="Redo",h.Refresh="Refresh",h.Refresh2="Refresh2",h.Refresh3="Refresh3",h.Repeat="Repeat",h.Replace="Replace",h.Replay="Replay",h.Restore="Restore",h.Rocket="Rocket",h.RoundChart="RoundChart",h.RoundChart2="RoundChart2",h.Route="Route",h.Save="Save",h.ScanDots="ScanDots",h.Scissors="Scissors",h.Search="Search",h.Send="Send",h.Server="Server",h.Settings="Settings",h.Settings2="Settings2",h.Share="Share",h.ShieldLightning="ShieldLightning",h.ShieldPlus="ShieldPlus",h.ShieldRemove="ShieldRemove",h.ShoppingBag="ShoppingBag",h.ShoppingCart="ShoppingCart",h.Shrink="Shrink",h.Shuffle="Shuffle",h.SkipForward="SkipForward",h.SlashCircle="SlashCircle",h.SlashOctagon="SlashOctagon",h.SocialAndroid="SocialAndroid",h.SocialApple="SocialApple",h.SocialGithub="SocialGithub",h.SocialGlobe="SocialGlobe",h.SocialGoogle="SocialGoogle",h.SocialInstagram="SocialInstagram",h.SocialLinkedin="SocialLinkedin",h.SocialMastercard="SocialMastercard",h.SocialReact="SocialReact",h.SocialVisa="SocialVisa",h.SocialX="SocialX",h.Speedometer="Speedometer",h.Stairs="Stairs",h.Star="Star",h.StarFill="StarFill",h.StarHalf="StarHalf",h.Stars="Stars",h.Stop="Stop",h.Strikethrough="Strikethrough",h.Sun="Sun",h.Swap="Swap",h.SwitchHorizontal="SwitchHorizontal",h.Table="Table",h.Tag="Tag",h.Target="Target",h.Target2="Target2",h.TextFormat="TextFormat",h.TextFormat2="TextFormat2",h.TextHighlight="TextHighlight",h.ThumbsDown="ThumbsDown",h.ThumbsUp="ThumbsUp",h.ThumbsUpFill="ThumbsUpFill",h.Toggle="Toggle",h.Translate="Translate",h.Trash="Trash",h.Trending="Trending",h.Underline="Underline",h.Undo="Undo",h.Unlock="Unlock",h.UploadCloud="UploadCloud",h.User="User",h.UserCheck="UserCheck",h.UserDollar="UserDollar",h.UserEdit="UserEdit",h.UserPlus="UserPlus",h.UserRight="UserRight",h.Users="Users",h.UserSquare="UserSquare",h.UsersUp="UsersUp",h.UserVoice="UserVoice",h.Video="Video",h.VideoChat="VideoChat",h.Volume="Volume",h.VolumeDown="VolumeDown",h.VolumeMute="VolumeMute",h.Wrench="Wrench",h.X="X",h.XCircle="XCircle",h.XCircleFill="XCircleFill",h.XSquare="XSquare",h.ZoomIn="ZoomIn",h.ZoomOut="ZoomOut",h))(Nt||{});import{jsx as g}from"react/jsx-runtime";function Ee({name:e,...t}){switch(e){case"48AlertFeatured":return g(bp,{...t});case"48SuccessFeatured":return g(yp,{...t});case"AlertCircle":return g(Jo,{...t});case"AlertOctagon":return g(Ip,{...t});case"AlertTriangle":return g(xp,{...t});case"ArrowBarDown":return g(Mp,{...t});case"ArrowBarLeft":return g(kp,{...t});case"ArrowBarRight":return g(Tp,{...t});case"ArrowBarToDown":return g(Np,{...t});case"ArrowBarToLeft":return g(Bp,{...t});case"ArrowBarToRight":return g(Rp,{...t});case"ArrowBarToUp":return g(Ep,{...t});case"ArrowBarUp":return g(Lp,{...t});case"Apps":return g(Pp,{...t});case"Archive":return g(wp,{...t});case"ArrowDown":return g(Fp,{...t});case"ArrowDownLeft":return g(Ap,{...t});case"ArrowDownNarrow":return g(_p,{...t});case"ArrowDownRight":return g(Vp,{...t});case"ArrowLeft":return g(Hp,{...t});case"ArrowLeftNarrow":return g(Gp,{...t});case"ArrowRight":return g(Wp,{...t});case"ArrowRightNarrow":return g(Kp,{...t});case"ArrowUp":return g(Yp,{...t});case"ArrowUpLeft":return g(Qp,{...t});case"ArrowUpNarrow":return g(Jp,{...t});case"ArrowUpRight":return g(jp,{...t});case"Attachment":return g(ed,{...t});case"BadgeHd":return g(sa,{...t});case"BarChart":return g(td,{...t});case"BarChartSquare":return g(od,{...t});case"Bell":return g(nd,{...t});case"Bold":return g(rd,{...t});case"BookOpen":return g(pd,{...t});case"Bookmark":return g(ad,{...t});case"BookmarkCheck":return g(pp,{...t});case"BookmarkCheckFill":return g(dp,{...t});case"BookmarkFill":return g(ld,{...t});case"BookmarkMinus":return g(cd,{...t});case"BookmarkPlus":return g(up,{...t});case"BookmarkX":return g(sd,{...t});case"BoxLines":return g(dd,{...t});case"BoxText":return g(ud,{...t});case"BracketsCheck":return g(hd,{...t});case"BracketsEllipses":return g(gd,{...t});case"BrickWall":return g(bd,{...t});case"Briefcase":return g(yd,{...t});case"Building":return g(fp,{...t});case"Calculator":return g(vd,{...t});case"Calendar":return g(ua,{...t});case"Certificate":return g(Id,{...t});case"Check":return g(Yt,{...t});case"CheckCircle":return g(jo,{...t});case"CheckCircleBroken":return g(Cd,{...t});case"CheckFill":return g(xd,{...t});case"CheckVerified":return g(Pd,{...t});case"CheckVerifiedFill":return g(Sd,{...t});case"ChevronDown":return g(en,{...t});case"ChevronDownDouble":return g(wd,{...t});case"ChevronDownLeft":return g(Md,{...t});case"ChevronDownLeftDouble":return g(kd,{...t});case"ChevronDownRight":return g(Td,{...t});case"ChevronDownRightDouble":return g(Nd,{...t});case"ChevronLeft":return g(Qt,{...t});case"ChevronLeftDouble":return g(Bd,{...t});case"ChevronRight":return g(ct,{...t});case"ChevronRightDouble":return g(fa,{...t});case"ChevronSelectorVertical":return g(Rd,{...t});case"ChevronUp":return g(Zt,{...t});case"ChevronUpDouble":return g(Ed,{...t});case"ChevronUpLeft":return g(Ld,{...t});case"ChevronUpLeftDouble":return g(Dd,{...t});case"ChevronUpRight":return g(Fd,{...t});case"ChevronUpRightDouble":return g(Ad,{...t});case"Click":return g(Od,{...t});case"Clock":return g(ha,{...t});case"ClockFastForward":return g(_d,{...t});case"ClockPlay":return g(zd,{...t});case"ClockRewind":return g(Hd,{...t});case"Clone":return g(Ud,{...t});case"ClosedCaption":return g(ba,{...t});case"Code":return g(Wd,{...t});case"CodeBrowser":return g(qd,{...t});case"CodeCircle":return g(Xd,{...t});case"Colors":return g(Qd,{...t});case"ColumnEdit":return g(hp,{...t});case"Copy":return g(Zd,{...t});case"Copy2":return g(Jd,{...t});case"CopyCheck":return g(em,{...t});case"Files":return g(Vm,{...t});case"CreditCard":return g(tm,{...t});case"Cube":return g(om,{...t});case"CubeOutline":return g(nm,{...t});case"CursorBox":return g(ya,{...t});case"Dataflow":return g(rm,{...t});case"Dataflow2":return g(am,{...t});case"Dataflow3":return g(lm,{...t});case"DistributeHorizontal":return g(im,{...t});case"Dollar":return g(sm,{...t});case"DollarCircle":return g(dm,{...t});case"Dot":return g(mm,{...t});case"DotFill":return g(um,{...t});case"DotsGrid":return g(fm,{...t});case"DotsHorizontal":return g(Ia,{...t});case"DotsVertical":return g(Co,{...t});case"Download":return g(ym,{...t});case"Edit":return g(vm,{...t});case"Editable":return g(Cm,{...t});case"Expand":return g(xm,{...t});case"ExternalLink":return g(Sm,{...t});case"ExternalLink2":return g(Mm,{...t});case"Eye":return g(km,{...t});case"EyeHidden":return g(Nm,{...t});case"EyeHidden2":return g(Bm,{...t});case"FaceAngry":return g(Rm,{...t});case"FaceLaugh":return g(Em,{...t});case"FaceSmile":return g(Lm,{...t});case"File":return g(on,{...t});case"FileCheck":return g(Fm,{...t});case"FileCsv":return g(Pa,{...t});case"FileDownload":return g(Am,{...t});case"FileJson":return g(Sa,{...t});case"FileList":return g(Om,{...t});case"FileMusic":return g(pt,{...t});case"FilePdf":return g(nn,{...t});case"FileSpreadsheet":return g(Ma,{...t});case"FileText":return g(jt,{...t});case"FileUpload":return g(zm,{...t});case"FileXls":return g(Ta,{...t});case"FileXlsx":return g(Na,{...t});case"FileZip":return g(Tt,{...t});case"Filter":return g(Hm,{...t});case"Filter2":return g(Ba,{...t});case"Flag":return g(Gm,{...t});case"Flag2":return g($m,{...t});case"FlagFill":return g(Wm,{...t});case"Focus":return g(qm,{...t});case"Folder":return g(Km,{...t});case"FolderExport":return g(Xm,{...t});case"FolderImport":return g(Ym,{...t});case"GraduationCap":return g(Qm,{...t});case"GripVertical":return g(Zm,{...t});case"Hand":return g(Jm,{...t});case"HandShield":return g(jm,{...t});case"Hash":return g(eu,{...t});case"HeadsetMic":return g(tu,{...t});case"Heart":return g(ou,{...t});case"HeartFill":return g(nu,{...t});case"House":return g(au,{...t});case"HouseLine":return g(Ea,{...t});case"Image":return g(We,{...t});case"Image2":return g(lu,{...t});case"ImageCheck":return g(cu,{...t});case"ImageOff":return g(iu,{...t});case"Import":return g(su,{...t});case"Inbox":return g(pu,{...t});case"InfoCircle":return g(mu,{...t});case"InfoHexagon":return g(fu,{...t});case"Italic":return g(gu,{...t});case"LayersMultiple":return g(yu,{...t});case"LayersSingle":return g(vu,{...t});case"Layout":return g(Iu,{...t});case"Layout2":return g(xu,{...t});case"LayoutColumns":return g(Pu,{...t});case"LayoutCustom":return g(Su,{...t});case"LayoutStuffed":return g(Mu,{...t});case"LayoutTile":return g(ku,{...t});case"LifeBuoy":return g(Tu,{...t});case"Lightbulb":return g(Bu,{...t});case"Lightning":return g(Ru,{...t});case"LightningFast":return g(Eu,{...t});case"LineChartBar":return g(Du,{...t});case"LineChartBreakoutSquare":return g(Fu,{...t});case"LineChart":return g(Lu,{...t});case"LineChartUp":return g(Ou,{...t});case"Lines":return g(_u,{...t});case"LinesCheck":return g(Vu,{...t});case"LinesPlay":return g(zu,{...t});case"Link":return g(Uu,{...t});case"Link2":return g(Gu,{...t});case"LinkOff":return g($u,{...t});case"ListBullet":return g(Wu,{...t});case"ListOrder":return g(qu,{...t});case"Lock":return g(Xu,{...t});case"LockFill":return g(Yu,{...t});case"LogIn":return g(Zu,{...t});case"LogOut":return g(ju,{...t});case"LogOut2":return g(tf,{...t});case"MagicWand":return g(of,{...t});case"Mail":return g(nf,{...t});case"MailOpen":return g(rf,{...t});case"MapPin":return g(af,{...t});case"Maximize":return g(_a,{...t});case"Maximize2":return g(lf,{...t});case"MessageCircle":return g(cf,{...t});case"MessageSquare":return g(rn,{...t});case"MessageSquare2":return g(pf,{...t});case"MessageXSquare":return g(df,{...t});case"Microphone":return g(za,{...t});case"Minimize":return g(Ha,{...t});case"Minimize2":return g(mf,{...t});case"MinusCircle":return g(uf,{...t});case"Mobile":return g(hf,{...t});case"Monitor":return g(gf,{...t});case"Monitor2":return g(bf,{...t});case"Moon":return g(yf,{...t});case"MoonCircle":return g(vf,{...t});case"Movie":return g(yt,{...t});case"NavigationPointer":return g(If,{...t});case"NotificationBox":return g(Cf,{...t});case"Package":return g(xf,{...t});case"Palette":return g(Pf,{...t});case"PasscodeLock":return g(Sf,{...t});case"Pause":return g(vt,{...t});case"PauseCircle":return g(Mf,{...t});case"PCSetup":return g(Tf,{...t});case"Pen":return g(Bf,{...t});case"PercentageCircle":return g(Rf,{...t});case"Perspective":return g(Ef,{...t});case"PhoneCall":return g(Df,{...t});case"PictureInPicture":return g(Wa,{...t});case"Pin":return g(qa,{...t});case"Play":return g(It,{...t});case"PlayCircle":return g(Af,{...t});case"Plus":return g(an,{...t});case"PlusCircle":return g(Mo,{...t});case"Printer":return g(Vf,{...t});case"Pulse":return g(zf,{...t});case"QuestionCircle":return g(Ka,{...t});case"Quote":return g(Uf,{...t});case"RadioButton":return g(Gf,{...t});case"RadioButtonFill":return g($f,{...t});case"Receipt":return g(Wf,{...t});case"ReceiptCheck":return g(qf,{...t});case"Redo":return g(Kf,{...t});case"Refresh":return g(Xa,{...t});case"Refresh2":return g(Xf,{...t});case"Refresh3":return g(Yf,{...t});case"Repeat":return g(Qf,{...t});case"Replace":return g(Zf,{...t});case"Replay":return g(Ya,{...t});case"Restore":return g(jf,{...t});case"Rocket":return g(th,{...t});case"RoundChart":return g(oh,{...t});case"RoundChart2":return g(nh,{...t});case"Route":return g(ah,{...t});case"Save":return g(ch,{...t});case"ScanDots":return g(ih,{...t});case"Scissors":return g(Qa,{...t});case"Search":return g(Ct,{...t});case"Send":return g(sh,{...t});case"Server":return g(ph,{...t});case"Settings":return g(Za,{...t});case"Settings2":return g(dh,{...t});case"Share":return g(mh,{...t});case"ShieldLightning":return g(uh,{...t});case"ShieldPlus":return g(hh,{...t});case"ShieldRemove":return g(bh,{...t});case"ShoppingBag":return g(yh,{...t});case"ShoppingCart":return g(vh,{...t});case"Shrink":return g(Ih,{...t});case"Shuffle":return g(Ch,{...t});case"SkipForward":return g(xh,{...t});case"SlashCircle":return g(Ph,{...t});case"SlashOctagon":return g(Sh,{...t});case"SocialAndroid":return g(wh,{...t});case"SocialApple":return g(Mh,{...t});case"SocialGithub":return g(kh,{...t});case"SocialGlobe":return g(Th,{...t});case"SocialGoogle":return g(Nh,{...t});case"SocialInstagram":return g(Rh,{...t});case"SocialLinkedin":return g(Eh,{...t});case"SocialMastercard":return g(Dh,{...t});case"SocialReact":return g(Fh,{...t});case"SocialVisa":return g(Ah,{...t});case"SocialX":return g(Oh,{...t});case"Speedometer":return g(ol,{...t});case"Stairs":return g(_h,{...t});case"Star":return g(nl,{...t});case"StarFill":return g(Vh,{...t});case"StarHalf":return g(zh,{...t});case"Stars":return g(Hh,{...t});case"Stop":return g(rl,{...t});case"Strikethrough":return g(Uh,{...t});case"Sun":return g(Gh,{...t});case"Swap":return g($h,{...t});case"SwitchHorizontal":return g(Wh,{...t});case"Table":return g(Kh,{...t});case"Tag":return g(al,{...t});case"Target":return g(Xh,{...t});case"Target2":return g(Qh,{...t});case"TextFormat":return g(Jh,{...t});case"TextFormat2":return g(jh,{...t});case"TextHighlight":return g(e0,{...t});case"ThumbsDown":return g(t0,{...t});case"ThumbsUp":return g(o0,{...t});case"ThumbsUpFill":return g(n0,{...t});case"Toggle":return g(r0,{...t});case"Translate":return g(a0,{...t});case"Trash":return g(dt,{...t});case"Trending":return g(l0,{...t});case"Underline":return g(c0,{...t});case"Undo":return g(i0,{...t});case"Unlock":return g(p0,{...t});case"UploadCloud":return g(sn,{...t});case"User":return g(cl,{...t});case"UserCheck":return g(u0,{...t});case"UserDollar":return g(f0,{...t});case"UserEdit":return g(g0,{...t});case"UserPlus":return g(b0,{...t});case"UserRight":return g(y0,{...t});case"UserSquare":return g(C0,{...t});case"Users":return g(v0,{...t});case"UsersUp":return g(x0,{...t});case"UserVoice":return g(gp,{...t});case"Video":return g(P0,{...t});case"VideoChat":return g(w0,{...t});case"Volume":return g(sl,{...t});case"VolumeDown":return g(pl,{...t});case"VolumeMute":return g(dl,{...t});case"Wrench":return g(k0,{...t});case"X":return g(He,{...t});case"XCircle":return g(T0,{...t});case"XCircleFill":return g(N0,{...t});case"XSquare":return g(B0,{...t});case"ZoomIn":return g(R0,{...t});case"ZoomOut":return g(L0,{...t});default:return null}}var Zv=on,Jv={png:We,jpg:We,jpeg:We,gif:We,bmp:We,webp:We,svg:We,avif:We,heic:We,ico:We,tif:We,tiff:We,mp4:yt,mov:yt,webm:yt,avi:yt,mkv:yt,m4v:yt,ogv:yt,mp3:pt,wav:pt,ogg:pt,oga:pt,m4a:pt,aac:pt,flac:pt,weba:pt,pdf:nn,doc:jt,docx:jt,txt:jt,rtf:jt,odt:jt,json:Sa,csv:Pa,xls:Ta,xlsx:Na,ods:Ma,zip:Tt,rar:Tt,"7z":Tt,tar:Tt,gz:Tt,tgz:Tt};var D0=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&Jv[t]||Zv};import{cn as F0,ColorHelpers as i3}from"@cleen/ui-core";import{forwardRef as s3}from"react";import{Fragment as d3,jsx as ml,jsxs as m3}from"react/jsx-runtime";var p3=s3(function({iconName:t,iconSrc:o,icon:n,iconSize:l=20,header:r,color:a,children:i,classNames:p,styles:s,...d},f){let m=i3.getComputedColor(a);return ml(Pe,{ref:f,classNames:{...p,header:{...p?.header,title:F0("cleen-flex cleen-gap-4",p?.header?.title)}},header:{...r,title:m3(d3,{children:[ml("div",{className:F0("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",p?.iconHolder),style:{...m&&{backgroundColor:aa(m,.85),color:m,borderColor:"transparent"},...s?.iconHolder},children:n||(t?ml(Ee,{name:t,className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):o?ml("img",{src:o,alt:"Icon",className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):null)}),r?.title]})},color:a,...d,children:i&&ml("div",{className:F0("cleen-flex-1",p?.content),style:s?.content,children:i})})});import{cn as vr}from"@cleen/ui-core";import{forwardRef as u3,useMemo as f3}from"react";import{jsx as ul}from"react/jsx-runtime";var h3=u3(function({media:t,header:o,color:n,children:l,classNames:r,styles:a,...i},p){let s=f3(()=>{switch(t?.type){case"image":return ul("img",{...t,alt:t.alt??"Card media",className:vr("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:a?.media?.content});case"video":return ul("video",{playsInline:!0,controls:!0,...t,className:vr("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:a?.media?.content});case"iframe":return ul("iframe",{...t,title:t.title??"Card iframe",className:vr("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:a?.media?.content});default:return null}},[t,r?.media,a?.media]);return ul(Pe,{ref:p,color:n,classNames:{...r,container:vr("cleen-pt-0",r?.container),header:{...r?.header,content:vr("cleen-p-0",r?.header?.content)}},header:{...o,...s&&{content:ul("div",{className:vr("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",r?.media?.container),style:a?.media?.container,children:s})}},...i,children:l})});import{cn as fl}from"@cleen/ui-core";import{jsx as yi,jsxs as g3}from"react/jsx-runtime";var ie=({className:e,classNames:t,style:o,styles:n,infoMessage:l,errorMessage:r,subtitle:a,...i})=>yi("div",{className:fl("cleen",e),style:o,children:g3("div",{className:fl(t?.container),style:n?.container,...i,children:[l&&yi("div",{className:fl("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:n?.infoMessage,role:"note",children:l}),r&&yi("div",{className:fl("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:n?.errorMessage,role:"alert",children:r}),a&&yi("div",{className:fl("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:n?.subtitle,children:a})]})});import{cn as hl}from"@cleen/ui-core";import{jsx as gl,jsxs as b3}from"react/jsx-runtime";var de=({required:e=!1,tooltip:t,children:o,className:n,classNames:l,style:r,styles:a,...i})=>gl("div",{className:hl("cleen",n),style:r,children:b3("label",{...i,className:hl("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:a?.container,children:[gl("div",{className:hl({"cleen-flex-1":!e&&!t},l?.label),style:a?.label,children:o}),e&&gl("span",{className:hl("cleen-text-primary",l?.required),style:a?.required,children:"*"}),t&&gl(Ne,{hasArrow:!0,placement:"top",label:t,color:"rgb(var(--cleen-neutral-600))",...l?.tooltip,style:a?.tooltip?.style,styles:{...a?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...a?.tooltip?.styles?.labelContainer}},children:gl(Ka,{className:hl("cleen-size-3 cleen-text-neutral-500 hover:cleen-text-neutral-900 cleen-transition-colors cleen-cursor-help",l?.questionIcon),style:a?.questionIcon})})]})});import{cn as to}from"@cleen/ui-core";import{forwardRef as y3,useEffect as v3,useId as I3,useMemo as C3,useState as jv}from"react";import{jsx as No,jsxs as vi}from"react/jsx-runtime";var Ie=y3(function({name:t,id:o,type:n,label:l,labelTooltip:r,defaultValue:a,value:i,files:p,disabled:s,required:d,className:f,classNames:m,style:b,styles:y,autoComplete:u="off",isFocusedBorder:v,maxLength:C,minLength:S,maxLengthLabelThreshold:I=.5,uploadLabel:x="Choose a file",leftIcon:w,rightIcon:R,topRightIcon:T,inputOverlay:N,infoLabels:D,maxLengthLabel:M,minLengthLabel:P,onChange:k,...E},L){let F=i!==void 0||p!==void 0,[O,B]=jv(a??""),[A,V]=jv(null),U=F?i:O,_=F?p:A;v3(()=>{F||B(i??a??"")},[i,a,F]);let W=$=>{let Y=$.target.value;if(n==="file"&&$.target.files){F||V($.target.files),k?.($);return}(!C||Y.length<=C)&&(F||B(Y),k?.($))},j=C3(()=>S&&P&&(U?.toString()?.length??0)<S?P(S-(U?.toString()?.length??0)):!C||!M||(U?.toString()?.length??0)/C<I?D?.subtitle:M?.(C-(U?.toString()?.length??0)),[U,C,I,D?.subtitle]),G=I3(),H=!!(D?.errorMessage||D?.infoMessage||j),X=H?`${G}-info`:void 0;return No("div",{className:to("cleen",f),style:b,children:vi("div",{className:to("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)&&vi("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[No(de,{htmlFor:o||t,required:d,tooltip:r,className:to("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...y?.label,children:l}),T]}),vi("label",{className:to("cleen-relative cleen-flex cleen-items-stretch cleen-bg-background cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-all cleen-duration-200 cleen-overflow-hidden focus-within:cleen-ring-4 focus-within:cleen-ring-primary-100 focus-within:cleen-ring-offset-0",{"has-[:focus]:cleen-border has-[:focus]:cleen-border-primary/30":v},s&&"cleen-bg-muted",{"cleen-cursor-pointer":n==="file"&&!s},D?.errorMessage?["cleen-border-error/70 focus-within:cleen-ring-error-bg",!s&&"hover:cleen-border-error"]:["cleen-border-border focus-within:cleen-border-primary-400",!s&&"hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary"],m?.inputContainer),style:y?.inputContainer,children:[w&&No("div",{className:to("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-l-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.leftIconContainer),style:y?.leftIconContainer,children:w}),vi("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[No("input",{id:o||t,name:t,type:n,disabled:s,maxLength:C,autoComplete:u,value:U,className:to("cleen-block cleen-border-0 cleen-bg-transparent cleen-rounded-md cleen-w-full cleen-text-base","cleen-py-2 cleen-pr-2 placeholder:cleen-text-neutral-400 sm:cleen-text-sm focus:cleen-ring-transparent focus:cleen-outline-none cleen-my-auto",w?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":w,"cleen-rounded-r-none":R,"cleen-hidden":n==="file"},s?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:y?.input,onChange:W,required:d,"aria-invalid":D?.errorMessage?!0:void 0,"aria-describedby":X,ref:L,...E}),N&&No("div",{className:to("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",w?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",m?.inputOverlay),style:y?.inputOverlay,children:N}),n==="file"&&No("p",{className:to("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",_&&_.length>0&&"cleen-text-foreground"),children:_&&_.length>0?Array.from(_).map($=>$.name).join(", "):x})]}),R&&No("div",{className:to("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-r-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.rightIconContainer),style:y?.rightIconContainer,children:R})]}),H&&No(ie,{id:X,...D,subtitle:j})]})})});import{cn as bl,useOutsideClick as x3}from"@cleen/ui-core";import{forwardRef as P3,useEffect as e2,useImperativeHandle as S3,useMemo as w3,useRef as M3,useState as Ii}from"react";import{jsx as yl,jsxs as k3}from"react/jsx-runtime";var A0=P3(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:l,onIsEditingChange:r,placeholder:a,placeholderText:i,canEdit:p=!0,onSave:s,onCancel:d,onChange:f,inputProps:m,blurOnOutsideClick:b=!0,saveOnBlur:y=!0,isLoading:u,customLoader:v=yl(ce,{}),selectAllOnEdit:C=!1,renderText:S,className:I,classNames:x,style:w,styles:R,...T},N){let D=t!==void 0,[M,P]=Ii(o??""),k=D?t??"":M,[E,L]=Ii(!1),F=u??E,O=w3(()=>typeof S=="function"?S(k):S||k||i||a,[k,S,a,i]),[B,A]=Ii(n),V=l!==void 0,U=V?l:B,[_,W]=Ii(k),j=M3(null);S3(N,()=>({...j.current,save:H,cancel:G})),e2(()=>{D||P(o??"")},[o,D]),e2(()=>{U||W(k)},[k,U]);let G=async()=>{V||A(!1),r?.(!1),W(k),await d?.()},H=async()=>{if(!F){if(k===_){await d?.(),V||A(!1),r?.(!1);return}L(!0),D||P(_);try{await s?.(_),V||A(!1),r?.(!1)}finally{L(!1)}}},X=async $=>{$.key==="Enter"&&($.preventDefault(),await H()),$.key==="Escape"&&($.stopPropagation(),$.preventDefault(),await G()),m?.onKeyDown?.($)};return x3({refs:[j],enabled:b&&U,handler:async()=>{y?await H():await G()}}),yl("div",{className:bl("cleen",I),style:w,ref:j,...T,children:U?k3("div",{className:bl("cleen-relative cleen-h-full",x?.container),style:R?.container,children:[yl(Ie,{value:_,onChange:$=>{W($.target.value),f?.($.target.value)},autoFocus:!0,placeholder:a,className:x?.input?.className,classNames:{...x?.input?.classNames,inputContainer:bl("cleen-border-primary hover:cleen-border-primary/60",x?.input?.classNames?.inputContainer)},...R?.input,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:F||m?.disabled,onKeyDown:X}),F&&yl("div",{className:bl("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",x?.loaderContainer),style:R?.loaderContainer,children:v})]}):yl("div",{onClick:()=>{p&&(V||A(!0),r?.(!0))},className:bl("cleen-min-h-6 cleen-text-foreground",p&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!k&&"cleen-text-muted-foreground",x?.preview),style:R?.preview,children:O})})});import{cn as Ir}from"@cleen/ui-core";import{forwardRef as T3,useEffect as t2,useId as N3,useMemo as B3,useRef as R3,useState as E3}from"react";import{jsx as pn,jsxs as O0}from"react/jsx-runtime";var vl=T3(function({name:t,id:o,value:n,defaultValue:l,label:r,labelTooltip:a,disabled:i,required:p,infoLabels:s,topRightElement:d,labelRightElement:f,textareaOverlay:m,onChange:b,minHeight:y,maxHeight:u=200,autoResize:v=!0,maxLength:C,minLength:S,maxLengthLabelThreshold:I=.5,maxLengthLabel:x,minLengthLabel:w,className:R,classNames:T,style:N,styles:D,...M},P){let k=n!==void 0,[E,L]=E3(typeof l=="string"?l:""),F=R3(null),O=P??F,B=k?n:E;t2(()=>{k||L(n??(typeof l=="string"?l:""))},[n,l,k]);let A=$=>{$.style.height="auto";let Y=Math.min($.scrollHeight,u);$.style.height=`${Y}px`},V=$=>{A($.target)};t2(()=>{!v||!F.current||A(F.current)},[v,B,u]);let U=$=>{$.preventDefault()},_=$=>{$.preventDefault();let Y=$.dataTransfer?.getData("text/plain");k?b?.(`${n??""}${Y}`):(L(ae=>`${ae}${Y}`),b?.(`${E}${Y}`))},W=$=>{let Y=$.target.value;(!C||Y.length<=C)&&(k||L(Y),b?.(Y),v&&V($))},j=B3(()=>S&&w&&(B?.length??0)<S?w(S-(B?.length??0)):!C||!x||(B?.toString()?.length??0)/C<I?s?.subtitle:x?.(C-(B?.toString()?.length??0)),[B,C,I,s?.subtitle]),G=N3(),H=!!(s?.errorMessage||s?.infoMessage||j),X=H?`${G}-info`:void 0;return pn("div",{className:Ir("cleen",R),style:N,children:O0("div",{className:Ir("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",T?.container),style:D?.container,children:[(r||f)&&O0("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[r&&pn(de,{htmlFor:o||t,required:p,tooltip:a,className:Ir("cleen-w-full",T?.label?.className),classNames:T?.label?.classNames,...D?.label,children:r}),f&&pn("div",{className:"cleen-ml-auto",children:f})]}),O0("div",{className:Ir("cleen-relative cleen-flex cleen-items-center cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-colors cleen-duration-200",s?.errorMessage?"cleen-border-error/70 hover:cleen-border-error":"cleen-border-border hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary",T?.textareaContainer),style:D?.textareaContainer,children:[d&&pn("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:d}),m&&pn("div",{className:Ir("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}),pn("textarea",{id:o||t,name:t,ref:O,disabled:i,value:B,minLength:S,maxLength:C,"aria-invalid":s?.errorMessage?!0:void 0,"aria-describedby":X,className:Ir("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`},...D?.textarea},onFocus:$=>$.currentTarget.setSelectionRange($.currentTarget.value.length,$.currentTarget.value.length),onDragOver:U,onDrop:_,...M,onChange:W})]}),H&&pn(ie,{id:X,...s,subtitle:j})]})})});import{cn as Il,useOutsideClick as L3}from"@cleen/ui-core";import{forwardRef as D3,useEffect as o2,useImperativeHandle as F3,useMemo as A3,useRef as O3,useState as Ci}from"react";import{jsx as Cl,jsxs as _3}from"react/jsx-runtime";var _0=D3(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:l,onIsEditingChange:r,placeholder:a,placeholderText:i,canEdit:p=!0,onSave:s,onCancel:d,onChange:f,textAreaProps:m,blurOnOutsideClick:b=!0,saveOnBlur:y=!0,isLoading:u,customLoader:v=Cl(ce,{size:"md"}),selectAllOnEdit:C=!1,renderText:S,className:I,classNames:x,style:w,styles:R,...T},N){let D=t!==void 0,[M,P]=Ci(o??""),k=D?t??"":M,[E,L]=Ci(!1),F=u??E,O=A3(()=>typeof S=="function"?S(k):S||k||i||a,[k,S,a,i]),[B,A]=Ci(n),V=l!==void 0,U=V?l:B,[_,W]=Ci(k),j=O3(null);F3(N,()=>({...j.current,save:H,cancel:G})),o2(()=>{D||P(o??"")},[o,D]),o2(()=>{U||W(k)},[k,U]);let G=async()=>{V||A(!1),r?.(!1),W(k),await d?.()},H=async()=>{if(!F){if(k===_){await d?.(),V||A(!1),r?.(!1);return}L(!0),D||P(_);try{await s?.(_),V||A(!1),r?.(!1)}finally{L(!1)}}},X=async $=>{$.key==="Escape"&&($.preventDefault(),$.stopPropagation(),await G()),$.key==="Enter"&&($.metaKey||$.ctrlKey)&&($.preventDefault(),await H()),m?.onKeyDown?.($)};return L3({refs:[j],enabled:b&&U,handler:async()=>{y?await H():await G()}}),Cl("div",{className:Il("cleen",I),style:w,ref:j,...T,children:U?_3("div",{className:Il("cleen-relative cleen-h-full",x?.container),style:R?.container,children:[Cl(vl,{value:_,onChange:$=>{W($),f?.($)},autoFocus:!0,placeholder:a,className:x?.textArea?.className,classNames:{...x?.textArea?.classNames,textareaContainer:Il("cleen-border-primary hover:cleen-border-primary/60",x?.textArea?.classNames?.textareaContainer)},...R?.textArea,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:F||m?.disabled,onKeyDown:X}),F&&Cl("div",{className:Il("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",x?.loaderContainer),style:R?.loaderContainer,children:v})]}):Cl("div",{onClick:()=>{p&&(V||A(!0),r?.(!0))},className:Il("cleen-min-h-6 cleen-text-foreground cleen-whitespace-pre-wrap",p&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!k&&"cleen-text-muted-foreground",x?.preview),style:R?.preview,children:O})})});import"@cleen/ui-core";import{forwardRef as V3}from"react";import{Fragment as H3,jsx as V0,jsxs as U3}from"react/jsx-runtime";var z3=V3(function({header:t,color:o,children:n,description:l,onSave:r,isDescriptionHidden:a=!1,titleProps:i,descriptionProps:p,classNames:s,styles:d,...f},m){let b=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return V0(Pe,{ref:m,color:o,header:{...t,title:V0(A0,{value:b??"",onSave:async y=>{await r?.("title",y)},...s?.titleTextInput,...d?.titleTextInput,...i})},classNames:s,styles:d,...f,children:(!a||n)&&U3(H3,{children:[V0(_0,{value:l??"",onSave:async y=>{await r?.("description",y)},...p,textAreaProps:p?.textAreaProps,...s?.descriptionTextInput,...d?.descriptionTextInput}),n]})})});import{cn as xl}from"@cleen/ui-core";import{forwardRef as G3}from"react";import{jsx as xi}from"react/jsx-runtime";var $3=G3(function({type:t="button",label:o,onClick:n,containerRef:l,className:r,classNames:a,style:i,styles:p,disabled:s=!1,loaderOptions:d,isLoading:f=!1,variant:m="primary",children:b,...y},u){return xi("div",{className:xl("cleen",r),style:i,ref:l,children:xi("button",{type:t,ref:u,disabled:f||s,onClick:n,className:xl("cleen-size-full",a?.container),style:p?.container,...y,children:xi(Pe,{p:0,className:xl("cleen-size-full cleen-group",a?.card?.className),classNames:{...a?.card?.classNames,container:xl("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",Ib[m],a?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||f}),childrenContainer:xl("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",a?.card?.classNames?.childrenContainer)},"aria-disabled":s||f,...p?.card,children:f?xi(ce,{size:"lg",...d,color:d?.color||Cb[m],...a?.loader,...p?.loader}):o||b})})})});import{cn as Pl,ColorHelpers as n2,formatAudioTime as r2}from"@cleen/ui-core";import{useWavesurfer as W3}from"@wavesurfer/react";import{forwardRef as q3,useCallback as K3,useRef as X3}from"react";import{jsx as Sl,jsxs as a2}from"react/jsx-runtime";var Y3={waveColor:n2.getComputedColor("var(--cleen-neutral-200)"),progressColor:n2.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},Q3=q3(function({url:t,options:o,className:n,classNames:l,style:r,styles:a,...i},p){let s=X3(null),{wavesurfer:d,isPlaying:f,isReady:m,currentTime:b}=W3({...Y3,...o,container:s,url:t}),y=m?d?.getDuration()??0:0,u=K3(()=>{d?.playPause()},[d]);return Sl("div",{ref:p,className:Pl("cleen",n),style:r,...i,children:a2("div",{className:Pl("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:a?.container,children:[Sl(te,{type:"button",onClick:u,disabled:!m,"aria-label":f?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:Pl("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...a?.playButton,children:f?Sl(vt,{className:"cleen-fill-current"}):Sl(It,{className:"cleen-fill-current"})}),Sl("div",{ref:s,className:Pl("cleen-flex-1 cleen-min-w-0",l?.waveform),style:a?.waveform}),a2("span",{className:Pl("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",l?.timestamp),style:a?.timestamp,children:[r2(b),"\xA0/\xA0",r2(y)]})]})})});import{ColorHelpers as Z3}from"@cleen/ui-core";var l2=Z3.getComputedColor("var(--cleen-primary)"),c2="rgba(var(--cleen-primary), 0.15)",i2={waveColor:l2,progressColor:l2,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var s2={startRecording:"Click to start recording"};import{cn as rt,formatAudioTime as Bi,trimBlob as j3}from"@cleen/ui-core";import{useWavesurfer as eT}from"@wavesurfer/react";import{forwardRef as tT,useCallback as xr,useEffect as W0,useMemo as oT,useRef as m2,useState as Ri}from"react";function z0(e,t,o,n){return new(o||(o=Promise))((function(l,r){function a(s){try{p(n.next(s))}catch(d){r(d)}}function i(s){try{p(n.throw(s))}catch(d){r(d)}}function p(s){var d;s.done?l(s.value):(d=s.value,d instanceof o?d:new o((function(f){f(d)}))).then(a,i)}p((n=n.apply(e,t||[])).next())}))}var Pi=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)))}},U0=class extends Pi{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}},G0=class extends Pi{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()}},H0=100,J3=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],Si=class e extends U0{constructor(t){var o,n,l,r,a,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:(a=t.renderRecordedAudio)===null||a===void 0||a,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 G0,this.subscriptions.push(this.timer.on("tick",(()=>{let p=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+p,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 a=r.frequencyBinCount,i=new Float32Array(a),p=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 s=setInterval((()=>{var d,f,m,b;if(!this.isWaveformPaused){if(r.getFloatTimeDomainData(i),this.options.scrollingWaveform){let y=Math.floor((this.options.scrollingWaveformWindow||0)*H0),u=0;for(let C=0;C<a;C++){let S=Math.abs(i[C]);S>u&&(u=S)}this.dataWindow||(this.dataWindow=new Float32Array(y));let v=new Float32Array(y);if(this.dataWindow&&this.dataWindow.length>0){let C=y-1,S=this.dataWindow.slice(-C);v.set(S,0)}v[y-1]=u,this.dataWindow=v}else if(this.options.continuousWaveform){if(!this.dataWindow){let u=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*H0):((f=(d=this.wavesurfer)===null||d===void 0?void 0:d.getWidth())!==null&&f!==void 0?f:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(u)}let y=0;for(let u=0;u<a;u++){let v=Math.abs(i[u]);v>y&&(y=v)}if(p+1>this.dataWindow.length){let u=new Float32Array(2*this.dataWindow.length);u.set(this.dataWindow,0),this.dataWindow=u}this.dataWindow[p]=y,p++}else this.dataWindow=i;if(this.wavesurfer){let y=((b=(m=this.dataWindow)===null||m===void 0?void 0:m.length)!==null&&b!==void 0?b:0)/H0;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(s),l?.disconnect(),n?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return z0(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 z0(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||J3.find((a=>MediaRecorder.isTypeSupported(a))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=n,this.stopRecording();let l=[];n.ondataavailable=a=>{a.data.size>0&&l.push(a.data),this.emit("record-data-available",a.data)};let r=a=>{var i;let p=new Blob(l,{type:n.mimeType});this.emit(a,p),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(p),(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 z0(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 ki=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)))}},$0=class extends ki{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 p2(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,a]of Object.entries(l))a instanceof Node?o.appendChild(a):typeof a=="string"?o.appendChild(document.createTextNode(a)):o.appendChild(p2(r,a));else n==="style"?Object.assign(o.style,l):n==="textContent"?o.textContent=l:o.setAttribute(n,l.toString());return o}function wl(e,t,o){let n=p2(e,t||{});return o?.appendChild(n),n}function d2(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 wi(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 Cr(e,t){let o=d2(null),n=l=>{o.set(l)};return e.addEventListener(t,n),o._cleanup=()=>{e.removeEventListener(t,n)},o}function dn(e){let t=e._cleanup;typeof t=="function"&&t()}function Mi(e,t={}){let{threshold:o=3,mouseButton:n=0,touchDelay:l=100}=t,r=d2(null),a=new Map,i=matchMedia("(pointer: coarse)").matches,p=()=>{},s=d=>{if(d.button!==n||(a.set(d.pointerId,d),a.size>1))return;let f=d.clientX,m=d.clientY,b=!1,y=Date.now(),u=e.getBoundingClientRect(),{left:v,top:C}=u,S=T=>{if(T.defaultPrevented||a.size>1||i&&Date.now()-y<l)return;let N=T.clientX,D=T.clientY,M=N-f,P=D-m;(b||Math.abs(M)>o||Math.abs(P)>o)&&(T.preventDefault(),T.stopPropagation(),b||(r.set({type:"start",x:f-v,y:m-C}),b=!0),r.set({type:"move",x:N-v,y:D-C,deltaX:M,deltaY:P}),f=N,m=D)},I=T=>{if(a.delete(T.pointerId),b){let N=T.clientX,D=T.clientY;r.set({type:"end",x:N-v,y:D-C})}p()},x=T=>{a.delete(T.pointerId),T.relatedTarget&&T.relatedTarget!==document.documentElement||I(T)},w=T=>{b&&(T.stopPropagation(),T.preventDefault())},R=T=>{T.defaultPrevented||a.size>1||b&&T.preventDefault()};document.addEventListener("pointermove",S),document.addEventListener("pointerup",I),document.addEventListener("pointerout",x),document.addEventListener("pointercancel",x),document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("click",w,{capture:!0}),p=()=>{document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",x),document.removeEventListener("pointercancel",x),document.removeEventListener("touchmove",R),setTimeout((()=>{document.removeEventListener("click",w,{capture:!0})}),10)}};return e.addEventListener("pointerdown",s),{signal:r,cleanup:()=>{p(),e.removeEventListener("pointerdown",s),a.clear(),dn(r)}}}var Ti=class extends ki{constructor(t,o,n=0){var l,r,a,i,p,s,d,f,m,b;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=(a=t.resize)===null||a===void 0||a,this.resizeStart=(i=t.resizeStart)===null||i===void 0||i,this.resizeEnd=(p=t.resizeEnd)===null||p===void 0||p,this.color=(s=t.color)!==null&&s!==void 0?s:"rgba(0, 0, 0, 0.1)",this.minLength=(d=t.minLength)!==null&&d!==void 0?d:this.minLength,this.maxLength=(f=t.maxLength)!==null&&f!==void 0?f:this.maxLength,this.channelIdx=(m=t.channelIdx)!==null&&m!==void 0?m:-1,this.contentEditable=(b=t.contentEditable)!==null&&b!==void 0?b:this.contentEditable,this.element=this.initElement(),this.setContent(t.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(t){return Math.max(0,Math.min(this.totalDuration,t))}setPart(){var t;let 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=wl("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=wl("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=Mi(n,{threshold:1}),a=Mi(l,{threshold:1}),i=wi((()=>{let s=r.signal.value;s&&(s.type==="move"&&s.deltaX!==void 0?this.onResize(s.deltaX,"start"):s.type==="end"&&this.onEndResizing("start"))}),[r.signal]),p=wi((()=>{let s=a.signal.value;s&&(s.type==="move"&&s.deltaX!==void 0?this.onResize(s.deltaX,"end"):s.type==="end"&&this.onEndResizing("end"))}),[a.signal]);this.subscriptions.push((()=>{i(),p(),r.cleanup(),a.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=wl("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=Cr(t,"click"),n=Cr(t,"mouseenter"),l=Cr(t,"mouseleave"),r=Cr(t,"dblclick"),a=Cr(t,"pointerdown"),i=Cr(t,"pointerup"),p=o.subscribe((v=>v&&this.emit("click",v))),s=n.subscribe((v=>v&&this.emit("over",v))),d=l.subscribe((v=>v&&this.emit("leave",v))),f=r.subscribe((v=>v&&this.emit("dblclick",v))),m=a.subscribe((v=>v&&this.toggleCursor(!0))),b=i.subscribe((v=>v&&this.toggleCursor(!1)));this.subscriptions.push((()=>{p(),s(),d(),f(),m(),b(),dn(o),dn(n),dn(l),dn(r),dn(a),dn(i)}));let y=Mi(t),u=wi((()=>{let v=y.signal.value;v&&(v.type==="start"?this.toggleCursor(!0):v.type==="move"&&v.deltaX!==void 0?this.onMove(v.deltaX):v.type==="end"&&(this.toggleCursor(!1),this.drag&&this.emit("update-end")))}),[y.signal]);this.subscriptions.push((()=>{u(),y.cleanup()})),this.contentEditable&&this.content&&(this.contentClickListener=v=>this.onContentClick(v),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener))}_onUpdate(t,o,n){var l;if(!(!((l=this.element)===null||l===void 0)&&l.parentElement))return;let{width:r}=this.element.parentElement.getBoundingClientRect(),a=t/r*this.totalDuration,i=o&&o!=="start"?this.start:this.start+a,p=o&&o!=="end"?this.end:this.end+a,s=n!==void 0;s&&this.updatingSide&&this.updatingSide!==o&&(this.updatingSide==="start"?i=n:p=n),i=Math.max(0,i),p=Math.min(this.totalDuration,p);let d=p-i;this.updatingSide=o;let f=d>=this.minLength&&d<=this.maxLength;i<=p&&(f||s)&&(this.start=i,this.end=p,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=wl("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()}},Ni=class e extends $0{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 wl("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 a=r.content.getBoundingClientRect();return n.left<a.left+a.width&&a.left<n.left+n.width?a.height:0})).reduce(((r,a)=>r+a),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:a}=l;if(a<=r)return;let i=l.getBoundingClientRect(),p=t.element.getBoundingClientRect(),s=p.left-i.left,d=p.right-i.left;s<0?l.scrollLeft+=s:d>r&&(l.scrollLeft+=d-r)}virtualAppend(t,o,n){let l=()=>{if(!this.wavesurfer)return;let r=this.wavesurfer.getWidth(),a=this.wavesurfer.getScroll(),i=o.clientWidth,p=this.wavesurfer.getDuration(),s=Math.round(t.start/p*i),d=s+(Math.round((t.end-t.start)/p*i)||1)>a&&s<a+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),a=this.wavesurfer.on("zoom",l),i=this.wavesurfer.on("resize",l);this.subscriptions.push(r,a,i),t.once("remove",(()=>{r(),a(),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,a=new Ti(t,l,r);return this.emit("region-initialized",a),l?this.saveRegion(a):this.subscriptions.push(this.wavesurfer.once("ready",(i=>{a._setTotalDuration(i),this.saveRegion(a)}))),a}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,a=0,i=0,p=Mi(l,{threshold:o}),s=wi((()=>{var d,f;let m=p.signal.value;if(m)if(m.type==="start"){if(a=m.x,!this.wavesurfer)return;let b=this.wavesurfer.getDuration(),y=(f=(d=this.wavesurfer)===null||d===void 0?void 0:d.getDecodedData())===null||f===void 0?void 0:f.numberOfChannels,{width:u}=this.wavesurfer.getWrapper().getBoundingClientRect();i=a/u*b;let v=m.x/u*b,C=(m.x+5)/u*b;r=new Ti(Object.assign(Object.assign({},t),{start:v,end:C}),b,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>a?"end":"start",i):m.type==="end"&&r&&(this.saveRegion(r),r.updatingSide=void 0,r=null)}),[p.signal]);return()=>{s(),p.cleanup()}}clearRegions(){this.regions.slice().forEach((t=>t.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as rT,jsx as Ue,jsxs as Ml}from"react/jsx-runtime";var nT=tT(function({onFinalize:t,recordOptions:o,options:n,labels:l=s2,className:r,classNames:a,style:i,styles:p,...s},d){let f=m2(null),[m,b]=Ri("idle"),[y,u]=Ri(null),[v,C]=Ri(null),[S,I]=Ri(!1),x=m2("idle");x.current=m;let w=oT(()=>[Si.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...o}),Ni.create()],[]),[R,T]=w,{wavesurfer:N,isPlaying:D,isReady:M,currentTime:P}=eT({...i2,...n,container:f,plugins:w}),k=M?N?.getDuration()??0:0;W0(()=>{let U=[R.on("record-start",()=>b("recording")),R.on("record-end",_=>{b("recorded"),u(_)}),T.on("region-clicked",(_,W)=>{W.stopPropagation(),_.play(!0)})];return()=>U.forEach(_=>_?.())},[T,R]),W0(()=>N?N.on("ready",()=>{if(x.current!=="recorded")return;let _=N.getDuration();T.clearRegions();let W=T.addRegion({start:0,end:_,color:n?.regionColor??c2,drag:!1,resize:!0});C({start:W.start,end:W.end})}):void 0,[N,T,n]),W0(()=>T.on("region-updated",_=>{C({start:_.start,end:_.end})}),[T]);let E=xr(async()=>{await R.startRecording()},[R]),L=xr(()=>{R.stopRecording()},[R]),F=xr(()=>{N?.playPause()},[N]),O=xr(async()=>{if(!(!y||!v||!N)){I(!0);try{let U=await j3(y,v.start,v.end),_=URL.createObjectURL(U);u(U),N.load(_)}finally{I(!1)}}},[y,v,N]),B=xr(()=>{T.clearRegions(),N?.empty(),u(null),C(null),b("idle")},[N,T]),A=xr(()=>{if(y){let U=URL.createObjectURL(y);t?.(y,U)}},[t,y]),V=!v||v.start<=0&&v.end>=k;return Ue("div",{ref:d,className:rt("cleen wavesurfer-handle",r),style:i,...s,children:Ml("div",{className:rt("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",a?.container),style:p?.container,children:[m==="idle"&&Ml(rT,{children:[Ue("button",{type:"button",onClick:E,"aria-label":"Start recording",className:rt("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",a?.startButton),style:p?.startButton,children:Ue(za,{className:"cleen-size-8 cleen-text-primary"})}),Ue("p",{className:rt("cleen-text-neutral-600 cleen-text-sm cleen-select-none",a?.startLabel),style:p?.startLabel,children:l.startRecording})]}),m==="recording"&&Ue("button",{type:"button",onClick:L,"aria-label":"Stop recording",className:rt("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",a?.stopButton),style:p?.stopButton,children:Ue(rl,{className:"cleen-size-8 cleen-text-primary"})}),Ue("div",{ref:f,className:rt("cleen-w-full cleen-min-w-0 cleen-waveform",m==="idle"&&"cleen-hidden",a?.waveform),style:p?.waveform}),m==="recorded"&&Ml("div",{className:rt("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",a?.recordedContainer),style:p?.recordedContainer,children:[Ue(te,{type:"button",onClick:F,disabled:!M,"aria-label":D?"Pause":"Play",className:a?.playPauseButton?.className,classNames:{...a?.playPauseButton?.classNames,container:rt("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.playPauseButton?.classNames?.container)},...p?.playPauseButton,children:D?Ue(vt,{className:"cleen-fill-current"}):Ue(It,{className:"cleen-fill-current"})}),Ml("span",{className:rt("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",a?.timestamp),style:p?.timestamp,children:[Bi(P),"\xA0/\xA0",Bi(k)]}),Ue("span",{className:"cleen-flex-1"}),!V&&v&&Ml("span",{className:rt("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",a?.trimmedTimestamp),style:p?.trimmedTimestamp,children:[Bi(v.start),"\u2013",Bi(v.end)]}),Ue(te,{type:"button",onClick:B,variant:"secondary","aria-label":"Discard recording",className:a?.discardButton?.className,classNames:{...a?.discardButton?.classNames,container:rt("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.discardButton?.classNames?.container)},...p?.discardButton,children:Ue(dt,{className:"cleen-text-error"})}),Ue(te,{type:"button",onClick:O,disabled:V||S||!M,"aria-label":"Apply trim",variant:"secondary",className:a?.trimButton?.className,classNames:{...a?.trimButton?.classNames,container:rt("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.trimButton?.classNames?.container)},...p?.trimButton,children:Ue(Qa,{})}),Ue(te,{type:"button",onClick:A,"aria-label":"Finalize recording",className:a?.finalizeButton?.className,classNames:{...a?.finalizeButton?.classNames,container:rt("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.finalizeButton?.classNames?.container)},...p?.finalizeButton,children:Ue(Yt,{})})]})]})})});import{cn as Ei}from"@cleen/ui-core";import{forwardRef as aT,useMemo as lT}from"react";var u2={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 kl}from"react/jsx-runtime";var Li=aT(function({title:t,name:o,src:n,alt:l,size:r="md",initialsLength:a=2,isSelected:i=!1,showBorder:p=!1,fallback:s=kl(cl,{}),className:d,classNames:f,style:m,styles:b,onClick:y,...u},v){let C=lT(()=>(a===2?o?.split(" ").map(S=>S.charAt(0).toUpperCase()).join("").slice(0,a):o?.charAt(0).toUpperCase())||s,[o,a,s]);return kl("div",{className:Ei("cleen",d),style:m,ref:v,...u,children:kl("div",{onClick:y,className:Ei("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof r=="string"&&u2[r],{"cleen-border-2 cleen-border-white":p,"cleen-cursor-pointer":!!y},f?.avatar,p&&i&&["cleen-border-primary",f?.avatarSelected]),style:{...typeof r=="number"&&{width:r,height:r,fontSize:r*.4,lineHeight:`${r}px`},...b?.avatar,...p&&i&&b?.avatarSelected},title:t||o,children:n?kl("img",{src:n,alt:l||o,className:Ei("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",f?.image),style:b?.image}):kl("span",{className:Ei("cleen-select-none cleen-text-neutral-700",f?.fallback),style:b?.fallback,children:C})})})});import{cn as f2}from"@cleen/ui-core";import{forwardRef as cT}from"react";import{jsx as q0,jsxs as sT}from"react/jsx-runtime";var iT=cT(function({avatars:t,size:o="md",selectedAvatars:n=[],onAvatarToggle:l,gap:r=4,maxVisible:a,maxExtra:i=99,showBorder:p=!0,initialsLength:s,fallback:d,className:f,classNames:m,style:b,styles:y,...u},v){let C=a?t?.slice(0,a):t,S=a&&t&&t.length>a?Math.min(t.length-a,i):0;return q0("div",{className:f2("cleen",f),style:b,ref:v,...u,children:sT("div",{className:f2("cleen-flex cleen-items-center",m?.row),style:{gap:r,...y?.row},children:[C?.map((I,x)=>{let w=n.includes(I?.id??"");return q0(Li,{name:I.name,src:I.src,size:o,isSelected:w,showBorder:p,initialsLength:s,fallback:d,onClick:()=>l?.(I.id??""),...m?.avatar,style:{zIndex:C.length-x,...y?.avatar?.style},styles:y?.avatar?.styles,...I},I.id||x)}),S>0&&q0(Li,{size:o,fallback:`+${S}`,...m?.extra,...y?.extra})]})})});import{cn as Bo}from"@cleen/ui-core";import{forwardRef as pT}from"react";import{Link as h2}from"react-router-dom";import{jsx as Tl,jsxs as Di}from"react/jsx-runtime";var dT=pT(function({root:t={path:"/",icon:Tl(Ea,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:o,className:n,classNames:l,style:r,styles:a,...i},p){return!o||o.length===0?null:Tl("div",{className:Bo("cleen",n),style:r,ref:p,...i,children:Tl("nav",{className:Bo("cleen-hidden sm:cleen-flex",l?.container),style:a?.container,"aria-label":"Breadcrumb",children:Di("ol",{role:"list",className:Bo("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:a?.list,children:[t&&Tl("li",{className:Bo("cleen-flex cleen-items-center",l?.rootItem),style:a?.rootItem,children:Di(h2,{to:t?.path,className:Bo("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:a?.rootLink,"aria-current":"page",children:[t?.icon,t?.label]})}),o.map(({path:s,icon:d,label:f,id:m},b)=>{let y=b===o.length-1,u=f||s.charAt(0).toUpperCase()+s.slice(1);return Di("li",{className:Bo("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:a?.item,children:[(t||!t&&b!==0)&&Tl(ct,{className:Bo("cleen-h-5 cleen-w-5 cleen-text-neutral-300",l?.chevron),style:a?.chevron,"aria-hidden":"true"}),Di(h2,{to:s,className:Bo("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:a?.link,"aria-current":y?"page":void 0,children:[d,u]})]},m||s)})]})})})});var Fi=(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 a=o==="today"?r:o;if(a>=e)return a}if(n){let a=n==="today"?r:n;if(a<=e)return a}return e};import{cn as Ai}from"@cleen/ui-core";import{forwardRef as mT,useState as K0}from"react";import{DayPicker as g2,MonthGrid as uT}from"react-day-picker";import{Fragment as fT,jsx as mn,jsxs as Y0}from"react/jsx-runtime";var X0=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),Q0=mT(function({label:t,labelTooltip:o,infoLabels:n,required:l,withDateInput:r=!1,withTodayButton:a=!1,selected:i,onSelect:p,month:s,labels:d,className:f,style:m,classNames:b,styles:y,mode:u="single",min:v,max:C,disabled:S,disabledDates:I,components:x,...w},R){let T=i!==void 0,N=u==="single",[D,M]=K0(),[P,k]=K0(),E=T?i:N?D:P,[L,F]=K0(s),O=(V,U)=>{T||(N&&(V===void 0||V instanceof Date)?M(V):N||k(V)),p?.(V,U)},B={MonthGrid:V=>Y0(fT,{children:[(a||r)&&Y0("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[r&&mn(Ie,{value:u==="single"?X0(E):E?.from||E?.to?`${X0(E?.from)??"..."} - ${X0(E?.to)??"..."}`:void 0,placeholder:d?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),a&&mn(te,{variant:"secondary",onClick:()=>F(new Date),children:d?.today??"Today"})]}),mn(uT,{...V})]}),...x},A={navLayout:"around",...w,className:Ai("cleen-text-foreground",b?.calendar?.className),classNames:{...b?.calendar?.classNames,nav:Ai("cleen-text-error",b?.calendar?.classNames?.nav)},disabled:v||C?{before:v==="today"?new Date:v,after:C==="today"?new Date:C}:I||S,components:B,month:L,onMonthChange:F,...y?.calendar};return Y0("div",{ref:R,className:Ai("cleen",f),style:m,children:[t&&mn(de,{required:l,tooltip:o,className:Ai("cleen-mb-1.5",b?.label?.className),classNames:b?.label?.classNames,...y?.label,children:t}),N?mn(g2,{mode:"single",...A,selected:E,onSelect:(V,U)=>{if(v||C){O(Fi(V,{min:v,max:C}),U);return}O(V,U)}}):mn(g2,{mode:"range",...A,selected:E,onSelect:(V,U)=>{if(v||C){O({from:Fi(V?.from,{min:v,max:C}),to:Fi(V?.to,{min:v,max:C})},U);return}O(V,U)}}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&mn(ie,{...n})]})});import{cn as Pr,useOutsideClick as hT,usePositionClose as gT,ZIndex as bT}from"@cleen/ui-core";import{forwardRef as yT,useEffect as vT,useRef as b2,useState as IT}from"react";import{createPortal as CT}from"react-dom";import{jsx as un,jsxs as y2}from"react/jsx-runtime";var Nl=yT(function({type:t="button",required:o,label:n,title:l,titleTooltip:r,disabled:a=!1,leftIcon:i,rightIcon:p=un(ya,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:s=!0,fullWidthDropdown:d,offset:f=4,isOpen:m,onOpenChange:b,keepOpenOnClickContent:y=!0,zIndex:u=bT.DROPDOWN,infoLabels:v,className:C,classNames:S,style:I,styles:x,children:w,...R},T){let[N,D]=IT(!1),M=m!==void 0?m:N,P=b2(null),k=b2(null),{positionStyles:E,isMounted:L}=gT({triggerRef:k,targetRef:P,position:"bottom-left",isOpen:M,offset:f});hT({refs:[P,k],handler:()=>{D(!1),b?.(!1)},enabled:M}),vT(()=>{let B=A=>{A.key==="Escape"&&M&&(D(!1),b?.(!1))};return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[M,b]);let F=()=>{let B=!M;m===void 0&&D(B),b?.(B)},O=()=>{y||(m===void 0&&D(!1),b?.(!1))};return y2("div",{className:Pr("cleen",C),style:I,ref:T,...R,children:[l&&un(de,{required:o,tooltip:r,className:Pr("cleen-mb-1.5",S?.title?.className),classNames:S?.title?.classNames,...x?.title,children:l}),un("div",{className:Pr("cleen-inline-block cleen-relative",s&&"cleen-w-full"),ref:k,children:y2("button",{type:t,className:Pr("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-bg-background cleen-shadow-sm cleen-my-auto cleen-px-3.5 cleen-py-2.5 cleen-border cleen-border-border cleen-rounded-md cleen-w-full cleen-text-foreground cleen-text-base cleen-transition-colors cleen-duration-200 hover:cleen-bg-neutral-25 hover:cleen-border-muted-foreground",{"cleen-w-full cleen-flex-1":s,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":a},s&&"cleen-w-full",S?.trigger),style:x?.trigger,disabled:a,"aria-haspopup":"dialog","aria-expanded":M,onClick:F,children:[i,un("div",{className:Pr("cleen-flex-1 cleen-text-left",S?.label),style:x?.label,children:n}),p]})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&un(ie,{...v}),w&&M&&CT(un("div",{className:"cleen",children:un("div",{ref:P,className:Pr("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!L},S?.dropdown),style:{zIndex:u,top:`${E.top}px`,left:`${E.left}px`,minWidth:d&&k.current?.offsetWidth?`${k.current.offsetWidth}px`:void 0,...x?.dropdown},onClick:O,children:w})}),document.body)]})});import{cn as v2}from"@cleen/ui-core";import{forwardRef as xT,useMemo as PT,useState as Oi}from"react";import{jsx as fn,jsxs as I2}from"react/jsx-runtime";var ST=xT(function({label:t,placeholder:o,infoLabels:n,required:l,selected:r,onSelect:a,onSelectInternal:i,leftIcon:p,rightIcon:s=fn(ua,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:d,style:f,classNames:m,styles:b,mode:y="single",min:u,max:v,disabled:C,disabledDates:S,...I},x){let w=r!==void 0,R=y==="single",[T,N]=Oi(!1),[D,M]=Oi(),[P,k]=Oi(),E=w?r:R?D:P,[L,F]=Oi(),O=A=>{w||(R&&(A===void 0||A instanceof Date)?M(A):R||k(A)),a?.(A)},B=PT(()=>{if(!E)return o;if(R)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,R]);return I2("div",{ref:x,className:v2("cleen",d),style:f,children:[fn(Nl,{title:t,label:B,isOpen:T,onOpenChange:A=>{F(E),N(A)},leftIcon:p,rightIcon:s,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:v2("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:l,disabled:C,...b?.dropdown,children:fn(Pe,{footer:{hasDivider:!0,content:I2("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[fn(te,{variant:"secondary",onClick:()=>N(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),fn(te,{onClick:()=>{O(L),N(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...b?.card,children:fn(Q0,{mode:y,...I,selected:L,onSelect:(A,V)=>F(i?.(A,V)??A),min:u,max:v,disabledDates:S,...m?.calendar,...b?.calendar})})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&fn(ie,{...n})]})});import"react";import{cn as Sr}from"@cleen/ui-core";import wT from"embla-carousel-auto-scroll";import MT from"embla-carousel-autoplay";import kT from"embla-carousel-react";import{forwardRef as TT,useEffect as NT,useMemo as C2,useState as x2}from"react";import{jsx as hn,jsxs as RT}from"react/jsx-runtime";var BT=TT(function({options:t,slideAmount:o=3,slideSize:n,prevBtn:l,nextBtn:r,autoPlay:a=!1,autoPlayOptions:i,autoScroll:p=!1,autoScrollOptions:s,children:d,className:f,classNames:m,style:b,styles:y,...u},v){let C=C2(()=>{let k=[];return a&&k.push(MT(i)),p&&k.push(wT(s)),k},[a,p,i,s]),[S,I]=kT({skipSnaps:!0,...t},C),[x,w]=x2(!0),[R,T]=x2(!0),N=()=>I?.scrollPrev(),D=()=>I?.scrollNext(),M=k=>{w(!k?.canScrollPrev()),T(!k?.canScrollNext())};NT(()=>{I&&(M(I),I.on("reInit",M),I.on("select",M))},[I]);let P=C2(()=>n?`${n}%`:`${100/o}%`,[n,o]);return hn("div",{className:Sr("cleen",f),style:b,ref:v,...u,children:RT("div",{className:Sr("cleen-flex cleen-gap-2",m?.container),style:y?.container,children:[hn("button",{className:Sr("cleen-text-foreground",m?.prevBtn,x&&"cleen-opacity-50"),onClick:N,disabled:x,style:y?.prevBtn,children:l||hn(Qt,{})}),hn("div",{className:Sr("cleen-flex-1 cleen-overflow-hidden",m?.viewport),style:y?.viewport,ref:S,children:hn("div",{className:Sr("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":P},children:d})}),hn("button",{className:Sr("cleen-text-foreground",m?.nextBtn,R&&"cleen-opacity-50"),onClick:D,disabled:R,style:y?.nextBtn,children:r||hn(ct,{})})]})})});import{cn as gn}from"@cleen/ui-core";import{forwardRef as ET,useEffect as w2,useId as LT,useRef as DT,useState as FT}from"react";var P2={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)]"},S2={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 AT,jsx as Bt,jsxs as _i}from"react/jsx-runtime";var bn=ET(function({id:t,name:o,required:n,checked:l,defaultChecked:r=!1,className:a,classNames:i,style:p,styles:s,onChange:d,disabled:f,title:m,titleTooltip:b,label:y,sublabel:u,variant:v="primary",allowIndeterminate:C=!1,fullTriggerArea:S=!1,infoLabels:I,inputRef:x,...w},R){let T=LT(),N=t??T,D=typeof l=="boolean"||l===null,[M,P]=FT(r),k=DT(null),E=A=>{k.current=A,x&&(x.current=A)};w2(()=>{D||P(r)},[r,D]);let L=D?l:M;w2(()=>{k.current&&(k.current.indeterminate=C&&L===null)},[C,L]);let F=A=>{let V;if(C)switch(L){case!0:V=null;break;case!1:V=!0;break;default:V=!1;break}else V=!L;D||P(V),d?.({...A,target:{...A.target,checked:V}})},O=_i(AT,{children:[_i("label",{className:gn("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",{[P2[v]]:L,[S2[v]]:L===null},f&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:s?.checkbox,children:[Bt("input",{ref:E,type:"checkbox",disabled:f,className:"cleen-sr-only",checked:L===!0,onChange:F,id:N,name:o,...w}),L===null?Bt("span",{className:"cleen-block cleen-m-auto cleen-border cleen-border-white cleen-rounded-sm cleen-w-2.5 cleen-h-0.5 cleen-size-3"}):L?Bt(Yt,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(y||u)&&_i("div",{children:[Bt("label",{htmlFor:N,className:gn("cleen-block cleen-text-foreground",i?.label),style:s?.label,children:y}),Bt("label",{htmlFor:N,className:gn("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:s?.sublabel,children:u})]})]}),B={className:gn("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":f},i?.checkboxContainer),style:s?.checkboxContainer};return Bt("div",{className:gn("cleen",a),style:p,ref:R,children:_i("div",{className:gn(i?.container),style:s?.container,children:[m&&Bt(de,{htmlFor:N,required:n,tooltip:b,className:gn("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...s?.title,children:m}),S?Bt("div",{...B,onClick:A=>{A.target instanceof Element&&!A.target.closest("label")&&k.current?.click()},children:O}):Bt("div",{...B,children:O}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&Bt(ie,{...I})]})})});import{cn as Bl}from"@cleen/ui-core";import{forwardRef as OT,useId as _T,useMemo as VT,useState as zT}from"react";import{jsx as wr,jsxs as UT}from"react/jsx-runtime";var HT=OT(function({id:t,required:o,label:n,labelTooltip:l,checkboxes:r,allowIndeterminate:a,infoLabels:i,requiresAtLeastOneOptions:p,classNames:s,styles:d,onChange:f,...m},b){let y=_T(),u=t??y,[v,C]=zT(!1),S=VT(()=>p&&v&&r?.every(x=>x.checked===!1)?p.title:i?.errorMessage,[p,i?.errorMessage,r,v]),I=(x,w)=>{let R={...w,checked:x.target.checked},T;r&&w?.id&&(T=[...r].map(N=>N.id===w.id?R:N)),f?.(R,T),C(!0)};return wr("div",{className:Bl("cleen"),...m,ref:b,children:UT("div",{className:Bl("cleen-flex cleen-flex-col cleen-gap-2",s?.container),style:d?.container,children:[n&&wr(de,{htmlFor:u,required:o,tooltip:l,className:Bl("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...d?.label,children:n}),wr("div",{className:Bl("cleen-flex cleen-flex-col cleen-gap-3",s?.checkboxes),style:d?.checkboxes,children:r?.map((x,w)=>wr("div",{className:Bl("cleen-flex",s?.checkboxContainer),style:d?.checkboxContainer,children:wr(bn,{allowIndeterminate:a,...x,id:`${u}-${w}`,fullTriggerArea:!0,onChange:R=>I(R,x)})},x.id))}),(S||i?.infoMessage||i?.subtitle)&&wr(ie,{...i,errorMessage:S})]})})});import{cn as yn}from"@cleen/ui-core";import{forwardRef as GT,useState as M2}from"react";import{jsx as Mr,jsxs as k2}from"react/jsx-runtime";var T2=GT(({sections:e,defaultOpenIndex:t,allowExpandAll:o=!1,className:n,classNames:l,style:r,styles:a,...i},p)=>{let[s,d]=M2(t??null),[f,m]=M2(()=>new Set(e.map((u,v)=>v))),b=u=>o?f.has(u):s===u,y=(u,v)=>{v.onClick?.(),v.items?.length&&(o?m(C=>{let S=new Set(C);return S.has(u)?S.delete(u):S.add(u),S}):d(s===u?null:u))};return Mr("div",{ref:p,className:yn("cleen",n),style:{...r,width:"100%"},...i,children:Mr("div",{className:yn("cleen-w-full",l?.container),style:a?.container,children:e.map((u,v)=>k2("div",{className:yn("cleen-mb-3",l?.section),style:a?.section,children:[k2("div",{onClick:()=>y(v,u),className:yn("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:a?.sectionHeader,children:[Mr("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:u?.title}),u?.items?.length?Mr(Zt,{className:yn("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!b(v)})}):null]}),b(v)&&u?.items&&Mr("div",{className:yn("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",l?.sectionBody),style:a?.sectionBody,children:u?.items?.map((C,S)=>Mr("div",{className:yn("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:a?.item,onClick:C?.onClick,children:C?.content},C?.key??S))})]},u?.key??v))})})});T2.displayName="Collapsible";function Z0(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 N2(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as Vi}from"@cleen/ui-core";import{useEffect as $T,useState as WT}from"react";import{HexAlphaColorPicker as qT,RgbaColorPicker as KT}from"react-colorful";import{jsx as kr,jsxs as YT}from"react/jsx-runtime";var B2="rgba(0, 0, 0, 1)",R2="#000000ff",XT=({required:e,value:t,defaultValue:o,onChange:n,colorModel:l="rgba",disabled:r,label:a,labelTooltip:i,className:p,classNames:s,style:d,styles:f,infoLabels:m,...b})=>{let y=t!==void 0,u=o??(l==="hexa"?R2:B2),[v,C]=WT(u),S=y?t:v;$T(()=>{y||C(o??(l==="hexa"?R2:B2))},[o,y,l]);let I=w=>{let R=N2(w);y||C(R),n?.(R)},x=w=>{y||C(w),n?.(w)};return kr("div",{className:Vi("cleen",p),style:d,...b,children:YT("div",{className:Vi("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",s?.container),style:f?.container,children:[a&&kr(de,{required:e,tooltip:i,className:Vi("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...f?.label,children:a}),kr("div",{className:Vi("cleen-rounded-md",r&&"cleen-opacity-50 cleen-pointer-events-none",s?.picker),style:f?.picker,children:l==="hexa"?kr(qT,{color:S,onChange:x}):kr(KT,{color:Z0(S),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&kr(ie,{...m})]})})};import{cn as mt}from"@cleen/ui-core";import{forwardRef as QT,useMemo as ZT,useState as JT}from"react";var J0=(e="")=>e.replace(/\D+/g,""),E2=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function L2(e,t="other"){if(!e)return e;let o=J0(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 D2=e=>J0(e);function F2(e){let t=J0(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,a=l.getMonth()+1;return parseInt(n,10)<r||parseInt(n,10)===r&&parseInt(o,10)<a?`${o}/${n.charAt(0)}`:`${o}/${n}`}import{jsx as Ro,jsxs as A2}from"react/jsx-runtime";var jT=QT(function({labels:t,value:o,isLoading:n,errors:l,className:r,classNames:a,style:i,styles:p,infoLabels:s,onChange:d,onFieldFocus:f,...m},b){let[y,u]=JT({number:"",expiry:"",cvc:""}),v=!!o,C=v?o:y,S=ZT(()=>E2(C.number),[C.number]),I=w=>{let{name:R}=w.target,{value:T}=w.target;switch(R){case"number":T=L2(T,S);break;case"expiry":T=F2(T);break;case"cvc":T=D2(T);break;default:return}v||u(N=>({...N,[R]:T})),d?.({...o,[R]:T})},x=w=>{f?.(w.target.name)};return Ro("div",{className:mt("cleen",r),style:i,ref:b,...m,children:Ro("div",{className:mt("cleen-flex cleen-flex-wrap cleen-justify-center cleen-items-start cleen-gap-8 cleen-bg-background cleen-min-w-80 cleen-w-min cleen-border cleen-border-primary/20 cleen-rounded-[10px] cleen-shadow-lg",a?.container),style:p?.container,children:n?Ro("div",{className:mt("cleen-py-4",a?.loader?.container),style:p?.loader?.container,children:Ro(ce,{...a?.loader?.component,...p?.loader?.component})}):A2("form",{className:mt("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",a?.form?.container),style:p?.form?.container,onSubmit:w=>w.preventDefault(),children:[Ro(Ie,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:mt("cleen-w-full",a?.form?.cardNumber?.className),classNames:{...a?.form?.cardNumber?.classNames,inputContainer:mt({"cleen-border-error":l?.number},a?.form?.cardNumber?.classNames?.inputContainer),input:mt({"cleen-text-error":l?.number},a?.form?.cardNumber?.classNames?.input)},...p?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:C.number,onChange:I,onFocus:x,infoLabels:{errorMessage:l?.number}}),A2("div",{className:mt("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",a?.form?.cvcExpiryContainer),style:p?.form?.cvcExpiryContainer,children:[Ro(Ie,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:a?.form?.expiry?.className,classNames:{...a?.form?.expiry?.classNames,inputContainer:mt({"cleen-border-error":l?.expiry},a?.form?.expiry?.classNames?.inputContainer),input:mt({"cleen-text-error":l?.expiry},a?.form?.expiry?.classNames?.input)},...p?.form?.expiry,placeholder:"00/00",value:C.expiry,onChange:I,onFocus:x,infoLabels:{errorMessage:l?.expiry}}),Ro(Ie,{label:t?.cvc,name:"cvc",type:"tel",inputMode:"numeric",autoComplete:"cc-csc",maxLength:S==="amex"?4:3,className:a?.form?.cvc?.className,classNames:{...a?.form?.cvc?.classNames,inputContainer:mt({"cleen-border-error":l?.cvc},a?.form?.cvc?.classNames?.inputContainer),input:mt({"cleen-text-error":l?.cvc},a?.form?.cvc?.classNames?.input)},...p?.form?.cvc,placeholder:"***",value:C.cvc,onChange:I,onFocus:x,infoLabels:{errorMessage:l?.cvc}})]}),(s?.infoMessage||s?.errorMessage||s?.subtitle)&&Ro(ie,{...s})]})})})});import{cn as O2}from"@cleen/ui-core";import{jsx as _2}from"react/jsx-runtime";var xt=({isHorizontal:e=!0,className:t,classNames:o,style:n,styles:l,...r})=>_2("div",{className:O2("cleen",t),style:n,children:_2("div",{className:O2("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 Eo,useBodyScrollLock as eN,useCleenOverlays as V2,ZIndex as tN}from"@cleen/ui-core";import{forwardRef as oN,useCallback as nN,useEffect as j0,useId as rN,useRef as aN,useState as z2}from"react";import{createPortal as lN}from"react-dom";import{jsx as Tr,jsxs as zi}from"react/jsx-runtime";var cN={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},H2=300,e1=oN(function({title:t,subtitle:o,children:n,headerCloseBtn:l,footer:r,isOpen:a=!1,onClose:i,closeOnOverlayClick:p=!0,position:s="right",zIndex:d=tN.DRAWER,size:f="lg",p:m,gap:b,className:y,classNames:u,style:v,styles:C,...S},I){let[x,w]=z2(a),[R,T]=z2(a),N=aN(null),D=rN(),{addOverlay:M,removeOverlay:P}=V2(),k=nN(()=>{w(!1),setTimeout(()=>i?.(),H2)},[i]);return j0(()=>{if(a){T(!0);let E=setTimeout(()=>w(!0),1);return()=>clearTimeout(E)}else{w(!1);let E=setTimeout(()=>T(!1),H2);return()=>clearTimeout(E)}},[a]),j0(()=>{if(a)return M(D),()=>P(D)},[M,P,a,D]),j0(()=>{let E=L=>{let{overlays:F}=V2.getState();L.key==="Escape"&&F[F.length-1]===D&&k()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[k,D]),eN(R),R?lN(zi("div",{className:Eo("cleen",y),style:v,ref:I,...S,children:[Tr("div",{className:Eo("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",x?"cleen-opacity-100":"cleen-opacity-0",u?.overlay),onClick:()=>{p&&k()},style:{zIndex:d-1,...C?.overlay},"aria-hidden":"true"}),zi("div",{className:Eo("cleen-top-0 cleen-fixed cleen-flex cleen-flex-col cleen-gap-6 cleen-bg-surface cleen-shadow-l cleen-h-dvh cleen-transition-transform cleen-duration-300 cleen-ease-in-out cleen-transform",s==="right"?"cleen-right-0":"cleen-left-0",x?"cleen-translate-x-0":s==="right"?"cleen-translate-x-full":"-cleen-translate-x-full",u?.drawer),style:{zIndex:d,width:typeof f=="number"?f:cN[f],...b!==void 0&&{gap:b},...C?.drawer},ref:N,children:[zi("div",{className:Eo("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:[zi("div",{className:"cleen-flex cleen-flex-col",children:[Tr("span",{className:Eo("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",u?.title),style:C?.title,children:t}),Tr("span",{className:Eo("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",u?.subtitle),style:C?.subtitle,children:o})]}),l||Tr(He,{onClick:k,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),Tr("div",{className:Eo("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&&Tr("div",{className:Eo("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:b},...C?.footer},children:r})]})]}),document.body):null});import{cn as vn,useAnimateNumber as iN}from"@cleen/ui-core";import{forwardRef as sN,useEffect as pN,useMemo as dN,useRef as mN,useState as uN}from"react";import{jsx as Hi,jsxs as t1}from"react/jsx-runtime";var Nr=sN(({percentage:e,title:t,barColor:o,backgroundColor:n="rgb(var(--cleen-neutral-200))",textColor:l="rgb(var(--cleen-foreground))",invertProgressColors:r=!1,showPercentage:a=!1,renderAnimated:i=!1,renderAnimatedDuration:p=1e3,className:s,classNames:d,style:f,styles:m,...b},y)=>{let u=Math.max(0,Math.min(e,100)),v=mN(u),[C,S]=uN(i?0:u),I=iN({targetNumber:C,duration:p,disabled:!i});pN(()=>{if(i){setTimeout(()=>S(u),0);return}v.current!==u&&(S(u),v.current=u)},[u,i]);let x=dN(()=>{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 Hi("div",{ref:y,className:vn("cleen",s),style:f,children:t1("div",{className:vn("cleen-w-full",d?.container),style:m?.container,...b,children:[t&&Hi("div",{className:vn("cleen-mb-1 cleen-font-semibold cleen-text-xs",d?.title),style:m?.title,children:t}),t1("div",{className:vn("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",d?.wrapper||d?.progress),style:m?.wrapper??m?.progress,children:[Hi("div",{className:vn("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",d?.track),style:{backgroundColor:n,...m?.track},children:Hi("div",{className:vn("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",d?.fill),style:{width:`${C}%`,backgroundColor:x,...i&&{transitionDuration:`${p}ms`},...m?.fill}})}),a&&t1("span",{className:vn("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",d?.text),style:{color:l,...m?.text},children:[Math.round(I),"%"]})]})]})})});Nr.displayName="ProgressBar";import{cn as Lo,FileEntryStatus as In}from"@cleen/ui-core";import{useMemo as U2}from"react";import{Fragment as G2,jsx as Ge,jsxs as Cn}from"react/jsx-runtime";var $2=({fileEntry:e,onRemove:t,onFileClick:o,labels:n,classNames:l,styles:r})=>{let{id:a,file:i,name:p,size:s,url:d,type:f,status:m,progress:b=0,preExisting:y}=e,u=m===In.UPLOADING,v=m===In.ERROR,C=m===In.DONE,S=m===In.DELETING,I=s?s*b/100:0,x=U2(()=>{switch(m){case In.UPLOADING:return Cn(G2,{children:[Ge(sn,{className:"cleen-size-4"}),Ge("span",{children:n?.uploading})]});case In.DONE:return Ge(jo,{className:"cleen-size-4"});case In.ERROR:return Ge(Jo,{className:"cleen-size-4"});default:return null}},[m,n]),w=()=>{if(o){o(e);return}d&&window.open(d,"_blank","noopener,noreferrer")},R=p||i?.name||"",[T,N]=R.split("."),D=U2(()=>f?.startsWith("image/")&&d?Ge("img",{src:d,alt:R,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):f==="application/pdf"?Ge(nn,{className:"cleen-size-8"}):Ge(on,{className:"cleen-size-8"}),[R,f,d]);return Ge(Pe,{p:12,className:l?.card?.className,classNames:{...l?.card?.classNames,container:Lo(l?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":C})},...r?.card,onClick:C?w:void 0,children:Cn("div",{className:Lo("cleen-space-y-1",l?.container),style:r?.container,children:[Cn("div",{className:Lo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.nameContainer),style:r?.nameContainer,children:[D,Cn("div",{className:Lo("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",l?.name),style:{maxWidth:D?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...r?.name},children:[Ge("span",{className:"cleen-truncate cleen-shrink",children:T}),Cn("span",{className:"cleen-whitespace-nowrap",children:[".",N]})]}),Ge("div",{className:"cleen-flex-1"}),!u&&(S?Ge(ce,{color:"rgb(var(--cleen-error))",className:Lo("cleen-shrink-0")}):Ge(dt,{className:Lo("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?.(a)}}))]}),Cn("div",{className:Lo("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",l?.statusContainer),style:r?.statusContainer,children:[!!s&&(u?Ge("p",{children:n?.uploadProgress?.(I,s)}):C&&Ge("p",{children:n?.uploaded?.(s)})),!y&&Cn(G2,{children:[Ge("span",{children:"|"}),Ge("div",{className:Lo("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":v,"cleen-text-success":C},l?.statusText),style:r?.statusText,children:x})]})]}),u&&Ge(Nr,{barColor:"rgb(var(--cleen-primary))",percentage:b,showPercentage:!0,...l?.progressBar,...r?.progressBar})]})},a)};var Ui=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 W2={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${Ui(e)} of ${Ui(t)}`,uploaded:e=>Ui(e)};var q2={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 Rl=(r=>(r.PENDING="pending",r.IN_PROGRESS="inProgress",r.DONE="done",r.ERROR="error",r.REMOVING="removing",r))(Rl||{});import{cn as xn}from"@cleen/ui-core";import{jsx as Do,jsxs as K2}from"react/jsx-runtime";var o1=({item:e,labels:t,classNames:o,styles:n})=>{let{status:l,progress:r=0,icon:a,name:i}=e,p=l==="inProgress",s=l==="done",d=l==="error",f=l==="removing",m=l==="pending";return K2("div",{className:xn("cleen-flex cleen-items-center cleen-gap-3",o?.container),style:n?.container,children:[a,K2("div",{className:xn("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",o?.infoContainer),style:n?.infoContainer,children:[Do("p",{className:xn("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",o?.name),style:n?.name,children:i}),p&&Do(Nr,{barColor:"rgb(var(--cleen-primary))",percentage:r,...o?.progressBar,...n?.progressBar})]}),p&&Do("span",{className:xn("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",o?.progressText),style:n?.progressText,children:t?.itemProgress?.(r)}),f&&Do(ce,{color:"rgb(var(--cleen-error))"}),s&&Do(jo,{className:xn("cleen-size-5 cleen-shrink-0 cleen-text-success",o?.statusIcon),style:n?.statusIcon}),d&&Do(Jo,{className:xn("cleen-size-5 cleen-shrink-0 cleen-text-error",o?.statusIcon),style:n?.statusIcon}),m&&Do("div",{className:xn("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((b,y)=>Do("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${y*.1}s`}},y))})]})};var El=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(El||{}),Ll=["notStarted","inProgress","completed","all"];import{cn as Gi}from"@cleen/ui-core";import{jsx as X2,jsxs as fN}from"react/jsx-runtime";var n1=({value:e,onChange:t,counts:o,labels:n,classNames:l,styles:r})=>X2("div",{role:"group","aria-label":n?.statusFilter,className:Gi("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:Ll.map(a=>{let i=a===e;return fN("button",{type:"button","aria-pressed":i,onClick:()=>t(a),className:Gi("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&&Gi("cleen-bg-background cleen-text-foreground cleen-shadow-sm",l?.optionActive)),style:{...r?.option,...i&&r?.optionActive},children:[n?.statusFilterOptions?.[a],o&&X2("span",{className:Gi("cleen-text-neutral-400 cleen-tabular-nums",l?.optionCount),style:r?.optionCount,children:o[a]})]},a)})});var Y2={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 Q2=e=>e.status==="inProgress"||e.status==="pending",Z2=e=>e.length>0&&e.every(t=>t.status==="done"),r1=(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 hN,cn as Pt,useControlled as J2,useDisclosure as gN}from"@cleen/ui-core";import{forwardRef as bN,useEffect as j2,useMemo as a1,useRef as yN}from"react";import{jsx as Rt,jsxs as l1}from"react/jsx-runtime";var c1=bN(function({items:t,title:o,maxVisibleItems:n=5,isExpanded:l,defaultExpanded:r=!1,onExpandedChange:a,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:p,showHeader:s=!0,showStatusFilter:d=!1,showStatusFilterCounts:f=!1,statusFilter:m,defaultStatusFilter:b="inProgress",onStatusFilterChange:y,labels:u,className:v,classNames:C,style:S,styles:I,...x},w){let{isOpen:R,toggle:T,close:N}=gN(),{value:D,handleChange:M}=J2({value:l,defaultValue:r,onChange:a});j2(()=>{t.length>0&&N()},[t.length,N]);let P=hN(Y2,u),{value:k,handleChange:E}=J2({value:m,defaultValue:b,onChange:y}),L=yN(i);L.current=i;let F=Z2(t);j2(()=>{if(p==null||!L.current||!F)return;if(p<=0){L.current();return}let W=setTimeout(()=>L.current?.(),p);return()=>clearTimeout(W)},[F,p]);let O=a1(()=>t.filter(Q2).length,[t]),B=a1(()=>!d||!k?t:t.filter(W=>r1(W,k)),[t,d,k]),A=a1(()=>{if(f)return Ll.reduce((W,j)=>({...W,[j]:t.filter(G=>r1(G,j)).length}),{})},[t,f]);if(!t.length)return null;let V=Math.max(B.length-n,0),U=D||!V?B:B.slice(0,n),_=o??(O?P?.processing?.(O):P?.completed);return Rt(Pe,{p:16,gap:12,ref:w,className:Pt(v,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:Pt(C?.card?.classNames?.childrenContainer,{"cleen-hidden":R})},style:S,styles:I?.card?.styles,header:s?{hasDivider:!R,content:l1("div",{className:Pt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",C?.header),style:I?.header,children:[Rt("p",{className:Pt("cleen-font-semibold cleen-text-foreground cleen-text-sm",C?.title),style:I?.title,children:_}),l1("div",{className:Pt("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:I?.headerButtons,children:[Rt("button",{type:"button","aria-label":P?.contract,onClick:T,className:Pt("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:Rt(Zt,{className:Pt("cleen-size-5 cleen-transition-transform",R&&"cleen-rotate-180")})}),i&&Rt("button",{type:"button","aria-label":P?.dismiss,onClick:i,className:Pt("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:Rt(He,{className:"cleen-size-4"})})]})]})}:void 0,...x,children:l1("div",{className:Pt("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:I?.list,children:[d&&k&&Rt(n1,{value:k,onChange:E,counts:A,labels:P,classNames:C?.statusFilter,styles:I?.statusFilter}),!U.length&&Rt("p",{className:Pt("cleen-text-muted-foreground cleen-text-xs",C?.emptyStatusFilter),style:I?.emptyStatusFilter,children:P?.emptyStatusFilter}),U.map(W=>Rt(o1,{item:W,labels:P,classNames:C?.row,styles:I?.row},W.id)),!!V&&Rt("button",{type:"button","aria-expanded":D,onClick:()=>M(!D),className:Pt("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:D?P?.showLess:P?.showMore?.(V)})]})})});import{FileEntryStatus as oo}from"@cleen/ui-core";var vN=[{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"]}],eI={label:"FILE",className:"cleen-bg-neutral-500"},IN={[oo.QUEUED]:"inProgress",[oo.UPLOADING]:"inProgress",[oo.PAUSED]:"inProgress",[oo.DONE]:"done",[oo.ERROR]:"error",[oo.DELETING]:"removing"},i1=e=>e.name||e.file?.name||"",tI=e=>{let t=i1(e).split(".").pop()?.toLowerCase()??"",o=vN.find(({extensions:n})=>n.includes(t));return o?{label:o.label,className:o.className}:{label:t?t.slice(0,4).toUpperCase():eI.label,className:eI.className}},oI=e=>e.status===oo.QUEUED||e.status===oo.UPLOADING||e.status===oo.PAUSED,nI=e=>IN[e.status]??"pending",rI=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as CN}from"@cleen/ui-core";import{jsx as xN}from"react/jsx-runtime";var aI=({fileEntry:e,className:t,style:o})=>{let n=tI(e);return xN("div",{className:CN("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 PN}from"react/jsx-runtime";var lI=(e,t)=>({id:e.id,name:i1(e),progress:e.progress,status:nI(e),icon:PN(aI,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as SN}from"@cleen/ui-core";import{forwardRef as wN,useMemo as cI}from"react";import{jsx as MN}from"react/jsx-runtime";var s1=wN(function({files:t,title:o,maxVisibleFiles:n=5,labels:l,classNames:r,styles:a,...i},p){let s=cI(()=>rI(t),[t]),d=SN(q2,l),f=cI(()=>s.map(y=>lI(y,{className:r?.row?.typeBadge,style:a?.row?.typeBadge})),[s,r?.row?.typeBadge,a?.row?.typeBadge]),m=s.filter(oI).length,b=o??(m?d?.uploading?.(m):d?.completed);return MN(c1,{ref:p,items:f,title:b,maxVisibleItems:n,labels:{showMore:d?.showMore,showLess:d?.showLess,dismiss:d?.dismiss,contract:d?.contract,itemProgress:d?.uploadProgress},classNames:r,styles:a,...i})});import{applyDefaults as kN,cn as Qe,FileEntryStatus as TN,useFileUpload as NN}from"@cleen/ui-core";import{forwardRef as BN,useEffect as RN,useMemo as iI,useRef as sI,useState as p1}from"react";import{createPortal as EN}from"react-dom";import{jsx as Ze,jsxs as $i}from"react/jsx-runtime";var LN=BN(function({required:t,icon:o,files:n,initialFiles:l=[],onFilesChange:r,onFileUpload:a,onFilesUpload:i,onFileRemove:p,onFileClick:s,infoLabels:d,containerRef:f,label:m,labelTooltip:b,labels:y,showUploadedFiles:u=!1,showProgressTracker:v=!1,progressTracker:C,className:S,classNames:I,style:x,styles:w,multiple:R,disabled:T,loadingWhileUploading:N,isLoading:D,readOnly:M,onChange:P,id:k,name:E,...L},F){let O=sI(null),{files:B,addFiles:A,remove:V}=NN({files:n,onFilesChange:r,initialFiles:l,onFileUpload:a,onFilesUpload:i,onFileRemove:p}),U=iI(()=>D||N&&Array.from(B.values()).some(Z=>Z.status===TN.UPLOADING),[B,N,D]),[_,W]=p1(!1),[j,G]=p1([]),[H,X]=p1(!1),$=sI(new Set(B.keys()));RN(()=>{let Z=Array.from(B.keys()),Re=Z.filter(Oe=>!$.current.has(Oe));$.current=new Set(Z),G(Oe=>{let Se=Oe.filter(Ye=>B.has(Ye));return Re.length?H?Re:[...Se,...Re.filter(Ye=>!Se.includes(Ye))]:Se.length===Oe.length?Oe:Se}),Re.length&&X(!1)},[B,H]);let Y=iI(()=>j.map(Z=>B.get(Z)).filter(Z=>!!Z),[j,B]),ae=()=>{X(!0),G([]),C?.onDismiss?.()},be=!T&&!M&&!U,pe=Z=>{let Re=Array.from(Z.target.files??[]);A(Re),P?.(Z)},Me=Z=>{V(Z)},q=()=>{be&&O.current?.click()},Q=Z=>{if(!Z.length)return;let Re=R?Z:Z.slice(0,1);if(!O.current||typeof DataTransfer>"u"){A(Re);return}let Oe=new DataTransfer;Re.forEach(Se=>Oe.items.add(Se));try{O.current.files=Oe.files}catch{A(Re);return}A(Re),P?.({target:O.current,currentTarget:O.current})},z=Z=>{Z.preventDefault(),Z.stopPropagation(),W(!1),be&&Q(Array.from(Z.dataTransfer.files??[]))},re=Z=>{Z.preventDefault(),Z.stopPropagation(),be&&W(!0)},se=Z=>{Z.preventDefault(),Z.stopPropagation(),be&&W(!0)},ye=Z=>{Z.preventDefault(),Z.stopPropagation(),be&&W(!1)},ue=Z=>{be&&(Z.key!=="Enter"&&Z.key!==" "||(Z.preventDefault(),q()))},xe=kN(W2,y);return $i("div",{className:Qe("cleen",S),style:x,ref:f,children:[Ze("input",{id:k||E,name:E,ref:Z=>{if(O.current=Z,typeof F=="function"){F(Z);return}F&&(F.current=Z)},type:"file",multiple:R,disabled:T||U,readOnly:M,className:Qe("cleen-hidden",I?.input),style:w?.input,onChange:pe,...L}),m&&Ze(de,{htmlFor:k||E,required:t,tooltip:b,className:Qe("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...w?.label,children:m}),$i("div",{className:Qe("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":U}),children:[Ze(Pe,{tabIndex:be?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":T||M||U,onClick:q,onKeyDown:ue,onDrop:z,onDragEnter:re,onDragOver:se,onDragLeave:ye,p:16,className:Qe("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:Qe("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,_&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:Qe({"cleen-blur-sm":U},I?.card?.classNames?.childrenContainer)},style:w?.card?.style,styles:{...w?.card?.styles,container:{...w?.card?.styles?.container,..._?w?.cardDragActive:void 0}},children:$i("div",{className:Qe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:w?.dropArea,"aria-disabled":T||M||U,children:[Ze("div",{className:Qe("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-border cleen-border-border cleen-rounded-xl cleen-size-11 cleen-text-neutral-700",I?.iconContainer),style:w?.iconContainer,children:o||Ze(sn,{className:"cleen-size-5"})}),$i("p",{className:Qe("cleen-font-medium cleen-text-sm",I?.textContainer),style:w?.textContainer,children:[Ze("span",{className:Qe(T?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:w?.primaryText,children:xe?.primaryText})," ",Ze("span",{className:Qe("cleen-text-foreground",I?.secondaryText),style:w?.secondaryText,children:xe?.secondaryText})]}),Ze("p",{className:Qe("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:w?.helperText,children:xe?.helperText})]})}),U&&Ze(ce,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),u&&B.size>0&&Ze("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(B.values()).map(Z=>Ze($2,{fileEntry:Z,onRemove:Me,onFileClick:s,labels:xe,classNames:I?.fileCard,styles:w?.fileCard},Z.id))}),v&&!H&&Y.length>0&&EN(Ze("div",{className:"cleen",children:Ze(s1,{...C,files:Y,onDismiss:ae,className:Qe("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",I?.progressTracker?.className),classNames:I?.progressTracker?.classNames,...w?.progressTracker})}),document.body),(d?.errorMessage||d?.infoMessage||d?.subtitle)&&Ze(ie,{...d})]})});import{cn as je,useControlled as yI}from"@cleen/ui-core";import{forwardRef as GN,Fragment as $N,useMemo as vI,useRef as WN,useState as qN}from"react";import{cn as d1,useDisclosure as DN,useOutsideClick as FN,usePositionClose as AN,ZIndex as ON}from"@cleen/ui-core";import{forwardRef as _N,useRef as pI}from"react";import{createPortal as VN}from"react-dom";import{jsx as m1,jsxs as zN}from"react/jsx-runtime";var no=_N(function({isOpen:t,onOpenChange:o,content:n,position:l="bottom-left",offset:r,zIndex:a=ON.POPOVER,portalContainer:i,children:p,className:s,classNames:d,style:f,styles:m,...b},y){let{isOpen:u,toggle:v,close:C}=DN({value:t,setValue:o}),S=pI(null),I=pI(null),{positionStyles:x,isMounted:w}=AN({triggerRef:S,targetRef:I,position:l,isOpen:u,offset:r,container:i});FN({refs:[S,I],handler:C,enabled:u});let R=T=>{T.stopPropagation(),v()};return zN("div",{className:d1("cleen",s),style:f,ref:y,...b,children:[m1("div",{ref:S,onClick:R,className:d1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:p}),u&&VN(m1("div",{className:"cleen",onClick:T=>T.stopPropagation(),onPointerDown:T=>T.stopPropagation(),onMouseDown:T=>T.stopPropagation(),onTouchStart:T=>T.stopPropagation(),children:m1("div",{ref:I,className:d1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!w},d?.popover),style:{zIndex:a,top:`${x.top}px`,left:`${x.left}px`,...m?.popover},onClick:T=>T.stopPropagation(),children:n})}),i??document.body)]})});import{cn as u1}from"@cleen/ui-core";import{Fragment as HN,useEffect as dI,useMemo as mI,useRef as UN,useState as f1}from"react";import{jsx as Et,jsxs as Br}from"react/jsx-runtime";var uI=({sections:e,labels:t,onAddRow:o,onSearchChange:n,isLoading:l=!1,className:r,style:a,popoverClassName:i,popoverStyle:p})=>{let[s,d]=f1(!1),[f,m]=f1(""),[b,y]=f1(0),u=UN(null),v=mI(()=>{let w=n?"":f.trim().toLowerCase();return e.filter(R=>!R.readOnly&&R.options?.length).map(R=>{let T=new Set(R.rows.map(N=>N.id));return{section:R,options:(R.options??[]).filter(N=>!T.has(N.id)&&(!w||N.label.toLowerCase().includes(w)||N.meta?.toLowerCase().includes(w)))}}).filter(R=>R.options.length)},[e,f,n]),C=mI(()=>v.flatMap(w=>w.options.map(R=>({sectionId:w.section.id,option:R}))),[v]);dI(()=>{y(0),n?.(f.trim())},[f]),dI(()=>{if(!s){m("");return}requestAnimationFrame(()=>u.current?.focus())},[s]);let S=w=>{w&&(o(w),d(!1))},I=w=>{w.key==="ArrowDown"?(w.preventDefault(),y(R=>Math.min(R+1,C.length-1))):w.key==="ArrowUp"?(w.preventDefault(),y(R=>Math.max(R-1,0))):w.key==="Enter"?(w.preventDefault(),S(C[b])):w.key==="Escape"&&d(!1)},x=-1;return Et(no,{isOpen:s,onOpenChange:d,position:"top-left",classNames:{popover:u1("cleen-w-80",i)},styles:{popover:p},content:Br("div",{className:"cleen-flex cleen-flex-col",children:[Et("div",{className:"cleen-border-b cleen-border-border cleen-p-2",children:Et(Ie,{ref:u,value:f,placeholder:t.searchPlaceholder,leftIcon:Et(Ct,{size:14}),onChange:w=>m(w.target.value),onKeyDown:I,role:"combobox","aria-expanded":s,"aria-autocomplete":"list"})}),Br("div",{className:"cleen-max-h-72 cleen-overflow-y-auto cleen-py-1",role:"listbox",children:[l&&Et("div",{className:"cleen-flex cleen-justify-center cleen-py-3",children:Et(ce,{})}),!l&&!C.length&&Et("div",{className:"cleen-px-3 cleen-py-4 cleen-text-center cleen-text-sm cleen-text-muted-foreground",children:t.noOptions}),v.map(w=>Br(HN,{children:[Br("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5 cleen-px-3 cleen-pb-1 cleen-pt-2 cleen-text-xs cleen-font-medium cleen-uppercase cleen-text-muted-foreground",children:[w.section.icon,w.section.label]}),w.options.map(R=>{x+=1;let T=x;return Br("button",{type:"button",role:"option","aria-selected":T===b,onMouseEnter:()=>y(T),onClick:()=>S({sectionId:w.section.id,option:R}),className:u1("cleen-flex cleen-w-full cleen-flex-col cleen-px-3 cleen-py-1.5 cleen-text-left",T===b&&"cleen-bg-muted"),children:[Et("span",{className:"cleen-text-sm cleen-text-foreground",children:R.label}),R.meta&&Et("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:R.meta})]},R.id)})]},w.section.id))]})]}),children:Br(te,{variant:"secondary",className:u1("cleen-gap-1.5",r),style:a,children:[Et(an,{size:14}),t.add]})})};import{cn as Wi}from"@cleen/ui-core";import{useEffect as hI,useRef as Sn,useState as v1}from"react";var Pn=(e,t)=>`${e}|${t}`,Rr=(e,t=1)=>+`${Math.round(+`${e.toFixed(12)}e${t}`)}e-${t}`,Je=(e,t=1)=>Rr(e,t).toFixed(t),h1=e=>{let t=/^(\d{1,2}):([0-5]\d)$/.exec(e??"");if(!t)return null;let o=Number(t[1]),n=Number(t[2]);return o>23||n>59?null:o*60+n},g1=(e,t,o)=>{let n=h1(e),l=h1(t);if(n===null||l===null)return null;let r=l-n+(o?1440:0);return r>0?r:null},fI=e=>{let t=Math.floor(e/60),o=e%60;return[t?`${t} h`:"",o?`${o} min`:""].filter(Boolean).join(" ")},b1=e=>{let t=e.trim().replace(",",".");if(!t)return null;let o=/^(\d{1,2}):([0-5]\d)$/.exec(t);return o?Number(o[1])+Number(o[2])/60:/^\d*\.?\d+$|^\d+\.$/.test(t)?Number(t):Number.NaN},Dl=e=>{let t={};return typeof e.value=="number"&&e.value>0&&(t.value=e.value),e.note?.trim()&&(t.note=e.note.trim()),e.start&&(t.start=e.start),e.end&&(t.end=e.end),e.endsNextDay&&(e.start||e.end)&&(t.endsNextDay=!0),Object.keys(t).length?t:null},y1=(e,t,o)=>{let n={rows:{},sections:{},sectionColumns:{},columns:{},grand:0};return e.forEach(l=>{n.sections[l.id]=0,n.sectionColumns[l.id]={},l.rows.forEach(r=>{n.rows[r.id]=0,t.forEach(a=>{let i=o[Pn(r.id,a.id)]?.value??0;n.rows[r.id]+=i,n.sections[l.id]+=i,n.sectionColumns[l.id][a.id]=(n.sectionColumns[l.id][a.id]??0)+i,n.columns[a.id]=(n.columns[a.id]??0)+i,n.grand+=i})})}),n};import{jsx as we,jsxs as ro}from"react/jsx-runtime";var gI=({cellKey:e,column:t,rowLabel:o,cell:n,min:l,max:r,precision:a,density:i,notePreviews:p,noteMaxLength:s,readOnly:d,flash:f,isDetailOpen:m,labels:b,onDetailOpenChange:y,onCommit:u,onNavigate:v,className:C,style:S,popoverClassName:I,popoverStyle:x})=>{let w=typeof n?.value=="number"?Je(n.value,a):"",[R,T]=v1(w),[N,D]=v1(null),[M,P]=v1({}),k=Sn(null),E=Sn(!1),L=Sn(!1),F=Sn(m);F.current=m;let O=Sn(null),B=Sn(null),A=Sn(null);hI(()=>{T(w),D(null),B.current=null},[w]),hI(()=>{m&&(P(A.current??n??{}),A.current=null,E.current&&(E.current=!1,requestAnimationFrame(()=>k.current?.focus())))},[m]);let V=Je(l,a),U=Je(r,a),_=!!(n?.start&&n?.end),W=i==="compact",j=z=>{if(z===null)return null;if(Number.isNaN(z))return b.invalidError;let re=Rr(z,a);return re<l||re>r?b.rangeError(V,U):null},G=()=>{if(R===w||R===B.current)return D(null),n??{};let z=b1(R),re=j(z);if(D(re),re)return!1;let se=Dl({note:n?.note,value:z===null?void 0:Rr(z,a)});return B.current=R,F.current&&P(ye=>({...ye,value:se?.value,start:void 0,end:void 0,endsNextDay:void 0})),u(se),se??{}},H=()=>{if(L.current){L.current=!1;return}F.current&&R===O.current||G()},X=(z=!1)=>{if(d)return;let re=G();O.current=R,F.current=!0,A.current=re===!1?n??{}:re,E.current=z,y(!0)},$=z=>{if(z.key==="Escape"){T(w),D(null),L.current=!0,z.currentTarget.blur(),L.current=!1;return}if(z.key==="n"||z.key==="N"){z.preventDefault(),X(!0);return}if(z.key==="."&&z.ctrlKey){z.preventDefault(),X();return}let se={ArrowUp:"up",ArrowDown:"down",Enter:"down"}[z.key];se&&v&&(z.preventDefault(),G()!==!1&&v(se))},Y=g1(M.start,M.end,M.endsNextDay),ae=Y===null?null:Rr(Y/60,a),be=M.start&&M.end&&Y===null?b.timeError:null,pe=ae!==null?j(ae):null,Me=be??pe,q=z=>{if(z&&!Me){let re=ae??n?.value,se=Dl({...M,value:re,note:M.note?.slice(0,s)}),ye=JSON.stringify(Dl(n??{}));JSON.stringify(se)!==ye&&u(se),ae!=null&&(T(se?.value===void 0?"":Je(se.value,a)),D(null),B.current=null)}y(!1)},Q=ro("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-p-3",onKeyDown:z=>{z.key==="Escape"&&(z.stopPropagation(),y(!1))},children:[ro("div",{className:"cleen-flex cleen-flex-col",children:[we("span",{className:"cleen-text-sm cleen-font-medium cleen-text-foreground",children:t.title??t.label}),we("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:o})]}),ro("div",{className:"cleen-grid cleen-grid-cols-2 cleen-gap-2",children:[we(Ie,{type:"time",label:b.start,value:M.start??"",onChange:z=>P(re=>({...re,start:z.target.value}))}),we(Ie,{type:"time",label:b.end,value:M.end??"",onChange:z=>P(re=>({...re,end:z.target.value}))})]}),ro("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-gap-2",children:[we(bn,{label:b.endsNextDay,checked:!!M.endsNextDay,onChange:z=>P(re=>({...re,endsNextDay:z.target.checked}))}),(M.start||M.end)&&we(te,{variant:"borderless",className:"cleen-text-xs cleen-px-2 cleen-py-1",onClick:()=>P(z=>({...z,start:void 0,end:void 0,endsNextDay:void 0})),children:b.clearTimes})]}),Me?we("span",{className:"cleen-text-xs cleen-text-error",role:"alert",children:Me}):Y!==null&&ae!==null&&ro("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:[fI(Y)," ="," ",we("span",{className:"cleen-font-medium cleen-text-foreground",children:b.formatHours(Number(Je(ae,a)))})]}),we(vl,{ref:k,label:b.note,placeholder:b.notePlaceholder,value:M.note??"",maxLength:s,onChange:z=>P(re=>({...re,note:z})),minHeight:64}),we("div",{className:"cleen-flex cleen-justify-end",children:we(te,{variant:"primary",disabled:!!Me,onClick:()=>q(!0),children:b.done})})]});return we("td",{className:Wi("cleen-group cleen-relative cleen-border-b cleen-border-border cleen-align-top cleen-transition-colors",W?"cleen-px-1 cleen-py-1":"cleen-px-1.5 cleen-py-1.5",t.tone==="accent"&&"cleen-bg-primary/10",t.tone==="muted"&&"cleen-bg-surface",f&&"cleen-bg-primary-100",C),style:S,"data-cell-key":e,children:ro("div",{className:"cleen-flex cleen-flex-col cleen-gap-0.5",children:[ro("div",{className:"cleen-relative cleen-flex cleen-items-center",children:[_&&we(ha,{size:12,className:"cleen-absolute cleen-left-1.5 cleen-text-muted-foreground cleen-pointer-events-none","aria-hidden":!0}),we("input",{type:"text",inputMode:"decimal","aria-label":`${o}, ${t.title??String(t.label)}`,"aria-invalid":!!N,title:N??void 0,readOnly:d,value:R,placeholder:d?"":"\u2013",onChange:z=>{T(z.target.value),N&&D(null)},onBlur:H,onKeyDown:$,"data-matrix-input":e,className:Wi("cleen-w-full cleen-min-w-0 cleen-rounded-md cleen-border cleen-bg-background cleen-text-right cleen-text-sm cleen-text-foreground cleen-tabular-nums cleen-outline-none cleen-transition-colors",W?"cleen-h-7 cleen-px-1.5":"cleen-h-8 cleen-px-2",_&&"cleen-pl-5",!d&&"cleen-pr-6",N?"cleen-border-error":"cleen-border-transparent hover:cleen-border-border focus:cleen-border-primary",!R&&"placeholder:cleen-text-neutral-300")}),!d&&we(no,{className:"cleen-absolute cleen-right-0.5",isOpen:m,onOpenChange:z=>z?X():q(!0),position:"bottom-right",content:m?Q:null,classNames:{popover:Wi("cleen-w-72",I)},styles:{popover:x},children:we("button",{type:"button","aria-label":b.details,title:b.details,tabIndex:-1,className:Wi("cleen-flex cleen-h-6 cleen-w-5 cleen-items-center cleen-justify-center cleen-rounded cleen-text-muted-foreground hover:cleen-bg-muted hover:cleen-text-foreground",m?"cleen-opacity-100":"cleen-opacity-0 group-hover:cleen-opacity-100 group-focus-within:cleen-opacity-100"),children:we(Ia,{size:14})})})]}),N&&we("span",{className:"cleen-text-[10px] cleen-leading-tight cleen-text-error",children:N}),n?.note&&p&&!W?ro("button",{type:"button",onClick:()=>X(!0),title:n.note,disabled:d,className:"cleen-flex cleen-max-w-full cleen-items-center cleen-gap-1 cleen-rounded cleen-px-1 cleen-text-left cleen-text-[11px] cleen-text-muted-foreground hover:cleen-bg-muted hover:cleen-text-foreground",children:[we(rn,{size:11,className:"cleen-shrink-0"}),we("span",{className:"cleen-truncate",children:n.note})]}):n?.note?we("button",{type:"button",onClick:()=>X(!0),title:n.note,"aria-label":n.note,disabled:d,className:"cleen-ml-auto cleen-mr-1 cleen-text-muted-foreground hover:cleen-text-foreground",children:we(rn,{size:11})}):!d&&p&&!W&&typeof n?.value=="number"&&ro("button",{type:"button",tabIndex:-1,onClick:()=>X(!0),className:"cleen-flex cleen-items-center cleen-gap-1 cleen-rounded cleen-px-1 cleen-text-[11px] cleen-text-muted-foreground cleen-opacity-0 group-hover:cleen-opacity-100 hover:cleen-bg-muted hover:cleen-text-foreground",children:[we(rn,{size:11}),b.addNote]})]})})};var bI={corner:"",total:"Total",footer:"Daily total",add:"Add row",searchPlaceholder:"Search",noOptions:"No matches found",emptySection:"No rows have values in this period.",details:"Start and end time, note",start:"Start",end:"End",endsNextDay:"Ends next day",clearTimes:"Clear times",note:"Note (optional)",notePlaceholder:"Describe the work performed",addNote:"Add note",done:"Done",removeRow:"Remove row",collapse:"Collapse",expand:"Expand",hint:"",rangeError:(e,t)=>`Enter a value from ${e} to ${t}`,invalidError:"Enter a number",timeError:"End time must be after the start time",formatHours:e=>`${e} h`};import{jsx as he,jsxs as ut}from"react/jsx-runtime";var I1=e=>typeof e=="string"||typeof e=="number"?String(e):"",II={},CI=[],KN=GN(function({columns:t,sections:o,values:n,defaultValues:l,onValuesChange:r,onCellChange:a,onAddRow:i,onRemoveRow:p,onAddRowSearchChange:s,isAddRowLoading:d=!1,min:f=.1,max:m=24,precision:b=1,density:y="comfortable",notePreviews:u=!0,noteMaxLength:v=1e3,readOnly:C=!1,isLoading:S=!1,flash:I,showFooter:x=!0,showHint:w=!0,collapsedSections:R,defaultCollapsedSections:T,onCollapsedSectionsChange:N,labels:D,className:M,classNames:P,style:k,styles:E,...L},F){let O={...bI,...D},B=WN(null),[A,V]=qN(null),{value:U=II,handleChange:_}=yI({value:n,defaultValue:l??II,onChange:r}),{value:W=CI,handleChange:j}=yI({value:R,defaultValue:T??CI,onChange:N}),G=vI(()=>y1(o,t,U),[o,t,U]),H=q=>q?Je(q,b):"",X=vI(()=>o.filter(q=>!W.includes(q.id)).flatMap(q=>q.rows.map(Q=>Q.id)),[o,W]),$=(q,Q,z,re)=>{let se=Pn(Q,z),ye=U[se]??null,ue={...U};re?ue[se]=re:delete ue[se],_(ue),a?.({key:se,sectionId:q,rowId:Q,columnId:z,value:re,previous:ye})},Y=(q,Q,z)=>{let re=X.indexOf(q),se=t.findIndex(Z=>Z.id===Q),ye=X[re+(z==="down"?1:z==="up"?-1:0)],ue=t[se+(z==="right"?1:z==="left"?-1:0)];if(!ye||!ue)return;let xe=B.current?.querySelector(`[data-matrix-input="${CSS.escape(Pn(ye,ue.id))}"]`);xe?.focus(),xe?.select()},ae=q=>j(W.includes(q)?W.filter(Q=>Q!==q):[...W,q]),be=y==="compact",pe="cleen-sticky cleen-left-0 cleen-z-[1] cleen-bg-background cleen-border-r cleen-border-border",Me=!C&&!!i&&o.some(q=>!q.readOnly&&(s||q.options?.length));return ut("div",{ref:F,className:je("cleen cleen-relative cleen-flex cleen-flex-col cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background",M,P?.container),style:{...k,...E?.container},...L,children:[he("div",{className:"cleen-overflow-x-auto",children:ut("table",{ref:B,className:je("cleen-w-full cleen-border-separate cleen-border-spacing-0 cleen-text-sm",P?.table),style:E?.table,children:[he("thead",{children:ut("tr",{children:[he("th",{scope:"col",className:je(pe,"cleen-min-w-56 cleen-border-b cleen-px-3 cleen-py-2 cleen-text-left cleen-text-xs cleen-font-medium cleen-text-muted-foreground",P?.headerCell),style:E?.headerCell,children:O.corner}),t.map(q=>ut("th",{scope:"col",title:q.title,className:je("cleen-min-w-20 cleen-border-b cleen-border-border cleen-px-2 cleen-py-2 cleen-text-center cleen-font-medium",q.tone==="accent"&&"cleen-bg-primary/10 cleen-text-primary",q.tone==="muted"&&"cleen-bg-surface cleen-text-muted-foreground",(!q.tone||q.tone==="default")&&"cleen-text-foreground",P?.headerCell),style:E?.headerCell,children:[he("div",{className:"cleen-text-xs",children:q.label}),q.sublabel&&he("div",{className:"cleen-text-[11px] cleen-font-normal cleen-text-muted-foreground",children:q.sublabel})]},q.id)),he("th",{scope:"col",className:je("cleen-min-w-20 cleen-border-b cleen-border-l cleen-border-border cleen-bg-muted cleen-px-3 cleen-py-2 cleen-text-right cleen-text-xs cleen-font-medium cleen-text-foreground",P?.headerCell),style:E?.headerCell,children:O.total})]})}),he("tbody",{children:o.map(q=>{let Q=W.includes(q.id);return ut($N,{children:[ut("tr",{className:je("cleen-bg-muted",P?.sectionRow),style:E?.sectionRow,children:[he("th",{scope:"rowgroup",className:je(pe,"cleen-bg-muted cleen-border-b cleen-px-2 cleen-py-1.5 cleen-text-left"),children:ut("button",{type:"button",onClick:()=>ae(q.id),"aria-expanded":!Q,"aria-label":`${Q?O.expand:O.collapse} ${I1(q.label)}`,className:"cleen-flex cleen-w-full cleen-items-center cleen-gap-2 cleen-text-xs cleen-font-semibold cleen-uppercase cleen-text-foreground",children:[he(en,{size:14,className:je("cleen-transition-transform",Q&&"-cleen-rotate-90")}),q.icon,he("span",{children:q.label}),he("span",{className:"cleen-rounded-full cleen-bg-background cleen-px-1.5 cleen-text-[11px] cleen-font-medium cleen-normal-case cleen-text-muted-foreground",children:q.rows.length})]})}),t.map(z=>he("td",{className:"cleen-border-b cleen-border-border cleen-px-2 cleen-py-1.5 cleen-text-right cleen-text-xs cleen-font-medium cleen-tabular-nums cleen-text-muted-foreground",children:H(G.sectionColumns[q.id]?.[z.id]??0)},z.id)),he("td",{className:"cleen-border-b cleen-border-l cleen-border-border cleen-px-3 cleen-py-1.5 cleen-text-right cleen-text-xs cleen-font-semibold cleen-tabular-nums cleen-text-foreground",children:Je(G.sections[q.id]??0,b)})]}),!Q&&!q.rows.length&&he("tr",{children:he("td",{colSpan:t.length+2,className:"cleen-border-b cleen-border-border cleen-px-3 cleen-py-3 cleen-text-sm cleen-text-muted-foreground",children:q.emptyText??O.emptySection})}),!Q&&q.rows.map(z=>{let re=C||!!(q.readOnly||z.readOnly),se=G.rows[z.id]??0,ye=!re&&!!p&&z.removable!==!1&&!t.some(ue=>U[Pn(z.id,ue.id)]);return ut("tr",{className:je("cleen-group/row",P?.row),style:E?.row,children:[he("th",{scope:"row",className:je(pe,"cleen-border-b cleen-text-left cleen-font-normal",be?"cleen-px-3 cleen-py-1":"cleen-px-3 cleen-py-2",P?.rowLabel),style:E?.rowLabel,children:ut("div",{className:"cleen-flex cleen-items-start cleen-gap-2",children:[ut("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col",children:[he("span",{className:"cleen-truncate cleen-text-sm cleen-font-medium cleen-text-foreground",children:z.label}),z.meta&&!be&&he("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:z.meta})]}),ye&&he("button",{type:"button","aria-label":`${O.removeRow} ${I1(z.label)}`,title:O.removeRow,onClick:()=>p?.({sectionId:q.id,rowId:z.id}),className:"cleen-rounded cleen-p-0.5 cleen-text-muted-foreground cleen-opacity-0 hover:cleen-bg-muted hover:cleen-text-foreground focus:cleen-opacity-100 group-hover/row:cleen-opacity-100",children:he(He,{size:14})})]})}),t.map(ue=>{let xe=Pn(z.id,ue.id);return he(gI,{cellKey:xe,column:ue,rowLabel:I1(z.label),cell:U[xe],min:f,max:m,precision:b,density:y,notePreviews:u,noteMaxLength:v,readOnly:re,flash:I?.[xe],isDetailOpen:A===xe,labels:O,onDetailOpenChange:Z=>V(Z?xe:null),onCommit:Z=>$(q.id,z.id,ue.id,Z),onNavigate:Z=>Y(z.id,ue.id,Z),className:P?.cell,style:E?.cell,popoverClassName:P?.popover,popoverStyle:E?.popover},ue.id)}),he("td",{className:je("cleen-border-b cleen-border-l cleen-border-border cleen-bg-surface cleen-px-3 cleen-text-right cleen-font-medium cleen-tabular-nums cleen-text-foreground",P?.totalCell),style:E?.totalCell,children:Je(se,b)})]},z.id)})]},q.id)})}),x&&he("tfoot",{children:ut("tr",{className:je("cleen-bg-muted",P?.footer),style:E?.footer,children:[he("th",{scope:"row",className:je(pe,"cleen-bg-muted cleen-px-3 cleen-py-2 cleen-text-left cleen-text-xs cleen-font-semibold cleen-text-foreground"),children:O.footer}),t.map(q=>he("td",{className:je("cleen-px-2 cleen-py-2 cleen-text-right cleen-font-semibold cleen-tabular-nums",q.tone==="accent"?"cleen-text-primary":"cleen-text-foreground"),children:H(G.columns[q.id]??0)},q.id)),he("td",{className:"cleen-border-l cleen-border-border cleen-px-3 cleen-py-2 cleen-text-right cleen-font-bold cleen-tabular-nums cleen-text-primary",children:Je(G.grand,b)})]})})]})}),(Me||w&&!C)&&ut("div",{className:"cleen-flex cleen-flex-wrap cleen-items-center cleen-justify-between cleen-gap-3 cleen-border-t cleen-border-border cleen-px-3 cleen-py-2",children:[Me&&i?he(uI,{sections:o,labels:O,onAddRow:i,onSearchChange:s,isLoading:d,className:P?.addButton,style:E?.addButton,popoverClassName:P?.popover,popoverStyle:E?.popover}):he("span",{}),w&&!C&&he("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:O.hint||`Type a value from ${Je(f,b)} to ${Je(m,b)}, or open the cell menu for a start and end time. Press N in a cell for its note.`})]}),S&&he("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center cleen-rounded-lg cleen-bg-background/60",children:he(ce,{})})]})});var XN=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)}},xI={uploaded:e=>`Uploaded: ${XN(e)}`};var C1={"image/":"image","video/":"video","audio/":"audio"},x1={"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"},PI={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"},SI=["http:","https:","blob:"];var YN=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in x1)return x1[t];let o=Object.keys(C1).find(n=>t.startsWith(n));return o?C1[o]:void 0},P1=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},QN=e=>{let t=P1(e);return t?PI[t]:void 0},wI=e=>YN(e.type)??QN(e.name)??"generic",MI=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return SI.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as ao,formatFileSize as ZN}from"@cleen/ui-core";import{forwardRef as JN,useMemo as kI,useState as jN}from"react";import{Fragment as tB,jsx as Lt,jsxs as qi}from"react/jsx-runtime";var eB=JN(function({file:t,preview:o=!1,onRemove:n,description:l,labels:r,className:a,classNames:i,style:p,styles:s,...d},f){let[m,b]=jN(),y=kI(()=>({...xI,...r}),[r]),u=wI(t),v=D0(P1(t.name)),C=MI(t.url)?t.url:void 0,S=t.previewUrl||t.url,I=o&&(u==="image"||u==="video")&&!!S&&m!==S,x=kI(()=>{if(l!=null)return l;let N=[];if(t.size!=null&&N.push(ZN(t.size)),t.uploadedAt!=null){let D=y?.uploaded(t.uploadedAt);D&&N.push(D)}return N.length>0?N.join(" \u2022 "):null},[l,t.uploadedAt,t.size,y]),w=N=>{N.stopPropagation(),n?.(t)},R=ao("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=qi(tB,{children:[qi("div",{className:ao("cleen-flex cleen-size-10 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-overflow-hidden cleen-rounded-lg cleen-bg-primary-50 cleen-text-primary-600",i?.media),style:s?.media,children:[I&&(u==="image"||u==="video"&&t.previewUrl)&&Lt("img",{src:S,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>b(S)}),I&&u==="video"&&!t.previewUrl&&Lt("video",{src:S,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>b(S)}),!I&&Lt(v,{"aria-hidden":!0,className:ao("cleen-size-5",i?.icon),style:s?.icon})]}),qi("div",{className:ao("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:s?.content,children:[Lt("span",{className:ao("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:s?.title,title:t.name,children:t.name}),x!==null&&Lt("span",{className:ao("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:s?.description,children:x})]})]});return Lt("div",{className:ao("cleen",a),style:p,ref:f,...d,children:qi("div",{className:ao("cleen-flex cleen-w-full cleen-min-w-0 cleen-items-center cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-transition-all cleen-duration-200",C&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",i?.container),style:s?.container,children:[C?Lt("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:R,style:s?.main,children:T}):Lt("div",{className:R,style:s?.main,children:T}),n&&Lt("button",{type:"button",className:ao("cleen-mr-3 cleen-flex cleen-size-8 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-error cleen-transition-colors hover:cleen-bg-muted focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-error",i?.removeButton),style:s?.removeButton,onClick:w,children:Lt(He,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Ki={filterName:"",exposed:!1};import{createContext as oB}from"react";var ft=oB({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as nB}from"@cleen/ui-core";import{useContext as rB,useState as aB}from"react";import{Fragment as lB,jsx as Fl,jsxs as S1}from"react/jsx-runtime";var TI={min:3,max:50},NI=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:o,setIsSaveFiltersStep:n,handleCloseSaveFilter:l,setError:r,onSave:a,classNames:i,styles:p,labels:s,withSavedFilters:d=!0,onCancel:f,onApply:m}=rB(ft),[b,y]=aB(!1),u=async()=>{try{if(t.filterName.length<TI.min){r?.("filterName",s?.saveStep?.validation?.tooShort);return}if(t.filterName.length>TI.max){r?.("filterName",s?.saveStep?.validation?.tooLong);return}y(!0),await a?.(t),n(!1)}catch(v){console.error("Error saving filters:",v)}finally{y(!1)}};return e?S1("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[Fl(te,{onClick:()=>n(!1),variant:"secondary",...i?.saveFilter?.backBtn,...p?.saveFilter?.backBtn,children:s?.saveStep?.back}),Fl(te,{onClick:u,isLoading:b,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...p?.saveFilter?.saveBtn,children:s?.saveStep?.save})]}):S1(lB,{children:[d&&Fl(te,{onClick:()=>{o(Ki),n(!0)},variant:"borderless-blue",...i?.saveBtn,...p?.saveBtn,children:s?.save}),S1("div",{className:nB("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!d}),children:[Fl(te,{onClick:()=>{f?.(),l()},variant:"secondary",...i?.cancelBtn,...p?.cancelBtn,children:s?.cancel}),Fl(te,{onClick:()=>{m?.(),l()},...i?.applyBtn,...p?.applyBtn,children:s?.apply})]})]})};import{cn as wn}from"@cleen/ui-core";import{Link as cB}from"react-router-dom";import{Fragment as EI,jsx as St,jsxs as Al}from"react/jsx-runtime";var BI=({item:e,classNames:t,styles:o})=>({disabled:e?.disabled,className:wn("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:Al(EI,{children:[e?.icon,St("span",{className:wn("cleen-flex-1",t?.label),style:o?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),RI=(e,t)=>e.map(o=>o?.type==="group"?{...o,items:RI(o.items,t)}:o?.type==="button"&&!o.submenu?.length?{...o,onClick:()=>t?.(o)}:o),w1=({item:e,isLast:t,handleClick:o,onEnterSubmenu:n,renderActionsMenu:l,classNames:r,styles:a})=>{switch(e?.type){case"group":return Al(EI,{children:[e?.label&&St("p",{className:wn("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",r?.groupLabel),style:a?.groupDivider,children:e?.label}),e?.items?.map((i,p,s)=>St(w1,{item:i,handleClick:o,onEnterSubmenu:n,renderActionsMenu:l,isLast:p===s.length-1},i?.id||p)),!t&&St("hr",{className:wn("cleen-text-neutral-200",r?.groupDivider),style:a?.groupDivider})]});case"button":{let i=e?.submenu&&e?.submenu?.length>0,p=!!l&&!!e?.actions&&e.actions.length>0,s=()=>{i?n?.(e.submenu,e?.label):o?.(e)};if(!p)return Al("button",{type:"button",onClick:s,...BI({item:e,classNames:r,styles:a}),children:[e?.icon,St("span",{className:"cleen-flex-1",children:e?.label}),i&&St(ct,{className:"cleen-size-4 cleen-text-neutral-400"})]});let d=e.actionsLabel??"More actions";return Al("div",{className:wn("cleen-flex cleen-items-center cleen-w-full cleen-pr-2 cleen-transition-colors",e?.disabled?"cleen-opacity-50 cleen-select-none cleen-pointer-events-none":e?.danger?"hover:cleen-bg-error-bg":"hover:cleen-bg-muted",r?.container),style:a?.container,children:[Al("button",{type:"button",onClick:s,disabled:e?.disabled,className:wn("cleen-flex cleen-flex-1 cleen-items-center cleen-gap-3 cleen-min-w-0 cleen-py-2 cleen-pl-4 cleen-pr-1 cleen-text-sm cleen-text-left cleen-text-foreground cleen-cursor-pointer",{"cleen-text-error":e?.danger}),children:[e?.icon,St("span",{className:wn("cleen-flex-1 cleen-min-w-0 cleen-truncate",r?.label),style:a?.label,children:e?.label}),i&&St(ct,{className:"cleen-size-4 cleen-text-neutral-400"})]}),l(RI(e.actions,o),St("button",{type:"button","aria-label":d,title:d,"aria-haspopup":"menu",disabled:e?.disabled,className:"cleen-flex cleen-items-center cleen-justify-center cleen-size-7 cleen-shrink-0 cleen-rounded-md cleen-text-neutral-500 cleen-transition-colors hover:cleen-bg-neutral-200 hover:cleen-text-foreground",children:St(Co,{className:"cleen-size-4"})}))]})}case"link":return St(cB,{to:"",...BI({item:e,classNames:r,styles:a})});default:return null}};import{cn as iB}from"@cleen/ui-core";import{useEffect as LI,useState as DI}from"react";import{Fragment as sB,jsx as FI,jsxs as AI}from"react/jsx-runtime";var OI=({items:e,keepOpenOnClick:t,hideMenu:o,renderActionsMenu:n,classNames:l,styles:r})=>{let[a,i]=DI([]),[p,s]=DI(e),d=(b,y)=>{i(u=>[...u,{items:p,title:y}]),s(b)},f=()=>{let b=a[a?.length-1];b&&(s(b?.items),i(y=>y?.slice(0,-1)))};LI(()=>{s(e),i([])},[e]),LI(()=>{let b=y=>{if(y.key==="Escape")if(a.length>0){let u=a?.[a?.length-1];s(u?.items),i(v=>v?.slice(0,-1))}else o()};return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,a]);let m=b=>{b?.onClick?.(),t||o()};return AI(sB,{children:[a?.length>0&&AI("button",{onClick:f,className:iB("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",l?.submenuButton),style:r?.submenuButton,children:[FI(Qt,{className:"cleen-size-4 cleen-text-neutral-300"}),a?.[a?.length-1]?.title]}),p?.map((b,y,u)=>FI(w1,{item:b,isLast:y===u?.length-1,handleClick:m,onEnterSubmenu:d,renderActionsMenu:n,classNames:l?.item,styles:r?.item},b?.id||y))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as pB,cn as M1,useDisclosure as dB,useOutsideClick as mB,usePositionClose as uB,ZIndex as fB}from"@cleen/ui-core";import{forwardRef as hB,useRef as _I}from"react";import{createPortal as gB}from"react-dom";import{jsx as Ol,jsxs as yB}from"react/jsx-runtime";var Mn=hB(function({items:t=[],position:o="bottom-left",keepOpenOnClick:n=!0,triggerRef:l,menuRef:r,ignoreClickOutside:a=!1,zIndex:i=fB.MENU,children:p,className:s,classNames:d,style:f,styles:m,...b},y){let{isOpen:u,toggle:v,close:C}=dB(),S=_I(null),I=_I(null),x=l??S,w=r??I,{positionStyles:R,isMounted:T}=uB({triggerRef:x,targetRef:w,position:o,isOpen:u});mB({refs:[x,w],handler:C,enabled:u});let N=()=>{v()};return yB("div",{className:M1("cleen",s),style:f,ref:y,...b,children:[Ol("div",{ref:x,onClick:N,className:M1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:p}),u&&gB(Ol("div",{className:"cleen",...a&&{[pB]:"true"},children:Ol("div",{ref:w,className:M1("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:`${R.top}px`,left:`${R.left}px`,...m?.menu},children:Ol(OI,{items:t,keepOpenOnClick:n,hideMenu:C,renderActionsMenu:(D,M)=>bB(D,M,i),classNames:d,styles:m})})}),document.body)]})});function bB(e,t,o){return Ol(Mn,{items:e,position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,zIndex:o,classNames:{menu:"cleen-w-max cleen-min-w-40 cleen-max-w-xs"},children:t})}import{cn as Xi,ColorHelpers as Yi}from"@cleen/ui-core";import{useMemo as vB}from"react";var k1=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow","foreground-transparent"],T1={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"},VI={primary:"cleen-bg-primary cleen-text-primary-foreground cleen-border-primary",blue:"cleen-bg-blue-500 cleen-text-white cleen-border-blue-500","lighter-blue":"cleen-bg-blue-light-300 cleen-text-black cleen-border-blue-light-300",indigo:"cleen-bg-indigo-500 cleen-text-white cleen-border-indigo-500",green:"cleen-bg-success cleen-text-white cleen-border-success",red:"cleen-bg-error cleen-text-white cleen-border-error",purple:"cleen-bg-purple-500 cleen-text-white cleen-border-purple-500",pink:"cleen-bg-pink-500 cleen-text-white cleen-border-pink-500",orange:"cleen-bg-orange-400 cleen-text-black dark:cleen-text-white cleen-border-orange-400",yellow:"cleen-bg-yellow-400 cleen-text-black dark:cleen-text-white cleen-border-yellow-400",gray:"cleen-bg-neutral-500 cleen-text-white cleen-border-neutral-500"},zI={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"},HI={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"},UI={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var GI=(e,t)=>!e&&!t?"primary":t?k1[t%k1.length]:e;import{jsx as N1,jsxs as IB}from"react/jsx-runtime";var Le=({className:e,classNames:t,style:o,styles:n,label:l,color:r="primary",variant:a="rounded",showDot:i=!1,icon:p,removeable:s=!1,withBorder:d=!0,filled:f=!1,onRemoveClicked:m,onClick:b,colorByIndex:y,children:u,...v})=>{let{variantClass:C,dotVariantClass:S,dotVariantStyle:I,variantStyle:x}=vB(()=>{let w={};if(r in T1){let R=GI(r,y);w.variantClass=f?VI[R]:T1[R],w.dotVariantClass=f?HI[R]:zI[R]}else w.variantStyle={borderColor:f?r:Yi.trasparentize(r,.8),backgroundColor:f?r:Yi.trasparentize(r,.95),color:f?Yi.adjustColorForContrast(r,.5):r},w.dotVariantStyle={backgroundColor:f?Yi.adjustColorForContrast(r,.5):r};return w},[r,y,f]);return N1("div",{className:Xi("cleen",e),style:o,children:IB("span",{className:Xi("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,UI[a],{"hover:cleen-opacity-80 cleen-cursor-pointer":b||s},t?.container),style:{...x,...n?.container},onClick:b,...v,children:[i&&N1("span",{className:Xi("cleen-size-2 cleen-rounded-[50%]",S,t?.dot),style:{...I,...n?.dot}}),p,l??u,s&&N1(He,{className:Xi("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 xB}from"@cleen/ui-core";import{useContext as PB,useState as $I}from"react";import{jsx as Dt,jsxs as SB}from"react/jsx-runtime";var WI=({filter:e,activeTabId:t})=>{let[o,n]=$I(!1),[l,r]=$I(!1),{labels:a,onFilterDelete:i,onFilterPin:p,onFilterSelect:s,onFilterUnpin:d,setIsFiltersDropdownOpen:f}=PB(ft),m=async()=>{try{if(!i)return;n(!0),await i(e.filterID)}catch(y){console.error("Error while deleting filter:",y)}finally{n(!1)}},b=async()=>{try{r(!0),e?.isPinned?await d?.(e.filterID):await p?.(e.filterID)}catch(y){console.error("Error while pinning/unpinnning filter:",y)}finally{r(!1)}};return Dt("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:SB("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{s?.(e),f(!1)},children:[Dt("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),l?Dt(ce,{classNames:{loader:"cleen-size-5"}}):Dt(Le,{color:"gray",onClick:y=>{y.stopPropagation(),b()},icon:Dt(qa,{name:"pin",className:xB("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?a?.savedFilters?.filter?.unpin:a?.savedFilters?.filter?.pin}),t==="mine"&&Dt(Mn,{items:[{id:"duplicate",type:"button",label:a?.savedFilters?.filter?.cancelDelete,icon:Dt(He,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:a?.savedFilters?.filter?.delete,icon:Dt(dt,{}),danger:!0,onClick:()=>m()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:y=>y.stopPropagation(),className:"cleen-flex",children:o?Dt(ce,{size:"sm",color:"rgb(var(--cleen-error))"}):Dt(dt,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as Fo}from"@cleen/ui-core";import{forwardRef as wB,Fragment as MB,useMemo as KI,useState as XI}from"react";import{cn as B1}from"@cleen/ui-core";var _l={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"}},qI=e=>{let t=e==="vertical";return{underlined:{list:B1("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:B1("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:B1("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 Vl,jsxs as YI}from"react/jsx-runtime";var Qi=(e,t)=>e?.id??String(t),zl=wB(function({tabs:t,variant:o="underlined",direction:n="horizontal",currentTabIndex:l,onTabChange:r,multiple:a=!1,activeTabIds:i,defaultActiveTabIds:p,onChange:s,className:d,classNames:f,style:m,styles:b,...y},u){let[v,C]=XI(0),I=l!==void 0?l:v,[x,w]=XI(p??[]),R=i??x,T=KI(()=>{if(!a){let P=t?.[I];return P?[P]:[]}return t?.filter((P,k)=>R.includes(Qi(P,k)))??[]},[t,a,I,R]),N=(P,k)=>a?R.includes(Qi(P,k)):I===k,D=(P,k)=>{if(a){let E=Qi(k,P),L=R.includes(E),F=t?.map((O,B)=>Qi(O,B)).filter(O=>O===E?!L:R.includes(O))??[];w(F),s?.(F)}else C(P);r?.(P,k)},M=KI(()=>qI(n),[n]);return Vl("div",{className:Fo("cleen",d),style:m,ref:u,...y,children:YI("div",{className:Fo(_l[n].container,f?.container),style:b?.container,children:[Vl("nav",{className:Fo(M[o].list,_l[n].list,f?.list),"aria-label":"Tabs",style:b?.list,children:t?.map((P,k)=>{let E=N(P,k),L=P?.isDisabled;return YI("button",{type:"button",disabled:L,onClick:()=>D(k,P),className:Fo("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",!L&&"cleen-cursor-pointer",M[o].tab,_l[n].tab,f?.tab,L?Fo(M[o].tabDisabled,f?.tabDisabled):E?Fo(M[o].tabActive,f?.tabActive):Fo(M[o].tabInactive,f?.tabInactive)),style:{...b?.tab,...L?b?.tabDisabled:E?b?.tabActive:b?.tabInactive},"aria-current":E?"page":void 0,children:[P?.label,!!P?.badge?.label&&Vl(Le,{variant:"rounded",color:E?"blue":"gray",...f?.count,...b?.count,...P.badge})]},P?.id||k)})}),T.some(P=>!!P?.content)&&Vl("div",{className:Fo("h-full",a&&"cleen-flex cleen-flex-col cleen-gap-4",_l[n].content,f?.content),style:b?.content,children:T.map((P,k)=>Vl(MB,{children:P?.content},P?.id||k))})]})})});import{useContext as kB,useState as TB}from"react";import{jsx as kn,jsxs as BB}from"react/jsx-runtime";var NB=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},QI=({selectedSavedFilter:e,filters:t,isFiltersFetching:o,onFilterCategoryChange:n})=>{let[l,r]=TB("all"),{labels:a,classNames:i,styles:p,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:d}=kB(ft);return kn(Nl,{isOpen:s,onOpenChange:d,leftIcon:kn(Ba,{className:"cleen-size-5"}),label:e?.title??a?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...p?.dropdown,children:BB("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[kn(zl,{tabs:[{id:"all",label:a?.savedFilters?.tabs?.all},{id:"mine",label:a?.savedFilters?.tabs?.mine},{id:"shared",label:a?.savedFilters?.tabs?.shared},{id:"featured",label:a?.savedFilters?.tabs?.featured},{id:"pinned",label:a?.savedFilters?.tabs?.pinned}],variant:"padded",onTabChange:(f,m)=>{r(m?.id),n?.(NB(m?.id))},classNames:{list:"cleen-mb-2"}}),kn("div",{className:"flex flex-col",children:o?kn(ce,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(f=>kn(WI,{filter:f,activeTabId:l},f.filterID)):kn("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:a?.savedFilters?.noFilters})})]})})};import{cn as lo}from"@cleen/ui-core";import{forwardRef as RB,useEffect as EB,useId as LB,useState as DB}from"react";import{jsx as Tn,jsxs as R1}from"react/jsx-runtime";var E1=RB(function({id:t,name:o,required:n,checked:l,defaultChecked:r=!1,onChange:a,title:i,label:p,labelTooltip:s,sublabel:d,disabled:f,classNames:m,className:b,style:y,styles:u,infoLabels:v,...C},S){let I=typeof l=="boolean",[x,w]=DB(r);EB(()=>{I||w(r)},[r,I]);let R=I?l:x,T=LB(),N=i?`${T}-title`:void 0,D=p?`${T}-label`:void 0,M=[N,D].filter(Boolean).join(" ")||void 0,P=()=>{f||(I||w(!x),a?.(!R))};return Tn("div",{className:lo("cleen",b),style:y,children:R1("div",{className:lo("cleen-flex cleen-flex-col",m?.container),style:u?.container,children:[i&&Tn(de,{id:N,htmlFor:t||o,required:n,tooltip:s,className:lo("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...u?.title,children:i}),R1("div",{className:lo("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:u?.switchContainer,children:[Tn("button",{id:t||o,type:"button",role:"switch","aria-checked":R,"aria-labelledby":M,disabled:f,onClick:P,className:lo("cleen-inline-flex cleen-relative cleen-flex-shrink-0 cleen-my-auto cleen-mb-auto cleen-border-2 cleen-border-transparent cleen-rounded-full cleen-w-11 cleen-h-6 cleen-transition-colors cleen-duration-200 cleen-ease-in-out cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",R?"cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]":"cleen-bg-neutral-200 hover:cleen-bg-neutral-300",m?.switch),style:u?.switch,ref:S,...C,children:Tn("span",{"aria-hidden":"true",className:lo("cleen-inline-block cleen-bg-primary-foreground cleen-shadow cleen-rounded-full cleen-ring-0 cleen-w-5 cleen-h-5 cleen-transition cleen-duration-200 cleen-ease-in-out cleen-pointer-events-none cleen-transform",R?"cleen-translate-x-5":"cleen-translate-x-0",m?.check),style:u?.check})}),(p||d)&&R1("div",{className:lo("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:u?.labelContainer,children:[p&&Tn("span",{id:D,className:lo("cleen-font-semibold cleen-text-foreground",m?.label),style:u?.label,children:p}),d&&Tn("span",{className:lo("cleen-font-normal cleen-text-muted-foreground",m?.sublabel),style:u?.sublabel,children:d})]})]}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Tn(ie,{...v})]})})});import{useContext as FB}from"react";import{Fragment as AB,jsx as ZI,jsxs as OB}from"react/jsx-runtime";var JI=()=>{let{classNames:e,styles:t,labels:o,saveStepValues:n,setSaveStepValues:l,errors:r,clearError:a}=FB(ft);return OB(AB,{children:[ZI(Ie,{value:n.filterName,onChange:i=>{l(p=>({...p,filterName:i.target.value})),r?.filterName&&a?.("filterName")},label:o?.saveStep?.filterNameInput?.label,placeholder:o?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:r?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),ZI(E1,{checked:n.exposed,onChange:i=>l(p=>({...p,exposed:i})),title:o?.saveStep?.exposureSwitch?.title,label:o?.saveStep?.exposureSwitch?.label,sublabel:o?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var jI={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 L1}from"react";import{jsx as VB}from"react/jsx-runtime";var eC=({children:e,value:t})=>{let[o,n]=L1(!1),[l,r]=L1(Ki),{errors:a,setError:i,clearError:p}=_B({}),[s,d]=L1(!1),f=()=>{n(!1),t?.onClose?.()};return VB(ft.Provider,{value:{isSaveFiltersStep:o,setIsSaveFiltersStep:n,saveStepValues:l,setSaveStepValues:r,handleCloseSaveFilter:f,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:d,errors:a,setError:i,clearError:p,...t},children:e})};import{applyDefaults as zB,cn as tC}from"@cleen/ui-core";import{forwardRef as oC,useContext as HB}from"react";import{Fragment as $B,jsx as Ao,jsxs as WB}from"react/jsx-runtime";var UB=oC(function({selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,children:l,classNames:r,styles:a,labels:i,withSavedFilters:p=!0,onClear:s,onSave:d,onCancel:f,onApply:m,onClose:b,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:v,onFilterPin:C,onFilterSelect:S,onFilterUnpin:I,...x},w){return Ao(eC,{value:{selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,classNames:r,styles:a,labels:zB(jI,i),withSavedFilters:p,onClear:s,onSave:d,onCancel:f,onApply:m,onClose:b,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:v,onFilterPin:C,onFilterSelect:S,onFilterUnpin:I},children:Ao(GB,{...x,ref:w,children:l})})}),GB=oC(function({children:t,...o},n){let{handleCloseSaveFilter:l,isSaveFiltersStep:r,selectedSavedFilter:a,savedFilters:i,isFiltersFetching:p,classNames:s,styles:d,labels:f,withSavedFilters:m=!0,onClear:b,onFilterCategoryChange:y,onFilterSelect:u}=HB(ft);return Ao(e1,{footer:Ao(NI,{}),headerCloseBtn:Ao(te,{onClick:()=>{b?.(),u?.(void 0)},leftIcon:Ao(dt,{}),variant:"secondary",...s?.clearBtn,...d?.clearBtn,children:f?.clear}),classNames:{...s,content:tC("cleen-space-y-4",s?.content),footer:tC("cleen-justify-between",s?.footer)},onClose:l,ref:n,...o,title:r?f?.saveStep?.title:o.title,subtitle:r?f?.saveStep?.subtitle:o.subtitle,children:r?Ao(JI,{}):WB($B,{children:[m&&Ao(QI,{filters:i,selectedSavedFilter:a,onFilterCategoryChange:y,isFiltersFetching:p}),t]})})});import{cn as Er}from"@cleen/ui-core";import{forwardRef as qB}from"react";import{jsx as Zi,jsxs as nC}from"react/jsx-runtime";var rC=qB(({title:e,titleTooltip:t,subtitle:o,required:n,labelProps:l,children:r,className:a,classNames:i,style:p,styles:s,...d},f)=>Zi("div",{ref:f,className:Er("cleen",a),style:{...p,width:"100%"},...d,children:nC("div",{className:Er("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:s?.container,children:[nC("div",{className:Er("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:s?.titleColumn,children:[Zi(de,{...l,required:n,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:Er("cleen-truncate",i?.title?.classNames?.label)},...s?.title,children:e}),o&&Zi("div",{className:Er("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-w-full cleen-font-normal cleen-text-neutral-600 cleen-text-sm",i?.subtitle),style:s?.subtitle,children:o})]}),Zi("div",{className:Er("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:s?.controlsRow,children:r})]})}));rC.displayName="FormGroup";import{cn as Ve,useDebounce as KB,useOutsideClick as XB,usePositionClose as YB,ZIndex as QB}from"@cleen/ui-core";import{useEffect as Ji,useMemo as D1,useRef as F1,useState as wt}from"react";import{createPortal as ZB}from"react-dom";import{Fragment as eR,jsx as oe,jsxs as et}from"react/jsx-runtime";function JB(e){return e!==null&&typeof e=="object"}function qe(e,t){if(JB(e)&&t in e)return e[t]}function aC(e,t){let o=qe(e,t);return Array.isArray(o)?o:[]}function lC(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 jB=({position:e="bottom-right",labels:t,groups:o=[],selectedItemID:n=null,groupThreeDotMenuOptions:l=[],itemThreeDotMenuOptions:r=[],refetchData:a,onGroupSave:i,onItemSave:p,onGroupThreeDotMenuClick:s,onItemThreeDotMenuClick:d,onSearchChange:f,onItemSelect:m,groupIDKey:b,groupTitleKey:y,itemsKey:u,itemIDKey:v,itemGroupIDKey:C,itemTitleKey:S,itemSubtitleKey:I,newValueMinLength:x=2,isLoading:w=!1,isGroupSaving:R=!1,isItemSaving:T=!1,selectedColor:N="rgb(var(--cleen-primary-100))",hasFiltering:D=!0,zIndex:M=QB.POPOVER,className:P,classNames:k,style:E,styles:L})=>{let[F,O]=wt(!1),[B,A]=wt(!1),[V,U]=wt(!1),[_,W]=wt(!1),[j,G]=wt(null),[H,X]=wt(null),[$,Y]=wt(""),[ae,be]=wt(""),[pe,Me]=wt(null),q=F1(void 0),[Q,z]=wt(""),[re]=KB(Q,500),[se,ye]=wt(""),ue=F1(null),xe=F1(null),{positionStyles:Z,isMounted:Re}=YB({triggerRef:ue,targetRef:xe,position:e,isOpen:F,offset:10});XB({refs:[xe],handler:()=>O(!1),enabled:F});let Oe=D1(()=>o??[],[o]),Se=D1(()=>{let K=new Map;for(let ee of Oe){let ge=qe(ee,b);ge!=null&&K.set(ge,aC(ee,u))}return K},[Oe,b,u]),Ye=D1(()=>{let K=[];return j==null?K=Array.from(Se?.values()).flat():K=Se?.get(j)??[],D&&se.trim()!==""&&(K=K.filter(ee=>{let ge=String(qe(ee,S)??""),_e=I?String(qe(ee,I)??""):"";return ge.toLowerCase().includes(se?.toLowerCase()??"")||_e.toLowerCase().includes(se?.toLowerCase()??"")})),K},[j,Se,se,S,I,D]);Ji(()=>{let K=q.current!==n;if(q.current=n,n==null){K&&(X(null),G(null));return}let ge=Array.from(Se?.values())?.flat()?.find(_e=>qe(_e,v)===n);if(ge){let _e=qe(ge,C)??null;X(ge),G(_e)}else K&&X(null)},[n,Se,v,C]),Ji(()=>{if(pe==null)return;let ee=Array.from(Se?.values())?.flat()?.find(_e=>qe(_e,v)===pe);if(!ee)return;let ge=qe(ee,C);G(typeof ge=="string"||typeof ge=="number"?ge:null),X(ee),Me(null),m?.(ee)},[pe,Se,v,C,m]),Ji(()=>{f&&f(re??"")},[re,f]),Ji(()=>{F||(A(!1),U(!1),Y(""),be(""))},[F]);let lt=K=>{K===j?(G(null),X(null),m?.(null)):(X(null),G(K),m?.(null))},jr=K=>{let ee=qe(K,C);G(typeof ee=="string"||typeof ee=="number"?ee:null),X(K),m?.(K),O(!1)};async function Zn(){if(!i)return;let K={[y]:$};try{let ee=await i(K);if(ee?.success){A(!1),Y(""),a&&await a();let ge=lC(ee,b);ge!=null&&(G(ge),X(null),m?.(null))}}catch{}}async function le(){if(!p)return;let K={[S]:ae,...j!=null?{[C]:j}:{}};try{let ee=await p(K);ee?.success&&(U(!1),be(""),Me(lC(ee,v)),a&&await a())}catch{}}return oe("div",{className:Ve("cleen",P),style:E,children:et("div",{ref:ue,className:Ve("cleen-relative cleen-w-full cleen-cursor-pointer",k?.container),style:L?.container,onClick:K=>{K.stopPropagation(),O(!0)},children:[oe(Ie,{placeholder:t?.inputPlaceholder,rightIcon:oe(Zt,{className:Ve("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!F})}),value:Q,onChange:K=>{G(null),X(null),z(K.target.value)},classNames:{input:F?"":"cleen-cursor-pointer"},className:k?.input,style:L?.input}),F&&ZB(oe("div",{className:"cleen",children:et("div",{ref:xe,className:Ve("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":!Re},k?.columnsContainer),style:{zIndex:M,top:`${Z.top}px`,left:`${Z.left}px`,...L?.columnsContainer},children:[et("div",{className:"cleen-w-1/2 cleen-h-full",children:[oe("div",{className:Ve("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",k?.leftColumn),style:L?.leftColumn,children:w?oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:oe(ce,{size:"sm"})}):o?.map((K,ee)=>{let ge=qe(K,b),_e=ge===j,Jn=String(qe(K,y)??""),ea=aC(K,u)?.length??0;return et("div",{className:Ve("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",k?.groupItem),style:{...L?.groupItem||{},..._e?{backgroundColor:N}:{}},onClick:Te=>{Te.stopPropagation(),Te.preventDefault(),lt(ge??null)},children:[et("div",{className:Ve("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[oe("span",{className:Ve("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",k?.groupItemTitle),style:L?.groupItemTitle,children:Jn}),oe(Le,{color:"lighter-blue",label:ea})]}),l?.length>0&&oe("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Te=>{Te.stopPropagation(),s?.(K)},children:oe(Mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(Te=>{let Yo=Te?.disabledOptionCallback?.(K);return{...Te,type:"button",label:oe("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:Te?.label}),onClick:()=>{Yo||Te?.onClick(K)},disabled:Yo}}),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:oe(Co,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${ee}-${String(ge??ee)}`)})}),oe(xt,{isHorizontal:!0}),B?et("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[oe(Ie,{leftIcon:oe(Mo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:$,onChange:K=>Y(K.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?R?oe(ce,{}):$?.length>x?oe(te,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{Zn()},classNames:{container:"cleen-w-max cleen-h-7"}}):oe("div",{}):oe("div",{})})]}):et("div",{className:Ve("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",k?.newGroupButton),style:L?.newGroupButton,onClick:()=>A(!0),children:[oe(Mo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),oe("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),oe(xt,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),et("div",{className:"cleen-w-1/2 cleen-h-full",children:[et("div",{className:Ve("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",k?.rightColumn),style:L?.rightColumn,children:[D&&et(eR,{children:[oe(Ie,{leftIcon:oe(Ct,{className:"cleen-size-5"}),className:Ve("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!_}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:K=>ye(K.target.value),placeholder:t?.filterPlaceholder}),oe("button",{type:"button",className:Ve("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":!_}),onClick:()=>W(K=>!K),children:oe(fa,{className:Ve("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",_?"-cleen-rotate-90":"cleen-rotate-90")})})]}),w?oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:oe(ce,{size:"sm"})}):Ye?.map((K,ee)=>{let ge=qe(K,v),_e=H&&qe(H,v)===ge,Jn=String(qe(K,S)??""),ea=I?String(qe(K,I)??""):"";return et("div",{className:Ve("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",k?.item),style:{...L?.item||{},..._e?{backgroundColor:N}:{}},onClick:Te=>{Te.stopPropagation(),Te.preventDefault(),jr(K)},children:[et("div",{className:Ve("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",r?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[oe("span",{className:Ve("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",k?.itemTitle),style:L?.itemTitle,children:Jn}),oe("span",{className:Ve("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",k?.itemSubtitle),style:L?.itemSubtitle,children:ea})]}),r?.length>0&&oe("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Te=>{Te.stopPropagation(),d?.(K)},children:oe(Mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:r?.map(Te=>{let Yo=Te?.disabledOptionCallback?.(K);return{...Te,type:"button",label:oe("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:Te?.label}),onClick:()=>{Yo||Te?.onClick(K)},disabled:Yo}}),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:oe(Co,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${ee}-${String(ge??ee)}`)})]}),oe(xt,{isHorizontal:!0}),V?et("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[oe(Ie,{leftIcon:oe(Mo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:ae,onChange:K=>be(K.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:p?T?oe(ce,{}):ae?.length>x?oe(te,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{le()},classNames:{container:"cleen-w-max cleen-h-7"}}):oe("div",{}):oe("div",{})})]}):et("div",{className:Ve("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",k?.newItemButton),style:L?.newItemButton,onClick:()=>U(!0),children:[oe(Mo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),oe("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!F&&H&&oe("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:oe("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(qe(H,S)??"")})})]})})};import{cn as $e,useDebounce as tR,useOutsideClick as oR,usePositionClose as nR,ZIndex as rR}from"@cleen/ui-core";import{forwardRef as aR,useEffect as sC,useId as lR,useMemo as pC,useRef as ji,useState as es}from"react";import{createPortal as cR}from"react-dom";import{cn as Nn}from"@cleen/ui-core";import{jsx as Oo,jsxs as cC}from"react/jsx-runtime";var iC=({options:e,selection:t,classNames:o,styles:n,onChoose:l,displaySubtextInline:r=!0,activeIndex:a=-1,getOptionId:i,onActiveIndexChange:p,...s})=>Oo("div",{...s,children:Oo("div",{className:Nn("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,f)=>{let m=t?.some(y=>y?.value===d?.value),b=f===a;return cC("li",{id:i?.(f),role:"option","aria-selected":m,className:Nn("cleen-flex cleen-justify-between cleen-items-center hover:cleen-bg-muted cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-cursor-pointer cleen-select-none",{"cleen-bg-muted hover:cleen-bg-neutral-200":m,"cleen-bg-muted":b},o?.item),style:n?.item,onMouseEnter:()=>p?.(f),onClick:()=>l?.(d,m),children:[cC("div",{className:Nn("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&&Oo(Le,{color:"gray",label:d?.leadingBadgeValue}),d?.icon,d?.label&&Oo("span",{className:Nn("cleen-font-medium cleen-text-foreground cleen-text-base",!r&&"cleen-w-full cleen-truncate"),children:d?.label}),d?.preSublabel&&Oo("span",{className:Nn("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!r&&"cleen-w-full cleen-truncate"),children:d?.preSublabel}),d?.sublabel&&Oo("span",{className:Nn("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!r&&"cleen-w-full cleen-truncate"),children:d?.sublabel})]}),m&&Oo("div",{className:o?.checkContainer,style:n?.checkContainer,children:Oo(Yt,{className:Nn("cleen-text-primary",o?.check),style:n?.check})})]},d.value)})})});import{Fragment as sR,jsx as Fe,jsxs as ts}from"react/jsx-runtime";var iR=aR(function({id:t,name:o,label:n,labelTooltip:l,labels:r,options:a,value:i,displaySelected:p="under",isLoading:s=!1,required:d,internalFiltering:f=!1,closeOnReachingLimit:m=!0,limit:b,getCustomBadgeLabel:y,displaySubtextInline:u=!0,selectedBadgeColor:v="blue",debounceDelay:C=0,characterThreshold:S=2,disabled:I=!1,isNoDataVisibleOnCreateNew:x=!0,zIndex:w=rR.DROPDOWN,className:R,classNames:T,style:N,styles:D,infoLabels:M,menuDetachedFromPortal:P,onInputChange:k,onChange:E,onCreateNewOption:L,createNewOptionLabelString:F,onLookupBlur:O,triggerBlurOnlyWhenOpen:B=!0,menuRef:A,...V},U){let[_,W]=es(!1),j=ji(null),G=ji(null),H=A??j,{positionStyles:X,isMounted:$}=nR({triggerRef:G,targetRef:H,position:"bottom-left",isOpen:_,offset:4});oR({refs:[H,G],handler:()=>{W(!1),O?.()},enabled:B?_:!0});let[Y,ae]=es(""),be=tR(Y,C),pe=C?be:Y,Me=ji(pe),q=ji(!1),Q=()=>{q.current=!1,ae("")},z=Array.isArray(i),[re,se]=es([]),ye=z?i:re,ue=["inside","inside-badge"].includes(p),xe=(le,K=!1)=>{if(K){let ge=ye.filter(_e=>_e.value!==le.value);z||se(ge),E?.(ge);return}let ee;if(b===1)ee=[le];else{if(b&&ye.length>=b)return;ee=[...ye,le]}z||se(ee),E?.(ee),m&&b&&ee.length>=b&&(Q(),W(!1))},Z=pC(()=>f?a?.filter(le=>le?.label?.match(new RegExp(pe,"i"))):a,[a,pe,f]),Re=pC(()=>F&&L&&!s&&Y?.length>0&&!Z?.some(le=>le?.label===Y)?typeof F=="function"?F(Y):F:null,[F,L,s,Y,Z]);sC(()=>{if(Me.current!==pe)if(Me.current=pe,pe.length<S)W(!1);else{k?.(pe);let le=!!G.current?.contains(document.activeElement);q.current&&le&&W(!0)}},[pe,k,S]);let Oe=lR(),Se=le=>`${Oe}-option-${le}`,[Ye,lt]=es(-1);sC(()=>{lt(-1)},[pe,_]);let jr=le=>{let K=Z?.length??0;switch(le.key){case"ArrowDown":if(!K)return;if(le.preventDefault(),!_){W(!0),lt(0);return}lt(ee=>(ee+1)%K);break;case"ArrowUp":if(!K)return;if(le.preventDefault(),!_){W(!0),lt(K-1);return}lt(ee=>(ee-1+K)%K);break;case"Home":if(!_||!K)return;le.preventDefault(),lt(0);break;case"End":if(!_||!K)return;le.preventDefault(),lt(K-1);break;case"Enter":{if(!_||Ye<0)return;let ee=Z?.[Ye];if(!ee)return;le.preventDefault();let ge=ye?.some(_e=>_e.value===ee.value);xe(ee,ge);break}case"Escape":_&&(le.preventDefault(),W(!1));break;default:break}},Zn=ts("ul",{id:Oe,role:"listbox",className:$e("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:D?.menu?.container,children:[s?Fe(ce,{className:$e("cleen-py-3",T?.menu?.loader),style:D?.menu?.loader}):!Z||Z?.length===0?!!r?.noDataFound&&(x||!Re)&&Fe("div",{className:$e("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:D?.menu?.noDataFound,children:r?.noDataFound}):Fe(iC,{options:Z,selection:ye,onChoose:xe,displaySubtextInline:u,activeIndex:Ye,getOptionId:Se,onActiveIndexChange:lt,...T?.menu?.list,...D?.menu?.list}),Re&&ts("div",{className:$e("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",T?.createNewOption?.container),style:D?.createNewOption?.container,children:[Fe(xt,{...T?.createNewOption?.divider,...D?.createNewOption?.divider}),Fe("span",{className:$e("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",T?.createNewOption?.value),style:D?.createNewOption?.value,onClick:()=>{let le=L?.(Y);typeof le=="boolean"&&!le||(Q(),W(!1))},children:Re})]})]});return Fe("div",{className:$e("cleen",R),style:N,children:ts("div",{className:$e("cleen-flex cleen-flex-col cleen-w-full",T?.container),style:D?.container,children:[n&&Fe(de,{htmlFor:t||o,required:d,tooltip:l,className:$e("cleen-mb-1.5",T?.label?.className),classNames:T?.label?.classNames,...D?.label,children:n}),Fe("div",{ref:G,className:$e("cleen-relative cleen-flex cleen-items-center",T?.input?.container),style:D?.input?.container,children:Fe(Ie,{id:t||o,type:"search",autoFocus:!1,autoComplete:"off",className:$e("cleen-w-full",T?.input?.component?.className),classNames:{...T?.input?.component?.classNames,inputContainer:$e({"cleen-flex-wrap":ue},T?.input?.component?.classNames?.inputContainer),input:$e({"cleen-pl-2":ue},T?.input?.component?.classNames?.input),leftIconContainer:$e({"cleen-pr-0":ue},T?.input?.component?.classNames?.leftIconContainer)},...D?.input?.component,leftIcon:ts(sR,{children:[Fe(Ct,{}),ue&&(ye||[])?.length>0&&Fe("div",{className:$e("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{W(!_)},children:p==="inside-badge"?ye?.map(le=>Fe(Le,{label:le?.label,color:"blue",variant:"semiRounded"},le.value)):Fe("span",{className:$e("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:ye?.map(le=>le?.label).join(", ")})})," "]}),onFocus:()=>{pe.length>=S&&Y.length>=S&&W(!0)},value:Y,onChange:le=>{q.current=!0,ae(le.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":_,"aria-controls":_?Oe:void 0,"aria-activedescendant":_&&Ye>=0?Se(Ye):void 0,onKeyDown:jr,ref:U,required:d,disabled:I,...V})}),_&&(P?Fe("div",{ref:H,children:Zn}):cR(Fe("div",{className:"cleen",children:Fe("div",{ref:H,className:$e("cleen-absolute",{"cleen-opacity-0":!$}),style:{zIndex:w,top:`${X.top}px`,left:`${X.left}px`,minWidth:G.current?.offsetWidth?`${G.current.offsetWidth}px`:void 0},children:Zn})}),document.body)),p==="under"&&ye?.length>0&&Fe("span",{className:$e("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",T?.pillbadge?.container),style:D?.pillbadge?.container,children:ye?.map(le=>Fe(Le,{label:y?y(le):le?.label,color:v,removeable:!I,onRemoveClicked:()=>{if(I)return;let K=ye?.filter(ee=>ee?.value!==le?.value);z||se(K),E?.(K)},...T?.pillbadge?.component,...D?.pillbadge?.component},le.value))}),(M?.errorMessage||M?.infoMessage||M?.subtitle)&&Fe(ie,{...M})]})})});import{cn as Ce}from"@cleen/ui-core";import{forwardRef as pR}from"react";import dR from"react-markdown";import mR from"remark-gfm";import{jsx as ve}from"react/jsx-runtime";var uR=pR(function({components:t,children:o,className:n,classNames:l,style:r,styles:a,...i},p){let s={h1:({children:d})=>ve("h1",{className:Ce("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:d}),h2:({children:d})=>ve("h2",{className:Ce("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:d}),h3:({children:d})=>ve("h3",{className:Ce("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:d}),h4:({children:d})=>ve("h4",{className:Ce("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:d}),h5:({children:d})=>ve("h5",{className:Ce("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),h6:({children:d})=>ve("h6",{className:Ce("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),p:({children:d})=>ve("p",{className:Ce("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:d}),a:({href:d,children:f})=>ve("a",{href:d,className:Ce("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:f}),ul:({children:d})=>ve("ul",{className:Ce("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),ol:({children:d})=>ve("ol",{className:Ce("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),li:({children:d})=>ve("li",{className:Ce("cleen-mb-1"),children:d}),blockquote:({children:d})=>ve("blockquote",{className:Ce("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:f,...m})=>d?ve("code",{className:Ce("cleen-font-mono cleen-text-sm"),...m,children:f}):ve("code",{className:Ce("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...m,children:f}),pre:({children:d})=>ve("pre",{className:Ce("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:()=>ve("hr",{className:Ce("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:d,alt:f})=>ve("img",{src:d,alt:f,className:Ce("cleen-max-w-full cleen-rounded")}),strong:({children:d})=>ve("strong",{className:Ce("cleen-font-semibold"),children:d}),em:({children:d})=>ve("em",{className:Ce("cleen-italic"),children:d}),table:({children:d})=>ve("div",{className:Ce("cleen-overflow-x-auto cleen-mb-4"),children:ve("table",{className:Ce("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:d})}),thead:({children:d})=>ve("thead",{className:Ce("cleen-border-b cleen-border-border"),children:d}),th:({children:d})=>ve("th",{className:Ce("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:d}),td:({children:d})=>ve("td",{className:Ce("cleen-p-2 cleen-border-b cleen-border-border"),children:d}),input:({type:d,checked:f,disabled:m})=>d==="checkbox"?ve("input",{type:"checkbox",checked:f,disabled:m,readOnly:!0,className:Ce("cleen-mr-2 cleen-align-middle")}):ve("input",{type:d})};return ve("div",{ref:p,className:Ce("cleen",n,l?.container),style:{...r,...a?.container},...i,children:ve(dR,{...i,remarkPlugins:[mR],components:{...s,...t},children:o})})});import{cn as Bn,useBodyScrollLock as fR,useCleenOverlays as dC,ZIndex as hR}from"@cleen/ui-core";import{forwardRef as gR,useCallback as bR,useEffect as A1,useId as yR,useRef as vR,useState as mC}from"react";import{createPortal as IR}from"react-dom";import{jsx as Hl,jsxs as fC}from"react/jsx-runtime";var CR={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},uC=300,xR=gR(function({isOpen:t=!1,onClose:o,closeOnOverlayClick:n=!0,closeButtonIcon:l=Hl(He,{className:"cleen-size-5"}),header:r,footer:a,zIndex:i=hR.MODAL,size:p="md",color:s,p:d,gap:f,radius:m=16,className:b,classNames:y,style:u,styles:v,children:C,...S},I){let[x,w]=mC(t),[R,T]=mC(t),N=vR(null),D=yR(),{addOverlay:M,removeOverlay:P}=dC(),k=bR(()=>{w(!1),setTimeout(()=>o?.(),uC)},[o]);return A1(()=>{if(t){T(!0);let E=setTimeout(()=>w(!0),1);return()=>clearTimeout(E)}else{w(!1);let E=setTimeout(()=>T(!1),uC);return()=>clearTimeout(E)}},[t]),A1(()=>{if(t)return M(D),()=>P(D)},[M,P,t,D]),A1(()=>{let E=L=>{let{overlays:F}=dC.getState();L.key==="Escape"&&F[F.length-1]===D&&k()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[k,D]),fR(R),R?IR(fC("div",{className:Bn("cleen",b),style:u,ref:I,...S,children:[Hl("div",{className:Bn("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",x?"cleen-opacity-100":"cleen-opacity-0",y?.overlay),style:{zIndex:i,...v?.overlay},onClick:()=>{n&&k()},"aria-hidden":"true"}),Hl("div",{className:Bn("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",x?"cleen-opacity-100 cleen-scale-100":"cleen-opacity-0 cleen-scale-95",y?.container),style:{zIndex:i,...v?.container},"aria-modal":"true",role:"dialog",children:fC(Pe,{header:r,footer:a,color:s,p:d,gap:f,radius:m,className:Bn("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 p=="number"?p:CR[p],...v?.modal?.style},classNames:{...y?.modal?.classNames,container:Bn("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",y?.modal?.classNames?.container),childrenContainer:Bn("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",y?.modal?.classNames?.childrenContainer)},styles:v?.modal?.styles,ref:N,children:[C,l&&Hl("div",{className:Bn("cleen-top-3 cleen-right-3 cleen-absolute"),children:Hl(te,{variant:"borderless",onClick:k,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:l})})]})})]}),document.body):null});import{Fragment as PR,jsxs as hC}from"react/jsx-runtime";var gC={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}},os={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},bC=3,yC=180,vC=15e3,Lr="general",Ul={[Lr]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},IC={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"},CC={"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"},Gl={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=>hC(PR,{children:[hC("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`},tt="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var O1={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},xC=({exitDuration:e=yC}={})=>{let t=O1,o=new Set,n=new Map,l=new Map,r=0,a=M=>{t={...t,...M},o.forEach(P=>P())},i=M=>{let P=n.get(M);!P||P.handle||t.paused||(P.startedAt=Date.now(),P.handle=setTimeout(()=>v(M),P.remaining))},p=M=>{let P=n.get(M);P?.handle&&(clearTimeout(P.handle),P.remaining=Math.max(0,P.remaining-(Date.now()-(P.startedAt??Date.now()))),P.handle=null,P.startedAt=null)},s=M=>{let P=n.get(M);P?.handle&&clearTimeout(P.handle),n.delete(M)},d=M=>{s(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))},f=M=>{let P=l.get(M);P&&(l.delete(M),P.ids.delete(M),P.ids.size||clearTimeout(P.handle))},m=M=>{M.forEach(E=>l.delete(E));let P=t.toasts.filter(E=>!M.includes(E.id)),k=P.some(E=>!E.leaving);a({toasts:P,...!k&&{ui:O1.ui}})},b=M=>{f(M.id);let P=t.toasts.some(k=>k.id===M.id);return d(M),a({toasts:P?t.toasts.map(k=>k.id===M.id?M:k):[...t.toasts,M]}),M.id},y=(M,P)=>{let k=t.toasts.find(L=>L.id===M);if(!k||k.leaving)return;let E={...k,...P};("priority"in P||"duration"in P)&&d(E),a({toasts:t.toasts.map(L=>L.id===M?E:L)})},u=M=>{let P=t.toasts.filter(L=>M.includes(L.id)&&!L.leaving);if(!P.length)return;P.forEach(L=>s(L.id));let k=P.filter(L=>L.animationType==="none"||e<=0).map(L=>L.id),E=P.filter(L=>!k.includes(L.id)).map(L=>L.id);if(E.length){let L=t.toasts.filter(B=>!B.leaving).length;a({toasts:t.toasts.map(B=>E.includes(B.id)?{...B,leaving:!0,leavingFromCount:L}:B)});let F=new Set(E),O=setTimeout(()=>m([...F]),e);E.forEach(B=>l.set(B,{handle:O,ids:F}))}k.length&&m(k)},v=M=>u([M]);return{add:b,update:y,dismiss:v,dismissMany:u,clear:()=>u(t.toasts.map(M=>M.id)),pauseAll:()=>{t.paused||(n.forEach((M,P)=>p(P)),a({paused:!0}))},resumeAll:()=>{t.paused&&(a({paused:!1}),n.forEach((M,P)=>i(P)))},setExpanded:M=>a({ui:{...t.ui,expanded:M}}),toggleGroup:M=>{let{expandedGroups:P}=t.ui;a({ui:{...t.ui,expandedGroups:P.includes(M)?P.filter(k=>k!==M):[...P,M]}})},resetUi:()=>a({ui:O1.ui}),getTimer:M=>{let P=n.get(M);if(!P)return;let k=P.startedAt?Date.now()-P.startedAt:0;return{duration:P.duration,remaining:Math.max(0,P.remaining-k),revision:P.revision}},subscribe:M=>(o.add(M),()=>{o.delete(M)}),getSnapshot:()=>t}},me=xC();var SR=0,PC=({id:e,variant:t="default",priority:o,actions:n,duration:l,closeButton:r=!0,hideProgressBar:a,animationType:i="slide",...p})=>{let s=gC[t];return me.add({...p,id:e??`cleen-notification-${++SR}`,variant:t,actions:n,priority:o??(n?.length?"important":"normal"),duration:l??s.duration,closeButton:r,progressBar:a===void 0?s.progressBar:!a,animationType:i,createdAt:Date.now()})},wR=(e,{hideProgressBar:t,...o})=>me.update(e,{...o,...t!==void 0&&{progressBar:!t}}),Rn={show:PC,update:wR,dismiss:me.dismiss,dismissMany:me.dismissMany,clear:me.clear};import{useSyncExternalStore as MR}from"react";var ns=()=>MR(me.subscribe,me.getSnapshot,me.getSnapshot);import{useMemo as kR}from"react";var TR=()=>{let{toasts:e,paused:t}=ns();return{toasts:kR(()=>e.filter(n=>!n.leaving),[e]),paused:t,show:Rn.show,update:Rn.update,dismiss:Rn.dismiss,dismissMany:Rn.dismissMany,clear:Rn.clear}};var SC={critical:0,important:1,normal:2},_1=e=>e.filter(t=>!t.leaving),rs=e=>[...e].reverse(),MC=e=>[...e].sort((t,o)=>SC[t.priority]-SC[o.priority]),Dr=e=>!!e.actions?.length&&e.priority!=="normal",kC=e=>e.category??Lr,En=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),V1=e=>e.map(En),wC=(e,t)=>(e.leavingFromCount??0)>t,Fr=(e,t,o)=>{let n=_1(e);if(n.length>t)return o(n);let l=e.filter(r=>r.leaving&&wC(r,t));return!n.length&&l.length>t?o(l).map(r=>({...r,exiting:!0})):V1(e.filter(r=>!r.leaving||!wC(r,t)))};var z1=(e,t,o)=>Fr(e,o,n=>{let l=MC(rs(n)),r=l.filter(u=>u.priority==="critical"),a=l.filter(u=>u.priority!=="critical"),i=new Map;a.forEach(u=>{let v=kC(u);i.set(v,[...i.get(v)??[],u])});let p=u=>Number(i.get(u).some(Dr)),s=u=>i.get(u).length,d=[...i.keys()].sort((u,v)=>p(v)-p(u)||s(v)-s(u)),f=Math.max(0,o-Math.min(r.length,1)),m=d.slice(0,f),b=[...r.slice(1),...d.slice(f).flatMap(u=>i.get(u))],y=r.slice(0,1).map(En);return m.forEach(u=>{let v=i.get(u);y.push(v.length===1?En(v[0]):{type:"group",key:`group-${u}`,category:u,toasts:v,expanded:t.expandedGroups.includes(u)})}),y.push({type:"footer",key:"footer",overflow:b,toasts:n}),y});var H1=(e,t,o=1/0)=>Fr(e,o,n=>[...V1(n),{type:"footer",key:"footer",overflow:[],toasts:n}]);var U1=(e,t,o)=>Fr(e,o,n=>{let l=rs(n);if(t.expanded)return[{type:"list",key:"list",toasts:l}];let r=l.filter(d=>d.priority==="critical"),a=l.filter(d=>d.priority!=="critical"),[i,...p]=a,s=r.map(En);return i&&p.length?s.push({type:"deck",key:"deck",top:i,hidden:p}):i&&s.push(En(i)),s});var TC={list:H1,stack:U1,group:z1};import{createContext as NR,useContext as BR}from"react";var G1=NR({categories:Ul,labels:Gl,hiddenElements:[],now:Date.now(),paused:!1}),ke=()=>BR(G1);import{cn as RR,getTimeAgoLabel as ER}from"@cleen/ui-core";var J=(e,t,o,n)=>{let l=n?.classNames,r=n?.styles,a=e.styles?.[t]||r?.[t]?{...e.styles?.[t],...r?.[t]}:void 0;return{className:RR(o,e.classNames?.[t],l?.[t]),style:a,"data-slot":t}},Ft=({className:e,style:t,...o})=>({classNames:{container:e},styles:{container:t},...o}),Ar=(e,t)=>e.categories[t]??{...e.categories[Lr],label:t,pluralLabel:t},as=(e,t,o)=>{let n=Math.floor(Math.max(0,t-e));return typeof o.timeAgo=="function"?o.timeAgo(n):ER(n,o?.timeAgoStamps)},NC=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 LR}from"@cleen/ui-core";import{jsx as BC}from"react/jsx-runtime";var ls=({toast:e})=>{let t=ke();if(t.hiddenElements.includes("badges"))return null;let o=e.priority==="critical";if(!o&&!Dr(e))return null;let n=J(t,"badge",void 0,e);return BC("span",{...J(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:BC(Le,{color:o?"red":"primary",variant:"full",label:o?t.labels.critical:t.labels.action,classNames:{container:LR("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 RC}from"@cleen/ui-core";import{Fragment as DR,jsx as _o}from"react/jsx-runtime";var EC=({icon:e,tone:t="neutral",size:o="md",className:n,...l})=>{let r=o==="sm"?14:18;return _o("span",{className:RC("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",IC[t],n),"aria-hidden":"true",...l,children:_o(Ee,{name:e,width:r,height:r})})},$1=({category:e,...t})=>{let o=ke(),n=Ar(o,e);return _o(EC,{icon:n.icon,tone:n.tone,...t})},cs=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return _o(DR,{children:e.icon});if(e.category)return _o($1,{category:e.category,size:t});let o=os[e.variant];return o?_o(EC,{icon:o.name,tone:o.tone,size:t}):null},Ln=({icon:e,label:t,className:o,...n})=>_o("button",{type:"button","aria-label":t,title:t,className:RC("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:_o(Ee,{name:e,width:14,height:14,strokeWidth:2})});import{cn as W1}from"@cleen/ui-core";import{Fragment as FR,jsx as $l,jsxs as q1}from"react/jsx-runtime";var LC=({toast:e,children:t})=>{let o=ke(),n=e.title!==void 0&&e.title!==null,l=e.icon===void 0&&(!!e.category||!!os[e.variant]),r=$l(cs,{toast:e}),a=$l(ls,{toast:e});return q1(FR,{children:[(e.icon!==void 0||l||e.variant!=="default")&&$l("span",{...J(o,"icon",W1("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!l}),e),children:r}),q1("div",{...J(o,"body",W1("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[n?q1("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[$l("span",{...J(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}),a]}):a,$l("span",{...J(o,"message",W1("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":n,"cleen-text-foreground":!n}),e),children:e.message}),t]})]})};import{useState as AR}from"react";import{jsx as OR}from"react/jsx-runtime";var DC=({toast:e})=>{let t=ke(),[o]=AR(()=>me.getTimer(e.id));if(!o)return null;let n=J(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 OR("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 _R}from"@cleen/ui-core";import{jsx as ss,jsxs as is}from"react/jsx-runtime";var ps=({toast:e,inDeck:t=!1})=>{let o=ke(),{labels:n,hiddenElements:l}=o,r=e.priority==="critical",a=!!e.actions?.length,i=()=>me.dismiss(e.id),p=f=>{f.key==="Escape"&&(f.stopPropagation(),i())},s=!!e.category&&!l.includes("meta"),d=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!l.includes("progressBar");return is("div",{role:r?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||a?void 0:0,onKeyDown:p,...J(o,"toast",_R("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)&&NC(e),e.className),e),children:[is(LC,{toast:e,children:[s&&is("span",{...J(o,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[Ar(o,e.category).label," \xB7"," ",as(e.createdAt,o.now,n)]}),a&&is("div",{...J(o,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((f,m)=>{let b=J(o,"action",tt,e);return ss(te,{variant:f.variant??(m?"secondary":"primary"),label:f.label,onClick:()=>{f.onClick?.(e),i()},...Ft(b)},`${f.label}-${m}`)}),ss(te,{variant:"secondary",label:n.dismiss,onClick:i,...Ft(J(o,"dismissButton",tt,e))})]})]}),e.closeButton&&ss(Ln,{icon:"X",label:n.close,onClick:i,...J(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),d&&ss(DC,{toast:e},me.getTimer(e.id)?.revision)]})};import{Fragment as VR,jsx as Or,jsxs as ds}from"react/jsx-runtime";var FC="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",AC=({top:e,hidden:t})=>{let o=ke(),{labels:n}=o,l=[e.id,...t.map(r=>r.id)];return ds(VR,{children:[ds("div",{...J(o,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[Or(ps,{toast:e,inDeck:!0}),Or("span",{"aria-hidden":"true",...J(o,"deckPeek",`${FC} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&Or("span",{"aria-hidden":"true",...J(o,"deckPeek",`${FC} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!o.hiddenElements.includes("deckMoreBar")&&ds("div",{...J(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:[Or("span",{...J(o,"deckMoreLabel"),children:n.moreBehind(t.length)}),ds("span",{className:"cleen-flex cleen-gap-1",children:[Or(te,{variant:"secondary",label:n.showAll,"aria-expanded":!1,onClick:()=>me.setExpanded(!0),...Ft(J(o,"deckShowAllButton",tt))}),Or(te,{variant:"borderless",label:n.dismissAll,onClick:()=>me.dismissMany(l),...Ft(J(o,"deckDismissAllButton",tt))})]})]})]})};import{cn as zR}from"@cleen/ui-core";import{Fragment as HR,jsx as ms,jsxs as UR}from"react/jsx-runtime";var OC=({count:e})=>{let t=ke(),{labels:o,onViewAll:n}=t;if(t.hiddenElements.includes("overflowPill"))return null;let l=UR(HR,{children:[o.overflow(e),ms("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:ms(Ee,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),r=J(t,"overflowPill",zR("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?ms("button",{type:"button",onClick:()=>n(),...r,children:l}):ms("span",{...r,children:l})};import{jsx as _C,jsxs as GR}from"react/jsx-runtime";var VC=({overflow:e,toasts:t})=>{let o=ke(),n=!o.hiddenElements.includes("dismissAllButton");return!n&&!e.length?null:GR("div",{...J(o,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[n&&_C("button",{type:"button",onClick:()=>me.dismissMany(t.map(l=>l.id)),...J(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&&_C(OC,{count:e.length})]})};import{jsx as Dn,jsxs as us}from"react/jsx-runtime";var fs=({toast:e,onDismiss:t})=>{let o=ke(),n=e.actions?.[0],l=e.title!==void 0&&e.title!==null;return us("div",{...J(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:[Dn("span",{...J(o,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:Dn(cs,{toast:e,size:"sm"})}),us("div",{...J(o,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[us("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[Dn("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:l?e.title:e.message}),Dn(ls,{toast:e})]}),l&&Dn("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),us("span",{...J(o,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[n&&Dn(Ln,{icon:"ArrowRight",label:n.label,onClick:()=>{n.onClick?.(e),t(e.id)}}),Dn(Ln,{icon:"X",label:o.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as $R,useLayoutEffect as WR,useRef as qR}from"react";var KR='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',hs=(e,t,o)=>{let n=qR(!1);return $R(()=>{e.current?.focus({preventScroll:!0})},[e]),WR(()=>{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 p=i.relatedTarget;p&&!i.currentTarget.contains(p)&&(n.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),o();return}if(i.key!=="Tab"||!e.current)return;let p=[...e.current.querySelectorAll(KR)],s=p[0],d=p[p.length-1];!s||!d||(i.shiftKey&&document.activeElement===s?(i.preventDefault(),d.focus()):!i.shiftKey&&(document.activeElement===d||document.activeElement===e.current)&&(i.preventDefault(),s.focus()))}}};import{useRef as XR}from"react";import{Fragment as QR,jsx as Ke,jsxs as co}from"react/jsx-runtime";var K1=3,YR=({toasts:e,onCollapse:t})=>{let o=XR(null),n=hs(o,e.length,t);return Ke("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=>Ke(fs,{toast:l,onDismiss:me.dismiss},l.id))})},zC=({category:e,toasts:t,expanded:o})=>{let n=ke(),{labels:l,onViewAll:r,hiddenElements:a}=n,i=Ar(n,e),p=t.map(b=>b.id),s=t.filter(Dr).length,d=Math.min(...t.map(b=>b.createdAt)),f=()=>me.dismissMany(p),m=()=>me.toggleGroup(e);return co("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:b=>{b.key==="Escape"&&!o&&(b.stopPropagation(),f())},...J(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:[co("div",{...J(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:[Ke($1,{category:e,...J(n,"groupIcon")}),co("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[co("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[Ke("span",{...J(n,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:l.groupTitle(t.length,i)}),Ke("span",{...J(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})]}),!a.includes("meta")&&co("span",{...J(n,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[s>0&&co(QR,{children:[l.needAction(s)," \xB7 "]}),as(d,n.now,l)]})]})]}),o?Ke(YR,{toasts:t,onCollapse:m}):co("div",{...J(n,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,K1).map(b=>co("div",{...J(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:[Ke("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),Ke("span",{className:"cleen-min-w-0 cleen-truncate",children:b.title??b.message})]},b.id)),t.length>K1&&!a.includes("groupMore")&&Ke("span",{...J(n,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:l.more(t.length-K1)})]}),co("div",{...J(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&&Ke(te,{variant:"primary",label:l.review(i),rightIcon:Ke(Ee,{name:"ArrowRight",width:14,height:14}),onClick:()=>r(e),...Ft(J(n,"groupReviewButton",tt))}),Ke(te,{variant:"secondary",label:o?l.collapse:l.expand,"aria-expanded":o,onClick:m,...Ft(J(n,"groupToggleButton",tt))}),Ke("span",{className:"cleen-flex-1"}),Ke(te,{variant:"borderless",label:l.dismiss,onClick:f,...Ft(J(n,"groupDismissButton",tt))})]}),Ke(Ln,{icon:"X",label:l.dismissGroup,onClick:f,...J(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as ZR}from"react";import{jsx as Vo,jsxs as gs}from"react/jsx-runtime";var HC=({toasts:e})=>{let t=ke(),{labels:o,onViewAll:n}=t,l=ZR(null),r=()=>me.setExpanded(!1),a=hs(l,e.length,r);return gs("div",{ref:l,tabIndex:-1,role:"group","aria-label":o.region,...a,...J(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:[gs("div",{...J(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:[gs("span",{children:[o.listTitle(e.length)," "]}),Vo("span",{className:"cleen-flex-1"}),Vo(te,{variant:"borderless",label:o.collapse,"aria-expanded":!0,leftIcon:Vo(Ee,{name:"ChevronUp",width:14,height:14}),onClick:r,classNames:{container:tt}})]}),Vo("div",{...J(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>Vo(fs,{toast:i,onDismiss:me.dismiss},i.id))}),gs("div",{...J(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&&Vo(te,{variant:"secondary",label:o.openNotifications,onClick:()=>n(),classNames:{container:tt}}),Vo("span",{className:"cleen-flex-1"}),Vo(te,{variant:"secondary",label:o.dismissAll,onClick:()=>me.dismissMany(e.map(i=>i.id)),classNames:{container:tt}})]})]})};import{useEffect as JR,useState as jR}from"react";var UC=e=>{let[t,o]=jR(()=>Date.now());return JR(()=>{if(!e)return;o(Date.now());let n=setInterval(()=>o(Date.now()),vC);return()=>clearInterval(n)},[e]),t};import{cn as Y1}from"@cleen/ui-core";import{forwardRef as eE,useCallback as tE,useEffect as X1,useMemo as GC,useRef as $C}from"react";import{jsx as io}from"react/jsx-runtime";var oE=e=>{switch(e.type){case"toast":return io(ps,{toast:e.toast},e.key);case"deck":return io(AC,{top:e.top,hidden:e.hidden},e.key);case"list":return io(HC,{toasts:e.toasts},e.key);case"group":return io(zC,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return io(VC,{overflow:e.overflow,toasts:e.toasts},e.key)}},nE=(e,t)=>io("div",{"aria-hidden":"true",className:Y1("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:oE(e)},e.key),rE=eE(function({layout:t="list",maxVisible:o=bC,position:n="bottom-right",categories:l,onViewAll:r,labels:a,classNames:i,styles:p,hiddenElements:s,className:d,style:f,...m},b){let y=ns(),u=_1(y.toasts).length,v=UC(y.toasts.length>0),C=$C(null),S=$C(!1),I=GC(()=>TC[t](y.toasts,y.ui,o),[t,y.toasts,y.ui,o]),x=GC(()=>({categories:{...Ul,...l},labels:{...Gl,...a},classNames:i,styles:p,hiddenElements:s??[],onViewAll:r,now:v,paused:y.paused}),[l,a,i,p,s,r,v,y.paused]);X1(()=>{let{expanded:N,expandedGroups:D}=y.ui,M=y.toasts.some(P=>P.leaving);u<=o&&!M&&(N||D.length)&&me.resetUi()},[u,o,y.toasts,y.ui]);let w=tE(()=>{let N=document.activeElement,D=!!(N&&C.current?.contains(N))&&!!N?.matches(":focus-visible");S.current||D?me.pauseAll():me.resumeAll()},[]);X1(()=>{u||(S.current=!1),w()},[u,w]),X1(()=>{let N=D=>{S.current&&!C.current?.contains(D.target)&&(S.current=!1,w())};return document.addEventListener("pointermove",N,{passive:!0}),()=>document.removeEventListener("pointermove",N)},[w]);let R=N=>{S.current=N,w()},T=()=>requestAnimationFrame(w);return io("div",{className:Y1("cleen",d),style:f,ref:b,children:io(G1.Provider,{value:x,children:io("div",{role:"region","aria-live":"polite","aria-label":x.labels.region,ref:C,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),onFocus:T,onBlur:T,...J(x,"region",Y1("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",CC[n])),...m,children:I.map(N=>nE(N,n.endsWith("left")?"cleen-items-start":n.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as WC}from"@cleen/ui-core";import{forwardRef as aE,useState as lE}from"react";import{jsx as Q1,jsxs as cE}from"react/jsx-runtime";var Z1=aE(({totalPages:e,labels:t,onGoToPage:o,classNames:n,styles:l,...r},a)=>{let[i,p]=lE(""),s=()=>{let f=parseInt(i,10);isNaN(f)||(o?.(Math.min(Math.max(f,1),e)),p(""))},d=f=>{f.key==="Enter"?s():f.key==="Escape"&&p("")};return Q1("div",{className:"cleen",...r,children:cE("div",{className:WC("cleen-flex cleen-items-center cleen-gap-2",n?.container),style:l?.container,children:[Q1("span",{className:WC("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",n?.label),style:l?.label,children:t?.goToPage}),Q1(Ie,{ref:a,type:"number",min:1,max:e,value:i,onChange:f=>p(f.target.value),onKeyDown:d,...n?.input,...l?.input})]})})});import{cn as bs,useOutsideClick as iE,usePositionClose as sE}from"@cleen/ui-core";import{forwardRef as pE,useRef as qC,useState as KC}from"react";import{createPortal as dE}from"react-dom";import{jsx as _r,jsxs as uE}from"react/jsx-runtime";var mE=[10,20,50,100],J1=pE(({pageSize:e,pageSizes:t=mE,labels:o,onPageSizeChange:n,classNames:l,styles:r,...a},i)=>{let[p,s]=KC(e??t?.[0]??void 0),[d,f]=KC(!1),m=qC(null),b=qC(null),{positionStyles:y,isMounted:u}=sE({triggerRef:m,targetRef:b,isOpen:d,position:"top-left"});return iE({refs:[m,b],handler:()=>f(!1),enabled:d}),_r("div",{className:"cleen",ref:i,...a,children:uE("div",{className:bs("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",l?.container),style:r?.container,children:[_r(Ne,{label:o?.itemsPerPage?.(p),classNames:{labelContainer:"cleen-min-w-max"},children:_r("div",{className:bs("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:()=>f(v=>!v),ref:m,children:p})}),d&&dE(_r("div",{className:"cleen",children:_r("div",{ref:b,className:bs("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(v=>v!==p)?.map(v=>_r("div",{className:bs("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:()=>{s(v),n?.(v),f(!1)},children:v},v))})}),document.body)]})})});var XC={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as zo}from"@cleen/ui-core";import{forwardRef as fE,useCallback as ys,useMemo as hE,useRef as gE}from"react";import{jsx as ot,jsxs as yE}from"react/jsx-runtime";var bE=fE(({currentPage:e,totalPages:t,pageSize:o,pageSizes:n,hasGotoPage:l=!0,hasPageSizeSelector:r=!0,onPageChange:a,onPageSizeChange:i,labels:p=XC,classNames:s,styles:d,...f},m)=>{let b=gE(null),y=ys(()=>{e<t&&a?.(e+1)},[e,t,a]),u=ys(()=>{e>1&&a?.(e-1)},[e,a]),v=ys(I=>ot("span",{className:zo("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-cursor-pointer",I===e&&"cleen-bg-muted hover:cleen-bg-neutral-200",s?.pageButton,I===e?s?.activePageButton:""),style:{...d?.pageButton,...I===e?d?.activePageButton:{}},onClick:()=>a?.(I),children:I},`page-${I}`),[e,a,s,d]),C=ys(I=>ot("span",{className:zo("cleen-flex cleen-justify-center cleen-self-end cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.ellipsis),style:d?.ellipsis,onClick:()=>b.current?.focus(),children:"..."},I),[s,d]),S=hE(()=>{if(isNaN(e)||isNaN(t))return[];let I=[];if(I.push(ot(Ne,{label:p.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:ot("span",{className:zo("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.navButton),style:d?.navButton,onClick:u,children:ot(Qt,{})})},"prev")),t<=7)for(let x=1;x<=t;x++)I.push(v(x));else if(I.push(v(1)),e<=3){for(let x=2;x<5;x++)I.push(v(x));I.push(C("dots-end")),I.push(v(t))}else if(e>=t-2){I.push(C("dots-start"));for(let x=t-3;x<=t;x++)I.push(v(x))}else I.push(C("dots-start")),I.push(v(e-1)),I.push(v(e)),I.push(v(e+1)),I.push(C("dots-end")),I.push(v(t));return I.push(ot(Ne,{label:p.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:ot("span",{className:zo("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.navButton),style:d?.navButton,onClick:y,children:ot(ct,{})})},"next")),I},[e,t,p,s,d,C,v,y,u]);return ot("div",{className:"cleen",ref:m,...f,children:yE("div",{className:zo("cleen-flex cleen-justify-between cleen-gap-4",s?.container),style:d?.container,children:[r?ot(J1,{pageSize:o,labels:p,onPageSizeChange:i,pageSizes:n,className:zo("cleen-flex-1",s?.pageSizeSelector?.className),classNames:s?.pageSizeSelector?.classNames,...d?.pageSizeSelector}):ot("div",{className:"cleen-flex-1"}),ot("div",{className:zo("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",s?.buttonsContainer),style:d?.buttonsContainer,children:S}),l?ot(Z1,{ref:b,totalPages:t,onGoToPage:a,labels:p,className:zo("cleen-flex cleen-flex-1 cleen-justify-end",s?.goToPage?.className),classNames:s?.goToPage?.classNames,...d?.goToPage}):ot("div",{className:"cleen-flex-1"})]})})});import{cn as YC}from"@cleen/ui-core";import{forwardRef as vE,useEffect as IE,useState as CE}from"react";import{jsx as vs,jsxs as QC}from"react/jsx-runtime";var xE={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},ZC=vE(({isFullscreen:e,percentage:t,duration:o=1e3,radius:n,stroke:l=16,size:r="md",color:a="rgb(var(--cleen-primary))",emptyColor:i="rgb(var(--cleen-neutral-200))",textColor:p="rgb(var(--cleen-foreground))",textHidden:s=!1,fontSize:d,renderText:f,className:m,classNames:b,style:y,styles:u,...v},C)=>{let S=n??xE[r]/2,I=S-l/2,x=I*2*Math.PI,[w,R]=CE(0);IE(()=>{let N=null;if(o===0){R(t);return}let D=M=>{N||(N=M);let P=M-N,k=Math.min(P/o*t,t);R(k),k<t&&requestAnimationFrame(D)};requestAnimationFrame(D)},[t,o]);let T=x-w/100*x;return vs("div",{ref:C,className:YC("cleen",m),style:y,...v,children:QC("div",{className:YC("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},b?.container),style:u?.container,children:[QC("svg",{height:S*2,width:S*2,style:{transform:"rotate(-90deg)"},children:[vs("circle",{stroke:i,fill:"transparent",strokeWidth:l,r:I,cx:S,cy:S}),vs("circle",{stroke:a,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:x,strokeDashoffset:T,r:I,cx:S,cy:S})]}),!s&&vs("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:d??S/2.5,color:p},children:f?f(w):`${Math.round(w)}%`})]})})});ZC.displayName="ProgressCircle";import{cn as ht}from"@cleen/ui-core";import{useEffect as PE,useState as SE}from"react";import{Fragment as JC,jsx as so,jsxs as Wl}from"react/jsx-runtime";var wE=({horizontal:e,boxes:t,selectedBox:o,onBoxClick:n,leftElement:l,rightElement:r,leftIcon:a,leftIconName:i,rightIconName:p,className:s,classNames:d,style:f,styles:m,...b})=>{let[y,u]=SE(o);PE(()=>{u(o)},[o]);let v=(x,w)=>Wl(JC,{children:[l&&l(x),a||(i?so(Ee,{name:i,className:ht("cleen-w-5 cleen-h-5",w?"cleen-text-primary":"cleen-text-neutral-700",d?.leftIcon),style:m?.leftIcon}):null)]}),C=(x,w)=>so("span",{className:ht("cleen-font-semibold",w?"cleen-text-primary":"cleen-text-neutral-700",d?.label),style:m?.label,children:x?.label}),S=(x,w)=>so("span",{className:ht("cleen-font-semibold cleen-text-16px",w?"cleen-text-primary":"cleen-text-neutral-700",d?.subLabel),style:m?.subLabel,children:x?.subLabel}),I=(x,w)=>Wl(JC,{children:[r&&r(x),p&&so(Ee,{name:p,className:ht("cleen-w-5 cleen-h-5",w?"cleen-text-primary":"cleen-text-neutral-700",d?.rightIcon),style:m?.rightIcon})]});return so("div",{className:ht("cleen",s),style:f,...b,children:e?so("div",{className:ht("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(x=>{let w=x?.id===y?.id;return Wl("div",{className:ht("cleen-flex cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary-100 cleen-w-max",w?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",d?.box),style:m?.box,onClick:()=>{u(x),n?.(x)},children:[v(x,w),x?.label&&C(x,w),x?.subLabel&&S(x,w),I(x,w)]},x?.id)})}):so("div",{className:ht("cleen-grid cleen-gap-3 cleen-w-full",d?.container),style:{gridTemplateColumns:"1fr auto 1fr",...m?.container},children:t?.map(x=>{let w=x?.id===y?.id;return Wl("div",{className:ht("cleen-grid cleen-col-span-full cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary-50",w?"cleen-bg-primary-100 cleen-border-muted-foreground":"cleen-bg-surface cleen-border-border",d?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...m?.box},onClick:()=>{u(x),n?.(x)},children:[so("div",{className:ht("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",d?.leftIconContainer),style:m?.leftIconContainer,children:v(x,w)}),so("div",{className:ht("cleen-flex cleen-items-center cleen-justify-center",d?.labelContainer),style:m?.labelContainer,children:x?.label&&C(x,w)}),Wl("div",{className:ht("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",d?.rightIconContainer),style:m?.rightIconContainer,children:[x?.subLabel&&S(x,w),I(x,w)]})]},x?.id)})})})};import{cn as Mt}from"@cleen/ui-core";import{forwardRef as TE,useEffect as NE,useId as BE,useRef as RE,useState as EE}from"react";import{cn as jC}from"@cleen/ui-core";import{forwardRef as ME}from"react";import{jsx as ex,jsxs as kE}from"react/jsx-runtime";var Is=ME(function({checked:t,className:o,classNames:n,style:l,styles:r,...a},i){return kE("div",{className:jC("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:[ex("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...a}),ex("span",{className:jC("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",n?.innerCircle),style:r?.innerCircle})]})});import{jsx as At,jsxs as Cs}from"react/jsx-runtime";var LE=TE(function({required:t,radios:o,label:n,labelTooltip:l,className:r,classNames:a,style:i,styles:p,name:s,direction:d="vertical",radioPosition:f="left",defaultActiveId:m,value:b,infoLabels:y,onChange:u},v){let C=b!==void 0,[S,I]=EE(m??o[0]?.id),x=BE(),w=`${x}-label`,R=s??`cleen-radio-group-${x}`;NE(()=>{!C&&m!==void 0&&I(m)},[m,C]);let T=C?b:S,N=B=>T!=null&&T==B,D=B=>{C||I(B),u?.(B)},M=RE([]),P=o?.findIndex(B=>!B.disabled&&N(B.id)),k=o?.findIndex(B=>!B.disabled),E=P>=0?P:Math.max(k,0),L=B=>{let A=o[B];!A||A.disabled||(D(A.id),M.current[B]?.focus())},F=(B,A)=>{let V=o.length;for(let U=1;U<V;U++){let _=(B+A*U+V)%V;if(!o[_]?.disabled)return _}return B},O=(B,A)=>{if(o.length)switch(B.key){case"ArrowDown":case"ArrowRight":B.preventDefault(),L(F(A,1));break;case"ArrowUp":case"ArrowLeft":B.preventDefault(),L(F(A,-1));break;default:break}};return At("div",{className:Mt("cleen",r),style:i,ref:v,children:Cs("div",{className:a?.container,style:p?.container,children:[n&&At(de,{id:w,htmlFor:x,required:t,tooltip:l,className:Mt("cleen-mb-1.5",a?.label?.className),classNames:a?.label?.classNames,...p?.label,children:n}),At("div",{id:x,role:"radiogroup","aria-labelledby":n?w:void 0,className:Mt("cleen-flex cleen-flex-wrap cleen-gap-2.5",d==="vertical"&&"cleen-flex-col cleen-w-fit",a?.radios),style:p?.radios,children:o?.map((B,A)=>{let V=`${x}-${A}`,U=B.radioPosition??f,_=!!B.disabled;return Cs("div",{className:Mt("cleen-flex cleen-gap-2 cleen-p-5 cleen-border cleen-border-border cleen-rounded-xl cleen-transition-all cleen-duration-200",_?"cleen-cursor-not-allowed":"hover:cleen-bg-muted hover:cleen-border-neutral-300 cleen-cursor-pointer",d==="horizontal"&&"cleen-flex-1",N(B?.id)&&"cleen-border-primary hover:cleen-border-primary",a?.radioContainer,B?.className,N(B?.id)&&a?.radioActive),style:{...p?.radioContainer,...B?.style},onClick:W=>{!_&&W.target instanceof Element&&!W.target.closest("label, input, a, button")&&M.current[A]?.click()},children:[B.leftIcon,U==="left"&&At(Is,{ref:W=>{M.current[A]=W},id:V,name:R,value:B.id,checked:N(B.id),disabled:_,tabIndex:A===E?0:-1,onChange:()=>D(B.id),onKeyDown:W=>O(W,A),className:Mt(_&&"cleen-opacity-50",a?.radioOuterCheckBox,B?.classNames?.outerCheckBox),style:{...p?.radioOuterCheckBox,...B?.styles?.outerCheckBox}}),Cs("label",{htmlFor:V,className:Mt("cleen-flex-1",_?"cleen-cursor-not-allowed":"cleen-cursor-pointer",a?.radioLabelsContainer,B?.classNames?.labelsContainer),style:{...p?.radioLabelsContainer,...B?.styles?.labelsContainer},children:[Cs("div",{className:Mt("cleen-flex cleen-items-center cleen-gap-1",_&&"cleen-opacity-50"),children:[At("span",{className:Mt("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",a?.radioTitle,B?.classNames?.title),style:{...p?.radioTitle,...B?.styles?.title},children:B.title}),At("span",{className:Mt("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",a?.radiotPostTitle,B?.classNames?.postTitle),style:{...p?.radiotPostTitle,...B?.styles?.postTitle},children:B.postTitle})]}),At("span",{className:Mt("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",a?.radioSubTitle,B?.classNames?.subTitle),style:{...p?.radioSubTitle,...B?.styles?.subTitle},children:B?.subTitle})]}),U==="right"&&At(Is,{ref:W=>{M.current[A]=W},id:V,name:R,value:B.id,checked:N(B.id),disabled:_,tabIndex:A===E?0:-1,onChange:()=>D(B.id),onKeyDown:W=>O(W,A),className:Mt(_&&"cleen-opacity-50",a?.radioOuterCheckBox),style:p?.radioOuterCheckBox}),U==="hidden"&&At(Is,{ref:W=>{M.current[A]=W},id:V,name:R,value:B.id,checked:N(B.id),disabled:_,tabIndex:A===E?0:-1,onChange:()=>D(B.id),onKeyDown:W=>O(W,A),className:"cleen-sr-only"}),B.rightIcon]},B?.id)})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&At(ie,{...y})]})})});import{cn as Vr,ColorHelpers as DE}from"@cleen/ui-core";import{forwardRef as FE,useRef as AE,useState as OE}from"react";import{jsx as Fn,jsxs as tx}from"react/jsx-runtime";var _E=FE(function({id:t,required:o,label:n,labelTooltip:l,labels:r,infoLabels:a,value:i,onChange:p,amount:s=5,options:d=[],gap:f,size:m=36,readonly:b,color:y="rgb(var(--cleen-primary))",className:u,style:v,classNames:C,styles:S,...I},x){let[w,R]=OE(0),T=i!==void 0,N=T?i:w,D=d?.length>0?d:Array.from({length:s},(B,A)=>A+1),M=AE([]),P=D.findIndex(B=>B===N),k=P>=0?P:0,E=B=>{T||R(B),p?.(B)},L=B=>{let A=D[B];A!==void 0&&(E(A),M.current[B]?.focus())},F=(B,A)=>{if(b)return;let V=D.length;if(V)switch(B.key){case"ArrowRight":case"ArrowUp":B.preventDefault(),L((A+1)%V);break;case"ArrowLeft":case"ArrowDown":B.preventDefault(),L((A-1+V)%V);break;case"Home":B.preventDefault(),L(0);break;case"End":B.preventDefault(),L(V-1);break;default:break}},O=typeof n=="string"?n:"Rating";return Fn("div",{className:Vr("cleen",u),style:v,ref:x,...I,children:tx("div",{className:Vr("cleen-space-y-2",C?.container),style:S?.container,children:[n&&Fn(de,{htmlFor:t,required:o,tooltip:l,className:Vr("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...S?.label,children:n}),tx("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Fn("div",{role:"radiogroup","aria-label":O,className:Vr("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...f?{gap:f}:{},...S?.list},children:D?.map((B,A)=>Fn("button",{id:t,ref:V=>{M.current[A]=V},role:"radio","aria-checked":N===B,"aria-label":`${B}`,tabIndex:A===k?0:-1,onClick:()=>E(B),onKeyDown:V=>F(V,A),className:Vr("cleen-flex cleen-justify-center cleen-items-center cleen-border cleen-border-border hover:cleen-border-muted-foreground cleen-rounded-full cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",b&&"cleen-cursor-default cleen-pointer-events-none",C?.item),style:{width:m,height:m,...N===B?{borderColor:y,backgroundColor:DE.trasparentize(y,.9),color:y}:{},...S?.item},type:"button",children:Fn("span",{className:Vr("cleen-font-medium cleen-text-sm",C?.value),style:S?.value,children:B})},B))}),r?.helperText&&Fn("span",{className:"cleen-text-sm cleen-text-neutral-600",children:r.helperText})]}),(a?.errorMessage||a?.infoMessage||a?.subtitle)&&Fn(ie,{...a})]})})});import{useState as VE}from"react";import{components as zE}from"react-select";import{jsx as j1,jsxs as ox}from"react/jsx-runtime";var nx=e=>{let[t,o]=VE(!1),n=e.data;return j1("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:j1(zE.Option,{...e,children:ox("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[ox("div",{className:"cleen-flex-1",children:[n?.label,n?.sublabel&&j1("p",{className:"cleen-text-xs",children:n?.sublabel})]}),typeof n?.icon=="function"?n.icon({...e,isHovered:t}):n?.icon]})})})};import{components as HE}from"react-select";import{jsx as eg,jsxs as UE}from"react/jsx-runtime";var rx=e=>{let t=e.data;return eg(HE.SingleValue,{...e,children:UE("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[eg("p",{children:t?.label}),t?.sublabel&&eg("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as ql,ZIndex as sx}from"@cleen/ui-core";import{forwardRef as WE,useId as qE,useState as px}from"react";import KE from"react-select";import{components as GE}from"react-select";import{jsx as tg,jsxs as ax}from"react/jsx-runtime";var lx=({isLoading:e,inputValue:t,options:o,createNewOptionCallback:n,createNewOptionLabelStringCb:l,children:r,...a})=>{let i=t?.trim().toLowerCase(),p=o?.some(s=>s?.labelString?s.labelString.toLowerCase()===i:typeof s?.label=="string"?s.label.toLowerCase()===i:!1);return tg("div",{className:"cleen",children:ax(GE.MenuList,{options:o,...a,children:[r,n&&!e&&t&&t?.length>0&&!p&&ax("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[tg(xt,{}),tg("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 $E}from"react-select";import{jsx as cx}from"react/jsx-runtime";var ix=({isLoading:e,noDataFound:t,...o})=>cx($E.NoOptionsMessage,{...o,children:e?cx(ce,{}):t||"No data found"});import{jsx as Ho,jsxs as mx}from"react/jsx-runtime";var dx=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),XE=WE(function({label:t,labelTooltip:o,sublabel:n,id:l,name:r,required:a,className:i,classNames:p,isLoading:s=!1,disabled:d,emboldenOptions:f=!1,labels:m,components:b,style:y,styles:u,infoLabels:v,createNewOptionCallback:C,createNewOptionLabelStringCb:S,...I},x){let[w,R]=px(!1),[T,N]=px(""),D=qE(),M=I.inputId??l??r??D,P=(E,L)=>{if(!dx(E.data))return!1;let{labelString:F,label:O}=E.data;return F?F.toLowerCase().includes(L.toLowerCase()):typeof O=="string"?O.toLowerCase().includes(L.toLowerCase()):!1},k=E=>dx(E)?E.labelString??(typeof E.label=="string"?E.label:""):"";return Ho("div",{className:ql("cleen",i),style:y,ref:x,children:mx("div",{className:ql("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",p?.cleenContainer),style:u?.cleenContainer,children:[(t||n)&&mx("div",{className:ql("cleen-flex cleen-flex-col cleen-gap-1",p?.labels?.container),style:u?.labels?.container,children:[t&&Ho(de,{htmlFor:M,required:a,tooltip:o,...p?.labels?.label,...u?.labels?.label,children:t}),n&&Ho("span",{className:ql("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",p?.labels?.sublabel),style:u?.labels?.sublabel,children:n})]}),Ho(KE,{...C&&{menuIsOpen:w,inputValue:T,onInputChange:E=>N(E),onMenuOpen:()=>R(!0),onMenuClose:()=>R(!1)},...!I.filterOption&&{filterOption:P},...!I.getOptionLabel&&{getOptionLabel:k},id:l||r,classNames:p,isDisabled:d,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:M,className:ql("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",p?.inputOuterContainer),styles:{...u,control:(E,L)=>{let F={...E,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:f&&L.hasValue?"600":"400",borderColor:v?.errorMessage?"rgba(var(--cleen-error), 0.7)":"rgb(var(--cleen-border))",color:L.isDisabled?"rgb(var(--cleen-neutral-500))":"rgb(var(--cleen-foreground))",backgroundColor:L.isDisabled?"rgb(var(--cleen-neutral-100))":"rgba(var(--cleen-background))",boxShadow:L.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:C?"rgba(var(--cleen-foreground))":"transparent","&:hover":{borderColor:v?.errorMessage?"rgba(var(--cleen-error))":"rgb(var(--cleen-border))"}};return u?.control?u?.control(F,L):F},menuPortal:(E,L)=>{let F={...E,zIndex:sx.SELECT,...u?.menuPortal};return u?.menuPortal?u?.menuPortal(F,L):F},menu:(E,L)=>{let F={...E,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:sx.SELECT,...u?.menu};return u?.menu?u?.menu(F,L):F},option:(E,L)=>{let F={...E,backgroundColor:L.isSelected?"rgba(var(--cleen-primary))":L.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:L.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-foreground))",fontWeight:f?"600":"400","&:hover":L.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:L.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-neutral-600))"},"&:hover p":{color:"rgba(var(--cleen-white))"},"&:active":{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))"}};return u?.option?u?.option(F,L):F},menuList:(E,L)=>{let F={...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(F,L):F},singleValue:(E,L)=>{let F={...E,color:L.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return u?.singleValue?u?.singleValue(F,L):F},input:(E,L)=>{let F={...E,color:"rgba(var(--cleen-foreground))"};return u?.input?u?.input(F,L):F}},components:{IndicatorSeparator:()=>null,SingleValue:E=>Ho(rx,{...E}),NoOptionsMessage:E=>Ho(ix,{isLoading:s,noDataFound:m?.noDataFound,...E}),MenuList:E=>Ho(lx,{isLoading:s,inputValue:T,createNewOptionCallback:C,createNewOptionLabelStringCb:S,...E}),Option:nx,...b}}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Ho(ie,{...v})]})})});import{jsx as ux,jsxs as YE}from"react/jsx-runtime";function fx({children:e,title:t,className:o="",renderHeader:n}){return YE("div",{className:`cleen-w-full cleen-h-full ${o}`,"data-testid":`drawer-container-${t}`,children:[n?n(t):ux("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),ux("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as po}from"@cleen/ui-core";import{forwardRef as QE,useState as ZE}from"react";import{Fragment as tL,jsx as gt,jsxs as xs}from"react/jsx-runtime";function JE({icon:e,iconSrc:t,iconName:o,iconSize:n=24,title:l,className:r,style:a}){return e?gt("span",{className:po("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",r),style:{width:n,height:n,...a},children:e}):t?gt("img",{src:t,alt:l,width:n,height:n,className:r,style:a}):o?gt(Ee,{name:o,width:n,height:n,className:r,style:a}):null}function hx({item:e,depth:t,iconSize:o=24,classNames:n,styles:l}){let[r,a]=ZE(!1),i={...e,classNames:{...n,...e.classNames},styles:{...l,...e.styles}},p=Array.isArray(i?.items)&&i.items.length>0,s=i?.iconSize??o,d=t>0?{paddingLeft:12+t*28}:{},f=xs(tL,{children:[xs("div",{className:po("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[gt(JE,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:s,title:i?.name,className:po("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}),gt("span",{className:po("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)&&gt(Le,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return p?xs("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[xs("summary",{className:po("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:()=>a(m=>!m),children:[f,gt(Ee,{name:"ChevronDown",className:po("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})]}),gt("div",{className:po("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(m=>gt(hx,{item:m,depth:t+1,iconSize:o,classNames:n,styles:l},m?.id??m?.name))})]}):gt("div",{className:po("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:f})}var jE=QE(function({title:t,icon:o,iconName:n,iconSrc:l,iconSize:r=24,badgeColor:a="gray",badgeCount:i,items:p,onClick:s,isActive:d=!1,disabled:f,className:m,classNames:b,style:y,styles:u},v){let C={id:"root",name:t,icon:o,iconName:n,iconSrc:l,iconSize:r,badgeColor:a,badgeCount:i,isActive:d,disabled:f,onClick:s?()=>s():void 0,classNames:b,styles:u,items:p};return gt("div",{className:po("cleen",m),style:y,ref:v,children:gt(hx,{item:C,depth:0,iconSize:r,classNames:b,styles:u})})}),eL=jE;import{cn as mo}from"@cleen/ui-core";import{useEffect as aL,useRef as lL,useState as cL}from"react";import{cn as Kl}from"@cleen/ui-core";import{useMemo as oL}from"react";import{Link as nL}from"react-router-dom";import{jsx as Xl,jsxs as rL}from"react/jsx-runtime";function Yl({item:e,activeId:t,onClick:o,countBadge:n,classNames:l,styles:r,renderIcon:a}){let i=t===e?.id,p=oL(()=>e?a?a(e,i):e.icon?e.icon:e.iconSrc?Xl("img",{src:e.iconSrc,alt:e?.name||e?.label,className:Kl("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?Xl(Ee,{name:e.iconName,className:Kl("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,a,l?.icon,r?.icon]),s=rL("div",{"data-testid":`nav-item-${e?.id}`,className:Kl("cleen-group cleen-relative cleen-p-2 cleen-cursor-pointer cleen-rounded-md cleen-w-12 cleen-h-[calc(36px_+_var(--cleen-sidebar-fit,1px)_*_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:[p,n&&Xl("div",{className:Kl("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 Xl(Ne,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:Kl("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...r?.tooltip,label:e?.label,children:e?.path?Xl(nL,{to:e.path,children:s}):s})}import{jsx as uo,jsxs as An}from"react/jsx-runtime";function gx({navigationItems:e,bottomNavigationItems:t=[],drawerContent:o={},logo:n,onLogoClick:l,userAvatar:r,userInfo:a,drawerFooter:i,drawerWidth:p=330,direction:s="right",defaultActiveId:d=null,activeId:f,onActiveChange:m,closeOnOutsideClick:b=!0,closeOnBlur:y=!0,className:u,classNames:v,style:C,styles:S,renderSidebarItem:I}){let[x,w]=cL(d),R=lL(null),T=f!==void 0?f:x,N=!!T,D=P=>{let k=T===P.id?null:P.id;f===void 0&&w(k),m?.(k)};aL(()=>{if(!b||!N)return;let P=k=>{R.current&&!R.current.contains(k.target)&&(f===void 0&&w(null),m?.(null))};return document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[b,N,f,m]);let M=P=>{!y||!N||R.current&&!R.current.contains(P.relatedTarget)&&(f===void 0&&w(null),m?.(null))};return An("div",{className:mo("cleen",u),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:s==="left"?"row-reverse":"row","--cleen-sidebar-fit":"clamp(0px, (100dvh - var(--cleen-sidebar-offset, 0px) - 650px) / 250, 1px)",...C},ref:R,onBlur:M,tabIndex:y?0:void 0,children:[An("div",{className:mo("cleen-flex cleen-flex-col cleen-items-center cleen-h-full",s==="right"?"cleen-border-r cleen-border-r-border":"cleen-border-l cleen-border-l-border",v?.navigation),style:S?.navigation,children:[n&&uo("div",{className:mo("cleen-flex cleen-justify-center cleen-items-center cleen-pt-[calc(12px_+_var(--cleen-sidebar-fit,1px)_*_20)] cleen-pb-[calc(8px_+_var(--cleen-sidebar-fit,1px)_*_16)] cleen-w-full cleen-cursor-pointer",v?.logo),style:S?.logo,onClick:l,children:n}),An("div",{className:mo("cleen-flex cleen-flex-col cleen-flex-1 cleen-justify-between cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)] cleen-px-2 cleen-overflow-y-auto cleen-no-scrollbar",v?.navigationItems),style:S?.navigationItems,children:[uo("nav",{className:mo("cleen-flex cleen-flex-col cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)]",v?.upperNavigationItemsWrapper),style:S?.upperNavigationItemsWrapper,children:e.map(P=>An("div",{children:[I?I(P,T===P.id,D):uo(Yl,{item:P,activeId:T,onClick:D,countBadge:P.badgeCount,classNames:{...v?.navigationItem,...P?.classNames},styles:{...S?.navigationItem,...P?.styles}}),P?.withBottomDivider&&uo("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},P.id))}),An("div",{className:mo("cleen-flex cleen-flex-col cleen-items-center cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)]",v?.bottomNavigationItemsWrapper),style:S?.bottomNavigationItemsWrapper,children:[t.map(P=>An("div",{children:[I?I(P,T===P.id,D):uo(Yl,{item:P,activeId:T,onClick:D,countBadge:P.badgeCount,classNames:{...v?.navigationItem,...P?.classNames},styles:{...S?.navigationItem,...P?.styles}}),P?.withBottomDivider&&uo("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},P.id)),r&&uo("div",{className:"cleen-mt-[calc(8px_+_var(--cleen-sidebar-fit,1px)_*_16)] cleen-mb-[calc(12px_+_var(--cleen-sidebar-fit,1px)_*_20)]",children:r})]})]})]}),An("div",{className:mo("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&&s==="right","cleen-border-l cleen-border-l-border":N&&s==="left"},v?.drawer),style:{...S?.drawer,width:N?`${p}px`:"0px",visibility:N?"visible":"hidden"},children:[T&&o[T]&&uo("div",{className:mo("cleen-flex-1 cleen-overflow-auto",v?.drawerContent),style:S?.drawerContent,children:o[T]}),T&&(i||a)&&uo("div",{className:mo("cleen-mt-auto cleen-flex cleen-justify-between cleen-items-start cleen-gap-4 cleen-px-5 cleen-pt-[calc(8px_+_var(--cleen-sidebar-fit,1px)_*_8)] cleen-pb-[calc(12px_+_var(--cleen-sidebar-fit,1px)_*_20)] cleen-border-border cleen-border-t cleen-w-full",v?.drawerFooter),style:S?.drawerFooter,children:typeof i=="function"?i(T):i||a})]})]})}var ne=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as bx}from"@cleen/ui-core";import{forwardRef as iL}from"react";import{jsx as yx}from"react/jsx-runtime";var sL={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"},pL=iL(function({width:t,height:o,roundness:n="md",variant:l="default",className:r,style:a},i){let p=ne(l),s={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...o!==void 0?{height:typeof o=="number"?`${o}px`:o}:{},...a};return yx("div",{ref:i,className:bx("cleen",r),children:yx("div",{className:bx("cleen-bg-muted",sL[n],t===void 0&&"cleen-w-full",o===void 0&&"cleen-h-4",p),style:s})})});import{cn as og}from"@cleen/ui-core";import{forwardRef as dL}from"react";import{jsx as Ps,jsxs as mL}from"react/jsx-runtime";var ng=dL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let a=ne(n);return Ps("div",{ref:r,className:og("cleen",t),style:o,children:Ps("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((i,p)=>mL("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[Ps("div",{className:og("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",a)}),Ps("div",{className:og("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",a)})]},p))})})});import{cn as vx}from"@cleen/ui-core";import{forwardRef as uL}from"react";import{jsx as rg}from"react/jsx-runtime";var ag=uL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let a=ne(n);return rg("div",{ref:r,className:vx("cleen",t),style:o,children:rg("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((i,p)=>rg("div",{className:vx("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",a)},p))})})});import{cn as Ix}from"@cleen/ui-core";import{forwardRef as fL}from"react";import{jsx as On,jsxs as Ss}from"react/jsx-runtime";var lg=fL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return On("div",{ref:l,className:Ix("cleen",t),style:o,children:Ss("div",{className:Ix("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",r),children:[On("div",{className:"cleen-h-48 cleen-w-full"}),Ss("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:[On("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),Ss("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[On("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),On("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),Ss("div",{className:"cleen-flex cleen-gap-3",children:[On("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),On("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as Cx}from"@cleen/ui-core";import{forwardRef as hL}from"react";import{jsx as cg}from"react/jsx-runtime";var ig=hL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let a=ne(n);return cg("div",{ref:r,className:Cx("cleen",t),style:o,children:cg("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((i,p)=>cg("div",{className:Cx("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",a)},p))})})});import{cn as ws}from"@cleen/ui-core";import{forwardRef as gL}from"react";import{jsx as Ms,jsxs as xx}from"react/jsx-runtime";var Ql=gL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return Ms("div",{ref:l,className:ws("cleen",t),style:o,children:xx("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:[Ms("div",{className:ws("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)}),xx("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Ms("div",{className:ws("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)}),Ms("div",{className:ws("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",r)})]})]})})});import{cn as zr}from"@cleen/ui-core";import{forwardRef as bL}from"react";import{jsx as Hr,jsxs as ks}from"react/jsx-runtime";var Ts=bL(({className:e,style:t,variant:o="default"},n)=>{let l=ne(o);return Hr("div",{ref:n,className:zr("cleen",e),style:t,children:ks("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:[ks("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[Hr("div",{className:zr("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",l)}),ks("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Hr("div",{className:zr("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",l)}),Hr("div",{className:zr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),ks("div",{className:"cleen-space-y-2 cleen-w-full",children:[Hr("div",{className:zr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",l)}),Hr("div",{className:zr("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});Ts.displayName="AssessmentHeaderSkeleton";import{cn as Ot}from"@cleen/ui-core";import{forwardRef as yL}from"react";import{jsx as _t,jsxs as Ur}from"react/jsx-runtime";var sg=yL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return _t("div",{ref:l,className:Ot("cleen",t),style:o,children:Ur("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:[_t("div",{className:Ot("cleen-bg-muted cleen-w-full cleen-h-40",r)}),Ur("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[Ur("div",{className:"cleen-flex cleen-gap-2",children:[_t("div",{className:Ot("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",r)}),_t("div",{className:Ot("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",r)})]}),Ur("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[_t("div",{className:Ot("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",r)}),_t("div",{className:Ot("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),_t("div",{className:Ot("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)})]}),Ur("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[Ur("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[_t("div",{className:Ot("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",r)}),_t("div",{className:Ot("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),_t("div",{className:Ot("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",r)})]})]})]})})});import{forwardRef as vL}from"react";import{cn as IL}from"@cleen/ui-core";import{jsx as pg}from"react/jsx-runtime";var dg=vL(function({className:t,style:o,itemCount:n=3,variant:l="default"},r){return pg("div",{ref:r,className:IL("cleen",t),style:o,children:pg("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:n}).map((a,i)=>pg(Ql,{variant:l},i))})})});import{cn as _n}from"@cleen/ui-core";import{forwardRef as CL}from"react";import{jsx as bt,jsxs as Zl}from"react/jsx-runtime";var Px=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],mg=CL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return bt("div",{ref:l,className:_n("cleen",t),style:o,children:Zl("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:[Zl("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[bt("div",{className:_n("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",r)}),bt("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((a,i)=>Zl("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[bt("div",{className:_n("cleen-bg-muted cleen-rounded-full cleen-size-2.5",r)}),bt("div",{className:_n("cleen-bg-muted cleen-rounded cleen-h-3",r),style:{width:a}})]},i))})]}),Zl("div",{className:"cleen-flex cleen-gap-3",children:[bt("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-end cleen-py-1",style:{height:120},children:[0,1,2,3].map(a=>bt("div",{className:_n("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",r)},a))}),Zl("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[bt("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:Px.map((a,i)=>bt("div",{className:_n("cleen-bg-muted cleen-rounded-t cleen-flex-1",a,r)},i))}),bt("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),bt("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:Px.map((a,i)=>bt("div",{className:_n("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",r)},i))})]})]})]})})});import{cn as Vn}from"@cleen/ui-core";import{forwardRef as xL}from"react";import{jsx as fo,jsxs as Ns}from"react/jsx-runtime";var ug=xL(({variant:e="default",itemCount:t=3,className:o,style:n},l)=>{let r=ne(e);return fo("div",{ref:l,className:Vn("cleen",o),style:n,children:fo(Pe,{className:"cleen-max-h-fit",children:Ns("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[Ns("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[fo("div",{className:Vn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",r)}),fo("div",{className:Vn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)})]}),fo("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((a,i)=>Ns("div",{className:"cleen-space-y-3",children:[fo("div",{className:Vn("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",r)}),fo("div",{className:Vn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",r)})]},i))}),Ns("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[fo("div",{className:Vn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)}),fo("div",{className:Vn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)})]})]})})})});import{cn as Bs}from"@cleen/ui-core";import{forwardRef as PL}from"react";import{jsx as Jl,jsxs as SL}from"react/jsx-runtime";var fg=PL(function({className:t,style:o,variant:n="default",itemCount:l=5},r){let a=ne(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 Jl("div",{ref:r,className:Bs("cleen",t),style:o,children:SL("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[Jl("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((p,s)=>Jl("div",{className:Bs("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",p,a)},s))}),Array.from({length:l}).map((p,s)=>Jl("div",{className:Bs("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",s<l-1?"cleen-border-b cleen-border-border":""),children:i.map((d,f)=>Jl("div",{className:Bs("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",f===i.length-1?"cleen-rounded-full":"cleen-rounded",d,a)},f))},s))]})})});import{cn as Rs}from"@cleen/ui-core";import{forwardRef as wL}from"react";import{jsx as jl,jsxs as Sx}from"react/jsx-runtime";var hg=wL(function({className:t,style:o,variant:n="default",itemCount:l=4},r){let a=ne(n);return jl("div",{ref:r,className:Rs("cleen",t),style:o,children:Sx("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,p)=>Sx("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[jl("div",{className:Rs("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",a)}),jl("div",{className:Rs("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",a)})]},p)),jl("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:jl("div",{className:Rs("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",a)})})]})})});import{cn as wx}from"@cleen/ui-core";import{forwardRef as ML}from"react";import{jsx as gg}from"react/jsx-runtime";var kL=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],bg=ML(function({className:t,style:o,variant:n="default",colors:l=kL},r){let a=ne(n);return gg("div",{ref:r,className:wx("cleen",t),style:o,children:gg("div",{className:wx("cleen-p-1 cleen-size-full cleen-rounded-lg cleen-animate-[cleen-rotate-gradient-angle_2.5s_linear_infinite]",a),style:{background:`conic-gradient(from var(--cleen--gradient-angle),${l.join(",")})`},children:gg("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as Es}from"@cleen/ui-core";import{forwardRef as TL}from"react";import{jsx as Gr,jsxs as Mx}from"react/jsx-runtime";var yg=TL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return Gr("div",{ref:l,className:Es("cleen",t),style:o,children:Mx("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Gr("div",{className:Es("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:Gr("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Mx("div",{className:Es("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[Gr("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),Gr("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),Gr("div",{className:Es("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",r)})]})})});import{cn as at}from"@cleen/ui-core";import{forwardRef as NL}from"react";import{jsx as nt,jsxs as ho}from"react/jsx-runtime";var vg=NL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return nt("div",{ref:l,className:at("cleen",t),style:o,children:ho("div",{className:at("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:[ho("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[nt("div",{className:at("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",r)}),nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),ho("div",{className:"cleen-space-y-3 cleen-w-full",children:[ho("div",{children:[nt("div",{className:at("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),nt(Pe,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:ho("div",{className:"cleen-space-y-2",children:[nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",r)})]})})]}),ho("div",{children:[nt("div",{className:at("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),ho("div",{className:"cleen-space-y-2",children:[nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",r)})]})]}),ho("div",{children:[nt("div",{className:at("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),nt(Pe,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:ho("div",{className:"cleen-space-y-2",children:[nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),nt("div",{className:at("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",r)})]})})]})]})]})})});import{cn as Ig}from"@cleen/ui-core";import{forwardRef as BL}from"react";import{jsx as Cg,jsxs as RL}from"react/jsx-runtime";var xg=BL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return Cg("div",{ref:l,className:Ig("cleen",t),style:o,children:RL("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Cg("div",{className:Ig("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",r)}),Cg("div",{className:Ig("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",r)})]})})});import{cn as ec}from"@cleen/ui-core";import{forwardRef as EL}from"react";import{jsx as $r,jsxs as kx}from"react/jsx-runtime";var Pg=EL(function({className:t,style:o,variant:n="default",itemCount:l=5},r){let a=ne(n),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return $r("div",{ref:r,className:ec("cleen",t),style:o,children:$r("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:l}).map((p,s)=>kx("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[$r("div",{className:ec("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",a)}),kx("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[$r("div",{className:ec("cleen-bg-muted cleen-rounded cleen-h-4",i[s%i.length],a)}),$r("div",{className:ec("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",a)})]}),$r("div",{className:ec("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",a)})]},s))})})});import{cn as Tx}from"@cleen/ui-core";import{forwardRef as LL}from"react";import{jsx as wg}from"react/jsx-runtime";var Sg=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],Mg=LL(function({className:t,style:o,variant:n="default",itemCount:l},r){let a=ne(n),i=l??Sg.length;return wg("div",{ref:r,className:Tx("cleen",t),style:o,children:wg("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((p,s)=>{let d=s<Sg.length?Sg[s]:s===i-1?"cleen-w-3/5":"cleen-w-full";return wg("div",{className:Tx("cleen-bg-muted cleen-rounded cleen-h-3",d,a)},s)})})})});import{cn as Nx}from"@cleen/ui-core";import{forwardRef as DL}from"react";import{jsx as Bx}from"react/jsx-runtime";var kg=DL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return Bx("div",{ref:l,className:Nx("cleen",t),style:o,children:Bx("div",{className:Nx("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)})})});import{cn as zn}from"@cleen/ui-core";import{forwardRef as FL}from"react";import{jsx as Vt,jsxs as Ls}from"react/jsx-runtime";var Tg=FL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return Vt("div",{ref:l,className:zn("cleen",t),style:o,children:Ls("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[Vt("div",{className:zn("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:Vt("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Vt("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:Vt("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"})})})}),Ls("div",{className:"cleen-flex cleen-gap-3",children:[Vt("div",{className:zn("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",r)}),Ls("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Vt("div",{className:zn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)}),Vt("div",{className:zn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),Ls("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Vt("div",{className:zn("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",r)}),Vt("div",{className:zn("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",r)})]})]})]})]})})});import{cn as tc}from"@cleen/ui-core";import{forwardRef as AL}from"react";import{jsx as oc,jsxs as Ng}from"react/jsx-runtime";var Ds=AL(function({variant:t="default",className:o,style:n},l){let r=ne(t);return oc("div",{ref:l,className:tc("cleen",o),style:n,children:Ng("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:[Ng("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:[oc("div",{className:tc("cleen-bg-muted cleen-rounded-full cleen-size-1.5",r)}),oc("div",{className:tc("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",r)})]}),Ng("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[oc("div",{className:tc("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",r)}),oc("div",{className:tc("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",r)})]})]})})});Ds.displayName="SkeletonBadgeCard";import{forwardRef as OL}from"react";import{jsx as Be}from"react/jsx-runtime";var _L=OL(function({className:t,style:o,variant:n="default",itemCount:l=3,colors:r,skeleton:a="card",isShowing:i=!1,children:p},s){if(!i)return p;let d={ref:s,variant:n,itemCount:l,colors:r,className:t,style:o};switch(a){case"card2":return Be(Ts,{...d});case"card3":return Be(sg,{...d});case"cardStack":return Be(dg,{...d});case"contentCard":return Be(ug,{...d});case"infoCard":return Be(vg,{...d});case"widgetCard":return Be(Ds,{...d});case"image":return Be(yg,{...d});case"video":return Be(Tg,{...d});case"avatar":return Be(ng,{...d});case"dataGrid":return Be(fg,{...d});case"text":return Be(kg,{...d});case"paragraph":return Be(Mg,{...d});case"list":return Be(Pg,{...d});case"form":return Be(hg,{...d});case"banner":return Be(lg,{...d});case"chart":return Be(mg,{...d});case"button":return Be(ig,{...d});case"badge":return Be(ag,{...d});case"input":return Be(xg,{...d});case"glowingCard":return Be(bg,{...d});default:return Be(Ql,{...d})}});import{cn as Uo}from"@cleen/ui-core";import{forwardRef as VL,useCallback as Bg,useEffect as zL,useRef as Rx,useState as Ex}from"react";import{jsx as Go,jsxs as Fs}from"react/jsx-runtime";var Hn=VL(function({id:t,required:o,minValue:n=0,maxValue:l=100,step:r=1,keyboardStep:a=r,defaultValue:i=0,value:p,variant:s="default",onChange:d,onChangeEnd:f,className:m,classNames:b,style:y,styles:u,disabled:v=!1,label:C,labelTooltip:S,labels:I,tooltip:x,infoLabels:w},R){let[T,N]=Ex(i??n),D=p!==void 0?p:T,M=Rx(null),[P,k]=Ex(!1),E=Rx(!1),L=(D-n)/(l-n)*100,F=Math.min(100,Math.max(0,L)),O=Bg(G=>{let H=Math.round((G-n)/r)*r+n;return Math.min(l,Math.max(n,H))},[n,l,r]),B=Bg((G,H)=>{let X=O(G);p===void 0&&N(X),d?.(X),H&&f?.(X)},[O,p,d,f]),A=Bg(G=>{let H=M.current;if(!H)return n;let X=H.getBoundingClientRect(),$=(G-X.left)/X.width;return O(n+$*(l-n))},[n,l,O]),V=G=>{if(v)return;let H;switch(G.key){case"ArrowRight":case"ArrowUp":H=D+a;break;case"ArrowLeft":case"ArrowDown":H=D-a;break;case"Home":H=n;break;case"End":H=l;break;default:return}G.preventDefault(),B(H,!0)},U=G=>{v||(G.preventDefault(),k(!0))},_=G=>{if(v||E.current){E.current=!1;return}B(A(G.clientX),!0)},W=G=>{v||(G.preventDefault(),k(!0))};zL(()=>{if(!P)return;let G=Y=>{B(A(Y.clientX))},H=Y=>{k(!1),E.current=!0,f?.(O(A(Y.clientX)))},X=Y=>{Y.touches.length>0&&B(A(Y.touches[0].clientX))},$=Y=>{k(!1),E.current=!0,f?.(O(A(Y.changedTouches[0].clientX)))};return document.addEventListener("mousemove",G),document.addEventListener("mouseup",H),document.addEventListener("touchmove",X),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",$)}},[P,O,A,B,f]);let j=G=>Go("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:G});return Go("div",{className:Uo("cleen",m),style:y,ref:R,children:Fs("div",{className:Uo("cleen-w-full",b?.container),style:u?.container,children:[C&&Go(de,{htmlFor:t,required:o,tooltip:S,...b?.label,...u?.label,children:C}),Fs("div",{className:Uo({"cleen-flex cleen-items-center cleen-gap-2":s==="inline"},b?.slider),style:u?.slider,children:[s==="inline"&&I?.minLabel!==void 0&&j(I?.minLabel),Fs("div",{ref:M,className:Uo("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":v,"cleen-flex-1":s==="inline"},b?.track),style:u?.track,"aria-disabled":v,onClick:_,children:[Go("div",{className:Uo("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",v?"cleen-cursor-not-allowed":"cleen-cursor-pointer",b?.path),style:u?.path,children:Go("div",{className:Uo("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",b?.filledTrack),style:{width:`${F}%`,...u?.filledTrack}})}),Go(Ne,{invertColors:!0,...x,label:I?.tooltip?.(D)??D,className:Uo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",x?.className),style:{left:`calc(${F}% - 8px)`,...x?.style},isOpen:P||x?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:Go("div",{id:t,className:Uo("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",v?"cleen-cursor-not-allowed":"cleen-cursor-pointer",b?.thumb),style:u?.thumb,tabIndex:v?-1:0,role:"slider","aria-valuenow":D,"aria-valuemin":n,"aria-valuemax":l,"aria-disabled":v,"aria-label":typeof C=="string"?C:"Slider","aria-labelledby":t,onMouseDown:U,onTouchStart:W,onKeyDown:V})})]}),s==="inline"?I?.maxLabel&&j(I?.maxLabel):(I?.minLabel||I?.maxLabel)&&Fs("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[I?.minLabel&&j(I?.minLabel),I?.maxLabel&&j(I?.maxLabel)]})]}),(w?.errorMessage||w?.infoMessage||w?.subtitle)&&Go(ie,{...w})]})})});import{cn as zt}from"@cleen/ui-core";import{forwardRef as HL,useCallback as Rg,useEffect as UL,useRef as GL,useState as Lx}from"react";import{jsx as Ht,jsxs as As}from"react/jsx-runtime";var $L=HL(function({id:t,required:o,minValue:n=0,maxValue:l=100,step:r=1,defaultValue:a=[n,l],value:i,variant:p="default",onChange:s,onChangeEnd:d,className:f,classNames:m,style:b,styles:y,disabled:u=!1,label:v,labelTooltip:C,labels:S,tooltips:I,infoLabels:x},w){let[R,T]=Lx(a??[n,l]),N=i!==void 0?i:R,D=GL(null),[M,P]=Lx(null),k=Rg(G=>{let H=Math.round((G-n)/r)*r+n;return Math.min(l,Math.max(n,H))},[n,l,r]),E=(N[0]-n)/(l-n)*100,L=Math.min(100,Math.max(0,E)),F=(N[1]-n)/(l-n)*100,O=Math.min(100,Math.max(0,F)),B=Rg(G=>{let H=[k(Math.min(G[0],G[1])),k(Math.max(G[0],G[1]))];i===void 0&&T(H),s?.(H)},[k,i,s]),A=Rg(G=>{let H=D.current;if(!H)return n;let X=H.getBoundingClientRect(),$=(G-X.left)/X.width;return k(n+$*(l-n))},[n,l,k]),V=G=>H=>{if(u)return;let X=G==="min"?N[0]:N[1],$;switch(H.key){case"ArrowRight":case"ArrowUp":$=X+r;break;case"ArrowLeft":case"ArrowDown":$=X-r;break;case"Home":$=n;break;case"End":$=l;break;default:return}H.preventDefault();let Y=G==="min"?[Math.min($,N[1]),N[1]]:[N[0],Math.max($,N[0])];B(Y),d?.([k(Y[0]),k(Y[1])])},U=G=>H=>{u||(H.preventDefault(),P(G))},_=G=>{if(u)return;let H=A(G.clientX),X=Math.abs(H-N[0]),$=Math.abs(H-N[1]);X<$?B([H,N[1]]):B([N[0],H])},W=G=>H=>{u||(H.preventDefault(),P(G))};UL(()=>{if(!M)return;let G=Y=>{let ae=A(Y.clientX);B(M==="min"?[ae,N[1]]:[N[0],ae])},H=Y=>{let ae=A(Y.clientX),be=M==="min"?[ae,N[1]]:[N[0],ae];P(null),d?.(be)},X=Y=>{if(Y.touches.length>0){let ae=A(Y.touches[0].clientX);B(M==="min"?[ae,N[1]]:[N[0],ae])}},$=Y=>{let ae=A(Y.changedTouches[0].clientX),be=M==="min"?[ae,N[1]]:[N[0],ae];P(null),d?.(be)};return document.addEventListener("mousemove",G),document.addEventListener("mouseup",H),document.addEventListener("touchmove",X),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",$)}},[M,N,A,B,d]);let j=G=>Ht("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:G});return Ht("div",{className:zt("cleen",f),style:b,ref:w,children:As("div",{className:zt("cleen-w-full",m?.container),style:y?.container,children:[v&&Ht(de,{htmlFor:t,required:o,tooltip:C,...m?.label,...y?.label,children:v}),As("div",{className:zt({"cleen-flex cleen-items-center cleen-gap-2":p==="inline"},m?.slider),style:y?.slider,children:[p==="inline"&&S?.minLabel!==void 0&&j(S?.minLabel),As("div",{ref:D,className:zt("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":u,"cleen-flex-1":p==="inline"},m?.track),style:y?.track,"aria-disabled":u,onClick:_,children:[Ht("div",{className:zt("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:Ht("div",{className:zt("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{left:`${L}%`,width:`${O-L}%`,...y?.filledTrack}})}),Ht(Ne,{invertColors:!0,isOpen:M==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:S?.tooltip?.(N[0])??N[0]?.toString(),className:zt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.min?.className),style:{left:`calc(${L}% - 8px)`,...I?.shared?.style,...I?.min?.style},children:Ht("div",{className:zt("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 v=="string"?`${v} minimum value`:"Minimum value",onMouseDown:U("min"),onTouchStart:W("min"),onKeyDown:V("min")})}),Ht(Ne,{invertColors:!0,isOpen:M==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:S?.tooltip?.(N[1])??N[1]?.toString(),className:zt("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:Ht("div",{className:zt("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 v=="string"?`${v} maximum value`:"Maximum value",onMouseDown:U("max"),onTouchStart:W("max"),onKeyDown:V("max")})})]}),p==="inline"?S?.maxLabel&&j(S?.maxLabel):(S?.minLabel||S?.maxLabel)&&As("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[S?.minLabel&&j(S?.minLabel),S?.maxLabel&&j(S?.maxLabel)]})]}),(x?.errorMessage||x?.infoMessage||x?.subtitle)&&Ht(ie,{...x})]})})});import{cn as Wr}from"@cleen/ui-core";import{forwardRef as WL,useRef as qL,useState as Dx}from"react";import{jsx as Un,jsxs as XL}from"react/jsx-runtime";var KL=WL(function({label:t,infoLabels:o,value:n,onChange:l,amount:r=5,gap:a,size:i,readonly:p,color:s="rgb(var(--cleen-yellow))",className:d,style:f,classNames:m,styles:b,...y},u){let[v,C]=Dx(0),S=n!==void 0,I=S?n:v,[x,w]=Dx(null),R=x!==null?x+1:I,T=!p,N=qL([]),D=I>0?I-1:0,M=L=>{S||C(L),l?.(L)},P=L=>{L<0||L>=r||(M(L+1),N.current[L]?.focus())},k=(L,F)=>{switch(L.key){case"ArrowRight":case"ArrowUp":L.preventDefault(),P((F+1)%r);break;case"ArrowLeft":case"ArrowDown":L.preventDefault(),P((F-1+r)%r);break;case"Home":L.preventDefault(),P(0);break;case"End":L.preventDefault(),P(r-1);break;default:break}},E=typeof t=="string"?t:"Rating";return Un("div",{className:Wr("cleen",d),style:f,ref:u,...y,children:XL("div",{className:Wr("cleen-space-y-2",m?.container),style:b?.container,children:[t&&Un("span",{className:Wr("cleen-font-medium cleen-text-sm cleen-text-foreground",m?.label),style:b?.label,children:t}),Un("div",{role:T?"radiogroup":"img","aria-label":T?E:`${E}: ${I} out of ${r}`,className:Wr("cleen-flex cleen-gap-3",m?.list),style:{...a?{gap:a}:{},...b?.list},children:Array.from({length:r},(L,F)=>{let O=Un(nl,{"aria-hidden":"true",className:Wr("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...b?.star,fill:(p?I:R)>F?s:"transparent"}});return T?Un("button",{type:"button",ref:B=>{N.current[F]=B},role:"radio","aria-checked":I===F+1,"aria-label":`${F+1} ${F+1===1?"star":"stars"}`,tabIndex:F===D?0:-1,onMouseEnter:()=>w(F),onMouseLeave:()=>w(null),onClick:()=>M(F+1),onKeyDown:B=>k(B,F),className:Wr("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},F):Un("span",{className:"cleen-cursor-default",children:O},F)})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Un(ie,{...o})]})})});import{cn as go}from"@cleen/ui-core";import{forwardRef as YL}from"react";import{jsx as $o,jsxs as Fx}from"react/jsx-runtime";var Ax=YL(({steps:e,activeStep:t=0,orientation:o="horizontal",color:n="rgb(var(--cleen-primary))",className:l,classNames:r,style:a,styles:i,...p},s)=>{let d=o==="vertical";return $o("div",{ref:s,className:go("cleen",l),style:{...a,width:"100%"},...p,children:$o("div",{className:go("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((f,m)=>{let b=m+1<t,y=m+1===t;return Fx("div",{className:go("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&&$o("div",{className:go("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)]",b&&"cleen-bg-primary",r?.connector),style:{backgroundColor:b?n:void 0,...i?.connector}}),$o("div",{className:go("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",b||y?"cleen-border-[2px]":"cleen-border-border",r?.circle),style:{borderColor:y||b?n:void 0,backgroundColor:b?n:"transparent",...i?.circle},children:b?$o("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):$o("span",{className:go("cleen-w-2 cleen-h-2 cleen-rounded-full",y?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:y?n:void 0}})}),Fx("div",{className:go("cleen-flex cleen-flex-col",d?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[f.title&&$o("div",{className:go("cleen-font-medium cleen-text-sm",y?"cleen-text-primary":"cleen-text-foreground",r?.title),style:{color:y?n:void 0,...i?.title},children:f.title}),f.subtitle&&$o("div",{className:go("cleen-text-xs cleen-text-neutral-600",r?.subtitle),style:{color:y?n:void 0,...i?.subtitle},children:f.subtitle})]})]},m)})})})});Ax.displayName="Stepper";import{cn as ze}from"@cleen/ui-core";import{forwardRef as QL,useMemo as _x,useState as qr}from"react";var Ox={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 jL,jsx as De,jsxs as Kr}from"react/jsx-runtime";var ZL=[],JL=QL(function({items:t=ZL,value:o,defaultValue:n,onApply:l,onCreate:r,isLoading:a=!1,icon:i,disabled:p=!1,isOpen:s,onOpenChange:d,position:f="bottom-left",zIndex:m,labels:b,className:y,classNames:u,style:v,styles:C,...S},I){let x={...Ox,...b},[w,R]=qr(n??[]),T=o??w,[N,D]=qr(!1),M=s??N,[P,k]=qr(T),[E,L]=qr(""),[F,O]=qr([]),[B,A]=qr(!1),V=_x(()=>[...t,...F.filter(Q=>!t.some(z=>z.id===Q.id))],[t,F]),U=E.trim(),_=_x(()=>{let Q=U.toLowerCase();return Q?V.filter(z=>z.label.toLowerCase().includes(Q)):V},[V,U]),W=!!U&&!V.some(Q=>Q.label.toLowerCase()===U.toLowerCase())&&!!r,j=a||B,G=T.length,H=G>0,X=Q=>{Q&&(k(T),L("")),s===void 0&&D(Q),d?.(Q)},$=Q=>{k(z=>z.includes(Q)?z.filter(re=>re!==Q):[...z,Q])},Y=async()=>{if(!(!r||!U||j)){A(!0);try{let Q=await r(U);Q&&(O(z=>z.some(re=>re.id===Q.id)?z:[...z,Q]),k(z=>z.includes(Q.id)?z:[...z,Q.id]),L(""))}finally{A(!1)}}},ae=Q=>{Q.key==="Enter"&&W&&(Q.preventDefault(),Y())},be=()=>{k([])},pe=()=>{let Q=V.filter(z=>P.includes(z.id));o===void 0&&R(P),l?.(P,Q),X(!1)},Me=Kr(jL,{children:[W&&De("div",{className:"cleen-p-1.5",children:De(te,{variant:"borderless-blue",fullWidth:!0,isLoading:j,leftIcon:De(an,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{Y()},classNames:{container:ze("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",u?.createButton)},styles:{container:C?.createButton},children:De("span",{className:"cleen-truncate",children:x.create(U)})})}),_.length===0?W?null:De("p",{className:ze("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:V.length===0?x.noData:x.noMatches}):De("ul",{className:ze("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:_.map(Q=>Kr("li",{onClick:()=>$(Q.id),className:ze("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:[De(bn,{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:ze("cleen-text-sm cleen-truncate cleen-cursor-pointer",u?.itemLabel)},styles:{checkbox:C?.checkbox,label:C?.itemLabel},checked:P.includes(Q.id),onClick:z=>z.stopPropagation(),label:De("span",{title:Q.label,className:"cleen-select-none",children:Q.label}),fullTriggerArea:!0}),Q.count!==void 0&&De("span",{className:ze("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:Q.count})]},Q.id))})]}),q=Kr("div",{className:ze("cleen-flex cleen-flex-col",u?.content),style:C?.content,role:"dialog",children:[De(Ie,{autoFocus:!0,value:E,onChange:Q=>L(Q.target.value),onKeyDown:ae,placeholder:x.searchPlaceholder,"aria-label":x.searchPlaceholder,leftIcon:De(Ct,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:ze("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"}}),De(xt,{className:ze("cleen-shrink-0",u?.divider),style:C?.divider}),De("div",{className:"cleen-flex-1 cleen-min-h-0",children:Me}),Kr("div",{className:ze("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:[De("span",{className:ze("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",u?.footerText),style:C?.footerText,children:P.length>0?x.selected(P.length):x.footer}),Kr("div",{className:ze("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",u?.footerActions),style:C?.footerActions,children:[De(te,{variant:"secondary",onClick:be,disabled:P.length===0,classNames:{container:ze("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.clearButton)},styles:{container:C?.clearButton},children:x.clear}),De(te,{variant:"primary",onClick:pe,classNames:{container:ze("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.doneButton)},styles:{container:C?.doneButton},children:x.done})]})]})]});return De(no,{ref:I,isOpen:M,onOpenChange:X,position:f,zIndex:m,content:q,className:y,style:v,classNames:{trigger:ze(p&&"cleen-pointer-events-none"),popover:ze("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",u?.popover)},styles:{popover:C?.popover},...S,children:Kr("button",{type:"button",disabled:p,"aria-label":x.trigger,"aria-haspopup":"dialog","aria-expanded":M,className:ze("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":H,"cleen-opacity-50 cleen-cursor-not-allowed":p},u?.trigger,H&&u?.triggerActive),style:{...C?.trigger,...H?C?.triggerActive:{}},children:[i??De(al,{className:"cleen-size-4 cleen-shrink-0"}),H&&De("span",{className:ze("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}),De(en,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var Eg={default:"Default","sans-serif":"Sans-serif",serif:"Serif",monospace:"Monospace",cursive:"Cursive",fantasy:"Fantasy"},Lg={white:"White",yellow:"Yellow",green:"Green",cyan:"Cyan",blue:"Blue",magenta:"Magenta",red:"Red",black:"Black"},Dg={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:Eg,captionColors:Lg,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,Os=1.7777777777777777,Ag=1080,Xr=-1,Og=.5,_g=2,Vx=.25,nc=.05,zx=2500,Hx=5,Ux=.5,rc=5,Gx=480,$x=24,Wx=16,_s="--cleen-video-player-height",e6=.045,t6=12,o6=32,qx=`clamp(${t6}px, calc(var(${_s}, 360px) * ${e6}), ${o6}px)`,Kx=250,Xx=40,Vg="cleen-video-player-caption-style",Wo={fontFamily:"default",fontColor:"white",fontSize:1,backgroundColor:"black",backgroundOpacity:.75},Yr={default:void 0,"sans-serif":"sans-serif",serif:"serif",monospace:"monospace",cursive:"cursive",fantasy:"fantasy"},ac={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]},Vs=[.5,.75,1,1.25,1.5,1.75,2],zs=[0,.25,.5,.75,1],Yx=72,Qx=240,Zx=3,Jx={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 n6,useEffect as zg,useImperativeHandle as r6,useRef as a6}from"react";import{jsx as s6}from"react/jsx-runtime";var l6=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],c6=e=>{let t=l6;return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))},i6=n6(function({playing:t=!1,volume:o,playbackRate:n,...l},r){let a=a6(null);return r6(r,()=>a.current,[]),zg(()=>{let i=a.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,l.src]),zg(()=>{a.current&&o!==void 0&&(a.current.volume=o)},[o]),zg(()=>{a.current&&n!==void 0&&(a.current.playbackRate=n)},[n]),s6("video",{...c6(l),ref:a,width:"100%",height:"100%"})});import{forwardRef as p6}from"react";import d6 from"react-player";import{jsx as m6}from"react/jsx-runtime";var Hg=p6(function(t,o){return m6(d6,{...t,ref:o,width:"100%",height:"100%"})});var lc=(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))(lc||{});var Qr=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=a=>String(a).padStart(2,"0");return o>0?`${o}:${r(n)}:${r(l)}`:`${n}:${r(l)}`},Ug=(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,a=n.end!==void 0&&Number.isFinite(n.end)?Math.min(Math.max(n.end,n.start),r):r;return{...n,end:a}}).filter(n=>n.end>n.start)},Gg=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),jx=e=>e?Array.from({length:e.length},(t,o)=>({start:e.start(o),end:e.end(o)})):[],eP=(e,t)=>e.length===t.length&&e.every((o,n)=>o.start===t[n].start&&o.end===t[n].end),tP=(e,t,o)=>{let n=o-t;if(!(n>0)||!Number.isFinite(n))return[];let l=e.filter(a=>Number.isFinite(a.start)&&Number.isFinite(a.end)).map(a=>({start:Math.max(a.start,t),end:Math.min(a.end,o)})).filter(a=>a.end>a.start).sort((a,i)=>a.start-i.start),r=[];return l.forEach(a=>{let i=r[r.length-1];i&&a.start<=i.end?i.end=Math.max(i.end,a.end):r.push({...a})}),r.map(a=>({left:(a.start-t)/n,width:(a.end-a.start)/n}))},Gn=({width:e,height:t})=>e>0&&t>0?Math.min(e,t):Math.max(e,t,0),$g=(e,t)=>{if(!(t!==void 0&&t>0)||e.length===0)return-1;let o=[...e].sort((l,r)=>Gn(l)-Gn(r)||l.bitrate-r.bitrate),n=o.filter(l=>Gn(l)<=t);return(n[n.length-1]??o[0]).index},oP=(e,t)=>{let o=[...e].sort((n,l)=>Gn(l)-Gn(n)||l.bitrate-n.bitrate);return o.map(n=>{let l=Gn(n),r=l>0?t(l):`${Math.round(n.bitrate/1e3)} kbps`,a=o.filter(i=>Gn(i)===l);return{value:n.index,label:l>0&&a.length>1?`${r} (${(n.bitrate/1e6).toFixed(1)} Mbps)`:r}})},u6=(e,t)=>{let o=-1;return e.forEach((n,l)=>{t>=n.start&&(o=l)}),Math.max(o,0)},ic=(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),nP=(e,t)=>{let o=Array.from(e).filter(n=>n.kind==="chapters");return t&&o.find(n=>n.language===t)||o[0]},rP=e=>Array.from(e).map(t=>({start:t.startTime,end:t.endTime,title:t.text?.replace(/<[^>]*>/g,"").trim()||void 0})),Us=e=>Array.from(e).filter(({kind:t="subtitles"})=>["subtitles","captions"].includes(t)),aP=(e,t,o)=>e.label||e.srcLang||o(t+1),cc=(e,t)=>e.includes(t),Wg=e=>{let t=e&&typeof e=="object"?e:{},o=Object.keys(ac),n=Object.keys(Yr);return{fontFamily:cc(n,t.fontFamily)?t.fontFamily:Wo.fontFamily,fontColor:cc(o,t.fontColor)?t.fontColor:Wo.fontColor,fontSize:cc(Vs,t.fontSize)?t.fontSize:Wo.fontSize,backgroundColor:cc(o,t.backgroundColor)?t.backgroundColor:Wo.backgroundColor,backgroundOpacity:cc(zs,t.backgroundOpacity)?t.backgroundOpacity:Wo.backgroundOpacity}},Hs=(e,t=1)=>`rgba(${ac[e].join(",")},${t})`,lP=({fontFamily:e,fontColor:t,fontSize:o,backgroundColor:n,backgroundOpacity:l})=>({fontFamily:Yr[e],fontSize:`calc(${qx} * ${o})`,color:Hs(t),backgroundColor:Hs(n,l)});import{cn as dc}from"@cleen/ui-core";import{forwardRef as bD,useCallback as Xe,useImperativeHandle as yD,useMemo as ab,useReducer as vD,useRef as cS,useState as ID}from"react";import{cn as Xn}from"@cleen/ui-core";var qo="cleen-text-[#fff]",qg="cleen-text-[rgba(255,255,255,0.45)]",cP="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",iP="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",sP="!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)]",Ko="focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",Gs="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",$s="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as dP}from"@cleen/ui-core";import{useLayoutEffect as g6,useRef as b6}from"react";import{useEffect as f6,useState as h6}from"react";var Ws=[],pP=(e,t,o,n,l)=>{let[r,a]=h6(Ws);return f6(()=>{let i=e.current?.textTracks;if(!t||!i)return;let p,s=()=>a(p?.activeCues?Array.from(p.activeCues):Ws),d=()=>{let f=Us(i),m=f[o]??f[0];m!==p&&(p&&(p.removeEventListener("cuechange",s),p.mode="disabled"),m?.addEventListener("cuechange",s),p=m),p&&p.mode!=="hidden"&&(p.mode="hidden"),s()};return d(),i.addEventListener("addtrack",d),i.addEventListener("removetrack",d),()=>{i.removeEventListener("addtrack",d),i.removeEventListener("removetrack",d),p&&(p.removeEventListener("cuechange",s),p.mode="disabled"),a(Ws)}},[t,o,n,l,e]),t?r:Ws};import{jsx as Kg}from"react/jsx-runtime";var y6=e=>typeof VTTCue<"u"&&e instanceof VTTCue?e.getCueAsHTML():"",v6=({cue:e,className:t,style:o})=>{let n=b6(null);return g6(()=>{n.current?.replaceChildren(y6(e))},[e]),Kg("span",{ref:n,className:t,style:o})},mP=({videoRef:e,src:t,showCaptions:o,trackIndex:n,captionStyle:l,pictureInPicture:r,hidden:a,controlsVisible:i,controlsOnHover:p,classNames:s,styles:d})=>{let f=pP(e,o&&!r,n,t,!a);return a||r||f.length===0?null:Kg("div",{className:dP("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?p?"cleen-bottom-0 group-hover:cleen-bottom-full":"cleen-bottom-full":"cleen-bottom-0",s?.captions),style:d?.captions,children:f.map((m,b)=>Kg(v6,{cue:m,className:dP("cleen-max-w-[80%] cleen-rounded-md cleen-px-[0.5em] cleen-py-[0.2em] cleen-leading-snug cleen-whitespace-pre-line",s?.captionsText),style:{...lP(l),...d?.captionsText}},`${m.id}-${m.startTime}-${b}`))})};import{cn as I6}from"@cleen/ui-core";import{forwardRef as C6}from"react";import{jsx as x6}from"react/jsx-runtime";var Ut=C6(function({label:t,onClick:o,disabled:n,active:l,className:r,style:a,children:i},p){return x6("button",{ref:p,type:"button","aria-label":t,"aria-pressed":l,onClick:o,disabled:n,className:I6("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",Ko,r),style:a,children:i})});import{cn as Gt}from"@cleen/ui-core";import{useRef as bP}from"react";import{useCallback as P6,useEffect as S6,useRef as uP,useState as w6}from"react";var fP=(e,t)=>{let[o,n]=w6(null),l=uP(!1),r=uP(!1),a=P6(p=>{let s=e.current;if(!s||!(t>0))return;let d=s.getBoundingClientRect(),f=d.width>0?Math.min(Math.max((p-d.left)/d.width,0),1):0;n({ratio:f,time:f*t})},[e,t]);return S6(()=>{let p=d=>{l.current&&a(d.clientX)},s=()=>{l.current=!1,r.current||n(null)};return window.addEventListener("pointermove",p),window.addEventListener("pointerup",s),()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",s)}},[a]),{preview:o,previewHandlers:{onPointerEnter:p=>{r.current=!0,a(p.clientX)},onPointerMove:p=>a(p.clientX),onPointerDown:p=>{l.current=!0,a(p.clientX)},onPointerLeave:()=>{r.current=!1,l.current||n(null)}}}};import{cn as M6}from"@cleen/ui-core";import{Fragment as k6,jsx as hP}from"react/jsx-runtime";var qs=({buffered:e,start:t,end:o,className:n,style:l})=>hP(k6,{children:tP(e,t,o).map(r=>hP("div",{"aria-hidden":!0,className:M6("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 Ks}from"@cleen/ui-core";import{jsx as Xs,jsxs as T6}from"react/jsx-runtime";var gP=({chapters:e,duration:t,currentTime:o,buffered:n,classNames:l,styles:r})=>Xs("div",{"aria-hidden":!0,className:Ks("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(a=>Xs("div",{className:Ks("cleen-absolute cleen-inset-y-0 cleen-pr-0.5 last:cleen-pr-0",l?.chapter),style:{...r?.chapter,left:`${a.start/t*100}%`,width:`${(a.end-a.start)/t*100}%`},children:T6("div",{className:Ks("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:[Xs(qs,{buffered:n,start:a.start,end:a.end,className:l?.chapterBuffered,style:r?.chapterBuffered}),Xs("div",{className:Ks("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:`${Gg(a,o)*100}%`}})]})},a.start))});import{Fragment as N6,jsx as $n,jsxs as Ys}from"react/jsx-runtime";var yP=({allowBarSeeking:e,chapters:t,duration:o,currentTime:n,buffered:l,onSeek:r,seekLabel:a,progressLabel:i,classNames:p,styles:s})=>{let d=bP(null),f=bP(null),{preview:m,previewHandlers:b}=fP(d,o),y=m?ic(t,m.time):void 0,u=t.length>0,v=u&&$n(gP,{chapters:t,duration:o,currentTime:n,buffered:l,classNames:p,styles:s}),C=$n(qs,{buffered:l,start:0,end:o,className:p?.seekBuffered,style:s?.seekBuffered}),S=f.current?.offsetWidth||0;if(e){let x=p?.seekSlider?.classNames;return Ys("div",{ref:d,role:"group","aria-label":a,className:Gt("cleen-relative",p?.seekBar),style:s?.seekBar,...b,children:[v||$n("div",{"aria-hidden":!0,className:Gt("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",p?.seekTrack),style:s?.seekTrack,children:C}),m&&Ys("div",{ref:f,"aria-hidden":!0,className:Gt("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",qo,{"cleen-opacity-0":f.current===null},p?.seekTooltip),style:{left:`clamp(0rem, calc(${m.ratio*100}% - ${S/2}px), calc(100% - ${S}px))`,...s?.seekTooltip},children:[$n("span",{children:Qr(m.time)}),y?.title&&Ys("span",{className:Gt("cleen-font-medium cleen-truncate",p?.seekTooltipChapter),style:s?.seekTooltipChapter,children:["\xB7 ",y.title]})]}),$n(Hn,{value:n,maxValue:o,step:.01,keyboardStep:rc,onChange:r,className:Gt("cleen-relative cleen-flex cleen-items-center cleen-h-3.5 cleen-cursor-pointer",p?.seekSlider?.className),classNames:{...x,track:Gt("!cleen-h-4",x?.track),path:Gt("!cleen-bg-transparent",x?.path),filledTrack:Gt({"!cleen-bg-transparent":u},x?.filledTrack)},tooltip:{isDisabled:!0},...s?.seekSlider})]})}let I=o>0?Math.min(n/o*100,100):0;return $n("div",{role:"progressbar","aria-label":i,"aria-valuemin":0,"aria-valuemax":Math.floor(o),"aria-valuenow":Math.floor(n),className:Gt("cleen-relative cleen-h-1",{"cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-overflow-hidden":!u},p?.seekBar),style:s?.seekBar,children:v||Ys(N6,{children:[C,$n("div",{className:Gt("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-rounded-full cleen-transition-[width] cleen-duration-200 cleen-ease-linear",p?.progressFill),style:{...s?.progressFill,width:`${I}%`}})]})})};import{cn as Xo}from"@cleen/ui-core";import{useEffect as L6,useRef as wP,useState as MP}from"react";import{cn as B6}from"@cleen/ui-core";import{cn as $t}from"@cleen/ui-core";import{useId as vP}from"react";import{jsx as Wn,jsxs as Xg}from"react/jsx-runtime";var sc=({title:e,children:t,onReset:o,resetLabel:n,classNames:l,styles:r})=>{let a=vP();return Xg("section",{"aria-labelledby":a,className:$t("cleen-flex cleen-flex-col cleen-gap-3",l?.settingsGroup),style:r?.settingsGroup,children:[Xg("div",{className:$t("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.settingsGroupHeader),style:r?.settingsGroupHeader,children:[Wn("h3",{id:a,className:$t("cleen-font-semibold cleen-text-foreground cleen-text-xs",l?.settingsGroupTitle),style:r?.settingsGroupTitle,children:e}),o&&Wn("button",{type:"button",onClick:o,className:$t("cleen-font-semibold cleen-text-xs cleen-text-primary hover:cleen-underline",l?.settingsResetButton),style:r?.settingsResetButton,children:n})]}),t]})},bo=({label:e,options:t,value:o,onChange:n,classNames:l,styles:r})=>{let a=vP(),i=Wn("div",{role:e?"group":void 0,"aria-labelledby":e?a:void 0,className:$t("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-1.5",l?.settingsOptions),style:r?.settingsOptions,children:t.map(p=>{let s=p.value===o;return p.swatch?Wn("button",{type:"button","aria-label":p.ariaLabel,"aria-pressed":s,title:p.ariaLabel,onClick:()=>n(p.value),className:$t("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,s&&["cleen-ring-2 cleen-ring-primary cleen-ring-offset-2 cleen-ring-offset-background",l?.settingsSwatchActive]),style:{backgroundColor:p.swatch,...p.style,...r?.settingsSwatch,...s?r?.settingsSwatchActive:void 0}},p.value):Wn("button",{type:"button","aria-label":p.ariaLabel,"aria-pressed":s,onClick:()=>n(p.value),className:$t("cleen-rounded focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.settingsOption,s&&l?.settingsOptionActive),style:{...p.style,...r?.settingsOption,...s?r?.settingsOptionActive:void 0},children:Wn(Le,{color:s?"primary":"foreground-transparent",variant:"sleek",className:l?.settingsOptionBadge?.className,classNames:{...l?.settingsOptionBadge?.classNames,container:$t("cleen-font-medium",s?"hover:cleen-bg-primary-100":"hover:cleen-bg-muted",l?.settingsOptionBadge?.classNames?.container)},...r?.settingsOptionBadge,children:p.label})},p.value)})});return e?Xg("div",{className:$t("cleen-flex cleen-flex-col cleen-gap-1.5",l?.settingsField),style:r?.settingsField,children:[Wn("span",{id:a,className:$t("cleen-text-muted-foreground cleen-text-xs",l?.settingsFieldLabel),style:r?.settingsFieldLabel,children:e}),i]}):i};import{jsx as qn,jsxs as IP}from"react/jsx-runtime";var Yg=-1,R6=e=>`${Math.round(e*100)}%`,CP=({tracks:e,trackIndex:t,showCaptions:o,captionStyle:n,onCaptionStyleChange:l,dispatch:r,labels:a,classNames:i,styles:p})=>{let s={classNames:i,styles:p},d=t<e.length?t:0,f=[{value:Yg,label:a.captionsOff},...e.map((u,v)=>({value:v,label:aP(u,v,a.captionsTrack)}))],m=Object.keys(Yr).map(u=>({value:u,label:a.captionFontFamilies[u]??Eg[u],style:{fontFamily:Yr[u]}})),b=Object.keys(ac).map(u=>{let v=a.captionColors[u]??Lg[u];return{value:u,label:v,ariaLabel:v,swatch:Hs(u)}}),y=u=>u.map(v=>({value:v,label:R6(v)}));return IP("div",{className:B6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",i?.captionsSettings),style:p?.captionsSettings,children:[qn(sc,{title:a.language,...s,children:qn(bo,{options:f,value:o?d:Yg,onChange:u=>r(u===Yg?{type:"hideCaptions"}:{type:"selectCaptionsTrack",index:u}),...s})}),IP(sc,{title:a.captionStyle,onReset:()=>l(Wo),resetLabel:a.resetCaptionStyle,...s,children:[qn(bo,{label:a.fontFamily,options:m,value:n.fontFamily,onChange:u=>l({fontFamily:u}),...s}),qn(bo,{label:a.fontColor,options:b,value:n.fontColor,onChange:u=>l({fontColor:u}),...s}),qn(bo,{label:a.fontSize,options:y(Vs),value:n.fontSize,onChange:u=>l({fontSize:u}),...s}),qn(bo,{label:a.backgroundColor,options:b,value:n.backgroundColor,onChange:u=>l({backgroundColor:u}),...s}),qn(bo,{label:a.backgroundOpacity,options:y(zs),value:n.backgroundOpacity,onChange:u=>l({backgroundOpacity:u}),...s})]})]})};import{cn as E6}from"@cleen/ui-core";import{jsx as Qg}from"react/jsx-runtime";var xP=({quality:e,labels:t,classNames:o,styles:n})=>{let l=oP(e.levels,t.qualityLevel),r=l.find(i=>i.value===e.current)?.label,a=[{value:Xr,label:t.qualityAuto(r)},...l];return Qg("div",{className:E6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",o?.qualitySettings),style:n?.qualitySettings,children:Qg(sc,{title:t.quality,classNames:o,styles:n,children:Qg(bo,{options:a,value:e.selected,onChange:e.onChange,classNames:o,styles:n})})})};import{cn as Qs}from"@cleen/ui-core";import{jsx as Zg,jsxs as PP}from"react/jsx-runtime";var SP=({playbackRate:e,dispatch:t,label:o,classNames:n,styles:l})=>PP("div",{className:Qs("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",n?.speedContent),style:l?.speedContent,children:[PP("div",{className:Qs("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",n?.speedHeader),style:l?.speedHeader,children:[Zg("span",{className:n?.speedLabel,style:l?.speedLabel,children:o}),Zg("span",{className:Qs("cleen-tabular-nums cleen-text-primary",n?.speedValue),style:l?.speedValue,children:`${e.toFixed(2)}\xD7`})]}),Zg(Hn,{minValue:Og,maxValue:_g,step:Vx,value:e,onChange:r=>t({type:"setPlaybackRate",playbackRate:r}),className:Qs("cleen-w-full",n?.speedSlider?.className),classNames:n?.speedSlider?.classNames,labels:{minLabel:`${Og}\xD7`,maxLabel:`${_g}\xD7`},...l?.speedSlider})]});import{jsx as kt}from"react/jsx-runtime";var Zr=18,kP='button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])',TP=({containerRef:e,portalContainer:t,isOpen:o,onOpenChange:n,showQualityTab:l,quality:r,showSpeedTab:a,showCaptionsTab:i,playbackRate:p,captionTracks:s,captionsTrackIndex:d,showCaptions:f,captionStyle:m,onCaptionStyleChange:b,dispatch:y,labels:u,iconSize:v,classNames:C,styles:S})=>{let[I,x]=MP(0),[w,R]=MP(),T=wP(null),N=wP(null),D=F=>{n(!1),F&&T.current?.focus()};L6(()=>{if(!o)return;let F=requestAnimationFrame(()=>{let B=N.current;(B?.querySelector('[aria-current="page"]')??B?.querySelector(kP))?.focus({preventScroll:!0})}),O=B=>{B.key==="Escape"&&(n(!1),document.activeElement===T.current&&T.current?.focus())};return document.addEventListener("keydown",O),()=>{cancelAnimationFrame(F),document.removeEventListener("keydown",O)}},[o,n]);let M=C?.settingsPopover?.classNames,P=C?.settingsTabs?.classNames,k=F=>{if(F){let O=e.current?.clientHeight;R(O===void 0?void 0:Math.min(Qx,O-Yx))}n(F)},E=F=>{if(F.stopPropagation(),F.key==="Escape"){D(!0);return}if(F.key==="Tab"&&N.current){let O=Array.from(N.current.querySelectorAll(kP)),B=O[0],A=O[O.length-1];F.shiftKey&&document.activeElement===B?(F.preventDefault(),A?.focus()):!F.shiftKey&&document.activeElement===A&&(F.preventDefault(),B?.focus())}},L=[...l?[{id:"quality",label:kt(sa,{width:Zr,height:Zr}),content:kt(xP,{quality:r,labels:u,classNames:C,styles:S})}]:[],...a?[{id:"speed",label:kt(ol,{width:Zr,height:Zr}),content:kt(SP,{playbackRate:p,dispatch:y,label:u.playbackSpeed,classNames:C,styles:S})}]:[],...i?[{id:"captions",label:kt(ba,{width:Zr,height:Zr}),content:kt(CP,{tracks:s,trackIndex:d,showCaptions:f,captionStyle:m,onCaptionStyleChange:b,dispatch:y,labels:u,classNames:C,styles:S})}]:[]];return kt(no,{position:"top-right",isOpen:o,onOpenChange:k,portalContainer:t,className:C?.settingsPopover?.className,classNames:{...M,popover:Xo("!cleen-w-72 cleen-flex cleen-flex-col cleen-overflow-hidden",M?.popover),trigger:Xo("cleen-flex cleen-items-center",M?.trigger)},...S?.settingsPopover,styles:{...S?.settingsPopover?.styles,popover:{height:w,...S?.settingsPopover?.styles?.popover}},content:kt("div",{ref:N,className:"cleen-flex cleen-flex-col cleen-min-h-0",onKeyDown:E,onDoubleClick:F=>F.stopPropagation(),children:kt(zl,{tabs:L,currentTabIndex:Math.min(I,L.length-1),onTabChange:x,variant:"underlined",className:Xo("cleen-flex cleen-flex-col cleen-min-h-0",C?.settingsTabs?.className),classNames:{...P,container:Xo("cleen-flex cleen-flex-col cleen-min-h-0",P?.container),list:Xo("cleen-shrink-0 cleen-mb-0 cleen-px-3 cleen-pt-2",P?.list),tab:Xo("cleen-pb-2",P?.tab),content:Xo("cleen-min-h-0 cleen-overflow-y-auto",P?.content)},...S?.settingsTabs})}),children:kt(Ut,{ref:T,label:u.settings,active:o,className:Xo(C?.controlButton,C?.settingsButton),style:{...S?.controlButton,...S?.settingsButton},children:kt(Za,{width:v,height:v})})})};import{cn as NP}from"@cleen/ui-core";import{jsx as Jg}from"react/jsx-runtime";var BP=({hasTracks:e,showCaptions:t,onToggle:o,portalContainer:n,labels:l,classNames:r,styles:a})=>{let i=r?.subtitlesBadge?.classNames;return Jg(Ne,{label:e?l.subtitles:l.noSubtitles,className:r?.subtitlesTooltip?.className,classNames:r?.subtitlesTooltip?.classNames,portalContainer:n,...a?.subtitlesTooltip,children:Jg("button",{type:"button","aria-label":l.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:o,className:NP("cleen-rounded-md disabled:cleen-opacity-40",Ko,r?.subtitlesButton),style:a?.subtitlesButton,children:Jg(Le,{variant:"sleek",className:r?.subtitlesBadge?.className,classNames:{...i,container:NP(cP,{[iP]:e},{[sP]:t},i?.container)},...a?.subtitlesBadge,children:l.subtitlesBadge})})})};import{jsx as Kn,jsxs as D6}from"react/jsx-runtime";var RP=({muted:e,volume:t,size:o})=>e||t===0?Kn(dl,{width:o,height:o}):t<.75?Kn(pl,{width:o,height:o}):Kn(sl,{width:o,height:o}),EP=({isFullscreen:e,size:t})=>e?Kn(Ha,{width:t,height:t}):Kn(_a,{width:t,height:t}),Jr=({forward:e,seconds:t,size:o})=>D6("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[Kn(e?Ya:Xa,{width:o,height:o}),Kn("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(o*.34)},children:t})]});import{cn as Zs}from"@cleen/ui-core";import{jsx as Js,jsxs as F6}from"react/jsx-runtime";var LP=({muted:e,volume:t,dispatch:o,labels:n,iconSize:l,classNames:r,styles:a})=>F6("div",{className:Zs("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2 cleen-min-w-0",r?.volume),style:a?.volume,children:[Js(Ut,{label:e?n.unmute:n.mute,active:e,onClick:()=>o({type:"toggleMuted"}),className:Zs(r?.controlButton,r?.muteButton),style:{...a?.controlButton,...a?.muteButton},children:Js(RP,{muted:e,volume:t,size:l})}),Js("div",{role:"group","aria-label":n.volume,className:Zs("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:a?.volumeSliderContainer,children:Js(Hn,{minValue:0,maxValue:1,step:nc,value:e?0:t,onChange:i=>o({type:"setVolume",volume:i,muted:i===0}),className:Zs("cleen-w-full",r?.volumeSlider?.className),classNames:r?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...a?.volumeSlider})})]});import{jsx as Ae,jsxs as pc}from"react/jsx-runtime";var DP=({containerRef:e,portalContainer:t,videoRef:o,src:n,state:l,dispatch:r,isShown:a,allowBarSeeking:i,chapters:p,buffered:s,seekStep:d,quality:f,hasTracks:m,captionTracks:b,captionStyle:y,onCaptionStyleChange:u,onSettingsOpenChange:v,visible:C,hidden:S,controlsOnHover:I,onSeek:x,onSeekBy:w,onTogglePlay:R,onToggleFullscreen:T,pictureInPictureSupported:N,onTogglePictureInPicture:D,labels:M,compact:P,classNames:k,styles:E})=>{let{playing:L,currentTime:F,duration:O,muted:B,volume:A,playbackRate:V,showCaptions:U,captionsTrackIndex:_,settingsOpen:W,isPictureInPicture:j,isFullscreen:G}=l,H=P?Wx:$x,X=ic(p,F)?.title,$=I&&!W,Y=a("quality")&&f.levels.length>0,ae=a("speed"),be=a("subtitles")&&b.length>0,pe=Me=>({className:Xn(k?.controlButton,k?.[Me]),style:{...E?.controlButton,...E?.[Me]}});return pc("div",{className:Xn("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-pointer-events-none",{"cleen-hidden":S},k?.controlBar),style:E?.controlBar,children:[Ae(mP,{videoRef:o,src:n,showCaptions:U,trackIndex:_,captionStyle:y,pictureInPicture:j,hidden:S,controlsVisible:C,controlsOnHover:$,classNames:k,styles:E}),pc("div",{className:Xn("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?$?"cleen-opacity-0 group-hover:cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-0",k?.controls),style:E?.controls,children:[a("seekbar")&&Ae(yP,{allowBarSeeking:i,chapters:p,duration:O,currentTime:F,buffered:s,onSeek:x,seekLabel:M.seek,progressLabel:M.progress,classNames:k,styles:E}),pc("div",{className:Xn("cleen-flex cleen-items-center","cleen-gap-2.5",{"sm:cleen-gap-3.5":!P},qo,k?.controlsRow),style:E?.controlsRow,children:[a("play")&&!P&&Ae(Ut,{label:L?M.pause:M.play,onClick:R,...pe("playButton"),children:L?Ae(vt,{width:H,height:H}):Ae(It,{width:H,height:H})}),a("backward")&&Ae(Ut,{label:M.seekBackward(d),onClick:()=>w(-d),...pe("backwardButton"),children:Ae(Jr,{seconds:d,size:H})}),a("forward")&&Ae(Ut,{label:M.seekForward(d),onClick:()=>w(d),...pe("forwardButton"),children:Ae(Jr,{forward:!0,seconds:d,size:H})}),a("volume")&&Ae(LP,{muted:B,volume:A,dispatch:r,labels:M,iconSize:H,classNames:k,styles:E}),a("time")&&pc("span",{className:Xn("cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap",{"cleen-text-xxs":P},k?.time),style:E?.time,children:[Ae("span",{className:k?.currentTime,style:E?.currentTime,children:Qr(F)})," ",pc("span",{className:Xn("cleen-font-medium",qg,k?.duration),style:E?.duration,children:["/ ",Qr(O)]})]}),X?Ae("span",{title:X,className:Xn("cleen-flex-1 cleen-min-w-0 cleen-font-medium cleen-text-[13px] cleen-truncate",qg,k?.chapterTitle),style:E?.chapterTitle,children:X}):Ae("span",{className:"cleen-flex-1"}),a("subtitles")&&m&&!P&&Ae(BP,{hasTracks:m,showCaptions:U,onToggle:()=>r({type:"toggleCaptions"}),portalContainer:t,labels:M,classNames:k,styles:E}),a("settings")&&(Y||ae||be)&&Ae(TP,{containerRef:e,portalContainer:t,isOpen:W,onOpenChange:v,showQualityTab:Y,quality:f,showSpeedTab:ae,showCaptionsTab:be,playbackRate:V,captionTracks:b,captionsTrackIndex:_,showCaptions:U,captionStyle:y,onCaptionStyleChange:u,dispatch:r,labels:M,iconSize:H,classNames:k,styles:E}),a("pictureInPicture")&&N&&Ae(Ut,{label:j?M.exitPictureInPicture:M.pictureInPicture,active:j,onClick:D,...pe("pictureInPictureButton"),children:Ae(Wa,{width:H,height:H})}),a("fullscreen")&&Ae(Ut,{label:G?M.exitFullscreen:M.fullscreen,active:G,onClick:T,...pe("fullscreenButton"),children:Ae(EP,{isFullscreen:G,size:H})})]})]})]})};import{cn as FP}from"@cleen/ui-core";import{cn as A6}from"@cleen/ui-core";import{jsx as O6}from"react/jsx-runtime";var jg=({label:e,onClick:t,className:o,style:n,children:l})=>O6("button",{type:"button","aria-label":e,onClick:t,className:A6("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",Gs,$s,qo,Ko,o),style:n,children:l});import{jsx as Yn,jsxs as _6}from"react/jsx-runtime";var AP=({playing:e,seekStep:t,visible:o,hidden:n,controlsOnHover:l,isShown:r,onTogglePlay:a,onSeekBy:i,labels:p,classNames:s,styles:d})=>_6("div",{className:FP("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},s?.overlay),style:d?.overlay,children:[r("backward")&&Yn(jg,{label:p.seekBackward(t),onClick:()=>i(-t),className:s?.overlayButton,style:d?.overlayButton,children:Yn(Jr,{seconds:t,size:26})}),r("play")&&Yn("button",{type:"button","aria-label":e?p.pause:p.play,onClick:a,className:FP("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",Gs,$s,qo,Ko,s?.overlayPlayButton),style:d?.overlayPlayButton,children:e?Yn(vt,{width:28,height:28}):Yn(It,{width:28,height:28})}),r("forward")&&Yn(jg,{label:p.seekForward(t),onClick:()=>i(t),className:s?.overlayButton,style:d?.overlayButton,children:Yn(Jr,{forward:!0,seconds:t,size:26})})]});import{cn as eb}from"@cleen/ui-core";import{jsx as OP,jsxs as V6}from"react/jsx-runtime";var _P=({label:e,subLabel:t,classNames:o,styles:n})=>V6("div",{className:eb("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:[OP("span",{className:eb("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",o?.placeholderLabel),style:n?.placeholderLabel,children:e}),t&&OP("span",{className:eb("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",o?.placeholderSubLabel),style:n?.placeholderSubLabel,children:t})]});import{useEffect as VP,useState as z6}from"react";var tb=[],zP=["progress","timeupdate","loadedmetadata","durationchange","seeked","emptied"],HP=(e,t,o)=>{let[n,l]=z6(tb);return VP(()=>{l(tb)},[t]),VP(()=>{let r=e.current;if(!r)return;let a=()=>{let i=jx(r.buffered);l(p=>eP(p,i)?p:i.length>0?i:tb)};return a(),zP.forEach(i=>r.addEventListener(i,a)),()=>zP.forEach(i=>r.removeEventListener(i,a))},[e,t,o]),n};import{useCallback as H6,useState as U6}from"react";var G6=()=>{try{let e=window.localStorage.getItem(Vg);return Wg(e?JSON.parse(e):void 0)}catch{return Wg(void 0)}},UP=()=>{let[e,t]=U6(G6),o=H6(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 $6,useState as W6}from"react";var ob=[],GP=(e,t,o,n)=>{let[l,r]=W6(ob);return $6(()=>{let a=e.current,i=a?.textTracks;if(!a||!i)return;let p,s,d=()=>{let y=p?.cues,u=!!(y&&y.length>0);return r(u&&y?rP(y):ob),u},f=()=>{clearInterval(s);let y=0;s=setInterval(()=>{y+=1,(d()||y>=Xx)&&clearInterval(s)},Kx)},m=()=>{let y=nP(i,t);y!==p&&(p&&(p.removeEventListener("cuechange",d),p.mode="disabled"),y?.addEventListener("cuechange",d),p=y),p&&p.mode!=="hidden"&&(p.mode="hidden"),!d()&&p&&f()},b=y=>{y.target instanceof HTMLTrackElement&&d()};return m(),i.addEventListener("addtrack",m),i.addEventListener("removetrack",m),a.addEventListener("load",b,!0),()=>{clearInterval(s),i.removeEventListener("addtrack",m),i.removeEventListener("removetrack",m),a.removeEventListener("load",b,!0),p&&(p.removeEventListener("cuechange",d),p.mode="disabled"),r(ob)}},[e,t,o,n]),l};import{useEffect as q6,useState as K6}from"react";var $P=e=>{let[t,o]=K6(!1);return q6(()=>{let n=e.current;if(!n||typeof ResizeObserver>"u")return;let l=new ResizeObserver(([r])=>{o(r.contentRect.width<Gx)});return l.observe(n),()=>l.disconnect()},[e]),t};import{useCallback as Wt,useEffect as X6,useRef as WP,useState as Y6}from"react";var qP=e=>{try{return e.matches(":focus-visible")}catch{return!1}},Q6=()=>typeof window<"u"&&window.matchMedia?.("(hover: none)").matches?"touch":"mouse",KP=(e,t,o,n,l)=>{let r=WP(void 0),a=WP(void 0),[i,p]=Y6(Q6),s=Wt(()=>{let x=n.current,w=document.activeElement;return!!x&&!!w&&w!==x&&x.contains(w)&&qP(w)},[n]),d=Wt(()=>{clearTimeout(r.current);let x=()=>{r.current=setTimeout(()=>{if(s()){x();return}o({type:"setControlsActive",controlsActive:!1})},zx)};x()},[o,s]),f=Wt(()=>{o({type:"setControlsActive",controlsActive:!0}),d()},[o,d]),m=Wt(()=>{e&&!s()&&(clearTimeout(r.current),o({type:"setControlsActive",controlsActive:!1}))},[o,s,e]);X6(()=>{if(!e){clearTimeout(r.current),o({type:"setControlsActive",controlsActive:!0});return}return d(),()=>clearTimeout(r.current)},[o,e,d]);let b=!e||t,y=Wt(x=>{x.pointerType==="mouse"&&(p("mouse"),f())},[f]),u=Wt(x=>{x.pointerType==="mouse"&&m()},[m]),v=Wt(x=>{if(a.current=x.pointerType,x.pointerType!=="touch"){p("mouse");return}p("touch"),x.target!==l.current&&f()},[l,f]),C=Wt(x=>{x.metaKey||x.ctrlKey||x.altKey||(p("keyboard"),f())},[f]),S=Wt(x=>{x.target!==x.currentTarget&&qP(x.target)&&(p("keyboard"),f())},[f]),I=Wt(()=>a.current!=="touch"?!1:(b&&e?m():f(),!0),[b,m,e,f]);return{controlsVisible:b,inputMode:i,revealControls:f,handleMediaClick:I,containerHandlers:{onPointerMove:y,onPointerLeave:u,onPointerDown:v,onKeyDown:C,onFocus:S}}};import{useCallback as Z6,useEffect as J6}from"react";var XP=(e,t,o)=>(J6(()=>{let n=()=>o({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",n),()=>document.removeEventListener("fullscreenchange",n)},[e,o]),Z6(()=>{let n=e.current;!n||!t||(document.fullscreenElement?document.exitFullscreen():n.requestFullscreen?.())},[e,t]));import{useLayoutEffect as j6,useRef as eD}from"react";var YP=(e,t)=>{let o=eD(null);j6(()=>{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 tD}from"react";var oD='input, textarea, select, [contenteditable]:not([contenteditable="false"])',nD='button, a[href], [role="button"], [role="tab"]',rD='[role="slider"], [role="radiogroup"], [role="tablist"]',aD=e=>{let t=e.target;return t===e.currentTarget?!1:t.closest(oD)?!0:e.key===" "||e.key==="Enter"?!!t.closest(nD):e.key.startsWith("Arrow")||e.key==="Home"||e.key==="End"?!!t.closest(rD):!1},QP=({volume:e,canSeekBackward:t,canSeekForward:o,canUseVolume:n,canUseCaptions:l,dispatch:r,seekBy:a,seekToPercentage:i,togglePlay:p,toggleFullscreen:s,restart:d})=>tD(f=>{if(f.metaKey||f.ctrlKey||f.altKey||aD(f))return;let m=(y,u=!0)=>{u&&(f.preventDefault(),y())},b=y=>r({type:"setVolume",volume:y,muted:!1});switch(f.key){case"ArrowLeft":return m(()=>a(-rc),t);case"ArrowRight":return m(()=>a(rc),o);case"ArrowUp":return m(()=>b(Math.min(e+nc,1)),n);case"ArrowDown":return m(()=>b(Math.max(e-nc,0)),n);case"f":return m(s);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(p);default:return}},[t,o,l,n,r,d,a,i,s,p,e]);import{useCallback as lD,useEffect as ZP,useRef as cD,useState as iD}from"react";var nb=()=>{},JP=e=>!!e&&typeof document<"u"&&document.pictureInPictureEnabled===!0&&typeof e.requestPictureInPicture=="function"&&!e.disablePictureInPicture,jP=(e,t,o,n,l)=>{let[r,a]=iD(!1),i=cD(!1);ZP(()=>{let s=e.current;if(a(JP(s)),!s)return;let d=b=>{i.current=b,l({type:"setPictureInPicture",isPictureInPicture:b})},f=()=>d(!0),m=()=>d(!1);return s.addEventListener("enterpictureinpicture",f),s.addEventListener("leavepictureinpicture",m),()=>{s.removeEventListener("enterpictureinpicture",f),s.removeEventListener("leavepictureinpicture",m)}},[e,o,n,l]),ZP(()=>()=>{i.current&&document.pictureInPictureElement&&document.exitPictureInPicture().catch(nb)},[]);let p=lD(()=>{let s=e.current;!t||!JP(s)||(i.current&&document.pictureInPictureElement?document.exitPictureInPicture().catch(nb):s?.requestPictureInPicture().catch(nb))},[t,e]);return{isSupported:t&&r,togglePictureInPicture:p}};import{useEffect as sD}from"react";var eS=e=>{sD(()=>{let t=e.current;if(!t||typeof ResizeObserver>"u")return;let o=new ResizeObserver(([n])=>{t.style.setProperty(_s,`${n.contentRect.height}px`)});return o.observe(t),()=>{o.disconnect(),t.style.removeProperty(_s)}},[e])};import{useCallback as pD,useEffect as tS,useRef as dD,useState as js}from"react";var rb=[],mD=e=>{let t=e?.api;return t&&Array.isArray(t.levels)&&typeof t.on=="function"?t:void 0},uD=e=>e.map((t,o)=>({index:o,width:t.width??0,height:t.height??0,bitrate:t.bitrate??0})),oS=(e,t,o,n)=>{let[l,r]=js(),[a,i]=js(rb),[p,s]=js(Xr),[d,f]=js(-1),m=dD(n);m.current=n,tS(()=>{let y=mD(e.current);if(!y)return;let u=()=>{let S=uD(y.levels);y.autoLevelCapping=$g(S,m.current),i(S.length>1?S:rb),s(y.autoLevelEnabled?Xr:y.currentLevel),f(y.currentLevel)},v=(S,I)=>f(I.level),C=()=>{r(void 0),i(rb),s(Xr),f(-1)};return r(y),u(),y.on("hlsManifestParsed",u),y.on("hlsLevelsUpdated",u),y.on("hlsLevelSwitched",v),y.on("hlsDestroying",C),()=>{y.off("hlsManifestParsed",u),y.off("hlsLevelsUpdated",u),y.off("hlsLevelSwitched",v),y.off("hlsDestroying",C)}},[e,t,o]),tS(()=>{l&&(l.autoLevelCapping=$g(a,n))},[l,a,n]);let b=pD(y=>{l&&(l.nextLevel=y,s(y))},[l]);return{levels:a,selected:p,current:d,onChange:b}};import{useCallback as ep,useEffect as fD,useRef as hD}from"react";var nS=(e,t,o,n)=>{let l=hD(0);fD(()=>{l.current=0},[o]);let r=ep(s=>{let d=e.current;if(!d||!Number.isFinite(d.duration))return;n();let f=t?d.duration:Math.min(Math.max(l.current,d.currentTime),d.duration);d.currentTime=Math.min(Math.max(s,0),f)},[t,n,e]),a=ep(s=>{let d=e.current;!d||!Number.isFinite(d.duration)||r(d.duration*Math.min(Math.max(s,0),1))},[r,e]),i=ep(s=>r((e.current?.currentTime??0)+s),[r,e]),p=ep(s=>{let d=e.current;!d||!Number.isFinite(d.duration)||(n(),d.currentTime=Math.min(Math.max(s,0),d.duration))},[n,e]);return{seekTo:r,seekToPercentage:a,seekBy:i,jumpTo:p,watchedTimeRef:l}};import{useCallback as rS,useRef as gD}from"react";var aS=(e,t)=>{let o=gD({seconds:e,src:null,attempts:0,done:!1}),n=rS(r=>{let a=o.current;if(!r?.src||a.done||(a.src===null&&(a.src=r.src),a.src!==r.src))return;let{seconds:i}=a,p=Number.isFinite(r.duration);if(i===void 0||!Number.isFinite(i)||i<=0||p&&i>r.duration){a.done=!0;return}p&&(a.attempts+=1,Math.abs(r.currentTime-i)>Ux?r.currentTime=i:a.done=!0,a.attempts>=Hx&&(a.done=!0),t({type:"seek",currentTime:i}))},[t]),l=rS(()=>{o.current.done=!0},[]);return{applyStartTime:n,cancelStartTime:l}};var lS=(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 Qn,jsxs as sS}from"react/jsx-runtime";var CD=[],iS=[],xD=bD(function({src:t,tracks:o=CD,startTime:n,allowBarSeeking:l=!0,allowSeekingPastWatched:r=!0,chapters:a,hiddenControls:i=iS,hiddenOverlayControls:p=iS,aspectRatio:s=Os,controlsOnHover:d=!1,seekStep:f=10,maxQuality:m=Ag,engine:b=Hg,labels:y,onTimeChange:u,onDurationChange:v,onPause:C,onEnded:S,className:I,classNames:x,style:w,styles:R,...T},N){let D=cS(null),M=cS(null),[P,k]=vD(lS,Jx),{playing:E,duration:L,muted:F,volume:O,playbackRate:B,isLoading:A,isFullscreen:V}=P,U=ab(()=>({...Dg,...y}),[y]),_=ab(()=>Us(o),[o]),W=_.length>0,{captionStyle:j,updateCaptionStyle:G}=UP(),H=fe=>!i.includes(fe),X=fe=>!p.includes(fe),$=H("volume"),Y=H("fullscreen"),ae=H("pictureInPicture"),be=W&&H("subtitles"),pe=H("backward")||X("backward"),Me=H("forward")||X("forward"),{applyStartTime:q,cancelStartTime:Q}=aS(n,k),{seekTo:z,seekToPercentage:re,seekBy:se,jumpTo:ye,watchedTimeRef:ue}=nS(M,r,t,Q),{controlsVisible:xe,inputMode:Z,revealControls:Re,handleMediaClick:Oe,containerHandlers:Se}=KP(E,P.controlsActive||P.settingsOpen,k,D,M),Ye=d&&Z==="mouse",lt=Xe(fe=>{k({type:"setSettingsOpen",settingsOpen:fe}),fe||Re()},[Re]);eS(D);let jr=$P(D),{isSupported:Zn,togglePictureInPicture:le}=jP(M,ae,t,!A,k),K=XP(D,Y,k);yD(N,()=>({getMediaElement:()=>M.current,play:()=>k({type:"play"}),pause:()=>k({type:"pause"}),jumpTo:ye}),[ye]);let ee=Xe(()=>k({type:"togglePlay"}),[]),ge=Xe(()=>{z(0),k({type:"play"})},[z]),_e=QP({volume:O,canSeekBackward:pe,canSeekForward:Me,canUseVolume:$,canUseCaptions:be,dispatch:k,seekBy:se,seekToPercentage:re,togglePlay:ee,toggleFullscreen:K,restart:ge}),Jn=Se.onKeyDown,ea=Xe(fe=>{Jn(fe),_e(fe)},[Jn,_e]),Te=Xe(()=>{Oe()||ee()},[Oe,ee]),Yo=Xe(()=>k({type:"play"}),[]),pS=Xe(()=>{k({type:"pause"}),C?.()},[C]),dS=Xe(fe=>{ue.current=fe.currentTarget.duration,k({type:"pause"}),S?.()},[S,ue]),mS=Xe(fe=>{let ta=fe.currentTarget,Qo=ta.currentTime;if(Qo-ue.current<=Zx)ue.current=Math.max(ue.current,Qo);else if(!r){ta.currentTime=ue.current;return}k({type:"timeUpdate",currentTime:Qo}),u?.(Qo)},[r,u,ue]),[uS,fS]=ID(),hS=Xe(fe=>{let{videoWidth:ta,videoHeight:Qo}=fe.currentTarget;fS(ta>0&&Qo>0?ta/Qo:void 0),k({type:"loaded",duration:fe.currentTarget.duration}),q(fe.currentTarget)},[q]),lb=Xe(fe=>q(fe.currentTarget),[q]),gS=Xe(fe=>{k({type:"ready"}),q(fe.currentTarget)},[q]),bS=Xe(fe=>{k({type:"durationChange",duration:fe.currentTarget.duration}),q(fe.currentTarget),v?.(fe)},[q,v]),yS=Xe(()=>k({type:"buffering"}),[]),vS=Xe(()=>k({type:"ready"}),[]),cb=!!t&&A,ib=!t||!A&&(!Number.isFinite(L)||L===0),tp=ib||cb;YP(D,tp);let op=GP(M,(_[P.captionsTrackIndex]??_[0])?.srcLang,t,!A),IS=HP(M,t,!A),CS=oS(M,t,!A,m),xS=ab(()=>Ug(op.length>0?op:a,L),[op,a,L]);return Qn("div",{className:dc("cleen",I),style:w,children:sS("div",{ref:D,className:dc("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":!xe,"focus-visible:cleen-ring-0":V},x?.container),style:R?.container,onPointerMove:Se.onPointerMove,onPointerLeave:Se.onPointerLeave,onPointerDown:Se.onPointerDown,onFocus:Se.onFocus,onDoubleClick:K,onKeyDown:ea,tabIndex:0,children:[sS("div",{className:dc("cleen-relative cleen-flex cleen-justify-center cleen-items-center",{"cleen-h-full":V},x?.viewport),style:{aspectRatio:V?void 0:s==="auto"?uS??Os:s,...R?.viewport},children:[Qn(b,{...T,ref:M,src:t||void 0,controls:!1,playing:E,muted:F,volume:O,playbackRate:B,playsInline:!0,className:dc("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",x?.video),style:R?.video,onClick:Te,onPlay:Yo,onPause:pS,onEnded:dS,onTimeUpdate:mS,onLoadedMetadata:hS,onLoadedData:lb,onCanPlay:gS,onSeeked:lb,onDurationChange:bS,onWaiting:yS,onError:vS,crossOrigin:"anonymous",children:o.map(fe=>Qn("track",{kind:fe.kind??"subtitles",src:fe.src,srcLang:fe.srcLang,label:fe.label},fe.src))}),ib&&Qn(_P,{label:U.placeholder,subLabel:U.placeholderSubLabel,classNames:x,styles:R}),cb&&Qn(ce,{size:"xl",className:dc("cleen-absolute",x?.loader?.className),classNames:x?.loader?.classNames,...R?.loader}),Qn(AP,{playing:E,seekStep:f,visible:xe,hidden:tp,controlsOnHover:Ye,isShown:X,onTogglePlay:ee,onSeekBy:se,labels:U,classNames:x,styles:R})]}),Qn(DP,{compact:jr,containerRef:D,portalContainer:V?D.current:null,videoRef:M,src:t,state:P,dispatch:k,isShown:H,allowBarSeeking:l,chapters:xS,buffered:IS,quality:CS,seekStep:f,hasTracks:W,captionTracks:_,captionStyle:j,onCaptionStyleChange:G,onSettingsOpenChange:lt,visible:xe,hidden:tp,controlsOnHover:Ye,onSeek:z,onSeekBy:se,onTogglePlay:ee,onToggleFullscreen:K,pictureInPictureSupported:Zn,onTogglePictureInPicture:le,labels:U,classNames:x,styles:R})]})})});export{BS as AdvancedProgressBar,Q3 as AudioPlayback,nT as AudioRecorder,Li as Avatar,iT as AvatarRow,dT as Breadcrumb,te as Button,Q0 as Calendar,ST as CalendarDropdown,$3 as CanvasButton,Pe as Card,p3 as CardIcon,h3 as CardMedia,BT as Carousel,bn as Checkbox,HT as CheckboxGroup,Ee as CleenIcon,rE as CleenNotificationContainer,T2 as Collapsible,XT as ColorPicker,jT as CreditCardInput,Ul as DEFAULT_NOTIFICATION_CATEGORIES,Gl as DEFAULT_NOTIFICATION_LABELS,Dg as DEFAULT_VIDEO_PLAYER_LABELS,xt as Divider,e1 as Drawer,fx as DrawerContainer,eL as DrawerContentTitle,Nl as Dropdown,LN as Dropzone,z3 as EditableCard,KN as EditableMatrix,A0 as EditableText,_0 as EditableTextArea,eB as FileCard,s1 as FileStackedProgressTracker,UB as FilterDrawer,rC as FormGroup,jB as GroupSelector,bp as Icon48AlertFeatured,yp as Icon48SuccessFeatured,Jo as IconAlertCircle,Ip as IconAlertOctagon,xp as IconAlertTriangle,Pp as IconApps,wp as IconArchive,Mp as IconArrowBarDown,kp as IconArrowBarLeft,Tp as IconArrowBarRight,Np as IconArrowBarToDown,Bp as IconArrowBarToLeft,Rp as IconArrowBarToRight,Ep as IconArrowBarToUp,Lp as IconArrowBarUp,Fp as IconArrowDown,Ap as IconArrowDownLeft,_p as IconArrowDownNarrow,Vp as IconArrowDownRight,Hp as IconArrowLeft,Gp as IconArrowLeftNarrow,Wp as IconArrowRight,Kp as IconArrowRightNarrow,Yp as IconArrowUp,Qp as IconArrowUpLeft,Jp as IconArrowUpNarrow,jp as IconArrowUpRight,ed as IconAttachment,sa as IconBadgeHd,td as IconBarChart,od as IconBarChartSquare,nd as IconBell,rd as IconBold,pd as IconBookOpen,ad as IconBookmark,pp as IconBookmarkCheck,dp as IconBookmarkCheckFill,ld as IconBookmarkFill,cd as IconBookmarkMinus,up as IconBookmarkPlus,sd as IconBookmarkX,dd as IconBoxLines,ud as IconBoxText,hd as IconBracketsCheck,gd as IconBracketsEllipses,bd as IconBrickWall,yd as IconBriefcase,fp as IconBuilding,vd as IconCalculator,ua as IconCalendar,Id as IconCertificate,Yt as IconCheck,jo as IconCheckCircle,Cd as IconCheckCircleBroken,xd as IconCheckFill,Pd as IconCheckVerified,Sd as IconCheckVerifiedFill,en as IconChevronDown,wd as IconChevronDownDouble,Md as IconChevronDownLeft,kd as IconChevronDownLeftDouble,Td as IconChevronDownRight,Nd as IconChevronDownRightDouble,Qt as IconChevronLeft,Bd as IconChevronLeftDouble,ct as IconChevronRight,fa as IconChevronRightDouble,Rd as IconChevronSelectorVertical,Zt as IconChevronUp,Ed as IconChevronUpDouble,Ld as IconChevronUpLeft,Dd as IconChevronUpLeftDouble,Fd as IconChevronUpRight,Ad as IconChevronUpRightDouble,Od as IconClick,ha as IconClock,_d as IconClockFastForward,zd as IconClockPlay,Hd as IconClockRewind,Ud as IconClone,ba as IconClosedCaption,Wd as IconCode,qd as IconCodeBrowser,Xd as IconCodeCircle,Qd as IconColors,hp as IconColumnEdit,Zd as IconCopy,Jd as IconCopy2,em as IconCopyCheck,tm as IconCreditCard,om as IconCube,nm as IconCubeOutline,ya as IconCursorBox,rm as IconDataflow,am as IconDataflow2,lm as IconDataflow3,im as IconDistributeHorizontal,sm as IconDollar,dm as IconDollarCircle,mm as IconDot,um as IconDotFill,fm as IconDotsGrid,Ia as IconDotsHorizontal,Co as IconDotsVertical,ym as IconDownload,vm as IconEdit,Cm as IconEditable,xm as IconExpand,Sm as IconExternalLink,Mm as IconExternalLink2,km as IconEye,Nm as IconEyeHidden,Bm as IconEyeHidden2,Rm as IconFaceAngry,Em as IconFaceLaugh,Lm as IconFaceSmile,on as IconFile,Fm as IconFileCheck,Pa as IconFileCsv,Am as IconFileDownload,Sa as IconFileJson,Om as IconFileList,pt as IconFileMusic,nn as IconFilePdf,Ma as IconFileSpreadsheet,jt as IconFileText,zm as IconFileUpload,Ta as IconFileXls,Na as IconFileXlsx,Tt as IconFileZip,Vm as IconFiles,Hm as IconFilter,Ba as IconFilter2,Gm as IconFlag,$m as IconFlag2,Wm as IconFlagFill,qm as IconFocus,Km as IconFolder,Xm as IconFolderExport,Ym as IconFolderImport,Qm as IconGraduationCap,Zm as IconGripVertical,Jm as IconHand,jm as IconHandShield,eu as IconHash,tu as IconHeadsetMic,ou as IconHeart,nu as IconHeartFill,au as IconHouse,Ea as IconHouseLine,We as IconImage,lu as IconImage2,cu as IconImageCheck,iu as IconImageOff,su as IconImport,pu as IconInbox,mu as IconInfoCircle,fu as IconInfoHexagon,gu as IconItalic,yu as IconLayersMultiple,vu as IconLayersSingle,Iu as IconLayout,xu as IconLayout2,Pu as IconLayoutColumns,Su as IconLayoutCustom,Mu as IconLayoutStuffed,ku as IconLayoutTile,Tu as IconLifeBuoy,Bu as IconLightbulb,Ru as IconLightning,Eu as IconLightningFast,Lu as IconLineChart,Du as IconLineChartBar,Fu as IconLineChartBreakoutSquare,Ou as IconLineChartUp,_u as IconLines,Vu as IconLinesCheck,zu as IconLinesPlay,Uu as IconLink,Gu as IconLink2,$u as IconLinkOff,Wu as IconListBullet,qu as IconListOrder,Xu as IconLock,Yu as IconLockFill,Zu as IconLogIn,ju as IconLogOut,tf as IconLogOut2,of as IconMagicWand,nf as IconMail,rf as IconMailOpen,af as IconMapPin,_a as IconMaximize,lf as IconMaximize2,cf as IconMessageCircle,rn as IconMessageSquare,pf as IconMessageSquare2,df as IconMessageXSquare,za as IconMicrophone,Ha as IconMinimize,mf as IconMinimize2,uf as IconMinusCircle,hf as IconMobile,gf as IconMonitor,bf as IconMonitor2,yf as IconMoon,vf as IconMoonCircle,yt as IconMovie,Nt as IconName,If as IconNavigationPointer,Cf as IconNotificationBox,Tf as IconPCSetup,xf as IconPackage,Pf as IconPalette,Sf as IconPasscodeLock,vt as IconPause,Mf as IconPauseCircle,Bf as IconPen,Rf as IconPercentageCircle,Ef as IconPerspective,Df as IconPhoneCall,Wa as IconPictureInPicture,qa as IconPin,It as IconPlay,Af as IconPlayCircle,an as IconPlus,Mo as IconPlusCircle,Vf as IconPrinter,zf as IconPulse,Ka as IconQuestionCircle,Uf as IconQuote,Gf as IconRadioButton,$f as IconRadioButtonFill,Wf as IconReceipt,qf as IconReceiptCheck,Kf as IconRedo,Xa as IconRefresh,Xf as IconRefresh2,Yf as IconRefresh3,Qf as IconRepeat,Zf as IconReplace,Ya as IconReplay,jf as IconRestore,th as IconRocket,oh as IconRoundChart,nh as IconRoundChart2,ah as IconRoute,ch as IconSave,ih as IconScanDots,Qa as IconScissors,Ct as IconSearch,sh as IconSend,ph as IconServer,Za as IconSettings,dh as IconSettings2,mh as IconShare,uh as IconShieldLightning,hh as IconShieldPlus,bh as IconShieldRemove,yh as IconShoppingBag,vh as IconShoppingCart,Ih as IconShrink,Ch as IconShuffle,xh as IconSkipForward,Ph as IconSlashCircle,Sh as IconSlashOctagon,wh as IconSocialAndroid,Mh as IconSocialApple,kh as IconSocialGithub,Th as IconSocialGlobe,Nh as IconSocialGoogle,Rh as IconSocialInstagram,Eh as IconSocialLinkedin,Dh as IconSocialMastercard,Fh as IconSocialReact,Ah as IconSocialVisa,Oh as IconSocialX,ol as IconSpeedometer,_h as IconStairs,nl as IconStar,Vh as IconStarFill,zh as IconStarHalf,Hh as IconStars,rl as IconStop,Uh as IconStrikethrough,Gh as IconSun,$h as IconSwap,Wh as IconSwitchHorizontal,Kh as IconTable,al as IconTag,Xh as IconTarget,Qh as IconTarget2,Jh as IconTextFormat,jh as IconTextFormat2,e0 as IconTextHighlight,t0 as IconThumbsDown,o0 as IconThumbsUp,n0 as IconThumbsUpFill,r0 as IconToggle,a0 as IconTranslate,dt as IconTrash,l0 as IconTrending,c0 as IconUnderline,i0 as IconUndo,p0 as IconUnlock,sn as IconUploadCloud,cl as IconUser,u0 as IconUserCheck,f0 as IconUserDollar,g0 as IconUserEdit,b0 as IconUserPlus,y0 as IconUserRight,C0 as IconUserSquare,gp as IconUserVoice,v0 as IconUsers,x0 as IconUsersUp,P0 as IconVideo,w0 as IconVideoChat,sl as IconVolume,pl as IconVolumeDown,dl as IconVolumeMute,k0 as IconWrench,He as IconX,T0 as IconXCircle,N0 as IconXCircleFill,B0 as IconXSquare,R0 as IconZoomIn,L0 as IconZoomOut,ie as InfoLabels,Ie as Input,de as Label,ce as Loader,iR as Lookup,uR as Markdown,Mn as Menu,xR as Modal,Lr as NOTIFICATION_GENERAL_CATEGORY,i6 as NativeVideoEngine,bE as Pagination,Z1 as PaginationGoToPage,J1 as PaginationPageSize,Le as PillBadge,no as Popover,Nr as ProgressBar,ZC as ProgressCircle,wE as RadioBoxGroup,LE as RadioButtonGroup,_E as Rating,Hg as ReactPlayerEngine,XE as Select,gx as Sidebar,Yl as SidebarItem,pL as Skeleton,ng as SkeletonAvatar,ag as SkeletonBadge,lg as SkeletonBanner,ig as SkeletonButton,Ql as SkeletonCard,Ts as SkeletonCard2,sg as SkeletonCard3,dg as SkeletonCardStack,mg as SkeletonChart,ug as SkeletonContentCard,fg as SkeletonDataGrid,hg as SkeletonForm,bg as SkeletonGlowingCard,yg as SkeletonImage,vg as SkeletonInfoCard,xg as SkeletonInput,Pg as SkeletonList,Mg as SkeletonParagraph,kg as SkeletonText,Tg as SkeletonVideo,Ds as SkeletonWidgetCard,_L as SkeletonWrapper,Hn as Slider,$L as SliderRange,c1 as StackedProgressTracker,o1 as StackedProgressTrackerRow,n1 as StackedProgressTrackerStatusFilter,KL as StarRating,Ax as Stepper,E1 as Switch,Ll as TRACKER_STATUS_FILTER_ORDER,zl as Tabs,JL as TagFilter,vl as TextArea,Ne as Tooltip,Rl as TrackerItemStatus,El as TrackerStatusFilter,Os as VIDEO_PLAYER_ASPECT_RATIO_DEFAULT,Ag as VIDEO_PLAYER_MAX_QUALITY_DEFAULT,Fg as VIDEO_PLAYER_SEEK_STEP_DEFAULT,xD as VideoPlayer,lc as VideoPlayerControl,Dl as cleanCellValue,xC as createNotificationStore,Je as formatHours,Qr as formatTime,Pn as getEditableMatrixKey,y1 as getEditableMatrixTotals,D0 as getFileIcon,g1 as getMinutesBetween,ic as getVideoChapterAt,u6 as getVideoChapterIndex,Gg as getVideoChapterProgress,Ug as getVideoChapters,z1 as groupLayout,H1 as listLayout,Rn as notification,me as notificationStore,b1 as parseHours,Z0 as parseRgbaString,Rr as roundHours,PC as showNotification,U1 as stackLayout,h1 as timeToMinutes,TR as useNotifications};