@cleen/ui 0.1.295 → 0.1.296
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cn as Zo,useAnimateNumber as LS}from"@cleen/ui-core";import{forwardRef as DS,useMemo as bb}from"react";import{cn as uc,usePositionClose as TS,ZIndex as NS}from"@cleen/ui-core";import{useEffect as db,useRef as ap,useState as mb}from"react";import{createPortal as BS}from"react-dom";import{jsx as lp,jsxs as ub}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=NS.TOOLTIP,portalContainer:P,style:I,styles:x,onClick:S,onMouseEnter:L,onMouseLeave:T,...N})=>{let[F,M]=mb(r??!1),[w,k]=mb(!1),D=ap(null),B=ap(null),A=ap(null),{positionStyles:_,isMounted:R,optimalPosition:E}=TS({triggerRef:B,targetRef:D,position:p,isOpen:F&&!m,offset:s,extraUpdateTriggers:u,container:P});db(()=>{M(r??!1)},[r]);let O=V=>{S?.(V),n&&M(!1)},z=(V,W)=>{if(r!==void 0)return;let J=B.current?.contains(V.target);!v&&!J||(W?(L?.(V),b&&b>0?A.current=setTimeout(()=>{M(!0)},b):M(!0)):(A.current&&(clearTimeout(A.current),A.current=null),M(!1),T?.(V)))};return db(()=>{let V=()=>{l&&k(!0)},W=()=>{k(!1)};return document.addEventListener("mousedown",V),document.addEventListener("mouseup",W),()=>{document.removeEventListener("mousedown",V),document.removeEventListener("mouseup",W)}},[l]),ub("div",{className:uc("cleen",d),style:I,children:[lp("div",{ref:B,className:uc("cleen-relative cleen-max-w-fit",f?.container),style:x?.container,onClick:O,onMouseEnter:V=>z(V,!0),onMouseLeave:V=>z(V,!1),...N,children:a}),t!==void 0&&F&&!m&&!w&&BS(lp("div",{className:"cleen",children:ub("div",{ref:D,className:uc("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":!R,"cleen-opacity-100":R},f?.labelContainer),style:{zIndex:C,top:`${_.top}px`,left:`${_.left}px`,...e&&{backgroundColor:e},...o&&{color:o},...x?.labelContainer},children:[t,lp("div",{className:uc(i?["cleen-absolute cleen-border-[6px] cleen-border-surface",{"cleen-border-b-transparent cleen-border-x-transparent cleen-top-full cleen-drop-shadow-[0_1px_0.5px_rgba(var(--cleen-black),0.1)]":E==="top"||E==="top-left"||E==="top-right","cleen-left-[calc(50%-6px)]":E==="top"||E==="bottom","cleen-left-[6px]":E==="top-left"||E==="bottom-left","cleen-right-[6px]":E==="top-right"||E==="bottom-right","cleen-border-t-transparent cleen-border-x-transparent cleen-bottom-full cleen-drop-shadow-[0_-0.5px_0.5px_rgba(var(--cleen-black),0.1)]":E==="bottom"||E==="bottom-left"||E==="bottom-right","cleen-border-y-transparent cleen-border-r-transparent cleen-left-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[1px_0_0.5px_rgba(var(--cleen-black),0.1)]":E==="left","cleen-border-y-transparent cleen-border-l-transparent cleen-right-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[-0.25px_0_0.5px_rgba(var(--cleen-black),0.1)]":E==="right"}]:"cleen-hidden"),style:{}})]})}),P??document.body)]})};import{cn as na}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 fc}from"@cleen/ui-core";import{jsx as cp}from"react/jsx-runtime";var hc=({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?cp(Ne,{invertColors:!0,...e.tooltip,className:fc("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:fc("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:cp("div",{className:fc("cleen-rounded-full",r),style:{width:d,height:d,backgroundColor:n,...a}})}):cp("div",{className:fc("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 gc}from"react/jsx-runtime";var fb=({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 gc(hc,{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?gc(Ne,{invertColors:!0,...e.tooltip,className:na("cleen-absolute",e.tooltip.className),style:{...u,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:na("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:na("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:gc("div",{className:na("cleen-relative cleen-size-full",p),style:{...C,...v,...s}})}):gc("div",{className:na("cleen-absolute cleen-pointer-events-none",p),style:{...C,...u,...s}})};import{cn as RS}from"@cleen/ui-core";import{jsx as ES}from"react/jsx-runtime";var hb=({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 ES("div",{className:RS("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",n),style:{left:`${r}%`,...l},children:e.label})};var gb={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as jn,jsxs as yb}from"react/jsx-runtime";var FS=DS(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=bb(()=>({...gb,...o}),[o]),y=bb(()=>t.reduce((P,I)=>{if(I.type==="bar"){let x=typeof I.end=="number"?I.end:d,S=Math.max(s,Math.min(x,d));if(S>P)return S}return P},0),[t,s,d]),u=LS({targetNumber:y,defaultNumber:s,duration:l,disabled:!n}),{bars:v,clamps:C}=t.reduce((P,I,x)=>{if(I==null||!I.type)return P;let S=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":P.clamps.push(jn(hc,{serie:I,color:S,trackHeight:b.height,minValue:s,maxValue:d,className:Zo(a?.clamp,I.className),style:{...p?.clamp,...I.style}},`clamp-${x}`));break;case"bar":P.bars.push(jn(fb,{serie:I,color:S,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 P},{clamps:[],bars:[]});return jn("div",{className:Zo("cleen",r),style:i,ref:m,...f,children:yb("div",{className:Zo("cleen-relative cleen-w-full",a?.container),style:p?.container,children:[yb("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(P=>!!P.label)&&jn("div",{"aria-hidden":!0,className:Zo("cleen-relative cleen-mt-2 cleen-h-5",a?.labels),style:p?.labels,children:t.map((P,I)=>!P||!P.type||!P.label?null:jn(hb,{serie:P,minValue:s,maxValue:d,className:a?.label,style:p?.label},`label-${I}`))})]})})});import{cn as ip}from"@cleen/ui-core";import{jsx as sp}from"react/jsx-runtime";var AS={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"},OS={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})=>sp("div",{className:ip("cleen",l),style:a,children:sp("div",{className:ip("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:sp("span",{className:ip("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"&&AS[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:OS[n]}s`,...i?.loader}})})});import{cn as pp,useWidthDynamicResize as _S}from"@cleen/ui-core";import{forwardRef as VS,useImperativeHandle as zS,useRef as HS}from"react";var vb={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"},Ib={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 Cb,jsxs as US}from"react/jsx-runtime";var te=VS(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 P=HS(null);return zS(C,()=>P.current),_S({ref:P,skip:y},[m,s,d,y]),Cb("div",{className:pp("cleen",l),style:a,children:US("button",{type:t,ref:P,className:pp("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",vb[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&&Cb(ce,{size:"xs",color:f||Ib[b],className:pp("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 xb={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"},Pb={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 ew}from"@cleen/ui-core";function er(e,t,o){return Math.min(Math.max(e,o),t)}var dp=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},ra=dp;function GS(e){if(typeof e!="string")throw new ra(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=ZS.test(e)?qS(e):e;let o=KS.exec(t);if(o){let a=Array.from(o).slice(1);return[...a.slice(0,3).map(i=>parseInt(aa(i,2),16)),parseInt(aa(a[3]||"f",2),16)/255]}let n=XS.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=YS.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=QS.exec(t);if(r){let[a,i,p,s]=Array.from(r).slice(1).map(parseFloat);if(er(0,100,i)!==i)throw new ra(e);if(er(0,100,p)!==p)throw new ra(e);return[...JS(a,i,p),Number.isNaN(s)?1:s]}throw new ra(e)}function $S(e){let t=5381,o=e.length;for(;o;)t=t*33^e.charCodeAt(--o);return(t>>>0)%2341}var Sb=e=>parseInt(e.replace(/_/g,""),36),WS="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=Sb(t.substring(0,3)),n=Sb(t.substring(3)).toString(16),l="";for(let r=0;r<6-n.length;r++)l+="0";return e[o]=`${l}${n}`,e},{});function qS(e){let t=e.toLowerCase().trim(),o=WS[$S(t)];if(!o)throw new ra(e);return`#${o}`}var aa=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),KS=new RegExp(`^#${aa("([a-f0-9])",3)}([a-f0-9])?$`,"i"),XS=new RegExp(`^#${aa("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),YS=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${aa(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),QS=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,ZS=/^[a-z]+$/i,wb=e=>Math.round(e*255),JS=(e,t,o)=>{let n=o/100;if(t===0)return[n,n,n].map(wb);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(wb)};function jS(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 la(e,t){let[o,n,l,r]=GS(e);return jS(o,n,l,r-t)}import{forwardRef as tw,useMemo as ow}from"react";import{jsx as tr,jsxs as Mb}from"react/jsx-runtime";var Pe=tw(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:P}=ow(()=>{let I=ew.getComputedColor(n);return I?{cardColor:I,backgroundColor:la(I,.9),borderColor:la(I,.8)}:{cardColor:I}},[n]);return tr("div",{className:yo("cleen",d),style:m,ref:u,...y,children:Mb("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:P,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)&&Mb("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:P},...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:P},...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 nw}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,nw("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 kb,jsxs as rw}from"react/jsx-runtime";var mp=e=>rw(c,{...e,children:[kb("path",{d:"M9 10.5l2 2l4 -4"}),kb("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as Tb}from"react/jsx-runtime";var up=e=>Tb(c,{isFilled:!0,...e,children:Tb("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 fp,jsxs as aw}from"react/jsx-runtime";var hp=e=>aw(c,{...e,children:[fp("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),fp("path",{d:"M16 19h6"}),fp("path",{d:"M19 16v6"})]});import{jsx as vo,jsxs as lw}from"react/jsx-runtime";var gp=e=>lw(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 Nb,jsxs as cw}from"react/jsx-runtime";var bp=e=>cw(c,{...e,children:[Nb("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"}),Nb("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 bc,jsxs as iw}from"react/jsx-runtime";var yp=e=>iw(c,{...e,children:[bc("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),bc("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),bc("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),bc("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as ca,jsxs as sw}from"react/jsx-runtime";var vp=e=>sw(c,{viewBox:"0 0 48 48",...e,children:[ca("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),ca("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),ca("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),ca("path",{d:"M24 18v8"}),ca("path",{d:"M24 30h.01"})]});import{jsx as yc,jsxs as pw}from"react/jsx-runtime";var Ip=e=>pw(c,{viewBox:"0 0 48 48",...e,children:[yc("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),yc("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),yc("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),yc("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as Cp,jsxs as dw}from"react/jsx-runtime";var Jo=e=>dw(c,{...e,children:[Cp("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Cp("path",{d:"M12 8v4"}),Cp("path",{d:"M12 16h.01"})]});import{jsx as Bb}from"react/jsx-runtime";var xp=e=>Bb(c,{isFilled:!0,...e,children:Bb("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 Pp,jsxs as mw}from"react/jsx-runtime";var Sp=e=>mw(c,{...e,children:[Pp("path",{d:"M12 9v4"}),Pp("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"}),Pp("path",{d:"M12 16h.01"})]});import{jsx as ia,jsxs as uw}from"react/jsx-runtime";var wp=e=>uw(c,{...e,children:[ia("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"}),ia("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"}),ia("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"}),ia("path",{d:"M14 7l6 0"}),ia("path",{d:"M17 4l0 6"})]});import{jsx as Mp,jsxs as fw}from"react/jsx-runtime";var kp=e=>fw(c,{...e,children:[Mp("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"}),Mp("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),Mp("path",{d:"M10 12l4 0"})]});import{jsx as vc,jsxs as hw}from"react/jsx-runtime";var Tp=e=>hw(c,{...e,children:[vc("path",{d:"M12 20l0 -10"}),vc("path",{d:"M12 20l4 -4"}),vc("path",{d:"M12 20l-4 -4"}),vc("path",{d:"M4 4l16 0"})]});import{jsx as Ic,jsxs as gw}from"react/jsx-runtime";var Np=e=>gw(c,{...e,children:[Ic("path",{d:"M4 12l10 0"}),Ic("path",{d:"M4 12l4 4"}),Ic("path",{d:"M4 12l4 -4"}),Ic("path",{d:"M20 4l0 16"})]});import{jsx as Cc,jsxs as bw}from"react/jsx-runtime";var Bp=e=>bw(c,{...e,children:[Cc("path",{d:"M20 12l-10 0"}),Cc("path",{d:"M20 12l-4 4"}),Cc("path",{d:"M20 12l-4 -4"}),Cc("path",{d:"M4 4l0 16"})]});import{jsx as xc,jsxs as yw}from"react/jsx-runtime";var Rp=e=>yw(c,{...e,children:[xc("path",{d:"M4 20l16 0"}),xc("path",{d:"M12 14l0 -10"}),xc("path",{d:"M12 14l4 -4"}),xc("path",{d:"M12 14l-4 -4"})]});import{jsx as Pc,jsxs as vw}from"react/jsx-runtime";var Ep=e=>vw(c,{...e,children:[Pc("path",{d:"M10 12l10 0"}),Pc("path",{d:"M10 12l4 4"}),Pc("path",{d:"M10 12l4 -4"}),Pc("path",{d:"M4 4l0 16"})]});import{jsx as Sc,jsxs as Iw}from"react/jsx-runtime";var Lp=e=>Iw(c,{...e,children:[Sc("path",{d:"M14 12l-10 0"}),Sc("path",{d:"M14 12l-4 4"}),Sc("path",{d:"M14 12l-4 -4"}),Sc("path",{d:"M20 4l0 16"})]});import{jsx as wc,jsxs as Cw}from"react/jsx-runtime";var Dp=e=>Cw(c,{...e,children:[wc("path",{d:"M12 10l0 10"}),wc("path",{d:"M12 10l4 4"}),wc("path",{d:"M12 10l-4 4"}),wc("path",{d:"M4 4l16 0"})]});import{jsx as Mc,jsxs as xw}from"react/jsx-runtime";var Fp=e=>xw(c,{...e,children:[Mc("path",{d:"M12 4l0 10"}),Mc("path",{d:"M12 4l4 4"}),Mc("path",{d:"M12 4l-4 4"}),Mc("path",{d:"M4 20l16 0"})]});import{jsx as Ap,jsxs as Pw}from"react/jsx-runtime";var Op=e=>Pw(c,{...e,children:[Ap("path",{d:"M12 5l0 14"}),Ap("path",{d:"M18 13l-6 6"}),Ap("path",{d:"M6 13l6 6"})]});import{jsx as Rb,jsxs as Sw}from"react/jsx-runtime";var _p=e=>Sw(c,{...e,children:[Rb("path",{d:"M17 7l-10 10"}),Rb("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as Vp,jsxs as ww}from"react/jsx-runtime";var zp=e=>ww(c,{...e,children:[Vp("path",{d:"M12 5l0 14"}),Vp("path",{d:"M16 15l-4 4"}),Vp("path",{d:"M8 15l4 4"})]});import{jsx as Eb,jsxs as Mw}from"react/jsx-runtime";var Hp=e=>Mw(c,{...e,children:[Eb("path",{d:"M7 7l10 10"}),Eb("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as Up,jsxs as kw}from"react/jsx-runtime";var Gp=e=>kw(c,{...e,children:[Up("path",{d:"M5 12l14 0"}),Up("path",{d:"M5 12l6 6"}),Up("path",{d:"M5 12l6 -6"})]});import{jsx as $p,jsxs as Tw}from"react/jsx-runtime";var Wp=e=>Tw(c,{...e,children:[$p("path",{d:"M5 12l14 0"}),$p("path",{d:"M5 12l4 4"}),$p("path",{d:"M5 12l4 -4"})]});import{jsx as qp,jsxs as Nw}from"react/jsx-runtime";var Kp=e=>Nw(c,{...e,children:[qp("path",{d:"M5 12l14 0"}),qp("path",{d:"M13 18l6 -6"}),qp("path",{d:"M13 6l6 6"})]});import{jsx as Xp,jsxs as Bw}from"react/jsx-runtime";var Yp=e=>Bw(c,{...e,children:[Xp("path",{d:"M5 12l14 0"}),Xp("path",{d:"M15 16l4 -4"}),Xp("path",{d:"M15 8l4 4"})]});import{jsx as Qp,jsxs as Rw}from"react/jsx-runtime";var Zp=e=>Rw(c,{...e,children:[Qp("path",{d:"M12 5l0 14"}),Qp("path",{d:"M18 11l-6 -6"}),Qp("path",{d:"M6 11l6 -6"})]});import{jsx as Lb,jsxs as Ew}from"react/jsx-runtime";var Jp=e=>Ew(c,{...e,children:[Lb("path",{d:"M7 7l10 10"}),Lb("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as jp,jsxs as Lw}from"react/jsx-runtime";var ed=e=>Lw(c,{...e,children:[jp("path",{d:"M12 5l0 14"}),jp("path",{d:"M16 9l-4 -4"}),jp("path",{d:"M8 9l4 -4"})]});import{jsx as Db,jsxs as Dw}from"react/jsx-runtime";var td=e=>Dw(c,{...e,children:[Db("path",{d:"M17 7l-10 10"}),Db("path",{d:"M8 7l9 0l0 9"})]});import{jsx as Fb}from"react/jsx-runtime";var od=e=>Fb(c,{...e,children:Fb("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 sa,jsxs as Fw}from"react/jsx-runtime";var pa=e=>Fw(c,{...e,children:[sa("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"}),sa("path",{d:"M14 9v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1"}),sa("path",{d:"M7 15v-6"}),sa("path",{d:"M10 15v-6"}),sa("path",{d:"M7 12h3"})]});import{jsx as kc,jsxs as Aw}from"react/jsx-runtime";var nd=e=>Aw(c,{...e,children:[kc("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"}),kc("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"}),kc("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"}),kc("path",{d:"M4 20h14"})]});import{jsx as da,jsxs as Ow}from"react/jsx-runtime";var rd=e=>Ow(c,{...e,children:[da("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"}),da("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"}),da("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"}),da("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"}),da("path",{d:"M7 18.5h10"})]});import{jsx as Ab,jsxs as _w}from"react/jsx-runtime";var ad=e=>_w(c,{...e,children:[Ab("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"}),Ab("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as Ob,jsxs as Vw}from"react/jsx-runtime";var ld=e=>Vw(c,{...e,children:[Ob("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),Ob("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as _b}from"react/jsx-runtime";var cd=e=>_b(c,{...e,children:_b("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as Vb}from"react/jsx-runtime";var id=e=>Vb(c,{isFilled:!0,...e,children:Vb("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 zb,jsxs as zw}from"react/jsx-runtime";var sd=e=>zw(c,{...e,children:[zb("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),zb("path",{d:"M16 19h6"})]});import{jsx as pd,jsxs as Hw}from"react/jsx-runtime";var dd=e=>Hw(c,{...e,children:[pd("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),pd("path",{d:"M20.5 21.5l-5 -5"}),pd("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as ma,jsxs as Uw}from"react/jsx-runtime";var md=e=>Uw(c,{...e,children:[ma("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),ma("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),ma("path",{d:"M3 6l0 13"}),ma("path",{d:"M12 6l0 13"}),ma("path",{d:"M21 6l0 13"})]});import{jsx as Tc,jsxs as Gw}from"react/jsx-runtime";var ud=e=>Gw(c,{...e,children:[Tc("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"}),Tc("path",{d:"M9 13h-2"}),Tc("path",{d:"M13 10h-6"}),Tc("path",{d:"M11 7h-4"})]});import{jsx as fd,jsxs as $w}from"react/jsx-runtime";var hd=e=>$w(c,{...e,children:[fd("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"}),fd("path",{d:"M10 8h4"}),fd("path",{d:"M12 8v8"})]});import{jsx as gd,jsxs as Ww}from"react/jsx-runtime";var bd=e=>Ww(c,{...e,children:[gd("path",{d:"M9 12l2 2l4 -4"}),gd("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),gd("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as ua,jsxs as qw}from"react/jsx-runtime";var yd=e=>qw(c,{...e,children:[ua("path",{d:"M15 12h.01"}),ua("path",{d:"M12 12h.01"}),ua("path",{d:"M9 12h.01"}),ua("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),ua("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 Kw}from"react/jsx-runtime";var vd=e=>Kw(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 Nc,jsxs as Xw}from"react/jsx-runtime";var Id=e=>Xw(c,{...e,children:[Nc("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"}),Nc("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),Nc("path",{d:"M12 12l0 .01"}),Nc("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as Io,jsxs as Yw}from"react/jsx-runtime";var Cd=e=>Yw(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 Qw}from"react/jsx-runtime";var fa=e=>Qw(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 Zw}from"react/jsx-runtime";var xd=e=>Zw(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 Hb}from"react/jsx-runtime";var Yt=e=>Hb(c,{...e,children:Hb("path",{d:"M5 12l5 5l10 -10"})});import{jsx as Ub,jsxs as Jw}from"react/jsx-runtime";var jo=e=>Jw(c,{...e,children:[Ub("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Ub("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as Gb,jsxs as jw}from"react/jsx-runtime";var Pd=e=>jw(c,{...e,children:[Gb("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),Gb("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as $b}from"react/jsx-runtime";var Sd=e=>$b(c,{isFilled:!0,...e,children:$b("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 Wb,jsxs as eM}from"react/jsx-runtime";var wd=e=>eM(c,{...e,children:[Wb("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"}),Wb("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as qb}from"react/jsx-runtime";var Md=e=>qb(c,{isFilled:!0,...e,children:qb("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 Kb}from"react/jsx-runtime";var en=e=>Kb(c,{...e,children:Kb("path",{d:"M6 9l6 6l6 -6"})});import{jsx as Xb,jsxs as tM}from"react/jsx-runtime";var kd=e=>tM(c,{...e,children:[Xb("path",{d:"M7 7l5 5l5 -5"}),Xb("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as Yb}from"react/jsx-runtime";var Td=e=>Yb(c,{...e,children:Yb("path",{d:"M8 8v8h8"})});import{jsx as Qb,jsxs as oM}from"react/jsx-runtime";var Nd=e=>oM(c,{...e,children:[Qb("path",{d:"M11 5v8h8"}),Qb("path",{d:"M7 9v8h8"})]});import{jsx as Zb}from"react/jsx-runtime";var Bd=e=>Zb(c,{...e,children:Zb("path",{d:"M16 8v8h-8"})});import{jsx as Jb,jsxs as nM}from"react/jsx-runtime";var Rd=e=>nM(c,{...e,children:[Jb("path",{d:"M13 5v8h-8"}),Jb("path",{d:"M17 9v8h-8"})]});import{jsx as jb}from"react/jsx-runtime";var Qt=e=>jb(c,{...e,children:jb("path",{d:"M15 6l-6 6l6 6"})});import{jsx as ey,jsxs as rM}from"react/jsx-runtime";var Ed=e=>rM(c,{...e,children:[ey("path",{d:"M11 7l-5 5l5 5"}),ey("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as ty}from"react/jsx-runtime";var ct=e=>ty(c,{...e,children:ty("path",{d:"M9 6l6 6l-6 6"})});import{jsx as oy,jsxs as aM}from"react/jsx-runtime";var ha=e=>aM(c,{...e,children:[oy("path",{d:"M7 7l5 5l-5 5"}),oy("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as ny,jsxs as lM}from"react/jsx-runtime";var Ld=e=>lM(c,{...e,children:[ny("path",{d:"M8 9l4 -4l4 4"}),ny("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as ry}from"react/jsx-runtime";var Zt=e=>ry(c,{...e,children:ry("path",{d:"M6 15l6 -6l6 6"})});import{jsx as ay,jsxs as cM}from"react/jsx-runtime";var Dd=e=>cM(c,{...e,children:[ay("path",{d:"M7 11l5 -5l5 5"}),ay("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as ly}from"react/jsx-runtime";var Fd=e=>ly(c,{...e,children:ly("path",{d:"M8 16v-8h8"})});import{jsx as cy,jsxs as iM}from"react/jsx-runtime";var Ad=e=>iM(c,{...e,children:[cy("path",{d:"M7 15v-8h8"}),cy("path",{d:"M11 19v-8h8"})]});import{jsx as iy}from"react/jsx-runtime";var Od=e=>iy(c,{...e,children:iy("path",{d:"M8 8h8v8"})});import{jsx as sy,jsxs as sM}from"react/jsx-runtime";var _d=e=>sM(c,{...e,children:[sy("path",{d:"M9 7h8v8"}),sy("path",{d:"M5 11h8v8"})]});import{jsx as rr,jsxs as pM}from"react/jsx-runtime";var Vd=e=>pM(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 py,jsxs as dM}from"react/jsx-runtime";var ga=e=>dM(c,{...e,children:[py("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),py("path",{d:"M12 7v5l3 3"})]});import{jsx as Bc,jsxs as mM}from"react/jsx-runtime";var zd=e=>mM(c,{...e,children:[Bc("path",{d:"M12 7v5l2 2"}),Bc("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),Bc("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),Bc("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as Hd,jsxs as uM}from"react/jsx-runtime";var Ud=e=>uM(c,{...e,children:[Hd("path",{d:"M12 7v5l2 2"}),Hd("path",{d:"M17 22l5 -3l-5 -3z"}),Hd("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as dy,jsxs as fM}from"react/jsx-runtime";var Gd=e=>fM(c,{...e,children:[dy("path",{d:"M12 8l0 4l2 2"}),dy("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as ba,jsxs as hM}from"react/jsx-runtime";var $d=e=>hM(c,{...e,children:[ba("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),ba("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"}),ba("path",{d:"M11 14h6"}),ba("path",{d:"M14 11v6"}),ba("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 Wd,jsxs as gM}from"react/jsx-runtime";var ya=e=>gM(c,{...e,children:[Wd("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"}),Wd("path",{d:"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Wd("path",{d:"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"})]});import{jsx as qd,jsxs as bM}from"react/jsx-runtime";var Kd=e=>bM(c,{...e,children:[qd("path",{d:"M7 8l-4 4l4 4"}),qd("path",{d:"M17 8l4 4l-4 4"}),qd("path",{d:"M14 4l-4 16"})]});import{jsx as ar,jsxs as yM}from"react/jsx-runtime";var Xd=e=>yM(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 Yd,jsxs as vM}from"react/jsx-runtime";var Qd=e=>vM(c,{...e,children:[Yd("path",{d:"M10 14l-2 -2l2 -2"}),Yd("path",{d:"M14 10l2 2l-2 2"}),Yd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Zd,jsxs as IM}from"react/jsx-runtime";var Jd=e=>IM(c,{...e,children:[Zd("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Zd("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Zd("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as my,jsxs as CM}from"react/jsx-runtime";var jd=e=>CM(c,{...e,children:[my("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"}),my("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 uy,jsxs as xM}from"react/jsx-runtime";var em=e=>xM(c,{...e,children:[uy("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"}),uy("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 tm,jsxs as PM}from"react/jsx-runtime";var om=e=>PM(c,{...e,children:[tm("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"}),tm("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"}),tm("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as Rc,jsxs as SM}from"react/jsx-runtime";var nm=e=>SM(c,{...e,children:[Rc("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"}),Rc("path",{d:"M3 10l18 0"}),Rc("path",{d:"M7 15l.01 0"}),Rc("path",{d:"M11 15l2 0"})]});import{jsx as Ec,jsxs as wM}from"react/jsx-runtime";var rm=e=>wM(c,{...e,children:[Ec("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"}),Ec("path",{d:"M12 22v-10"}),Ec("path",{d:"M12 12l8.73 -5.04"}),Ec("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as it,jsxs as MM}from"react/jsx-runtime";var am=e=>MM(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 fy,jsxs as kM}from"react/jsx-runtime";var va=e=>kM(c,{...e,children:[fy("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"}),fy("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 TM}from"react/jsx-runtime";var lm=e=>TM(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 NM}from"react/jsx-runtime";var cm=e=>NM(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 Ia,jsxs as BM}from"react/jsx-runtime";var im=e=>BM(c,{...e,children:[Ia("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"}),Ia("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"}),Ia("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"}),Ia("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),Ia("path",{d:"M12 9l0 3"})]});import{jsx as sm,jsxs as RM}from"react/jsx-runtime";var pm=e=>RM(c,{...e,children:[sm("path",{d:"M4 4l16 0"}),sm("path",{d:"M4 20l16 0"}),sm("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 hy,jsxs as EM}from"react/jsx-runtime";var dm=e=>EM(c,{...e,children:[hy("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"}),hy("path",{d:"M12 3v3m0 12v3"})]});import{jsx as mm,jsxs as LM}from"react/jsx-runtime";var um=e=>LM(c,{...e,children:[mm("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),mm("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"}),mm("path",{d:"M12 7v10"})]});import{jsx as gy}from"react/jsx-runtime";var fm=e=>gy(c,{...e,children:gy("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as by}from"react/jsx-runtime";var hm=e=>by(c,{isFilled:!0,...e,children:by("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 DM}from"react/jsx-runtime";var gm=e=>DM(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 bm,jsxs as FM}from"react/jsx-runtime";var Ca=e=>FM(c,{...e,children:[bm("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bm("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bm("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as ym,jsxs as AM}from"react/jsx-runtime";var Co=e=>AM(c,{...e,children:[ym("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ym("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ym("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as vm,jsxs as OM}from"react/jsx-runtime";var Im=e=>OM(c,{...e,children:[vm("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),vm("path",{d:"M7 11l5 5l5 -5"}),vm("path",{d:"M12 4l0 12"})]});import{jsx as yy,jsxs as _M}from"react/jsx-runtime";var Cm=e=>_M(c,{...e,children:[yy("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),yy("path",{d:"M13.5 6.5l4 4"})]});import{jsx as xm,jsxs as VM}from"react/jsx-runtime";var Pm=e=>VM(c,{...e,children:[xm("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),xm("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),xm("path",{d:"M16 5l3 3"})]});import{jsx as xo,jsxs as zM}from"react/jsx-runtime";var Sm=e=>zM(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 wm,jsxs as HM}from"react/jsx-runtime";var Mm=e=>HM(c,{...e,children:[wm("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),wm("path",{d:"M11 13l9 -9"}),wm("path",{d:"M15 4h5v5"})]});import{jsx as km,jsxs as UM}from"react/jsx-runtime";var Tm=e=>UM(c,{...e,children:[km("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"}),km("path",{d:"M15 9l-6 6"}),km("path",{d:"M10 9l5 0l0 5"})]});import{jsx as vy,jsxs as GM}from"react/jsx-runtime";var Nm=e=>GM(c,{...e,children:[vy("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),vy("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 Bm,jsxs as $M}from"react/jsx-runtime";var Rm=e=>$M(c,{...e,children:[Bm("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),Bm("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"}),Bm("path",{d:"M3 3l18 18"})]});import{jsx as xa,jsxs as WM}from"react/jsx-runtime";var Em=e=>WM(c,{...e,children:[xa("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),xa("path",{d:"M3 15l2.5 -3.8"}),xa("path",{d:"M21 14.976l-2.492 -3.776"}),xa("path",{d:"M9 17l.5 -4"}),xa("path",{d:"M15 17l-.5 -4"})]});import{jsx as Lc,jsxs as qM}from"react/jsx-runtime";var Lm=e=>qM(c,{...e,children:[Lc("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),Lc("path",{d:"M8 9l2 1"}),Lc("path",{d:"M16 9l-2 1"}),Lc("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as lr,jsxs as KM}from"react/jsx-runtime";var Dm=e=>KM(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 Dc,jsxs as XM}from"react/jsx-runtime";var Fm=e=>XM(c,{...e,children:[Dc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Dc("path",{d:"M9 10l.01 0"}),Dc("path",{d:"M15 10l.01 0"}),Dc("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Iy,jsxs as YM}from"react/jsx-runtime";var on=e=>YM(c,{...e,children:[Iy("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Iy("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 Am,jsxs as QM}from"react/jsx-runtime";var Om=e=>QM(c,{...e,children:[Am("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Am("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"}),Am("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as Pa,jsxs as ZM}from"react/jsx-runtime";var Sa=e=>ZM(c,{...e,children:[Pa("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Pa("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Pa("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Pa("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"}),Pa("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as Fc,jsxs as JM}from"react/jsx-runtime";var _m=e=>JM(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:"M12 17v-6"}),Fc("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as cr,jsxs as jM}from"react/jsx-runtime";var wa=e=>jM(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 Ac,jsxs as e4}from"react/jsx-runtime";var Vm=e=>e4(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:"M9 17h6"}),Ac("path",{d:"M9 13h6"})]});import{jsx as Oc,jsxs as t4}from"react/jsx-runtime";var pt=e=>t4(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:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Oc("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as ir,jsxs as o4}from"react/jsx-runtime";var nn=e=>o4(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 zm,jsxs as n4}from"react/jsx-runtime";var Hm=e=>n4(c,{...e,children:[zm("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),zm("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"}),zm("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 Ma,jsxs as r4}from"react/jsx-runtime";var ka=e=>r4(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:"M8 11h8v7h-8z"}),Ma("path",{d:"M8 15h8"}),Ma("path",{d:"M11 11v7"})]});import{jsx as Ta,jsxs as a4}from"react/jsx-runtime";var jt=e=>a4(c,{...e,children:[Ta("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ta("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"}),Ta("path",{d:"M9 9l1 0"}),Ta("path",{d:"M9 13l6 0"}),Ta("path",{d:"M9 17l6 0"})]});import{jsx as _c,jsxs as l4}from"react/jsx-runtime";var Um=e=>l4(c,{...e,children:[_c("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),_c("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"}),_c("path",{d:"M12 11v6"}),_c("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as sr,jsxs as c4}from"react/jsx-runtime";var Na=e=>c4(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 i4}from"react/jsx-runtime";var Ba=e=>i4(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 s4}from"react/jsx-runtime";var Tt=e=>s4(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 Cy}from"react/jsx-runtime";var Gm=e=>Cy(c,{...e,children:Cy("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 $m,jsxs as p4}from"react/jsx-runtime";var Ra=e=>p4(c,{...e,children:[$m("path",{d:"M4 6h16"}),$m("path",{d:"M6 12h12"}),$m("path",{d:"M9 18h6"})]});import{jsx as xy,jsxs as d4}from"react/jsx-runtime";var Wm=e=>d4(c,{...e,children:[xy("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"}),xy("path",{d:"M5 21v-7"})]});import{jsx as Py}from"react/jsx-runtime";var qm=e=>Py(c,{...e,children:Py("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as Sy}from"react/jsx-runtime";var Km=e=>Sy(c,{isFilled:!0,...e,children:Sy("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 Ea,jsxs as m4}from"react/jsx-runtime";var Xm=e=>m4(c,{...e,children:[Ea("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ea("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Ea("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Ea("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Ea("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as wy}from"react/jsx-runtime";var Ym=e=>wy(c,{...e,children:wy("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 Vc,jsxs as u4}from"react/jsx-runtime";var Qm=e=>u4(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-0.5m0 -8v-2.5a2 2 0 0 1 2 -2"}),Vc("path",{d:"M1 12.5l7 0"}),Vc("path",{d:"M1 12.5l2 2"}),Vc("path",{d:"M1 12.5l2 -2"})]});import{jsx as zc,jsxs as f4}from"react/jsx-runtime";var Zm=e=>f4(c,{...e,children:[zc("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"}),zc("path",{d:"M2 13l7 0"}),zc("path",{d:"M9 13l-2 2"}),zc("path",{d:"M9 13l-2 -2"})]});import{jsx as My,jsxs as h4}from"react/jsx-runtime";var Jm=e=>h4(c,{...e,children:[My("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),My("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as pr,jsxs as g4}from"react/jsx-runtime";var jm=e=>g4(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 Hc,jsxs as b4}from"react/jsx-runtime";var eu=e=>b4(c,{...e,children:[Hc("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Hc("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Hc("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Hc("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 y4}from"react/jsx-runtime";var tu=e=>y4(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 Uc,jsxs as v4}from"react/jsx-runtime";var ou=e=>v4(c,{...e,children:[Uc("path",{d:"M5 9l14 0"}),Uc("path",{d:"M5 15l14 0"}),Uc("path",{d:"M11 4l-4 16"}),Uc("path",{d:"M17 4l-4 16"})]});import{jsx as Gc,jsxs as I4}from"react/jsx-runtime";var nu=e=>I4(c,{...e,children:[Gc("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),Gc("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),Gc("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"}),Gc("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 ky}from"react/jsx-runtime";var ru=e=>ky(c,{...e,children:ky("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 Ty}from"react/jsx-runtime";var au=e=>Ty(c,{isFilled:!0,...e,children:Ty("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 lu,jsxs as C4}from"react/jsx-runtime";var cu=e=>C4(c,{...e,children:[lu("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),lu("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),lu("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as Ny,jsxs as x4}from"react/jsx-runtime";var La=e=>x4(c,{...e,children:[Ny("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"}),Ny("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as $c,jsxs as P4}from"react/jsx-runtime";var We=e=>P4(c,{...e,children:[$c("path",{d:"M15 8h.01"}),$c("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"}),$c("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),$c("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as Da,jsxs as S4}from"react/jsx-runtime";var iu=e=>S4(c,{...e,children:[Da("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"}),Da("path",{d:"M4 16l16 0"}),Da("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),Da("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),Da("path",{d:"M14 7l.01 0"})]});import{jsx as Fa,jsxs as w4}from"react/jsx-runtime";var su=e=>w4(c,{...e,children:[Fa("path",{d:"M15 8h.01"}),Fa("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"}),Fa("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),Fa("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),Fa("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Aa,jsxs as M4}from"react/jsx-runtime";var pu=e=>M4(c,{...e,children:[Aa("path",{d:"M15 8h.01"}),Aa("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"}),Aa("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Aa("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),Aa("path",{d:"M3 3l18 18"})]});import{jsx as By,jsxs as k4}from"react/jsx-runtime";var du=e=>k4(c,{...e,children:[By("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),By("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 Ry,jsxs as T4}from"react/jsx-runtime";var mu=e=>T4(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:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as uu,jsxs as N4}from"react/jsx-runtime";var fu=e=>N4(c,{...e,children:[uu("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),uu("path",{d:"M12 9h.01"}),uu("path",{d:"M11 12h1v4h1"})]});import{jsx as hu,jsxs as B4}from"react/jsx-runtime";var gu=e=>B4(c,{...e,children:[hu("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"}),hu("path",{d:"M12 9h.01"}),hu("path",{d:"M11 12h1v4h1"})]});import{jsx as bu,jsxs as R4}from"react/jsx-runtime";var yu=e=>R4(c,{...e,children:[bu("path",{d:"M11 5l6 0"}),bu("path",{d:"M7 19l6 0"}),bu("path",{d:"M14 5l-4 14"})]});import{jsx as vu,jsxs as E4}from"react/jsx-runtime";var Iu=e=>E4(c,{...e,children:[vu("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),vu("path",{d:"M4 12l8 4l8 -4"}),vu("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as Ey,jsxs as L4}from"react/jsx-runtime";var Cu=e=>L4(c,{...e,children:[Ey("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),Ey("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as Ly,jsxs as D4}from"react/jsx-runtime";var xu=e=>D4(c,{...e,children:[Ly("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"}),Ly("path",{d:"M9 4l0 16"})]});import{jsx as Pu,jsxs as F4}from"react/jsx-runtime";var Su=e=>F4(c,{...e,children:[Pu("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"}),Pu("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"}),Pu("path",{d:"M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"})]});import{jsx as Wc,jsxs as A4}from"react/jsx-runtime";var wu=e=>A4(c,{...e,children:[Wc("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Wc("path",{d:"M4 9h8"}),Wc("path",{d:"M12 15h8"}),Wc("path",{d:"M12 4v16"})]});import{jsx as Oa,jsxs as O4}from"react/jsx-runtime";var Mu=e=>O4(c,{...e,children:[Oa("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"}),Oa("path",{d:"M4 12h8"}),Oa("path",{d:"M12 15h8"}),Oa("path",{d:"M12 9h8"}),Oa("path",{d:"M12 4v16"})]});import{jsx as ku,jsxs as _4}from"react/jsx-runtime";var Tu=e=>_4(c,{...e,children:[ku("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"}),ku("path",{d:"M10 4l4 16"}),ku("path",{d:"M12 12l-8 2"})]});import{jsx as qc,jsxs as V4}from"react/jsx-runtime";var Nu=e=>V4(c,{...e,children:[qc("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"}),qc("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"}),qc("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"}),qc("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 z4}from"react/jsx-runtime";var Bu=e=>z4(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 Ru,jsxs as H4}from"react/jsx-runtime";var Eu=e=>H4(c,{...e,children:[Ru("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),Ru("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"}),Ru("path",{d:"M9.7 17l4.6 0"})]});import{jsx as Dy}from"react/jsx-runtime";var Lu=e=>Dy(c,{...e,children:Dy("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as Fy,jsxs as U4}from"react/jsx-runtime";var Du=e=>U4(c,{...e,children:[Fy("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),Fy("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as Ay,jsxs as G4}from"react/jsx-runtime";var Fu=e=>G4(c,{...e,children:[Ay("path",{d:"M4 19l16 0"}),Ay("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as ur,jsxs as $4}from"react/jsx-runtime";var Au=e=>$4(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 W4}from"react/jsx-runtime";var Ou=e=>W4(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 _u,jsxs as q4}from"react/jsx-runtime";var Vu=e=>q4(c,{...e,children:[_u("path",{d:"M4 19l16 0"}),_u("path",{d:"M4 16l6 -6l4 4l5 -5"}),_u("path",{d:"M15 8h5v5"})]});import{jsx as Oy,jsxs as K4}from"react/jsx-runtime";var zu=e=>K4(c,{...e,children:[Oy("path",{d:"M5 10h14"}),Oy("path",{d:"M5 14h14"})]});import{jsx as hr,jsxs as X4}from"react/jsx-runtime";var Hu=e=>X4(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 Kc,jsxs as Y4}from"react/jsx-runtime";var Uu=e=>Y4(c,{...e,children:[Kc("path",{d:"M12 10v8l8 -4z"}),Kc("path",{d:"M4 6h16"}),Kc("path",{d:"M4 12h4.5"}),Kc("path",{d:"M4 18h4.5"})]});import{jsx as Gu,jsxs as Q4}from"react/jsx-runtime";var $u=e=>Q4(c,{...e,children:[Gu("path",{d:"M9 15l6 -6"}),Gu("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Gu("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 _y,jsxs as Z4}from"react/jsx-runtime";var Wu=e=>Z4(c,{...e,children:[_y("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),_y("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Xc,jsxs as J4}from"react/jsx-runtime";var qu=e=>J4(c,{...e,children:[Xc("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Xc("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Xc("path",{d:"M3 3l18 18"}),Xc("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 j4}from"react/jsx-runtime";var Ku=e=>j4(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 _a,jsxs as e5}from"react/jsx-runtime";var Xu=e=>e5(c,{...e,children:[_a("path",{d:"M11 6h9"}),_a("path",{d:"M11 12h9"}),_a("path",{d:"M12 18h8"}),_a("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),_a("path",{d:"M6 10v-6l-2 2"})]});import{jsx as Yu,jsxs as t5}from"react/jsx-runtime";var Qu=e=>t5(c,{...e,children:[Yu("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"}),Yu("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Yu("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as Vy}from"react/jsx-runtime";var Zu=e=>Vy(c,{isFilled:!0,...e,children:Vy("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 Ju,jsxs as o5}from"react/jsx-runtime";var ju=e=>o5(c,{...e,children:[Ju("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"}),Ju("path",{d:"M3 12h13l-3 -3"}),Ju("path",{d:"M13 15l3 -3"})]});import{jsx as ef,jsxs as n5}from"react/jsx-runtime";var tf=e=>n5(c,{...e,children:[ef("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"}),ef("path",{d:"M9 12h12l-3 -3"}),ef("path",{d:"M18 15l3 -3"})]});import{jsx as of,jsxs as r5}from"react/jsx-runtime";var nf=e=>r5(c,{...e,children:[of("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"}),of("path",{d:"M15 12h-12l3 -3"}),of("path",{d:"M6 15l-3 -3"})]});import{jsx as Yc,jsxs as a5}from"react/jsx-runtime";var rf=e=>a5(c,{...e,children:[Yc("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Yc("path",{d:"M15 6l3 3"}),Yc("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"}),Yc("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 zy,jsxs as l5}from"react/jsx-runtime";var af=e=>l5(c,{...e,children:[zy("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"}),zy("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as Qc,jsxs as c5}from"react/jsx-runtime";var lf=e=>c5(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 Hy,jsxs as i5}from"react/jsx-runtime";var cf=e=>i5(c,{...e,children:[Hy("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Hy("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 Zc,jsxs as s5}from"react/jsx-runtime";var Va=e=>s5(c,{...e,children:[Zc("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Zc("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Zc("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Zc("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Jc,jsxs as p5}from"react/jsx-runtime";var sf=e=>p5(c,{...e,children:[Jc("path",{d:"M16 4l4 0l0 4"}),Jc("path",{d:"M14 10l6 -6"}),Jc("path",{d:"M8 20l-4 0l0 -4"}),Jc("path",{d:"M4 20l6 -6"})]});import{jsx as Uy}from"react/jsx-runtime";var pf=e=>Uy(c,{...e,children:Uy("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 df,jsxs as d5}from"react/jsx-runtime";var rn=e=>d5(c,{...e,children:[df("path",{d:"M8 9h8"}),df("path",{d:"M8 13h6"}),df("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 m5}from"react/jsx-runtime";var mf=e=>m5(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 za,jsxs as u5}from"react/jsx-runtime";var uf=e=>u5(c,{...e,children:[za("path",{d:"M8 9h8"}),za("path",{d:"M8 13h6"}),za("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"}),za("path",{d:"M22 22l-5 -5"}),za("path",{d:"M17 22l5 -5"})]});import{jsx as ei,jsxs as f5}from"react/jsx-runtime";var Ha=e=>f5(c,{...e,children:[ei("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"}),ei("path",{d:"M5 10a7 7 0 0 0 14 0"}),ei("path",{d:"M8 21l8 0"}),ei("path",{d:"M12 17l0 4"})]});import{jsx as ti,jsxs as h5}from"react/jsx-runtime";var Ua=e=>h5(c,{...e,children:[ti("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),ti("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),ti("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),ti("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as oi,jsxs as g5}from"react/jsx-runtime";var ff=e=>g5(c,{...e,children:[oi("path",{d:"M18 10h-4v-4"}),oi("path",{d:"M20 4l-6 6"}),oi("path",{d:"M6 14h4v4"}),oi("path",{d:"M10 14l-6 6"})]});import{jsx as Gy,jsxs as b5}from"react/jsx-runtime";var hf=e=>b5(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:"M9 12l6 0"})]});import{jsx as gf,jsxs as y5}from"react/jsx-runtime";var bf=e=>y5(c,{...e,children:[gf("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"}),gf("path",{d:"M11 4h2"}),gf("path",{d:"M12 17v.01"})]});import{jsx as ni,jsxs as v5}from"react/jsx-runtime";var yf=e=>v5(c,{...e,children:[ni("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"}),ni("path",{d:"M7 20h10"}),ni("path",{d:"M9 16v4"}),ni("path",{d:"M15 16v4"})]});import{jsx as Ga,jsxs as I5}from"react/jsx-runtime";var vf=e=>I5(c,{...e,children:[Ga("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"}),Ga("path",{d:"M3 13h18"}),Ga("path",{d:"M8 21h8"}),Ga("path",{d:"M10 17l-.5 4"}),Ga("path",{d:"M14 17l.5 4"})]});import{jsx as $y}from"react/jsx-runtime";var If=e=>$y(c,{...e,children:$y("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 Wy,jsxs as C5}from"react/jsx-runtime";var Cf=e=>C5(c,{...e,children:[Wy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Wy("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 x5}from"react/jsx-runtime";var yt=e=>x5(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 qy}from"react/jsx-runtime";var xf=e=>qy(c,{...e,children:qy("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 Ky,jsxs as P5}from"react/jsx-runtime";var Pf=e=>P5(c,{...e,children:[Ky("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),Ky("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as $a,jsxs as S5}from"react/jsx-runtime";var Sf=e=>S5(c,{...e,children:[$a("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),$a("path",{d:"M12 12l8 -4.5"}),$a("path",{d:"M12 12l0 9"}),$a("path",{d:"M12 12l-8 -4.5"}),$a("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as ri,jsxs as w5}from"react/jsx-runtime";var wf=e=>w5(c,{...e,children:[ri("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"}),ri("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ri("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ri("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Wa,jsxs as M5}from"react/jsx-runtime";var Mf=e=>M5(c,{...e,children:[Wa("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"}),Wa("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),Wa("path",{d:"M15 16h.01"}),Wa("path",{d:"M12.01 16h.01"}),Wa("path",{d:"M9.02 16h.01"})]});import{jsx as Xy,jsxs as k5}from"react/jsx-runtime";var vt=e=>k5(c,{...e,children:[Xy("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"}),Xy("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 kf,jsxs as T5}from"react/jsx-runtime";var Tf=e=>T5(c,{...e,children:[kf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),kf("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"}),kf("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 Nf,jsxs as N5}from"react/jsx-runtime";var Bf=e=>N5(c,{...e,children:[Nf("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"}),Nf("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),Nf("path",{d:"M16 9h2"})]});import{jsx as Rf,jsxs as B5}from"react/jsx-runtime";var Ef=e=>B5(c,{...e,children:[Rf("path",{d:"M14 6l7 7l-4 4"}),Rf("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"}),Rf("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as ai,jsxs as R5}from"react/jsx-runtime";var Lf=e=>R5(c,{...e,children:[ai("path",{d:"M9 15l6 -6"}),ai("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),ai("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),ai("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Yy}from"react/jsx-runtime";var Df=e=>Yy(c,{...e,children:Yy("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 Ff,jsxs as E5}from"react/jsx-runtime";var Af=e=>E5(c,{...e,children:[Ff("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"}),Ff("path",{d:"M15 7a2 2 0 0 1 2 2"}),Ff("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as Qy,jsxs as L5}from"react/jsx-runtime";var qa=e=>L5(c,{...e,children:[Qy("path",{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"}),Qy("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 Of,jsxs as D5}from"react/jsx-runtime";var Ka=e=>D5(c,{...e,children:[Of("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),Of("path",{d:"M9 15l-4.5 4.5"}),Of("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as Zy}from"react/jsx-runtime";var It=e=>Zy(c,{...e,children:Zy("path",{d:"M7 4v16l13 -8z"})});import{jsx as Jy,jsxs as F5}from"react/jsx-runtime";var _f=e=>F5(c,{...e,children:[Jy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Jy("path",{d:"M9 8v8l8 -4z"})]});import{jsx as jy,jsxs as A5}from"react/jsx-runtime";var an=e=>A5(c,{...e,children:[jy("path",{d:"M12 5l0 14"}),jy("path",{d:"M5 12l14 0"})]});import{jsx as Vf,jsxs as O5}from"react/jsx-runtime";var Mo=e=>O5(c,{...e,children:[Vf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Vf("path",{d:"M9 12h6"}),Vf("path",{d:"M12 9v6"})]});import{jsx as zf,jsxs as _5}from"react/jsx-runtime";var Hf=e=>_5(c,{...e,children:[zf("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"}),zf("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),zf("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 ev}from"react/jsx-runtime";var Uf=e=>ev(c,{...e,children:ev("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as Gf,jsxs as V5}from"react/jsx-runtime";var Xa=e=>V5(c,{...e,children:[Gf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Gf("path",{d:"M12 16v.01"}),Gf("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as tv,jsxs as z5}from"react/jsx-runtime";var $f=e=>z5(c,{...e,children:[tv("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"}),tv("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 ov,jsxs as H5}from"react/jsx-runtime";var Wf=e=>H5(c,{...e,children:[ov("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ov("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as nv}from"react/jsx-runtime";var qf=e=>nv(c,{isFilled:!0,...e,children:nv("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 rv}from"react/jsx-runtime";var Kf=e=>rv(c,{...e,children:rv("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 av,jsxs as U5}from"react/jsx-runtime";var Xf=e=>U5(c,{...e,children:[av("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"}),av("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as lv,jsxs as G5}from"react/jsx-runtime";var Yf=e=>G5(c,{...e,children:[lv("path",{d:"M15 14l4 -4l-4 -4"}),lv("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as cv}from"react/jsx-runtime";var Ya=e=>cv(c,{...e,children:cv("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as iv,jsxs as $5}from"react/jsx-runtime";var Qf=e=>$5(c,{...e,children:[iv("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),iv("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as sv,jsxs as W5}from"react/jsx-runtime";var Zf=e=>W5(c,{...e,children:[sv("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),sv("path",{d:"M20 4v5h-5"})]});import{jsx as pv,jsxs as q5}from"react/jsx-runtime";var Jf=e=>q5(c,{...e,children:[pv("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),pv("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as li,jsxs as K5}from"react/jsx-runtime";var jf=e=>K5(c,{...e,children:[li("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"}),li("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"}),li("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),li("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as dv}from"react/jsx-runtime";var Qa=e=>dv(c,{...e,children:dv("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as eh,jsxs as X5}from"react/jsx-runtime";var th=e=>X5(c,{...e,children:[eh("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),eh("path",{d:"M3 4.001v5h5"}),eh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as oh,jsxs as Y5}from"react/jsx-runtime";var nh=e=>Y5(c,{...e,children:[oh("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"}),oh("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),oh("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as mv,jsxs as Q5}from"react/jsx-runtime";var rh=e=>Q5(c,{...e,children:[mv("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"}),mv("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 uv,jsxs as Z5}from"react/jsx-runtime";var ah=e=>Z5(c,{...e,children:[uv("path",{d:"M12 3v9h9"}),uv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as lh,jsxs as J5}from"react/jsx-runtime";var ch=e=>J5(c,{...e,children:[lh("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),lh("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),lh("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 ih,jsxs as j5}from"react/jsx-runtime";var sh=e=>j5(c,{...e,children:[ih("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"}),ih("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ih("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as ko,jsxs as ek}from"react/jsx-runtime";var ph=e=>ek(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 ci,jsxs as tk}from"react/jsx-runtime";var Za=e=>tk(c,{...e,children:[ci("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),ci("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),ci("path",{d:"M8.6 8.6l10.4 10.4"}),ci("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as fv,jsxs as ok}from"react/jsx-runtime";var Ct=e=>ok(c,{...e,children:[fv("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),fv("path",{d:"M21 21l-6 -6"})]});import{jsx as hv,jsxs as nk}from"react/jsx-runtime";var dh=e=>nk(c,{...e,children:[hv("path",{d:"M10 14l11 -11"}),hv("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 ii,jsxs as rk}from"react/jsx-runtime";var mh=e=>rk(c,{...e,children:[ii("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"}),ii("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"}),ii("path",{d:"M7 8l0 .01"}),ii("path",{d:"M7 16l0 .01"})]});import{jsx as gv,jsxs as ak}from"react/jsx-runtime";var Ja=e=>ak(c,{...e,children:[gv("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"}),gv("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as eo,jsxs as lk}from"react/jsx-runtime";var uh=e=>lk(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 ck}from"react/jsx-runtime";var fh=e=>ck(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 bv,jsxs as ik}from"react/jsx-runtime";var hh=e=>ik(c,{...e,children:[bv("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"}),bv("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as gh,jsxs as sk}from"react/jsx-runtime";var bh=e=>sk(c,{...e,children:[gh("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"}),gh("path",{d:"M16 19h6"}),gh("path",{d:"M19 16v6"})]});import{jsx as yh,jsxs as pk}from"react/jsx-runtime";var vh=e=>pk(c,{...e,children:[yh("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"}),yh("path",{d:"M22 22l-5 -5"}),yh("path",{d:"M17 22l5 -5"})]});import{jsx as yv,jsxs as dk}from"react/jsx-runtime";var Ih=e=>dk(c,{...e,children:[yv("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"}),yv("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as si,jsxs as mk}from"react/jsx-runtime";var Ch=e=>mk(c,{...e,children:[si("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),si("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),si("path",{d:"M17 17h-11v-14h-2"}),si("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as To,jsxs as uk}from"react/jsx-runtime";var xh=e=>uk(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 pi,jsxs as fk}from"react/jsx-runtime";var Ph=e=>fk(c,{...e,children:[pi("path",{d:"M18 4l3 3l-3 3"}),pi("path",{d:"M18 20l3 -3l-3 -3"}),pi("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),pi("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 vv,jsxs as hk}from"react/jsx-runtime";var Sh=e=>hk(c,{...e,children:[vv("path",{d:"M4 5v14l12 -7z"}),vv("path",{d:"M20 5l0 14"})]});import{jsx as Iv,jsxs as gk}from"react/jsx-runtime";var wh=e=>gk(c,{...e,children:[Iv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Iv("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as Cv,jsxs as bk}from"react/jsx-runtime";var Mh=e=>bk(c,{...e,children:[Cv("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"}),Cv("path",{d:"M5 5 L19 19"})]});import{jsx as ln,jsxs as yk}from"react/jsx-runtime";var kh=e=>yk(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 xv,jsxs as vk}from"react/jsx-runtime";var Th=e=>vk(c,{...e,children:[xv("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"}),xv("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as Pv}from"react/jsx-runtime";var Nh=e=>Pv(c,{...e,children:Pv("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 el,jsxs as Ik}from"react/jsx-runtime";var Bh=e=>Ik(c,{...e,children:[el("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),el("path",{d:"M3.6 9h16.8"}),el("path",{d:"M3.6 15h16.8"}),el("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),el("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as Sv}from"react/jsx-runtime";var Rh=e=>Sv(c,{...e,children:Sv("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 Eh,jsxs as Ck}from"react/jsx-runtime";var Lh=e=>Ck(c,{...e,children:[Eh("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"}),Eh("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Eh("path",{d:"M16.5 7.5v.01"})]});import{jsx as tl,jsxs as xk}from"react/jsx-runtime";var Dh=e=>xk(c,{...e,children:[tl("path",{d:"M8 11v5"}),tl("path",{d:"M8 8v.01"}),tl("path",{d:"M12 16v-5"}),tl("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),tl("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 Fh,jsxs as Pk}from"react/jsx-runtime";var Ah=e=>Pk(c,{...e,children:[Fh("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Fh("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),Fh("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 Sk}from"react/jsx-runtime";var Oh=e=>Sk(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 ol,jsxs as wk}from"react/jsx-runtime";var _h=e=>wk(c,{...e,children:[ol("path",{d:"M21 15l-1 -6l-2.5 6"}),ol("path",{d:"M9 15l1 -6"}),ol("path",{d:"M3 9h1v6h.5l2.5 -6"}),ol("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"}),ol("path",{d:"M18 14h2.7"})]});import{jsx as wv,jsxs as Mk}from"react/jsx-runtime";var Vh=e=>Mk(c,{...e,children:[wv("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),wv("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as di,jsxs as kk}from"react/jsx-runtime";var nl=e=>kk(c,{...e,children:[di("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),di("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),di("path",{d:"M13.41 10.59l2.59 -2.59"}),di("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as Mv}from"react/jsx-runtime";var zh=e=>Mv(c,{...e,children:Mv("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as kv}from"react/jsx-runtime";var rl=e=>kv(c,{...e,children:kv("path",{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"})});import{jsx as Tv}from"react/jsx-runtime";var Hh=e=>Tv(c,{isFilled:!0,...e,children:Tv("path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z"})});import{jsx as Nv}from"react/jsx-runtime";var Uh=e=>Nv(c,{isFilled:!0,...e,children:Nv("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 Bv}from"react/jsx-runtime";var Gh=e=>Bv(c,{...e,children:Bv("path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z"})});import{jsx as Rv}from"react/jsx-runtime";var al=e=>Rv(c,{...e,children:Rv("path",{d:"M5 5m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"})});import{jsx as Ev,jsxs as Tk}from"react/jsx-runtime";var $h=e=>Tk(c,{...e,children:[Ev("path",{d:"M5 12l14 0"}),Ev("path",{d:"M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5"})]});import{jsx as Lv,jsxs as Nk}from"react/jsx-runtime";var Wh=e=>Nk(c,{...e,children:[Lv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Lv("path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"})]});import{jsx as Dv,jsxs as Bk}from"react/jsx-runtime";var qh=e=>Bk(c,{...e,children:[Dv("path",{d:"M7 10h14l-4 -4"}),Dv("path",{d:"M17 14h-14l4 4"})]});import{jsx as mi,jsxs as Rk}from"react/jsx-runtime";var Kh=e=>Rk(c,{...e,children:[mi("path",{d:"M16 3l4 4l-4 4"}),mi("path",{d:"M10 7l10 0"}),mi("path",{d:"M8 13l-4 4l4 4"}),mi("path",{d:"M4 17l9 0"})]});import{jsx as Xh,jsxs as Ek}from"react/jsx-runtime";var Yh=e=>Ek(c,{...e,children:[Xh("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"}),Xh("path",{d:"M3 10h18"}),Xh("path",{d:"M10 3v18"})]});import{jsx as Fv,jsxs as Lk}from"react/jsx-runtime";var ll=e=>Lk(c,{...e,children:[Fv("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Fv("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 Dk}from"react/jsx-runtime";var Qh=e=>Dk(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 Zh,jsxs as Fk}from"react/jsx-runtime";var Jh=e=>Fk(c,{...e,children:[Zh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zh("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Zh("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as jh,jsxs as Ak}from"react/jsx-runtime";var e0=e=>Ak(c,{...e,children:[jh("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),jh("path",{d:"M9 11h6"}),jh("path",{d:"M5 19h14"})]});import{jsx as Av,jsxs as Ok}from"react/jsx-runtime";var t0=e=>Ok(c,{...e,children:[Av("path",{d:"M6 4l12 0"}),Av("path",{d:"M12 4l0 16"})]});import{jsx as ui,jsxs as _k}from"react/jsx-runtime";var o0=e=>_k(c,{...e,children:[ui("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),ui("path",{d:"M12.5 5.5l4 4"}),ui("path",{d:"M4.5 13.5l4 4"}),ui("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as Ov}from"react/jsx-runtime";var n0=e=>Ov(c,{...e,children:Ov("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 _v}from"react/jsx-runtime";var r0=e=>_v(c,{...e,children:_v("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 Vv,jsxs as Vk}from"react/jsx-runtime";var a0=e=>Vk(c,{isFilled:!0,...e,children:[Vv("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"}),Vv("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 zv,jsxs as zk}from"react/jsx-runtime";var l0=e=>zk(c,{...e,children:[zv("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),zv("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 Hk}from"react/jsx-runtime";var c0=e=>Hk(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 cl,jsxs as Uk}from"react/jsx-runtime";var dt=e=>Uk(c,{...e,children:[cl("path",{d:"M4 7l16 0"}),cl("path",{d:"M10 11l0 6"}),cl("path",{d:"M14 11l0 6"}),cl("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),cl("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as Hv,jsxs as Gk}from"react/jsx-runtime";var i0=e=>Gk(c,{...e,children:[Hv("path",{d:"M3 17l6 -6l4 4l8 -8"}),Hv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as Uv,jsxs as $k}from"react/jsx-runtime";var s0=e=>$k(c,{...e,children:[Uv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),Uv("path",{d:"M5 19h14"})]});import{jsx as Gv,jsxs as Wk}from"react/jsx-runtime";var p0=e=>Wk(c,{...e,children:[Gv("path",{d:"M9 14l-4 -4l4 -4"}),Gv("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as d0,jsxs as qk}from"react/jsx-runtime";var m0=e=>qk(c,{...e,children:[d0("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"}),d0("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),d0("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as u0,jsxs as Kk}from"react/jsx-runtime";var sn=e=>Kk(c,{...e,children:[u0("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"}),u0("path",{d:"M9 15l3 -3l3 3"}),u0("path",{d:"M12 12l0 9"})]});import{jsx as $v,jsxs as Xk}from"react/jsx-runtime";var il=e=>Xk(c,{...e,children:[$v("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),$v("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as f0,jsxs as Yk}from"react/jsx-runtime";var h0=e=>Yk(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 -4h4"}),f0("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as fi,jsxs as Qk}from"react/jsx-runtime";var g0=e=>Qk(c,{...e,children:[fi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),fi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),fi("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),fi("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as b0,jsxs as Zk}from"react/jsx-runtime";var y0=e=>Zk(c,{...e,children:[b0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),b0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),b0("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 hi,jsxs as Jk}from"react/jsx-runtime";var v0=e=>Jk(c,{...e,children:[hi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),hi("path",{d:"M16 19h6"}),hi("path",{d:"M19 16v6"}),hi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as gi,jsxs as jk}from"react/jsx-runtime";var I0=e=>jk(c,{...e,children:[gi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),gi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),gi("path",{d:"M16 22l5 -5"}),gi("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as bi,jsxs as e3}from"react/jsx-runtime";var C0=e=>e3(c,{...e,children:[bi("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),bi("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),bi("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),bi("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as x0,jsxs as t3}from"react/jsx-runtime";var P0=e=>t3(c,{...e,children:[x0("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),x0("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),x0("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 sl,jsxs as o3}from"react/jsx-runtime";var S0=e=>o3(c,{...e,children:[sl("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),sl("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),sl("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),sl("path",{d:"M19 22v-6"}),sl("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as Wv,jsxs as n3}from"react/jsx-runtime";var w0=e=>n3(c,{...e,children:[Wv("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"}),Wv("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 M0,jsxs as r3}from"react/jsx-runtime";var k0=e=>r3(c,{...e,children:[M0("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),M0("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),M0("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 T0,jsxs as a3}from"react/jsx-runtime";var pl=e=>a3(c,{...e,children:[T0("path",{d:"M15 8a5 5 0 0 1 0 8"}),T0("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),T0("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 qv,jsxs as l3}from"react/jsx-runtime";var dl=e=>l3(c,{...e,children:[qv("path",{d:"M15 8a5 5 0 0 1 0 8"}),qv("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 Kv,jsxs as c3}from"react/jsx-runtime";var ml=e=>c3(c,{...e,children:[Kv("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"}),Kv("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as Xv}from"react/jsx-runtime";var N0=e=>Xv(c,{...e,children:Xv("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 Yv,jsxs as i3}from"react/jsx-runtime";var He=e=>i3(c,{...e,children:[Yv("path",{d:"M18 6l-12 12"}),Yv("path",{d:"M6 6l12 12"})]});import{jsx as Qv,jsxs as s3}from"react/jsx-runtime";var B0=e=>s3(c,{...e,children:[Qv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Qv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Zv}from"react/jsx-runtime";var R0=e=>Zv(c,{isFilled:!0,...e,children:Zv("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 Jv,jsxs as p3}from"react/jsx-runtime";var E0=e=>p3(c,{...e,children:[Jv("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"}),Jv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as yi,jsxs as d3}from"react/jsx-runtime";var L0=e=>d3(c,{...e,children:[yi("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),yi("path",{d:"M7 10l6 0"}),yi("path",{d:"M10 7l0 6"}),yi("path",{d:"M21 21l-6 -6"})]});import{jsx as D0,jsxs as m3}from"react/jsx-runtime";var F0=e=>m3(c,{...e,children:[D0("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),D0("path",{d:"M7 10l6 0"}),D0("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(vp,{...t});case"48SuccessFeatured":return g(Ip,{...t});case"AlertCircle":return g(Jo,{...t});case"AlertOctagon":return g(xp,{...t});case"AlertTriangle":return g(Sp,{...t});case"ArrowBarDown":return g(Tp,{...t});case"ArrowBarLeft":return g(Np,{...t});case"ArrowBarRight":return g(Bp,{...t});case"ArrowBarToDown":return g(Rp,{...t});case"ArrowBarToLeft":return g(Ep,{...t});case"ArrowBarToRight":return g(Lp,{...t});case"ArrowBarToUp":return g(Dp,{...t});case"ArrowBarUp":return g(Fp,{...t});case"Apps":return g(wp,{...t});case"Archive":return g(kp,{...t});case"ArrowDown":return g(Op,{...t});case"ArrowDownLeft":return g(_p,{...t});case"ArrowDownNarrow":return g(zp,{...t});case"ArrowDownRight":return g(Hp,{...t});case"ArrowLeft":return g(Gp,{...t});case"ArrowLeftNarrow":return g(Wp,{...t});case"ArrowRight":return g(Kp,{...t});case"ArrowRightNarrow":return g(Yp,{...t});case"ArrowUp":return g(Zp,{...t});case"ArrowUpLeft":return g(Jp,{...t});case"ArrowUpNarrow":return g(ed,{...t});case"ArrowUpRight":return g(td,{...t});case"Attachment":return g(od,{...t});case"BadgeHd":return g(pa,{...t});case"BarChart":return g(nd,{...t});case"BarChartSquare":return g(rd,{...t});case"Bell":return g(ad,{...t});case"Bold":return g(ld,{...t});case"BookOpen":return g(md,{...t});case"Bookmark":return g(cd,{...t});case"BookmarkCheck":return g(mp,{...t});case"BookmarkCheckFill":return g(up,{...t});case"BookmarkFill":return g(id,{...t});case"BookmarkMinus":return g(sd,{...t});case"BookmarkPlus":return g(hp,{...t});case"BookmarkX":return g(dd,{...t});case"BoxLines":return g(ud,{...t});case"BoxText":return g(hd,{...t});case"BracketsCheck":return g(bd,{...t});case"BracketsEllipses":return g(yd,{...t});case"BrickWall":return g(vd,{...t});case"Briefcase":return g(Id,{...t});case"Building":return g(gp,{...t});case"Calculator":return g(Cd,{...t});case"Calendar":return g(fa,{...t});case"Certificate":return g(xd,{...t});case"Check":return g(Yt,{...t});case"CheckCircle":return g(jo,{...t});case"CheckCircleBroken":return g(Pd,{...t});case"CheckFill":return g(Sd,{...t});case"CheckVerified":return g(wd,{...t});case"CheckVerifiedFill":return g(Md,{...t});case"ChevronDown":return g(en,{...t});case"ChevronDownDouble":return g(kd,{...t});case"ChevronDownLeft":return g(Td,{...t});case"ChevronDownLeftDouble":return g(Nd,{...t});case"ChevronDownRight":return g(Bd,{...t});case"ChevronDownRightDouble":return g(Rd,{...t});case"ChevronLeft":return g(Qt,{...t});case"ChevronLeftDouble":return g(Ed,{...t});case"ChevronRight":return g(ct,{...t});case"ChevronRightDouble":return g(ha,{...t});case"ChevronSelectorVertical":return g(Ld,{...t});case"ChevronUp":return g(Zt,{...t});case"ChevronUpDouble":return g(Dd,{...t});case"ChevronUpLeft":return g(Fd,{...t});case"ChevronUpLeftDouble":return g(Ad,{...t});case"ChevronUpRight":return g(Od,{...t});case"ChevronUpRightDouble":return g(_d,{...t});case"Click":return g(Vd,{...t});case"Clock":return g(ga,{...t});case"ClockFastForward":return g(zd,{...t});case"ClockPlay":return g(Ud,{...t});case"ClockRewind":return g(Gd,{...t});case"Clone":return g($d,{...t});case"ClosedCaption":return g(ya,{...t});case"Code":return g(Kd,{...t});case"CodeBrowser":return g(Xd,{...t});case"CodeCircle":return g(Qd,{...t});case"Colors":return g(Jd,{...t});case"ColumnEdit":return g(bp,{...t});case"Copy":return g(jd,{...t});case"Copy2":return g(em,{...t});case"CopyCheck":return g(om,{...t});case"Files":return g(Hm,{...t});case"CreditCard":return g(nm,{...t});case"Cube":return g(rm,{...t});case"CubeOutline":return g(am,{...t});case"CursorBox":return g(va,{...t});case"Dataflow":return g(lm,{...t});case"Dataflow2":return g(cm,{...t});case"Dataflow3":return g(im,{...t});case"DistributeHorizontal":return g(pm,{...t});case"Dollar":return g(dm,{...t});case"DollarCircle":return g(um,{...t});case"Dot":return g(fm,{...t});case"DotFill":return g(hm,{...t});case"DotsGrid":return g(gm,{...t});case"DotsHorizontal":return g(Ca,{...t});case"DotsVertical":return g(Co,{...t});case"Download":return g(Im,{...t});case"Edit":return g(Cm,{...t});case"Editable":return g(Pm,{...t});case"Expand":return g(Sm,{...t});case"ExternalLink":return g(Mm,{...t});case"ExternalLink2":return g(Tm,{...t});case"Eye":return g(Nm,{...t});case"EyeHidden":return g(Rm,{...t});case"EyeHidden2":return g(Em,{...t});case"FaceAngry":return g(Lm,{...t});case"FaceLaugh":return g(Dm,{...t});case"FaceSmile":return g(Fm,{...t});case"File":return g(on,{...t});case"FileCheck":return g(Om,{...t});case"FileCsv":return g(Sa,{...t});case"FileDownload":return g(_m,{...t});case"FileJson":return g(wa,{...t});case"FileList":return g(Vm,{...t});case"FileMusic":return g(pt,{...t});case"FilePdf":return g(nn,{...t});case"FileSpreadsheet":return g(ka,{...t});case"FileText":return g(jt,{...t});case"FileUpload":return g(Um,{...t});case"FileXls":return g(Na,{...t});case"FileXlsx":return g(Ba,{...t});case"FileZip":return g(Tt,{...t});case"Filter":return g(Gm,{...t});case"Filter2":return g(Ra,{...t});case"Flag":return g(Wm,{...t});case"Flag2":return g(qm,{...t});case"FlagFill":return g(Km,{...t});case"Focus":return g(Xm,{...t});case"Folder":return g(Ym,{...t});case"FolderExport":return g(Qm,{...t});case"FolderImport":return g(Zm,{...t});case"GraduationCap":return g(Jm,{...t});case"GripVertical":return g(jm,{...t});case"Hand":return g(eu,{...t});case"HandShield":return g(tu,{...t});case"Hash":return g(ou,{...t});case"HeadsetMic":return g(nu,{...t});case"Heart":return g(ru,{...t});case"HeartFill":return g(au,{...t});case"House":return g(cu,{...t});case"HouseLine":return g(La,{...t});case"Image":return g(We,{...t});case"Image2":return g(iu,{...t});case"ImageCheck":return g(su,{...t});case"ImageOff":return g(pu,{...t});case"Import":return g(du,{...t});case"Inbox":return g(mu,{...t});case"InfoCircle":return g(fu,{...t});case"InfoHexagon":return g(gu,{...t});case"Italic":return g(yu,{...t});case"LayersMultiple":return g(Iu,{...t});case"LayersSingle":return g(Cu,{...t});case"Layout":return g(xu,{...t});case"Layout2":return g(Su,{...t});case"LayoutColumns":return g(wu,{...t});case"LayoutCustom":return g(Mu,{...t});case"LayoutStuffed":return g(Tu,{...t});case"LayoutTile":return g(Nu,{...t});case"LifeBuoy":return g(Bu,{...t});case"Lightbulb":return g(Eu,{...t});case"Lightning":return g(Lu,{...t});case"LightningFast":return g(Du,{...t});case"LineChartBar":return g(Au,{...t});case"LineChartBreakoutSquare":return g(Ou,{...t});case"LineChart":return g(Fu,{...t});case"LineChartUp":return g(Vu,{...t});case"Lines":return g(zu,{...t});case"LinesCheck":return g(Hu,{...t});case"LinesPlay":return g(Uu,{...t});case"Link":return g($u,{...t});case"Link2":return g(Wu,{...t});case"LinkOff":return g(qu,{...t});case"ListBullet":return g(Ku,{...t});case"ListOrder":return g(Xu,{...t});case"Lock":return g(Qu,{...t});case"LockFill":return g(Zu,{...t});case"LogIn":return g(ju,{...t});case"LogOut":return g(tf,{...t});case"LogOut2":return g(nf,{...t});case"MagicWand":return g(rf,{...t});case"Mail":return g(af,{...t});case"MailOpen":return g(lf,{...t});case"MapPin":return g(cf,{...t});case"Maximize":return g(Va,{...t});case"Maximize2":return g(sf,{...t});case"MessageCircle":return g(pf,{...t});case"MessageSquare":return g(rn,{...t});case"MessageSquare2":return g(mf,{...t});case"MessageXSquare":return g(uf,{...t});case"Microphone":return g(Ha,{...t});case"Minimize":return g(Ua,{...t});case"Minimize2":return g(ff,{...t});case"MinusCircle":return g(hf,{...t});case"Mobile":return g(bf,{...t});case"Monitor":return g(yf,{...t});case"Monitor2":return g(vf,{...t});case"Moon":return g(If,{...t});case"MoonCircle":return g(Cf,{...t});case"Movie":return g(yt,{...t});case"NavigationPointer":return g(xf,{...t});case"NotificationBox":return g(Pf,{...t});case"Package":return g(Sf,{...t});case"Palette":return g(wf,{...t});case"PasscodeLock":return g(Mf,{...t});case"Pause":return g(vt,{...t});case"PauseCircle":return g(Tf,{...t});case"PCSetup":return g(Bf,{...t});case"Pen":return g(Ef,{...t});case"PercentageCircle":return g(Lf,{...t});case"Perspective":return g(Df,{...t});case"PhoneCall":return g(Af,{...t});case"PictureInPicture":return g(qa,{...t});case"Pin":return g(Ka,{...t});case"Play":return g(It,{...t});case"PlayCircle":return g(_f,{...t});case"Plus":return g(an,{...t});case"PlusCircle":return g(Mo,{...t});case"Printer":return g(Hf,{...t});case"Pulse":return g(Uf,{...t});case"QuestionCircle":return g(Xa,{...t});case"Quote":return g($f,{...t});case"RadioButton":return g(Wf,{...t});case"RadioButtonFill":return g(qf,{...t});case"Receipt":return g(Kf,{...t});case"ReceiptCheck":return g(Xf,{...t});case"Redo":return g(Yf,{...t});case"Refresh":return g(Ya,{...t});case"Refresh2":return g(Qf,{...t});case"Refresh3":return g(Zf,{...t});case"Repeat":return g(Jf,{...t});case"Replace":return g(jf,{...t});case"Replay":return g(Qa,{...t});case"Restore":return g(th,{...t});case"Rocket":return g(nh,{...t});case"RoundChart":return g(rh,{...t});case"RoundChart2":return g(ah,{...t});case"Route":return g(ch,{...t});case"Save":return g(sh,{...t});case"ScanDots":return g(ph,{...t});case"Scissors":return g(Za,{...t});case"Search":return g(Ct,{...t});case"Send":return g(dh,{...t});case"Server":return g(mh,{...t});case"Settings":return g(Ja,{...t});case"Settings2":return g(uh,{...t});case"Share":return g(fh,{...t});case"ShieldLightning":return g(hh,{...t});case"ShieldPlus":return g(bh,{...t});case"ShieldRemove":return g(vh,{...t});case"ShoppingBag":return g(Ih,{...t});case"ShoppingCart":return g(Ch,{...t});case"Shrink":return g(xh,{...t});case"Shuffle":return g(Ph,{...t});case"SkipForward":return g(Sh,{...t});case"SlashCircle":return g(wh,{...t});case"SlashOctagon":return g(Mh,{...t});case"SocialAndroid":return g(kh,{...t});case"SocialApple":return g(Th,{...t});case"SocialGithub":return g(Nh,{...t});case"SocialGlobe":return g(Bh,{...t});case"SocialGoogle":return g(Rh,{...t});case"SocialInstagram":return g(Lh,{...t});case"SocialLinkedin":return g(Dh,{...t});case"SocialMastercard":return g(Ah,{...t});case"SocialReact":return g(Oh,{...t});case"SocialVisa":return g(_h,{...t});case"SocialX":return g(Vh,{...t});case"Speedometer":return g(nl,{...t});case"Stairs":return g(zh,{...t});case"Star":return g(rl,{...t});case"StarFill":return g(Hh,{...t});case"StarHalf":return g(Uh,{...t});case"Stars":return g(Gh,{...t});case"Stop":return g(al,{...t});case"Strikethrough":return g($h,{...t});case"Sun":return g(Wh,{...t});case"Swap":return g(qh,{...t});case"SwitchHorizontal":return g(Kh,{...t});case"Table":return g(Yh,{...t});case"Tag":return g(ll,{...t});case"Target":return g(Qh,{...t});case"Target2":return g(Jh,{...t});case"TextFormat":return g(e0,{...t});case"TextFormat2":return g(t0,{...t});case"TextHighlight":return g(o0,{...t});case"ThumbsDown":return g(n0,{...t});case"ThumbsUp":return g(r0,{...t});case"ThumbsUpFill":return g(a0,{...t});case"Toggle":return g(l0,{...t});case"Translate":return g(c0,{...t});case"Trash":return g(dt,{...t});case"Trending":return g(i0,{...t});case"Underline":return g(s0,{...t});case"Undo":return g(p0,{...t});case"Unlock":return g(m0,{...t});case"UploadCloud":return g(sn,{...t});case"User":return g(il,{...t});case"UserCheck":return g(h0,{...t});case"UserDollar":return g(g0,{...t});case"UserEdit":return g(y0,{...t});case"UserPlus":return g(v0,{...t});case"UserRight":return g(I0,{...t});case"UserSquare":return g(P0,{...t});case"Users":return g(C0,{...t});case"UsersUp":return g(S0,{...t});case"UserVoice":return g(yp,{...t});case"Video":return g(w0,{...t});case"VideoChat":return g(k0,{...t});case"Volume":return g(pl,{...t});case"VolumeDown":return g(dl,{...t});case"VolumeMute":return g(ml,{...t});case"Wrench":return g(N0,{...t});case"X":return g(He,{...t});case"XCircle":return g(B0,{...t});case"XCircleFill":return g(R0,{...t});case"XSquare":return g(E0,{...t});case"ZoomIn":return g(L0,{...t});case"ZoomOut":return g(F0,{...t});default:return null}}var jv=on,e2={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:wa,csv:Sa,xls:Na,xlsx:Ba,ods:ka,zip:Tt,rar:Tt,"7z":Tt,tar:Tt,gz:Tt,tgz:Tt};var A0=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&e2[t]||jv};import{cn as O0,ColorHelpers as u3}from"@cleen/ui-core";import{forwardRef as f3}from"react";import{Fragment as g3,jsx as ul,jsxs as b3}from"react/jsx-runtime";var h3=f3(function({iconName:t,iconSrc:o,icon:n,iconSize:l=20,header:r,color:a,children:i,classNames:p,styles:s,...d},f){let m=u3.getComputedColor(a);return ul(Pe,{ref:f,classNames:{...p,header:{...p?.header,title:O0("cleen-flex cleen-gap-4",p?.header?.title)}},header:{...r,title:b3(g3,{children:[ul("div",{className:O0("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:la(m,.85),color:m,borderColor:"transparent"},...s?.iconHolder},children:n||(t?ul(Ee,{name:t,className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):o?ul("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&&ul("div",{className:O0("cleen-flex-1",p?.content),style:s?.content,children:i})})});import{cn as vr}from"@cleen/ui-core";import{forwardRef as y3,useMemo as v3}from"react";import{jsx as fl}from"react/jsx-runtime";var I3=y3(function({media:t,header:o,color:n,children:l,classNames:r,styles:a,...i},p){let s=v3(()=>{switch(t?.type){case"image":return fl("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 fl("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 fl("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 fl(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:fl("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 hl}from"@cleen/ui-core";import{jsx as vi,jsxs as C3}from"react/jsx-runtime";var ie=({className:e,classNames:t,style:o,styles:n,infoMessage:l,errorMessage:r,subtitle:a,...i})=>vi("div",{className:hl("cleen",e),style:o,children:C3("div",{className:hl(t?.container),style:n?.container,...i,children:[l&&vi("div",{className:hl("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:n?.infoMessage,role:"note",children:l}),r&&vi("div",{className:hl("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:n?.errorMessage,role:"alert",children:r}),a&&vi("div",{className:hl("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:n?.subtitle,children:a})]})});import{cn as gl}from"@cleen/ui-core";import{jsx as bl,jsxs as x3}from"react/jsx-runtime";var de=({required:e=!1,tooltip:t,children:o,className:n,classNames:l,style:r,styles:a,...i})=>bl("div",{className:gl("cleen",n),style:r,children:x3("label",{...i,className:gl("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:[bl("div",{className:gl({"cleen-flex-1":!e&&!t},l?.label),style:a?.label,children:o}),e&&bl("span",{className:gl("cleen-text-primary",l?.required),style:a?.required,children:"*"}),t&&bl(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:bl(Xa,{className:gl("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 P3,useEffect as S3,useId as w3,useMemo as M3,useState as t2}from"react";import{jsx as No,jsxs as Ii}from"react/jsx-runtime";var Ie=P3(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:P,maxLengthLabelThreshold:I=.5,uploadLabel:x="Choose a file",leftIcon:S,rightIcon:L,topRightIcon:T,inputOverlay:N,infoLabels:F,maxLengthLabel:M,minLengthLabel:w,onChange:k,...D},B){let A=i!==void 0||p!==void 0,[_,R]=t2(a??""),[E,O]=t2(null),z=A?i:_,V=A?p:E;S3(()=>{A||R(i??a??"")},[i,a,A]);let W=$=>{let Y=$.target.value;if(n==="file"&&$.target.files){A||O($.target.files),k?.($);return}(!C||Y.length<=C)&&(A||R(Y),k?.($))},J=M3(()=>P&&w&&(z?.toString()?.length??0)<P?w(P-(z?.toString()?.length??0)):!C||!M||(z?.toString()?.length??0)/C<I?F?.subtitle:M?.(C-(z?.toString()?.length??0)),[z,C,I,F?.subtitle]),H=w3(),U=!!(F?.errorMessage||F?.infoMessage||J),K=U?`${H}-info`:void 0;return No("div",{className:to("cleen",f),style:b,children:Ii("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)&&Ii("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]}),Ii("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},F?.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:[S&&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:S}),Ii("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:z,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",S?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":S,"cleen-rounded-r-none":L,"cleen-hidden":n==="file"},s?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:y?.input,onChange:W,required:d,"aria-invalid":F?.errorMessage?!0:void 0,"aria-describedby":K,ref:B,...D}),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",S?"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",V&&V.length>0&&"cleen-text-foreground"),children:V&&V.length>0?Array.from(V).map($=>$.name).join(", "):x})]}),L&&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:L})]}),U&&No(ie,{id:K,...F,subtitle:J})]})})});import{cn as yl,useOutsideClick as k3}from"@cleen/ui-core";import{forwardRef as T3,useEffect as o2,useImperativeHandle as N3,useMemo as B3,useRef as R3,useState as Ci}from"react";import{jsx as vl,jsxs as E3}from"react/jsx-runtime";var _0=T3(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=vl(ce,{}),selectAllOnEdit:C=!1,renderText:P,className:I,classNames:x,style:S,styles:L,...T},N){let F=t!==void 0,[M,w]=Ci(o??""),k=F?t??"":M,[D,B]=Ci(!1),A=u??D,_=B3(()=>typeof P=="function"?P(k):P||k||i||a,[k,P,a,i]),[R,E]=Ci(n),O=l!==void 0,z=O?l:R,[V,W]=Ci(k),J=R3(null);N3(N,()=>({...J.current,save:U,cancel:H})),o2(()=>{F||w(o??"")},[o,F]),o2(()=>{z||W(k)},[k,z]);let H=async()=>{O||E(!1),r?.(!1),W(k),await d?.()},U=async()=>{if(!A){if(k===V){await d?.(),O||E(!1),r?.(!1);return}B(!0),F||w(V);try{await s?.(V),O||E(!1),r?.(!1)}finally{B(!1)}}},K=async $=>{$.key==="Enter"&&($.preventDefault(),await U()),$.key==="Escape"&&($.stopPropagation(),$.preventDefault(),await H()),m?.onKeyDown?.($)};return k3({refs:[J],enabled:b&&z,handler:async()=>{y?await U():await H()}}),vl("div",{className:yl("cleen",I),style:S,ref:J,...T,children:z?E3("div",{className:yl("cleen-relative cleen-h-full",x?.container),style:L?.container,children:[vl(Ie,{value:V,onChange:$=>{W($.target.value),f?.($.target.value)},autoFocus:!0,placeholder:a,className:x?.input?.className,classNames:{...x?.input?.classNames,inputContainer:yl("cleen-border-primary hover:cleen-border-primary/60",x?.input?.classNames?.inputContainer)},...L?.input,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:A||m?.disabled,onKeyDown:K}),A&&vl("div",{className:yl("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:L?.loaderContainer,children:v})]}):vl("div",{onClick:()=>{p&&(O||E(!0),r?.(!0))},className:yl("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:L?.preview,children:_})})});import{cn as Ir}from"@cleen/ui-core";import{forwardRef as L3,useEffect as n2,useId as D3,useMemo as F3,useRef as A3,useState as O3}from"react";import{jsx as pn,jsxs as V0}from"react/jsx-runtime";var Il=L3(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:P,maxLengthLabelThreshold:I=.5,maxLengthLabel:x,minLengthLabel:S,className:L,classNames:T,style:N,styles:F,...M},w){let k=n!==void 0,[D,B]=O3(typeof l=="string"?l:""),A=A3(null),_=w??A,R=k?n:D;n2(()=>{k||B(n??(typeof l=="string"?l:""))},[n,l,k]);let E=$=>{$.style.height="auto";let Y=Math.min($.scrollHeight,u);$.style.height=`${Y}px`},O=$=>{E($.target)};n2(()=>{!v||!A.current||E(A.current)},[v,R,u]);let z=$=>{$.preventDefault()},V=$=>{$.preventDefault();let Y=$.dataTransfer?.getData("text/plain");k?b?.(`${n??""}${Y}`):(B(ae=>`${ae}${Y}`),b?.(`${D}${Y}`))},W=$=>{let Y=$.target.value;(!C||Y.length<=C)&&(k||B(Y),b?.(Y),v&&O($))},J=F3(()=>P&&S&&(R?.length??0)<P?S(P-(R?.length??0)):!C||!x||(R?.toString()?.length??0)/C<I?s?.subtitle:x?.(C-(R?.toString()?.length??0)),[R,C,I,s?.subtitle]),H=D3(),U=!!(s?.errorMessage||s?.infoMessage||J),K=U?`${H}-info`:void 0;return pn("div",{className:Ir("cleen",L),style:N,children:V0("div",{className:Ir("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",T?.container),style:F?.container,children:[(r||f)&&V0("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,...F?.label,children:r}),f&&pn("div",{className:"cleen-ml-auto",children:f})]}),V0("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:F?.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:_,disabled:i,value:R,minLength:P,maxLength:C,"aria-invalid":s?.errorMessage?!0:void 0,"aria-describedby":K,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`},...F?.textarea},onFocus:$=>$.currentTarget.setSelectionRange($.currentTarget.value.length,$.currentTarget.value.length),onDragOver:z,onDrop:V,...M,onChange:W})]}),U&&pn(ie,{id:K,...s,subtitle:J})]})})});import{cn as Cl,useOutsideClick as _3}from"@cleen/ui-core";import{forwardRef as V3,useEffect as r2,useImperativeHandle as z3,useMemo as H3,useRef as U3,useState as xi}from"react";import{jsx as xl,jsxs as G3}from"react/jsx-runtime";var z0=V3(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=xl(ce,{size:"md"}),selectAllOnEdit:C=!1,renderText:P,className:I,classNames:x,style:S,styles:L,...T},N){let F=t!==void 0,[M,w]=xi(o??""),k=F?t??"":M,[D,B]=xi(!1),A=u??D,_=H3(()=>typeof P=="function"?P(k):P||k||i||a,[k,P,a,i]),[R,E]=xi(n),O=l!==void 0,z=O?l:R,[V,W]=xi(k),J=U3(null);z3(N,()=>({...J.current,save:U,cancel:H})),r2(()=>{F||w(o??"")},[o,F]),r2(()=>{z||W(k)},[k,z]);let H=async()=>{O||E(!1),r?.(!1),W(k),await d?.()},U=async()=>{if(!A){if(k===V){await d?.(),O||E(!1),r?.(!1);return}B(!0),F||w(V);try{await s?.(V),O||E(!1),r?.(!1)}finally{B(!1)}}},K=async $=>{$.key==="Escape"&&($.preventDefault(),$.stopPropagation(),await H()),$.key==="Enter"&&($.metaKey||$.ctrlKey)&&($.preventDefault(),await U()),m?.onKeyDown?.($)};return _3({refs:[J],enabled:b&&z,handler:async()=>{y?await U():await H()}}),xl("div",{className:Cl("cleen",I),style:S,ref:J,...T,children:z?G3("div",{className:Cl("cleen-relative cleen-h-full",x?.container),style:L?.container,children:[xl(Il,{value:V,onChange:$=>{W($),f?.($)},autoFocus:!0,placeholder:a,className:x?.textArea?.className,classNames:{...x?.textArea?.classNames,textareaContainer:Cl("cleen-border-primary hover:cleen-border-primary/60",x?.textArea?.classNames?.textareaContainer)},...L?.textArea,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:A||m?.disabled,onKeyDown:K}),A&&xl("div",{className:Cl("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:L?.loaderContainer,children:v})]}):xl("div",{onClick:()=>{p&&(O||E(!0),r?.(!0))},className:Cl("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:L?.preview,children:_})})});import"@cleen/ui-core";import{forwardRef as $3}from"react";import{Fragment as q3,jsx as H0,jsxs as K3}from"react/jsx-runtime";var W3=$3(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 H0(Pe,{ref:m,color:o,header:{...t,title:H0(_0,{value:b??"",onSave:async y=>{await r?.("title",y)},...s?.titleTextInput,...d?.titleTextInput,...i})},classNames:s,styles:d,...f,children:(!a||n)&&K3(q3,{children:[H0(z0,{value:l??"",onSave:async y=>{await r?.("description",y)},...p,textAreaProps:p?.textAreaProps,...s?.descriptionTextInput,...d?.descriptionTextInput}),n]})})});import{cn as Pl}from"@cleen/ui-core";import{forwardRef as X3}from"react";import{jsx as Pi}from"react/jsx-runtime";var Y3=X3(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 Pi("div",{className:Pl("cleen",r),style:i,ref:l,children:Pi("button",{type:t,ref:u,disabled:f||s,onClick:n,className:Pl("cleen-size-full",a?.container),style:p?.container,...y,children:Pi(Pe,{p:0,className:Pl("cleen-size-full cleen-group",a?.card?.className),classNames:{...a?.card?.classNames,container:Pl("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",xb[m],a?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||f}),childrenContainer:Pl("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",a?.card?.classNames?.childrenContainer)},"aria-disabled":s||f,...p?.card,children:f?Pi(ce,{size:"lg",...d,color:d?.color||Pb[m],...a?.loader,...p?.loader}):o||b})})})});import{cn as Sl,ColorHelpers as a2,formatAudioTime as l2}from"@cleen/ui-core";import{useWavesurfer as Q3}from"@wavesurfer/react";import{forwardRef as Z3,useCallback as J3,useRef as j3}from"react";import{jsx as wl,jsxs as c2}from"react/jsx-runtime";var eT={waveColor:a2.getComputedColor("var(--cleen-neutral-200)"),progressColor:a2.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},tT=Z3(function({url:t,options:o,className:n,classNames:l,style:r,styles:a,...i},p){let s=j3(null),{wavesurfer:d,isPlaying:f,isReady:m,currentTime:b}=Q3({...eT,...o,container:s,url:t}),y=m?d?.getDuration()??0:0,u=J3(()=>{d?.playPause()},[d]);return wl("div",{ref:p,className:Sl("cleen",n),style:r,...i,children:c2("div",{className:Sl("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:[wl(te,{type:"button",onClick:u,disabled:!m,"aria-label":f?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:Sl("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...a?.playButton,children:f?wl(vt,{className:"cleen-fill-current"}):wl(It,{className:"cleen-fill-current"})}),wl("div",{ref:s,className:Sl("cleen-flex-1 cleen-min-w-0",l?.waveform),style:a?.waveform}),c2("span",{className:Sl("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",l?.timestamp),style:a?.timestamp,children:[l2(b),"\xA0/\xA0",l2(y)]})]})})});import{ColorHelpers as oT}from"@cleen/ui-core";var i2=oT.getComputedColor("var(--cleen-primary)"),s2="rgba(var(--cleen-primary), 0.15)",p2={waveColor:i2,progressColor:i2,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var d2={startRecording:"Click to start recording"};import{cn as rt,formatAudioTime as Ri,trimBlob as rT}from"@cleen/ui-core";import{useWavesurfer as aT}from"@wavesurfer/react";import{forwardRef as lT,useCallback as xr,useEffect as K0,useMemo as cT,useRef as f2,useState as Ei}from"react";function U0(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 Si=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 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}},W0=class extends Si{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()}},G0=100,nT=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],wi=class e extends $0{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 W0,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)*G0),u=0;for(let C=0;C<a;C++){let P=Math.abs(i[C]);P>u&&(u=P)}this.dataWindow||(this.dataWindow=new Float32Array(y));let v=new Float32Array(y);if(this.dataWindow&&this.dataWindow.length>0){let C=y-1,P=this.dataWindow.slice(-C);v.set(P,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*G0):((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)/G0;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 U0(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 U0(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||nT.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 U0(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 Ti=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)))}},q0=class extends Ti{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 m2(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(m2(r,a));else n==="style"?Object.assign(o.style,l):n==="textContent"?o.textContent=l:o.setAttribute(n,l.toString());return o}function Ml(e,t,o){let n=m2(e,t||{});return o?.appendChild(n),n}function u2(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 Mi(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=u2(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 ki(e,t={}){let{threshold:o=3,mouseButton:n=0,touchDelay:l=100}=t,r=u2(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,P=T=>{if(T.defaultPrevented||a.size>1||i&&Date.now()-y<l)return;let N=T.clientX,F=T.clientY,M=N-f,w=F-m;(b||Math.abs(M)>o||Math.abs(w)>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:F-C,deltaX:M,deltaY:w}),f=N,m=F)},I=T=>{if(a.delete(T.pointerId),b){let N=T.clientX,F=T.clientY;r.set({type:"end",x:N-v,y:F-C})}p()},x=T=>{a.delete(T.pointerId),T.relatedTarget&&T.relatedTarget!==document.documentElement||I(T)},S=T=>{b&&(T.stopPropagation(),T.preventDefault())},L=T=>{T.defaultPrevented||a.size>1||b&&T.preventDefault()};document.addEventListener("pointermove",P),document.addEventListener("pointerup",I),document.addEventListener("pointerout",x),document.addEventListener("pointercancel",x),document.addEventListener("touchmove",L,{passive:!1}),document.addEventListener("click",S,{capture:!0}),p=()=>{document.removeEventListener("pointermove",P),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",x),document.removeEventListener("pointercancel",x),document.removeEventListener("touchmove",L),setTimeout((()=>{document.removeEventListener("click",S,{capture:!0})}),10)}};return e.addEventListener("pointerdown",s),{signal:r,cleanup:()=>{p(),e.removeEventListener("pointerdown",s),a.clear(),dn(r)}}}var Ni=class extends Ti{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=Ml("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=Ml("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=ki(n,{threshold:1}),a=ki(l,{threshold:1}),i=Mi((()=>{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=Mi((()=>{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=Ml("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=ki(t),u=Mi((()=>{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=Ml("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()}},Bi=class e extends q0{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 Ml("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 Ni(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=ki(l,{threshold:o}),s=Mi((()=>{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 Ni(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 sT,jsx as Ue,jsxs as kl}from"react/jsx-runtime";var iT=lT(function({onFinalize:t,recordOptions:o,options:n,labels:l=d2,className:r,classNames:a,style:i,styles:p,...s},d){let f=f2(null),[m,b]=Ei("idle"),[y,u]=Ei(null),[v,C]=Ei(null),[P,I]=Ei(!1),x=f2("idle");x.current=m;let S=cT(()=>[wi.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...o}),Bi.create()],[]),[L,T]=S,{wavesurfer:N,isPlaying:F,isReady:M,currentTime:w}=aT({...p2,...n,container:f,plugins:S}),k=M?N?.getDuration()??0:0;K0(()=>{let z=[L.on("record-start",()=>b("recording")),L.on("record-end",V=>{b("recorded"),u(V)}),T.on("region-clicked",(V,W)=>{W.stopPropagation(),V.play(!0)})];return()=>z.forEach(V=>V?.())},[T,L]),K0(()=>N?N.on("ready",()=>{if(x.current!=="recorded")return;let V=N.getDuration();T.clearRegions();let W=T.addRegion({start:0,end:V,color:n?.regionColor??s2,drag:!1,resize:!0});C({start:W.start,end:W.end})}):void 0,[N,T,n]),K0(()=>T.on("region-updated",V=>{C({start:V.start,end:V.end})}),[T]);let D=xr(async()=>{await L.startRecording()},[L]),B=xr(()=>{L.stopRecording()},[L]),A=xr(()=>{N?.playPause()},[N]),_=xr(async()=>{if(!(!y||!v||!N)){I(!0);try{let z=await rT(y,v.start,v.end),V=URL.createObjectURL(z);u(z),N.load(V)}finally{I(!1)}}},[y,v,N]),R=xr(()=>{T.clearRegions(),N?.empty(),u(null),C(null),b("idle")},[N,T]),E=xr(()=>{if(y){let z=URL.createObjectURL(y);t?.(y,z)}},[t,y]),O=!v||v.start<=0&&v.end>=k;return Ue("div",{ref:d,className:rt("cleen wavesurfer-handle",r),style:i,...s,children:kl("div",{className:rt("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",a?.container),style:p?.container,children:[m==="idle"&&kl(sT,{children:[Ue("button",{type:"button",onClick:D,"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(Ha,{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:B,"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(al,{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"&&kl("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:A,disabled:!M,"aria-label":F?"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:F?Ue(vt,{className:"cleen-fill-current"}):Ue(It,{className:"cleen-fill-current"})}),kl("span",{className:rt("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",a?.timestamp),style:p?.timestamp,children:[Ri(w),"\xA0/\xA0",Ri(k)]}),Ue("span",{className:"cleen-flex-1"}),!O&&v&&kl("span",{className:rt("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",a?.trimmedTimestamp),style:p?.trimmedTimestamp,children:[Ri(v.start),"\u2013",Ri(v.end)]}),Ue(te,{type:"button",onClick:R,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:_,disabled:O||P||!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(Za,{})}),Ue(te,{type:"button",onClick:E,"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 Li}from"@cleen/ui-core";import{forwardRef as pT,useMemo as dT}from"react";var h2={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 Tl}from"react/jsx-runtime";var Di=pT(function({title:t,name:o,src:n,alt:l,size:r="md",initialsLength:a=2,isSelected:i=!1,showBorder:p=!1,fallback:s=Tl(il,{}),className:d,classNames:f,style:m,styles:b,onClick:y,...u},v){let C=dT(()=>(a===2?o?.split(" ").map(P=>P.charAt(0).toUpperCase()).join("").slice(0,a):o?.charAt(0).toUpperCase())||s,[o,a,s]);return Tl("div",{className:Li("cleen",d),style:m,ref:v,...u,children:Tl("div",{onClick:y,className:Li("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof r=="string"&&h2[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?Tl("img",{src:n,alt:l||o,className:Li("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",f?.image),style:b?.image}):Tl("span",{className:Li("cleen-select-none cleen-text-neutral-700",f?.fallback),style:b?.fallback,children:C})})})});import{cn as g2}from"@cleen/ui-core";import{forwardRef as mT}from"react";import{jsx as X0,jsxs as fT}from"react/jsx-runtime";var uT=mT(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,P=a&&t&&t.length>a?Math.min(t.length-a,i):0;return X0("div",{className:g2("cleen",f),style:b,ref:v,...u,children:fT("div",{className:g2("cleen-flex cleen-items-center",m?.row),style:{gap:r,...y?.row},children:[C?.map((I,x)=>{let S=n.includes(I?.id??"");return X0(Di,{name:I.name,src:I.src,size:o,isSelected:S,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)}),P>0&&X0(Di,{size:o,fallback:`+${P}`,...m?.extra,...y?.extra})]})})});import{cn as Bo}from"@cleen/ui-core";import{forwardRef as hT}from"react";import{Link as b2}from"react-router-dom";import{jsx as Nl,jsxs as Fi}from"react/jsx-runtime";var gT=hT(function({root:t={path:"/",icon:Nl(La,{"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:Nl("div",{className:Bo("cleen",n),style:r,ref:p,...i,children:Nl("nav",{className:Bo("cleen-hidden sm:cleen-flex",l?.container),style:a?.container,"aria-label":"Breadcrumb",children:Fi("ol",{role:"list",className:Bo("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:a?.list,children:[t&&Nl("li",{className:Bo("cleen-flex cleen-items-center",l?.rootItem),style:a?.rootItem,children:Fi(b2,{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 Fi("li",{className:Bo("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:a?.item,children:[(t||!t&&b!==0)&&Nl(ct,{className:Bo("cleen-h-5 cleen-w-5 cleen-text-neutral-300",l?.chevron),style:a?.chevron,"aria-hidden":"true"}),Fi(b2,{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 Ai=(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 Oi}from"@cleen/ui-core";import{forwardRef as bT,useState as Y0}from"react";import{DayPicker as y2,MonthGrid as yT}from"react-day-picker";import{Fragment as vT,jsx as mn,jsxs as Z0}from"react/jsx-runtime";var Q0=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),J0=bT(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:P,disabledDates:I,components:x,...S},L){let T=i!==void 0,N=u==="single",[F,M]=Y0(),[w,k]=Y0(),D=T?i:N?F:w,[B,A]=Y0(s),_=(O,z)=>{T||(N&&(O===void 0||O instanceof Date)?M(O):N||k(O)),p?.(O,z)},R={MonthGrid:O=>Z0(vT,{children:[(a||r)&&Z0("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[r&&mn(Ie,{value:u==="single"?Q0(D):D?.from||D?.to?`${Q0(D?.from)??"..."} - ${Q0(D?.to)??"..."}`:void 0,placeholder:d?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),a&&mn(te,{variant:"secondary",onClick:()=>A(new Date),children:d?.today??"Today"})]}),mn(yT,{...O})]}),...x},E={navLayout:"around",...S,className:Oi("cleen-text-foreground",b?.calendar?.className),classNames:{...b?.calendar?.classNames,nav:Oi("cleen-text-error",b?.calendar?.classNames?.nav)},disabled:v||C?{before:v==="today"?new Date:v,after:C==="today"?new Date:C}:I||P,components:R,month:B,onMonthChange:A,...y?.calendar};return Z0("div",{ref:L,className:Oi("cleen",f),style:m,children:[t&&mn(de,{required:l,tooltip:o,className:Oi("cleen-mb-1.5",b?.label?.className),classNames:b?.label?.classNames,...y?.label,children:t}),N?mn(y2,{mode:"single",...E,selected:D,onSelect:(O,z)=>{if(v||C){_(Ai(O,{min:v,max:C}),z);return}_(O,z)}}):mn(y2,{mode:"range",...E,selected:D,onSelect:(O,z)=>{if(v||C){_({from:Ai(O?.from,{min:v,max:C}),to:Ai(O?.to,{min:v,max:C})},z);return}_(O,z)}}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&mn(ie,{...n})]})});import{cn as Pr,useOutsideClick as IT,usePositionClose as CT,ZIndex as xT}from"@cleen/ui-core";import{forwardRef as PT,useEffect as ST,useRef as v2,useState as wT}from"react";import{createPortal as MT}from"react-dom";import{jsx as un,jsxs as I2}from"react/jsx-runtime";var Bl=PT(function({type:t="button",required:o,label:n,title:l,titleTooltip:r,disabled:a=!1,leftIcon:i,rightIcon:p=un(va,{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=xT.DROPDOWN,infoLabels:v,className:C,classNames:P,style:I,styles:x,children:S,...L},T){let[N,F]=wT(!1),M=m!==void 0?m:N,w=v2(null),k=v2(null),{positionStyles:D,isMounted:B}=CT({triggerRef:k,targetRef:w,position:"bottom-left",isOpen:M,offset:f});IT({refs:[w,k],handler:()=>{F(!1),b?.(!1)},enabled:M}),ST(()=>{let R=E=>{E.key==="Escape"&&M&&(F(!1),b?.(!1))};return document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}},[M,b]);let A=()=>{let R=!M;m===void 0&&F(R),b?.(R)},_=()=>{y||(m===void 0&&F(!1),b?.(!1))};return I2("div",{className:Pr("cleen",C),style:I,ref:T,...L,children:[l&&un(de,{required:o,tooltip:r,className:Pr("cleen-mb-1.5",P?.title?.className),classNames:P?.title?.classNames,...x?.title,children:l}),un("div",{className:Pr("cleen-inline-block cleen-relative",s&&"cleen-w-full"),ref:k,children:I2("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",P?.trigger),style:x?.trigger,disabled:a,"aria-haspopup":"dialog","aria-expanded":M,onClick:A,children:[i,un("div",{className:Pr("cleen-flex-1 cleen-text-left",P?.label),style:x?.label,children:n}),p]})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&un(ie,{...v}),S&&M&&MT(un("div",{className:"cleen",children:un("div",{ref:w,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":!B},P?.dropdown),style:{zIndex:u,top:`${D.top}px`,left:`${D.left}px`,minWidth:d&&k.current?.offsetWidth?`${k.current.offsetWidth}px`:void 0,...x?.dropdown},onClick:_,children:S})}),document.body)]})});import{cn as C2}from"@cleen/ui-core";import{forwardRef as kT,useMemo as TT,useState as _i}from"react";import{jsx as fn,jsxs as x2}from"react/jsx-runtime";var NT=kT(function({label:t,placeholder:o,infoLabels:n,required:l,selected:r,onSelect:a,onSelectInternal:i,leftIcon:p,rightIcon:s=fn(fa,{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:P,...I},x){let S=r!==void 0,L=y==="single",[T,N]=_i(!1),[F,M]=_i(),[w,k]=_i(),D=S?r:L?F:w,[B,A]=_i(),_=E=>{S||(L&&(E===void 0||E instanceof Date)?M(E):L||k(E)),a?.(E)},R=TT(()=>{if(!D)return o;if(L)return D?.toLocaleDateString();{let E=D;if(E.from&&E.to)return`${E.from.toLocaleDateString()} - ${E.to.toLocaleDateString()}`;if(E.from)return E.from.toLocaleDateString()}return o},[o,D,L]);return x2("div",{ref:x,className:C2("cleen",d),style:f,children:[fn(Bl,{title:t,label:R,isOpen:T,onOpenChange:E=>{A(D),N(E)},leftIcon:p,rightIcon:s,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:C2("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:l,disabled:C,...b?.dropdown,children:fn(Pe,{footer:{hasDivider:!0,content:x2("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:()=>{_(B),N(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...b?.card,children:fn(J0,{mode:y,...I,selected:B,onSelect:(E,O)=>A(i?.(E,O)??E),min:u,max:v,disabledDates:P,...m?.calendar,...b?.calendar})})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&fn(ie,{...n})]})});import"react";import{cn as Sr}from"@cleen/ui-core";import BT from"embla-carousel-auto-scroll";import RT from"embla-carousel-autoplay";import ET from"embla-carousel-react";import{forwardRef as LT,useEffect as DT,useMemo as P2,useState as S2}from"react";import{jsx as hn,jsxs as AT}from"react/jsx-runtime";var FT=LT(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=P2(()=>{let k=[];return a&&k.push(RT(i)),p&&k.push(BT(s)),k},[a,p,i,s]),[P,I]=ET({skipSnaps:!0,...t},C),[x,S]=S2(!0),[L,T]=S2(!0),N=()=>I?.scrollPrev(),F=()=>I?.scrollNext(),M=k=>{S(!k?.canScrollPrev()),T(!k?.canScrollNext())};DT(()=>{I&&(M(I),I.on("reInit",M),I.on("select",M))},[I]);let w=P2(()=>n?`${n}%`:`${100/o}%`,[n,o]);return hn("div",{className:Sr("cleen",f),style:b,ref:v,...u,children:AT("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:P,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":w},children:d})}),hn("button",{className:Sr("cleen-text-foreground",m?.nextBtn,L&&"cleen-opacity-50"),onClick:F,disabled:L,style:y?.nextBtn,children:r||hn(ct,{})})]})})});import{cn as gn}from"@cleen/ui-core";import{forwardRef as OT,useEffect as k2,useId as _T,useRef as VT,useState as zT}from"react";var w2={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)]"},M2={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 HT,jsx as Bt,jsxs as Vi}from"react/jsx-runtime";var bn=OT(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:P=!1,infoLabels:I,inputRef:x,...S},L){let T=_T(),N=t??T,F=typeof l=="boolean"||l===null,[M,w]=zT(r),k=VT(null),D=E=>{k.current=E,x&&(x.current=E)};k2(()=>{F||w(r)},[r,F]);let B=F?l:M;k2(()=>{k.current&&(k.current.indeterminate=C&&B===null)},[C,B]);let A=E=>{let O;if(C)switch(B){case!0:O=null;break;case!1:O=!0;break;default:O=!1;break}else O=!B;F||w(O),d?.({...E,target:{...E.target,checked:O}})},_=Vi(HT,{children:[Vi("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",{[w2[v]]:B,[M2[v]]:B===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:D,type:"checkbox",disabled:f,className:"cleen-sr-only",checked:B===!0,onChange:A,id:N,name:o,...S}),B===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"}):B?Bt(Yt,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(y||u)&&Vi("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})]})]}),R={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:L,children:Vi("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}),P?Bt("div",{...R,onClick:E=>{E.target instanceof Element&&!E.target.closest("label")&&k.current?.click()},children:_}):Bt("div",{...R,children:_}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&Bt(ie,{...I})]})})});import{cn as Rl}from"@cleen/ui-core";import{forwardRef as UT,useId as GT,useMemo as $T,useState as WT}from"react";import{jsx as wr,jsxs as KT}from"react/jsx-runtime";var qT=UT(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=GT(),u=t??y,[v,C]=WT(!1),P=$T(()=>p&&v&&r?.every(x=>x.checked===!1)?p.title:i?.errorMessage,[p,i?.errorMessage,r,v]),I=(x,S)=>{let L={...S,checked:x.target.checked},T;r&&S?.id&&(T=[...r].map(N=>N.id===S.id?L:N)),f?.(L,T),C(!0)};return wr("div",{className:Rl("cleen"),...m,ref:b,children:KT("div",{className:Rl("cleen-flex cleen-flex-col cleen-gap-2",s?.container),style:d?.container,children:[n&&wr(de,{htmlFor:u,required:o,tooltip:l,className:Rl("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...d?.label,children:n}),wr("div",{className:Rl("cleen-flex cleen-flex-col cleen-gap-3",s?.checkboxes),style:d?.checkboxes,children:r?.map((x,S)=>wr("div",{className:Rl("cleen-flex",s?.checkboxContainer),style:d?.checkboxContainer,children:wr(bn,{allowIndeterminate:a,...x,id:`${u}-${S}`,fullTriggerArea:!0,onChange:L=>I(L,x)})},x.id))}),(P||i?.infoMessage||i?.subtitle)&&wr(ie,{...i,errorMessage:P})]})})});import{cn as yn}from"@cleen/ui-core";import{forwardRef as XT,useState as T2}from"react";import{jsx as Mr,jsxs as N2}from"react/jsx-runtime";var B2=XT(({sections:e,defaultOpenIndex:t,allowExpandAll:o=!1,className:n,classNames:l,style:r,styles:a,...i},p)=>{let[s,d]=T2(t??null),[f,m]=T2(()=>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 P=new Set(C);return P.has(u)?P.delete(u):P.add(u),P}):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)=>N2("div",{className:yn("cleen-mb-3",l?.section),style:a?.section,children:[N2("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,P)=>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??P))})]},u?.key??v))})})});B2.displayName="Collapsible";function j0(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 R2(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as zi}from"@cleen/ui-core";import{useEffect as YT,useState as QT}from"react";import{HexAlphaColorPicker as ZT,RgbaColorPicker as JT}from"react-colorful";import{jsx as kr,jsxs as eN}from"react/jsx-runtime";var E2="rgba(0, 0, 0, 1)",L2="#000000ff",jT=({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"?L2:E2),[v,C]=QT(u),P=y?t:v;YT(()=>{y||C(o??(l==="hexa"?L2:E2))},[o,y,l]);let I=S=>{let L=R2(S);y||C(L),n?.(L)},x=S=>{y||C(S),n?.(S)};return kr("div",{className:zi("cleen",p),style:d,...b,children:eN("div",{className:zi("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:zi("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...f?.label,children:a}),kr("div",{className:zi("cleen-rounded-md",r&&"cleen-opacity-50 cleen-pointer-events-none",s?.picker),style:f?.picker,children:l==="hexa"?kr(ZT,{color:P,onChange:x}):kr(JT,{color:j0(P),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&kr(ie,{...m})]})})};import{cn as mt}from"@cleen/ui-core";import{forwardRef as tN,useMemo as oN,useState as nN}from"react";var e1=(e="")=>e.replace(/\D+/g,""),D2=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function F2(e,t="other"){if(!e)return e;let o=e1(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 A2=e=>e1(e);function O2(e){let t=e1(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 _2}from"react/jsx-runtime";var rN=tN(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]=nN({number:"",expiry:"",cvc:""}),v=!!o,C=v?o:y,P=oN(()=>D2(C.number),[C.number]),I=S=>{let{name:L}=S.target,{value:T}=S.target;switch(L){case"number":T=F2(T,P);break;case"expiry":T=O2(T);break;case"cvc":T=A2(T);break;default:return}v||u(N=>({...N,[L]:T})),d?.({...o,[L]:T})},x=S=>{f?.(S.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})}):_2("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:S=>S.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}}),_2("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:P==="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 V2}from"@cleen/ui-core";import{jsx as z2}from"react/jsx-runtime";var xt=({isHorizontal:e=!0,className:t,classNames:o,style:n,styles:l,...r})=>z2("div",{className:V2("cleen",t),style:n,children:z2("div",{className:V2("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 aN,useCleenOverlays as H2,ZIndex as lN}from"@cleen/ui-core";import{forwardRef as cN,useCallback as iN,useEffect as t1,useId as sN,useRef as pN,useState as U2}from"react";import{createPortal as dN}from"react-dom";import{jsx as Tr,jsxs as Hi}from"react/jsx-runtime";var mN={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},G2=300,o1=cN(function({title:t,subtitle:o,children:n,headerCloseBtn:l,footer:r,isOpen:a=!1,onClose:i,closeOnOverlayClick:p=!0,position:s="right",zIndex:d=lN.DRAWER,size:f="lg",p:m,gap:b,className:y,classNames:u,style:v,styles:C,...P},I){let[x,S]=U2(a),[L,T]=U2(a),N=pN(null),F=sN(),{addOverlay:M,removeOverlay:w}=H2(),k=iN(()=>{S(!1),setTimeout(()=>i?.(),G2)},[i]);return t1(()=>{if(a){T(!0);let D=setTimeout(()=>S(!0),1);return()=>clearTimeout(D)}else{S(!1);let D=setTimeout(()=>T(!1),G2);return()=>clearTimeout(D)}},[a]),t1(()=>{if(a)return M(F),()=>w(F)},[M,w,a,F]),t1(()=>{let D=B=>{let{overlays:A}=H2.getState();B.key==="Escape"&&A[A.length-1]===F&&k()};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[k,F]),aN(L),L?dN(Hi("div",{className:Eo("cleen",y),style:v,ref:I,...P,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"}),Hi("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:mN[f],...b!==void 0&&{gap:b},...C?.drawer},ref:N,children:[Hi("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:[Hi("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 uN}from"@cleen/ui-core";import{forwardRef as fN,useEffect as hN,useMemo as gN,useRef as bN,useState as yN}from"react";import{jsx as Ui,jsxs as n1}from"react/jsx-runtime";var Nr=fN(({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=bN(u),[C,P]=yN(i?0:u),I=uN({targetNumber:C,duration:p,disabled:!i});hN(()=>{if(i){setTimeout(()=>P(u),0);return}v.current!==u&&(P(u),v.current=u)},[u,i]);let x=gN(()=>{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 Ui("div",{ref:y,className:vn("cleen",s),style:f,children:n1("div",{className:vn("cleen-w-full",d?.container),style:m?.container,...b,children:[t&&Ui("div",{className:vn("cleen-mb-1 cleen-font-semibold cleen-text-xs",d?.title),style:m?.title,children:t}),n1("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:[Ui("div",{className:vn("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",d?.track),style:{backgroundColor:n,...m?.track},children:Ui("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&&n1("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 $2}from"react";import{Fragment as W2,jsx as Ge,jsxs as Cn}from"react/jsx-runtime";var q2=({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,P=m===In.DELETING,I=s?s*b/100:0,x=$2(()=>{switch(m){case In.UPLOADING:return Cn(W2,{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]),S=()=>{if(o){o(e);return}d&&window.open(d,"_blank","noopener,noreferrer")},L=p||i?.name||"",[T,N]=L.split("."),F=$2(()=>f?.startsWith("image/")&&d?Ge("img",{src:d,alt:L,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"}),[L,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?S: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:[F,Cn("div",{className:Lo("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",l?.name),style:{maxWidth:F?"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&&(P?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(W2,{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 Gi=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 K2={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${Gi(e)} of ${Gi(t)}`,uploaded:e=>Gi(e)};var X2={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 El=(r=>(r.PENDING="pending",r.IN_PROGRESS="inProgress",r.DONE="done",r.ERROR="error",r.REMOVING="removing",r))(El||{});import{cn as xn}from"@cleen/ui-core";import{jsx as Do,jsxs as Y2}from"react/jsx-runtime";var r1=({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 Y2("div",{className:xn("cleen-flex cleen-items-center cleen-gap-3",o?.container),style:n?.container,children:[a,Y2("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 Ll=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(Ll||{}),Dl=["notStarted","inProgress","completed","all"];import{cn as $i}from"@cleen/ui-core";import{jsx as Q2,jsxs as vN}from"react/jsx-runtime";var a1=({value:e,onChange:t,counts:o,labels:n,classNames:l,styles:r})=>Q2("div",{role:"group","aria-label":n?.statusFilter,className:$i("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:Dl.map(a=>{let i=a===e;return vN("button",{type:"button","aria-pressed":i,onClick:()=>t(a),className:$i("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&&$i("cleen-bg-background cleen-text-foreground cleen-shadow-sm",l?.optionActive)),style:{...r?.option,...i&&r?.optionActive},children:[n?.statusFilterOptions?.[a],o&&Q2("span",{className:$i("cleen-text-neutral-400 cleen-tabular-nums",l?.optionCount),style:r?.optionCount,children:o[a]})]},a)})});var Z2={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 J2=e=>e.status==="inProgress"||e.status==="pending",j2=e=>e.length>0&&e.every(t=>t.status==="done"),l1=(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 IN,cn as Pt,useControlled as eI,useDisclosure as CN}from"@cleen/ui-core";import{forwardRef as xN,useEffect as tI,useMemo as c1,useRef as PN}from"react";import{jsx as Rt,jsxs as i1}from"react/jsx-runtime";var s1=xN(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:P,styles:I,...x},S){let{isOpen:L,toggle:T,close:N}=CN(),{value:F,handleChange:M}=eI({value:l,defaultValue:r,onChange:a});tI(()=>{t.length>0&&N()},[t.length,N]);let w=IN(Z2,u),{value:k,handleChange:D}=eI({value:m,defaultValue:b,onChange:y}),B=PN(i);B.current=i;let A=j2(t);tI(()=>{if(p==null||!B.current||!A)return;if(p<=0){B.current();return}let W=setTimeout(()=>B.current?.(),p);return()=>clearTimeout(W)},[A,p]);let _=c1(()=>t.filter(J2).length,[t]),R=c1(()=>!d||!k?t:t.filter(W=>l1(W,k)),[t,d,k]),E=c1(()=>{if(f)return Dl.reduce((W,J)=>({...W,[J]:t.filter(H=>l1(H,J)).length}),{})},[t,f]);if(!t.length)return null;let O=Math.max(R.length-n,0),z=F||!O?R:R.slice(0,n),V=o??(_?w?.processing?.(_):w?.completed);return Rt(Pe,{p:16,gap:12,ref:S,className:Pt(v,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:Pt(C?.card?.classNames?.childrenContainer,{"cleen-hidden":L})},style:P,styles:I?.card?.styles,header:s?{hasDivider:!L,content:i1("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:V}),i1("div",{className:Pt("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:I?.headerButtons,children:[Rt("button",{type:"button","aria-label":w?.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",L&&"cleen-rotate-180")})}),i&&Rt("button",{type:"button","aria-label":w?.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:i1("div",{className:Pt("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:I?.list,children:[d&&k&&Rt(a1,{value:k,onChange:D,counts:E,labels:w,classNames:C?.statusFilter,styles:I?.statusFilter}),!z.length&&Rt("p",{className:Pt("cleen-text-muted-foreground cleen-text-xs",C?.emptyStatusFilter),style:I?.emptyStatusFilter,children:w?.emptyStatusFilter}),z.map(W=>Rt(r1,{item:W,labels:w,classNames:C?.row,styles:I?.row},W.id)),!!O&&Rt("button",{type:"button","aria-expanded":F,onClick:()=>M(!F),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:F?w?.showLess:w?.showMore?.(O)})]})})});import{FileEntryStatus as oo}from"@cleen/ui-core";var SN=[{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"]}],oI={label:"FILE",className:"cleen-bg-neutral-500"},wN={[oo.QUEUED]:"inProgress",[oo.UPLOADING]:"inProgress",[oo.PAUSED]:"inProgress",[oo.DONE]:"done",[oo.ERROR]:"error",[oo.DELETING]:"removing"},p1=e=>e.name||e.file?.name||"",nI=e=>{let t=p1(e).split(".").pop()?.toLowerCase()??"",o=SN.find(({extensions:n})=>n.includes(t));return o?{label:o.label,className:o.className}:{label:t?t.slice(0,4).toUpperCase():oI.label,className:oI.className}},rI=e=>e.status===oo.QUEUED||e.status===oo.UPLOADING||e.status===oo.PAUSED,aI=e=>wN[e.status]??"pending",lI=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as MN}from"@cleen/ui-core";import{jsx as kN}from"react/jsx-runtime";var cI=({fileEntry:e,className:t,style:o})=>{let n=nI(e);return kN("div",{className:MN("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 TN}from"react/jsx-runtime";var iI=(e,t)=>({id:e.id,name:p1(e),progress:e.progress,status:aI(e),icon:TN(cI,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as NN}from"@cleen/ui-core";import{forwardRef as BN,useMemo as sI}from"react";import{jsx as RN}from"react/jsx-runtime";var d1=BN(function({files:t,title:o,maxVisibleFiles:n=5,labels:l,classNames:r,styles:a,...i},p){let s=sI(()=>lI(t),[t]),d=NN(X2,l),f=sI(()=>s.map(y=>iI(y,{className:r?.row?.typeBadge,style:a?.row?.typeBadge})),[s,r?.row?.typeBadge,a?.row?.typeBadge]),m=s.filter(rI).length,b=o??(m?d?.uploading?.(m):d?.completed);return RN(s1,{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 EN,cn as Qe,FileEntryStatus as LN,useFileUpload as DN}from"@cleen/ui-core";import{forwardRef as FN,useEffect as AN,useMemo as pI,useRef as dI,useState as m1}from"react";import{createPortal as ON}from"react-dom";import{jsx as Ze,jsxs as Wi}from"react/jsx-runtime";var _N=FN(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:P,classNames:I,style:x,styles:S,multiple:L,disabled:T,loadingWhileUploading:N,isLoading:F,readOnly:M,onChange:w,id:k,name:D,...B},A){let _=dI(null),{files:R,addFiles:E,remove:O}=DN({files:n,onFilesChange:r,initialFiles:l,onFileUpload:a,onFilesUpload:i,onFileRemove:p}),z=pI(()=>F||N&&Array.from(R.values()).some(Z=>Z.status===LN.UPLOADING),[R,N,F]),[V,W]=m1(!1),[J,H]=m1([]),[U,K]=m1(!1),$=dI(new Set(R.keys()));AN(()=>{let Z=Array.from(R.keys()),Re=Z.filter(Oe=>!$.current.has(Oe));$.current=new Set(Z),H(Oe=>{let Se=Oe.filter(Ye=>R.has(Ye));return Re.length?U?Re:[...Se,...Re.filter(Ye=>!Se.includes(Ye))]:Se.length===Oe.length?Oe:Se}),Re.length&&K(!1)},[R,U]);let Y=pI(()=>J.map(Z=>R.get(Z)).filter(Z=>!!Z),[J,R]),ae=()=>{K(!0),H([]),C?.onDismiss?.()},be=!T&&!M&&!z,pe=Z=>{let Re=Array.from(Z.target.files??[]);E(Re),w?.(Z)},Me=Z=>{O(Z)},q=()=>{be&&_.current?.click()},Q=Z=>{if(!Z.length)return;let Re=L?Z:Z.slice(0,1);if(!_.current||typeof DataTransfer>"u"){E(Re);return}let Oe=new DataTransfer;Re.forEach(Se=>Oe.items.add(Se));try{_.current.files=Oe.files}catch{E(Re);return}E(Re),w?.({target:_.current,currentTarget:_.current})},G=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=EN(K2,y);return Wi("div",{className:Qe("cleen",P),style:x,ref:f,children:[Ze("input",{id:k||D,name:D,ref:Z=>{if(_.current=Z,typeof A=="function"){A(Z);return}A&&(A.current=Z)},type:"file",multiple:L,disabled:T||z,readOnly:M,className:Qe("cleen-hidden",I?.input),style:S?.input,onChange:pe,...B}),m&&Ze(de,{htmlFor:k||D,required:t,tooltip:b,className:Qe("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...S?.label,children:m}),Wi("div",{className:Qe("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":z}),children:[Ze(Pe,{tabIndex:be?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":T||M||z,onClick:q,onKeyDown:ue,onDrop:G,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,V&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:Qe({"cleen-blur-sm":z},I?.card?.classNames?.childrenContainer)},style:S?.card?.style,styles:{...S?.card?.styles,container:{...S?.card?.styles?.container,...V?S?.cardDragActive:void 0}},children:Wi("div",{className:Qe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:S?.dropArea,"aria-disabled":T||M||z,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:S?.iconContainer,children:o||Ze(sn,{className:"cleen-size-5"})}),Wi("p",{className:Qe("cleen-font-medium cleen-text-sm",I?.textContainer),style:S?.textContainer,children:[Ze("span",{className:Qe(T?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:S?.primaryText,children:xe?.primaryText})," ",Ze("span",{className:Qe("cleen-text-foreground",I?.secondaryText),style:S?.secondaryText,children:xe?.secondaryText})]}),Ze("p",{className:Qe("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:S?.helperText,children:xe?.helperText})]})}),z&&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&&R.size>0&&Ze("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(R.values()).map(Z=>Ze(q2,{fileEntry:Z,onRemove:Me,onFileClick:s,labels:xe,classNames:I?.fileCard,styles:S?.fileCard},Z.id))}),v&&!U&&Y.length>0&&ON(Ze("div",{className:"cleen",children:Ze(d1,{...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,...S?.progressTracker})}),document.body),(d?.errorMessage||d?.infoMessage||d?.subtitle)&&Ze(ie,{...d})]})});import{cn as je,useControlled as II}from"@cleen/ui-core";import{forwardRef as XN,Fragment as YN,useMemo as CI,useRef as QN,useState as ZN}from"react";import{cn as u1,useDisclosure as VN,useOutsideClick as zN,usePositionClose as HN,ZIndex as UN}from"@cleen/ui-core";import{forwardRef as GN,useRef as mI}from"react";import{createPortal as $N}from"react-dom";import{jsx as f1,jsxs as WN}from"react/jsx-runtime";var no=GN(function({isOpen:t,onOpenChange:o,content:n,position:l="bottom-left",offset:r,zIndex:a=UN.POPOVER,portalContainer:i,children:p,className:s,classNames:d,style:f,styles:m,...b},y){let{isOpen:u,toggle:v,close:C}=VN({value:t,setValue:o}),P=mI(null),I=mI(null),{positionStyles:x,isMounted:S}=HN({triggerRef:P,targetRef:I,position:l,isOpen:u,offset:r,container:i});zN({refs:[P,I],handler:C,enabled:u});let L=T=>{T.stopPropagation(),v()};return WN("div",{className:u1("cleen",s),style:f,ref:y,...b,children:[f1("div",{ref:P,onClick:L,className:u1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:p}),u&&$N(f1("div",{className:"cleen",onClick:T=>T.stopPropagation(),onPointerDown:T=>T.stopPropagation(),onMouseDown:T=>T.stopPropagation(),onTouchStart:T=>T.stopPropagation(),children:f1("div",{ref:I,className:u1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!S},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 h1}from"@cleen/ui-core";import{Fragment as qN,useEffect as uI,useMemo as fI,useRef as KN,useState as g1}from"react";import{jsx as Et,jsxs as Br}from"react/jsx-runtime";var hI=({sections:e,labels:t,onAddRow:o,onSearchChange:n,isLoading:l=!1,className:r,style:a,popoverClassName:i,popoverStyle:p})=>{let[s,d]=g1(!1),[f,m]=g1(""),[b,y]=g1(0),u=KN(null),v=fI(()=>{let S=n?"":f.trim().toLowerCase();return e.filter(L=>!L.readOnly&&L.options?.length).map(L=>{let T=new Set(L.rows.map(N=>N.id));return{section:L,options:(L.options??[]).filter(N=>!T.has(N.id)&&(!S||N.label.toLowerCase().includes(S)||N.meta?.toLowerCase().includes(S)))}}).filter(L=>L.options.length)},[e,f,n]),C=fI(()=>v.flatMap(S=>S.options.map(L=>({sectionId:S.section.id,option:L}))),[v]);uI(()=>{y(0),n?.(f.trim())},[f]),uI(()=>{if(!s){m("");return}requestAnimationFrame(()=>u.current?.focus())},[s]);let P=S=>{S&&(o(S),d(!1))},I=S=>{S.key==="ArrowDown"?(S.preventDefault(),y(L=>Math.min(L+1,C.length-1))):S.key==="ArrowUp"?(S.preventDefault(),y(L=>Math.max(L-1,0))):S.key==="Enter"?(S.preventDefault(),P(C[b])):S.key==="Escape"&&d(!1)},x=-1;return Et(no,{isOpen:s,onOpenChange:d,position:"top-left",classNames:{popover:h1("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:S=>m(S.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(S=>Br(qN,{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:[S.section.icon,S.section.label]}),S.options.map(L=>{x+=1;let T=x;return Br("button",{type:"button",role:"option","aria-selected":T===b,onMouseEnter:()=>y(T),onClick:()=>P({sectionId:S.section.id,option:L}),className:h1("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:L.label}),L.meta&&Et("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:L.meta})]},L.id)})]},S.section.id))]})]}),children:Br(te,{variant:"secondary",className:h1("cleen-gap-1.5",r),style:a,children:[Et(an,{size:14}),t.add]})})};import{cn as qi}from"@cleen/ui-core";import{useEffect as bI,useRef as Sn,useState as C1}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),b1=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},y1=(e,t,o)=>{let n=b1(e),l=b1(t);if(n===null||l===null)return null;let r=l-n+(o?1440:0);return r>0?r:null},gI=e=>{let t=Math.floor(e/60),o=e%60;return[t?`${t} h`:"",o?`${o} min`:""].filter(Boolean).join(" ")},v1=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},Fl=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},I1=(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 yI=({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:P,popoverClassName:I,popoverStyle:x})=>{let S=typeof n?.value=="number"?Je(n.value,a):"",[L,T]=C1(S),[N,F]=C1(null),[M,w]=C1({}),k=Sn(null),D=Sn(!1),B=Sn(!1),A=Sn(m);A.current=m;let _=Sn(null),R=Sn(null),E=Sn(null);bI(()=>{T(S),F(null),R.current=null},[S]),bI(()=>{m&&(w(E.current??n??{}),E.current=null,D.current&&(D.current=!1,requestAnimationFrame(()=>k.current?.focus())))},[m]);let O=Je(l,a),z=Je(r,a),V=!!(n?.start&&n?.end),W=i==="compact",J=G=>{if(G===null)return null;if(Number.isNaN(G))return b.invalidError;let re=Rr(G,a);return re<l||re>r?b.rangeError(O,z):null},H=()=>{if(L===S||L===R.current)return F(null),n??{};let G=v1(L),re=J(G);if(F(re),re)return!1;let se=Fl({note:n?.note,value:G===null?void 0:Rr(G,a)});return R.current=L,A.current&&w(ye=>({...ye,value:se?.value,start:void 0,end:void 0,endsNextDay:void 0})),u(se),se??{}},U=()=>{if(B.current){B.current=!1;return}A.current&&L===_.current||H()},K=(G=!1)=>{if(d)return;let re=H();_.current=L,A.current=!0,E.current=re===!1?n??{}:re,D.current=G,y(!0)},$=G=>{if(G.key==="Escape"){T(S),F(null),B.current=!0,G.currentTarget.blur(),B.current=!1;return}if(G.key==="n"||G.key==="N"){G.preventDefault(),K(!0);return}if(G.key==="."&&G.ctrlKey){G.preventDefault(),K();return}let se={ArrowUp:"up",ArrowDown:"down",Enter:"down"}[G.key];se&&v&&(G.preventDefault(),H()!==!1&&v(se))},Y=y1(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=G=>{if(G&&!Me){let re=ae??n?.value,se=Fl({...M,value:re,note:M.note?.slice(0,s)}),ye=JSON.stringify(Fl(n??{}));JSON.stringify(se)!==ye&&u(se),ae!=null&&(T(se?.value===void 0?"":Je(se.value,a)),F(null),R.current=null)}y(!1)},Q=ro("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-p-3",onKeyDown:G=>{G.key==="Escape"&&(G.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:G=>w(re=>({...re,start:G.target.value}))}),we(Ie,{type:"time",label:b.end,value:M.end??"",onChange:G=>w(re=>({...re,end:G.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:G=>w(re=>({...re,endsNextDay:G.target.checked}))}),(M.start||M.end)&&we(te,{variant:"borderless",className:"cleen-text-xs cleen-px-2 cleen-py-1",onClick:()=>w(G=>({...G,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:[gI(Y)," ="," ",we("span",{className:"cleen-font-medium cleen-text-foreground",children:b.formatHours(Number(Je(ae,a)))})]}),we(Il,{ref:k,label:b.note,placeholder:b.notePlaceholder,value:M.note??"",maxLength:s,onChange:G=>w(re=>({...re,note:G})),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:qi("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:P,"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:[V&&we(ga,{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:L,placeholder:d?"":"\u2013",onChange:G=>{T(G.target.value),N&&F(null)},onBlur:U,onKeyDown:$,"data-matrix-input":e,className:qi("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",V&&"cleen-pl-5",!d&&"cleen-pr-6",N?"cleen-border-error":"cleen-border-transparent hover:cleen-border-border focus:cleen-border-primary",!L&&"placeholder:cleen-text-neutral-300")}),!d&&we(no,{className:"cleen-absolute cleen-right-0.5",isOpen:m,onOpenChange:G=>G?K():q(!0),position:"bottom-right",content:m?Q:null,classNames:{popover:qi("cleen-w-72",I)},styles:{popover:x},children:we("button",{type:"button","aria-label":b.details,title:b.details,tabIndex:-1,className:qi("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(Ca,{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:()=>K(!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:()=>K(!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:()=>K(!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 vI={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 x1=e=>typeof e=="string"||typeof e=="number"?String(e):"",xI={},PI=[],JN=XN(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:P=!1,flash:I,showFooter:x=!0,showHint:S=!0,collapsedSections:L,defaultCollapsedSections:T,onCollapsedSectionsChange:N,labels:F,className:M,classNames:w,style:k,styles:D,...B},A){let _={...vI,...F},R=QN(null),[E,O]=ZN(null),{value:z=xI,handleChange:V}=II({value:n,defaultValue:l??xI,onChange:r}),{value:W=PI,handleChange:J}=II({value:L,defaultValue:T??PI,onChange:N}),H=CI(()=>I1(o,t,z),[o,t,z]),U=q=>q?Je(q,b):"",K=CI(()=>o.filter(q=>!W.includes(q.id)).flatMap(q=>q.rows.map(Q=>Q.id)),[o,W]),$=(q,Q,G,re)=>{let se=Pn(Q,G),ye=z[se]??null,ue={...z};re?ue[se]=re:delete ue[se],V(ue),a?.({key:se,sectionId:q,rowId:Q,columnId:G,value:re,previous:ye})},Y=(q,Q,G)=>{let re=K.indexOf(q),se=t.findIndex(Z=>Z.id===Q),ye=K[re+(G==="down"?1:G==="up"?-1:0)],ue=t[se+(G==="right"?1:G==="left"?-1:0)];if(!ye||!ue)return;let xe=R.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:A,className:je("cleen cleen-relative cleen-flex cleen-flex-col cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background",M,w?.container),style:{...k,...D?.container},...B,children:[he("div",{className:"cleen-overflow-x-auto",children:ut("table",{ref:R,className:je("cleen-w-full cleen-border-separate cleen-border-spacing-0 cleen-text-sm",w?.table),style:D?.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",w?.headerCell),style:D?.headerCell,children:_.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",w?.headerCell),style:D?.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",w?.headerCell),style:D?.headerCell,children:_.total})]})}),he("tbody",{children:o.map(q=>{let Q=W.includes(q.id);return ut(YN,{children:[ut("tr",{className:je("cleen-bg-muted",w?.sectionRow),style:D?.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?_.expand:_.collapse} ${x1(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(G=>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:U(H.sectionColumns[q.id]?.[G.id]??0)},G.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(H.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??_.emptySection})}),!Q&&q.rows.map(G=>{let re=C||!!(q.readOnly||G.readOnly),se=H.rows[G.id]??0,ye=!re&&!!p&&G.removable!==!1&&!t.some(ue=>z[Pn(G.id,ue.id)]);return ut("tr",{className:je("cleen-group/row",w?.row),style:D?.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",w?.rowLabel),style:D?.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:G.label}),G.meta&&!be&&he("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:G.meta})]}),ye&&he("button",{type:"button","aria-label":`${_.removeRow} ${x1(G.label)}`,title:_.removeRow,onClick:()=>p?.({sectionId:q.id,rowId:G.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(G.id,ue.id);return he(yI,{cellKey:xe,column:ue,rowLabel:x1(G.label),cell:z[xe],min:f,max:m,precision:b,density:y,notePreviews:u,noteMaxLength:v,readOnly:re,flash:I?.[xe],isDetailOpen:E===xe,labels:_,onDetailOpenChange:Z=>O(Z?xe:null),onCommit:Z=>$(q.id,G.id,ue.id,Z),onNavigate:Z=>Y(G.id,ue.id,Z),className:w?.cell,style:D?.cell,popoverClassName:w?.popover,popoverStyle:D?.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",w?.totalCell),style:D?.totalCell,children:Je(se,b)})]},G.id)})]},q.id)})}),x&&he("tfoot",{children:ut("tr",{className:je("cleen-bg-muted",w?.footer),style:D?.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:_.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:U(H.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(H.grand,b)})]})})]})}),(Me||S&&!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(hI,{sections:o,labels:_,onAddRow:i,onSearchChange:s,isLoading:d,className:w?.addButton,style:D?.addButton,popoverClassName:w?.popover,popoverStyle:D?.popover}):he("span",{}),S&&!C&&he("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:_.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.`})]}),P&&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 jN=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)}},SI={uploaded:e=>`Uploaded: ${jN(e)}`};var P1={"image/":"image","video/":"video","audio/":"audio"},S1={"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"},wI={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"},MI=["http:","https:","blob:"];var eB=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in S1)return S1[t];let o=Object.keys(P1).find(n=>t.startsWith(n));return o?P1[o]:void 0},w1=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},tB=e=>{let t=w1(e);return t?wI[t]:void 0},kI=e=>eB(e.type)??tB(e.name)??"generic",TI=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return MI.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as ao,formatFileSize as oB}from"@cleen/ui-core";import{forwardRef as nB,useMemo as NI,useState as rB}from"react";import{Fragment as lB,jsx as Lt,jsxs as Ki}from"react/jsx-runtime";var aB=nB(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]=rB(),y=NI(()=>({...SI,...r}),[r]),u=kI(t),v=A0(w1(t.name)),C=TI(t.url)?t.url:void 0,P=t.previewUrl||t.url,I=o&&(u==="image"||u==="video")&&!!P&&m!==P,x=NI(()=>{if(l!=null)return l;let N=[];if(t.size!=null&&N.push(oB(t.size)),t.uploadedAt!=null){let F=y?.uploaded(t.uploadedAt);F&&N.push(F)}return N.length>0?N.join(" \u2022 "):null},[l,t.uploadedAt,t.size,y]),S=N=>{N.stopPropagation(),n?.(t)},L=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=Ki(lB,{children:[Ki("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:P,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>b(P)}),I&&u==="video"&&!t.previewUrl&&Lt("video",{src:P,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>b(P)}),!I&&Lt(v,{"aria-hidden":!0,className:ao("cleen-size-5",i?.icon),style:s?.icon})]}),Ki("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:Ki("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:L,style:s?.main,children:T}):Lt("div",{className:L,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:S,children:Lt(He,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Xi={filterName:"",exposed:!1};import{createContext as cB}from"react";var ft=cB({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as iB}from"@cleen/ui-core";import{useContext as sB,useState as pB}from"react";import{Fragment as dB,jsx as Al,jsxs as M1}from"react/jsx-runtime";var BI={min:3,max:50},RI=()=>{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}=sB(ft),[b,y]=pB(!1),u=async()=>{try{if(t.filterName.length<BI.min){r?.("filterName",s?.saveStep?.validation?.tooShort);return}if(t.filterName.length>BI.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?M1("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[Al(te,{onClick:()=>n(!1),variant:"secondary",...i?.saveFilter?.backBtn,...p?.saveFilter?.backBtn,children:s?.saveStep?.back}),Al(te,{onClick:u,isLoading:b,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...p?.saveFilter?.saveBtn,children:s?.saveStep?.save})]}):M1(dB,{children:[d&&Al(te,{onClick:()=>{o(Xi),n(!0)},variant:"borderless-blue",...i?.saveBtn,...p?.saveBtn,children:s?.save}),M1("div",{className:iB("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!d}),children:[Al(te,{onClick:()=>{f?.(),l()},variant:"secondary",...i?.cancelBtn,...p?.cancelBtn,children:s?.cancel}),Al(te,{onClick:()=>{m?.(),l()},...i?.applyBtn,...p?.applyBtn,children:s?.apply})]})]})};import{cn as wn}from"@cleen/ui-core";import{Link as mB}from"react-router-dom";import{Fragment as DI,jsx as St,jsxs as Ol}from"react/jsx-runtime";var EI=({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:Ol(DI,{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}}),LI=(e,t)=>e.map(o=>o?.type==="group"?{...o,items:LI(o.items,t)}:o?.type==="button"&&!o.submenu?.length?{...o,onClick:()=>t?.(o)}:o),k1=({item:e,isLast:t,handleClick:o,onEnterSubmenu:n,renderActionsMenu:l,classNames:r,styles:a})=>{switch(e?.type){case"group":return Ol(DI,{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(k1,{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 Ol("button",{type:"button",onClick:s,...EI({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 Ol("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:[Ol("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(LI(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(mB,{to:"",...EI({item:e,classNames:r,styles:a})});default:return null}};import{cn as uB}from"@cleen/ui-core";import{useEffect as FI,useState as AI}from"react";import{Fragment as fB,jsx as OI,jsxs as _I}from"react/jsx-runtime";var VI=({items:e,keepOpenOnClick:t,hideMenu:o,renderActionsMenu:n,classNames:l,styles:r})=>{let[a,i]=AI([]),[p,s]=AI(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)))};FI(()=>{s(e),i([])},[e]),FI(()=>{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 _I(fB,{children:[a?.length>0&&_I("button",{onClick:f,className:uB("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:[OI(Qt,{className:"cleen-size-4 cleen-text-neutral-300"}),a?.[a?.length-1]?.title]}),p?.map((b,y,u)=>OI(k1,{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 hB,cn as T1,useDisclosure as gB,useOutsideClick as bB,usePositionClose as yB,ZIndex as vB}from"@cleen/ui-core";import{forwardRef as IB,useRef as zI}from"react";import{createPortal as CB}from"react-dom";import{jsx as _l,jsxs as PB}from"react/jsx-runtime";var Mn=IB(function({items:t=[],position:o="bottom-left",keepOpenOnClick:n=!0,triggerRef:l,menuRef:r,ignoreClickOutside:a=!1,zIndex:i=vB.MENU,children:p,className:s,classNames:d,style:f,styles:m,...b},y){let{isOpen:u,toggle:v,close:C}=gB(),P=zI(null),I=zI(null),x=l??P,S=r??I,{positionStyles:L,isMounted:T}=yB({triggerRef:x,targetRef:S,position:o,isOpen:u});bB({refs:[x,S],handler:C,enabled:u});let N=()=>{v()};return PB("div",{className:T1("cleen",s),style:f,ref:y,...b,children:[_l("div",{ref:x,onClick:N,className:T1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:p}),u&&CB(_l("div",{className:"cleen",...a&&{[hB]:"true"},children:_l("div",{ref:S,className:T1("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:`${L.top}px`,left:`${L.left}px`,...m?.menu},children:_l(VI,{items:t,keepOpenOnClick:n,hideMenu:C,renderActionsMenu:(F,M)=>xB(F,M,i),classNames:d,styles:m})})}),document.body)]})});function xB(e,t,o){return _l(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 Yi,ColorHelpers as Qi}from"@cleen/ui-core";import{useMemo as SB}from"react";var N1=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow","foreground-transparent"],B1={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"},HI={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"},UI={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"},GI={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"},$I={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var WI=(e,t)=>!e&&!t?"primary":t?N1[t%N1.length]:e;import{jsx as R1,jsxs as wB}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:P,dotVariantStyle:I,variantStyle:x}=SB(()=>{let S={};if(r in B1){let L=WI(r,y);S.variantClass=f?HI[L]:B1[L],S.dotVariantClass=f?GI[L]:UI[L]}else S.variantStyle={borderColor:f?r:Qi.trasparentize(r,.8),backgroundColor:f?r:Qi.trasparentize(r,.95),color:f?Qi.adjustColorForContrast(r,.5):r},S.dotVariantStyle={backgroundColor:f?Qi.adjustColorForContrast(r,.5):r};return S},[r,y,f]);return R1("div",{className:Yi("cleen",e),style:o,children:wB("span",{className:Yi("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,$I[a],{"hover:cleen-opacity-80 cleen-cursor-pointer":b||s},t?.container),style:{...x,...n?.container},onClick:b,...v,children:[i&&R1("span",{className:Yi("cleen-size-2 cleen-rounded-[50%]",P,t?.dot),style:{...I,...n?.dot}}),p,l??u,s&&R1(He,{className:Yi("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 kB}from"@cleen/ui-core";import{useContext as TB,useState as qI}from"react";import{jsx as Dt,jsxs as NB}from"react/jsx-runtime";var KI=({filter:e,activeTabId:t})=>{let[o,n]=qI(!1),[l,r]=qI(!1),{labels:a,onFilterDelete:i,onFilterPin:p,onFilterSelect:s,onFilterUnpin:d,setIsFiltersDropdownOpen:f}=TB(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:NB("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(Ka,{name:"pin",className:kB("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 BB,Fragment as RB,useMemo as YI,useState as QI}from"react";import{cn as E1}from"@cleen/ui-core";var Vl={horizontal:{list:"cleen-flex cleen-flex-wrap cleen-mb-4"},vertical:{container:"cleen-flex cleen-gap-4",list:"cleen-flex cleen-flex-col",content:"cleen-flex-1"}},XI=e=>{let t=e==="vertical";return{underlined:{list:E1("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:E1("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:E1("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 zl,jsxs as ZI}from"react/jsx-runtime";var Zi=(e,t)=>e?.id??String(t),Hl=BB(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]=QI(0),I=l!==void 0?l:v,[x,S]=QI(p??[]),L=i??x,T=YI(()=>{if(!a){let w=t?.[I];return w?[w]:[]}return t?.filter((w,k)=>L.includes(Zi(w,k)))??[]},[t,a,I,L]),N=(w,k)=>a?L.includes(Zi(w,k)):I===k,F=(w,k)=>{if(a){let D=Zi(k,w),B=L.includes(D),A=t?.map((_,R)=>Zi(_,R)).filter(_=>_===D?!B:L.includes(_))??[];S(A),s?.(A)}else C(w);r?.(w,k)},M=YI(()=>XI(n),[n]);return zl("div",{className:Fo("cleen",d),style:m,ref:u,...y,children:ZI("div",{className:Fo(Vl[n].container,f?.container),style:b?.container,children:[zl("nav",{className:Fo(M[o].list,Vl[n].list,f?.list),"aria-label":"Tabs",style:b?.list,children:t?.map((w,k)=>{let D=N(w,k),B=w?.isDisabled;return ZI("button",{type:"button",disabled:B,onClick:()=>F(k,w),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",!B&&"cleen-cursor-pointer",M[o].tab,Vl[n].tab,f?.tab,B?Fo(M[o].tabDisabled,f?.tabDisabled):D?Fo(M[o].tabActive,f?.tabActive):Fo(M[o].tabInactive,f?.tabInactive)),style:{...b?.tab,...B?b?.tabDisabled:D?b?.tabActive:b?.tabInactive},"aria-current":D?"page":void 0,children:[w?.label,!!w?.badge?.label&&zl(Le,{variant:"rounded",color:D?"blue":"gray",...f?.count,...b?.count,...w.badge})]},w?.id||k)})}),T.some(w=>!!w?.content)&&zl("div",{className:Fo("h-full",a&&"cleen-flex cleen-flex-col cleen-gap-4",Vl[n].content,f?.content),style:b?.content,children:T.map((w,k)=>zl(RB,{children:w?.content},w?.id||k))})]})})});import{useContext as EB,useState as LB}from"react";import{jsx as kn,jsxs as FB}from"react/jsx-runtime";var DB=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},JI=({selectedSavedFilter:e,filters:t,isFiltersFetching:o,onFilterCategoryChange:n})=>{let[l,r]=LB("all"),{labels:a,classNames:i,styles:p,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:d}=EB(ft);return kn(Bl,{isOpen:s,onOpenChange:d,leftIcon:kn(Ra,{className:"cleen-size-5"}),label:e?.title??a?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...p?.dropdown,children:FB("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[kn(Hl,{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?.(DB(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(KI,{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 AB,useEffect as OB,useId as _B,useState as VB}from"react";import{jsx as Tn,jsxs as L1}from"react/jsx-runtime";var D1=AB(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},P){let I=typeof l=="boolean",[x,S]=VB(r);OB(()=>{I||S(r)},[r,I]);let L=I?l:x,T=_B(),N=i?`${T}-title`:void 0,F=p?`${T}-label`:void 0,M=[N,F].filter(Boolean).join(" ")||void 0,w=()=>{f||(I||S(!x),a?.(!L))};return Tn("div",{className:lo("cleen",b),style:y,children:L1("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}),L1("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":L,"aria-labelledby":M,disabled:f,onClick:w,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",L?"cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]":"cleen-bg-neutral-200 hover:cleen-bg-neutral-300",m?.switch),style:u?.switch,ref:P,...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",L?"cleen-translate-x-5":"cleen-translate-x-0",m?.check),style:u?.check})}),(p||d)&&L1("div",{className:lo("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:u?.labelContainer,children:[p&&Tn("span",{id:F,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 zB}from"react";import{Fragment as HB,jsx as jI,jsxs as UB}from"react/jsx-runtime";var eC=()=>{let{classNames:e,styles:t,labels:o,saveStepValues:n,setSaveStepValues:l,errors:r,clearError:a}=zB(ft);return UB(HB,{children:[jI(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}),jI(D1,{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 tC={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 GB}from"@cleen/ui-core";import{useState as F1}from"react";import{jsx as $B}from"react/jsx-runtime";var oC=({children:e,value:t})=>{let[o,n]=F1(!1),[l,r]=F1(Xi),{errors:a,setError:i,clearError:p}=GB({}),[s,d]=F1(!1),f=()=>{n(!1),t?.onClose?.()};return $B(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 WB,cn as nC}from"@cleen/ui-core";import{forwardRef as rC,useContext as qB}from"react";import{Fragment as YB,jsx as Ao,jsxs as QB}from"react/jsx-runtime";var KB=rC(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:P,onFilterUnpin:I,...x},S){return Ao(oC,{value:{selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,classNames:r,styles:a,labels:WB(tC,i),withSavedFilters:p,onClear:s,onSave:d,onCancel:f,onApply:m,onClose:b,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:v,onFilterPin:C,onFilterSelect:P,onFilterUnpin:I},children:Ao(XB,{...x,ref:S,children:l})})}),XB=rC(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}=qB(ft);return Ao(o1,{footer:Ao(RI,{}),headerCloseBtn:Ao(te,{onClick:()=>{b?.(),u?.(void 0)},leftIcon:Ao(dt,{}),variant:"secondary",...s?.clearBtn,...d?.clearBtn,children:f?.clear}),classNames:{...s,content:nC("cleen-space-y-4",s?.content),footer:nC("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(eC,{}):QB(YB,{children:[m&&Ao(JI,{filters:i,selectedSavedFilter:a,onFilterCategoryChange:y,isFiltersFetching:p}),t]})})});import{cn as Er}from"@cleen/ui-core";import{forwardRef as ZB}from"react";import{jsx as Ji,jsxs as aC}from"react/jsx-runtime";var lC=ZB(({title:e,titleTooltip:t,subtitle:o,required:n,labelProps:l,children:r,className:a,classNames:i,style:p,styles:s,...d},f)=>Ji("div",{ref:f,className:Er("cleen",a),style:{...p,width:"100%"},...d,children:aC("div",{className:Er("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:s?.container,children:[aC("div",{className:Er("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:s?.titleColumn,children:[Ji(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&&Ji("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})]}),Ji("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})]})}));lC.displayName="FormGroup";import{cn as Ve,useDebounce as JB,useOutsideClick as jB,usePositionClose as eR,ZIndex as tR}from"@cleen/ui-core";import{useEffect as ji,useMemo as A1,useRef as O1,useState as wt}from"react";import{createPortal as oR}from"react-dom";import{Fragment as aR,jsx as oe,jsxs as et}from"react/jsx-runtime";function nR(e){return e!==null&&typeof e=="object"}function qe(e,t){if(nR(e)&&t in e)return e[t]}function cC(e,t){let o=qe(e,t);return Array.isArray(o)?o:[]}function iC(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 rR=({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:P,itemSubtitleKey:I,newValueMinLength:x=2,isLoading:S=!1,isGroupSaving:L=!1,isItemSaving:T=!1,selectedColor:N="rgb(var(--cleen-primary-100))",hasFiltering:F=!0,zIndex:M=tR.POPOVER,className:w,classNames:k,style:D,styles:B})=>{let[A,_]=wt(!1),[R,E]=wt(!1),[O,z]=wt(!1),[V,W]=wt(!1),[J,H]=wt(null),[U,K]=wt(null),[$,Y]=wt(""),[ae,be]=wt(""),[pe,Me]=wt(null),q=O1(void 0),[Q,G]=wt(""),[re]=JB(Q,500),[se,ye]=wt(""),ue=O1(null),xe=O1(null),{positionStyles:Z,isMounted:Re}=eR({triggerRef:ue,targetRef:xe,position:e,isOpen:A,offset:10});jB({refs:[xe],handler:()=>_(!1),enabled:A});let Oe=A1(()=>o??[],[o]),Se=A1(()=>{let X=new Map;for(let ee of Oe){let ge=qe(ee,b);ge!=null&&X.set(ge,cC(ee,u))}return X},[Oe,b,u]),Ye=A1(()=>{let X=[];return J==null?X=Array.from(Se?.values()).flat():X=Se?.get(J)??[],F&&se.trim()!==""&&(X=X.filter(ee=>{let ge=String(qe(ee,P)??""),_e=I?String(qe(ee,I)??""):"";return ge.toLowerCase().includes(se?.toLowerCase()??"")||_e.toLowerCase().includes(se?.toLowerCase()??"")})),X},[J,Se,se,P,I,F]);ji(()=>{let X=q.current!==n;if(q.current=n,n==null){X&&(K(null),H(null));return}let ge=Array.from(Se?.values())?.flat()?.find(_e=>qe(_e,v)===n);if(ge){let _e=qe(ge,C)??null;K(ge),H(_e)}else X&&K(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);H(typeof ge=="string"||typeof ge=="number"?ge:null),K(ee),Me(null),m?.(ee)},[pe,Se,v,C,m]),ji(()=>{f&&f(re??"")},[re,f]),ji(()=>{A||(E(!1),z(!1),Y(""),be(""))},[A]);let lt=X=>{X===J?(H(null),K(null),m?.(null)):(K(null),H(X),m?.(null))},ea=X=>{let ee=qe(X,C);H(typeof ee=="string"||typeof ee=="number"?ee:null),K(X),m?.(X),_(!1)};async function Zn(){if(!i)return;let X={[y]:$};try{let ee=await i(X);if(ee?.success){E(!1),Y(""),a&&await a();let ge=iC(ee,b);ge!=null&&(H(ge),K(null),m?.(null))}}catch{}}async function le(){if(!p)return;let X={[P]:ae,...J!=null?{[C]:J}:{}};try{let ee=await p(X);ee?.success&&(z(!1),be(""),Me(iC(ee,v)),a&&await a())}catch{}}return oe("div",{className:Ve("cleen",w),style:D,children:et("div",{ref:ue,className:Ve("cleen-relative cleen-w-full cleen-cursor-pointer",k?.container),style:B?.container,onClick:X=>{X.stopPropagation(),_(!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":!A})}),value:Q,onChange:X=>{H(null),K(null),G(X.target.value)},classNames:{input:A?"":"cleen-cursor-pointer"},className:k?.input,style:B?.input}),A&&oR(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`,...B?.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:B?.leftColumn,children:S?oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:oe(ce,{size:"sm"})}):o?.map((X,ee)=>{let ge=qe(X,b),_e=ge===J,Jn=String(qe(X,y)??""),ta=cC(X,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:{...B?.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:B?.groupItemTitle,children:Jn}),oe(Le,{color:"lighter-blue",label:ta})]}),l?.length>0&&oe("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Te=>{Te.stopPropagation(),s?.(X)},children:oe(Mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(Te=>{let Yo=Te?.disabledOptionCallback?.(X);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(X)},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}),R?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:X=>Y(X.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?L?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:B?.newGroupButton,onClick:()=>E(!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:B?.rightColumn,children:[F&&et(aR,{children:[oe(Ie,{leftIcon:oe(Ct,{className:"cleen-size-5"}),className:Ve("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!V}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:X=>ye(X.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":!V}),onClick:()=>W(X=>!X),children:oe(ha,{className:Ve("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",V?"-cleen-rotate-90":"cleen-rotate-90")})})]}),S?oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:oe(ce,{size:"sm"})}):Ye?.map((X,ee)=>{let ge=qe(X,v),_e=U&&qe(U,v)===ge,Jn=String(qe(X,P)??""),ta=I?String(qe(X,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:{...B?.item||{},..._e?{backgroundColor:N}:{}},onClick:Te=>{Te.stopPropagation(),Te.preventDefault(),ea(X)},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:B?.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:B?.itemSubtitle,children:ta})]}),r?.length>0&&oe("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Te=>{Te.stopPropagation(),d?.(X)},children:oe(Mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:r?.map(Te=>{let Yo=Te?.disabledOptionCallback?.(X);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(X)},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}),O?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:X=>be(X.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:B?.newItemButton,onClick:()=>z(!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),!A&&U&&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:()=>_(!0),children:oe("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(qe(U,P)??"")})})]})})};import{cn as $e,useDebounce as lR,useOutsideClick as cR,usePositionClose as iR,ZIndex as sR}from"@cleen/ui-core";import{forwardRef as pR,useEffect as dC,useId as dR,useMemo as mC,useRef as es,useState as ts}from"react";import{createPortal as mR}from"react-dom";import{cn as Nn}from"@cleen/ui-core";import{jsx as Oo,jsxs as sC}from"react/jsx-runtime";var pC=({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 sC("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:[sC("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 fR,jsx as Fe,jsxs as os}from"react/jsx-runtime";var uR=pR(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:P=2,disabled:I=!1,isNoDataVisibleOnCreateNew:x=!0,zIndex:S=sR.DROPDOWN,className:L,classNames:T,style:N,styles:F,infoLabels:M,menuDetachedFromPortal:w,onInputChange:k,onChange:D,onCreateNewOption:B,createNewOptionLabelString:A,onLookupBlur:_,triggerBlurOnlyWhenOpen:R=!0,menuRef:E,...O},z){let[V,W]=ts(!1),J=es(null),H=es(null),U=E??J,{positionStyles:K,isMounted:$}=iR({triggerRef:H,targetRef:U,position:"bottom-left",isOpen:V,offset:4});cR({refs:[U,H],handler:()=>{W(!1),_?.()},enabled:R?V:!0});let[Y,ae]=ts(""),be=lR(Y,C),pe=C?be:Y,Me=es(pe),q=es(!1),Q=()=>{q.current=!1,ae("")},G=Array.isArray(i),[re,se]=ts([]),ye=G?i:re,ue=["inside","inside-badge"].includes(p),xe=(le,X=!1)=>{if(X){let ge=ye.filter(_e=>_e.value!==le.value);G||se(ge),D?.(ge);return}let ee;if(b===1)ee=[le];else{if(b&&ye.length>=b)return;ee=[...ye,le]}G||se(ee),D?.(ee),m&&b&&ee.length>=b&&(Q(),W(!1))},Z=mC(()=>f?a?.filter(le=>le?.label?.match(new RegExp(pe,"i"))):a,[a,pe,f]),Re=mC(()=>A&&B&&!s&&Y?.length>0&&!Z?.some(le=>le?.label===Y)?typeof A=="function"?A(Y):A:null,[A,B,s,Y,Z]);dC(()=>{if(Me.current!==pe)if(Me.current=pe,pe.length<P)W(!1);else{k?.(pe);let le=!!H.current?.contains(document.activeElement);q.current&&le&&W(!0)}},[pe,k,P]);let Oe=dR(),Se=le=>`${Oe}-option-${le}`,[Ye,lt]=ts(-1);dC(()=>{lt(-1)},[pe,V]);let ea=le=>{let X=Z?.length??0;switch(le.key){case"ArrowDown":if(!X)return;if(le.preventDefault(),!V){W(!0),lt(0);return}lt(ee=>(ee+1)%X);break;case"ArrowUp":if(!X)return;if(le.preventDefault(),!V){W(!0),lt(X-1);return}lt(ee=>(ee-1+X)%X);break;case"Home":if(!V||!X)return;le.preventDefault(),lt(0);break;case"End":if(!V||!X)return;le.preventDefault(),lt(X-1);break;case"Enter":{if(!V||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":V&&(le.preventDefault(),W(!1));break;default:break}},Zn=os("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:F?.menu?.container,children:[s?Fe(ce,{className:$e("cleen-py-3",T?.menu?.loader),style:F?.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:F?.menu?.noDataFound,children:r?.noDataFound}):Fe(pC,{options:Z,selection:ye,onChoose:xe,displaySubtextInline:u,activeIndex:Ye,getOptionId:Se,onActiveIndexChange:lt,...T?.menu?.list,...F?.menu?.list}),Re&&os("div",{className:$e("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",T?.createNewOption?.container),style:F?.createNewOption?.container,children:[Fe(xt,{...T?.createNewOption?.divider,...F?.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:F?.createNewOption?.value,onClick:()=>{let le=B?.(Y);typeof le=="boolean"&&!le||(Q(),W(!1))},children:Re})]})]});return Fe("div",{className:$e("cleen",L),style:N,children:os("div",{className:$e("cleen-flex cleen-flex-col cleen-w-full",T?.container),style:F?.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,...F?.label,children:n}),Fe("div",{ref:H,className:$e("cleen-relative cleen-flex cleen-items-center",T?.input?.container),style:F?.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)},...F?.input?.component,leftIcon:os(fR,{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(!V)},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>=P&&Y.length>=P&&W(!0)},value:Y,onChange:le=>{q.current=!0,ae(le.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":V,"aria-controls":V?Oe:void 0,"aria-activedescendant":V&&Ye>=0?Se(Ye):void 0,onKeyDown:ea,ref:z,required:d,disabled:I,...O})}),V&&(w?Fe("div",{ref:U,children:Zn}):mR(Fe("div",{className:"cleen",children:Fe("div",{ref:U,className:$e("cleen-absolute",{"cleen-opacity-0":!$}),style:{zIndex:S,top:`${K.top}px`,left:`${K.left}px`,minWidth:H.current?.offsetWidth?`${H.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:F?.pillbadge?.container,children:ye?.map(le=>Fe(Le,{label:y?y(le):le?.label,color:v,removeable:!I,onRemoveClicked:()=>{if(I)return;let X=ye?.filter(ee=>ee?.value!==le?.value);G||se(X),D?.(X)},...T?.pillbadge?.component,...F?.pillbadge?.component},le.value))}),(M?.errorMessage||M?.infoMessage||M?.subtitle)&&Fe(ie,{...M})]})})});import{cn as Ce}from"@cleen/ui-core";import{forwardRef as hR}from"react";import gR from"react-markdown";import bR from"remark-gfm";import{jsx as ve}from"react/jsx-runtime";var yR=hR(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(gR,{...i,remarkPlugins:[bR],components:{...s,...t},children:o})})});import{cn as Bn,useBodyScrollLock as vR,useCleenOverlays as uC,ZIndex as IR}from"@cleen/ui-core";import{forwardRef as CR,useCallback as xR,useEffect as _1,useId as PR,useRef as SR,useState as fC}from"react";import{createPortal as wR}from"react-dom";import{jsx as Ul,jsxs as gC}from"react/jsx-runtime";var MR={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},hC=300,kR=CR(function({isOpen:t=!1,onClose:o,closeOnOverlayClick:n=!0,closeButtonIcon:l=Ul(He,{className:"cleen-size-5"}),header:r,footer:a,zIndex:i=IR.MODAL,size:p="md",color:s,p:d,gap:f,radius:m=16,className:b,classNames:y,style:u,styles:v,children:C,...P},I){let[x,S]=fC(t),[L,T]=fC(t),N=SR(null),F=PR(),{addOverlay:M,removeOverlay:w}=uC(),k=xR(()=>{S(!1),setTimeout(()=>o?.(),hC)},[o]);return _1(()=>{if(t){T(!0);let D=setTimeout(()=>S(!0),1);return()=>clearTimeout(D)}else{S(!1);let D=setTimeout(()=>T(!1),hC);return()=>clearTimeout(D)}},[t]),_1(()=>{if(t)return M(F),()=>w(F)},[M,w,t,F]),_1(()=>{let D=B=>{let{overlays:A}=uC.getState();B.key==="Escape"&&A[A.length-1]===F&&k()};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[k,F]),vR(L),L?wR(gC("div",{className:Bn("cleen",b),style:u,ref:I,...P,children:[Ul("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"}),Ul("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:gC(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:MR[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&&Ul("div",{className:Bn("cleen-top-3 cleen-right-3 cleen-absolute"),children:Ul(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 TR,jsxs as bC}from"react/jsx-runtime";var yC={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}},ns={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},vC=3,IC=180,CC=15e3,Lr="general",Gl={[Lr]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},xC={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"},PC={"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"},$l={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=>bC(TR,{children:[bC("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 V1={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},SC=({exitDuration:e=IC}={})=>{let t=V1,o=new Set,n=new Map,l=new Map,r=0,a=M=>{t={...t,...M},o.forEach(w=>w())},i=M=>{let w=n.get(M);!w||w.handle||t.paused||(w.startedAt=Date.now(),w.handle=setTimeout(()=>v(M),w.remaining))},p=M=>{let w=n.get(M);w?.handle&&(clearTimeout(w.handle),w.remaining=Math.max(0,w.remaining-(Date.now()-(w.startedAt??Date.now()))),w.handle=null,w.startedAt=null)},s=M=>{let w=n.get(M);w?.handle&&clearTimeout(w.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 w=l.get(M);w&&(l.delete(M),w.ids.delete(M),w.ids.size||clearTimeout(w.handle))},m=M=>{M.forEach(D=>l.delete(D));let w=t.toasts.filter(D=>!M.includes(D.id)),k=w.some(D=>!D.leaving);a({toasts:w,...!k&&{ui:V1.ui}})},b=M=>{f(M.id);let w=t.toasts.some(k=>k.id===M.id);return d(M),a({toasts:w?t.toasts.map(k=>k.id===M.id?M:k):[...t.toasts,M]}),M.id},y=(M,w)=>{let k=t.toasts.find(B=>B.id===M);if(!k||k.leaving)return;let D={...k,...w};("priority"in w||"duration"in w)&&d(D),a({toasts:t.toasts.map(B=>B.id===M?D:B)})},u=M=>{let w=t.toasts.filter(B=>M.includes(B.id)&&!B.leaving);if(!w.length)return;w.forEach(B=>s(B.id));let k=w.filter(B=>B.animationType==="none"||e<=0).map(B=>B.id),D=w.filter(B=>!k.includes(B.id)).map(B=>B.id);if(D.length){let B=t.toasts.filter(R=>!R.leaving).length;a({toasts:t.toasts.map(R=>D.includes(R.id)?{...R,leaving:!0,leavingFromCount:B}:R)});let A=new Set(D),_=setTimeout(()=>m([...A]),e);D.forEach(R=>l.set(R,{handle:_,ids:A}))}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,w)=>p(w)),a({paused:!0}))},resumeAll:()=>{t.paused&&(a({paused:!1}),n.forEach((M,w)=>i(w)))},setExpanded:M=>a({ui:{...t.ui,expanded:M}}),toggleGroup:M=>{let{expandedGroups:w}=t.ui;a({ui:{...t.ui,expandedGroups:w.includes(M)?w.filter(k=>k!==M):[...w,M]}})},resetUi:()=>a({ui:V1.ui}),getTimer:M=>{let w=n.get(M);if(!w)return;let k=w.startedAt?Date.now()-w.startedAt:0;return{duration:w.duration,remaining:Math.max(0,w.remaining-k),revision:w.revision}},subscribe:M=>(o.add(M),()=>{o.delete(M)}),getSnapshot:()=>t}},me=SC();var NR=0,wC=({id:e,variant:t="default",priority:o,actions:n,duration:l,closeButton:r=!0,hideProgressBar:a,animationType:i="slide",...p})=>{let s=yC[t];return me.add({...p,id:e??`cleen-notification-${++NR}`,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()})},BR=(e,{hideProgressBar:t,...o})=>me.update(e,{...o,...t!==void 0&&{progressBar:!t}}),Rn={show:wC,update:BR,dismiss:me.dismiss,dismissMany:me.dismissMany,clear:me.clear};import{useSyncExternalStore as RR}from"react";var rs=()=>RR(me.subscribe,me.getSnapshot,me.getSnapshot);import{useMemo as ER}from"react";var LR=()=>{let{toasts:e,paused:t}=rs();return{toasts:ER(()=>e.filter(n=>!n.leaving),[e]),paused:t,show:Rn.show,update:Rn.update,dismiss:Rn.dismiss,dismissMany:Rn.dismissMany,clear:Rn.clear}};var MC={critical:0,important:1,normal:2},z1=e=>e.filter(t=>!t.leaving),as=e=>[...e].reverse(),TC=e=>[...e].sort((t,o)=>MC[t.priority]-MC[o.priority]),Dr=e=>!!e.actions?.length&&e.priority!=="normal",NC=e=>e.category??Lr,En=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),H1=e=>e.map(En),kC=(e,t)=>(e.leavingFromCount??0)>t,Fr=(e,t,o)=>{let n=z1(e);if(n.length>t)return o(n);let l=e.filter(r=>r.leaving&&kC(r,t));return!n.length&&l.length>t?o(l).map(r=>({...r,exiting:!0})):H1(e.filter(r=>!r.leaving||!kC(r,t)))};var U1=(e,t,o)=>Fr(e,o,n=>{let l=TC(as(n)),r=l.filter(u=>u.priority==="critical"),a=l.filter(u=>u.priority!=="critical"),i=new Map;a.forEach(u=>{let v=NC(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 G1=(e,t,o=1/0)=>Fr(e,o,n=>[...H1(n),{type:"footer",key:"footer",overflow:[],toasts:n}]);var $1=(e,t,o)=>Fr(e,o,n=>{let l=as(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 BC={list:G1,stack:$1,group:U1};import{createContext as DR,useContext as FR}from"react";var W1=DR({categories:Gl,labels:$l,hiddenElements:[],now:Date.now(),paused:!1}),ke=()=>FR(W1);import{cn as AR,getTimeAgoLabel as OR}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:AR(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},ls=(e,t,o)=>{let n=Math.floor(Math.max(0,t-e));return typeof o.timeAgo=="function"?o.timeAgo(n):OR(n,o?.timeAgoStamps)},RC=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 _R}from"@cleen/ui-core";import{jsx as EC}from"react/jsx-runtime";var cs=({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 EC("span",{...j(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:EC(Le,{color:o?"red":"primary",variant:"full",label:o?t.labels.critical:t.labels.action,classNames:{container:_R("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 LC}from"@cleen/ui-core";import{Fragment as VR,jsx as _o}from"react/jsx-runtime";var DC=({icon:e,tone:t="neutral",size:o="md",className:n,...l})=>{let r=o==="sm"?14:18;return _o("span",{className:LC("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",xC[t],n),"aria-hidden":"true",...l,children:_o(Ee,{name:e,width:r,height:r})})},q1=({category:e,...t})=>{let o=ke(),n=Ar(o,e);return _o(DC,{icon:n.icon,tone:n.tone,...t})},is=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return _o(VR,{children:e.icon});if(e.category)return _o(q1,{category:e.category,size:t});let o=ns[e.variant];return o?_o(DC,{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:LC("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 K1}from"@cleen/ui-core";import{Fragment as zR,jsx as Wl,jsxs as X1}from"react/jsx-runtime";var FC=({toast:e,children:t})=>{let o=ke(),n=e.title!==void 0&&e.title!==null,l=e.icon===void 0&&(!!e.category||!!ns[e.variant]),r=Wl(is,{toast:e}),a=Wl(cs,{toast:e});return X1(zR,{children:[(e.icon!==void 0||l||e.variant!=="default")&&Wl("span",{...j(o,"icon",K1("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!l}),e),children:r}),X1("div",{...j(o,"body",K1("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[n?X1("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[Wl("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,Wl("span",{...j(o,"message",K1("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":n,"cleen-text-foreground":!n}),e),children:e.message}),t]})]})};import{useState as HR}from"react";import{jsx as UR}from"react/jsx-runtime";var AC=({toast:e})=>{let t=ke(),[o]=HR(()=>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 UR("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 GR}from"@cleen/ui-core";import{jsx as ps,jsxs as ss}from"react/jsx-runtime";var ds=({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 ss("div",{role:r?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||a?void 0:0,onKeyDown:p,...j(o,"toast",GR("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)&&RC(e),e.className),e),children:[ss(FC,{toast:e,children:[s&&ss("span",{...j(o,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[Ar(o,e.category).label," \xB7"," ",ls(e.createdAt,o.now,n)]}),a&&ss("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 ps(te,{variant:f.variant??(m?"secondary":"primary"),label:f.label,onClick:()=>{f.onClick?.(e),i()},...Ft(b)},`${f.label}-${m}`)}),ps(te,{variant:"secondary",label:n.dismiss,onClick:i,...Ft(j(o,"dismissButton",tt,e))})]})]}),e.closeButton&&ps(Ln,{icon:"X",label:n.close,onClick:i,...j(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),d&&ps(AC,{toast:e},me.getTimer(e.id)?.revision)]})};import{Fragment as $R,jsx as Or,jsxs as ms}from"react/jsx-runtime";var OC="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",_C=({top:e,hidden:t})=>{let o=ke(),{labels:n}=o,l=[e.id,...t.map(r=>r.id)];return ms($R,{children:[ms("div",{...j(o,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[Or(ds,{toast:e,inDeck:!0}),Or("span",{"aria-hidden":"true",...j(o,"deckPeek",`${OC} 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",`${OC} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!o.hiddenElements.includes("deckMoreBar")&&ms("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)}),ms("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 WR}from"@cleen/ui-core";import{Fragment as qR,jsx as us,jsxs as KR}from"react/jsx-runtime";var VC=({count:e})=>{let t=ke(),{labels:o,onViewAll:n}=t;if(t.hiddenElements.includes("overflowPill"))return null;let l=KR(qR,{children:[o.overflow(e),us("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:us(Ee,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),r=j(t,"overflowPill",WR("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?us("button",{type:"button",onClick:()=>n(),...r,children:l}):us("span",{...r,children:l})};import{jsx as zC,jsxs as XR}from"react/jsx-runtime";var HC=({overflow:e,toasts:t})=>{let o=ke(),n=!o.hiddenElements.includes("dismissAllButton");return!n&&!e.length?null:XR("div",{...j(o,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[n&&zC("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&&zC(VC,{count:e.length})]})};import{jsx as Dn,jsxs as fs}from"react/jsx-runtime";var hs=({toast:e,onDismiss:t})=>{let o=ke(),n=e.actions?.[0],l=e.title!==void 0&&e.title!==null;return fs("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(is,{toast:e,size:"sm"})}),fs("div",{...j(o,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[fs("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(cs,{toast:e})]}),l&&Dn("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),fs("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 YR,useLayoutEffect as QR,useRef as ZR}from"react";var JR='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',gs=(e,t,o)=>{let n=ZR(!1);return YR(()=>{e.current?.focus({preventScroll:!0})},[e]),QR(()=>{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(JR)],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 jR}from"react";import{Fragment as tE,jsx as Ke,jsxs as co}from"react/jsx-runtime";var Y1=3,eE=({toasts:e,onCollapse:t})=>{let o=jR(null),n=gs(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(hs,{toast:l,onDismiss:me.dismiss},l.id))})},UC=({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(q1,{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(tE,{children:[l.needAction(s)," \xB7 "]}),ls(d,n.now,l)]})]})]}),o?Ke(eE,{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,Y1).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>Y1&&!a.includes("groupMore")&&Ke("span",{...j(n,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:l.more(t.length-Y1)})]}),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 oE}from"react";import{jsx as Vo,jsxs as bs}from"react/jsx-runtime";var GC=({toasts:e})=>{let t=ke(),{labels:o,onViewAll:n}=t,l=oE(null),r=()=>me.setExpanded(!1),a=gs(l,e.length,r);return bs("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:[bs("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:[bs("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(hs,{toast:i,onDismiss:me.dismiss},i.id))}),bs("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 nE,useState as rE}from"react";var $C=e=>{let[t,o]=rE(()=>Date.now());return nE(()=>{if(!e)return;o(Date.now());let n=setInterval(()=>o(Date.now()),CC);return()=>clearInterval(n)},[e]),t};import{cn as Z1}from"@cleen/ui-core";import{forwardRef as aE,useCallback as lE,useEffect as Q1,useMemo as WC,useRef as qC}from"react";import{jsx as io}from"react/jsx-runtime";var cE=e=>{switch(e.type){case"toast":return io(ds,{toast:e.toast},e.key);case"deck":return io(_C,{top:e.top,hidden:e.hidden},e.key);case"list":return io(GC,{toasts:e.toasts},e.key);case"group":return io(UC,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return io(HC,{overflow:e.overflow,toasts:e.toasts},e.key)}},iE=(e,t)=>io("div",{"aria-hidden":"true",className:Z1("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:cE(e)},e.key),sE=aE(function({layout:t="list",maxVisible:o=vC,position:n="bottom-right",categories:l,onViewAll:r,labels:a,classNames:i,styles:p,hiddenElements:s,className:d,style:f,...m},b){let y=rs(),u=z1(y.toasts).length,v=$C(y.toasts.length>0),C=qC(null),P=qC(!1),I=WC(()=>BC[t](y.toasts,y.ui,o),[t,y.toasts,y.ui,o]),x=WC(()=>({categories:{...Gl,...l},labels:{...$l,...a},classNames:i,styles:p,hiddenElements:s??[],onViewAll:r,now:v,paused:y.paused}),[l,a,i,p,s,r,v,y.paused]);Q1(()=>{let{expanded:N,expandedGroups:F}=y.ui,M=y.toasts.some(w=>w.leaving);u<=o&&!M&&(N||F.length)&&me.resetUi()},[u,o,y.toasts,y.ui]);let S=lE(()=>{let N=document.activeElement,F=!!(N&&C.current?.contains(N))&&!!N?.matches(":focus-visible");P.current||F?me.pauseAll():me.resumeAll()},[]);Q1(()=>{u||(P.current=!1),S()},[u,S]),Q1(()=>{let N=F=>{P.current&&!C.current?.contains(F.target)&&(P.current=!1,S())};return document.addEventListener("pointermove",N,{passive:!0}),()=>document.removeEventListener("pointermove",N)},[S]);let L=N=>{P.current=N,S()},T=()=>requestAnimationFrame(S);return io("div",{className:Z1("cleen",d),style:f,ref:b,children:io(W1.Provider,{value:x,children:io("div",{role:"region","aria-live":"polite","aria-label":x.labels.region,ref:C,onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),onFocus:T,onBlur:T,...j(x,"region",Z1("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",PC[n])),...m,children:I.map(N=>iE(N,n.endsWith("left")?"cleen-items-start":n.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as KC}from"@cleen/ui-core";import{forwardRef as pE,useState as dE}from"react";import{jsx as J1,jsxs as mE}from"react/jsx-runtime";var j1=pE(({totalPages:e,labels:t,onGoToPage:o,classNames:n,styles:l,...r},a)=>{let[i,p]=dE(""),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 J1("div",{className:"cleen",...r,children:mE("div",{className:KC("cleen-flex cleen-items-center cleen-gap-2",n?.container),style:l?.container,children:[J1("span",{className:KC("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",n?.label),style:l?.label,children:t?.goToPage}),J1(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 ys,useOutsideClick as uE,usePositionClose as fE}from"@cleen/ui-core";import{forwardRef as hE,useRef as XC,useState as YC}from"react";import{createPortal as gE}from"react-dom";import{jsx as _r,jsxs as yE}from"react/jsx-runtime";var bE=[10,20,50,100],eg=hE(({pageSize:e,pageSizes:t=bE,labels:o,onPageSizeChange:n,classNames:l,styles:r,...a},i)=>{let[p,s]=YC(e??t?.[0]??void 0),[d,f]=YC(!1),m=XC(null),b=XC(null),{positionStyles:y,isMounted:u}=fE({triggerRef:m,targetRef:b,isOpen:d,position:"top-left"});return uE({refs:[m,b],handler:()=>f(!1),enabled:d}),_r("div",{className:"cleen",ref:i,...a,children:yE("div",{className:ys("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:ys("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&&gE(_r("div",{className:"cleen",children:_r("div",{ref:b,className:ys("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:ys("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 QC={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 vE,useCallback as vs,useMemo as IE,useRef as CE}from"react";import{jsx as ot,jsxs as PE}from"react/jsx-runtime";var xE=vE(({currentPage:e,totalPages:t,pageSize:o,pageSizes:n,hasGotoPage:l=!0,hasPageSizeSelector:r=!0,onPageChange:a,onPageSizeChange:i,labels:p=QC,classNames:s,styles:d,...f},m)=>{let b=CE(null),y=vs(()=>{e<t&&a?.(e+1)},[e,t,a]),u=vs(()=>{e>1&&a?.(e-1)},[e,a]),v=vs(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=vs(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]),P=IE(()=>{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:PE("div",{className:zo("cleen-flex cleen-justify-between cleen-gap-4",s?.container),style:d?.container,children:[r?ot(eg,{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:P}),l?ot(j1,{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 ZC}from"@cleen/ui-core";import{forwardRef as SE,useEffect as wE,useState as ME}from"react";import{jsx as Is,jsxs as JC}from"react/jsx-runtime";var kE={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},jC=SE(({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 P=n??kE[r]/2,I=P-l/2,x=I*2*Math.PI,[S,L]=ME(0);wE(()=>{let N=null;if(o===0){L(t);return}let F=M=>{N||(N=M);let w=M-N,k=Math.min(w/o*t,t);L(k),k<t&&requestAnimationFrame(F)};requestAnimationFrame(F)},[t,o]);let T=x-S/100*x;return Is("div",{ref:C,className:ZC("cleen",m),style:y,...v,children:JC("div",{className:ZC("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:[JC("svg",{height:P*2,width:P*2,style:{transform:"rotate(-90deg)"},children:[Is("circle",{stroke:i,fill:"transparent",strokeWidth:l,r:I,cx:P,cy:P}),Is("circle",{stroke:a,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:x,strokeDashoffset:T,r:I,cx:P,cy:P})]}),!s&&Is("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:d??P/2.5,color:p},children:f?f(S):`${Math.round(S)}%`})]})})});jC.displayName="ProgressCircle";import{cn as ht}from"@cleen/ui-core";import{useEffect as TE,useState as NE}from"react";import{Fragment as ex,jsx as so,jsxs as ql}from"react/jsx-runtime";var BE=({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]=NE(o);TE(()=>{u(o)},[o]);let v=(x,S)=>ql(ex,{children:[l&&l(x),a||(i?so(Ee,{name:i,className:ht("cleen-w-5 cleen-h-5",S?"cleen-text-primary":"cleen-text-neutral-700",d?.leftIcon),style:m?.leftIcon}):null)]}),C=(x,S)=>so("span",{className:ht("cleen-font-semibold",S?"cleen-text-primary":"cleen-text-neutral-700",d?.label),style:m?.label,children:x?.label}),P=(x,S)=>so("span",{className:ht("cleen-font-semibold cleen-text-16px",S?"cleen-text-primary":"cleen-text-neutral-700",d?.subLabel),style:m?.subLabel,children:x?.subLabel}),I=(x,S)=>ql(ex,{children:[r&&r(x),p&&so(Ee,{name:p,className:ht("cleen-w-5 cleen-h-5",S?"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 S=x?.id===y?.id;return ql("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",S?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",d?.box),style:m?.box,onClick:()=>{u(x),n?.(x)},children:[v(x,S),x?.label&&C(x,S),x?.subLabel&&P(x,S),I(x,S)]},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 S=x?.id===y?.id;return ql("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",S?"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,S)}),so("div",{className:ht("cleen-flex cleen-items-center cleen-justify-center",d?.labelContainer),style:m?.labelContainer,children:x?.label&&C(x,S)}),ql("div",{className:ht("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",d?.rightIconContainer),style:m?.rightIconContainer,children:[x?.subLabel&&P(x,S),I(x,S)]})]},x?.id)})})})};import{cn as Mt}from"@cleen/ui-core";import{forwardRef as LE,useEffect as DE,useId as FE,useRef as AE,useState as OE}from"react";import{cn as tx}from"@cleen/ui-core";import{forwardRef as RE}from"react";import{jsx as ox,jsxs as EE}from"react/jsx-runtime";var Cs=RE(function({checked:t,className:o,classNames:n,style:l,styles:r,...a},i){return EE("div",{className:tx("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:[ox("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...a}),ox("span",{className:tx("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",n?.innerCircle),style:r?.innerCircle})]})});import{jsx as At,jsxs as xs}from"react/jsx-runtime";var _E=LE(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,[P,I]=OE(m??o[0]?.id),x=FE(),S=`${x}-label`,L=s??`cleen-radio-group-${x}`;DE(()=>{!C&&m!==void 0&&I(m)},[m,C]);let T=C?b:P,N=R=>T!=null&&T==R,F=R=>{C||I(R),u?.(R)},M=AE([]),w=o?.findIndex(R=>!R.disabled&&N(R.id)),k=o?.findIndex(R=>!R.disabled),D=w>=0?w:Math.max(k,0),B=R=>{let E=o[R];!E||E.disabled||(F(E.id),M.current[R]?.focus())},A=(R,E)=>{let O=o.length;for(let z=1;z<O;z++){let V=(R+E*z+O)%O;if(!o[V]?.disabled)return V}return R},_=(R,E)=>{if(o.length)switch(R.key){case"ArrowDown":case"ArrowRight":R.preventDefault(),B(A(E,1));break;case"ArrowUp":case"ArrowLeft":R.preventDefault(),B(A(E,-1));break;default:break}};return At("div",{className:Mt("cleen",r),style:i,ref:v,children:xs("div",{className:a?.container,style:p?.container,children:[n&&At(de,{id:S,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?S: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((R,E)=>{let O=`${x}-${E}`,z=R.radioPosition??f,V=!!R.disabled;return xs("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",V?"cleen-cursor-not-allowed":"hover:cleen-bg-muted hover:cleen-border-neutral-300 cleen-cursor-pointer",d==="horizontal"&&"cleen-flex-1",N(R?.id)&&"cleen-border-primary hover:cleen-border-primary",a?.radioContainer,R?.className,N(R?.id)&&a?.radioActive),style:{...p?.radioContainer,...R?.style},onClick:W=>{!V&&W.target instanceof Element&&!W.target.closest("label, input, a, button")&&M.current[E]?.click()},children:[R.leftIcon,z==="left"&&At(Cs,{ref:W=>{M.current[E]=W},id:O,name:L,value:R.id,checked:N(R.id),disabled:V,tabIndex:E===D?0:-1,onChange:()=>F(R.id),onKeyDown:W=>_(W,E),className:Mt(V&&"cleen-opacity-50",a?.radioOuterCheckBox,R?.classNames?.outerCheckBox),style:{...p?.radioOuterCheckBox,...R?.styles?.outerCheckBox}}),xs("label",{htmlFor:O,className:Mt("cleen-flex-1",V?"cleen-cursor-not-allowed":"cleen-cursor-pointer",a?.radioLabelsContainer,R?.classNames?.labelsContainer),style:{...p?.radioLabelsContainer,...R?.styles?.labelsContainer},children:[xs("div",{className:Mt("cleen-flex cleen-items-center cleen-gap-1",V&&"cleen-opacity-50"),children:[At("span",{className:Mt("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",a?.radioTitle,R?.classNames?.title),style:{...p?.radioTitle,...R?.styles?.title},children:R.title}),At("span",{className:Mt("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",a?.radiotPostTitle,R?.classNames?.postTitle),style:{...p?.radiotPostTitle,...R?.styles?.postTitle},children:R.postTitle})]}),At("span",{className:Mt("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",a?.radioSubTitle,R?.classNames?.subTitle),style:{...p?.radioSubTitle,...R?.styles?.subTitle},children:R?.subTitle})]}),z==="right"&&At(Cs,{ref:W=>{M.current[E]=W},id:O,name:L,value:R.id,checked:N(R.id),disabled:V,tabIndex:E===D?0:-1,onChange:()=>F(R.id),onKeyDown:W=>_(W,E),className:Mt(V&&"cleen-opacity-50",a?.radioOuterCheckBox),style:p?.radioOuterCheckBox}),z==="hidden"&&At(Cs,{ref:W=>{M.current[E]=W},id:O,name:L,value:R.id,checked:N(R.id),disabled:V,tabIndex:E===D?0:-1,onChange:()=>F(R.id),onKeyDown:W=>_(W,E),className:"cleen-sr-only"}),R.rightIcon]},R?.id)})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&At(ie,{...y})]})})});import{cn as Vr,ColorHelpers as VE}from"@cleen/ui-core";import{forwardRef as zE,useRef as HE,useState as UE}from"react";import{jsx as Fn,jsxs as nx}from"react/jsx-runtime";var GE=zE(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:P,...I},x){let[S,L]=UE(0),T=i!==void 0,N=T?i:S,F=d?.length>0?d:Array.from({length:s},(R,E)=>E+1),M=HE([]),w=F.findIndex(R=>R===N),k=w>=0?w:0,D=R=>{T||L(R),p?.(R)},B=R=>{let E=F[R];E!==void 0&&(D(E),M.current[R]?.focus())},A=(R,E)=>{if(b)return;let O=F.length;if(O)switch(R.key){case"ArrowRight":case"ArrowUp":R.preventDefault(),B((E+1)%O);break;case"ArrowLeft":case"ArrowDown":R.preventDefault(),B((E-1+O)%O);break;case"Home":R.preventDefault(),B(0);break;case"End":R.preventDefault(),B(O-1);break;default:break}},_=typeof n=="string"?n:"Rating";return Fn("div",{className:Vr("cleen",u),style:v,ref:x,...I,children:nx("div",{className:Vr("cleen-space-y-2",C?.container),style:P?.container,children:[n&&Fn(de,{htmlFor:t,required:o,tooltip:l,className:Vr("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...P?.label,children:n}),nx("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Fn("div",{role:"radiogroup","aria-label":_,className:Vr("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...f?{gap:f}:{},...P?.list},children:F?.map((R,E)=>Fn("button",{id:t,ref:O=>{M.current[E]=O},role:"radio","aria-checked":N===R,"aria-label":`${R}`,tabIndex:E===k?0:-1,onClick:()=>D(R),onKeyDown:O=>A(O,E),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===R?{borderColor:y,backgroundColor:VE.trasparentize(y,.9),color:y}:{},...P?.item},type:"button",children:Fn("span",{className:Vr("cleen-font-medium cleen-text-sm",C?.value),style:P?.value,children:R})},R))}),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 $E}from"react";import{components as WE}from"react-select";import{jsx as tg,jsxs as rx}from"react/jsx-runtime";var ax=e=>{let[t,o]=$E(!1),n=e.data;return tg("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:tg(WE.Option,{...e,children:rx("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[rx("div",{className:"cleen-flex-1",children:[n?.label,n?.sublabel&&tg("p",{className:"cleen-text-xs",children:n?.sublabel})]}),typeof n?.icon=="function"?n.icon({...e,isHovered:t}):n?.icon]})})})};import{components as qE}from"react-select";import{jsx as og,jsxs as KE}from"react/jsx-runtime";var lx=e=>{let t=e.data;return og(qE.SingleValue,{...e,children:KE("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[og("p",{children:t?.label}),t?.sublabel&&og("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as Kl,ZIndex as dx}from"@cleen/ui-core";import{forwardRef as QE,useId as ZE,useState as mx}from"react";import JE from"react-select";import{components as XE}from"react-select";import{jsx as ng,jsxs as cx}from"react/jsx-runtime";var ix=({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 ng("div",{className:"cleen",children:cx(XE.MenuList,{options:o,...a,children:[r,n&&!e&&t&&t?.length>0&&!p&&cx("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[ng(xt,{}),ng("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 YE}from"react-select";import{jsx as sx}from"react/jsx-runtime";var px=({isLoading:e,noDataFound:t,...o})=>sx(YE.NoOptionsMessage,{...o,children:e?sx(ce,{}):t||"No data found"});import{jsx as Ho,jsxs as fx}from"react/jsx-runtime";var ux=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),jE=QE(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:P,...I},x){let[S,L]=mx(!1),[T,N]=mx(""),F=ZE(),M=I.inputId??l??r??F,w=(D,B)=>{if(!ux(D.data))return!1;let{labelString:A,label:_}=D.data;return A?A.toLowerCase().includes(B.toLowerCase()):typeof _=="string"?_.toLowerCase().includes(B.toLowerCase()):!1},k=D=>ux(D)?D.labelString??(typeof D.label=="string"?D.label:""):"";return Ho("div",{className:Kl("cleen",i),style:y,ref:x,children:fx("div",{className:Kl("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",p?.cleenContainer),style:u?.cleenContainer,children:[(t||n)&&fx("div",{className:Kl("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:Kl("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",p?.labels?.sublabel),style:u?.labels?.sublabel,children:n})]}),Ho(JE,{...C&&{menuIsOpen:S,inputValue:T,onInputChange:D=>N(D),onMenuOpen:()=>L(!0),onMenuClose:()=>L(!1)},...!I.filterOption&&{filterOption:w},...!I.getOptionLabel&&{getOptionLabel:k},id:l||r,classNames:p,isDisabled:d,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:M,className:Kl("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",p?.inputOuterContainer),styles:{...u,control:(D,B)=>{let A={...D,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:f&&B.hasValue?"600":"400",borderColor:v?.errorMessage?"rgba(var(--cleen-error), 0.7)":"rgb(var(--cleen-border))",color:B.isDisabled?"rgb(var(--cleen-neutral-500))":"rgb(var(--cleen-foreground))",backgroundColor:B.isDisabled?"rgb(var(--cleen-neutral-100))":"rgba(var(--cleen-background))",boxShadow:B.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(A,B):A},menuPortal:(D,B)=>{let A={...D,zIndex:dx.SELECT,...u?.menuPortal};return u?.menuPortal?u?.menuPortal(A,B):A},menu:(D,B)=>{let A={...D,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:dx.SELECT,...u?.menu};return u?.menu?u?.menu(A,B):A},option:(D,B)=>{let A={...D,backgroundColor:B.isSelected?"rgba(var(--cleen-primary))":B.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:B.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-foreground))",fontWeight:f?"600":"400","&:hover":B.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:B.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(A,B):A},menuList:(D,B)=>{let A={...D,"::-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(A,B):A},singleValue:(D,B)=>{let A={...D,color:B.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return u?.singleValue?u?.singleValue(A,B):A},input:(D,B)=>{let A={...D,color:"rgba(var(--cleen-foreground))"};return u?.input?u?.input(A,B):A}},components:{IndicatorSeparator:()=>null,SingleValue:D=>Ho(lx,{...D}),NoOptionsMessage:D=>Ho(px,{isLoading:s,noDataFound:m?.noDataFound,...D}),MenuList:D=>Ho(ix,{isLoading:s,inputValue:T,createNewOptionCallback:C,createNewOptionLabelStringCb:P,...D}),Option:ax,...b}}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Ho(ie,{...v})]})})});import{jsx as hx,jsxs as eL}from"react/jsx-runtime";function gx({children:e,title:t,className:o="",renderHeader:n}){return eL("div",{className:`cleen-w-full cleen-h-full ${o}`,"data-testid":`drawer-container-${t}`,children:[n?n(t):hx("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),hx("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as po}from"@cleen/ui-core";import{forwardRef as tL,useState as oL}from"react";import{Fragment as lL,jsx as gt,jsxs as Ps}from"react/jsx-runtime";function nL({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 bx({item:e,depth:t,iconSize:o=24,classNames:n,styles:l}){let[r,a]=oL(!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=Ps(lL,{children:[Ps("div",{className:po("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[gt(nL,{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)&>(Le,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return p?Ps("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[Ps("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(bx,{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 rL=tL(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(bx,{item:C,depth:0,iconSize:r,classNames:b,styles:u})})}),aL=rL;import{cn as mo}from"@cleen/ui-core";import{useEffect as pL,useLayoutEffect as dL,useRef as zr,useState as mL}from"react";import{cn as Xl}from"@cleen/ui-core";import{useMemo as cL}from"react";import{Link as iL}from"react-router-dom";import{jsx as Yl,jsxs as sL}from"react/jsx-runtime";function Ql({item:e,activeId:t,onClick:o,countBadge:n,classNames:l,styles:r,renderIcon:a}){let i=t===e?.id,p=cL(()=>e?a?a(e,i):e.icon?e.icon:e.iconSrc?Yl("img",{src:e.iconSrc,alt:e?.name||e?.label,className:Xl("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?Yl(Ee,{name:e.iconName,className:Xl("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=sL("div",{"data-testid":`nav-item-${e?.id}`,className:Xl("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&&Yl("div",{className:Xl("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 Yl(Ne,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:Xl("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...r?.tooltip,label:e?.label,children:e?.path?Yl(iL,{to:e.path,children:s}):s})}import{jsx as uo,jsxs as An}from"react/jsx-runtime";var yx="--cleen-sidebar-fit",vx="data-cleen-sidebar-measuring",Ss=e=>e?.getBoundingClientRect().height??0,Ix=e=>{let t=getComputedStyle(e);return parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)};function Cx({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:P,renderSidebarItem:I}){let[x,S]=mL(d),L=zr(null),T=zr(null),N=zr(null),F=zr(null),M=zr(null),w=zr(null),k=!!n,D=!!r;dL(()=>{let E=L.current,O=T.current,z=F.current;if(!E||!O||!z||typeof ResizeObserver>"u")return;let V=H=>(E.style.setProperty(yx,`${H}px`),Ss(N.current)+Ix(z)+(parseFloat(getComputedStyle(z).rowGap)||0)+Ss(M.current)+Ss(w.current)),W=()=>{E.setAttribute(vx,"");let H=V(0),U=V(1),K=O.clientHeight-Ix(O)-1,$=U>H?Math.min(1,Math.max(0,(K-H)/(U-H))):1;E.style.setProperty(yx,`${$}px`),Ss(O),E.removeAttribute(vx)};W();let J=new ResizeObserver(W);return J.observe(O),()=>J.disconnect()},[e.length,t.length,k,D]);let B=f!==void 0?f:x,A=!!B,_=E=>{let O=B===E.id?null:E.id;f===void 0&&S(O),m?.(O)};pL(()=>{if(!b||!A)return;let E=O=>{L.current&&!L.current.contains(O.target)&&(f===void 0&&S(null),m?.(null))};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)}},[b,A,f,m]);let R=E=>{!y||!A||L.current&&!L.current.contains(E.relatedTarget)&&(f===void 0&&S(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",...C},ref:L,onBlur:R,tabIndex:y?0:void 0,children:[An("div",{ref:T,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:P?.navigation,children:[n&&uo("div",{ref:N,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:P?.logo,onClick:l,children:n}),An("div",{ref:F,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:P?.navigationItems,children:[uo("nav",{ref:M,className:mo("cleen-flex cleen-flex-col cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)]",v?.upperNavigationItemsWrapper),style:P?.upperNavigationItemsWrapper,children:e.map(E=>An("div",{children:[I?I(E,B===E.id,_):uo(Ql,{item:E,activeId:B,onClick:_,countBadge:E.badgeCount,classNames:{...v?.navigationItem,...E?.classNames},styles:{...P?.navigationItem,...E?.styles}}),E?.withBottomDivider&&uo("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},E.id))}),An("div",{ref:w,className:mo("cleen-flex cleen-flex-col cleen-items-center cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)]",v?.bottomNavigationItemsWrapper),style:P?.bottomNavigationItemsWrapper,children:[t.map(E=>An("div",{children:[I?I(E,B===E.id,_):uo(Ql,{item:E,activeId:B,onClick:_,countBadge:E.badgeCount,classNames:{...v?.navigationItem,...E?.classNames},styles:{...P?.navigationItem,...E?.styles}}),E?.withBottomDivider&&uo("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},E.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":A&&s==="right","cleen-border-l cleen-border-l-border":A&&s==="left"},v?.drawer),style:{...P?.drawer,width:A?`${p}px`:"0px",visibility:A?"visible":"hidden"},children:[B&&o[B]&&uo("div",{className:mo("cleen-flex-1 cleen-overflow-auto",v?.drawerContent),style:P?.drawerContent,children:o[B]}),B&&(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:P?.drawerFooter,children:typeof i=="function"?i(B):i||a})]})]})}var ne=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as xx}from"@cleen/ui-core";import{forwardRef as uL}from"react";import{jsx as Px}from"react/jsx-runtime";var fL={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"},hL=uL(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 Px("div",{ref:i,className:xx("cleen",r),children:Px("div",{className:xx("cleen-bg-muted",fL[n],t===void 0&&"cleen-w-full",o===void 0&&"cleen-h-4",p),style:s})})});import{cn as rg}from"@cleen/ui-core";import{forwardRef as gL}from"react";import{jsx as ws,jsxs as bL}from"react/jsx-runtime";var ag=gL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let a=ne(n);return ws("div",{ref:r,className:rg("cleen",t),style:o,children:ws("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((i,p)=>bL("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[ws("div",{className:rg("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",a)}),ws("div",{className:rg("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",a)})]},p))})})});import{cn as Sx}from"@cleen/ui-core";import{forwardRef as yL}from"react";import{jsx as lg}from"react/jsx-runtime";var cg=yL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let a=ne(n);return lg("div",{ref:r,className:Sx("cleen",t),style:o,children:lg("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((i,p)=>lg("div",{className:Sx("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",a)},p))})})});import{cn as wx}from"@cleen/ui-core";import{forwardRef as vL}from"react";import{jsx as On,jsxs as Ms}from"react/jsx-runtime";var ig=vL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return On("div",{ref:l,className:wx("cleen",t),style:o,children:Ms("div",{className:wx("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"}),Ms("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"}),Ms("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"})]}),Ms("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 Mx}from"@cleen/ui-core";import{forwardRef as IL}from"react";import{jsx as sg}from"react/jsx-runtime";var pg=IL(function({className:t,style:o,variant:n="default",itemCount:l=1},r){let a=ne(n);return sg("div",{ref:r,className:Mx("cleen",t),style:o,children:sg("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((i,p)=>sg("div",{className:Mx("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",a)},p))})})});import{cn as ks}from"@cleen/ui-core";import{forwardRef as CL}from"react";import{jsx as Ts,jsxs as kx}from"react/jsx-runtime";var Zl=CL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return Ts("div",{ref:l,className:ks("cleen",t),style:o,children:kx("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:[Ts("div",{className:ks("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)}),kx("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Ts("div",{className:ks("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)}),Ts("div",{className:ks("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",r)})]})]})})});import{cn as Hr}from"@cleen/ui-core";import{forwardRef as xL}from"react";import{jsx as Ur,jsxs as Ns}from"react/jsx-runtime";var Bs=xL(({className:e,style:t,variant:o="default"},n)=>{let l=ne(o);return Ur("div",{ref:n,className:Hr("cleen",e),style:t,children:Ns("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:[Ns("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[Ur("div",{className:Hr("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",l)}),Ns("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Ur("div",{className:Hr("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",l)}),Ur("div",{className:Hr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),Ns("div",{className:"cleen-space-y-2 cleen-w-full",children:[Ur("div",{className:Hr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",l)}),Ur("div",{className:Hr("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});Bs.displayName="AssessmentHeaderSkeleton";import{cn as Ot}from"@cleen/ui-core";import{forwardRef as PL}from"react";import{jsx as _t,jsxs as Gr}from"react/jsx-runtime";var dg=PL(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:Gr("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)}),Gr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[Gr("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)})]}),Gr("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)})]}),Gr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[Gr("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 SL}from"react";import{cn as wL}from"@cleen/ui-core";import{jsx as mg}from"react/jsx-runtime";var ug=SL(function({className:t,style:o,itemCount:n=3,variant:l="default"},r){return mg("div",{ref:r,className:wL("cleen",t),style:o,children:mg("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:n}).map((a,i)=>mg(Zl,{variant:l},i))})})});import{cn as _n}from"@cleen/ui-core";import{forwardRef as ML}from"react";import{jsx as bt,jsxs as Jl}from"react/jsx-runtime";var Tx=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],fg=ML(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:Jl("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:[Jl("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)=>Jl("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))})]}),Jl("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))}),Jl("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:Tx.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:Tx.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 kL}from"react";import{jsx as fo,jsxs as Rs}from"react/jsx-runtime";var hg=kL(({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:Rs("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[Rs("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)=>Rs("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))}),Rs("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 Es}from"@cleen/ui-core";import{forwardRef as TL}from"react";import{jsx as jl,jsxs as NL}from"react/jsx-runtime";var gg=TL(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:Es("cleen",t),style:o,children:NL("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:Es("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:Es("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:Es("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 Ls}from"@cleen/ui-core";import{forwardRef as BL}from"react";import{jsx as ec,jsxs as Nx}from"react/jsx-runtime";var bg=BL(function({className:t,style:o,variant:n="default",itemCount:l=4},r){let a=ne(n);return ec("div",{ref:r,className:Ls("cleen",t),style:o,children:Nx("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)=>Nx("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[ec("div",{className:Ls("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",a)}),ec("div",{className:Ls("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",a)})]},p)),ec("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:ec("div",{className:Ls("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",a)})})]})})});import{cn as Bx}from"@cleen/ui-core";import{forwardRef as RL}from"react";import{jsx as yg}from"react/jsx-runtime";var EL=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],vg=RL(function({className:t,style:o,variant:n="default",colors:l=EL},r){let a=ne(n);return yg("div",{ref:r,className:Bx("cleen",t),style:o,children:yg("div",{className:Bx("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:yg("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as Ds}from"@cleen/ui-core";import{forwardRef as LL}from"react";import{jsx as $r,jsxs as Rx}from"react/jsx-runtime";var Ig=LL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return $r("div",{ref:l,className:Ds("cleen",t),style:o,children:Rx("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[$r("div",{className:Ds("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:$r("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Rx("div",{className:Ds("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[$r("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),$r("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),$r("div",{className:Ds("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 DL}from"react";import{jsx as nt,jsxs as ho}from"react/jsx-runtime";var Cg=DL(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 xg}from"@cleen/ui-core";import{forwardRef as FL}from"react";import{jsx as Pg,jsxs as AL}from"react/jsx-runtime";var Sg=FL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return Pg("div",{ref:l,className:xg("cleen",t),style:o,children:AL("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Pg("div",{className:xg("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",r)}),Pg("div",{className:xg("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",r)})]})})});import{cn as tc}from"@cleen/ui-core";import{forwardRef as OL}from"react";import{jsx as Wr,jsxs as Ex}from"react/jsx-runtime";var wg=OL(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 Wr("div",{ref:r,className:tc("cleen",t),style:o,children:Wr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:l}).map((p,s)=>Ex("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[Wr("div",{className:tc("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",a)}),Ex("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[Wr("div",{className:tc("cleen-bg-muted cleen-rounded cleen-h-4",i[s%i.length],a)}),Wr("div",{className:tc("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",a)})]}),Wr("div",{className:tc("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",a)})]},s))})})});import{cn as Lx}from"@cleen/ui-core";import{forwardRef as _L}from"react";import{jsx as kg}from"react/jsx-runtime";var Mg=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],Tg=_L(function({className:t,style:o,variant:n="default",itemCount:l},r){let a=ne(n),i=l??Mg.length;return kg("div",{ref:r,className:Lx("cleen",t),style:o,children:kg("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((p,s)=>{let d=s<Mg.length?Mg[s]:s===i-1?"cleen-w-3/5":"cleen-w-full";return kg("div",{className:Lx("cleen-bg-muted cleen-rounded cleen-h-3",d,a)},s)})})})});import{cn as Dx}from"@cleen/ui-core";import{forwardRef as VL}from"react";import{jsx as Fx}from"react/jsx-runtime";var Ng=VL(function({className:t,style:o,variant:n="default"},l){let r=ne(n);return Fx("div",{ref:l,className:Dx("cleen",t),style:o,children:Fx("div",{className:Dx("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)})})});import{cn as zn}from"@cleen/ui-core";import{forwardRef as zL}from"react";import{jsx as Vt,jsxs as Fs}from"react/jsx-runtime";var Bg=zL(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:Fs("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"})})})}),Fs("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)}),Fs("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)}),Fs("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 oc}from"@cleen/ui-core";import{forwardRef as HL}from"react";import{jsx as nc,jsxs as Rg}from"react/jsx-runtime";var As=HL(function({variant:t="default",className:o,style:n},l){let r=ne(t);return nc("div",{ref:l,className:oc("cleen",o),style:n,children:Rg("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:[Rg("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:[nc("div",{className:oc("cleen-bg-muted cleen-rounded-full cleen-size-1.5",r)}),nc("div",{className:oc("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",r)})]}),Rg("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[nc("div",{className:oc("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",r)}),nc("div",{className:oc("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",r)})]})]})})});As.displayName="SkeletonBadgeCard";import{forwardRef as UL}from"react";import{jsx as Be}from"react/jsx-runtime";var GL=UL(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(Bs,{...d});case"card3":return Be(dg,{...d});case"cardStack":return Be(ug,{...d});case"contentCard":return Be(hg,{...d});case"infoCard":return Be(Cg,{...d});case"widgetCard":return Be(As,{...d});case"image":return Be(Ig,{...d});case"video":return Be(Bg,{...d});case"avatar":return Be(ag,{...d});case"dataGrid":return Be(gg,{...d});case"text":return Be(Ng,{...d});case"paragraph":return Be(Tg,{...d});case"list":return Be(wg,{...d});case"form":return Be(bg,{...d});case"banner":return Be(ig,{...d});case"chart":return Be(fg,{...d});case"button":return Be(pg,{...d});case"badge":return Be(cg,{...d});case"input":return Be(Sg,{...d});case"glowingCard":return Be(vg,{...d});default:return Be(Zl,{...d})}});import{cn as Uo}from"@cleen/ui-core";import{forwardRef as $L,useCallback as Eg,useEffect as WL,useRef as Ax,useState as Ox}from"react";import{jsx as Go,jsxs as Os}from"react/jsx-runtime";var Hn=$L(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:P,labels:I,tooltip:x,infoLabels:S},L){let[T,N]=Ox(i??n),F=p!==void 0?p:T,M=Ax(null),[w,k]=Ox(!1),D=Ax(!1),B=(F-n)/(l-n)*100,A=Math.min(100,Math.max(0,B)),_=Eg(H=>{let U=Math.round((H-n)/r)*r+n;return Math.min(l,Math.max(n,U))},[n,l,r]),R=Eg((H,U)=>{let K=_(H);p===void 0&&N(K),d?.(K),U&&f?.(K)},[_,p,d,f]),E=Eg(H=>{let U=M.current;if(!U)return n;let K=U.getBoundingClientRect(),$=(H-K.left)/K.width;return _(n+$*(l-n))},[n,l,_]),O=H=>{if(v)return;let U;switch(H.key){case"ArrowRight":case"ArrowUp":U=F+a;break;case"ArrowLeft":case"ArrowDown":U=F-a;break;case"Home":U=n;break;case"End":U=l;break;default:return}H.preventDefault(),R(U,!0)},z=H=>{v||(H.preventDefault(),k(!0))},V=H=>{if(v||D.current){D.current=!1;return}R(E(H.clientX),!0)},W=H=>{v||(H.preventDefault(),k(!0))};WL(()=>{if(!w)return;let H=Y=>{R(E(Y.clientX))},U=Y=>{k(!1),D.current=!0,f?.(_(E(Y.clientX)))},K=Y=>{Y.touches.length>0&&R(E(Y.touches[0].clientX))},$=Y=>{k(!1),D.current=!0,f?.(_(E(Y.changedTouches[0].clientX)))};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",U),document.addEventListener("touchmove",K),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",U),document.removeEventListener("touchmove",K),document.removeEventListener("touchend",$)}},[w,_,E,R,f]);let J=H=>Go("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Go("div",{className:Uo("cleen",m),style:y,ref:L,children:Os("div",{className:Uo("cleen-w-full",b?.container),style:u?.container,children:[C&&Go(de,{htmlFor:t,required:o,tooltip:P,...b?.label,...u?.label,children:C}),Os("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),Os("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:V,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:`${A}%`,...u?.filledTrack}})}),Go(Ne,{invertColors:!0,...x,label:I?.tooltip?.(F)??F,className:Uo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",x?.className),style:{left:`calc(${A}% - 8px)`,...x?.style},isOpen:w||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":F,"aria-valuemin":n,"aria-valuemax":l,"aria-disabled":v,"aria-label":typeof C=="string"?C:"Slider","aria-labelledby":t,onMouseDown:z,onTouchStart:W,onKeyDown:O})})]}),s==="inline"?I?.maxLabel&&J(I?.maxLabel):(I?.minLabel||I?.maxLabel)&&Os("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[I?.minLabel&&J(I?.minLabel),I?.maxLabel&&J(I?.maxLabel)]})]}),(S?.errorMessage||S?.infoMessage||S?.subtitle)&&Go(ie,{...S})]})})});import{cn as zt}from"@cleen/ui-core";import{forwardRef as qL,useCallback as Lg,useEffect as KL,useRef as XL,useState as _x}from"react";import{jsx as Ht,jsxs as _s}from"react/jsx-runtime";var YL=qL(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:P,tooltips:I,infoLabels:x},S){let[L,T]=_x(a??[n,l]),N=i!==void 0?i:L,F=XL(null),[M,w]=_x(null),k=Lg(H=>{let U=Math.round((H-n)/r)*r+n;return Math.min(l,Math.max(n,U))},[n,l,r]),D=(N[0]-n)/(l-n)*100,B=Math.min(100,Math.max(0,D)),A=(N[1]-n)/(l-n)*100,_=Math.min(100,Math.max(0,A)),R=Lg(H=>{let U=[k(Math.min(H[0],H[1])),k(Math.max(H[0],H[1]))];i===void 0&&T(U),s?.(U)},[k,i,s]),E=Lg(H=>{let U=F.current;if(!U)return n;let K=U.getBoundingClientRect(),$=(H-K.left)/K.width;return k(n+$*(l-n))},[n,l,k]),O=H=>U=>{if(u)return;let K=H==="min"?N[0]:N[1],$;switch(U.key){case"ArrowRight":case"ArrowUp":$=K+r;break;case"ArrowLeft":case"ArrowDown":$=K-r;break;case"Home":$=n;break;case"End":$=l;break;default:return}U.preventDefault();let Y=H==="min"?[Math.min($,N[1]),N[1]]:[N[0],Math.max($,N[0])];R(Y),d?.([k(Y[0]),k(Y[1])])},z=H=>U=>{u||(U.preventDefault(),w(H))},V=H=>{if(u)return;let U=E(H.clientX),K=Math.abs(U-N[0]),$=Math.abs(U-N[1]);K<$?R([U,N[1]]):R([N[0],U])},W=H=>U=>{u||(U.preventDefault(),w(H))};KL(()=>{if(!M)return;let H=Y=>{let ae=E(Y.clientX);R(M==="min"?[ae,N[1]]:[N[0],ae])},U=Y=>{let ae=E(Y.clientX),be=M==="min"?[ae,N[1]]:[N[0],ae];w(null),d?.(be)},K=Y=>{if(Y.touches.length>0){let ae=E(Y.touches[0].clientX);R(M==="min"?[ae,N[1]]:[N[0],ae])}},$=Y=>{let ae=E(Y.changedTouches[0].clientX),be=M==="min"?[ae,N[1]]:[N[0],ae];w(null),d?.(be)};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",U),document.addEventListener("touchmove",K),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",U),document.removeEventListener("touchmove",K),document.removeEventListener("touchend",$)}},[M,N,E,R,d]);let J=H=>Ht("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Ht("div",{className:zt("cleen",f),style:b,ref:S,children:_s("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}),_s("div",{className:zt({"cleen-flex cleen-items-center cleen-gap-2":p==="inline"},m?.slider),style:y?.slider,children:[p==="inline"&&P?.minLabel!==void 0&&J(P?.minLabel),_s("div",{ref:F,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:V,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:`${B}%`,width:`${_-B}%`,...y?.filledTrack}})}),Ht(Ne,{invertColors:!0,isOpen:M==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:P?.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(${B}% - 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:z("min"),onTouchStart:W("min"),onKeyDown:O("min")})}),Ht(Ne,{invertColors:!0,isOpen:M==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:P?.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(${_}% - 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:z("max"),onTouchStart:W("max"),onKeyDown:O("max")})})]}),p==="inline"?P?.maxLabel&&J(P?.maxLabel):(P?.minLabel||P?.maxLabel)&&_s("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[P?.minLabel&&J(P?.minLabel),P?.maxLabel&&J(P?.maxLabel)]})]}),(x?.errorMessage||x?.infoMessage||x?.subtitle)&&Ht(ie,{...x})]})})});import{cn as qr}from"@cleen/ui-core";import{forwardRef as QL,useRef as ZL,useState as Vx}from"react";import{jsx as Un,jsxs as jL}from"react/jsx-runtime";var JL=QL(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]=Vx(0),P=n!==void 0,I=P?n:v,[x,S]=Vx(null),L=x!==null?x+1:I,T=!p,N=ZL([]),F=I>0?I-1:0,M=B=>{P||C(B),l?.(B)},w=B=>{B<0||B>=r||(M(B+1),N.current[B]?.focus())},k=(B,A)=>{switch(B.key){case"ArrowRight":case"ArrowUp":B.preventDefault(),w((A+1)%r);break;case"ArrowLeft":case"ArrowDown":B.preventDefault(),w((A-1+r)%r);break;case"Home":B.preventDefault(),w(0);break;case"End":B.preventDefault(),w(r-1);break;default:break}},D=typeof t=="string"?t:"Rating";return Un("div",{className:qr("cleen",d),style:f,ref:u,...y,children:jL("div",{className:qr("cleen-space-y-2",m?.container),style:b?.container,children:[t&&Un("span",{className:qr("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?D:`${D}: ${I} out of ${r}`,className:qr("cleen-flex cleen-gap-3",m?.list),style:{...a?{gap:a}:{},...b?.list},children:Array.from({length:r},(B,A)=>{let _=Un(rl,{"aria-hidden":"true",className:qr("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...b?.star,fill:(p?I:L)>A?s:"transparent"}});return T?Un("button",{type:"button",ref:R=>{N.current[A]=R},role:"radio","aria-checked":I===A+1,"aria-label":`${A+1} ${A+1===1?"star":"stars"}`,tabIndex:A===F?0:-1,onMouseEnter:()=>S(A),onMouseLeave:()=>S(null),onClick:()=>M(A+1),onKeyDown:R=>k(R,A),className:qr("focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary focus-visible:cleen-rounded"),children:_},A):Un("span",{className:"cleen-cursor-default",children:_},A)})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Un(ie,{...o})]})})});import{cn as go}from"@cleen/ui-core";import{forwardRef as e6}from"react";import{jsx as $o,jsxs as zx}from"react/jsx-runtime";var Hx=e6(({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 zx("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}})}),zx("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)})})})});Hx.displayName="Stepper";import{cn as ze}from"@cleen/ui-core";import{forwardRef as t6,useMemo as Gx,useState as Kr}from"react";var Ux={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 r6,jsx as De,jsxs as Xr}from"react/jsx-runtime";var o6=[],n6=t6(function({items:t=o6,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,...P},I){let x={...Ux,...b},[S,L]=Kr(n??[]),T=o??S,[N,F]=Kr(!1),M=s??N,[w,k]=Kr(T),[D,B]=Kr(""),[A,_]=Kr([]),[R,E]=Kr(!1),O=Gx(()=>[...t,...A.filter(Q=>!t.some(G=>G.id===Q.id))],[t,A]),z=D.trim(),V=Gx(()=>{let Q=z.toLowerCase();return Q?O.filter(G=>G.label.toLowerCase().includes(Q)):O},[O,z]),W=!!z&&!O.some(Q=>Q.label.toLowerCase()===z.toLowerCase())&&!!r,J=a||R,H=T.length,U=H>0,K=Q=>{Q&&(k(T),B("")),s===void 0&&F(Q),d?.(Q)},$=Q=>{k(G=>G.includes(Q)?G.filter(re=>re!==Q):[...G,Q])},Y=async()=>{if(!(!r||!z||J)){E(!0);try{let Q=await r(z);Q&&(_(G=>G.some(re=>re.id===Q.id)?G:[...G,Q]),k(G=>G.includes(Q.id)?G:[...G,Q.id]),B(""))}finally{E(!1)}}},ae=Q=>{Q.key==="Enter"&&W&&(Q.preventDefault(),Y())},be=()=>{k([])},pe=()=>{let Q=O.filter(G=>w.includes(G.id));o===void 0&&L(w),l?.(w,Q),K(!1)},Me=Xr(r6,{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(z)})})}),V.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:O.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:V.map(Q=>Xr("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:w.includes(Q.id),onClick:G=>G.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=Xr("div",{className:ze("cleen-flex cleen-flex-col",u?.content),style:C?.content,role:"dialog",children:[De(Ie,{autoFocus:!0,value:D,onChange:Q=>B(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}),Xr("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:w.length>0?x.selected(w.length):x.footer}),Xr("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:w.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:K,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},...P,children:Xr("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":U,"cleen-opacity-50 cleen-cursor-not-allowed":p},u?.trigger,U&&u?.triggerActive),style:{...C?.trigger,...U?C?.triggerActive:{}},children:[i??De(ll,{className:"cleen-size-4 cleen-shrink-0"}),U&&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:H}),De(en,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var Dg={default:"Default","sans-serif":"Sans-serif",serif:"Serif",monospace:"Monospace",cursive:"Cursive",fantasy:"Fantasy"},Fg={white:"White",yellow:"Yellow",green:"Green",cyan:"Cyan",blue:"Blue",magenta:"Magenta",red:"Red",black:"Black"},Ag={play:"Play",pause:"Pause",seekBackward:e=>`Back ${e} seconds`,seekForward:e=>`Forward ${e} seconds`,seek:"Seek",progress:"Playback progress",volume:"Volume",mute:"Mute",unmute:"Unmute",subtitles:"Subtitles",noSubtitles:"No subtitles available yet",subtitlesBadge:"CC",toggleSubtitles:"Toggle subtitles",playbackSpeed:"Playback speed",quality:"Quality",qualityAuto:e=>e?`Auto (${e})`:"Auto",qualityLevel:e=>`${e}p`,settings:"Settings",language:"Language",captionsOff:"Off",captionsTrack:e=>`Track ${e}`,captionStyle:"Caption style",resetCaptionStyle:"Reset",fontFamily:"Font family",fontColor:"Font colour",fontSize:"Font size",backgroundColor:"Background colour",backgroundOpacity:"Background opacity",captionFontFamilies:Dg,captionColors:Fg,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 Og=10,Vs=1.7777777777777777,_g=1080,Yr=-1,Vg=.5,zg=2,$x=.25,rc=.05,Wx=2500,qx=5,Kx=.5,ac=5,Xx=480,Yx=24,Qx=16,zs="--cleen-video-player-height",a6=.045,l6=12,c6=32,Zx=`clamp(${l6}px, calc(var(${zs}, 360px) * ${a6}), ${c6}px)`,Jx=250,jx=40,Hg="cleen-video-player-caption-style",Wo={fontFamily:"default",fontColor:"white",fontSize:1,backgroundColor:"black",backgroundOpacity:.75},Qr={default:void 0,"sans-serif":"sans-serif",serif:"serif",monospace:"monospace",cursive:"cursive",fantasy:"fantasy"},lc={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]},Hs=[.5,.75,1,1.25,1.5,1.75,2],Us=[0,.25,.5,.75,1],eP=72,tP=240,oP=3,nP={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 i6,useEffect as Ug,useImperativeHandle as s6,useRef as p6}from"react";import{jsx as f6}from"react/jsx-runtime";var d6=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],m6=e=>{let t=d6;return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))},u6=i6(function({playing:t=!1,volume:o,playbackRate:n,...l},r){let a=p6(null);return s6(r,()=>a.current,[]),Ug(()=>{let i=a.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,l.src]),Ug(()=>{a.current&&o!==void 0&&(a.current.volume=o)},[o]),Ug(()=>{a.current&&n!==void 0&&(a.current.playbackRate=n)},[n]),f6("video",{...m6(l),ref:a,width:"100%",height:"100%"})});import{forwardRef as h6}from"react";import g6 from"react-player";import{jsx as b6}from"react/jsx-runtime";var Gg=h6(function(t,o){return b6(g6,{...t,ref:o,width:"100%",height:"100%"})});var cc=(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))(cc||{});var Zr=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)}`},$g=(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)},Wg=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),rP=e=>e?Array.from({length:e.length},(t,o)=>({start:e.start(o),end:e.end(o)})):[],aP=(e,t)=>e.length===t.length&&e.every((o,n)=>o.start===t[n].start&&o.end===t[n].end),lP=(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),qg=(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},cP=(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}})},y6=(e,t)=>{let o=-1;return e.forEach((n,l)=>{t>=n.start&&(o=l)}),Math.max(o,0)},sc=(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),iP=(e,t)=>{let o=Array.from(e).filter(n=>n.kind==="chapters");return t&&o.find(n=>n.language===t)||o[0]},sP=e=>Array.from(e).map(t=>({start:t.startTime,end:t.endTime,title:t.text?.replace(/<[^>]*>/g,"").trim()||void 0})),$s=e=>Array.from(e).filter(({kind:t="subtitles"})=>["subtitles","captions"].includes(t)),pP=(e,t,o)=>e.label||e.srcLang||o(t+1),ic=(e,t)=>e.includes(t),Kg=e=>{let t=e&&typeof e=="object"?e:{},o=Object.keys(lc),n=Object.keys(Qr);return{fontFamily:ic(n,t.fontFamily)?t.fontFamily:Wo.fontFamily,fontColor:ic(o,t.fontColor)?t.fontColor:Wo.fontColor,fontSize:ic(Hs,t.fontSize)?t.fontSize:Wo.fontSize,backgroundColor:ic(o,t.backgroundColor)?t.backgroundColor:Wo.backgroundColor,backgroundOpacity:ic(Us,t.backgroundOpacity)?t.backgroundOpacity:Wo.backgroundOpacity}},Gs=(e,t=1)=>`rgba(${lc[e].join(",")},${t})`,dP=({fontFamily:e,fontColor:t,fontSize:o,backgroundColor:n,backgroundOpacity:l})=>({fontFamily:Qr[e],fontSize:`calc(${Zx} * ${o})`,color:Gs(t),backgroundColor:Gs(n,l)});import{cn as mc}from"@cleen/ui-core";import{forwardRef as xD,useCallback as Xe,useImperativeHandle as PD,useMemo as cb,useReducer as SD,useRef as mS,useState as wD}from"react";import{cn as Xn}from"@cleen/ui-core";var qo="cleen-text-[#fff]",Xg="cleen-text-[rgba(255,255,255,0.45)]",mP="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",uP="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",fP="!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",Ws="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",qs="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as gP}from"@cleen/ui-core";import{useLayoutEffect as C6,useRef as x6}from"react";import{useEffect as v6,useState as I6}from"react";var Ks=[],hP=(e,t,o,n,l)=>{let[r,a]=I6(Ks);return v6(()=>{let i=e.current?.textTracks;if(!t||!i)return;let p,s=()=>a(p?.activeCues?Array.from(p.activeCues):Ks),d=()=>{let f=$s(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(Ks)}},[t,o,n,l,e]),t?r:Ks};import{jsx as Yg}from"react/jsx-runtime";var P6=e=>typeof VTTCue<"u"&&e instanceof VTTCue?e.getCueAsHTML():"",S6=({cue:e,className:t,style:o})=>{let n=x6(null);return C6(()=>{n.current?.replaceChildren(P6(e))},[e]),Yg("span",{ref:n,className:t,style:o})},bP=({videoRef:e,src:t,showCaptions:o,trackIndex:n,captionStyle:l,pictureInPicture:r,hidden:a,controlsVisible:i,controlsOnHover:p,classNames:s,styles:d})=>{let f=hP(e,o&&!r,n,t,!a);return a||r||f.length===0?null:Yg("div",{className:gP("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)=>Yg(S6,{cue:m,className:gP("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:{...dP(l),...d?.captionsText}},`${m.id}-${m.startTime}-${b}`))})};import{cn as w6}from"@cleen/ui-core";import{forwardRef as M6}from"react";import{jsx as k6}from"react/jsx-runtime";var Ut=M6(function({label:t,onClick:o,disabled:n,active:l,className:r,style:a,children:i},p){return k6("button",{ref:p,type:"button","aria-label":t,"aria-pressed":l,onClick:o,disabled:n,className:w6("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 xP}from"react";import{useCallback as T6,useEffect as N6,useRef as yP,useState as B6}from"react";var vP=(e,t)=>{let[o,n]=B6(null),l=yP(!1),r=yP(!1),a=T6(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 N6(()=>{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 R6}from"@cleen/ui-core";import{Fragment as E6,jsx as IP}from"react/jsx-runtime";var Xs=({buffered:e,start:t,end:o,className:n,style:l})=>IP(E6,{children:lP(e,t,o).map(r=>IP("div",{"aria-hidden":!0,className:R6("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 Ys}from"@cleen/ui-core";import{jsx as Qs,jsxs as L6}from"react/jsx-runtime";var CP=({chapters:e,duration:t,currentTime:o,buffered:n,classNames:l,styles:r})=>Qs("div",{"aria-hidden":!0,className:Ys("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=>Qs("div",{className:Ys("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:L6("div",{className:Ys("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:[Qs(Xs,{buffered:n,start:a.start,end:a.end,className:l?.chapterBuffered,style:r?.chapterBuffered}),Qs("div",{className:Ys("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:`${Wg(a,o)*100}%`}})]})},a.start))});import{Fragment as D6,jsx as $n,jsxs as Zs}from"react/jsx-runtime";var PP=({allowBarSeeking:e,chapters:t,duration:o,currentTime:n,buffered:l,onSeek:r,seekLabel:a,progressLabel:i,classNames:p,styles:s})=>{let d=xP(null),f=xP(null),{preview:m,previewHandlers:b}=vP(d,o),y=m?sc(t,m.time):void 0,u=t.length>0,v=u&&$n(CP,{chapters:t,duration:o,currentTime:n,buffered:l,classNames:p,styles:s}),C=$n(Xs,{buffered:l,start:0,end:o,className:p?.seekBuffered,style:s?.seekBuffered}),P=f.current?.offsetWidth||0;if(e){let x=p?.seekSlider?.classNames;return Zs("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&&Zs("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}% - ${P/2}px), calc(100% - ${P}px))`,...s?.seekTooltip},children:[$n("span",{children:Zr(m.time)}),y?.title&&Zs("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:ac,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||Zs(D6,{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 _6,useRef as BP,useState as RP}from"react";import{cn as F6}from"@cleen/ui-core";import{cn as $t}from"@cleen/ui-core";import{useId as SP}from"react";import{jsx as Wn,jsxs as Qg}from"react/jsx-runtime";var pc=({title:e,children:t,onReset:o,resetLabel:n,classNames:l,styles:r})=>{let a=SP();return Qg("section",{"aria-labelledby":a,className:$t("cleen-flex cleen-flex-col cleen-gap-3",l?.settingsGroup),style:r?.settingsGroup,children:[Qg("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=SP(),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?Qg("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 wP}from"react/jsx-runtime";var Zg=-1,A6=e=>`${Math.round(e*100)}%`,MP=({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:Zg,label:a.captionsOff},...e.map((u,v)=>({value:v,label:pP(u,v,a.captionsTrack)}))],m=Object.keys(Qr).map(u=>({value:u,label:a.captionFontFamilies[u]??Dg[u],style:{fontFamily:Qr[u]}})),b=Object.keys(lc).map(u=>{let v=a.captionColors[u]??Fg[u];return{value:u,label:v,ariaLabel:v,swatch:Gs(u)}}),y=u=>u.map(v=>({value:v,label:A6(v)}));return wP("div",{className:F6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",i?.captionsSettings),style:p?.captionsSettings,children:[qn(pc,{title:a.language,...s,children:qn(bo,{options:f,value:o?d:Zg,onChange:u=>r(u===Zg?{type:"hideCaptions"}:{type:"selectCaptionsTrack",index:u}),...s})}),wP(pc,{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(Hs),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(Us),value:n.backgroundOpacity,onChange:u=>l({backgroundOpacity:u}),...s})]})]})};import{cn as O6}from"@cleen/ui-core";import{jsx as Jg}from"react/jsx-runtime";var kP=({quality:e,labels:t,classNames:o,styles:n})=>{let l=cP(e.levels,t.qualityLevel),r=l.find(i=>i.value===e.current)?.label,a=[{value:Yr,label:t.qualityAuto(r)},...l];return Jg("div",{className:O6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",o?.qualitySettings),style:n?.qualitySettings,children:Jg(pc,{title:t.quality,classNames:o,styles:n,children:Jg(bo,{options:a,value:e.selected,onChange:e.onChange,classNames:o,styles:n})})})};import{cn as Js}from"@cleen/ui-core";import{jsx as jg,jsxs as TP}from"react/jsx-runtime";var NP=({playbackRate:e,dispatch:t,label:o,classNames:n,styles:l})=>TP("div",{className:Js("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",n?.speedContent),style:l?.speedContent,children:[TP("div",{className:Js("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",n?.speedHeader),style:l?.speedHeader,children:[jg("span",{className:n?.speedLabel,style:l?.speedLabel,children:o}),jg("span",{className:Js("cleen-tabular-nums cleen-text-primary",n?.speedValue),style:l?.speedValue,children:`${e.toFixed(2)}\xD7`})]}),jg(Hn,{minValue:Vg,maxValue:zg,step:$x,value:e,onChange:r=>t({type:"setPlaybackRate",playbackRate:r}),className:Js("cleen-w-full",n?.speedSlider?.className),classNames:n?.speedSlider?.classNames,labels:{minLabel:`${Vg}\xD7`,maxLabel:`${zg}\xD7`},...l?.speedSlider})]});import{jsx as kt}from"react/jsx-runtime";var Jr=18,EP='button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])',LP=({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:P})=>{let[I,x]=RP(0),[S,L]=RP(),T=BP(null),N=BP(null),F=A=>{n(!1),A&&T.current?.focus()};_6(()=>{if(!o)return;let A=requestAnimationFrame(()=>{let R=N.current;(R?.querySelector('[aria-current="page"]')??R?.querySelector(EP))?.focus({preventScroll:!0})}),_=R=>{R.key==="Escape"&&(n(!1),document.activeElement===T.current&&T.current?.focus())};return document.addEventListener("keydown",_),()=>{cancelAnimationFrame(A),document.removeEventListener("keydown",_)}},[o,n]);let M=C?.settingsPopover?.classNames,w=C?.settingsTabs?.classNames,k=A=>{if(A){let _=e.current?.clientHeight;L(_===void 0?void 0:Math.min(tP,_-eP))}n(A)},D=A=>{if(A.stopPropagation(),A.key==="Escape"){F(!0);return}if(A.key==="Tab"&&N.current){let _=Array.from(N.current.querySelectorAll(EP)),R=_[0],E=_[_.length-1];A.shiftKey&&document.activeElement===R?(A.preventDefault(),E?.focus()):!A.shiftKey&&document.activeElement===E&&(A.preventDefault(),R?.focus())}},B=[...l?[{id:"quality",label:kt(pa,{width:Jr,height:Jr}),content:kt(kP,{quality:r,labels:u,classNames:C,styles:P})}]:[],...a?[{id:"speed",label:kt(nl,{width:Jr,height:Jr}),content:kt(NP,{playbackRate:p,dispatch:y,label:u.playbackSpeed,classNames:C,styles:P})}]:[],...i?[{id:"captions",label:kt(ya,{width:Jr,height:Jr}),content:kt(MP,{tracks:s,trackIndex:d,showCaptions:f,captionStyle:m,onCaptionStyleChange:b,dispatch:y,labels:u,classNames:C,styles:P})}]:[]];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)},...P?.settingsPopover,styles:{...P?.settingsPopover?.styles,popover:{height:S,...P?.settingsPopover?.styles?.popover}},content:kt("div",{ref:N,className:"cleen-flex cleen-flex-col cleen-min-h-0",onKeyDown:D,onDoubleClick:A=>A.stopPropagation(),children:kt(Hl,{tabs:B,currentTabIndex:Math.min(I,B.length-1),onTabChange:x,variant:"underlined",className:Xo("cleen-flex cleen-flex-col cleen-min-h-0",C?.settingsTabs?.className),classNames:{...w,container:Xo("cleen-flex cleen-flex-col cleen-min-h-0",w?.container),list:Xo("cleen-shrink-0 cleen-mb-0 cleen-px-3 cleen-pt-2",w?.list),tab:Xo("cleen-pb-2",w?.tab),content:Xo("cleen-min-h-0 cleen-overflow-y-auto",w?.content)},...P?.settingsTabs})}),children:kt(Ut,{ref:T,label:u.settings,active:o,className:Xo(C?.controlButton,C?.settingsButton),style:{...P?.controlButton,...P?.settingsButton},children:kt(Ja,{width:v,height:v})})})};import{cn as DP}from"@cleen/ui-core";import{jsx as eb}from"react/jsx-runtime";var FP=({hasTracks:e,showCaptions:t,onToggle:o,portalContainer:n,labels:l,classNames:r,styles:a})=>{let i=r?.subtitlesBadge?.classNames;return eb(Ne,{label:e?l.subtitles:l.noSubtitles,className:r?.subtitlesTooltip?.className,classNames:r?.subtitlesTooltip?.classNames,portalContainer:n,...a?.subtitlesTooltip,children:eb("button",{type:"button","aria-label":l.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:o,className:DP("cleen-rounded-md disabled:cleen-opacity-40",Ko,r?.subtitlesButton),style:a?.subtitlesButton,children:eb(Le,{variant:"sleek",className:r?.subtitlesBadge?.className,classNames:{...i,container:DP(mP,{[uP]:e},{[fP]:t},i?.container)},...a?.subtitlesBadge,children:l.subtitlesBadge})})})};import{jsx as Kn,jsxs as V6}from"react/jsx-runtime";var AP=({muted:e,volume:t,size:o})=>e||t===0?Kn(ml,{width:o,height:o}):t<.75?Kn(dl,{width:o,height:o}):Kn(pl,{width:o,height:o}),OP=({isFullscreen:e,size:t})=>e?Kn(Ua,{width:t,height:t}):Kn(Va,{width:t,height:t}),jr=({forward:e,seconds:t,size:o})=>V6("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[Kn(e?Qa:Ya,{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 js}from"@cleen/ui-core";import{jsx as ep,jsxs as z6}from"react/jsx-runtime";var _P=({muted:e,volume:t,dispatch:o,labels:n,iconSize:l,classNames:r,styles:a})=>z6("div",{className:js("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2 cleen-min-w-0",r?.volume),style:a?.volume,children:[ep(Ut,{label:e?n.unmute:n.mute,active:e,onClick:()=>o({type:"toggleMuted"}),className:js(r?.controlButton,r?.muteButton),style:{...a?.controlButton,...a?.muteButton},children:ep(AP,{muted:e,volume:t,size:l})}),ep("div",{role:"group","aria-label":n.volume,className:js("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:ep(Hn,{minValue:0,maxValue:1,step:rc,value:e?0:t,onChange:i=>o({type:"setVolume",volume:i,muted:i===0}),className:js("cleen-w-full",r?.volumeSlider?.className),classNames:r?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...a?.volumeSlider})})]});import{jsx as Ae,jsxs as dc}from"react/jsx-runtime";var VP=({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:P,controlsOnHover:I,onSeek:x,onSeekBy:S,onTogglePlay:L,onToggleFullscreen:T,pictureInPictureSupported:N,onTogglePictureInPicture:F,labels:M,compact:w,classNames:k,styles:D})=>{let{playing:B,currentTime:A,duration:_,muted:R,volume:E,playbackRate:O,showCaptions:z,captionsTrackIndex:V,settingsOpen:W,isPictureInPicture:J,isFullscreen:H}=l,U=w?Qx:Yx,K=sc(p,A)?.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:{...D?.controlButton,...D?.[Me]}});return dc("div",{className:Xn("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-pointer-events-none",{"cleen-hidden":P},k?.controlBar),style:D?.controlBar,children:[Ae(bP,{videoRef:o,src:n,showCaptions:z,trackIndex:V,captionStyle:y,pictureInPicture:J,hidden:P,controlsVisible:C,controlsOnHover:$,classNames:k,styles:D}),dc("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:D?.controls,children:[a("seekbar")&&Ae(PP,{allowBarSeeking:i,chapters:p,duration:_,currentTime:A,buffered:s,onSeek:x,seekLabel:M.seek,progressLabel:M.progress,classNames:k,styles:D}),dc("div",{className:Xn("cleen-flex cleen-items-center","cleen-gap-2.5",{"sm:cleen-gap-3.5":!w},qo,k?.controlsRow),style:D?.controlsRow,children:[a("play")&&!w&&Ae(Ut,{label:B?M.pause:M.play,onClick:L,...pe("playButton"),children:B?Ae(vt,{width:U,height:U}):Ae(It,{width:U,height:U})}),a("backward")&&Ae(Ut,{label:M.seekBackward(d),onClick:()=>S(-d),...pe("backwardButton"),children:Ae(jr,{seconds:d,size:U})}),a("forward")&&Ae(Ut,{label:M.seekForward(d),onClick:()=>S(d),...pe("forwardButton"),children:Ae(jr,{forward:!0,seconds:d,size:U})}),a("volume")&&Ae(_P,{muted:R,volume:E,dispatch:r,labels:M,iconSize:U,classNames:k,styles:D}),a("time")&&dc("span",{className:Xn("cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap",{"cleen-text-xxs":w},k?.time),style:D?.time,children:[Ae("span",{className:k?.currentTime,style:D?.currentTime,children:Zr(A)})," ",dc("span",{className:Xn("cleen-font-medium",Xg,k?.duration),style:D?.duration,children:["/ ",Zr(_)]})]}),K?Ae("span",{title:K,className:Xn("cleen-flex-1 cleen-min-w-0 cleen-font-medium cleen-text-[13px] cleen-truncate",Xg,k?.chapterTitle),style:D?.chapterTitle,children:K}):Ae("span",{className:"cleen-flex-1"}),a("subtitles")&&m&&!w&&Ae(FP,{hasTracks:m,showCaptions:z,onToggle:()=>r({type:"toggleCaptions"}),portalContainer:t,labels:M,classNames:k,styles:D}),a("settings")&&(Y||ae||be)&&Ae(LP,{containerRef:e,portalContainer:t,isOpen:W,onOpenChange:v,showQualityTab:Y,quality:f,showSpeedTab:ae,showCaptionsTab:be,playbackRate:O,captionTracks:b,captionsTrackIndex:V,showCaptions:z,captionStyle:y,onCaptionStyleChange:u,dispatch:r,labels:M,iconSize:U,classNames:k,styles:D}),a("pictureInPicture")&&N&&Ae(Ut,{label:J?M.exitPictureInPicture:M.pictureInPicture,active:J,onClick:F,...pe("pictureInPictureButton"),children:Ae(qa,{width:U,height:U})}),a("fullscreen")&&Ae(Ut,{label:H?M.exitFullscreen:M.fullscreen,active:H,onClick:T,...pe("fullscreenButton"),children:Ae(OP,{isFullscreen:H,size:U})})]})]})]})};import{cn as zP}from"@cleen/ui-core";import{cn as H6}from"@cleen/ui-core";import{jsx as U6}from"react/jsx-runtime";var tb=({label:e,onClick:t,className:o,style:n,children:l})=>U6("button",{type:"button","aria-label":e,onClick:t,className:H6("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",Ws,qs,qo,Ko,o),style:n,children:l});import{jsx as Yn,jsxs as G6}from"react/jsx-runtime";var HP=({playing:e,seekStep:t,visible:o,hidden:n,controlsOnHover:l,isShown:r,onTogglePlay:a,onSeekBy:i,labels:p,classNames:s,styles:d})=>G6("div",{className:zP("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(tb,{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:zP("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",Ws,qs,qo,Ko,s?.overlayPlayButton),style:d?.overlayPlayButton,children:e?Yn(vt,{width:28,height:28}):Yn(It,{width:28,height:28})}),r("forward")&&Yn(tb,{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 ob}from"@cleen/ui-core";import{jsx as UP,jsxs as $6}from"react/jsx-runtime";var GP=({label:e,subLabel:t,classNames:o,styles:n})=>$6("div",{className:ob("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:[UP("span",{className:ob("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",o?.placeholderLabel),style:n?.placeholderLabel,children:e}),t&&UP("span",{className:ob("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",o?.placeholderSubLabel),style:n?.placeholderSubLabel,children:t})]});import{useEffect as $P,useState as W6}from"react";var nb=[],WP=["progress","timeupdate","loadedmetadata","durationchange","seeked","emptied"],qP=(e,t,o)=>{let[n,l]=W6(nb);return $P(()=>{l(nb)},[t]),$P(()=>{let r=e.current;if(!r)return;let a=()=>{let i=rP(r.buffered);l(p=>aP(p,i)?p:i.length>0?i:nb)};return a(),WP.forEach(i=>r.addEventListener(i,a)),()=>WP.forEach(i=>r.removeEventListener(i,a))},[e,t,o]),n};import{useCallback as q6,useState as K6}from"react";var X6=()=>{try{let e=window.localStorage.getItem(Hg);return Kg(e?JSON.parse(e):void 0)}catch{return Kg(void 0)}},KP=()=>{let[e,t]=K6(X6),o=q6(n=>{t(l=>{let r={...l,...n};try{window.localStorage.setItem(Hg,JSON.stringify(r))}catch{}return r})},[]);return{captionStyle:e,updateCaptionStyle:o}};import{useEffect as Y6,useState as Q6}from"react";var rb=[],XP=(e,t,o,n)=>{let[l,r]=Q6(rb);return Y6(()=>{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?sP(y):rb),u},f=()=>{clearInterval(s);let y=0;s=setInterval(()=>{y+=1,(d()||y>=jx)&&clearInterval(s)},Jx)},m=()=>{let y=iP(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(rb)}},[e,t,o,n]),l};import{useEffect as Z6,useState as J6}from"react";var YP=e=>{let[t,o]=J6(!1);return Z6(()=>{let n=e.current;if(!n||typeof ResizeObserver>"u")return;let l=new ResizeObserver(([r])=>{o(r.contentRect.width<Xx)});return l.observe(n),()=>l.disconnect()},[e]),t};import{useCallback as Wt,useEffect as j6,useRef as QP,useState as eD}from"react";var ZP=e=>{try{return e.matches(":focus-visible")}catch{return!1}},tD=()=>typeof window<"u"&&window.matchMedia?.("(hover: none)").matches?"touch":"mouse",JP=(e,t,o,n,l)=>{let r=QP(void 0),a=QP(void 0),[i,p]=eD(tD),s=Wt(()=>{let x=n.current,S=document.activeElement;return!!x&&!!S&&S!==x&&x.contains(S)&&ZP(S)},[n]),d=Wt(()=>{clearTimeout(r.current);let x=()=>{r.current=setTimeout(()=>{if(s()){x();return}o({type:"setControlsActive",controlsActive:!1})},Wx)};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]);j6(()=>{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]),P=Wt(x=>{x.target!==x.currentTarget&&ZP(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:P}}};import{useCallback as oD,useEffect as nD}from"react";var jP=(e,t,o)=>(nD(()=>{let n=()=>o({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",n),()=>document.removeEventListener("fullscreenchange",n)},[e,o]),oD(()=>{let n=e.current;!n||!t||(document.fullscreenElement?document.exitFullscreen():n.requestFullscreen?.())},[e,t]));import{useLayoutEffect as rD,useRef as aD}from"react";var eS=(e,t)=>{let o=aD(null);rD(()=>{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 lD}from"react";var cD='input, textarea, select, [contenteditable]:not([contenteditable="false"])',iD='button, a[href], [role="button"], [role="tab"]',sD='[role="slider"], [role="radiogroup"], [role="tablist"]',pD=e=>{let t=e.target;return t===e.currentTarget?!1:t.closest(cD)?!0:e.key===" "||e.key==="Enter"?!!t.closest(iD):e.key.startsWith("Arrow")||e.key==="Home"||e.key==="End"?!!t.closest(sD):!1},tS=({volume:e,canSeekBackward:t,canSeekForward:o,canUseVolume:n,canUseCaptions:l,dispatch:r,seekBy:a,seekToPercentage:i,togglePlay:p,toggleFullscreen:s,restart:d})=>lD(f=>{if(f.metaKey||f.ctrlKey||f.altKey||pD(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(-ac),t);case"ArrowRight":return m(()=>a(ac),o);case"ArrowUp":return m(()=>b(Math.min(e+rc,1)),n);case"ArrowDown":return m(()=>b(Math.max(e-rc,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 dD,useEffect as oS,useRef as mD,useState as uD}from"react";var ab=()=>{},nS=e=>!!e&&typeof document<"u"&&document.pictureInPictureEnabled===!0&&typeof e.requestPictureInPicture=="function"&&!e.disablePictureInPicture,rS=(e,t,o,n,l)=>{let[r,a]=uD(!1),i=mD(!1);oS(()=>{let s=e.current;if(a(nS(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]),oS(()=>()=>{i.current&&document.pictureInPictureElement&&document.exitPictureInPicture().catch(ab)},[]);let p=dD(()=>{let s=e.current;!t||!nS(s)||(i.current&&document.pictureInPictureElement?document.exitPictureInPicture().catch(ab):s?.requestPictureInPicture().catch(ab))},[t,e]);return{isSupported:t&&r,togglePictureInPicture:p}};import{useEffect as fD}from"react";var aS=e=>{fD(()=>{let t=e.current;if(!t||typeof ResizeObserver>"u")return;let o=new ResizeObserver(([n])=>{t.style.setProperty(zs,`${n.contentRect.height}px`)});return o.observe(t),()=>{o.disconnect(),t.style.removeProperty(zs)}},[e])};import{useCallback as hD,useEffect as lS,useRef as gD,useState as tp}from"react";var lb=[],bD=e=>{let t=e?.api;return t&&Array.isArray(t.levels)&&typeof t.on=="function"?t:void 0},yD=e=>e.map((t,o)=>({index:o,width:t.width??0,height:t.height??0,bitrate:t.bitrate??0})),cS=(e,t,o,n)=>{let[l,r]=tp(),[a,i]=tp(lb),[p,s]=tp(Yr),[d,f]=tp(-1),m=gD(n);m.current=n,lS(()=>{let y=bD(e.current);if(!y)return;let u=()=>{let P=yD(y.levels);y.autoLevelCapping=qg(P,m.current),i(P.length>1?P:lb),s(y.autoLevelEnabled?Yr:y.currentLevel),f(y.currentLevel)},v=(P,I)=>f(I.level),C=()=>{r(void 0),i(lb),s(Yr),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]),lS(()=>{l&&(l.autoLevelCapping=qg(a,n))},[l,a,n]);let b=hD(y=>{l&&(l.nextLevel=y,s(y))},[l]);return{levels:a,selected:p,current:d,onChange:b}};import{useCallback as op,useEffect as vD,useRef as ID}from"react";var iS=(e,t,o,n)=>{let l=ID(0);vD(()=>{l.current=0},[o]);let r=op(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=op(s=>{let d=e.current;!d||!Number.isFinite(d.duration)||r(d.duration*Math.min(Math.max(s,0),1))},[r,e]),i=op(s=>r((e.current?.currentTime??0)+s),[r,e]),p=op(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 sS,useRef as CD}from"react";var pS=(e,t)=>{let o=CD({seconds:e,src:null,attempts:0,done:!1}),n=sS(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)>Kx?r.currentTime=i:a.done=!0,a.attempts>=qx&&(a.done=!0),t({type:"seek",currentTime:i}))},[t]),l=sS(()=>{o.current.done=!0},[]);return{applyStartTime:n,cancelStartTime:l}};var dS=(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 fS}from"react/jsx-runtime";var MD=[],uS=[],kD=xD(function({src:t,tracks:o=MD,startTime:n,allowBarSeeking:l=!0,allowSeekingPastWatched:r=!0,chapters:a,hiddenControls:i=uS,hiddenOverlayControls:p=uS,aspectRatio:s=Vs,controlsOnHover:d=!1,seekStep:f=10,maxQuality:m=_g,engine:b=Gg,labels:y,onTimeChange:u,onDurationChange:v,onPause:C,onEnded:P,className:I,classNames:x,style:S,styles:L,...T},N){let F=mS(null),M=mS(null),[w,k]=SD(dS,nP),{playing:D,duration:B,muted:A,volume:_,playbackRate:R,isLoading:E,isFullscreen:O}=w,z=cb(()=>({...Ag,...y}),[y]),V=cb(()=>$s(o),[o]),W=V.length>0,{captionStyle:J,updateCaptionStyle:H}=KP(),U=fe=>!i.includes(fe),K=fe=>!p.includes(fe),$=U("volume"),Y=U("fullscreen"),ae=U("pictureInPicture"),be=W&&U("subtitles"),pe=U("backward")||K("backward"),Me=U("forward")||K("forward"),{applyStartTime:q,cancelStartTime:Q}=pS(n,k),{seekTo:G,seekToPercentage:re,seekBy:se,jumpTo:ye,watchedTimeRef:ue}=iS(M,r,t,Q),{controlsVisible:xe,inputMode:Z,revealControls:Re,handleMediaClick:Oe,containerHandlers:Se}=JP(D,w.controlsActive||w.settingsOpen,k,F,M),Ye=d&&Z==="mouse",lt=Xe(fe=>{k({type:"setSettingsOpen",settingsOpen:fe}),fe||Re()},[Re]);aS(F);let ea=YP(F),{isSupported:Zn,togglePictureInPicture:le}=rS(M,ae,t,!E,k),X=jP(F,Y,k);PD(N,()=>({getMediaElement:()=>M.current,play:()=>k({type:"play"}),pause:()=>k({type:"pause"}),jumpTo:ye}),[ye]);let ee=Xe(()=>k({type:"togglePlay"}),[]),ge=Xe(()=>{G(0),k({type:"play"})},[G]),_e=tS({volume:_,canSeekBackward:pe,canSeekForward:Me,canUseVolume:$,canUseCaptions:be,dispatch:k,seekBy:se,seekToPercentage:re,togglePlay:ee,toggleFullscreen:X,restart:ge}),Jn=Se.onKeyDown,ta=Xe(fe=>{Jn(fe),_e(fe)},[Jn,_e]),Te=Xe(()=>{Oe()||ee()},[Oe,ee]),Yo=Xe(()=>k({type:"play"}),[]),hS=Xe(()=>{k({type:"pause"}),C?.()},[C]),gS=Xe(fe=>{ue.current=fe.currentTarget.duration,k({type:"pause"}),P?.()},[P,ue]),bS=Xe(fe=>{let oa=fe.currentTarget,Qo=oa.currentTime;if(Qo-ue.current<=oP)ue.current=Math.max(ue.current,Qo);else if(!r){oa.currentTime=ue.current;return}k({type:"timeUpdate",currentTime:Qo}),u?.(Qo)},[r,u,ue]),[yS,vS]=wD(),IS=Xe(fe=>{let{videoWidth:oa,videoHeight:Qo}=fe.currentTarget;vS(oa>0&&Qo>0?oa/Qo:void 0),k({type:"loaded",duration:fe.currentTarget.duration}),q(fe.currentTarget)},[q]),ib=Xe(fe=>q(fe.currentTarget),[q]),CS=Xe(fe=>{k({type:"ready"}),q(fe.currentTarget)},[q]),xS=Xe(fe=>{k({type:"durationChange",duration:fe.currentTarget.duration}),q(fe.currentTarget),v?.(fe)},[q,v]),PS=Xe(()=>k({type:"buffering"}),[]),SS=Xe(()=>k({type:"ready"}),[]),sb=!!t&&E,pb=!t||!E&&(!Number.isFinite(B)||B===0),np=pb||sb;eS(F,np);let rp=XP(M,(V[w.captionsTrackIndex]??V[0])?.srcLang,t,!E),wS=qP(M,t,!E),MS=cS(M,t,!E,m),kS=cb(()=>$g(rp.length>0?rp:a,B),[rp,a,B]);return Qn("div",{className:mc("cleen",I),style:S,children:fS("div",{ref:F,className:mc("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":O},x?.container),style:L?.container,onPointerMove:Se.onPointerMove,onPointerLeave:Se.onPointerLeave,onPointerDown:Se.onPointerDown,onFocus:Se.onFocus,onDoubleClick:X,onKeyDown:ta,tabIndex:0,children:[fS("div",{className:mc("cleen-relative cleen-flex cleen-justify-center cleen-items-center",{"cleen-h-full":O},x?.viewport),style:{aspectRatio:O?void 0:s==="auto"?yS??Vs:s,...L?.viewport},children:[Qn(b,{...T,ref:M,src:t||void 0,controls:!1,playing:D,muted:A,volume:_,playbackRate:R,playsInline:!0,className:mc("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",x?.video),style:L?.video,onClick:Te,onPlay:Yo,onPause:hS,onEnded:gS,onTimeUpdate:bS,onLoadedMetadata:IS,onLoadedData:ib,onCanPlay:CS,onSeeked:ib,onDurationChange:xS,onWaiting:PS,onError:SS,crossOrigin:"anonymous",children:o.map(fe=>Qn("track",{kind:fe.kind??"subtitles",src:fe.src,srcLang:fe.srcLang,label:fe.label},fe.src))}),pb&&Qn(GP,{label:z.placeholder,subLabel:z.placeholderSubLabel,classNames:x,styles:L}),sb&&Qn(ce,{size:"xl",className:mc("cleen-absolute",x?.loader?.className),classNames:x?.loader?.classNames,...L?.loader}),Qn(HP,{playing:D,seekStep:f,visible:xe,hidden:np,controlsOnHover:Ye,isShown:K,onTogglePlay:ee,onSeekBy:se,labels:z,classNames:x,styles:L})]}),Qn(VP,{compact:ea,containerRef:F,portalContainer:O?F.current:null,videoRef:M,src:t,state:w,dispatch:k,isShown:U,allowBarSeeking:l,chapters:kS,buffered:wS,quality:MS,seekStep:f,hasTracks:W,captionTracks:V,captionStyle:J,onCaptionStyleChange:H,onSettingsOpenChange:lt,visible:xe,hidden:np,controlsOnHover:Ye,onSeek:G,onSeekBy:se,onTogglePlay:ee,onToggleFullscreen:X,pictureInPictureSupported:Zn,onTogglePictureInPicture:le,labels:z,classNames:x,styles:L})]})})});export{FS as AdvancedProgressBar,tT as AudioPlayback,iT as AudioRecorder,Di as Avatar,uT as AvatarRow,gT as Breadcrumb,te as Button,J0 as Calendar,NT as CalendarDropdown,Y3 as CanvasButton,Pe as Card,h3 as CardIcon,I3 as CardMedia,FT as Carousel,bn as Checkbox,qT as CheckboxGroup,Ee as CleenIcon,sE as CleenNotificationContainer,B2 as Collapsible,jT as ColorPicker,rN as CreditCardInput,Gl as DEFAULT_NOTIFICATION_CATEGORIES,$l as DEFAULT_NOTIFICATION_LABELS,Ag as DEFAULT_VIDEO_PLAYER_LABELS,xt as Divider,o1 as Drawer,gx as DrawerContainer,aL as DrawerContentTitle,Bl as Dropdown,_N as Dropzone,W3 as EditableCard,JN as EditableMatrix,_0 as EditableText,z0 as EditableTextArea,aB as FileCard,d1 as FileStackedProgressTracker,KB as FilterDrawer,lC as FormGroup,rR as GroupSelector,vp as Icon48AlertFeatured,Ip as Icon48SuccessFeatured,Jo as IconAlertCircle,xp as IconAlertOctagon,Sp as IconAlertTriangle,wp as IconApps,kp as IconArchive,Tp as IconArrowBarDown,Np as IconArrowBarLeft,Bp as IconArrowBarRight,Rp as IconArrowBarToDown,Ep as IconArrowBarToLeft,Lp as IconArrowBarToRight,Dp as IconArrowBarToUp,Fp as IconArrowBarUp,Op as IconArrowDown,_p as IconArrowDownLeft,zp as IconArrowDownNarrow,Hp as IconArrowDownRight,Gp as IconArrowLeft,Wp as IconArrowLeftNarrow,Kp as IconArrowRight,Yp as IconArrowRightNarrow,Zp as IconArrowUp,Jp as IconArrowUpLeft,ed as IconArrowUpNarrow,td as IconArrowUpRight,od as IconAttachment,pa as IconBadgeHd,nd as IconBarChart,rd as IconBarChartSquare,ad as IconBell,ld as IconBold,md as IconBookOpen,cd as IconBookmark,mp as IconBookmarkCheck,up as IconBookmarkCheckFill,id as IconBookmarkFill,sd as IconBookmarkMinus,hp as IconBookmarkPlus,dd as IconBookmarkX,ud as IconBoxLines,hd as IconBoxText,bd as IconBracketsCheck,yd as IconBracketsEllipses,vd as IconBrickWall,Id as IconBriefcase,gp as IconBuilding,Cd as IconCalculator,fa as IconCalendar,xd as IconCertificate,Yt as IconCheck,jo as IconCheckCircle,Pd as IconCheckCircleBroken,Sd as IconCheckFill,wd as IconCheckVerified,Md as IconCheckVerifiedFill,en as IconChevronDown,kd as IconChevronDownDouble,Td as IconChevronDownLeft,Nd as IconChevronDownLeftDouble,Bd as IconChevronDownRight,Rd as IconChevronDownRightDouble,Qt as IconChevronLeft,Ed as IconChevronLeftDouble,ct as IconChevronRight,ha as IconChevronRightDouble,Ld as IconChevronSelectorVertical,Zt as IconChevronUp,Dd as IconChevronUpDouble,Fd as IconChevronUpLeft,Ad as IconChevronUpLeftDouble,Od as IconChevronUpRight,_d as IconChevronUpRightDouble,Vd as IconClick,ga as IconClock,zd as IconClockFastForward,Ud as IconClockPlay,Gd as IconClockRewind,$d as IconClone,ya as IconClosedCaption,Kd as IconCode,Xd as IconCodeBrowser,Qd as IconCodeCircle,Jd as IconColors,bp as IconColumnEdit,jd as IconCopy,em as IconCopy2,om as IconCopyCheck,nm as IconCreditCard,rm as IconCube,am as IconCubeOutline,va as IconCursorBox,lm as IconDataflow,cm as IconDataflow2,im as IconDataflow3,pm as IconDistributeHorizontal,dm as IconDollar,um as IconDollarCircle,fm as IconDot,hm as IconDotFill,gm as IconDotsGrid,Ca as IconDotsHorizontal,Co as IconDotsVertical,Im as IconDownload,Cm as IconEdit,Pm as IconEditable,Sm as IconExpand,Mm as IconExternalLink,Tm as IconExternalLink2,Nm as IconEye,Rm as IconEyeHidden,Em as IconEyeHidden2,Lm as IconFaceAngry,Dm as IconFaceLaugh,Fm as IconFaceSmile,on as IconFile,Om as IconFileCheck,Sa as IconFileCsv,_m as IconFileDownload,wa as IconFileJson,Vm as IconFileList,pt as IconFileMusic,nn as IconFilePdf,ka as IconFileSpreadsheet,jt as IconFileText,Um as IconFileUpload,Na as IconFileXls,Ba as IconFileXlsx,Tt as IconFileZip,Hm as IconFiles,Gm as IconFilter,Ra as IconFilter2,Wm as IconFlag,qm as IconFlag2,Km as IconFlagFill,Xm as IconFocus,Ym as IconFolder,Qm as IconFolderExport,Zm as IconFolderImport,Jm as IconGraduationCap,jm as IconGripVertical,eu as IconHand,tu as IconHandShield,ou as IconHash,nu as IconHeadsetMic,ru as IconHeart,au as IconHeartFill,cu as IconHouse,La as IconHouseLine,We as IconImage,iu as IconImage2,su as IconImageCheck,pu as IconImageOff,du as IconImport,mu as IconInbox,fu as IconInfoCircle,gu as IconInfoHexagon,yu as IconItalic,Iu as IconLayersMultiple,Cu as IconLayersSingle,xu as IconLayout,Su as IconLayout2,wu as IconLayoutColumns,Mu as IconLayoutCustom,Tu as IconLayoutStuffed,Nu as IconLayoutTile,Bu as IconLifeBuoy,Eu as IconLightbulb,Lu as IconLightning,Du as IconLightningFast,Fu as IconLineChart,Au as IconLineChartBar,Ou as IconLineChartBreakoutSquare,Vu as IconLineChartUp,zu as IconLines,Hu as IconLinesCheck,Uu as IconLinesPlay,$u as IconLink,Wu as IconLink2,qu as IconLinkOff,Ku as IconListBullet,Xu as IconListOrder,Qu as IconLock,Zu as IconLockFill,ju as IconLogIn,tf as IconLogOut,nf as IconLogOut2,rf as IconMagicWand,af as IconMail,lf as IconMailOpen,cf as IconMapPin,Va as IconMaximize,sf as IconMaximize2,pf as IconMessageCircle,rn as IconMessageSquare,mf as IconMessageSquare2,uf as IconMessageXSquare,Ha as IconMicrophone,Ua as IconMinimize,ff as IconMinimize2,hf as IconMinusCircle,bf as IconMobile,yf as IconMonitor,vf as IconMonitor2,If as IconMoon,Cf as IconMoonCircle,yt as IconMovie,Nt as IconName,xf as IconNavigationPointer,Pf as IconNotificationBox,Bf as IconPCSetup,Sf as IconPackage,wf as IconPalette,Mf as IconPasscodeLock,vt as IconPause,Tf as IconPauseCircle,Ef as IconPen,Lf as IconPercentageCircle,Df as IconPerspective,Af as IconPhoneCall,qa as IconPictureInPicture,Ka as IconPin,It as IconPlay,_f as IconPlayCircle,an as IconPlus,Mo as IconPlusCircle,Hf as IconPrinter,Uf as IconPulse,Xa as IconQuestionCircle,$f as IconQuote,Wf as IconRadioButton,qf as IconRadioButtonFill,Kf as IconReceipt,Xf as IconReceiptCheck,Yf as IconRedo,Ya as IconRefresh,Qf as IconRefresh2,Zf as IconRefresh3,Jf as IconRepeat,jf as IconReplace,Qa as IconReplay,th as IconRestore,nh as IconRocket,rh as IconRoundChart,ah as IconRoundChart2,ch as IconRoute,sh as IconSave,ph as IconScanDots,Za as IconScissors,Ct as IconSearch,dh as IconSend,mh as IconServer,Ja as IconSettings,uh as IconSettings2,fh as IconShare,hh as IconShieldLightning,bh as IconShieldPlus,vh as IconShieldRemove,Ih as IconShoppingBag,Ch as IconShoppingCart,xh as IconShrink,Ph as IconShuffle,Sh as IconSkipForward,wh as IconSlashCircle,Mh as IconSlashOctagon,kh as IconSocialAndroid,Th as IconSocialApple,Nh as IconSocialGithub,Bh as IconSocialGlobe,Rh as IconSocialGoogle,Lh as IconSocialInstagram,Dh as IconSocialLinkedin,Ah as IconSocialMastercard,Oh as IconSocialReact,_h as IconSocialVisa,Vh as IconSocialX,nl as IconSpeedometer,zh as IconStairs,rl as IconStar,Hh as IconStarFill,Uh as IconStarHalf,Gh as IconStars,al as IconStop,$h as IconStrikethrough,Wh as IconSun,qh as IconSwap,Kh as IconSwitchHorizontal,Yh as IconTable,ll as IconTag,Qh as IconTarget,Jh as IconTarget2,e0 as IconTextFormat,t0 as IconTextFormat2,o0 as IconTextHighlight,n0 as IconThumbsDown,r0 as IconThumbsUp,a0 as IconThumbsUpFill,l0 as IconToggle,c0 as IconTranslate,dt as IconTrash,i0 as IconTrending,s0 as IconUnderline,p0 as IconUndo,m0 as IconUnlock,sn as IconUploadCloud,il as IconUser,h0 as IconUserCheck,g0 as IconUserDollar,y0 as IconUserEdit,v0 as IconUserPlus,I0 as IconUserRight,P0 as IconUserSquare,yp as IconUserVoice,C0 as IconUsers,S0 as IconUsersUp,w0 as IconVideo,k0 as IconVideoChat,pl as IconVolume,dl as IconVolumeDown,ml as IconVolumeMute,N0 as IconWrench,He as IconX,B0 as IconXCircle,R0 as IconXCircleFill,E0 as IconXSquare,L0 as IconZoomIn,F0 as IconZoomOut,ie as InfoLabels,Ie as Input,de as Label,ce as Loader,uR as Lookup,yR as Markdown,Mn as Menu,kR as Modal,Lr as NOTIFICATION_GENERAL_CATEGORY,u6 as NativeVideoEngine,xE as Pagination,j1 as PaginationGoToPage,eg as PaginationPageSize,Le as PillBadge,no as Popover,Nr as ProgressBar,jC as ProgressCircle,BE as RadioBoxGroup,_E as RadioButtonGroup,GE as Rating,Gg as ReactPlayerEngine,jE as Select,Cx as Sidebar,Ql as SidebarItem,hL as Skeleton,ag as SkeletonAvatar,cg as SkeletonBadge,ig as SkeletonBanner,pg as SkeletonButton,Zl as SkeletonCard,Bs as SkeletonCard2,dg as SkeletonCard3,ug as SkeletonCardStack,fg as SkeletonChart,hg as SkeletonContentCard,gg as SkeletonDataGrid,bg as SkeletonForm,vg as SkeletonGlowingCard,Ig as SkeletonImage,Cg as SkeletonInfoCard,Sg as SkeletonInput,wg as SkeletonList,Tg as SkeletonParagraph,Ng as SkeletonText,Bg as SkeletonVideo,As as SkeletonWidgetCard,GL as SkeletonWrapper,Hn as Slider,YL as SliderRange,s1 as StackedProgressTracker,r1 as StackedProgressTrackerRow,a1 as StackedProgressTrackerStatusFilter,JL as StarRating,Hx as Stepper,D1 as Switch,Dl as TRACKER_STATUS_FILTER_ORDER,Hl as Tabs,n6 as TagFilter,Il as TextArea,Ne as Tooltip,El as TrackerItemStatus,Ll as TrackerStatusFilter,Vs as VIDEO_PLAYER_ASPECT_RATIO_DEFAULT,_g as VIDEO_PLAYER_MAX_QUALITY_DEFAULT,Og as VIDEO_PLAYER_SEEK_STEP_DEFAULT,kD as VideoPlayer,cc as VideoPlayerControl,Fl as cleanCellValue,SC as createNotificationStore,Je as formatHours,Zr as formatTime,Pn as getEditableMatrixKey,I1 as getEditableMatrixTotals,A0 as getFileIcon,y1 as getMinutesBetween,sc as getVideoChapterAt,y6 as getVideoChapterIndex,Wg as getVideoChapterProgress,$g as getVideoChapters,U1 as groupLayout,G1 as listLayout,Rn as notification,me as notificationStore,v1 as parseHours,j0 as parseRgbaString,Rr as roundHours,wC as showNotification,$1 as stackLayout,b1 as timeToMinutes,LR as useNotifications};
|
|
1
|
+
import{cn as Zo,useAnimateNumber as LS}from"@cleen/ui-core";import{forwardRef as DS,useMemo as yb}from"react";import{cn as uc,usePositionClose as TS,ZIndex as NS}from"@cleen/ui-core";import{useEffect as mb,useRef as ap,useState as ub}from"react";import{createPortal as BS}from"react-dom";import{jsx as lp,jsxs as fb}from"react/jsx-runtime";var Ne=({bg:e,label:t,color:n,closeOnClick:o=!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=NS.TOOLTIP,portalContainer:P,style:I,styles:x,onClick:S,onMouseEnter:E,onMouseLeave:T,...N})=>{let[F,w]=ub(r??!1),[M,k]=ub(!1),D=ap(null),L=ap(null),A=ap(null),{positionStyles:z,isMounted:R,optimalPosition:B}=TS({triggerRef:L,targetRef:D,position:p,isOpen:F&&!m,offset:s,extraUpdateTriggers:u,container:P});mb(()=>{w(r??!1)},[r]);let V=O=>{S?.(O),o&&w(!1)},U=(O,_)=>{if(r!==void 0)return;let K=L.current?.contains(O.target);!v&&!K||(_?(E?.(O),b&&b>0?A.current=setTimeout(()=>{w(!0)},b):w(!0)):(A.current&&(clearTimeout(A.current),A.current=null),w(!1),T?.(O)))};return mb(()=>{let O=()=>{l&&k(!0)},_=()=>{k(!1)};return document.addEventListener("mousedown",O),document.addEventListener("mouseup",_),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("mouseup",_)}},[l]),fb("div",{className:uc("cleen",d),style:I,children:[lp("div",{ref:L,className:uc("cleen-relative cleen-max-w-fit",f?.container),style:x?.container,onClick:V,onMouseEnter:O=>U(O,!0),onMouseLeave:O=>U(O,!1),...N,children:a}),t!==void 0&&F&&!m&&!M&&BS(lp("div",{className:"cleen",children:fb("div",{ref:D,className:uc("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":!R,"cleen-opacity-100":R},f?.labelContainer),style:{zIndex:C,top:`${z.top}px`,left:`${z.left}px`,...e&&{backgroundColor:e},...n&&{color:n},...x?.labelContainer},children:[t,lp("div",{className:uc(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)]":B==="top"||B==="top-left"||B==="top-right","cleen-left-[calc(50%-6px)]":B==="top"||B==="bottom","cleen-left-[6px]":B==="top-left"||B==="bottom-left","cleen-right-[6px]":B==="top-right"||B==="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)]":B==="bottom"||B==="bottom-left"||B==="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)]":B==="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)]":B==="right"}]:"cleen-hidden"),style:{}})]})}),P??document.body)]})};import{cn as na}from"@cleen/ui-core";var qt=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),Kt=(e,t,n)=>{let o=Number.isFinite(t)?t:0,l=Number.isFinite(n)?n:100;return l===o?0:(e-o)/(l-o)*100};import{cn as fc}from"@cleen/ui-core";import{jsx as cp}from"react/jsx-runtime";var hc=({serie:e,minValue:t,maxValue:n,color:o,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,n)),d=Math.max(2,e?.height??l*1.5),f={left:`${s}%`,top:"50%"};return e.tooltip?cp(Ne,{invertColors:!0,...e.tooltip,className:fc("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:fc("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:cp("div",{className:fc("cleen-rounded-full",r),style:{width:d,height:d,backgroundColor:o,...a}})}):cp("div",{className:fc("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:o,...f,...a}})};import{jsx as gc}from"react/jsx-runtime";var hb=({serie:e,minValue:t,maxValue:n,animatedGlobal:o=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:n,m=qt(Kt(d,t,n)),b=qt(Kt(f,t,n));b<m&&([m,b]=[b,m]);let y=Math.max(0,l?o-m:b-m);if(y<1&&!l||l&&o>=b&&y===0)return gc(hc,{serie:{...e,type:"clamp",value:m},color:r,trackHeight:a,minValue:t,maxValue:n,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?gc(Ne,{invertColors:!0,...e.tooltip,className:na("cleen-absolute",e.tooltip.className),style:{...u,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:na("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:na("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:gc("div",{className:na("cleen-relative cleen-size-full",p),style:{...C,...v,...s}})}):gc("div",{className:na("cleen-absolute cleen-pointer-events-none",p),style:{...C,...u,...s}})};import{cn as RS}from"@cleen/ui-core";import{jsx as ES}from"react/jsx-runtime";var gb=({serie:e,minValue:t,maxValue:n,className:o,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,n))}else{let a=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:n,p=qt(Kt(a,t,n)),s=qt(Kt(i,t,n));r=(p+s)/2}return ES("div",{className:RS("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",o),style:{left:`${r}%`,...l},children:e.label})};var bb={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as jn,jsxs as vb}from"react/jsx-runtime";var FS=DS(function({series:t=[],track:n,renderAnimated:o,renderAnimatedDuration:l=1e3,className:r,classNames:a,style:i,styles:p,minValue:s=0,maxValue:d=100,...f},m){let b=yb(()=>({...bb,...n}),[n]),y=yb(()=>t.reduce((P,I)=>{if(I.type==="bar"){let x=typeof I.end=="number"?I.end:d,S=Math.max(s,Math.min(x,d));if(S>P)return S}return P},0),[t,s,d]),u=LS({targetNumber:y,defaultNumber:s,duration:l,disabled:!o}),{bars:v,clamps:C}=t.reduce((P,I,x)=>{if(I==null||!I.type)return P;let S=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":P.clamps.push(jn(hc,{serie:I,color:S,trackHeight:b.height,minValue:s,maxValue:d,className:Zo(a?.clamp,I.className),style:{...p?.clamp,...I.style}},`clamp-${x}`));break;case"bar":P.bars.push(jn(hb,{serie:I,color:S,trackHeight:b.height,trackRadius:b.radius,minValue:s,maxValue:d,renderAnimated:o,animatedGlobal:u,className:Zo(a?.bar,I.className),style:{...p?.bar,...I.style}},`bar-${x}`));break;default:break}return P},{clamps:[],bars:[]});return jn("div",{className:Zo("cleen",r),style:i,ref:m,...f,children:vb("div",{className:Zo("cleen-relative cleen-w-full",a?.container),style:p?.container,children:[vb("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(P=>!!P.label)&&jn("div",{"aria-hidden":!0,className:Zo("cleen-relative cleen-mt-2 cleen-h-5",a?.labels),style:p?.labels,children:t.map((P,I)=>!P||!P.type||!P.label?null:jn(gb,{serie:P,minValue:s,maxValue:d,className:a?.label,style:p?.label},`label-${I}`))})]})})});import{cn as ip}from"@cleen/ui-core";import{jsx as sp}from"react/jsx-runtime";var AS={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"},OS={slow:1.3,normal:.65,fast:.4},ce=({isFullscreen:e,size:t="xs",stroke:n,speed:o="normal",className:l,classNames:r,style:a,styles:i,color:p,...s})=>sp("div",{className:ip("cleen",l),style:a,children:sp("div",{className:ip("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:sp("span",{className:ip("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"&&AS[t],r?.loader),style:{...p&&{borderInlineColor:p,borderTopColor:p},...typeof t=="number"&&{width:t,height:t},...typeof n=="number"&&{borderWidth:n},animationDuration:`${typeof o=="number"?o:OS[o]}s`,...i?.loader}})})});import{cn as pp,useWidthDynamicResize as _S}from"@cleen/ui-core";import{forwardRef as VS,useImperativeHandle as zS,useRef as HS}from"react";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 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"},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{jsx as xb,jsxs as US}from"react/jsx-runtime";var te=VS(function({type:t="button",label:n,onClick:o,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 P=HS(null);return zS(C,()=>P.current),_S({ref:P,skip:y},[m,s,d,y]),xb("div",{className:pp("cleen",l),style:a,children:US("button",{type:t,ref:P,className:pp("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",Ib[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:o,...v,children:[m&&xb(ce,{size:"xs",color:f||Cb[b],className:pp("cleen-mr-1.5 cleen-w-fit",r?.loaderContainer),style:i?.loaderContainer,classNames:{loader:r?.loader},styles:{loader:i?.loader}}),s||null,n||u,d||null]})})});var Pb={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"},Sb={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 ew}from"@cleen/ui-core";function er(e,t,n){return Math.min(Math.max(e,n),t)}var dp=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},ra=dp;function GS(e){if(typeof e!="string")throw new ra(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=ZS.test(e)?qS(e):e;let n=KS.exec(t);if(n){let a=Array.from(n).slice(1);return[...a.slice(0,3).map(i=>parseInt(aa(i,2),16)),parseInt(aa(a[3]||"f",2),16)/255]}let o=XS.exec(t);if(o){let a=Array.from(o).slice(1);return[...a.slice(0,3).map(i=>parseInt(i,16)),parseInt(a[3]||"ff",16)/255]}let l=YS.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=QS.exec(t);if(r){let[a,i,p,s]=Array.from(r).slice(1).map(parseFloat);if(er(0,100,i)!==i)throw new ra(e);if(er(0,100,p)!==p)throw new ra(e);return[...JS(a,i,p),Number.isNaN(s)?1:s]}throw new ra(e)}function $S(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}var wb=e=>parseInt(e.replace(/_/g,""),36),WS="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=wb(t.substring(0,3)),o=wb(t.substring(3)).toString(16),l="";for(let r=0;r<6-o.length;r++)l+="0";return e[n]=`${l}${o}`,e},{});function qS(e){let t=e.toLowerCase().trim(),n=WS[$S(t)];if(!n)throw new ra(e);return`#${n}`}var aa=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),KS=new RegExp(`^#${aa("([a-f0-9])",3)}([a-f0-9])?$`,"i"),XS=new RegExp(`^#${aa("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),YS=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${aa(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),QS=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,ZS=/^[a-z]+$/i,Mb=e=>Math.round(e*255),JS=(e,t,n)=>{let o=n/100;if(t===0)return[o,o,o].map(Mb);let l=(e%360+360)%360/60,r=(1-Math.abs(2*o-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=o-r/2,f=i+d,m=p+d,b=s+d;return[f,m,b].map(Mb)};function jS(e,t,n,o){return`rgba(${er(0,255,e).toFixed()}, ${er(0,255,t).toFixed()}, ${er(0,255,n).toFixed()}, ${parseFloat(er(0,1,o).toFixed(3))})`}function la(e,t){let[n,o,l,r]=GS(e);return jS(n,o,l,r-t)}import{forwardRef as tw,useMemo as ow}from"react";import{jsx as tr,jsxs as kb}from"react/jsx-runtime";var Pe=tw(function({header:t,footer:n,color:o,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:P}=ow(()=>{let I=ew.getComputedColor(o);return I?{cardColor:I,backgroundColor:la(I,.9),borderColor:la(I,.8)}:{cardColor:I}},[o]);return tr("div",{className:yo("cleen",d),style:m,ref:u,...y,children:kb("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",n?.content?"cleen-pb-3":"cleen-pb-6",f?.container),style:{...v&&{backgroundColor:C,borderColor:P,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)&&kb("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:P},...b?.header?.divider}}),s&&tr("div",{className:yo("cleen-px-6",f?.childrenContainer),style:{...a!==void 0&&{paddingInline:a},...b?.childrenContainer},children:s}),n?.content&&n?.hasDivider&&tr("hr",{className:yo("cleen-text-neutral-200",f?.footer?.divider),style:{...v&&{color:P},...b?.footer?.divider}}),n?.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:n.content})]})})});import{jsx as nw}from"react/jsx-runtime";function c({size:e=24,width:t,height:n,strokeWidth:o=1.5,isFilled:l=!1,children:r,...a}){return delete a.color1,delete a.color2,nw("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:n??e,viewBox:"0 0 24 24",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:l?0:o,strokeLinecap:"round",strokeLinejoin:"round",...a,children:r})}import{jsx as Tb,jsxs as rw}from"react/jsx-runtime";var mp=e=>rw(c,{...e,children:[Tb("path",{d:"M9 10.5l2 2l4 -4"}),Tb("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as Nb}from"react/jsx-runtime";var up=e=>Nb(c,{isFilled:!0,...e,children:Nb("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 fp,jsxs as aw}from"react/jsx-runtime";var hp=e=>aw(c,{...e,children:[fp("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),fp("path",{d:"M16 19h6"}),fp("path",{d:"M19 16v6"})]});import{jsx as vo,jsxs as lw}from"react/jsx-runtime";var gp=e=>lw(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 Bb,jsxs as cw}from"react/jsx-runtime";var bp=e=>cw(c,{...e,children:[Bb("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"}),Bb("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 bc,jsxs as iw}from"react/jsx-runtime";var yp=e=>iw(c,{...e,children:[bc("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),bc("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),bc("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),bc("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as ca,jsxs as sw}from"react/jsx-runtime";var vp=e=>sw(c,{viewBox:"0 0 48 48",...e,children:[ca("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),ca("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),ca("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),ca("path",{d:"M24 18v8"}),ca("path",{d:"M24 30h.01"})]});import{jsx as yc,jsxs as pw}from"react/jsx-runtime";var Ip=e=>pw(c,{viewBox:"0 0 48 48",...e,children:[yc("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),yc("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),yc("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),yc("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as Cp,jsxs as dw}from"react/jsx-runtime";var Jo=e=>dw(c,{...e,children:[Cp("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Cp("path",{d:"M12 8v4"}),Cp("path",{d:"M12 16h.01"})]});import{jsx as Rb}from"react/jsx-runtime";var xp=e=>Rb(c,{isFilled:!0,...e,children:Rb("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 Pp,jsxs as mw}from"react/jsx-runtime";var Sp=e=>mw(c,{...e,children:[Pp("path",{d:"M12 9v4"}),Pp("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"}),Pp("path",{d:"M12 16h.01"})]});import{jsx as ia,jsxs as uw}from"react/jsx-runtime";var wp=e=>uw(c,{...e,children:[ia("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"}),ia("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"}),ia("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"}),ia("path",{d:"M14 7l6 0"}),ia("path",{d:"M17 4l0 6"})]});import{jsx as Mp,jsxs as fw}from"react/jsx-runtime";var kp=e=>fw(c,{...e,children:[Mp("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"}),Mp("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),Mp("path",{d:"M10 12l4 0"})]});import{jsx as vc,jsxs as hw}from"react/jsx-runtime";var Tp=e=>hw(c,{...e,children:[vc("path",{d:"M12 20l0 -10"}),vc("path",{d:"M12 20l4 -4"}),vc("path",{d:"M12 20l-4 -4"}),vc("path",{d:"M4 4l16 0"})]});import{jsx as Ic,jsxs as gw}from"react/jsx-runtime";var Np=e=>gw(c,{...e,children:[Ic("path",{d:"M4 12l10 0"}),Ic("path",{d:"M4 12l4 4"}),Ic("path",{d:"M4 12l4 -4"}),Ic("path",{d:"M20 4l0 16"})]});import{jsx as Cc,jsxs as bw}from"react/jsx-runtime";var Bp=e=>bw(c,{...e,children:[Cc("path",{d:"M20 12l-10 0"}),Cc("path",{d:"M20 12l-4 4"}),Cc("path",{d:"M20 12l-4 -4"}),Cc("path",{d:"M4 4l0 16"})]});import{jsx as xc,jsxs as yw}from"react/jsx-runtime";var Rp=e=>yw(c,{...e,children:[xc("path",{d:"M4 20l16 0"}),xc("path",{d:"M12 14l0 -10"}),xc("path",{d:"M12 14l4 -4"}),xc("path",{d:"M12 14l-4 -4"})]});import{jsx as Pc,jsxs as vw}from"react/jsx-runtime";var Ep=e=>vw(c,{...e,children:[Pc("path",{d:"M10 12l10 0"}),Pc("path",{d:"M10 12l4 4"}),Pc("path",{d:"M10 12l4 -4"}),Pc("path",{d:"M4 4l0 16"})]});import{jsx as Sc,jsxs as Iw}from"react/jsx-runtime";var Lp=e=>Iw(c,{...e,children:[Sc("path",{d:"M14 12l-10 0"}),Sc("path",{d:"M14 12l-4 4"}),Sc("path",{d:"M14 12l-4 -4"}),Sc("path",{d:"M20 4l0 16"})]});import{jsx as wc,jsxs as Cw}from"react/jsx-runtime";var Dp=e=>Cw(c,{...e,children:[wc("path",{d:"M12 10l0 10"}),wc("path",{d:"M12 10l4 4"}),wc("path",{d:"M12 10l-4 4"}),wc("path",{d:"M4 4l16 0"})]});import{jsx as Mc,jsxs as xw}from"react/jsx-runtime";var Fp=e=>xw(c,{...e,children:[Mc("path",{d:"M12 4l0 10"}),Mc("path",{d:"M12 4l4 4"}),Mc("path",{d:"M12 4l-4 4"}),Mc("path",{d:"M4 20l16 0"})]});import{jsx as Ap,jsxs as Pw}from"react/jsx-runtime";var Op=e=>Pw(c,{...e,children:[Ap("path",{d:"M12 5l0 14"}),Ap("path",{d:"M18 13l-6 6"}),Ap("path",{d:"M6 13l6 6"})]});import{jsx as Eb,jsxs as Sw}from"react/jsx-runtime";var _p=e=>Sw(c,{...e,children:[Eb("path",{d:"M17 7l-10 10"}),Eb("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as Vp,jsxs as ww}from"react/jsx-runtime";var zp=e=>ww(c,{...e,children:[Vp("path",{d:"M12 5l0 14"}),Vp("path",{d:"M16 15l-4 4"}),Vp("path",{d:"M8 15l4 4"})]});import{jsx as Lb,jsxs as Mw}from"react/jsx-runtime";var Hp=e=>Mw(c,{...e,children:[Lb("path",{d:"M7 7l10 10"}),Lb("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as Up,jsxs as kw}from"react/jsx-runtime";var Gp=e=>kw(c,{...e,children:[Up("path",{d:"M5 12l14 0"}),Up("path",{d:"M5 12l6 6"}),Up("path",{d:"M5 12l6 -6"})]});import{jsx as $p,jsxs as Tw}from"react/jsx-runtime";var Wp=e=>Tw(c,{...e,children:[$p("path",{d:"M5 12l14 0"}),$p("path",{d:"M5 12l4 4"}),$p("path",{d:"M5 12l4 -4"})]});import{jsx as qp,jsxs as Nw}from"react/jsx-runtime";var Kp=e=>Nw(c,{...e,children:[qp("path",{d:"M5 12l14 0"}),qp("path",{d:"M13 18l6 -6"}),qp("path",{d:"M13 6l6 6"})]});import{jsx as Xp,jsxs as Bw}from"react/jsx-runtime";var Yp=e=>Bw(c,{...e,children:[Xp("path",{d:"M5 12l14 0"}),Xp("path",{d:"M15 16l4 -4"}),Xp("path",{d:"M15 8l4 4"})]});import{jsx as Qp,jsxs as Rw}from"react/jsx-runtime";var Zp=e=>Rw(c,{...e,children:[Qp("path",{d:"M12 5l0 14"}),Qp("path",{d:"M18 11l-6 -6"}),Qp("path",{d:"M6 11l6 -6"})]});import{jsx as Db,jsxs as Ew}from"react/jsx-runtime";var Jp=e=>Ew(c,{...e,children:[Db("path",{d:"M7 7l10 10"}),Db("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as jp,jsxs as Lw}from"react/jsx-runtime";var ed=e=>Lw(c,{...e,children:[jp("path",{d:"M12 5l0 14"}),jp("path",{d:"M16 9l-4 -4"}),jp("path",{d:"M8 9l4 -4"})]});import{jsx as Fb,jsxs as Dw}from"react/jsx-runtime";var td=e=>Dw(c,{...e,children:[Fb("path",{d:"M17 7l-10 10"}),Fb("path",{d:"M8 7l9 0l0 9"})]});import{jsx as Ab}from"react/jsx-runtime";var od=e=>Ab(c,{...e,children:Ab("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 sa,jsxs as Fw}from"react/jsx-runtime";var pa=e=>Fw(c,{...e,children:[sa("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"}),sa("path",{d:"M14 9v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1"}),sa("path",{d:"M7 15v-6"}),sa("path",{d:"M10 15v-6"}),sa("path",{d:"M7 12h3"})]});import{jsx as kc,jsxs as Aw}from"react/jsx-runtime";var nd=e=>Aw(c,{...e,children:[kc("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"}),kc("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"}),kc("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"}),kc("path",{d:"M4 20h14"})]});import{jsx as da,jsxs as Ow}from"react/jsx-runtime";var rd=e=>Ow(c,{...e,children:[da("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"}),da("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"}),da("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"}),da("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"}),da("path",{d:"M7 18.5h10"})]});import{jsx as Ob,jsxs as _w}from"react/jsx-runtime";var ad=e=>_w(c,{...e,children:[Ob("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"}),Ob("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as _b,jsxs as Vw}from"react/jsx-runtime";var ld=e=>Vw(c,{...e,children:[_b("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),_b("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as Vb}from"react/jsx-runtime";var cd=e=>Vb(c,{...e,children:Vb("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as zb}from"react/jsx-runtime";var id=e=>zb(c,{isFilled:!0,...e,children:zb("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 Hb,jsxs as zw}from"react/jsx-runtime";var sd=e=>zw(c,{...e,children:[Hb("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),Hb("path",{d:"M16 19h6"})]});import{jsx as pd,jsxs as Hw}from"react/jsx-runtime";var dd=e=>Hw(c,{...e,children:[pd("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),pd("path",{d:"M20.5 21.5l-5 -5"}),pd("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as ma,jsxs as Uw}from"react/jsx-runtime";var md=e=>Uw(c,{...e,children:[ma("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),ma("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),ma("path",{d:"M3 6l0 13"}),ma("path",{d:"M12 6l0 13"}),ma("path",{d:"M21 6l0 13"})]});import{jsx as Tc,jsxs as Gw}from"react/jsx-runtime";var ud=e=>Gw(c,{...e,children:[Tc("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"}),Tc("path",{d:"M9 13h-2"}),Tc("path",{d:"M13 10h-6"}),Tc("path",{d:"M11 7h-4"})]});import{jsx as fd,jsxs as $w}from"react/jsx-runtime";var hd=e=>$w(c,{...e,children:[fd("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"}),fd("path",{d:"M10 8h4"}),fd("path",{d:"M12 8v8"})]});import{jsx as gd,jsxs as Ww}from"react/jsx-runtime";var bd=e=>Ww(c,{...e,children:[gd("path",{d:"M9 12l2 2l4 -4"}),gd("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),gd("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as ua,jsxs as qw}from"react/jsx-runtime";var yd=e=>qw(c,{...e,children:[ua("path",{d:"M15 12h.01"}),ua("path",{d:"M12 12h.01"}),ua("path",{d:"M9 12h.01"}),ua("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),ua("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 Kw}from"react/jsx-runtime";var vd=e=>Kw(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 Nc,jsxs as Xw}from"react/jsx-runtime";var Id=e=>Xw(c,{...e,children:[Nc("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"}),Nc("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),Nc("path",{d:"M12 12l0 .01"}),Nc("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as Io,jsxs as Yw}from"react/jsx-runtime";var Cd=e=>Yw(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 Qw}from"react/jsx-runtime";var fa=e=>Qw(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 Zw}from"react/jsx-runtime";var xd=e=>Zw(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 Ub}from"react/jsx-runtime";var Yt=e=>Ub(c,{...e,children:Ub("path",{d:"M5 12l5 5l10 -10"})});import{jsx as Gb,jsxs as Jw}from"react/jsx-runtime";var jo=e=>Jw(c,{...e,children:[Gb("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Gb("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as $b,jsxs as jw}from"react/jsx-runtime";var Pd=e=>jw(c,{...e,children:[$b("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),$b("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as Wb}from"react/jsx-runtime";var Sd=e=>Wb(c,{isFilled:!0,...e,children:Wb("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 qb,jsxs as eM}from"react/jsx-runtime";var wd=e=>eM(c,{...e,children:[qb("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"}),qb("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as Kb}from"react/jsx-runtime";var Md=e=>Kb(c,{isFilled:!0,...e,children:Kb("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 Xb}from"react/jsx-runtime";var en=e=>Xb(c,{...e,children:Xb("path",{d:"M6 9l6 6l6 -6"})});import{jsx as Yb,jsxs as tM}from"react/jsx-runtime";var kd=e=>tM(c,{...e,children:[Yb("path",{d:"M7 7l5 5l5 -5"}),Yb("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as Qb}from"react/jsx-runtime";var Td=e=>Qb(c,{...e,children:Qb("path",{d:"M8 8v8h8"})});import{jsx as Zb,jsxs as oM}from"react/jsx-runtime";var Nd=e=>oM(c,{...e,children:[Zb("path",{d:"M11 5v8h8"}),Zb("path",{d:"M7 9v8h8"})]});import{jsx as Jb}from"react/jsx-runtime";var Bd=e=>Jb(c,{...e,children:Jb("path",{d:"M16 8v8h-8"})});import{jsx as jb,jsxs as nM}from"react/jsx-runtime";var Rd=e=>nM(c,{...e,children:[jb("path",{d:"M13 5v8h-8"}),jb("path",{d:"M17 9v8h-8"})]});import{jsx as ey}from"react/jsx-runtime";var Qt=e=>ey(c,{...e,children:ey("path",{d:"M15 6l-6 6l6 6"})});import{jsx as ty,jsxs as rM}from"react/jsx-runtime";var Ed=e=>rM(c,{...e,children:[ty("path",{d:"M11 7l-5 5l5 5"}),ty("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as oy}from"react/jsx-runtime";var ct=e=>oy(c,{...e,children:oy("path",{d:"M9 6l6 6l-6 6"})});import{jsx as ny,jsxs as aM}from"react/jsx-runtime";var ha=e=>aM(c,{...e,children:[ny("path",{d:"M7 7l5 5l-5 5"}),ny("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as ry,jsxs as lM}from"react/jsx-runtime";var Ld=e=>lM(c,{...e,children:[ry("path",{d:"M8 9l4 -4l4 4"}),ry("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as ay}from"react/jsx-runtime";var Zt=e=>ay(c,{...e,children:ay("path",{d:"M6 15l6 -6l6 6"})});import{jsx as ly,jsxs as cM}from"react/jsx-runtime";var Dd=e=>cM(c,{...e,children:[ly("path",{d:"M7 11l5 -5l5 5"}),ly("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as cy}from"react/jsx-runtime";var Fd=e=>cy(c,{...e,children:cy("path",{d:"M8 16v-8h8"})});import{jsx as iy,jsxs as iM}from"react/jsx-runtime";var Ad=e=>iM(c,{...e,children:[iy("path",{d:"M7 15v-8h8"}),iy("path",{d:"M11 19v-8h8"})]});import{jsx as sy}from"react/jsx-runtime";var Od=e=>sy(c,{...e,children:sy("path",{d:"M8 8h8v8"})});import{jsx as py,jsxs as sM}from"react/jsx-runtime";var _d=e=>sM(c,{...e,children:[py("path",{d:"M9 7h8v8"}),py("path",{d:"M5 11h8v8"})]});import{jsx as rr,jsxs as pM}from"react/jsx-runtime";var Vd=e=>pM(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 dy,jsxs as dM}from"react/jsx-runtime";var ga=e=>dM(c,{...e,children:[dy("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),dy("path",{d:"M12 7v5l3 3"})]});import{jsx as Bc,jsxs as mM}from"react/jsx-runtime";var zd=e=>mM(c,{...e,children:[Bc("path",{d:"M12 7v5l2 2"}),Bc("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),Bc("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),Bc("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as Hd,jsxs as uM}from"react/jsx-runtime";var Ud=e=>uM(c,{...e,children:[Hd("path",{d:"M12 7v5l2 2"}),Hd("path",{d:"M17 22l5 -3l-5 -3z"}),Hd("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as my,jsxs as fM}from"react/jsx-runtime";var Gd=e=>fM(c,{...e,children:[my("path",{d:"M12 8l0 4l2 2"}),my("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as ba,jsxs as hM}from"react/jsx-runtime";var $d=e=>hM(c,{...e,children:[ba("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),ba("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"}),ba("path",{d:"M11 14h6"}),ba("path",{d:"M14 11v6"}),ba("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 Wd,jsxs as gM}from"react/jsx-runtime";var ya=e=>gM(c,{...e,children:[Wd("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"}),Wd("path",{d:"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Wd("path",{d:"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"})]});import{jsx as qd,jsxs as bM}from"react/jsx-runtime";var Kd=e=>bM(c,{...e,children:[qd("path",{d:"M7 8l-4 4l4 4"}),qd("path",{d:"M17 8l4 4l-4 4"}),qd("path",{d:"M14 4l-4 16"})]});import{jsx as ar,jsxs as yM}from"react/jsx-runtime";var Xd=e=>yM(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 Yd,jsxs as vM}from"react/jsx-runtime";var Qd=e=>vM(c,{...e,children:[Yd("path",{d:"M10 14l-2 -2l2 -2"}),Yd("path",{d:"M14 10l2 2l-2 2"}),Yd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Zd,jsxs as IM}from"react/jsx-runtime";var Jd=e=>IM(c,{...e,children:[Zd("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Zd("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Zd("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as uy,jsxs as CM}from"react/jsx-runtime";var jd=e=>CM(c,{...e,children:[uy("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"}),uy("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 fy,jsxs as xM}from"react/jsx-runtime";var em=e=>xM(c,{...e,children:[fy("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"}),fy("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 tm,jsxs as PM}from"react/jsx-runtime";var om=e=>PM(c,{...e,children:[tm("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"}),tm("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"}),tm("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as Rc,jsxs as SM}from"react/jsx-runtime";var nm=e=>SM(c,{...e,children:[Rc("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"}),Rc("path",{d:"M3 10l18 0"}),Rc("path",{d:"M7 15l.01 0"}),Rc("path",{d:"M11 15l2 0"})]});import{jsx as Ec,jsxs as wM}from"react/jsx-runtime";var rm=e=>wM(c,{...e,children:[Ec("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"}),Ec("path",{d:"M12 22v-10"}),Ec("path",{d:"M12 12l8.73 -5.04"}),Ec("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as it,jsxs as MM}from"react/jsx-runtime";var am=e=>MM(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 hy,jsxs as kM}from"react/jsx-runtime";var va=e=>kM(c,{...e,children:[hy("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"}),hy("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 TM}from"react/jsx-runtime";var lm=e=>TM(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 NM}from"react/jsx-runtime";var cm=e=>NM(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 Ia,jsxs as BM}from"react/jsx-runtime";var im=e=>BM(c,{...e,children:[Ia("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"}),Ia("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"}),Ia("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"}),Ia("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),Ia("path",{d:"M12 9l0 3"})]});import{jsx as sm,jsxs as RM}from"react/jsx-runtime";var pm=e=>RM(c,{...e,children:[sm("path",{d:"M4 4l16 0"}),sm("path",{d:"M4 20l16 0"}),sm("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 gy,jsxs as EM}from"react/jsx-runtime";var dm=e=>EM(c,{...e,children:[gy("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"}),gy("path",{d:"M12 3v3m0 12v3"})]});import{jsx as mm,jsxs as LM}from"react/jsx-runtime";var um=e=>LM(c,{...e,children:[mm("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),mm("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"}),mm("path",{d:"M12 7v10"})]});import{jsx as by}from"react/jsx-runtime";var fm=e=>by(c,{...e,children:by("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as yy}from"react/jsx-runtime";var hm=e=>yy(c,{isFilled:!0,...e,children:yy("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 DM}from"react/jsx-runtime";var gm=e=>DM(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 bm,jsxs as FM}from"react/jsx-runtime";var Ca=e=>FM(c,{...e,children:[bm("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bm("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),bm("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as ym,jsxs as AM}from"react/jsx-runtime";var Co=e=>AM(c,{...e,children:[ym("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ym("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ym("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as vm,jsxs as OM}from"react/jsx-runtime";var Im=e=>OM(c,{...e,children:[vm("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),vm("path",{d:"M7 11l5 5l5 -5"}),vm("path",{d:"M12 4l0 12"})]});import{jsx as vy,jsxs as _M}from"react/jsx-runtime";var Cm=e=>_M(c,{...e,children:[vy("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),vy("path",{d:"M13.5 6.5l4 4"})]});import{jsx as xm,jsxs as VM}from"react/jsx-runtime";var Pm=e=>VM(c,{...e,children:[xm("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),xm("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),xm("path",{d:"M16 5l3 3"})]});import{jsx as xo,jsxs as zM}from"react/jsx-runtime";var Sm=e=>zM(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 wm,jsxs as HM}from"react/jsx-runtime";var Mm=e=>HM(c,{...e,children:[wm("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),wm("path",{d:"M11 13l9 -9"}),wm("path",{d:"M15 4h5v5"})]});import{jsx as km,jsxs as UM}from"react/jsx-runtime";var Tm=e=>UM(c,{...e,children:[km("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"}),km("path",{d:"M15 9l-6 6"}),km("path",{d:"M10 9l5 0l0 5"})]});import{jsx as Iy,jsxs as GM}from"react/jsx-runtime";var Nm=e=>GM(c,{...e,children:[Iy("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),Iy("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 Bm,jsxs as $M}from"react/jsx-runtime";var Rm=e=>$M(c,{...e,children:[Bm("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),Bm("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"}),Bm("path",{d:"M3 3l18 18"})]});import{jsx as xa,jsxs as WM}from"react/jsx-runtime";var Em=e=>WM(c,{...e,children:[xa("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),xa("path",{d:"M3 15l2.5 -3.8"}),xa("path",{d:"M21 14.976l-2.492 -3.776"}),xa("path",{d:"M9 17l.5 -4"}),xa("path",{d:"M15 17l-.5 -4"})]});import{jsx as Lc,jsxs as qM}from"react/jsx-runtime";var Lm=e=>qM(c,{...e,children:[Lc("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),Lc("path",{d:"M8 9l2 1"}),Lc("path",{d:"M16 9l-2 1"}),Lc("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as lr,jsxs as KM}from"react/jsx-runtime";var Dm=e=>KM(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 Dc,jsxs as XM}from"react/jsx-runtime";var Fm=e=>XM(c,{...e,children:[Dc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Dc("path",{d:"M9 10l.01 0"}),Dc("path",{d:"M15 10l.01 0"}),Dc("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Cy,jsxs as YM}from"react/jsx-runtime";var on=e=>YM(c,{...e,children:[Cy("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Cy("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 Am,jsxs as QM}from"react/jsx-runtime";var Om=e=>QM(c,{...e,children:[Am("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Am("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"}),Am("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as Pa,jsxs as ZM}from"react/jsx-runtime";var Sa=e=>ZM(c,{...e,children:[Pa("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Pa("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Pa("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Pa("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"}),Pa("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as Fc,jsxs as JM}from"react/jsx-runtime";var _m=e=>JM(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:"M12 17v-6"}),Fc("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as cr,jsxs as jM}from"react/jsx-runtime";var wa=e=>jM(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 Ac,jsxs as e4}from"react/jsx-runtime";var Vm=e=>e4(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:"M9 17h6"}),Ac("path",{d:"M9 13h6"})]});import{jsx as Oc,jsxs as t4}from"react/jsx-runtime";var pt=e=>t4(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:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Oc("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as ir,jsxs as o4}from"react/jsx-runtime";var nn=e=>o4(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 zm,jsxs as n4}from"react/jsx-runtime";var Hm=e=>n4(c,{...e,children:[zm("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),zm("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"}),zm("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 Ma,jsxs as r4}from"react/jsx-runtime";var ka=e=>r4(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:"M8 11h8v7h-8z"}),Ma("path",{d:"M8 15h8"}),Ma("path",{d:"M11 11v7"})]});import{jsx as Ta,jsxs as a4}from"react/jsx-runtime";var jt=e=>a4(c,{...e,children:[Ta("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ta("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"}),Ta("path",{d:"M9 9l1 0"}),Ta("path",{d:"M9 13l6 0"}),Ta("path",{d:"M9 17l6 0"})]});import{jsx as _c,jsxs as l4}from"react/jsx-runtime";var Um=e=>l4(c,{...e,children:[_c("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),_c("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"}),_c("path",{d:"M12 11v6"}),_c("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as sr,jsxs as c4}from"react/jsx-runtime";var Na=e=>c4(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 i4}from"react/jsx-runtime";var Ba=e=>i4(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 s4}from"react/jsx-runtime";var Tt=e=>s4(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 xy}from"react/jsx-runtime";var Gm=e=>xy(c,{...e,children:xy("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 $m,jsxs as p4}from"react/jsx-runtime";var Ra=e=>p4(c,{...e,children:[$m("path",{d:"M4 6h16"}),$m("path",{d:"M6 12h12"}),$m("path",{d:"M9 18h6"})]});import{jsx as Py,jsxs as d4}from"react/jsx-runtime";var Wm=e=>d4(c,{...e,children:[Py("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"}),Py("path",{d:"M5 21v-7"})]});import{jsx as Sy}from"react/jsx-runtime";var qm=e=>Sy(c,{...e,children:Sy("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as wy}from"react/jsx-runtime";var Km=e=>wy(c,{isFilled:!0,...e,children:wy("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 Ea,jsxs as m4}from"react/jsx-runtime";var Xm=e=>m4(c,{...e,children:[Ea("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ea("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Ea("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Ea("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Ea("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as My}from"react/jsx-runtime";var Ym=e=>My(c,{...e,children:My("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 Vc,jsxs as u4}from"react/jsx-runtime";var Qm=e=>u4(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-0.5m0 -8v-2.5a2 2 0 0 1 2 -2"}),Vc("path",{d:"M1 12.5l7 0"}),Vc("path",{d:"M1 12.5l2 2"}),Vc("path",{d:"M1 12.5l2 -2"})]});import{jsx as zc,jsxs as f4}from"react/jsx-runtime";var Zm=e=>f4(c,{...e,children:[zc("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"}),zc("path",{d:"M2 13l7 0"}),zc("path",{d:"M9 13l-2 2"}),zc("path",{d:"M9 13l-2 -2"})]});import{jsx as ky,jsxs as h4}from"react/jsx-runtime";var Jm=e=>h4(c,{...e,children:[ky("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),ky("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as pr,jsxs as g4}from"react/jsx-runtime";var jm=e=>g4(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 Hc,jsxs as b4}from"react/jsx-runtime";var eu=e=>b4(c,{...e,children:[Hc("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Hc("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Hc("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Hc("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 y4}from"react/jsx-runtime";var tu=e=>y4(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 Uc,jsxs as v4}from"react/jsx-runtime";var ou=e=>v4(c,{...e,children:[Uc("path",{d:"M5 9l14 0"}),Uc("path",{d:"M5 15l14 0"}),Uc("path",{d:"M11 4l-4 16"}),Uc("path",{d:"M17 4l-4 16"})]});import{jsx as Gc,jsxs as I4}from"react/jsx-runtime";var nu=e=>I4(c,{...e,children:[Gc("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),Gc("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),Gc("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"}),Gc("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 Ty}from"react/jsx-runtime";var ru=e=>Ty(c,{...e,children:Ty("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 Ny}from"react/jsx-runtime";var au=e=>Ny(c,{isFilled:!0,...e,children:Ny("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 lu,jsxs as C4}from"react/jsx-runtime";var cu=e=>C4(c,{...e,children:[lu("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),lu("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),lu("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as By,jsxs as x4}from"react/jsx-runtime";var La=e=>x4(c,{...e,children:[By("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"}),By("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as $c,jsxs as P4}from"react/jsx-runtime";var We=e=>P4(c,{...e,children:[$c("path",{d:"M15 8h.01"}),$c("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"}),$c("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),$c("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as Da,jsxs as S4}from"react/jsx-runtime";var iu=e=>S4(c,{...e,children:[Da("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"}),Da("path",{d:"M4 16l16 0"}),Da("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),Da("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),Da("path",{d:"M14 7l.01 0"})]});import{jsx as Fa,jsxs as w4}from"react/jsx-runtime";var su=e=>w4(c,{...e,children:[Fa("path",{d:"M15 8h.01"}),Fa("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"}),Fa("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),Fa("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),Fa("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Aa,jsxs as M4}from"react/jsx-runtime";var pu=e=>M4(c,{...e,children:[Aa("path",{d:"M15 8h.01"}),Aa("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"}),Aa("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Aa("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),Aa("path",{d:"M3 3l18 18"})]});import{jsx as Ry,jsxs as k4}from"react/jsx-runtime";var du=e=>k4(c,{...e,children:[Ry("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ry("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 Ey,jsxs as T4}from"react/jsx-runtime";var mu=e=>T4(c,{...e,children:[Ey("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"}),Ey("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as uu,jsxs as N4}from"react/jsx-runtime";var fu=e=>N4(c,{...e,children:[uu("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),uu("path",{d:"M12 9h.01"}),uu("path",{d:"M11 12h1v4h1"})]});import{jsx as hu,jsxs as B4}from"react/jsx-runtime";var gu=e=>B4(c,{...e,children:[hu("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"}),hu("path",{d:"M12 9h.01"}),hu("path",{d:"M11 12h1v4h1"})]});import{jsx as bu,jsxs as R4}from"react/jsx-runtime";var yu=e=>R4(c,{...e,children:[bu("path",{d:"M11 5l6 0"}),bu("path",{d:"M7 19l6 0"}),bu("path",{d:"M14 5l-4 14"})]});import{jsx as vu,jsxs as E4}from"react/jsx-runtime";var Iu=e=>E4(c,{...e,children:[vu("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),vu("path",{d:"M4 12l8 4l8 -4"}),vu("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as Ly,jsxs as L4}from"react/jsx-runtime";var Cu=e=>L4(c,{...e,children:[Ly("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),Ly("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as Dy,jsxs as D4}from"react/jsx-runtime";var xu=e=>D4(c,{...e,children:[Dy("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"}),Dy("path",{d:"M9 4l0 16"})]});import{jsx as Pu,jsxs as F4}from"react/jsx-runtime";var Su=e=>F4(c,{...e,children:[Pu("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"}),Pu("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"}),Pu("path",{d:"M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"})]});import{jsx as Wc,jsxs as A4}from"react/jsx-runtime";var wu=e=>A4(c,{...e,children:[Wc("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Wc("path",{d:"M4 9h8"}),Wc("path",{d:"M12 15h8"}),Wc("path",{d:"M12 4v16"})]});import{jsx as Oa,jsxs as O4}from"react/jsx-runtime";var Mu=e=>O4(c,{...e,children:[Oa("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"}),Oa("path",{d:"M4 12h8"}),Oa("path",{d:"M12 15h8"}),Oa("path",{d:"M12 9h8"}),Oa("path",{d:"M12 4v16"})]});import{jsx as ku,jsxs as _4}from"react/jsx-runtime";var Tu=e=>_4(c,{...e,children:[ku("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"}),ku("path",{d:"M10 4l4 16"}),ku("path",{d:"M12 12l-8 2"})]});import{jsx as qc,jsxs as V4}from"react/jsx-runtime";var Nu=e=>V4(c,{...e,children:[qc("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"}),qc("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"}),qc("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"}),qc("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 z4}from"react/jsx-runtime";var Bu=e=>z4(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 Ru,jsxs as H4}from"react/jsx-runtime";var Eu=e=>H4(c,{...e,children:[Ru("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),Ru("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"}),Ru("path",{d:"M9.7 17l4.6 0"})]});import{jsx as Fy}from"react/jsx-runtime";var Lu=e=>Fy(c,{...e,children:Fy("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as Ay,jsxs as U4}from"react/jsx-runtime";var Du=e=>U4(c,{...e,children:[Ay("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),Ay("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as Oy,jsxs as G4}from"react/jsx-runtime";var Fu=e=>G4(c,{...e,children:[Oy("path",{d:"M4 19l16 0"}),Oy("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as ur,jsxs as $4}from"react/jsx-runtime";var Au=e=>$4(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 W4}from"react/jsx-runtime";var Ou=e=>W4(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 _u,jsxs as q4}from"react/jsx-runtime";var Vu=e=>q4(c,{...e,children:[_u("path",{d:"M4 19l16 0"}),_u("path",{d:"M4 16l6 -6l4 4l5 -5"}),_u("path",{d:"M15 8h5v5"})]});import{jsx as _y,jsxs as K4}from"react/jsx-runtime";var zu=e=>K4(c,{...e,children:[_y("path",{d:"M5 10h14"}),_y("path",{d:"M5 14h14"})]});import{jsx as hr,jsxs as X4}from"react/jsx-runtime";var Hu=e=>X4(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 Kc,jsxs as Y4}from"react/jsx-runtime";var Uu=e=>Y4(c,{...e,children:[Kc("path",{d:"M12 10v8l8 -4z"}),Kc("path",{d:"M4 6h16"}),Kc("path",{d:"M4 12h4.5"}),Kc("path",{d:"M4 18h4.5"})]});import{jsx as Gu,jsxs as Q4}from"react/jsx-runtime";var $u=e=>Q4(c,{...e,children:[Gu("path",{d:"M9 15l6 -6"}),Gu("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Gu("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 Vy,jsxs as Z4}from"react/jsx-runtime";var Wu=e=>Z4(c,{...e,children:[Vy("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),Vy("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Xc,jsxs as J4}from"react/jsx-runtime";var qu=e=>J4(c,{...e,children:[Xc("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Xc("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Xc("path",{d:"M3 3l18 18"}),Xc("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 j4}from"react/jsx-runtime";var Ku=e=>j4(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 _a,jsxs as e5}from"react/jsx-runtime";var Xu=e=>e5(c,{...e,children:[_a("path",{d:"M11 6h9"}),_a("path",{d:"M11 12h9"}),_a("path",{d:"M12 18h8"}),_a("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),_a("path",{d:"M6 10v-6l-2 2"})]});import{jsx as Yu,jsxs as t5}from"react/jsx-runtime";var Qu=e=>t5(c,{...e,children:[Yu("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"}),Yu("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Yu("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as zy}from"react/jsx-runtime";var Zu=e=>zy(c,{isFilled:!0,...e,children:zy("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 Ju,jsxs as o5}from"react/jsx-runtime";var ju=e=>o5(c,{...e,children:[Ju("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"}),Ju("path",{d:"M3 12h13l-3 -3"}),Ju("path",{d:"M13 15l3 -3"})]});import{jsx as ef,jsxs as n5}from"react/jsx-runtime";var tf=e=>n5(c,{...e,children:[ef("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"}),ef("path",{d:"M9 12h12l-3 -3"}),ef("path",{d:"M18 15l3 -3"})]});import{jsx as of,jsxs as r5}from"react/jsx-runtime";var nf=e=>r5(c,{...e,children:[of("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"}),of("path",{d:"M15 12h-12l3 -3"}),of("path",{d:"M6 15l-3 -3"})]});import{jsx as Yc,jsxs as a5}from"react/jsx-runtime";var rf=e=>a5(c,{...e,children:[Yc("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Yc("path",{d:"M15 6l3 3"}),Yc("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"}),Yc("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 Hy,jsxs as l5}from"react/jsx-runtime";var af=e=>l5(c,{...e,children:[Hy("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"}),Hy("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as Qc,jsxs as c5}from"react/jsx-runtime";var lf=e=>c5(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 Uy,jsxs as i5}from"react/jsx-runtime";var cf=e=>i5(c,{...e,children:[Uy("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Uy("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 Zc,jsxs as s5}from"react/jsx-runtime";var Va=e=>s5(c,{...e,children:[Zc("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Zc("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Zc("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Zc("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Jc,jsxs as p5}from"react/jsx-runtime";var sf=e=>p5(c,{...e,children:[Jc("path",{d:"M16 4l4 0l0 4"}),Jc("path",{d:"M14 10l6 -6"}),Jc("path",{d:"M8 20l-4 0l0 -4"}),Jc("path",{d:"M4 20l6 -6"})]});import{jsx as Gy}from"react/jsx-runtime";var pf=e=>Gy(c,{...e,children:Gy("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 df,jsxs as d5}from"react/jsx-runtime";var rn=e=>d5(c,{...e,children:[df("path",{d:"M8 9h8"}),df("path",{d:"M8 13h6"}),df("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 m5}from"react/jsx-runtime";var mf=e=>m5(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 za,jsxs as u5}from"react/jsx-runtime";var uf=e=>u5(c,{...e,children:[za("path",{d:"M8 9h8"}),za("path",{d:"M8 13h6"}),za("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"}),za("path",{d:"M22 22l-5 -5"}),za("path",{d:"M17 22l5 -5"})]});import{jsx as ei,jsxs as f5}from"react/jsx-runtime";var Ha=e=>f5(c,{...e,children:[ei("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"}),ei("path",{d:"M5 10a7 7 0 0 0 14 0"}),ei("path",{d:"M8 21l8 0"}),ei("path",{d:"M12 17l0 4"})]});import{jsx as ti,jsxs as h5}from"react/jsx-runtime";var Ua=e=>h5(c,{...e,children:[ti("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),ti("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),ti("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),ti("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as oi,jsxs as g5}from"react/jsx-runtime";var ff=e=>g5(c,{...e,children:[oi("path",{d:"M18 10h-4v-4"}),oi("path",{d:"M20 4l-6 6"}),oi("path",{d:"M6 14h4v4"}),oi("path",{d:"M10 14l-6 6"})]});import{jsx as $y,jsxs as b5}from"react/jsx-runtime";var hf=e=>b5(c,{...e,children:[$y("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),$y("path",{d:"M9 12l6 0"})]});import{jsx as gf,jsxs as y5}from"react/jsx-runtime";var bf=e=>y5(c,{...e,children:[gf("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"}),gf("path",{d:"M11 4h2"}),gf("path",{d:"M12 17v.01"})]});import{jsx as ni,jsxs as v5}from"react/jsx-runtime";var yf=e=>v5(c,{...e,children:[ni("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"}),ni("path",{d:"M7 20h10"}),ni("path",{d:"M9 16v4"}),ni("path",{d:"M15 16v4"})]});import{jsx as Ga,jsxs as I5}from"react/jsx-runtime";var vf=e=>I5(c,{...e,children:[Ga("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"}),Ga("path",{d:"M3 13h18"}),Ga("path",{d:"M8 21h8"}),Ga("path",{d:"M10 17l-.5 4"}),Ga("path",{d:"M14 17l.5 4"})]});import{jsx as Wy}from"react/jsx-runtime";var If=e=>Wy(c,{...e,children:Wy("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 qy,jsxs as C5}from"react/jsx-runtime";var Cf=e=>C5(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:"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 x5}from"react/jsx-runtime";var yt=e=>x5(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 Ky}from"react/jsx-runtime";var xf=e=>Ky(c,{...e,children:Ky("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 Xy,jsxs as P5}from"react/jsx-runtime";var Pf=e=>P5(c,{...e,children:[Xy("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),Xy("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as $a,jsxs as S5}from"react/jsx-runtime";var Sf=e=>S5(c,{...e,children:[$a("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),$a("path",{d:"M12 12l8 -4.5"}),$a("path",{d:"M12 12l0 9"}),$a("path",{d:"M12 12l-8 -4.5"}),$a("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as ri,jsxs as w5}from"react/jsx-runtime";var wf=e=>w5(c,{...e,children:[ri("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"}),ri("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ri("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ri("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Wa,jsxs as M5}from"react/jsx-runtime";var Mf=e=>M5(c,{...e,children:[Wa("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"}),Wa("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),Wa("path",{d:"M15 16h.01"}),Wa("path",{d:"M12.01 16h.01"}),Wa("path",{d:"M9.02 16h.01"})]});import{jsx as Yy,jsxs as k5}from"react/jsx-runtime";var vt=e=>k5(c,{...e,children:[Yy("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"}),Yy("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 kf,jsxs as T5}from"react/jsx-runtime";var Tf=e=>T5(c,{...e,children:[kf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),kf("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"}),kf("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 Nf,jsxs as N5}from"react/jsx-runtime";var Bf=e=>N5(c,{...e,children:[Nf("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"}),Nf("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),Nf("path",{d:"M16 9h2"})]});import{jsx as Rf,jsxs as B5}from"react/jsx-runtime";var Ef=e=>B5(c,{...e,children:[Rf("path",{d:"M14 6l7 7l-4 4"}),Rf("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"}),Rf("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as ai,jsxs as R5}from"react/jsx-runtime";var Lf=e=>R5(c,{...e,children:[ai("path",{d:"M9 15l6 -6"}),ai("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),ai("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),ai("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Qy}from"react/jsx-runtime";var Df=e=>Qy(c,{...e,children:Qy("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 Ff,jsxs as E5}from"react/jsx-runtime";var Af=e=>E5(c,{...e,children:[Ff("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"}),Ff("path",{d:"M15 7a2 2 0 0 1 2 2"}),Ff("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as Zy,jsxs as L5}from"react/jsx-runtime";var qa=e=>L5(c,{...e,children:[Zy("path",{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"}),Zy("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 Of,jsxs as D5}from"react/jsx-runtime";var Ka=e=>D5(c,{...e,children:[Of("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),Of("path",{d:"M9 15l-4.5 4.5"}),Of("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as Jy}from"react/jsx-runtime";var It=e=>Jy(c,{...e,children:Jy("path",{d:"M7 4v16l13 -8z"})});import{jsx as jy,jsxs as F5}from"react/jsx-runtime";var _f=e=>F5(c,{...e,children:[jy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),jy("path",{d:"M9 8v8l8 -4z"})]});import{jsx as ev,jsxs as A5}from"react/jsx-runtime";var an=e=>A5(c,{...e,children:[ev("path",{d:"M12 5l0 14"}),ev("path",{d:"M5 12l14 0"})]});import{jsx as Vf,jsxs as O5}from"react/jsx-runtime";var Mo=e=>O5(c,{...e,children:[Vf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Vf("path",{d:"M9 12h6"}),Vf("path",{d:"M12 9v6"})]});import{jsx as zf,jsxs as _5}from"react/jsx-runtime";var Hf=e=>_5(c,{...e,children:[zf("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"}),zf("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),zf("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 tv}from"react/jsx-runtime";var Uf=e=>tv(c,{...e,children:tv("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as Gf,jsxs as V5}from"react/jsx-runtime";var Xa=e=>V5(c,{...e,children:[Gf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Gf("path",{d:"M12 16v.01"}),Gf("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as ov,jsxs as z5}from"react/jsx-runtime";var $f=e=>z5(c,{...e,children:[ov("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"}),ov("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 nv,jsxs as H5}from"react/jsx-runtime";var Wf=e=>H5(c,{...e,children:[nv("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),nv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as rv}from"react/jsx-runtime";var qf=e=>rv(c,{isFilled:!0,...e,children:rv("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 av}from"react/jsx-runtime";var Kf=e=>av(c,{...e,children:av("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 lv,jsxs as U5}from"react/jsx-runtime";var Xf=e=>U5(c,{...e,children:[lv("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"}),lv("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as cv,jsxs as G5}from"react/jsx-runtime";var Yf=e=>G5(c,{...e,children:[cv("path",{d:"M15 14l4 -4l-4 -4"}),cv("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as iv}from"react/jsx-runtime";var Ya=e=>iv(c,{...e,children:iv("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as sv,jsxs as $5}from"react/jsx-runtime";var Qf=e=>$5(c,{...e,children:[sv("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),sv("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as pv,jsxs as W5}from"react/jsx-runtime";var Zf=e=>W5(c,{...e,children:[pv("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),pv("path",{d:"M20 4v5h-5"})]});import{jsx as dv,jsxs as q5}from"react/jsx-runtime";var Jf=e=>q5(c,{...e,children:[dv("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),dv("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as li,jsxs as K5}from"react/jsx-runtime";var jf=e=>K5(c,{...e,children:[li("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"}),li("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"}),li("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),li("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as mv}from"react/jsx-runtime";var Qa=e=>mv(c,{...e,children:mv("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as eh,jsxs as X5}from"react/jsx-runtime";var th=e=>X5(c,{...e,children:[eh("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),eh("path",{d:"M3 4.001v5h5"}),eh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as oh,jsxs as Y5}from"react/jsx-runtime";var nh=e=>Y5(c,{...e,children:[oh("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"}),oh("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),oh("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as uv,jsxs as Q5}from"react/jsx-runtime";var rh=e=>Q5(c,{...e,children:[uv("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"}),uv("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 fv,jsxs as Z5}from"react/jsx-runtime";var ah=e=>Z5(c,{...e,children:[fv("path",{d:"M12 3v9h9"}),fv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as lh,jsxs as J5}from"react/jsx-runtime";var ch=e=>J5(c,{...e,children:[lh("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),lh("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),lh("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 ih,jsxs as j5}from"react/jsx-runtime";var sh=e=>j5(c,{...e,children:[ih("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"}),ih("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ih("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as ko,jsxs as ek}from"react/jsx-runtime";var ph=e=>ek(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 ci,jsxs as tk}from"react/jsx-runtime";var Za=e=>tk(c,{...e,children:[ci("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),ci("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),ci("path",{d:"M8.6 8.6l10.4 10.4"}),ci("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as hv,jsxs as ok}from"react/jsx-runtime";var Ct=e=>ok(c,{...e,children:[hv("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),hv("path",{d:"M21 21l-6 -6"})]});import{jsx as gv,jsxs as nk}from"react/jsx-runtime";var dh=e=>nk(c,{...e,children:[gv("path",{d:"M10 14l11 -11"}),gv("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 ii,jsxs as rk}from"react/jsx-runtime";var mh=e=>rk(c,{...e,children:[ii("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"}),ii("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"}),ii("path",{d:"M7 8l0 .01"}),ii("path",{d:"M7 16l0 .01"})]});import{jsx as bv,jsxs as ak}from"react/jsx-runtime";var Ja=e=>ak(c,{...e,children:[bv("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"}),bv("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as eo,jsxs as lk}from"react/jsx-runtime";var uh=e=>lk(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 ck}from"react/jsx-runtime";var fh=e=>ck(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 yv,jsxs as ik}from"react/jsx-runtime";var hh=e=>ik(c,{...e,children:[yv("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"}),yv("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as gh,jsxs as sk}from"react/jsx-runtime";var bh=e=>sk(c,{...e,children:[gh("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"}),gh("path",{d:"M16 19h6"}),gh("path",{d:"M19 16v6"})]});import{jsx as yh,jsxs as pk}from"react/jsx-runtime";var vh=e=>pk(c,{...e,children:[yh("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"}),yh("path",{d:"M22 22l-5 -5"}),yh("path",{d:"M17 22l5 -5"})]});import{jsx as vv,jsxs as dk}from"react/jsx-runtime";var Ih=e=>dk(c,{...e,children:[vv("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"}),vv("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as si,jsxs as mk}from"react/jsx-runtime";var Ch=e=>mk(c,{...e,children:[si("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),si("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),si("path",{d:"M17 17h-11v-14h-2"}),si("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as To,jsxs as uk}from"react/jsx-runtime";var xh=e=>uk(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 pi,jsxs as fk}from"react/jsx-runtime";var Ph=e=>fk(c,{...e,children:[pi("path",{d:"M18 4l3 3l-3 3"}),pi("path",{d:"M18 20l3 -3l-3 -3"}),pi("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),pi("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 Iv,jsxs as hk}from"react/jsx-runtime";var Sh=e=>hk(c,{...e,children:[Iv("path",{d:"M4 5v14l12 -7z"}),Iv("path",{d:"M20 5l0 14"})]});import{jsx as Cv,jsxs as gk}from"react/jsx-runtime";var wh=e=>gk(c,{...e,children:[Cv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Cv("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as xv,jsxs as bk}from"react/jsx-runtime";var Mh=e=>bk(c,{...e,children:[xv("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"}),xv("path",{d:"M5 5 L19 19"})]});import{jsx as ln,jsxs as yk}from"react/jsx-runtime";var kh=e=>yk(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 Pv,jsxs as vk}from"react/jsx-runtime";var Th=e=>vk(c,{...e,children:[Pv("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"}),Pv("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as Sv}from"react/jsx-runtime";var Nh=e=>Sv(c,{...e,children:Sv("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 el,jsxs as Ik}from"react/jsx-runtime";var Bh=e=>Ik(c,{...e,children:[el("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),el("path",{d:"M3.6 9h16.8"}),el("path",{d:"M3.6 15h16.8"}),el("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),el("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as wv}from"react/jsx-runtime";var Rh=e=>wv(c,{...e,children:wv("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 Eh,jsxs as Ck}from"react/jsx-runtime";var Lh=e=>Ck(c,{...e,children:[Eh("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"}),Eh("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Eh("path",{d:"M16.5 7.5v.01"})]});import{jsx as tl,jsxs as xk}from"react/jsx-runtime";var Dh=e=>xk(c,{...e,children:[tl("path",{d:"M8 11v5"}),tl("path",{d:"M8 8v.01"}),tl("path",{d:"M12 16v-5"}),tl("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),tl("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 Fh,jsxs as Pk}from"react/jsx-runtime";var Ah=e=>Pk(c,{...e,children:[Fh("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Fh("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),Fh("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 Sk}from"react/jsx-runtime";var Oh=e=>Sk(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 ol,jsxs as wk}from"react/jsx-runtime";var _h=e=>wk(c,{...e,children:[ol("path",{d:"M21 15l-1 -6l-2.5 6"}),ol("path",{d:"M9 15l1 -6"}),ol("path",{d:"M3 9h1v6h.5l2.5 -6"}),ol("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"}),ol("path",{d:"M18 14h2.7"})]});import{jsx as Mv,jsxs as Mk}from"react/jsx-runtime";var Vh=e=>Mk(c,{...e,children:[Mv("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),Mv("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as di,jsxs as kk}from"react/jsx-runtime";var nl=e=>kk(c,{...e,children:[di("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),di("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),di("path",{d:"M13.41 10.59l2.59 -2.59"}),di("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as kv}from"react/jsx-runtime";var zh=e=>kv(c,{...e,children:kv("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as Tv}from"react/jsx-runtime";var rl=e=>Tv(c,{...e,children:Tv("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 Nv}from"react/jsx-runtime";var Hh=e=>Nv(c,{isFilled:!0,...e,children:Nv("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 Bv}from"react/jsx-runtime";var Uh=e=>Bv(c,{isFilled:!0,...e,children:Bv("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 Rv}from"react/jsx-runtime";var Gh=e=>Rv(c,{...e,children:Rv("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 Ev}from"react/jsx-runtime";var al=e=>Ev(c,{...e,children:Ev("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 Lv,jsxs as Tk}from"react/jsx-runtime";var $h=e=>Tk(c,{...e,children:[Lv("path",{d:"M5 12l14 0"}),Lv("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 Dv,jsxs as Nk}from"react/jsx-runtime";var Wh=e=>Nk(c,{...e,children:[Dv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Dv("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 Fv,jsxs as Bk}from"react/jsx-runtime";var qh=e=>Bk(c,{...e,children:[Fv("path",{d:"M7 10h14l-4 -4"}),Fv("path",{d:"M17 14h-14l4 4"})]});import{jsx as mi,jsxs as Rk}from"react/jsx-runtime";var Kh=e=>Rk(c,{...e,children:[mi("path",{d:"M16 3l4 4l-4 4"}),mi("path",{d:"M10 7l10 0"}),mi("path",{d:"M8 13l-4 4l4 4"}),mi("path",{d:"M4 17l9 0"})]});import{jsx as Xh,jsxs as Ek}from"react/jsx-runtime";var Yh=e=>Ek(c,{...e,children:[Xh("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"}),Xh("path",{d:"M3 10h18"}),Xh("path",{d:"M10 3v18"})]});import{jsx as Av,jsxs as Lk}from"react/jsx-runtime";var ll=e=>Lk(c,{...e,children:[Av("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Av("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 Dk}from"react/jsx-runtime";var Qh=e=>Dk(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 Zh,jsxs as Fk}from"react/jsx-runtime";var Jh=e=>Fk(c,{...e,children:[Zh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zh("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Zh("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as jh,jsxs as Ak}from"react/jsx-runtime";var e0=e=>Ak(c,{...e,children:[jh("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),jh("path",{d:"M9 11h6"}),jh("path",{d:"M5 19h14"})]});import{jsx as Ov,jsxs as Ok}from"react/jsx-runtime";var t0=e=>Ok(c,{...e,children:[Ov("path",{d:"M6 4l12 0"}),Ov("path",{d:"M12 4l0 16"})]});import{jsx as ui,jsxs as _k}from"react/jsx-runtime";var o0=e=>_k(c,{...e,children:[ui("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),ui("path",{d:"M12.5 5.5l4 4"}),ui("path",{d:"M4.5 13.5l4 4"}),ui("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as _v}from"react/jsx-runtime";var n0=e=>_v(c,{...e,children:_v("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 Vv}from"react/jsx-runtime";var r0=e=>Vv(c,{...e,children:Vv("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 zv,jsxs as Vk}from"react/jsx-runtime";var a0=e=>Vk(c,{isFilled:!0,...e,children:[zv("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"}),zv("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 Hv,jsxs as zk}from"react/jsx-runtime";var l0=e=>zk(c,{...e,children:[Hv("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Hv("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 Hk}from"react/jsx-runtime";var c0=e=>Hk(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 cl,jsxs as Uk}from"react/jsx-runtime";var dt=e=>Uk(c,{...e,children:[cl("path",{d:"M4 7l16 0"}),cl("path",{d:"M10 11l0 6"}),cl("path",{d:"M14 11l0 6"}),cl("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),cl("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as Uv,jsxs as Gk}from"react/jsx-runtime";var i0=e=>Gk(c,{...e,children:[Uv("path",{d:"M3 17l6 -6l4 4l8 -8"}),Uv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as Gv,jsxs as $k}from"react/jsx-runtime";var s0=e=>$k(c,{...e,children:[Gv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),Gv("path",{d:"M5 19h14"})]});import{jsx as $v,jsxs as Wk}from"react/jsx-runtime";var p0=e=>Wk(c,{...e,children:[$v("path",{d:"M9 14l-4 -4l4 -4"}),$v("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as d0,jsxs as qk}from"react/jsx-runtime";var m0=e=>qk(c,{...e,children:[d0("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"}),d0("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),d0("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as u0,jsxs as Kk}from"react/jsx-runtime";var sn=e=>Kk(c,{...e,children:[u0("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"}),u0("path",{d:"M9 15l3 -3l3 3"}),u0("path",{d:"M12 12l0 9"})]});import{jsx as Wv,jsxs as Xk}from"react/jsx-runtime";var il=e=>Xk(c,{...e,children:[Wv("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Wv("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as f0,jsxs as Yk}from"react/jsx-runtime";var h0=e=>Yk(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 -4h4"}),f0("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as fi,jsxs as Qk}from"react/jsx-runtime";var g0=e=>Qk(c,{...e,children:[fi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),fi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),fi("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),fi("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as b0,jsxs as Zk}from"react/jsx-runtime";var y0=e=>Zk(c,{...e,children:[b0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),b0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),b0("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 hi,jsxs as Jk}from"react/jsx-runtime";var v0=e=>Jk(c,{...e,children:[hi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),hi("path",{d:"M16 19h6"}),hi("path",{d:"M19 16v6"}),hi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as gi,jsxs as jk}from"react/jsx-runtime";var I0=e=>jk(c,{...e,children:[gi("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),gi("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),gi("path",{d:"M16 22l5 -5"}),gi("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as bi,jsxs as e3}from"react/jsx-runtime";var C0=e=>e3(c,{...e,children:[bi("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),bi("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),bi("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),bi("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as x0,jsxs as t3}from"react/jsx-runtime";var P0=e=>t3(c,{...e,children:[x0("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),x0("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),x0("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 sl,jsxs as o3}from"react/jsx-runtime";var S0=e=>o3(c,{...e,children:[sl("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),sl("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),sl("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),sl("path",{d:"M19 22v-6"}),sl("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as qv,jsxs as n3}from"react/jsx-runtime";var w0=e=>n3(c,{...e,children:[qv("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"}),qv("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 M0,jsxs as r3}from"react/jsx-runtime";var k0=e=>r3(c,{...e,children:[M0("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),M0("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),M0("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 T0,jsxs as a3}from"react/jsx-runtime";var pl=e=>a3(c,{...e,children:[T0("path",{d:"M15 8a5 5 0 0 1 0 8"}),T0("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),T0("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 Kv,jsxs as l3}from"react/jsx-runtime";var dl=e=>l3(c,{...e,children:[Kv("path",{d:"M15 8a5 5 0 0 1 0 8"}),Kv("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]});import{jsx as Xv,jsxs as c3}from"react/jsx-runtime";var ml=e=>c3(c,{...e,children:[Xv("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"}),Xv("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as Yv}from"react/jsx-runtime";var N0=e=>Yv(c,{...e,children:Yv("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 Qv,jsxs as i3}from"react/jsx-runtime";var He=e=>i3(c,{...e,children:[Qv("path",{d:"M18 6l-12 12"}),Qv("path",{d:"M6 6l12 12"})]});import{jsx as Zv,jsxs as s3}from"react/jsx-runtime";var B0=e=>s3(c,{...e,children:[Zv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Zv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Jv}from"react/jsx-runtime";var R0=e=>Jv(c,{isFilled:!0,...e,children:Jv("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 jv,jsxs as p3}from"react/jsx-runtime";var E0=e=>p3(c,{...e,children:[jv("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"}),jv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as yi,jsxs as d3}from"react/jsx-runtime";var L0=e=>d3(c,{...e,children:[yi("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),yi("path",{d:"M7 10l6 0"}),yi("path",{d:"M10 7l0 6"}),yi("path",{d:"M21 21l-6 -6"})]});import{jsx as D0,jsxs as m3}from"react/jsx-runtime";var F0=e=>m3(c,{...e,children:[D0("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),D0("path",{d:"M7 10l6 0"}),D0("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(vp,{...t});case"48SuccessFeatured":return g(Ip,{...t});case"AlertCircle":return g(Jo,{...t});case"AlertOctagon":return g(xp,{...t});case"AlertTriangle":return g(Sp,{...t});case"ArrowBarDown":return g(Tp,{...t});case"ArrowBarLeft":return g(Np,{...t});case"ArrowBarRight":return g(Bp,{...t});case"ArrowBarToDown":return g(Rp,{...t});case"ArrowBarToLeft":return g(Ep,{...t});case"ArrowBarToRight":return g(Lp,{...t});case"ArrowBarToUp":return g(Dp,{...t});case"ArrowBarUp":return g(Fp,{...t});case"Apps":return g(wp,{...t});case"Archive":return g(kp,{...t});case"ArrowDown":return g(Op,{...t});case"ArrowDownLeft":return g(_p,{...t});case"ArrowDownNarrow":return g(zp,{...t});case"ArrowDownRight":return g(Hp,{...t});case"ArrowLeft":return g(Gp,{...t});case"ArrowLeftNarrow":return g(Wp,{...t});case"ArrowRight":return g(Kp,{...t});case"ArrowRightNarrow":return g(Yp,{...t});case"ArrowUp":return g(Zp,{...t});case"ArrowUpLeft":return g(Jp,{...t});case"ArrowUpNarrow":return g(ed,{...t});case"ArrowUpRight":return g(td,{...t});case"Attachment":return g(od,{...t});case"BadgeHd":return g(pa,{...t});case"BarChart":return g(nd,{...t});case"BarChartSquare":return g(rd,{...t});case"Bell":return g(ad,{...t});case"Bold":return g(ld,{...t});case"BookOpen":return g(md,{...t});case"Bookmark":return g(cd,{...t});case"BookmarkCheck":return g(mp,{...t});case"BookmarkCheckFill":return g(up,{...t});case"BookmarkFill":return g(id,{...t});case"BookmarkMinus":return g(sd,{...t});case"BookmarkPlus":return g(hp,{...t});case"BookmarkX":return g(dd,{...t});case"BoxLines":return g(ud,{...t});case"BoxText":return g(hd,{...t});case"BracketsCheck":return g(bd,{...t});case"BracketsEllipses":return g(yd,{...t});case"BrickWall":return g(vd,{...t});case"Briefcase":return g(Id,{...t});case"Building":return g(gp,{...t});case"Calculator":return g(Cd,{...t});case"Calendar":return g(fa,{...t});case"Certificate":return g(xd,{...t});case"Check":return g(Yt,{...t});case"CheckCircle":return g(jo,{...t});case"CheckCircleBroken":return g(Pd,{...t});case"CheckFill":return g(Sd,{...t});case"CheckVerified":return g(wd,{...t});case"CheckVerifiedFill":return g(Md,{...t});case"ChevronDown":return g(en,{...t});case"ChevronDownDouble":return g(kd,{...t});case"ChevronDownLeft":return g(Td,{...t});case"ChevronDownLeftDouble":return g(Nd,{...t});case"ChevronDownRight":return g(Bd,{...t});case"ChevronDownRightDouble":return g(Rd,{...t});case"ChevronLeft":return g(Qt,{...t});case"ChevronLeftDouble":return g(Ed,{...t});case"ChevronRight":return g(ct,{...t});case"ChevronRightDouble":return g(ha,{...t});case"ChevronSelectorVertical":return g(Ld,{...t});case"ChevronUp":return g(Zt,{...t});case"ChevronUpDouble":return g(Dd,{...t});case"ChevronUpLeft":return g(Fd,{...t});case"ChevronUpLeftDouble":return g(Ad,{...t});case"ChevronUpRight":return g(Od,{...t});case"ChevronUpRightDouble":return g(_d,{...t});case"Click":return g(Vd,{...t});case"Clock":return g(ga,{...t});case"ClockFastForward":return g(zd,{...t});case"ClockPlay":return g(Ud,{...t});case"ClockRewind":return g(Gd,{...t});case"Clone":return g($d,{...t});case"ClosedCaption":return g(ya,{...t});case"Code":return g(Kd,{...t});case"CodeBrowser":return g(Xd,{...t});case"CodeCircle":return g(Qd,{...t});case"Colors":return g(Jd,{...t});case"ColumnEdit":return g(bp,{...t});case"Copy":return g(jd,{...t});case"Copy2":return g(em,{...t});case"CopyCheck":return g(om,{...t});case"Files":return g(Hm,{...t});case"CreditCard":return g(nm,{...t});case"Cube":return g(rm,{...t});case"CubeOutline":return g(am,{...t});case"CursorBox":return g(va,{...t});case"Dataflow":return g(lm,{...t});case"Dataflow2":return g(cm,{...t});case"Dataflow3":return g(im,{...t});case"DistributeHorizontal":return g(pm,{...t});case"Dollar":return g(dm,{...t});case"DollarCircle":return g(um,{...t});case"Dot":return g(fm,{...t});case"DotFill":return g(hm,{...t});case"DotsGrid":return g(gm,{...t});case"DotsHorizontal":return g(Ca,{...t});case"DotsVertical":return g(Co,{...t});case"Download":return g(Im,{...t});case"Edit":return g(Cm,{...t});case"Editable":return g(Pm,{...t});case"Expand":return g(Sm,{...t});case"ExternalLink":return g(Mm,{...t});case"ExternalLink2":return g(Tm,{...t});case"Eye":return g(Nm,{...t});case"EyeHidden":return g(Rm,{...t});case"EyeHidden2":return g(Em,{...t});case"FaceAngry":return g(Lm,{...t});case"FaceLaugh":return g(Dm,{...t});case"FaceSmile":return g(Fm,{...t});case"File":return g(on,{...t});case"FileCheck":return g(Om,{...t});case"FileCsv":return g(Sa,{...t});case"FileDownload":return g(_m,{...t});case"FileJson":return g(wa,{...t});case"FileList":return g(Vm,{...t});case"FileMusic":return g(pt,{...t});case"FilePdf":return g(nn,{...t});case"FileSpreadsheet":return g(ka,{...t});case"FileText":return g(jt,{...t});case"FileUpload":return g(Um,{...t});case"FileXls":return g(Na,{...t});case"FileXlsx":return g(Ba,{...t});case"FileZip":return g(Tt,{...t});case"Filter":return g(Gm,{...t});case"Filter2":return g(Ra,{...t});case"Flag":return g(Wm,{...t});case"Flag2":return g(qm,{...t});case"FlagFill":return g(Km,{...t});case"Focus":return g(Xm,{...t});case"Folder":return g(Ym,{...t});case"FolderExport":return g(Qm,{...t});case"FolderImport":return g(Zm,{...t});case"GraduationCap":return g(Jm,{...t});case"GripVertical":return g(jm,{...t});case"Hand":return g(eu,{...t});case"HandShield":return g(tu,{...t});case"Hash":return g(ou,{...t});case"HeadsetMic":return g(nu,{...t});case"Heart":return g(ru,{...t});case"HeartFill":return g(au,{...t});case"House":return g(cu,{...t});case"HouseLine":return g(La,{...t});case"Image":return g(We,{...t});case"Image2":return g(iu,{...t});case"ImageCheck":return g(su,{...t});case"ImageOff":return g(pu,{...t});case"Import":return g(du,{...t});case"Inbox":return g(mu,{...t});case"InfoCircle":return g(fu,{...t});case"InfoHexagon":return g(gu,{...t});case"Italic":return g(yu,{...t});case"LayersMultiple":return g(Iu,{...t});case"LayersSingle":return g(Cu,{...t});case"Layout":return g(xu,{...t});case"Layout2":return g(Su,{...t});case"LayoutColumns":return g(wu,{...t});case"LayoutCustom":return g(Mu,{...t});case"LayoutStuffed":return g(Tu,{...t});case"LayoutTile":return g(Nu,{...t});case"LifeBuoy":return g(Bu,{...t});case"Lightbulb":return g(Eu,{...t});case"Lightning":return g(Lu,{...t});case"LightningFast":return g(Du,{...t});case"LineChartBar":return g(Au,{...t});case"LineChartBreakoutSquare":return g(Ou,{...t});case"LineChart":return g(Fu,{...t});case"LineChartUp":return g(Vu,{...t});case"Lines":return g(zu,{...t});case"LinesCheck":return g(Hu,{...t});case"LinesPlay":return g(Uu,{...t});case"Link":return g($u,{...t});case"Link2":return g(Wu,{...t});case"LinkOff":return g(qu,{...t});case"ListBullet":return g(Ku,{...t});case"ListOrder":return g(Xu,{...t});case"Lock":return g(Qu,{...t});case"LockFill":return g(Zu,{...t});case"LogIn":return g(ju,{...t});case"LogOut":return g(tf,{...t});case"LogOut2":return g(nf,{...t});case"MagicWand":return g(rf,{...t});case"Mail":return g(af,{...t});case"MailOpen":return g(lf,{...t});case"MapPin":return g(cf,{...t});case"Maximize":return g(Va,{...t});case"Maximize2":return g(sf,{...t});case"MessageCircle":return g(pf,{...t});case"MessageSquare":return g(rn,{...t});case"MessageSquare2":return g(mf,{...t});case"MessageXSquare":return g(uf,{...t});case"Microphone":return g(Ha,{...t});case"Minimize":return g(Ua,{...t});case"Minimize2":return g(ff,{...t});case"MinusCircle":return g(hf,{...t});case"Mobile":return g(bf,{...t});case"Monitor":return g(yf,{...t});case"Monitor2":return g(vf,{...t});case"Moon":return g(If,{...t});case"MoonCircle":return g(Cf,{...t});case"Movie":return g(yt,{...t});case"NavigationPointer":return g(xf,{...t});case"NotificationBox":return g(Pf,{...t});case"Package":return g(Sf,{...t});case"Palette":return g(wf,{...t});case"PasscodeLock":return g(Mf,{...t});case"Pause":return g(vt,{...t});case"PauseCircle":return g(Tf,{...t});case"PCSetup":return g(Bf,{...t});case"Pen":return g(Ef,{...t});case"PercentageCircle":return g(Lf,{...t});case"Perspective":return g(Df,{...t});case"PhoneCall":return g(Af,{...t});case"PictureInPicture":return g(qa,{...t});case"Pin":return g(Ka,{...t});case"Play":return g(It,{...t});case"PlayCircle":return g(_f,{...t});case"Plus":return g(an,{...t});case"PlusCircle":return g(Mo,{...t});case"Printer":return g(Hf,{...t});case"Pulse":return g(Uf,{...t});case"QuestionCircle":return g(Xa,{...t});case"Quote":return g($f,{...t});case"RadioButton":return g(Wf,{...t});case"RadioButtonFill":return g(qf,{...t});case"Receipt":return g(Kf,{...t});case"ReceiptCheck":return g(Xf,{...t});case"Redo":return g(Yf,{...t});case"Refresh":return g(Ya,{...t});case"Refresh2":return g(Qf,{...t});case"Refresh3":return g(Zf,{...t});case"Repeat":return g(Jf,{...t});case"Replace":return g(jf,{...t});case"Replay":return g(Qa,{...t});case"Restore":return g(th,{...t});case"Rocket":return g(nh,{...t});case"RoundChart":return g(rh,{...t});case"RoundChart2":return g(ah,{...t});case"Route":return g(ch,{...t});case"Save":return g(sh,{...t});case"ScanDots":return g(ph,{...t});case"Scissors":return g(Za,{...t});case"Search":return g(Ct,{...t});case"Send":return g(dh,{...t});case"Server":return g(mh,{...t});case"Settings":return g(Ja,{...t});case"Settings2":return g(uh,{...t});case"Share":return g(fh,{...t});case"ShieldLightning":return g(hh,{...t});case"ShieldPlus":return g(bh,{...t});case"ShieldRemove":return g(vh,{...t});case"ShoppingBag":return g(Ih,{...t});case"ShoppingCart":return g(Ch,{...t});case"Shrink":return g(xh,{...t});case"Shuffle":return g(Ph,{...t});case"SkipForward":return g(Sh,{...t});case"SlashCircle":return g(wh,{...t});case"SlashOctagon":return g(Mh,{...t});case"SocialAndroid":return g(kh,{...t});case"SocialApple":return g(Th,{...t});case"SocialGithub":return g(Nh,{...t});case"SocialGlobe":return g(Bh,{...t});case"SocialGoogle":return g(Rh,{...t});case"SocialInstagram":return g(Lh,{...t});case"SocialLinkedin":return g(Dh,{...t});case"SocialMastercard":return g(Ah,{...t});case"SocialReact":return g(Oh,{...t});case"SocialVisa":return g(_h,{...t});case"SocialX":return g(Vh,{...t});case"Speedometer":return g(nl,{...t});case"Stairs":return g(zh,{...t});case"Star":return g(rl,{...t});case"StarFill":return g(Hh,{...t});case"StarHalf":return g(Uh,{...t});case"Stars":return g(Gh,{...t});case"Stop":return g(al,{...t});case"Strikethrough":return g($h,{...t});case"Sun":return g(Wh,{...t});case"Swap":return g(qh,{...t});case"SwitchHorizontal":return g(Kh,{...t});case"Table":return g(Yh,{...t});case"Tag":return g(ll,{...t});case"Target":return g(Qh,{...t});case"Target2":return g(Jh,{...t});case"TextFormat":return g(e0,{...t});case"TextFormat2":return g(t0,{...t});case"TextHighlight":return g(o0,{...t});case"ThumbsDown":return g(n0,{...t});case"ThumbsUp":return g(r0,{...t});case"ThumbsUpFill":return g(a0,{...t});case"Toggle":return g(l0,{...t});case"Translate":return g(c0,{...t});case"Trash":return g(dt,{...t});case"Trending":return g(i0,{...t});case"Underline":return g(s0,{...t});case"Undo":return g(p0,{...t});case"Unlock":return g(m0,{...t});case"UploadCloud":return g(sn,{...t});case"User":return g(il,{...t});case"UserCheck":return g(h0,{...t});case"UserDollar":return g(g0,{...t});case"UserEdit":return g(y0,{...t});case"UserPlus":return g(v0,{...t});case"UserRight":return g(I0,{...t});case"UserSquare":return g(P0,{...t});case"Users":return g(C0,{...t});case"UsersUp":return g(S0,{...t});case"UserVoice":return g(yp,{...t});case"Video":return g(w0,{...t});case"VideoChat":return g(k0,{...t});case"Volume":return g(pl,{...t});case"VolumeDown":return g(dl,{...t});case"VolumeMute":return g(ml,{...t});case"Wrench":return g(N0,{...t});case"X":return g(He,{...t});case"XCircle":return g(B0,{...t});case"XCircleFill":return g(R0,{...t});case"XSquare":return g(E0,{...t});case"ZoomIn":return g(L0,{...t});case"ZoomOut":return g(F0,{...t});default:return null}}var e2=on,t2={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:wa,csv:Sa,xls:Na,xlsx:Ba,ods:ka,zip:Tt,rar:Tt,"7z":Tt,tar:Tt,gz:Tt,tgz:Tt};var A0=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&t2[t]||e2};import{cn as O0,ColorHelpers as u3}from"@cleen/ui-core";import{forwardRef as f3}from"react";import{Fragment as g3,jsx as ul,jsxs as b3}from"react/jsx-runtime";var h3=f3(function({iconName:t,iconSrc:n,icon:o,iconSize:l=20,header:r,color:a,children:i,classNames:p,styles:s,...d},f){let m=u3.getComputedColor(a);return ul(Pe,{ref:f,classNames:{...p,header:{...p?.header,title:O0("cleen-flex cleen-gap-4",p?.header?.title)}},header:{...r,title:b3(g3,{children:[ul("div",{className:O0("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:la(m,.85),color:m,borderColor:"transparent"},...s?.iconHolder},children:o||(t?ul(Ee,{name:t,className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):n?ul("img",{src:n,alt:"Icon",className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):null)}),r?.title]})},color:a,...d,children:i&&ul("div",{className:O0("cleen-flex-1",p?.content),style:s?.content,children:i})})});import{cn as vr}from"@cleen/ui-core";import{forwardRef as y3,useMemo as v3}from"react";import{jsx as fl}from"react/jsx-runtime";var I3=y3(function({media:t,header:n,color:o,children:l,classNames:r,styles:a,...i},p){let s=v3(()=>{switch(t?.type){case"image":return fl("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 fl("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 fl("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 fl(Pe,{ref:p,color:o,classNames:{...r,container:vr("cleen-pt-0",r?.container),header:{...r?.header,content:vr("cleen-p-0",r?.header?.content)}},header:{...n,...s&&{content:fl("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 hl}from"@cleen/ui-core";import{jsx as vi,jsxs as C3}from"react/jsx-runtime";var ie=({className:e,classNames:t,style:n,styles:o,infoMessage:l,errorMessage:r,subtitle:a,...i})=>vi("div",{className:hl("cleen",e),style:n,children:C3("div",{className:hl(t?.container),style:o?.container,...i,children:[l&&vi("div",{className:hl("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:o?.infoMessage,role:"note",children:l}),r&&vi("div",{className:hl("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:o?.errorMessage,role:"alert",children:r}),a&&vi("div",{className:hl("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:o?.subtitle,children:a})]})});import{cn as gl}from"@cleen/ui-core";import{jsx as bl,jsxs as x3}from"react/jsx-runtime";var de=({required:e=!1,tooltip:t,children:n,className:o,classNames:l,style:r,styles:a,...i})=>bl("div",{className:gl("cleen",o),style:r,children:x3("label",{...i,className:gl("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:[bl("div",{className:gl({"cleen-flex-1":!e&&!t},l?.label),style:a?.label,children:n}),e&&bl("span",{className:gl("cleen-text-primary",l?.required),style:a?.required,children:"*"}),t&&bl(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:bl(Xa,{className:gl("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 P3,useEffect as S3,useId as w3,useMemo as M3,useState as o2}from"react";import{jsx as No,jsxs as Ii}from"react/jsx-runtime";var Ie=P3(function({name:t,id:n,type:o,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:P,maxLengthLabelThreshold:I=.5,uploadLabel:x="Choose a file",leftIcon:S,rightIcon:E,topRightIcon:T,inputOverlay:N,infoLabels:F,maxLengthLabel:w,minLengthLabel:M,onChange:k,...D},L){let A=i!==void 0||p!==void 0,[z,R]=o2(a??""),[B,V]=o2(null),U=A?i:z,O=A?p:B;S3(()=>{A||R(i??a??"")},[i,a,A]);let _=$=>{let Y=$.target.value;if(o==="file"&&$.target.files){A||V($.target.files),k?.($);return}(!C||Y.length<=C)&&(A||R(Y),k?.($))},K=M3(()=>P&&M&&(U?.toString()?.length??0)<P?M(P-(U?.toString()?.length??0)):!C||!w||(U?.toString()?.length??0)/C<I?F?.subtitle:w?.(C-(U?.toString()?.length??0)),[U,C,I,F?.subtitle]),H=w3(),G=!!(F?.errorMessage||F?.infoMessage||K),q=G?`${H}-info`:void 0;return No("div",{className:to("cleen",f),style:b,children:Ii("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)&&Ii("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[No(de,{htmlFor:n||t,required:d,tooltip:r,className:to("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...y?.label,children:l}),T]}),Ii("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":o==="file"&&!s},F?.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:[S&&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:S}),Ii("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[No("input",{id:n||t,name:t,type:o,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",S?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":S,"cleen-rounded-r-none":E,"cleen-hidden":o==="file"},s?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:y?.input,onChange:_,required:d,"aria-invalid":F?.errorMessage?!0:void 0,"aria-describedby":q,ref:L,...D}),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",S?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",m?.inputOverlay),style:y?.inputOverlay,children:N}),o==="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",O&&O.length>0&&"cleen-text-foreground"),children:O&&O.length>0?Array.from(O).map($=>$.name).join(", "):x})]}),E&&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:E})]}),G&&No(ie,{id:q,...F,subtitle:K})]})})});import{cn as yl,useOutsideClick as k3}from"@cleen/ui-core";import{forwardRef as T3,useEffect as n2,useImperativeHandle as N3,useMemo as B3,useRef as R3,useState as Ci}from"react";import{jsx as vl,jsxs as E3}from"react/jsx-runtime";var _0=T3(function({value:t,defaultValue:n,defaultIsEditing:o=!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=vl(ce,{}),selectAllOnEdit:C=!1,renderText:P,className:I,classNames:x,style:S,styles:E,...T},N){let F=t!==void 0,[w,M]=Ci(n??""),k=F?t??"":w,[D,L]=Ci(!1),A=u??D,z=B3(()=>typeof P=="function"?P(k):P||k||i||a,[k,P,a,i]),[R,B]=Ci(o),V=l!==void 0,U=V?l:R,[O,_]=Ci(k),K=R3(null);N3(N,()=>({...K.current,save:G,cancel:H})),n2(()=>{F||M(n??"")},[n,F]),n2(()=>{U||_(k)},[k,U]);let H=async()=>{V||B(!1),r?.(!1),_(k),await d?.()},G=async()=>{if(!A){if(k===O){await d?.(),V||B(!1),r?.(!1);return}L(!0),F||M(O);try{await s?.(O),V||B(!1),r?.(!1)}finally{L(!1)}}},q=async $=>{$.key==="Enter"&&($.preventDefault(),await G()),$.key==="Escape"&&($.stopPropagation(),$.preventDefault(),await H()),m?.onKeyDown?.($)};return k3({refs:[K],enabled:b&&U,handler:async()=>{y?await G():await H()}}),vl("div",{className:yl("cleen",I),style:S,ref:K,...T,children:U?E3("div",{className:yl("cleen-relative cleen-h-full",x?.container),style:E?.container,children:[vl(Ie,{value:O,onChange:$=>{_($.target.value),f?.($.target.value)},autoFocus:!0,placeholder:a,className:x?.input?.className,classNames:{...x?.input?.classNames,inputContainer:yl("cleen-border-primary hover:cleen-border-primary/60",x?.input?.classNames?.inputContainer)},...E?.input,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:A||m?.disabled,onKeyDown:q}),A&&vl("div",{className:yl("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:E?.loaderContainer,children:v})]}):vl("div",{onClick:()=>{p&&(V||B(!0),r?.(!0))},className:yl("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:E?.preview,children:z})})});import{cn as Ir}from"@cleen/ui-core";import{forwardRef as L3,useEffect as r2,useId as D3,useMemo as F3,useRef as A3,useState as O3}from"react";import{jsx as pn,jsxs as V0}from"react/jsx-runtime";var Il=L3(function({name:t,id:n,value:o,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:P,maxLengthLabelThreshold:I=.5,maxLengthLabel:x,minLengthLabel:S,className:E,classNames:T,style:N,styles:F,...w},M){let k=o!==void 0,[D,L]=O3(typeof l=="string"?l:""),A=A3(null),z=M??A,R=k?o:D;r2(()=>{k||L(o??(typeof l=="string"?l:""))},[o,l,k]);let B=$=>{$.style.height="auto";let Y=Math.min($.scrollHeight,u);$.style.height=`${Y}px`},V=$=>{B($.target)};r2(()=>{!v||!A.current||B(A.current)},[v,R,u]);let U=$=>{$.preventDefault()},O=$=>{$.preventDefault();let Y=$.dataTransfer?.getData("text/plain");k?b?.(`${o??""}${Y}`):(L(ae=>`${ae}${Y}`),b?.(`${D}${Y}`))},_=$=>{let Y=$.target.value;(!C||Y.length<=C)&&(k||L(Y),b?.(Y),v&&V($))},K=F3(()=>P&&S&&(R?.length??0)<P?S(P-(R?.length??0)):!C||!x||(R?.toString()?.length??0)/C<I?s?.subtitle:x?.(C-(R?.toString()?.length??0)),[R,C,I,s?.subtitle]),H=D3(),G=!!(s?.errorMessage||s?.infoMessage||K),q=G?`${H}-info`:void 0;return pn("div",{className:Ir("cleen",E),style:N,children:V0("div",{className:Ir("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",T?.container),style:F?.container,children:[(r||f)&&V0("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[r&&pn(de,{htmlFor:n||t,required:p,tooltip:a,className:Ir("cleen-w-full",T?.label?.className),classNames:T?.label?.classNames,...F?.label,children:r}),f&&pn("div",{className:"cleen-ml-auto",children:f})]}),V0("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:F?.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:n||t,name:t,ref:z,disabled:i,value:R,minLength:P,maxLength:C,"aria-invalid":s?.errorMessage?!0:void 0,"aria-describedby":q,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`},...F?.textarea},onFocus:$=>$.currentTarget.setSelectionRange($.currentTarget.value.length,$.currentTarget.value.length),onDragOver:U,onDrop:O,...w,onChange:_})]}),G&&pn(ie,{id:q,...s,subtitle:K})]})})});import{cn as Cl,useOutsideClick as _3}from"@cleen/ui-core";import{forwardRef as V3,useEffect as a2,useImperativeHandle as z3,useMemo as H3,useRef as U3,useState as xi}from"react";import{jsx as xl,jsxs as G3}from"react/jsx-runtime";var z0=V3(function({value:t,defaultValue:n,defaultIsEditing:o=!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=xl(ce,{size:"md"}),selectAllOnEdit:C=!1,renderText:P,className:I,classNames:x,style:S,styles:E,...T},N){let F=t!==void 0,[w,M]=xi(n??""),k=F?t??"":w,[D,L]=xi(!1),A=u??D,z=H3(()=>typeof P=="function"?P(k):P||k||i||a,[k,P,a,i]),[R,B]=xi(o),V=l!==void 0,U=V?l:R,[O,_]=xi(k),K=U3(null);z3(N,()=>({...K.current,save:G,cancel:H})),a2(()=>{F||M(n??"")},[n,F]),a2(()=>{U||_(k)},[k,U]);let H=async()=>{V||B(!1),r?.(!1),_(k),await d?.()},G=async()=>{if(!A){if(k===O){await d?.(),V||B(!1),r?.(!1);return}L(!0),F||M(O);try{await s?.(O),V||B(!1),r?.(!1)}finally{L(!1)}}},q=async $=>{$.key==="Escape"&&($.preventDefault(),$.stopPropagation(),await H()),$.key==="Enter"&&($.metaKey||$.ctrlKey)&&($.preventDefault(),await G()),m?.onKeyDown?.($)};return _3({refs:[K],enabled:b&&U,handler:async()=>{y?await G():await H()}}),xl("div",{className:Cl("cleen",I),style:S,ref:K,...T,children:U?G3("div",{className:Cl("cleen-relative cleen-h-full",x?.container),style:E?.container,children:[xl(Il,{value:O,onChange:$=>{_($),f?.($)},autoFocus:!0,placeholder:a,className:x?.textArea?.className,classNames:{...x?.textArea?.classNames,textareaContainer:Cl("cleen-border-primary hover:cleen-border-primary/60",x?.textArea?.classNames?.textareaContainer)},...E?.textArea,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:A||m?.disabled,onKeyDown:q}),A&&xl("div",{className:Cl("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:E?.loaderContainer,children:v})]}):xl("div",{onClick:()=>{p&&(V||B(!0),r?.(!0))},className:Cl("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:E?.preview,children:z})})});import"@cleen/ui-core";import{forwardRef as $3}from"react";import{Fragment as q3,jsx as H0,jsxs as K3}from"react/jsx-runtime";var W3=$3(function({header:t,color:n,children:o,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 H0(Pe,{ref:m,color:n,header:{...t,title:H0(_0,{value:b??"",onSave:async y=>{await r?.("title",y)},...s?.titleTextInput,...d?.titleTextInput,...i})},classNames:s,styles:d,...f,children:(!a||o)&&K3(q3,{children:[H0(z0,{value:l??"",onSave:async y=>{await r?.("description",y)},...p,textAreaProps:p?.textAreaProps,...s?.descriptionTextInput,...d?.descriptionTextInput}),o]})})});import{cn as Pl}from"@cleen/ui-core";import{forwardRef as X3}from"react";import{jsx as Pi}from"react/jsx-runtime";var Y3=X3(function({type:t="button",label:n,onClick:o,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 Pi("div",{className:Pl("cleen",r),style:i,ref:l,children:Pi("button",{type:t,ref:u,disabled:f||s,onClick:o,className:Pl("cleen-size-full",a?.container),style:p?.container,...y,children:Pi(Pe,{p:0,className:Pl("cleen-size-full cleen-group",a?.card?.className),classNames:{...a?.card?.classNames,container:Pl("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",Pb[m],a?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||f}),childrenContainer:Pl("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",a?.card?.classNames?.childrenContainer)},"aria-disabled":s||f,...p?.card,children:f?Pi(ce,{size:"lg",...d,color:d?.color||Sb[m],...a?.loader,...p?.loader}):n||b})})})});import{cn as Sl,ColorHelpers as l2,formatAudioTime as c2}from"@cleen/ui-core";import{useWavesurfer as Q3}from"@wavesurfer/react";import{forwardRef as Z3,useCallback as J3,useRef as j3}from"react";import{jsx as wl,jsxs as i2}from"react/jsx-runtime";var eT={waveColor:l2.getComputedColor("var(--cleen-neutral-200)"),progressColor:l2.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},tT=Z3(function({url:t,options:n,className:o,classNames:l,style:r,styles:a,...i},p){let s=j3(null),{wavesurfer:d,isPlaying:f,isReady:m,currentTime:b}=Q3({...eT,...n,container:s,url:t}),y=m?d?.getDuration()??0:0,u=J3(()=>{d?.playPause()},[d]);return wl("div",{ref:p,className:Sl("cleen",o),style:r,...i,children:i2("div",{className:Sl("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:[wl(te,{type:"button",onClick:u,disabled:!m,"aria-label":f?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:Sl("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...a?.playButton,children:f?wl(vt,{className:"cleen-fill-current"}):wl(It,{className:"cleen-fill-current"})}),wl("div",{ref:s,className:Sl("cleen-flex-1 cleen-min-w-0",l?.waveform),style:a?.waveform}),i2("span",{className:Sl("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",l?.timestamp),style:a?.timestamp,children:[c2(b),"\xA0/\xA0",c2(y)]})]})})});import{ColorHelpers as oT}from"@cleen/ui-core";var s2=oT.getComputedColor("var(--cleen-primary)"),p2="rgba(var(--cleen-primary), 0.15)",d2={waveColor:s2,progressColor:s2,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var m2={startRecording:"Click to start recording"};import{cn as rt,formatAudioTime as Ri,trimBlob as rT}from"@cleen/ui-core";import{useWavesurfer as aT}from"@wavesurfer/react";import{forwardRef as lT,useCallback as xr,useEffect as K0,useMemo as cT,useRef as h2,useState as Ei}from"react";function U0(e,t,n,o){return new(n||(n=Promise))((function(l,r){function a(s){try{p(o.next(s))}catch(d){r(d)}}function i(s){try{p(o.throw(s))}catch(d){r(d)}}function p(s){var d;s.done?l(s.value):(d=s.value,d instanceof n?d:new n((function(f){f(d)}))).then(a,i)}p((o=o.apply(e,t||[])).next())}))}var Si=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let l=(...r)=>{this.un(t,l),n(...r)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},$0=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}},W0=class extends Si{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()}},G0=100,nT=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],wi=class e extends $0{constructor(t){var n,o,l,r,a,i;super(Object.assign(Object.assign({},t),{audioBitsPerSecond:(n=t.audioBitsPerSecond)!==null&&n!==void 0?n:128e3,scrollingWaveform:(o=t.scrollingWaveform)!==null&&o!==void 0&&o,scrollingWaveformWindow:(l=t.scrollingWaveformWindow)!==null&&l!==void 0?l:5,continuousWaveform:(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 W0,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 n;let o=new AudioContext,l=o.createMediaStreamSource(t),r=o.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&&((n=this.originalOptions)!==null&&n!==void 0||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let s=setInterval((()=>{var d,f,m,b;if(!this.isWaveformPaused){if(r.getFloatTimeDomainData(i),this.options.scrollingWaveform){let y=Math.floor((this.options.scrollingWaveformWindow||0)*G0),u=0;for(let C=0;C<a;C++){let P=Math.abs(i[C]);P>u&&(u=P)}this.dataWindow||(this.dataWindow=new Float32Array(y));let v=new Float32Array(y);if(this.dataWindow&&this.dataWindow.length>0){let C=y-1,P=this.dataWindow.slice(-C);v.set(P,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*G0):((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)/G0;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(),o?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return U0(this,void 0,void 0,(function*(){let n;this.micStream&&this.stopMic();try{n=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(l){throw new Error("Error accessing the microphone: "+l.message)}let o=this.renderMicStream(n);return this.micStream=o,this.unsubscribeDestroy=this.once("destroy",o.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",o.onEnd),this.stream=n,n}))}stopMic(){var t,n,o;(t=this.micStream)===null||t===void 0||t.onDestroy(),(n=this.unsubscribeDestroy)===null||n===void 0||n.call(this),(o=this.unsubscribeRecordEnd)===null||o===void 0||o.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((l=>l.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(t){return U0(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||nT.find((a=>MediaRecorder.isTypeSupported(a))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=o,this.stopRecording();let l=[];o.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:o.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))};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 U0(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 Ti=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let l=(...r)=>{this.un(t,l),n(...r)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},q0=class extends Ti{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 u2(e,t){let n=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[o,l]of Object.entries(t))if(o==="children"&&l)for(let[r,a]of Object.entries(l))a instanceof Node?n.appendChild(a):typeof a=="string"?n.appendChild(document.createTextNode(a)):n.appendChild(u2(r,a));else o==="style"?Object.assign(n.style,l):o==="textContent"?n.textContent=l:n.setAttribute(o,l.toString());return n}function Ml(e,t,n){let o=u2(e,t||{});return n?.appendChild(o),o}function f2(e){let t=e,n=new Set;return{get value(){return t},set(o){Object.is(t,o)||(t=o,n.forEach((l=>l(t))))},update(o){this.set(o(t))},subscribe:o=>(n.add(o),()=>n.delete(o))}}function Mi(e,t){let n,o=()=>{n&&(n(),n=void 0),n=e()},l=t.map((r=>r.subscribe(o)));return o(),()=>{n&&(n(),n=void 0),l.forEach((r=>r()))}}function Cr(e,t){let n=f2(null),o=l=>{n.set(l)};return e.addEventListener(t,o),n._cleanup=()=>{e.removeEventListener(t,o)},n}function dn(e){let t=e._cleanup;typeof t=="function"&&t()}function ki(e,t={}){let{threshold:n=3,mouseButton:o=0,touchDelay:l=100}=t,r=f2(null),a=new Map,i=matchMedia("(pointer: coarse)").matches,p=()=>{},s=d=>{if(d.button!==o||(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,P=T=>{if(T.defaultPrevented||a.size>1||i&&Date.now()-y<l)return;let N=T.clientX,F=T.clientY,w=N-f,M=F-m;(b||Math.abs(w)>n||Math.abs(M)>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:F-C,deltaX:w,deltaY:M}),f=N,m=F)},I=T=>{if(a.delete(T.pointerId),b){let N=T.clientX,F=T.clientY;r.set({type:"end",x:N-v,y:F-C})}p()},x=T=>{a.delete(T.pointerId),T.relatedTarget&&T.relatedTarget!==document.documentElement||I(T)},S=T=>{b&&(T.stopPropagation(),T.preventDefault())},E=T=>{T.defaultPrevented||a.size>1||b&&T.preventDefault()};document.addEventListener("pointermove",P),document.addEventListener("pointerup",I),document.addEventListener("pointerout",x),document.addEventListener("pointercancel",x),document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("click",S,{capture:!0}),p=()=>{document.removeEventListener("pointermove",P),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",x),document.removeEventListener("pointercancel",x),document.removeEventListener("touchmove",E),setTimeout((()=>{document.removeEventListener("click",S,{capture:!0})}),10)}};return e.addEventListener("pointerdown",s),{signal:r,cleanup:()=>{p(),e.removeEventListener("pointerdown",s),a.clear(),dn(r)}}}var Ni=class extends Ti{constructor(t,n,o=0){var l,r,a,i,p,s,d,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((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 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=Ml("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},n),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},t),l=Ml("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=ki(o,{threshold:1}),a=ki(l,{threshold:1}),i=Mi((()=>{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=Mi((()=>{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 n=t.querySelector('[part*="region-handle-left"]'),o=t.querySelector('[part*="region-handle-right"]');n&&t.removeChild(n),o&&t.removeChild(o)}initElement(){if(this.isRemoved)return null;let t=this.start===this.end,n=0,o=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(o=100/this.numberOfChannels,n=o*this.channelIdx);let l=Ml("div",{style:{position:"absolute",top:`${n}%`,height:`${o}%`,backgroundColor:t?"none":this.color,borderLeft:t?"2px solid "+this.color:"none",borderRadius:"2px",boxSizing:"border-box",transition:"background-color 0.2s ease",cursor:this.drag?"grab":"default",pointerEvents:"all"}});return!t&&this.resize&&this.addResizeHandles(l),l}renderPosition(){if(!this.element)return;let t=this.start/this.totalDuration,n=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*t+"%",this.element.style.right=100*n+"%"}toggleCursor(t){var n;this.drag&&(!((n=this.element)===null||n===void 0)&&n.style)&&(this.element.style.cursor=t?"grabbing":"grab")}initMouseEvents(){let{element:t}=this;if(!t)return;let n=Cr(t,"click"),o=Cr(t,"mouseenter"),l=Cr(t,"mouseleave"),r=Cr(t,"dblclick"),a=Cr(t,"pointerdown"),i=Cr(t,"pointerup"),p=n.subscribe((v=>v&&this.emit("click",v))),s=o.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(n),dn(o),dn(l),dn(r),dn(a),dn(i)}));let y=ki(t),u=Mi((()=>{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 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=n&&n!=="start"?this.start:this.start+a,p=n&&n!=="end"?this.end:this.end+a,s=o!==void 0;s&&this.updatingSide&&this.updatingSide!==n&&(this.updatingSide==="start"?i=o:p=o),i=Math.max(0,i),p=Math.min(this.totalDuration,p);let d=p-i;this.updatingSide=n;let f=d>=this.minLength&&d<=this.maxLength;i<=p&&(f||s)&&(this.start=i,this.end=p,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=Ml("div",{style:{padding:`0.2em ${o?.2:.4}em`,display:"inline-block"},textContent:t})}else this.content=t;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=o=>this.onContentClick(o),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener)),this.content.setAttribute("part","region-content"),this.element.appendChild(this.content),this.emit("content-changed")}else this.content=void 0}setOptions(t){var n,o;if(this.element){if(t.color&&(this.color=t.color,this.element.style.backgroundColor=this.color),t.drag!==void 0&&(this.drag=t.drag,this.element.style.cursor=this.drag?"grab":"default"),t.start!==void 0||t.end!==void 0){let l=this.start===this.end;this.start=this.clampPosition((n=t.start)!==null&&n!==void 0?n:this.start),this.end=this.clampPosition((o=t.end)!==null&&o!==void 0?o:l?this.start:this.end),this.renderPosition(),this.setPart()}if(t.content&&this.setContent(t.content),t.id&&(this.id=t.id,this.setPart()),t.resize!==void 0&&t.resize!==this.resize){let l=this.start===this.end;this.resize=t.resize,this.resize&&!l?this.addResizeHandles(this.element):this.removeResizeHandles(this.element)}t.resizeStart!==void 0&&(this.resizeStart=t.resizeStart),t.resizeEnd!==void 0&&(this.resizeEnd=t.resizeEnd)}}remove(){this.isRemoved=!0,this.emit("remove"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.content&&this.contentEditable&&(this.contentClickListener&&(this.content.removeEventListener("click",this.contentClickListener),this.contentClickListener=void 0),this.contentBlurListener&&(this.content.removeEventListener("blur",this.contentBlurListener),this.contentBlurListener=void 0)),this.element&&(this.element.remove(),this.element=null),this.unAll()}},Bi=class e extends q0{constructor(t){super(t),this.regions=[],this.regionsContainer=this.initRegionsContainer()}static create(t){return new e(t)}onInit(){if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");this.wavesurfer.getWrapper().appendChild(this.regionsContainer),this.subscriptions.push(this.wavesurfer.on("ready",(n=>{this.regions.forEach((o=>o._setTotalDuration(n)))})));let t=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(n=>{let o=this.regions.filter((l=>l.start<=n&&(l.end===l.start?l.start+.05:l.end)>=n));o.forEach((l=>{t.includes(l)||this.emit("region-in",l)})),t.forEach((l=>{o.includes(l)||this.emit("region-out",l)})),t=o})))}initRegionsContainer(){return Ml("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(t){t.content&&setTimeout((()=>{let n=t.content,o=n.getBoundingClientRect(),l=this.regions.map((r=>{if(r===t||!r.content)return 0;let a=r.content.getBoundingClientRect();return o.left<a.left+a.width&&a.left<o.left+o.width?a.height:0})).reduce(((r,a)=>r+a),0);n.style.marginTop=`${l}px`}),10)}adjustScroll(t){var n,o;if(!t.element)return;let l=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper())===null||o===void 0?void 0:o.parentElement;if(!l)return;let{clientWidth: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,n,o){let l=()=>{if(!this.wavesurfer)return;let r=this.wavesurfer.getWidth(),a=this.wavesurfer.getScroll(),i=n.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&&!o.parentElement?n.appendChild(o):!d&&o.parentElement&&o.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 n=[t.on("update",(o=>{o||this.adjustScroll(t),this.emit("region-update",t,o)})),t.on("update-end",(o=>{this.avoidOverlapping(t),this.emit("region-updated",t,o)})),t.on("play",(o=>{var l;(l=this.wavesurfer)===null||l===void 0||l.play(t.start,o)})),t.on("click",(o=>{this.emit("region-clicked",t,o)})),t.on("dblclick",(o=>{this.emit("region-double-clicked",t,o)})),t.on("content-changed",(()=>{this.emit("region-content-changed",t)})),t.once("remove",(()=>{n.forEach((o=>o())),this.regions=this.regions.filter((o=>o!==t)),this.emit("region-removed",t)}))];this.subscriptions.push(...n),this.emit("region-created",t)}addRegion(t){var n,o;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let l=this.wavesurfer.getDuration(),r=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getDecodedData())===null||o===void 0?void 0:o.numberOfChannels,a=new Ni(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,n=3){var o;let l=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper();if(!(l&&l instanceof HTMLElement))return()=>{};let r=null,a=0,i=0,p=ki(l,{threshold:n}),s=Mi((()=>{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 Ni(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 sT,jsx as Ue,jsxs as kl}from"react/jsx-runtime";var iT=lT(function({onFinalize:t,recordOptions:n,options:o,labels:l=m2,className:r,classNames:a,style:i,styles:p,...s},d){let f=h2(null),[m,b]=Ei("idle"),[y,u]=Ei(null),[v,C]=Ei(null),[P,I]=Ei(!1),x=h2("idle");x.current=m;let S=cT(()=>[wi.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...n}),Bi.create()],[]),[E,T]=S,{wavesurfer:N,isPlaying:F,isReady:w,currentTime:M}=aT({...d2,...o,container:f,plugins:S}),k=w?N?.getDuration()??0:0;K0(()=>{let U=[E.on("record-start",()=>b("recording")),E.on("record-end",O=>{b("recorded"),u(O)}),T.on("region-clicked",(O,_)=>{_.stopPropagation(),O.play(!0)})];return()=>U.forEach(O=>O?.())},[T,E]),K0(()=>N?N.on("ready",()=>{if(x.current!=="recorded")return;let O=N.getDuration();T.clearRegions();let _=T.addRegion({start:0,end:O,color:o?.regionColor??p2,drag:!1,resize:!0});C({start:_.start,end:_.end})}):void 0,[N,T,o]),K0(()=>T.on("region-updated",O=>{C({start:O.start,end:O.end})}),[T]);let D=xr(async()=>{await E.startRecording()},[E]),L=xr(()=>{E.stopRecording()},[E]),A=xr(()=>{N?.playPause()},[N]),z=xr(async()=>{if(!(!y||!v||!N)){I(!0);try{let U=await rT(y,v.start,v.end),O=URL.createObjectURL(U);u(U),N.load(O)}finally{I(!1)}}},[y,v,N]),R=xr(()=>{T.clearRegions(),N?.empty(),u(null),C(null),b("idle")},[N,T]),B=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:kl("div",{className:rt("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",a?.container),style:p?.container,children:[m==="idle"&&kl(sT,{children:[Ue("button",{type:"button",onClick:D,"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(Ha,{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(al,{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"&&kl("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:A,disabled:!w,"aria-label":F?"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:F?Ue(vt,{className:"cleen-fill-current"}):Ue(It,{className:"cleen-fill-current"})}),kl("span",{className:rt("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",a?.timestamp),style:p?.timestamp,children:[Ri(M),"\xA0/\xA0",Ri(k)]}),Ue("span",{className:"cleen-flex-1"}),!V&&v&&kl("span",{className:rt("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",a?.trimmedTimestamp),style:p?.trimmedTimestamp,children:[Ri(v.start),"\u2013",Ri(v.end)]}),Ue(te,{type:"button",onClick:R,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:z,disabled:V||P||!w,"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(Za,{})}),Ue(te,{type:"button",onClick:B,"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 Li}from"@cleen/ui-core";import{forwardRef as pT,useMemo as dT}from"react";var g2={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 Tl}from"react/jsx-runtime";var Di=pT(function({title:t,name:n,src:o,alt:l,size:r="md",initialsLength:a=2,isSelected:i=!1,showBorder:p=!1,fallback:s=Tl(il,{}),className:d,classNames:f,style:m,styles:b,onClick:y,...u},v){let C=dT(()=>(a===2?n?.split(" ").map(P=>P.charAt(0).toUpperCase()).join("").slice(0,a):n?.charAt(0).toUpperCase())||s,[n,a,s]);return Tl("div",{className:Li("cleen",d),style:m,ref:v,...u,children:Tl("div",{onClick:y,className:Li("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof r=="string"&&g2[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||n,children:o?Tl("img",{src:o,alt:l||n,className:Li("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",f?.image),style:b?.image}):Tl("span",{className:Li("cleen-select-none cleen-text-neutral-700",f?.fallback),style:b?.fallback,children:C})})})});import{cn as b2}from"@cleen/ui-core";import{forwardRef as mT}from"react";import{jsx as X0,jsxs as fT}from"react/jsx-runtime";var uT=mT(function({avatars:t,size:n="md",selectedAvatars:o=[],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,P=a&&t&&t.length>a?Math.min(t.length-a,i):0;return X0("div",{className:b2("cleen",f),style:b,ref:v,...u,children:fT("div",{className:b2("cleen-flex cleen-items-center",m?.row),style:{gap:r,...y?.row},children:[C?.map((I,x)=>{let S=o.includes(I?.id??"");return X0(Di,{name:I.name,src:I.src,size:n,isSelected:S,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)}),P>0&&X0(Di,{size:n,fallback:`+${P}`,...m?.extra,...y?.extra})]})})});import{cn as Bo}from"@cleen/ui-core";import{forwardRef as hT}from"react";import{Link as y2}from"react-router-dom";import{jsx as Nl,jsxs as Fi}from"react/jsx-runtime";var gT=hT(function({root:t={path:"/",icon:Nl(La,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:n,className:o,classNames:l,style:r,styles:a,...i},p){return!n||n.length===0?null:Nl("div",{className:Bo("cleen",o),style:r,ref:p,...i,children:Nl("nav",{className:Bo("cleen-hidden sm:cleen-flex",l?.container),style:a?.container,"aria-label":"Breadcrumb",children:Fi("ol",{role:"list",className:Bo("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:a?.list,children:[t&&Nl("li",{className:Bo("cleen-flex cleen-items-center",l?.rootItem),style:a?.rootItem,children:Fi(y2,{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-label":t?.label?void 0:"Home",children:[t?.icon,t?.label]})}),n.map(({path:s,icon:d,label:f,id:m},b)=>{let y=b===n.length-1,u=f||s.charAt(0).toUpperCase()+s.slice(1);return Fi("li",{className:Bo("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:a?.item,children:[(t||!t&&b!==0)&&Nl(ct,{className:Bo("cleen-h-5 cleen-w-5 cleen-text-neutral-300",l?.chevron),style:a?.chevron,"aria-hidden":"true"}),Fi(y2,{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 Ai=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:n,max:o}=t,l=new Date,r=new Date(l.getFullYear(),l.getMonth(),l.getDate());if(n){let a=n==="today"?r:n;if(a>=e)return a}if(o){let a=o==="today"?r:o;if(a<=e)return a}return e};import{cn as Oi}from"@cleen/ui-core";import{forwardRef as bT,useState as Y0}from"react";import{DayPicker as v2,MonthGrid as yT}from"react-day-picker";import{Fragment as vT,jsx as mn,jsxs as Z0}from"react/jsx-runtime";var Q0=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),J0=bT(function({label:t,labelTooltip:n,infoLabels:o,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:P,disabledDates:I,components:x,...S},E){let T=i!==void 0,N=u==="single",[F,w]=Y0(),[M,k]=Y0(),D=T?i:N?F:M,[L,A]=Y0(s),z=(V,U)=>{T||(N&&(V===void 0||V instanceof Date)?w(V):N||k(V)),p?.(V,U)},R={MonthGrid:V=>Z0(vT,{children:[(a||r)&&Z0("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[r&&mn(Ie,{value:u==="single"?Q0(D):D?.from||D?.to?`${Q0(D?.from)??"..."} - ${Q0(D?.to)??"..."}`:void 0,placeholder:d?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),a&&mn(te,{variant:"secondary",onClick:()=>A(new Date),children:d?.today??"Today"})]}),mn(yT,{...V})]}),...x},B={navLayout:"around",...S,className:Oi("cleen-text-foreground",b?.calendar?.className),classNames:{...b?.calendar?.classNames,nav:Oi("cleen-text-error",b?.calendar?.classNames?.nav)},disabled:v||C?{before:v==="today"?new Date:v,after:C==="today"?new Date:C}:I||P,components:R,month:L,onMonthChange:A,...y?.calendar};return Z0("div",{ref:E,className:Oi("cleen",f),style:m,children:[t&&mn(de,{required:l,tooltip:n,className:Oi("cleen-mb-1.5",b?.label?.className),classNames:b?.label?.classNames,...y?.label,children:t}),N?mn(v2,{mode:"single",...B,selected:D,onSelect:(V,U)=>{if(v||C){z(Ai(V,{min:v,max:C}),U);return}z(V,U)}}):mn(v2,{mode:"range",...B,selected:D,onSelect:(V,U)=>{if(v||C){z({from:Ai(V?.from,{min:v,max:C}),to:Ai(V?.to,{min:v,max:C})},U);return}z(V,U)}}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&mn(ie,{...o})]})});import{cn as Pr,useOutsideClick as IT,usePositionClose as CT,ZIndex as xT}from"@cleen/ui-core";import{forwardRef as PT,useEffect as ST,useRef as I2,useState as wT}from"react";import{createPortal as MT}from"react-dom";import{jsx as un,jsxs as C2}from"react/jsx-runtime";var Bl=PT(function({type:t="button",required:n,label:o,title:l,titleTooltip:r,disabled:a=!1,leftIcon:i,rightIcon:p=un(va,{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=xT.DROPDOWN,infoLabels:v,className:C,classNames:P,style:I,styles:x,children:S,...E},T){let[N,F]=wT(!1),w=m!==void 0?m:N,M=I2(null),k=I2(null),{positionStyles:D,isMounted:L}=CT({triggerRef:k,targetRef:M,position:"bottom-left",isOpen:w,offset:f});IT({refs:[M,k],handler:()=>{F(!1),b?.(!1)},enabled:w}),ST(()=>{let R=B=>{B.key==="Escape"&&w&&(F(!1),b?.(!1))};return document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}},[w,b]);let A=()=>{let R=!w;m===void 0&&F(R),b?.(R)},z=()=>{y||(m===void 0&&F(!1),b?.(!1))};return C2("div",{className:Pr("cleen",C),style:I,ref:T,...E,children:[l&&un(de,{required:n,tooltip:r,className:Pr("cleen-mb-1.5",P?.title?.className),classNames:P?.title?.classNames,...x?.title,children:l}),un("div",{className:Pr("cleen-inline-block cleen-relative",s&&"cleen-w-full"),ref:k,children:C2("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",P?.trigger),style:x?.trigger,disabled:a,"aria-haspopup":"dialog","aria-expanded":w,onClick:A,children:[i,un("div",{className:Pr("cleen-flex-1 cleen-text-left",P?.label),style:x?.label,children:o}),p]})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&un(ie,{...v}),S&&w&&MT(un("div",{className:"cleen",children:un("div",{ref:M,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},P?.dropdown),style:{zIndex:u,top:`${D.top}px`,left:`${D.left}px`,minWidth:d&&k.current?.offsetWidth?`${k.current.offsetWidth}px`:void 0,...x?.dropdown},onClick:z,children:S})}),document.body)]})});import{cn as x2}from"@cleen/ui-core";import{forwardRef as kT,useMemo as TT,useState as _i}from"react";import{jsx as fn,jsxs as P2}from"react/jsx-runtime";var NT=kT(function({label:t,placeholder:n,infoLabels:o,required:l,selected:r,onSelect:a,onSelectInternal:i,leftIcon:p,rightIcon:s=fn(fa,{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:P,...I},x){let S=r!==void 0,E=y==="single",[T,N]=_i(!1),[F,w]=_i(),[M,k]=_i(),D=S?r:E?F:M,[L,A]=_i(),z=B=>{S||(E&&(B===void 0||B instanceof Date)?w(B):E||k(B)),a?.(B)},R=TT(()=>{if(!D)return n;if(E)return D?.toLocaleDateString();{let B=D;if(B.from&&B.to)return`${B.from.toLocaleDateString()} - ${B.to.toLocaleDateString()}`;if(B.from)return B.from.toLocaleDateString()}return n},[n,D,E]);return P2("div",{ref:x,className:x2("cleen",d),style:f,children:[fn(Bl,{title:t,label:R,isOpen:T,onOpenChange:B=>{A(D),N(B)},leftIcon:p,rightIcon:s,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:x2("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:l,disabled:C,...b?.dropdown,children:fn(Pe,{footer:{hasDivider:!0,content:P2("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:()=>{z(L),N(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...b?.card,children:fn(J0,{mode:y,...I,selected:L,onSelect:(B,V)=>A(i?.(B,V)??B),min:u,max:v,disabledDates:P,...m?.calendar,...b?.calendar})})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&fn(ie,{...o})]})});import"react";import{cn as Sr}from"@cleen/ui-core";import BT from"embla-carousel-auto-scroll";import RT from"embla-carousel-autoplay";import ET from"embla-carousel-react";import{forwardRef as LT,useEffect as DT,useMemo as S2,useState as w2}from"react";import{jsx as hn,jsxs as AT}from"react/jsx-runtime";var FT=LT(function({options:t,slideAmount:n=3,slideSize:o,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=S2(()=>{let k=[];return a&&k.push(RT(i)),p&&k.push(BT(s)),k},[a,p,i,s]),[P,I]=ET({skipSnaps:!0,...t},C),[x,S]=w2(!0),[E,T]=w2(!0),N=()=>I?.scrollPrev(),F=()=>I?.scrollNext(),w=k=>{S(!k?.canScrollPrev()),T(!k?.canScrollNext())};DT(()=>{I&&(w(I),I.on("reInit",w),I.on("select",w))},[I]);let M=S2(()=>o?`${o}%`:`${100/n}%`,[o,n]);return hn("div",{className:Sr("cleen",f),style:b,ref:v,...u,children:AT("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:P,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":M},children:d})}),hn("button",{className:Sr("cleen-text-foreground",m?.nextBtn,E&&"cleen-opacity-50"),onClick:F,disabled:E,style:y?.nextBtn,children:r||hn(ct,{})})]})})});import{cn as gn}from"@cleen/ui-core";import{forwardRef as OT,useEffect as T2,useId as _T,useRef as VT,useState as zT}from"react";var M2={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)]"},k2={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 HT,jsx as Bt,jsxs as Vi}from"react/jsx-runtime";var bn=OT(function({id:t,name:n,required:o,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:P=!1,infoLabels:I,inputRef:x,...S},E){let T=_T(),N=t??T,F=typeof l=="boolean"||l===null,[w,M]=zT(r),k=VT(null),D=B=>{k.current=B,x&&(x.current=B)};T2(()=>{F||M(r)},[r,F]);let L=F?l:w;T2(()=>{k.current&&(k.current.indeterminate=C&&L===null)},[C,L]);let A=B=>{let V;if(C)switch(L){case!0:V=null;break;case!1:V=!0;break;default:V=!1;break}else V=!L;F||M(V),d?.({...B,target:{...B.target,checked:V}})},z=Vi(HT,{children:[Vi("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",{[M2[v]]:L,[k2[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:D,type:"checkbox",disabled:f,className:"cleen-sr-only",checked:L===!0,onChange:A,id:N,name:n,...S}),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)&&Vi("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})]})]}),R={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:E,children:Vi("div",{className:gn(i?.container),style:s?.container,children:[m&&Bt(de,{htmlFor:N,required:o,tooltip:b,className:gn("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...s?.title,children:m}),P?Bt("div",{...R,onClick:B=>{B.target instanceof Element&&!B.target.closest("label")&&k.current?.click()},children:z}):Bt("div",{...R,children:z}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&Bt(ie,{...I})]})})});import{cn as Rl}from"@cleen/ui-core";import{forwardRef as UT,useId as GT,useMemo as $T,useState as WT}from"react";import{jsx as wr,jsxs as KT}from"react/jsx-runtime";var qT=UT(function({id:t,required:n,label:o,labelTooltip:l,checkboxes:r,allowIndeterminate:a,infoLabels:i,requiresAtLeastOneOptions:p,classNames:s,styles:d,onChange:f,...m},b){let y=GT(),u=t??y,[v,C]=WT(!1),P=$T(()=>p&&v&&r?.every(x=>x.checked===!1)?p.title:i?.errorMessage,[p,i?.errorMessage,r,v]),I=(x,S)=>{let E={...S,checked:x.target.checked},T;r&&S?.id&&(T=[...r].map(N=>N.id===S.id?E:N)),f?.(E,T),C(!0)};return wr("div",{className:Rl("cleen"),...m,ref:b,children:KT("div",{className:Rl("cleen-flex cleen-flex-col cleen-gap-2",s?.container),style:d?.container,children:[o&&wr(de,{htmlFor:u,required:n,tooltip:l,className:Rl("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...d?.label,children:o}),wr("div",{className:Rl("cleen-flex cleen-flex-col cleen-gap-3",s?.checkboxes),style:d?.checkboxes,children:r?.map((x,S)=>wr("div",{className:Rl("cleen-flex",s?.checkboxContainer),style:d?.checkboxContainer,children:wr(bn,{allowIndeterminate:a,...x,id:`${u}-${S}`,fullTriggerArea:!0,onChange:E=>I(E,x)})},x.id))}),(P||i?.infoMessage||i?.subtitle)&&wr(ie,{...i,errorMessage:P})]})})});import{cn as yn}from"@cleen/ui-core";import{forwardRef as XT,useState as N2}from"react";import{jsx as Mr,jsxs as B2}from"react/jsx-runtime";var R2=XT(({sections:e,defaultOpenIndex:t,allowExpandAll:n=!1,className:o,classNames:l,style:r,styles:a,...i},p)=>{let[s,d]=N2(t??null),[f,m]=N2(()=>new Set(e.map((u,v)=>v))),b=u=>n?f.has(u):s===u,y=(u,v)=>{v.onClick?.(),v.items?.length&&(n?m(C=>{let P=new Set(C);return P.has(u)?P.delete(u):P.add(u),P}):d(s===u?null:u))};return Mr("div",{ref:p,className:yn("cleen",o),style:{...r,width:"100%"},...i,children:Mr("div",{className:yn("cleen-w-full",l?.container),style:a?.container,children:e.map((u,v)=>B2("div",{className:yn("cleen-mb-3",l?.section),style:a?.section,children:[B2("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,P)=>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??P))})]},u?.key??v))})})});R2.displayName="Collapsible";function j0(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 E2(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as zi}from"@cleen/ui-core";import{useEffect as YT,useState as QT}from"react";import{HexAlphaColorPicker as ZT,RgbaColorPicker as JT}from"react-colorful";import{jsx as kr,jsxs as eN}from"react/jsx-runtime";var L2="rgba(0, 0, 0, 1)",D2="#000000ff",jT=({required:e,value:t,defaultValue:n,onChange:o,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=n??(l==="hexa"?D2:L2),[v,C]=QT(u),P=y?t:v;YT(()=>{y||C(n??(l==="hexa"?D2:L2))},[n,y,l]);let I=S=>{let E=E2(S);y||C(E),o?.(E)},x=S=>{y||C(S),o?.(S)};return kr("div",{className:zi("cleen",p),style:d,...b,children:eN("div",{className:zi("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:zi("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...f?.label,children:a}),kr("div",{className:zi("cleen-rounded-md",r&&"cleen-opacity-50 cleen-pointer-events-none",s?.picker),style:f?.picker,children:l==="hexa"?kr(ZT,{color:P,onChange:x}):kr(JT,{color:j0(P),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&kr(ie,{...m})]})})};import{cn as mt}from"@cleen/ui-core";import{forwardRef as tN,useMemo as oN,useState as nN}from"react";var e1=(e="")=>e.replace(/\D+/g,""),F2=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function A2(e,t="other"){if(!e)return e;let n=e1(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 O2=e=>e1(e);function _2(e){let t=e1(e);if(!t||parseInt(t.charAt(0),10)>=2)return"";if(t.length<2)return t;let n=t.slice(0,2);if(parseInt(n,10)<1||parseInt(n,10)>12)return t.slice(0,1);if(t.length<3)return n;if(t.length===3)return`${n}/${t.charAt(2)}`;let o=t.length===6?t.slice(-2):t.slice(2,4),l=new Date,r=l.getFullYear()%100,a=l.getMonth()+1;return parseInt(o,10)<r||parseInt(o,10)===r&&parseInt(n,10)<a?`${n}/${o.charAt(0)}`:`${n}/${o}`}import{jsx as Ro,jsxs as V2}from"react/jsx-runtime";var rN=tN(function({labels:t,value:n,isLoading:o,errors:l,className:r,classNames:a,style:i,styles:p,infoLabels:s,onChange:d,onFieldFocus:f,...m},b){let[y,u]=nN({number:"",expiry:"",cvc:""}),v=!!n,C=v?n:y,P=oN(()=>F2(C.number),[C.number]),I=S=>{let{name:E}=S.target,{value:T}=S.target;switch(E){case"number":T=A2(T,P);break;case"expiry":T=_2(T);break;case"cvc":T=O2(T);break;default:return}v||u(N=>({...N,[E]:T})),d?.({...n,[E]:T})},x=S=>{f?.(S.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:o?Ro("div",{className:mt("cleen-py-4",a?.loader?.container),style:p?.loader?.container,children:Ro(ce,{...a?.loader?.component,...p?.loader?.component})}):V2("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:S=>S.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}}),V2("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:P==="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 z2}from"@cleen/ui-core";import{jsx as H2}from"react/jsx-runtime";var xt=({isHorizontal:e=!0,className:t,classNames:n,style:o,styles:l,...r})=>H2("div",{className:z2("cleen",t),style:o,children:H2("div",{className:z2("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",n?.container),style:l?.container,...r})});import{cn as Eo,useBodyScrollLock as aN,useCleenOverlays as U2,ZIndex as lN}from"@cleen/ui-core";import{forwardRef as cN,useCallback as iN,useEffect as t1,useId as sN,useRef as pN,useState as G2}from"react";import{createPortal as dN}from"react-dom";import{jsx as Tr,jsxs as Hi}from"react/jsx-runtime";var mN={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},$2=300,o1=cN(function({title:t,subtitle:n,children:o,headerCloseBtn:l,footer:r,isOpen:a=!1,onClose:i,closeOnOverlayClick:p=!0,position:s="right",zIndex:d=lN.DRAWER,size:f="lg",p:m,gap:b,className:y,classNames:u,style:v,styles:C,...P},I){let[x,S]=G2(a),[E,T]=G2(a),N=pN(null),F=sN(),{addOverlay:w,removeOverlay:M}=U2(),k=iN(()=>{S(!1),setTimeout(()=>i?.(),$2)},[i]);return t1(()=>{if(a){T(!0);let D=setTimeout(()=>S(!0),1);return()=>clearTimeout(D)}else{S(!1);let D=setTimeout(()=>T(!1),$2);return()=>clearTimeout(D)}},[a]),t1(()=>{if(a)return w(F),()=>M(F)},[w,M,a,F]),t1(()=>{let D=L=>{let{overlays:A}=U2.getState();L.key==="Escape"&&A[A.length-1]===F&&k()};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[k,F]),aN(E),E?dN(Hi("div",{className:Eo("cleen",y),style:v,ref:I,...P,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"}),Hi("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:mN[f],...b!==void 0&&{gap:b},...C?.drawer},ref:N,children:[Hi("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:[Hi("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:n})]}),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:o}),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 uN}from"@cleen/ui-core";import{forwardRef as fN,useEffect as hN,useMemo as gN,useRef as bN,useState as yN}from"react";import{jsx as Ui,jsxs as n1}from"react/jsx-runtime";var Nr=fN(({percentage:e,title:t,barColor:n,backgroundColor:o="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=bN(u),[C,P]=yN(i?0:u),I=uN({targetNumber:C,duration:p,disabled:!i});hN(()=>{if(i){setTimeout(()=>P(u),0);return}v.current!==u&&(P(u),v.current=u)},[u,i]);let x=gN(()=>{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 Ui("div",{ref:y,className:vn("cleen",s),style:f,children:n1("div",{className:vn("cleen-w-full",d?.container),style:m?.container,...b,children:[t&&Ui("div",{className:vn("cleen-mb-1 cleen-font-semibold cleen-text-xs",d?.title),style:m?.title,children:t}),n1("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:[Ui("div",{className:vn("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",d?.track),style:{backgroundColor:o,...m?.track},children:Ui("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&&n1("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 W2}from"react";import{Fragment as q2,jsx as Ge,jsxs as Cn}from"react/jsx-runtime";var K2=({fileEntry:e,onRemove:t,onFileClick:n,labels:o,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,P=m===In.DELETING,I=s?s*b/100:0,x=W2(()=>{switch(m){case In.UPLOADING:return Cn(q2,{children:[Ge(sn,{className:"cleen-size-4"}),Ge("span",{children:o?.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,o]),S=()=>{if(n){n(e);return}d&&window.open(d,"_blank","noopener,noreferrer")},E=p||i?.name||"",[T,N]=E.split("."),F=W2(()=>f?.startsWith("image/")&&d?Ge("img",{src:d,alt:E,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"}),[E,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?S: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:[F,Cn("div",{className:Lo("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",l?.name),style:{maxWidth:F?"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&&(P?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:w=>{w.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:o?.uploadProgress?.(I,s)}):C&&Ge("p",{children:o?.uploaded?.(s)})),!y&&Cn(q2,{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 Gi=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 X2={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${Gi(e)} of ${Gi(t)}`,uploaded:e=>Gi(e)};var Y2={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 El=(r=>(r.PENDING="pending",r.IN_PROGRESS="inProgress",r.DONE="done",r.ERROR="error",r.REMOVING="removing",r))(El||{});import{cn as xn}from"@cleen/ui-core";import{jsx as Do,jsxs as Q2}from"react/jsx-runtime";var r1=({item:e,labels:t,classNames:n,styles:o})=>{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 Q2("div",{className:xn("cleen-flex cleen-items-center cleen-gap-3",n?.container),style:o?.container,children:[a,Q2("div",{className:xn("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",n?.infoContainer),style:o?.infoContainer,children:[Do("p",{className:xn("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",n?.name),style:o?.name,children:i}),p&&Do(Nr,{barColor:"rgb(var(--cleen-primary))",percentage:r,...n?.progressBar,...o?.progressBar})]}),p&&Do("span",{className:xn("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",n?.progressText),style:o?.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",n?.statusIcon),style:o?.statusIcon}),d&&Do(Jo,{className:xn("cleen-size-5 cleen-shrink-0 cleen-text-error",n?.statusIcon),style:o?.statusIcon}),m&&Do("div",{className:xn("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)=>Do("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${y*.1}s`}},y))})]})};var Ll=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(Ll||{}),Dl=["notStarted","inProgress","completed","all"];import{cn as $i}from"@cleen/ui-core";import{jsx as Z2,jsxs as vN}from"react/jsx-runtime";var a1=({value:e,onChange:t,counts:n,labels:o,classNames:l,styles:r})=>Z2("div",{role:"group","aria-label":o?.statusFilter,className:$i("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:Dl.map(a=>{let i=a===e;return vN("button",{type:"button","aria-pressed":i,onClick:()=>t(a),className:$i("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&&$i("cleen-bg-background cleen-text-foreground cleen-shadow-sm",l?.optionActive)),style:{...r?.option,...i&&r?.optionActive},children:[o?.statusFilterOptions?.[a],n&&Z2("span",{className:$i("cleen-text-neutral-400 cleen-tabular-nums",l?.optionCount),style:r?.optionCount,children:n[a]})]},a)})});var J2={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 j2=e=>e.status==="inProgress"||e.status==="pending",eI=e=>e.length>0&&e.every(t=>t.status==="done"),l1=(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 IN,cn as Pt,useControlled as tI,useDisclosure as CN}from"@cleen/ui-core";import{forwardRef as xN,useEffect as oI,useMemo as c1,useRef as PN}from"react";import{jsx as Rt,jsxs as i1}from"react/jsx-runtime";var s1=xN(function({items:t,title:n,maxVisibleItems:o=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:P,styles:I,...x},S){let{isOpen:E,toggle:T,close:N}=CN(),{value:F,handleChange:w}=tI({value:l,defaultValue:r,onChange:a});oI(()=>{t.length>0&&N()},[t.length,N]);let M=IN(J2,u),{value:k,handleChange:D}=tI({value:m,defaultValue:b,onChange:y}),L=PN(i);L.current=i;let A=eI(t);oI(()=>{if(p==null||!L.current||!A)return;if(p<=0){L.current();return}let _=setTimeout(()=>L.current?.(),p);return()=>clearTimeout(_)},[A,p]);let z=c1(()=>t.filter(j2).length,[t]),R=c1(()=>!d||!k?t:t.filter(_=>l1(_,k)),[t,d,k]),B=c1(()=>{if(f)return Dl.reduce((_,K)=>({..._,[K]:t.filter(H=>l1(H,K)).length}),{})},[t,f]);if(!t.length)return null;let V=Math.max(R.length-o,0),U=F||!V?R:R.slice(0,o),O=n??(z?M?.processing?.(z):M?.completed);return Rt(Pe,{p:16,gap:12,ref:S,className:Pt(v,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:Pt(C?.card?.classNames?.childrenContainer,{"cleen-hidden":E})},style:P,styles:I?.card?.styles,header:s?{hasDivider:!E,content:i1("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:O}),i1("div",{className:Pt("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:I?.headerButtons,children:[Rt("button",{type:"button","aria-label":M?.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",E&&"cleen-rotate-180")})}),i&&Rt("button",{type:"button","aria-label":M?.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:i1("div",{className:Pt("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:I?.list,children:[d&&k&&Rt(a1,{value:k,onChange:D,counts:B,labels:M,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:M?.emptyStatusFilter}),U.map(_=>Rt(r1,{item:_,labels:M,classNames:C?.row,styles:I?.row},_.id)),!!V&&Rt("button",{type:"button","aria-expanded":F,onClick:()=>w(!F),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:F?M?.showLess:M?.showMore?.(V)})]})})});import{FileEntryStatus as oo}from"@cleen/ui-core";var SN=[{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"]}],nI={label:"FILE",className:"cleen-bg-neutral-500"},wN={[oo.QUEUED]:"inProgress",[oo.UPLOADING]:"inProgress",[oo.PAUSED]:"inProgress",[oo.DONE]:"done",[oo.ERROR]:"error",[oo.DELETING]:"removing"},p1=e=>e.name||e.file?.name||"",rI=e=>{let t=p1(e).split(".").pop()?.toLowerCase()??"",n=SN.find(({extensions:o})=>o.includes(t));return n?{label:n.label,className:n.className}:{label:t?t.slice(0,4).toUpperCase():nI.label,className:nI.className}},aI=e=>e.status===oo.QUEUED||e.status===oo.UPLOADING||e.status===oo.PAUSED,lI=e=>wN[e.status]??"pending",cI=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as MN}from"@cleen/ui-core";import{jsx as kN}from"react/jsx-runtime";var iI=({fileEntry:e,className:t,style:n})=>{let o=rI(e);return kN("div",{className:MN("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 TN}from"react/jsx-runtime";var sI=(e,t)=>({id:e.id,name:p1(e),progress:e.progress,status:lI(e),icon:TN(iI,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as NN}from"@cleen/ui-core";import{forwardRef as BN,useMemo as pI}from"react";import{jsx as RN}from"react/jsx-runtime";var d1=BN(function({files:t,title:n,maxVisibleFiles:o=5,labels:l,classNames:r,styles:a,...i},p){let s=pI(()=>cI(t),[t]),d=NN(Y2,l),f=pI(()=>s.map(y=>sI(y,{className:r?.row?.typeBadge,style:a?.row?.typeBadge})),[s,r?.row?.typeBadge,a?.row?.typeBadge]),m=s.filter(aI).length,b=n??(m?d?.uploading?.(m):d?.completed);return RN(s1,{ref:p,items:f,title:b,maxVisibleItems:o,labels:{showMore:d?.showMore,showLess:d?.showLess,dismiss:d?.dismiss,contract:d?.contract,itemProgress:d?.uploadProgress},classNames:r,styles:a,...i})});import{applyDefaults as EN,cn as Qe,FileEntryStatus as LN,useFileUpload as DN}from"@cleen/ui-core";import{forwardRef as FN,useEffect as AN,useMemo as dI,useRef as mI,useState as m1}from"react";import{createPortal as ON}from"react-dom";import{jsx as Ze,jsxs as Wi}from"react/jsx-runtime";var _N=FN(function({required:t,icon:n,files:o,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:P,classNames:I,style:x,styles:S,multiple:E,disabled:T,loadingWhileUploading:N,isLoading:F,readOnly:w,onChange:M,id:k,name:D,...L},A){let z=mI(null),{files:R,addFiles:B,remove:V}=DN({files:o,onFilesChange:r,initialFiles:l,onFileUpload:a,onFilesUpload:i,onFileRemove:p}),U=dI(()=>F||N&&Array.from(R.values()).some(J=>J.status===LN.UPLOADING),[R,N,F]),[O,_]=m1(!1),[K,H]=m1([]),[G,q]=m1(!1),$=mI(new Set(R.keys()));AN(()=>{let J=Array.from(R.keys()),Re=J.filter(Oe=>!$.current.has(Oe));$.current=new Set(J),H(Oe=>{let Se=Oe.filter(Ye=>R.has(Ye));return Re.length?G?Re:[...Se,...Re.filter(Ye=>!Se.includes(Ye))]:Se.length===Oe.length?Oe:Se}),Re.length&&q(!1)},[R,G]);let Y=dI(()=>K.map(J=>R.get(J)).filter(J=>!!J),[K,R]),ae=()=>{q(!0),H([]),C?.onDismiss?.()},be=!T&&!w&&!U,pe=J=>{let Re=Array.from(J.target.files??[]);B(Re),M?.(J)},Me=J=>{V(J)},X=()=>{be&&z.current?.click()},Z=J=>{if(!J.length)return;let Re=E?J:J.slice(0,1);if(!z.current||typeof DataTransfer>"u"){B(Re);return}let Oe=new DataTransfer;Re.forEach(Se=>Oe.items.add(Se));try{z.current.files=Oe.files}catch{B(Re);return}B(Re),M?.({target:z.current,currentTarget:z.current})},W=J=>{J.preventDefault(),J.stopPropagation(),_(!1),be&&Z(Array.from(J.dataTransfer.files??[]))},re=J=>{J.preventDefault(),J.stopPropagation(),be&&_(!0)},se=J=>{J.preventDefault(),J.stopPropagation(),be&&_(!0)},ye=J=>{J.preventDefault(),J.stopPropagation(),be&&_(!1)},ue=J=>{be&&(J.key!=="Enter"&&J.key!==" "||(J.preventDefault(),X()))},xe=EN(X2,y);return Wi("div",{className:Qe("cleen",P),style:x,ref:f,children:[Ze("input",{id:k||D,name:D,ref:J=>{if(z.current=J,typeof A=="function"){A(J);return}A&&(A.current=J)},type:"file",multiple:E,disabled:T||U,readOnly:w,className:Qe("cleen-hidden",I?.input),style:S?.input,onChange:pe,...L}),m&&Ze(de,{htmlFor:k||D,required:t,tooltip:b,className:Qe("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...S?.label,children:m}),Wi("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||w||U,onClick:X,onKeyDown:ue,onDrop:W,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,O&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:Qe({"cleen-blur-sm":U},I?.card?.classNames?.childrenContainer)},style:S?.card?.style,styles:{...S?.card?.styles,container:{...S?.card?.styles?.container,...O?S?.cardDragActive:void 0}},children:Wi("div",{className:Qe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:S?.dropArea,"aria-disabled":T||w||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:S?.iconContainer,children:n||Ze(sn,{className:"cleen-size-5"})}),Wi("p",{className:Qe("cleen-font-medium cleen-text-sm",I?.textContainer),style:S?.textContainer,children:[Ze("span",{className:Qe(T?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:S?.primaryText,children:xe?.primaryText})," ",Ze("span",{className:Qe("cleen-text-foreground",I?.secondaryText),style:S?.secondaryText,children:xe?.secondaryText})]}),Ze("p",{className:Qe("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:S?.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&&R.size>0&&Ze("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(R.values()).map(J=>Ze(K2,{fileEntry:J,onRemove:Me,onFileClick:s,labels:xe,classNames:I?.fileCard,styles:S?.fileCard},J.id))}),v&&!G&&Y.length>0&&ON(Ze("div",{className:"cleen",children:Ze(d1,{...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,...S?.progressTracker})}),document.body),(d?.errorMessage||d?.infoMessage||d?.subtitle)&&Ze(ie,{...d})]})});import{cn as je,useControlled as CI}from"@cleen/ui-core";import{forwardRef as XN,Fragment as YN,useMemo as xI,useRef as QN,useState as ZN}from"react";import{cn as u1,useDisclosure as VN,useOutsideClick as zN,usePositionClose as HN,ZIndex as UN}from"@cleen/ui-core";import{forwardRef as GN,useRef as uI}from"react";import{createPortal as $N}from"react-dom";import{jsx as f1,jsxs as WN}from"react/jsx-runtime";var no=GN(function({isOpen:t,onOpenChange:n,content:o,position:l="bottom-left",offset:r,zIndex:a=UN.POPOVER,portalContainer:i,children:p,className:s,classNames:d,style:f,styles:m,...b},y){let{isOpen:u,toggle:v,close:C}=VN({value:t,setValue:n}),P=uI(null),I=uI(null),{positionStyles:x,isMounted:S}=HN({triggerRef:P,targetRef:I,position:l,isOpen:u,offset:r,container:i});zN({refs:[P,I],handler:C,enabled:u});let E=T=>{T.stopPropagation(),v()};return WN("div",{className:u1("cleen",s),style:f,ref:y,...b,children:[f1("div",{ref:P,onClick:E,className:u1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:p}),u&&$N(f1("div",{className:"cleen",onClick:T=>T.stopPropagation(),onPointerDown:T=>T.stopPropagation(),onMouseDown:T=>T.stopPropagation(),onTouchStart:T=>T.stopPropagation(),children:f1("div",{ref:I,className:u1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!S},d?.popover),style:{zIndex:a,top:`${x.top}px`,left:`${x.left}px`,...m?.popover},onClick:T=>T.stopPropagation(),children:o})}),i??document.body)]})});import{cn as h1}from"@cleen/ui-core";import{Fragment as qN,useEffect as fI,useMemo as hI,useRef as KN,useState as g1}from"react";import{jsx as Et,jsxs as Br}from"react/jsx-runtime";var gI=({sections:e,labels:t,onAddRow:n,onSearchChange:o,isLoading:l=!1,className:r,style:a,popoverClassName:i,popoverStyle:p})=>{let[s,d]=g1(!1),[f,m]=g1(""),[b,y]=g1(0),u=KN(null),v=hI(()=>{let S=o?"":f.trim().toLowerCase();return e.filter(E=>!E.readOnly&&E.options?.length).map(E=>{let T=new Set(E.rows.map(N=>N.id));return{section:E,options:(E.options??[]).filter(N=>!T.has(N.id)&&(!S||N.label.toLowerCase().includes(S)||N.meta?.toLowerCase().includes(S)))}}).filter(E=>E.options.length)},[e,f,o]),C=hI(()=>v.flatMap(S=>S.options.map(E=>({sectionId:S.section.id,option:E}))),[v]);fI(()=>{y(0),o?.(f.trim())},[f]),fI(()=>{if(!s){m("");return}requestAnimationFrame(()=>u.current?.focus())},[s]);let P=S=>{S&&(n(S),d(!1))},I=S=>{S.key==="ArrowDown"?(S.preventDefault(),y(E=>Math.min(E+1,C.length-1))):S.key==="ArrowUp"?(S.preventDefault(),y(E=>Math.max(E-1,0))):S.key==="Enter"?(S.preventDefault(),P(C[b])):S.key==="Escape"&&d(!1)},x=-1;return Et(no,{isOpen:s,onOpenChange:d,position:"top-left",classNames:{popover:h1("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:S=>m(S.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(S=>Br(qN,{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:[S.section.icon,S.section.label]}),S.options.map(E=>{x+=1;let T=x;return Br("button",{type:"button",role:"option","aria-selected":T===b,onMouseEnter:()=>y(T),onClick:()=>P({sectionId:S.section.id,option:E}),className:h1("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:E.label}),E.meta&&Et("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:E.meta})]},E.id)})]},S.section.id))]})]}),children:Br(te,{variant:"secondary",className:h1("cleen-gap-1.5",r),style:a,children:[Et(an,{size:14}),t.add]})})};import{cn as qi}from"@cleen/ui-core";import{useEffect as yI,useRef as Sn,useState as C1}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),b1=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},y1=(e,t,n)=>{let o=b1(e),l=b1(t);if(o===null||l===null)return null;let r=l-o+(n?1440:0);return r>0?r:null},bI=e=>{let t=Math.floor(e/60),n=e%60;return[t?`${t} h`:"",n?`${n} min`:""].filter(Boolean).join(" ")},v1=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},Fl=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},I1=(e,t,n)=>{let o={rows:{},sections:{},sectionColumns:{},columns:{},grand:0};return e.forEach(l=>{o.sections[l.id]=0,o.sectionColumns[l.id]={},l.rows.forEach(r=>{o.rows[r.id]=0,t.forEach(a=>{let i=n[Pn(r.id,a.id)]?.value??0;o.rows[r.id]+=i,o.sections[l.id]+=i,o.sectionColumns[l.id][a.id]=(o.sectionColumns[l.id][a.id]??0)+i,o.columns[a.id]=(o.columns[a.id]??0)+i,o.grand+=i})})}),o};import{jsx as we,jsxs as ro}from"react/jsx-runtime";var vI=({cellKey:e,column:t,rowLabel:n,cell:o,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:P,popoverClassName:I,popoverStyle:x})=>{let S=typeof o?.value=="number"?Je(o.value,a):"",[E,T]=C1(S),[N,F]=C1(null),[w,M]=C1({}),k=Sn(null),D=Sn(!1),L=Sn(!1),A=Sn(m);A.current=m;let z=Sn(null),R=Sn(null),B=Sn(null);yI(()=>{T(S),F(null),R.current=null},[S]),yI(()=>{m&&(M(B.current??o??{}),B.current=null,D.current&&(D.current=!1,requestAnimationFrame(()=>k.current?.focus())))},[m]);let V=Je(l,a),U=Je(r,a),O=!!(o?.start&&o?.end),_=i==="compact",K=W=>{if(W===null)return null;if(Number.isNaN(W))return b.invalidError;let re=Rr(W,a);return re<l||re>r?b.rangeError(V,U):null},H=()=>{if(E===S||E===R.current)return F(null),o??{};let W=v1(E),re=K(W);if(F(re),re)return!1;let se=Fl({note:o?.note,value:W===null?void 0:Rr(W,a)});return R.current=E,A.current&&M(ye=>({...ye,value:se?.value,start:void 0,end:void 0,endsNextDay:void 0})),u(se),se??{}},G=()=>{if(L.current){L.current=!1;return}A.current&&E===z.current||H()},q=(W=!1)=>{if(d)return;let re=H();z.current=E,A.current=!0,B.current=re===!1?o??{}:re,D.current=W,y(!0)},$=W=>{if(W.key==="Escape"){T(S),F(null),L.current=!0,W.currentTarget.blur(),L.current=!1;return}if(W.key==="n"||W.key==="N"){W.preventDefault(),q(!0);return}if(W.key==="."&&W.ctrlKey){W.preventDefault(),q();return}let se={ArrowUp:"up",ArrowDown:"down",Enter:"down"}[W.key];se&&v&&(W.preventDefault(),H()!==!1&&v(se))},Y=y1(w.start,w.end,w.endsNextDay),ae=Y===null?null:Rr(Y/60,a),be=w.start&&w.end&&Y===null?b.timeError:null,pe=ae!==null?K(ae):null,Me=be??pe,X=W=>{if(W&&!Me){let re=ae??o?.value,se=Fl({...w,value:re,note:w.note?.slice(0,s)}),ye=JSON.stringify(Fl(o??{}));JSON.stringify(se)!==ye&&u(se),ae!=null&&(T(se?.value===void 0?"":Je(se.value,a)),F(null),R.current=null)}y(!1)},Z=ro("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-p-3",onKeyDown:W=>{W.key==="Escape"&&(W.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:n})]}),ro("div",{className:"cleen-grid cleen-grid-cols-2 cleen-gap-2",children:[we(Ie,{type:"time",label:b.start,value:w.start??"",onChange:W=>M(re=>({...re,start:W.target.value}))}),we(Ie,{type:"time",label:b.end,value:w.end??"",onChange:W=>M(re=>({...re,end:W.target.value}))})]}),ro("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-gap-2",children:[we(bn,{label:b.endsNextDay,checked:!!w.endsNextDay,onChange:W=>M(re=>({...re,endsNextDay:W.target.checked}))}),(w.start||w.end)&&we(te,{variant:"borderless",className:"cleen-text-xs cleen-px-2 cleen-py-1",onClick:()=>M(W=>({...W,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:[bI(Y)," ="," ",we("span",{className:"cleen-font-medium cleen-text-foreground",children:b.formatHours(Number(Je(ae,a)))})]}),we(Il,{ref:k,label:b.note,placeholder:b.notePlaceholder,value:w.note??"",maxLength:s,onChange:W=>M(re=>({...re,note:W})),minHeight:64}),we("div",{className:"cleen-flex cleen-justify-end",children:we(te,{variant:"primary",disabled:!!Me,onClick:()=>X(!0),children:b.done})})]});return we("td",{className:qi("cleen-group cleen-relative cleen-border-b cleen-border-border cleen-align-top cleen-transition-colors",_?"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:P,"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:[O&&we(ga,{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:d,value:E,placeholder:d?"":"\u2013",onChange:W=>{T(W.target.value),N&&F(null)},onBlur:G,onKeyDown:$,"data-matrix-input":e,className:qi("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",_?"cleen-h-7 cleen-px-1.5":"cleen-h-8 cleen-px-2",O&&"cleen-pl-5",!d&&"cleen-pr-6",N?"cleen-border-error":"cleen-border-transparent hover:cleen-border-border focus:cleen-border-primary",!E&&"placeholder:cleen-text-neutral-300")}),!d&&we(no,{className:"cleen-absolute cleen-right-0.5",isOpen:m,onOpenChange:W=>W?q():X(!0),position:"bottom-right",content:m?Z:null,classNames:{popover:qi("cleen-w-72",I)},styles:{popover:x},children:we("button",{type:"button","aria-label":b.details,title:b.details,tabIndex:-1,className:qi("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(Ca,{size:14})})})]}),N&&we("span",{className:"cleen-text-[10px] cleen-leading-tight cleen-text-error",children:N}),o?.note&&p&&!_?ro("button",{type:"button",onClick:()=>q(!0),title:o.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:o.note})]}):o?.note?we("button",{type:"button",onClick:()=>q(!0),title:o.note,"aria-label":o.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&&!_&&typeof o?.value=="number"&&ro("button",{type:"button",tabIndex:-1,onClick:()=>q(!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 II={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 x1=e=>typeof e=="string"||typeof e=="number"?String(e):"",PI={},SI=[],JN=XN(function({columns:t,sections:n,values:o,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:P=!1,flash:I,showFooter:x=!0,showHint:S=!0,collapsedSections:E,defaultCollapsedSections:T,onCollapsedSectionsChange:N,labels:F,className:w,classNames:M,style:k,styles:D,...L},A){let z={...II,...F},R=QN(null),[B,V]=ZN(null),{value:U=PI,handleChange:O}=CI({value:o,defaultValue:l??PI,onChange:r}),{value:_=SI,handleChange:K}=CI({value:E,defaultValue:T??SI,onChange:N}),H=xI(()=>I1(n,t,U),[n,t,U]),G=X=>X?Je(X,b):"",q=xI(()=>n.filter(X=>!_.includes(X.id)).flatMap(X=>X.rows.map(Z=>Z.id)),[n,_]),$=(X,Z,W,re)=>{let se=Pn(Z,W),ye=U[se]??null,ue={...U};re?ue[se]=re:delete ue[se],O(ue),a?.({key:se,sectionId:X,rowId:Z,columnId:W,value:re,previous:ye})},Y=(X,Z,W)=>{let re=q.indexOf(X),se=t.findIndex(J=>J.id===Z),ye=q[re+(W==="down"?1:W==="up"?-1:0)],ue=t[se+(W==="right"?1:W==="left"?-1:0)];if(!ye||!ue)return;let xe=R.current?.querySelector(`[data-matrix-input="${CSS.escape(Pn(ye,ue.id))}"]`);xe?.focus(),xe?.select()},ae=X=>K(_.includes(X)?_.filter(Z=>Z!==X):[..._,X]),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(X=>!X.readOnly&&(s||X.options?.length));return ut("div",{ref:A,className:je("cleen cleen-relative cleen-flex cleen-flex-col cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background",w,M?.container),style:{...k,...D?.container},...L,children:[he("div",{className:"cleen-overflow-x-auto",children:ut("table",{ref:R,className:je("cleen-w-full cleen-border-separate cleen-border-spacing-0 cleen-text-sm",M?.table),style:D?.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",M?.headerCell),style:D?.headerCell,children:z.corner}),t.map(X=>ut("th",{scope:"col",title:X.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",X.tone==="accent"&&"cleen-bg-primary/10 cleen-text-primary",X.tone==="muted"&&"cleen-bg-surface cleen-text-muted-foreground",(!X.tone||X.tone==="default")&&"cleen-text-foreground",M?.headerCell),style:D?.headerCell,children:[he("div",{className:"cleen-text-xs",children:X.label}),X.sublabel&&he("div",{className:"cleen-text-[11px] cleen-font-normal cleen-text-muted-foreground",children:X.sublabel})]},X.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",M?.headerCell),style:D?.headerCell,children:z.total})]})}),he("tbody",{children:n.map(X=>{let Z=_.includes(X.id);return ut(YN,{children:[ut("tr",{className:je("cleen-bg-muted",M?.sectionRow),style:D?.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(X.id),"aria-expanded":!Z,"aria-label":`${Z?z.expand:z.collapse} ${x1(X.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",Z&&"-cleen-rotate-90")}),X.icon,he("span",{children:X.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:X.rows.length})]})}),t.map(W=>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:G(H.sectionColumns[X.id]?.[W.id]??0)},W.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(H.sections[X.id]??0,b)})]}),!Z&&!X.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:X.emptyText??z.emptySection})}),!Z&&X.rows.map(W=>{let re=C||!!(X.readOnly||W.readOnly),se=H.rows[W.id]??0,ye=!re&&!!p&&W.removable!==!1&&!t.some(ue=>U[Pn(W.id,ue.id)]);return ut("tr",{className:je("cleen-group/row",M?.row),style:D?.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",M?.rowLabel),style:D?.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:W.label}),W.meta&&!be&&he("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:W.meta})]}),ye&&he("button",{type:"button","aria-label":`${z.removeRow} ${x1(W.label)}`,title:z.removeRow,onClick:()=>p?.({sectionId:X.id,rowId:W.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(W.id,ue.id);return he(vI,{cellKey:xe,column:ue,rowLabel:x1(W.label),cell:U[xe],min:f,max:m,precision:b,density:y,notePreviews:u,noteMaxLength:v,readOnly:re,flash:I?.[xe],isDetailOpen:B===xe,labels:z,onDetailOpenChange:J=>V(J?xe:null),onCommit:J=>$(X.id,W.id,ue.id,J),onNavigate:J=>Y(W.id,ue.id,J),className:M?.cell,style:D?.cell,popoverClassName:M?.popover,popoverStyle:D?.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",M?.totalCell),style:D?.totalCell,children:Je(se,b)})]},W.id)})]},X.id)})}),x&&he("tfoot",{children:ut("tr",{className:je("cleen-bg-muted",M?.footer),style:D?.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:z.footer}),t.map(X=>he("td",{className:je("cleen-px-2 cleen-py-2 cleen-text-right cleen-font-semibold cleen-tabular-nums",X.tone==="accent"?"cleen-text-primary":"cleen-text-foreground"),children:G(H.columns[X.id]??0)},X.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(H.grand,b)})]})})]})}),(Me||S&&!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(gI,{sections:n,labels:z,onAddRow:i,onSearchChange:s,isLoading:d,className:M?.addButton,style:D?.addButton,popoverClassName:M?.popover,popoverStyle:D?.popover}):he("span",{}),S&&!C&&he("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:z.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.`})]}),P&&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 jN=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)}},wI={uploaded:e=>`Uploaded: ${jN(e)}`};var P1={"image/":"image","video/":"video","audio/":"audio"},S1={"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"},MI={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"},kI=["http:","https:","blob:"];var eB=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in S1)return S1[t];let n=Object.keys(P1).find(o=>t.startsWith(o));return n?P1[n]:void 0},w1=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},tB=e=>{let t=w1(e);return t?MI[t]:void 0},TI=e=>eB(e.type)??tB(e.name)??"generic",NI=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return kI.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as ao,formatFileSize as oB}from"@cleen/ui-core";import{forwardRef as nB,useMemo as BI,useState as rB}from"react";import{Fragment as lB,jsx as Lt,jsxs as Ki}from"react/jsx-runtime";var aB=nB(function({file:t,preview:n=!1,onRemove:o,description:l,labels:r,className:a,classNames:i,style:p,styles:s,...d},f){let[m,b]=rB(),y=BI(()=>({...wI,...r}),[r]),u=TI(t),v=A0(w1(t.name)),C=NI(t.url)?t.url:void 0,P=t.previewUrl||t.url,I=n&&(u==="image"||u==="video")&&!!P&&m!==P,x=BI(()=>{if(l!=null)return l;let N=[];if(t.size!=null&&N.push(oB(t.size)),t.uploadedAt!=null){let F=y?.uploaded(t.uploadedAt);F&&N.push(F)}return N.length>0?N.join(" \u2022 "):null},[l,t.uploadedAt,t.size,y]),S=N=>{N.stopPropagation(),o?.(t)},E=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=Ki(lB,{children:[Ki("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:P,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>b(P)}),I&&u==="video"&&!t.previewUrl&&Lt("video",{src:P,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>b(P)}),!I&&Lt(v,{"aria-hidden":!0,className:ao("cleen-size-5",i?.icon),style:s?.icon})]}),Ki("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:Ki("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:E,style:s?.main,children:T}):Lt("div",{className:E,style:s?.main,children:T}),o&&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:S,children:Lt(He,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Xi={filterName:"",exposed:!1};import{createContext as cB}from"react";var ft=cB({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as iB}from"@cleen/ui-core";import{useContext as sB,useState as pB}from"react";import{Fragment as dB,jsx as Al,jsxs as M1}from"react/jsx-runtime";var RI={min:3,max:50},EI=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:n,setIsSaveFiltersStep:o,handleCloseSaveFilter:l,setError:r,onSave:a,classNames:i,styles:p,labels:s,withSavedFilters:d=!0,onCancel:f,onApply:m}=sB(ft),[b,y]=pB(!1),u=async()=>{try{if(t.filterName.length<RI.min){r?.("filterName",s?.saveStep?.validation?.tooShort);return}if(t.filterName.length>RI.max){r?.("filterName",s?.saveStep?.validation?.tooLong);return}y(!0),await a?.(t),o(!1)}catch(v){console.error("Error saving filters:",v)}finally{y(!1)}};return e?M1("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[Al(te,{onClick:()=>o(!1),variant:"secondary",...i?.saveFilter?.backBtn,...p?.saveFilter?.backBtn,children:s?.saveStep?.back}),Al(te,{onClick:u,isLoading:b,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...p?.saveFilter?.saveBtn,children:s?.saveStep?.save})]}):M1(dB,{children:[d&&Al(te,{onClick:()=>{n(Xi),o(!0)},variant:"borderless-blue",...i?.saveBtn,...p?.saveBtn,children:s?.save}),M1("div",{className:iB("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!d}),children:[Al(te,{onClick:()=>{f?.(),l()},variant:"secondary",...i?.cancelBtn,...p?.cancelBtn,children:s?.cancel}),Al(te,{onClick:()=>{m?.(),l()},...i?.applyBtn,...p?.applyBtn,children:s?.apply})]})]})};import{cn as wn}from"@cleen/ui-core";import{Link as mB}from"react-router-dom";import{Fragment as FI,jsx as St,jsxs as Ol}from"react/jsx-runtime";var LI=({item:e,classNames:t,styles:n})=>({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:n?.container,children:Ol(FI,{children:[e?.icon,St("span",{className:wn("cleen-flex-1",t?.label),style:n?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),DI=(e,t)=>e.map(n=>n?.type==="group"?{...n,items:DI(n.items,t)}:n?.type==="button"&&!n.submenu?.length?{...n,onClick:()=>t?.(n)}:n),k1=({item:e,isLast:t,handleClick:n,onEnterSubmenu:o,renderActionsMenu:l,classNames:r,styles:a})=>{switch(e?.type){case"group":return Ol(FI,{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(k1,{item:i,handleClick:n,onEnterSubmenu:o,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?o?.(e.submenu,e?.label):n?.(e)};if(!p)return Ol("button",{type:"button",onClick:s,...LI({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 Ol("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:[Ol("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(DI(e.actions,n),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(mB,{to:"",...LI({item:e,classNames:r,styles:a})});default:return null}};import{cn as uB}from"@cleen/ui-core";import{useEffect as AI,useState as OI}from"react";import{Fragment as fB,jsx as _I,jsxs as VI}from"react/jsx-runtime";var zI=({items:e,keepOpenOnClick:t,hideMenu:n,renderActionsMenu:o,classNames:l,styles:r})=>{let[a,i]=OI([]),[p,s]=OI(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)))};AI(()=>{s(e),i([])},[e]),AI(()=>{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 n()};return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[n,a]);let m=b=>{b?.onClick?.(),t||n()};return VI(fB,{children:[a?.length>0&&VI("button",{onClick:f,className:uB("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:[_I(Qt,{className:"cleen-size-4 cleen-text-neutral-300"}),a?.[a?.length-1]?.title]}),p?.map((b,y,u)=>_I(k1,{item:b,isLast:y===u?.length-1,handleClick:m,onEnterSubmenu:d,renderActionsMenu:o,classNames:l?.item,styles:r?.item},b?.id||y))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as hB,cn as T1,useDisclosure as gB,useOutsideClick as bB,usePositionClose as yB,ZIndex as vB}from"@cleen/ui-core";import{forwardRef as IB,useRef as HI}from"react";import{createPortal as CB}from"react-dom";import{jsx as _l,jsxs as PB}from"react/jsx-runtime";var Mn=IB(function({items:t=[],position:n="bottom-left",keepOpenOnClick:o=!0,triggerRef:l,menuRef:r,ignoreClickOutside:a=!1,zIndex:i=vB.MENU,children:p,className:s,classNames:d,style:f,styles:m,...b},y){let{isOpen:u,toggle:v,close:C}=gB(),P=HI(null),I=HI(null),x=l??P,S=r??I,{positionStyles:E,isMounted:T}=yB({triggerRef:x,targetRef:S,position:n,isOpen:u});bB({refs:[x,S],handler:C,enabled:u});let N=()=>{v()};return PB("div",{className:T1("cleen",s),style:f,ref:y,...b,children:[_l("div",{ref:x,onClick:N,className:T1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:p}),u&&CB(_l("div",{className:"cleen",...a&&{[hB]:"true"},children:_l("div",{ref:S,className:T1("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:`${E.top}px`,left:`${E.left}px`,...m?.menu},children:_l(zI,{items:t,keepOpenOnClick:o,hideMenu:C,renderActionsMenu:(F,w)=>xB(F,w,i),classNames:d,styles:m})})}),document.body)]})});function xB(e,t,n){return _l(Mn,{items:e,position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,zIndex:n,classNames:{menu:"cleen-w-max cleen-min-w-40 cleen-max-w-xs"},children:t})}import{cn as Yi,ColorHelpers as Qi}from"@cleen/ui-core";import{useMemo as SB}from"react";var N1=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow","foreground-transparent"],B1={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"},UI={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"},GI={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"},$I={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"},WI={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var qI=(e,t)=>!e&&!t?"primary":t?N1[t%N1.length]:e;import{jsx as R1,jsxs as wB}from"react/jsx-runtime";var Le=({className:e,classNames:t,style:n,styles:o,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:P,dotVariantStyle:I,variantStyle:x}=SB(()=>{let S={};if(r in B1){let E=qI(r,y);S.variantClass=f?UI[E]:B1[E],S.dotVariantClass=f?$I[E]:GI[E]}else S.variantStyle={borderColor:f?r:Qi.trasparentize(r,.8),backgroundColor:f?r:Qi.trasparentize(r,.95),color:f?Qi.adjustColorForContrast(r,.5):r},S.dotVariantStyle={backgroundColor:f?Qi.adjustColorForContrast(r,.5):r};return S},[r,y,f]);return R1("div",{className:Yi("cleen",e),style:n,children:wB("span",{className:Yi("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,WI[a],{"hover:cleen-opacity-80 cleen-cursor-pointer":b||s},t?.container),style:{...x,...o?.container},onClick:b,...v,children:[i&&R1("span",{className:Yi("cleen-size-2 cleen-rounded-[50%]",P,t?.dot),style:{...I,...o?.dot}}),p,l??u,s&&R1(He,{className:Yi("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 kB}from"@cleen/ui-core";import{useContext as TB,useState as KI}from"react";import{jsx as Dt,jsxs as NB}from"react/jsx-runtime";var XI=({filter:e,activeTabId:t})=>{let[n,o]=KI(!1),[l,r]=KI(!1),{labels:a,onFilterDelete:i,onFilterPin:p,onFilterSelect:s,onFilterUnpin:d,setIsFiltersDropdownOpen:f}=TB(ft),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 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:NB("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(Ka,{name:"pin",className:kB("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:n?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 BB,useId as RB,useMemo as QI,useRef as EB,useState as L1}from"react";import{cn as E1}from"@cleen/ui-core";var Vl={horizontal:{container:"cleen-space-y-4",list:"cleen-flex cleen-flex-wrap"},vertical:{container:"cleen-flex cleen-gap-4",list:"cleen-flex cleen-flex-col",content:"cleen-flex-1"}},YI=e=>{let t=e==="vertical";return{underlined:{list:E1("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:E1("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:E1("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 zl,jsxs as ZI}from"react/jsx-runtime";var Zi=(e,t)=>e?.id??String(t),Hl=BB(function({tabs:t,variant:n="underlined",direction:o="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]=L1(0),I=l!==void 0?l:v,[x,S]=L1(p??[]),E=i??x,T=QI(()=>{if(!a){let O=t?.[I];return O?[O]:[]}return t?.filter((O,_)=>E.includes(Zi(O,_)))??[]},[t,a,I,E]),N=(O,_)=>a?E.includes(Zi(O,_)):I===_,F=(O,_)=>{if(a){let K=Zi(_,O),H=E.includes(K),G=t?.map((q,$)=>Zi(q,$)).filter(q=>q===K?!H:E.includes(q))??[];S(G),s?.(G)}else C(O);r?.(O,_)},w=RB(),M=EB([]),[k,D]=L1(),L=O=>`${w}-tab-${O}`,A=O=>`${w}-panel-${O}`,z=t?.flatMap((O,_)=>O?.isDisabled?[]:[_])??[],R=k!==void 0&&z.includes(k)?k:z.find(O=>N(t[O],O))??z[0],B=O=>{let _=M.current.findIndex(Y=>Y===O.target),K=z.indexOf(_);if(K===-1)return;let[H,G]=o==="vertical"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],q=z.length-1,$={[H]:K===0?q:K-1,[G]:K===q?0:K+1,Home:0,End:q}[O.key];$!==void 0&&(O.preventDefault(),M.current[z[$]]?.focus())},V=new Set(t?.flatMap((O,_)=>O?.content&&N(O,_)?[_]:[])??[]),U=QI(()=>YI(o),[o]);return zl("div",{className:Fo("cleen",d),style:m,ref:u,...y,children:ZI("div",{className:Fo(Vl[o].container,f?.container),style:b?.container,children:[zl("div",{role:"tablist","aria-label":"Tabs","aria-orientation":o,"aria-multiselectable":a||void 0,className:Fo(U[n].list,Vl[o].list,f?.list),style:b?.list,onKeyDown:B,onBlur:O=>{O.currentTarget.contains(O.relatedTarget)||D(void 0)},children:t?.map((O,_)=>{let K=N(O,_),H=O?.isDisabled;return ZI("button",{type:"button",role:"tab",ref:G=>{M.current[_]=G},id:L(_),"aria-selected":K,"aria-controls":V.has(_)?A(_):void 0,"aria-disabled":H||void 0,tabIndex:_===R?0:-1,disabled:H,onFocus:()=>D(_),onClick:()=>F(_,O),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",!H&&"cleen-cursor-pointer",U[n].tab,Vl[o].tab,f?.tab,H?Fo(U[n].tabDisabled,f?.tabDisabled):K?Fo(U[n].tabActive,f?.tabActive):Fo(U[n].tabInactive,f?.tabInactive)),style:{...b?.tab,...H?b?.tabDisabled:K?b?.tabActive:b?.tabInactive},children:[O?.label,!!O?.badge?.label&&zl(Le,{variant:"rounded",color:K?"blue":"gray",...f?.count,...b?.count,...O.badge})]},O?.id||_)})}),T.some(O=>!!O?.content)&&zl("div",{className:Fo("h-full",a&&"cleen-flex cleen-flex-col cleen-gap-4",Vl[o].content,f?.content),style:b?.content,...!a&&{role:"tabpanel",id:A(I),"aria-labelledby":L(I)},children:a?T.map(O=>{if(!O?.content)return null;let _=t.indexOf(O);return zl("div",{role:"tabpanel",id:A(_),"aria-labelledby":L(_),children:O.content},O.id||_)}):T[0]?.content})]})})});import{useContext as LB,useState as DB}from"react";import{jsx as kn,jsxs as AB}from"react/jsx-runtime";var FB=e=>{let t={isFeatured:null,isMine:null,isPinned:null,isShared:null};switch(e){case"featured":t.isFeatured=!0;break;case"mine":t.isMine=!0;break;case"pinned":t.isPinned=!0;break;case"shared":t.isShared=!0;break;case"all":default:break}return t},JI=({selectedSavedFilter:e,filters:t,isFiltersFetching:n,onFilterCategoryChange:o})=>{let[l,r]=DB("all"),{labels:a,classNames:i,styles:p,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:d}=LB(ft);return kn(Bl,{isOpen:s,onOpenChange:d,leftIcon:kn(Ra,{className:"cleen-size-5"}),label:e?.title??a?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...p?.dropdown,children:AB("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[kn(Hl,{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),o?.(FB(m?.id))},classNames:{list:"cleen-mb-2"}}),kn("div",{className:"flex flex-col",children:n?kn(ce,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(f=>kn(XI,{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 OB,useEffect as _B,useId as VB,useState as zB}from"react";import{jsx as Tn,jsxs as D1}from"react/jsx-runtime";var F1=OB(function({id:t,name:n,required:o,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},P){let I=typeof l=="boolean",[x,S]=zB(r);_B(()=>{I||S(r)},[r,I]);let E=I?l:x,T=VB(),N=i?`${T}-title`:void 0,F=p?`${T}-label`:void 0,w=[N,F].filter(Boolean).join(" ")||void 0,M=()=>{f||(I||S(!x),a?.(!E))};return Tn("div",{className:lo("cleen",b),style:y,children:D1("div",{className:lo("cleen-flex cleen-flex-col",m?.container),style:u?.container,children:[i&&Tn(de,{id:N,htmlFor:t||n,required:o,tooltip:s,className:lo("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...u?.title,children:i}),D1("div",{className:lo("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:u?.switchContainer,children:[Tn("button",{id:t||n,type:"button",role:"switch","aria-checked":E,"aria-labelledby":w,disabled:f,onClick:M,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",E?"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:P,...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",E?"cleen-translate-x-5":"cleen-translate-x-0",m?.check),style:u?.check})}),(p||d)&&D1("div",{className:lo("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:u?.labelContainer,children:[p&&Tn("span",{id:F,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 HB}from"react";import{Fragment as UB,jsx as jI,jsxs as GB}from"react/jsx-runtime";var eC=()=>{let{classNames:e,styles:t,labels:n,saveStepValues:o,setSaveStepValues:l,errors:r,clearError:a}=HB(ft);return GB(UB,{children:[jI(Ie,{value:o.filterName,onChange:i=>{l(p=>({...p,filterName:i.target.value})),r?.filterName&&a?.("filterName")},label:n?.saveStep?.filterNameInput?.label,placeholder:n?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:r?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),jI(F1,{checked:o.exposed,onChange:i=>l(p=>({...p,exposed:i})),title:n?.saveStep?.exposureSwitch?.title,label:n?.saveStep?.exposureSwitch?.label,sublabel:n?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var tC={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 A1}from"react";import{jsx as WB}from"react/jsx-runtime";var oC=({children:e,value:t})=>{let[n,o]=A1(!1),[l,r]=A1(Xi),{errors:a,setError:i,clearError:p}=$B({}),[s,d]=A1(!1),f=()=>{o(!1),t?.onClose?.()};return WB(ft.Provider,{value:{isSaveFiltersStep:n,setIsSaveFiltersStep:o,saveStepValues:l,setSaveStepValues:r,handleCloseSaveFilter:f,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:d,errors:a,setError:i,clearError:p,...t},children:e})};import{applyDefaults as qB,cn as nC}from"@cleen/ui-core";import{forwardRef as rC,useContext as KB}from"react";import{Fragment as QB,jsx as Ao,jsxs as ZB}from"react/jsx-runtime";var XB=rC(function({selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,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:P,onFilterUnpin:I,...x},S){return Ao(oC,{value:{selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,classNames:r,styles:a,labels:qB(tC,i),withSavedFilters:p,onClear:s,onSave:d,onCancel:f,onApply:m,onClose:b,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:v,onFilterPin:C,onFilterSelect:P,onFilterUnpin:I},children:Ao(YB,{...x,ref:S,children:l})})}),YB=rC(function({children:t,...n},o){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}=KB(ft);return Ao(o1,{footer:Ao(EI,{}),headerCloseBtn:Ao(te,{onClick:()=>{b?.(),u?.(void 0)},leftIcon:Ao(dt,{}),variant:"secondary",...s?.clearBtn,...d?.clearBtn,children:f?.clear}),classNames:{...s,content:nC("cleen-space-y-4",s?.content),footer:nC("cleen-justify-between",s?.footer)},onClose:l,ref:o,...n,title:r?f?.saveStep?.title:n.title,subtitle:r?f?.saveStep?.subtitle:n.subtitle,children:r?Ao(eC,{}):ZB(QB,{children:[m&&Ao(JI,{filters:i,selectedSavedFilter:a,onFilterCategoryChange:y,isFiltersFetching:p}),t]})})});import{cn as Er}from"@cleen/ui-core";import{forwardRef as JB}from"react";import{jsx as Ji,jsxs as aC}from"react/jsx-runtime";var lC=JB(({title:e,titleTooltip:t,subtitle:n,required:o,labelProps:l,children:r,className:a,classNames:i,style:p,styles:s,...d},f)=>Ji("div",{ref:f,className:Er("cleen",a),style:{...p,width:"100%"},...d,children:aC("div",{className:Er("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:s?.container,children:[aC("div",{className:Er("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:s?.titleColumn,children:[Ji(de,{...l,required:o,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:Er("cleen-truncate",i?.title?.classNames?.label)},...s?.title,children:e}),n&&Ji("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:n})]}),Ji("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})]})}));lC.displayName="FormGroup";import{cn as Ve,useDebounce as jB,useOutsideClick as eR,usePositionClose as tR,ZIndex as oR}from"@cleen/ui-core";import{useEffect as ji,useMemo as O1,useRef as _1,useState as wt}from"react";import{createPortal as nR}from"react-dom";import{Fragment as lR,jsx as oe,jsxs as et}from"react/jsx-runtime";function rR(e){return e!==null&&typeof e=="object"}function qe(e,t){if(rR(e)&&t in e)return e[t]}function cC(e,t){let n=qe(e,t);return Array.isArray(n)?n:[]}function iC(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 aR=({position:e="bottom-right",labels:t,groups:n=[],selectedItemID:o=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:P,itemSubtitleKey:I,newValueMinLength:x=2,isLoading:S=!1,isGroupSaving:E=!1,isItemSaving:T=!1,selectedColor:N="rgb(var(--cleen-primary-100))",hasFiltering:F=!0,zIndex:w=oR.POPOVER,className:M,classNames:k,style:D,styles:L})=>{let[A,z]=wt(!1),[R,B]=wt(!1),[V,U]=wt(!1),[O,_]=wt(!1),[K,H]=wt(null),[G,q]=wt(null),[$,Y]=wt(""),[ae,be]=wt(""),[pe,Me]=wt(null),X=_1(void 0),[Z,W]=wt(""),[re]=jB(Z,500),[se,ye]=wt(""),ue=_1(null),xe=_1(null),{positionStyles:J,isMounted:Re}=tR({triggerRef:ue,targetRef:xe,position:e,isOpen:A,offset:10});eR({refs:[xe],handler:()=>z(!1),enabled:A});let Oe=O1(()=>n??[],[n]),Se=O1(()=>{let Q=new Map;for(let ee of Oe){let ge=qe(ee,b);ge!=null&&Q.set(ge,cC(ee,u))}return Q},[Oe,b,u]),Ye=O1(()=>{let Q=[];return K==null?Q=Array.from(Se?.values()).flat():Q=Se?.get(K)??[],F&&se.trim()!==""&&(Q=Q.filter(ee=>{let ge=String(qe(ee,P)??""),_e=I?String(qe(ee,I)??""):"";return ge.toLowerCase().includes(se?.toLowerCase()??"")||_e.toLowerCase().includes(se?.toLowerCase()??"")})),Q},[K,Se,se,P,I,F]);ji(()=>{let Q=X.current!==o;if(X.current=o,o==null){Q&&(q(null),H(null));return}let ge=Array.from(Se?.values())?.flat()?.find(_e=>qe(_e,v)===o);if(ge){let _e=qe(ge,C)??null;q(ge),H(_e)}else Q&&q(null)},[o,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);H(typeof ge=="string"||typeof ge=="number"?ge:null),q(ee),Me(null),m?.(ee)},[pe,Se,v,C,m]),ji(()=>{f&&f(re??"")},[re,f]),ji(()=>{A||(B(!1),U(!1),Y(""),be(""))},[A]);let lt=Q=>{Q===K?(H(null),q(null),m?.(null)):(q(null),H(Q),m?.(null))},ea=Q=>{let ee=qe(Q,C);H(typeof ee=="string"||typeof ee=="number"?ee:null),q(Q),m?.(Q),z(!1)};async function Zn(){if(!i)return;let Q={[y]:$};try{let ee=await i(Q);if(ee?.success){B(!1),Y(""),a&&await a();let ge=iC(ee,b);ge!=null&&(H(ge),q(null),m?.(null))}}catch{}}async function le(){if(!p)return;let Q={[P]:ae,...K!=null?{[C]:K}:{}};try{let ee=await p(Q);ee?.success&&(U(!1),be(""),Me(iC(ee,v)),a&&await a())}catch{}}return oe("div",{className:Ve("cleen",M),style:D,children:et("div",{ref:ue,className:Ve("cleen-relative cleen-w-full cleen-cursor-pointer",k?.container),style:L?.container,onClick:Q=>{Q.stopPropagation(),z(!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":!A})}),value:Z,onChange:Q=>{H(null),q(null),W(Q.target.value)},classNames:{input:A?"":"cleen-cursor-pointer"},className:k?.input,style:L?.input}),A&&nR(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:w,top:`${J.top}px`,left:`${J.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:S?oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:oe(ce,{size:"sm"})}):n?.map((Q,ee)=>{let ge=qe(Q,b),_e=ge===K,Jn=String(qe(Q,y)??""),ta=cC(Q,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:ta})]}),l?.length>0&&oe("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Te=>{Te.stopPropagation(),s?.(Q)},children:oe(Mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(Te=>{let Yo=Te?.disabledOptionCallback?.(Q);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(Q)},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}),R?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:Q=>Y(Q.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?E?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:()=>B(!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:[F&&et(lR,{children:[oe(Ie,{leftIcon:oe(Ct,{className:"cleen-size-5"}),className:Ve("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!O}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:Q=>ye(Q.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":!O}),onClick:()=>_(Q=>!Q),children:oe(ha,{className:Ve("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",O?"-cleen-rotate-90":"cleen-rotate-90")})})]}),S?oe("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:oe(ce,{size:"sm"})}):Ye?.map((Q,ee)=>{let ge=qe(Q,v),_e=G&&qe(G,v)===ge,Jn=String(qe(Q,P)??""),ta=I?String(qe(Q,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(),ea(Q)},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:ta})]}),r?.length>0&&oe("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:Te=>{Te.stopPropagation(),d?.(Q)},children:oe(Mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:r?.map(Te=>{let Yo=Te?.disabledOptionCallback?.(Q);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(Q)},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:Q=>be(Q.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),!A&&G&&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:()=>z(!0),children:oe("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(qe(G,P)??"")})})]})})};import{cn as $e,useDebounce as cR,useOutsideClick as iR,usePositionClose as sR,ZIndex as pR}from"@cleen/ui-core";import{forwardRef as dR,useEffect as dC,useId as mR,useMemo as mC,useRef as es,useState as ts}from"react";import{createPortal as uR}from"react-dom";import{cn as Nn}from"@cleen/ui-core";import{jsx as Oo,jsxs as sC}from"react/jsx-runtime";var pC=({options:e,selection:t,classNames:n,styles:o,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",n?.container),style:o?.container,children:e?.map((d,f)=>{let m=t?.some(y=>y?.value===d?.value),b=f===a;return sC("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},n?.item),style:o?.item,onMouseEnter:()=>p?.(f),onClick:()=>l?.(d,m),children:[sC("div",{className:Nn("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:[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:n?.checkContainer,style:o?.checkContainer,children:Oo(Yt,{className:Nn("cleen-text-primary",n?.check),style:o?.check})})]},d.value)})})});import{Fragment as hR,jsx as Fe,jsxs as os}from"react/jsx-runtime";var fR=dR(function({id:t,name:n,label:o,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:P=2,disabled:I=!1,isNoDataVisibleOnCreateNew:x=!0,zIndex:S=pR.DROPDOWN,className:E,classNames:T,style:N,styles:F,infoLabels:w,menuDetachedFromPortal:M,onInputChange:k,onChange:D,onCreateNewOption:L,createNewOptionLabelString:A,onLookupBlur:z,triggerBlurOnlyWhenOpen:R=!0,menuRef:B,...V},U){let[O,_]=ts(!1),K=es(null),H=es(null),G=B??K,{positionStyles:q,isMounted:$}=sR({triggerRef:H,targetRef:G,position:"bottom-left",isOpen:O,offset:4});iR({refs:[G,H],handler:()=>{_(!1),z?.()},enabled:R?O:!0});let[Y,ae]=ts(""),be=cR(Y,C),pe=C?be:Y,Me=es(pe),X=es(!1),Z=()=>{X.current=!1,ae("")},W=Array.isArray(i),[re,se]=ts([]),ye=W?i:re,ue=["inside","inside-badge"].includes(p),xe=(le,Q=!1)=>{if(Q){let ge=ye.filter(_e=>_e.value!==le.value);W||se(ge),D?.(ge);return}let ee;if(b===1)ee=[le];else{if(b&&ye.length>=b)return;ee=[...ye,le]}W||se(ee),D?.(ee),m&&b&&ee.length>=b&&(Z(),_(!1))},J=mC(()=>f?a?.filter(le=>le?.label?.match(new RegExp(pe,"i"))):a,[a,pe,f]),Re=mC(()=>A&&L&&!s&&Y?.length>0&&!J?.some(le=>le?.label===Y)?typeof A=="function"?A(Y):A:null,[A,L,s,Y,J]);dC(()=>{if(Me.current!==pe)if(Me.current=pe,pe.length<P)_(!1);else{k?.(pe);let le=!!H.current?.contains(document.activeElement);X.current&&le&&_(!0)}},[pe,k,P]);let Oe=mR(),Se=le=>`${Oe}-option-${le}`,[Ye,lt]=ts(-1);dC(()=>{lt(-1)},[pe,O]);let ea=le=>{let Q=J?.length??0;switch(le.key){case"ArrowDown":if(!Q)return;if(le.preventDefault(),!O){_(!0),lt(0);return}lt(ee=>(ee+1)%Q);break;case"ArrowUp":if(!Q)return;if(le.preventDefault(),!O){_(!0),lt(Q-1);return}lt(ee=>(ee-1+Q)%Q);break;case"Home":if(!O||!Q)return;le.preventDefault(),lt(0);break;case"End":if(!O||!Q)return;le.preventDefault(),lt(Q-1);break;case"Enter":{if(!O||Ye<0)return;let ee=J?.[Ye];if(!ee)return;le.preventDefault();let ge=ye?.some(_e=>_e.value===ee.value);xe(ee,ge);break}case"Escape":O&&(le.preventDefault(),_(!1));break;default:break}},Zn=os("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:F?.menu?.container,children:[s?Fe(ce,{className:$e("cleen-py-3",T?.menu?.loader),style:F?.menu?.loader}):!J||J?.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:F?.menu?.noDataFound,children:r?.noDataFound}):Fe(pC,{options:J,selection:ye,onChoose:xe,displaySubtextInline:u,activeIndex:Ye,getOptionId:Se,onActiveIndexChange:lt,...T?.menu?.list,...F?.menu?.list}),Re&&os("div",{className:$e("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",T?.createNewOption?.container),style:F?.createNewOption?.container,children:[Fe(xt,{...T?.createNewOption?.divider,...F?.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:F?.createNewOption?.value,onClick:()=>{let le=L?.(Y);typeof le=="boolean"&&!le||(Z(),_(!1))},children:Re})]})]});return Fe("div",{className:$e("cleen",E),style:N,children:os("div",{className:$e("cleen-flex cleen-flex-col cleen-w-full",T?.container),style:F?.container,children:[o&&Fe(de,{htmlFor:t||n,required:d,tooltip:l,className:$e("cleen-mb-1.5",T?.label?.className),classNames:T?.label?.classNames,...F?.label,children:o}),Fe("div",{ref:H,className:$e("cleen-relative cleen-flex cleen-items-center",T?.input?.container),style:F?.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)},...F?.input?.component,leftIcon:os(hR,{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:()=>{_(!O)},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>=P&&Y.length>=P&&_(!0)},value:Y,onChange:le=>{X.current=!0,ae(le.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":O,"aria-controls":O?Oe:void 0,"aria-activedescendant":O&&Ye>=0?Se(Ye):void 0,onKeyDown:ea,ref:U,required:d,disabled:I,...V})}),O&&(M?Fe("div",{ref:G,children:Zn}):uR(Fe("div",{className:"cleen",children:Fe("div",{ref:G,className:$e("cleen-absolute",{"cleen-opacity-0":!$}),style:{zIndex:S,top:`${q.top}px`,left:`${q.left}px`,minWidth:H.current?.offsetWidth?`${H.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:F?.pillbadge?.container,children:ye?.map(le=>Fe(Le,{label:y?y(le):le?.label,color:v,removeable:!I,onRemoveClicked:()=>{if(I)return;let Q=ye?.filter(ee=>ee?.value!==le?.value);W||se(Q),D?.(Q)},...T?.pillbadge?.component,...F?.pillbadge?.component},le.value))}),(w?.errorMessage||w?.infoMessage||w?.subtitle)&&Fe(ie,{...w})]})})});import{cn as Ce}from"@cleen/ui-core";import{forwardRef as gR}from"react";import bR from"react-markdown";import yR from"remark-gfm";import{jsx as ve}from"react/jsx-runtime";var vR=gR(function({components:t,children:n,className:o,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",o,l?.container),style:{...r,...a?.container},...i,children:ve(bR,{...i,remarkPlugins:[yR],components:{...s,...t},children:n})})});import{cn as Bn,useBodyScrollLock as IR,useCleenOverlays as uC,ZIndex as CR}from"@cleen/ui-core";import{forwardRef as xR,useCallback as PR,useEffect as V1,useId as SR,useRef as wR,useState as fC}from"react";import{createPortal as MR}from"react-dom";import{jsx as Ul,jsxs as gC}from"react/jsx-runtime";var kR={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},hC=300,TR=xR(function({isOpen:t=!1,onClose:n,closeOnOverlayClick:o=!0,closeButtonIcon:l=Ul(He,{className:"cleen-size-5"}),header:r,footer:a,zIndex:i=CR.MODAL,size:p="md",color:s,p:d,gap:f,radius:m=16,className:b,classNames:y,style:u,styles:v,children:C,...P},I){let[x,S]=fC(t),[E,T]=fC(t),N=wR(null),F=SR(),{addOverlay:w,removeOverlay:M}=uC(),k=PR(()=>{S(!1),setTimeout(()=>n?.(),hC)},[n]);return V1(()=>{if(t){T(!0);let D=setTimeout(()=>S(!0),1);return()=>clearTimeout(D)}else{S(!1);let D=setTimeout(()=>T(!1),hC);return()=>clearTimeout(D)}},[t]),V1(()=>{if(t)return w(F),()=>M(F)},[w,M,t,F]),V1(()=>{let D=L=>{let{overlays:A}=uC.getState();L.key==="Escape"&&A[A.length-1]===F&&k()};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[k,F]),IR(E),E?MR(gC("div",{className:Bn("cleen",b),style:u,ref:I,...P,children:[Ul("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:()=>{o&&k()},"aria-hidden":"true"}),Ul("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:gC(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:kR[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&&Ul("div",{className:Bn("cleen-top-3 cleen-right-3 cleen-absolute"),children:Ul(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 NR,jsxs as bC}from"react/jsx-runtime";var yC={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}},ns={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},vC=3,IC=180,CC=15e3,Lr="general",Gl={[Lr]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},xC={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"},PC={"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"},$l={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=>bC(NR,{children:[bC("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 z1={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},SC=({exitDuration:e=IC}={})=>{let t=z1,n=new Set,o=new Map,l=new Map,r=0,a=w=>{t={...t,...w},n.forEach(M=>M())},i=w=>{let M=o.get(w);!M||M.handle||t.paused||(M.startedAt=Date.now(),M.handle=setTimeout(()=>v(w),M.remaining))},p=w=>{let M=o.get(w);M?.handle&&(clearTimeout(M.handle),M.remaining=Math.max(0,M.remaining-(Date.now()-(M.startedAt??Date.now()))),M.handle=null,M.startedAt=null)},s=w=>{let M=o.get(w);M?.handle&&clearTimeout(M.handle),o.delete(w)},d=w=>{s(w.id),!(w.priority!=="normal"||w.duration===!1||w.duration<=0)&&(o.set(w.id,{duration:w.duration,remaining:w.duration,startedAt:null,handle:null,revision:++r}),i(w.id))},f=w=>{let M=l.get(w);M&&(l.delete(w),M.ids.delete(w),M.ids.size||clearTimeout(M.handle))},m=w=>{w.forEach(D=>l.delete(D));let M=t.toasts.filter(D=>!w.includes(D.id)),k=M.some(D=>!D.leaving);a({toasts:M,...!k&&{ui:z1.ui}})},b=w=>{f(w.id);let M=t.toasts.some(k=>k.id===w.id);return d(w),a({toasts:M?t.toasts.map(k=>k.id===w.id?w:k):[...t.toasts,w]}),w.id},y=(w,M)=>{let k=t.toasts.find(L=>L.id===w);if(!k||k.leaving)return;let D={...k,...M};("priority"in M||"duration"in M)&&d(D),a({toasts:t.toasts.map(L=>L.id===w?D:L)})},u=w=>{let M=t.toasts.filter(L=>w.includes(L.id)&&!L.leaving);if(!M.length)return;M.forEach(L=>s(L.id));let k=M.filter(L=>L.animationType==="none"||e<=0).map(L=>L.id),D=M.filter(L=>!k.includes(L.id)).map(L=>L.id);if(D.length){let L=t.toasts.filter(R=>!R.leaving).length;a({toasts:t.toasts.map(R=>D.includes(R.id)?{...R,leaving:!0,leavingFromCount:L}:R)});let A=new Set(D),z=setTimeout(()=>m([...A]),e);D.forEach(R=>l.set(R,{handle:z,ids:A}))}k.length&&m(k)},v=w=>u([w]);return{add:b,update:y,dismiss:v,dismissMany:u,clear:()=>u(t.toasts.map(w=>w.id)),pauseAll:()=>{t.paused||(o.forEach((w,M)=>p(M)),a({paused:!0}))},resumeAll:()=>{t.paused&&(a({paused:!1}),o.forEach((w,M)=>i(M)))},setExpanded:w=>a({ui:{...t.ui,expanded:w}}),toggleGroup:w=>{let{expandedGroups:M}=t.ui;a({ui:{...t.ui,expandedGroups:M.includes(w)?M.filter(k=>k!==w):[...M,w]}})},resetUi:()=>a({ui:z1.ui}),getTimer:w=>{let M=o.get(w);if(!M)return;let k=M.startedAt?Date.now()-M.startedAt:0;return{duration:M.duration,remaining:Math.max(0,M.remaining-k),revision:M.revision}},subscribe:w=>(n.add(w),()=>{n.delete(w)}),getSnapshot:()=>t}},me=SC();var BR=0,wC=({id:e,variant:t="default",priority:n,actions:o,duration:l,closeButton:r=!0,hideProgressBar:a,animationType:i="slide",...p})=>{let s=yC[t];return me.add({...p,id:e??`cleen-notification-${++BR}`,variant:t,actions:o,priority:n??(o?.length?"important":"normal"),duration:l??s.duration,closeButton:r,progressBar:a===void 0?s.progressBar:!a,animationType:i,createdAt:Date.now()})},RR=(e,{hideProgressBar:t,...n})=>me.update(e,{...n,...t!==void 0&&{progressBar:!t}}),Rn={show:wC,update:RR,dismiss:me.dismiss,dismissMany:me.dismissMany,clear:me.clear};import{useSyncExternalStore as ER}from"react";var rs=()=>ER(me.subscribe,me.getSnapshot,me.getSnapshot);import{useMemo as LR}from"react";var DR=()=>{let{toasts:e,paused:t}=rs();return{toasts:LR(()=>e.filter(o=>!o.leaving),[e]),paused:t,show:Rn.show,update:Rn.update,dismiss:Rn.dismiss,dismissMany:Rn.dismissMany,clear:Rn.clear}};var MC={critical:0,important:1,normal:2},H1=e=>e.filter(t=>!t.leaving),as=e=>[...e].reverse(),TC=e=>[...e].sort((t,n)=>MC[t.priority]-MC[n.priority]),Dr=e=>!!e.actions?.length&&e.priority!=="normal",NC=e=>e.category??Lr,En=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),U1=e=>e.map(En),kC=(e,t)=>(e.leavingFromCount??0)>t,Fr=(e,t,n)=>{let o=H1(e);if(o.length>t)return n(o);let l=e.filter(r=>r.leaving&&kC(r,t));return!o.length&&l.length>t?n(l).map(r=>({...r,exiting:!0})):U1(e.filter(r=>!r.leaving||!kC(r,t)))};var G1=(e,t,n)=>Fr(e,n,o=>{let l=TC(as(o)),r=l.filter(u=>u.priority==="critical"),a=l.filter(u=>u.priority!=="critical"),i=new Map;a.forEach(u=>{let v=NC(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,n-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:o}),y});var $1=(e,t,n=1/0)=>Fr(e,n,o=>[...U1(o),{type:"footer",key:"footer",overflow:[],toasts:o}]);var W1=(e,t,n)=>Fr(e,n,o=>{let l=as(o);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 BC={list:$1,stack:W1,group:G1};import{createContext as FR,useContext as AR}from"react";var q1=FR({categories:Gl,labels:$l,hiddenElements:[],now:Date.now(),paused:!1}),ke=()=>AR(q1);import{cn as OR,getTimeAgoLabel as _R}from"@cleen/ui-core";var j=(e,t,n,o)=>{let l=o?.classNames,r=o?.styles,a=e.styles?.[t]||r?.[t]?{...e.styles?.[t],...r?.[t]}:void 0;return{className:OR(n,e.classNames?.[t],l?.[t]),style:a,"data-slot":t}},Ft=({className:e,style:t,...n})=>({classNames:{container:e},styles:{container:t},...n}),Ar=(e,t)=>e.categories[t]??{...e.categories[Lr],label:t,pluralLabel:t},ls=(e,t,n)=>{let o=Math.floor(Math.max(0,t-e));return typeof n.timeAgo=="function"?n.timeAgo(o):_R(o,n?.timeAgoStamps)},RC=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 VR}from"@cleen/ui-core";import{jsx as EC}from"react/jsx-runtime";var cs=({toast:e})=>{let t=ke();if(t.hiddenElements.includes("badges"))return null;let n=e.priority==="critical";if(!n&&!Dr(e))return null;let o=j(t,"badge",void 0,e);return EC("span",{...j(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:EC(Le,{color:n?"red":"primary",variant:"full",label:n?t.labels.critical:t.labels.action,classNames:{container:VR("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 LC}from"@cleen/ui-core";import{Fragment as zR,jsx as _o}from"react/jsx-runtime";var DC=({icon:e,tone:t="neutral",size:n="md",className:o,...l})=>{let r=n==="sm"?14:18;return _o("span",{className:LC("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",xC[t],o),"aria-hidden":"true",...l,children:_o(Ee,{name:e,width:r,height:r})})},K1=({category:e,...t})=>{let n=ke(),o=Ar(n,e);return _o(DC,{icon:o.icon,tone:o.tone,...t})},is=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return _o(zR,{children:e.icon});if(e.category)return _o(K1,{category:e.category,size:t});let n=ns[e.variant];return n?_o(DC,{icon:n.name,tone:n.tone,size:t}):null},Ln=({icon:e,label:t,className:n,...o})=>_o("button",{type:"button","aria-label":t,title:t,className:LC("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:_o(Ee,{name:e,width:14,height:14,strokeWidth:2})});import{cn as X1}from"@cleen/ui-core";import{Fragment as HR,jsx as Wl,jsxs as Y1}from"react/jsx-runtime";var FC=({toast:e,children:t})=>{let n=ke(),o=e.title!==void 0&&e.title!==null,l=e.icon===void 0&&(!!e.category||!!ns[e.variant]),r=Wl(is,{toast:e}),a=Wl(cs,{toast:e});return Y1(HR,{children:[(e.icon!==void 0||l||e.variant!=="default")&&Wl("span",{...j(n,"icon",X1("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!l}),e),children:r}),Y1("div",{...j(n,"body",X1("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[o?Y1("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[Wl("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}),a]}):a,Wl("span",{...j(n,"message",X1("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":o,"cleen-text-foreground":!o}),e),children:e.message}),t]})]})};import{useState as UR}from"react";import{jsx as GR}from"react/jsx-runtime";var AC=({toast:e})=>{let t=ke(),[n]=UR(()=>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 GR("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 $R}from"@cleen/ui-core";import{jsx as ps,jsxs as ss}from"react/jsx-runtime";var ds=({toast:e,inDeck:t=!1})=>{let n=ke(),{labels:o,hiddenElements:l}=n,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 ss("div",{role:r?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||a?void 0:0,onKeyDown:p,...j(n,"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)&&RC(e),e.className),e),children:[ss(FC,{toast:e,children:[s&&ss("span",{...j(n,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[Ar(n,e.category).label," \xB7"," ",ls(e.createdAt,n.now,o)]}),a&&ss("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 ps(te,{variant:f.variant??(m?"secondary":"primary"),label:f.label,onClick:()=>{f.onClick?.(e),i()},...Ft(b)},`${f.label}-${m}`)}),ps(te,{variant:"secondary",label:o.dismiss,onClick:i,...Ft(j(n,"dismissButton",tt,e))})]})]}),e.closeButton&&ps(Ln,{icon:"X",label:o.close,onClick:i,...j(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),d&&ps(AC,{toast:e},me.getTimer(e.id)?.revision)]})};import{Fragment as WR,jsx as Or,jsxs as ms}from"react/jsx-runtime";var OC="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",_C=({top:e,hidden:t})=>{let n=ke(),{labels:o}=n,l=[e.id,...t.map(r=>r.id)];return ms(WR,{children:[ms("div",{...j(n,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[Or(ds,{toast:e,inDeck:!0}),Or("span",{"aria-hidden":"true",...j(n,"deckPeek",`${OC} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&Or("span",{"aria-hidden":"true",...j(n,"deckPeek",`${OC} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!n.hiddenElements.includes("deckMoreBar")&&ms("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:[Or("span",{...j(n,"deckMoreLabel"),children:o.moreBehind(t.length)}),ms("span",{className:"cleen-flex cleen-gap-1",children:[Or(te,{variant:"secondary",label:o.showAll,"aria-expanded":!1,onClick:()=>me.setExpanded(!0),...Ft(j(n,"deckShowAllButton",tt))}),Or(te,{variant:"borderless",label:o.dismissAll,onClick:()=>me.dismissMany(l),...Ft(j(n,"deckDismissAllButton",tt))})]})]})]})};import{cn as qR}from"@cleen/ui-core";import{Fragment as KR,jsx as us,jsxs as XR}from"react/jsx-runtime";var VC=({count:e})=>{let t=ke(),{labels:n,onViewAll:o}=t;if(t.hiddenElements.includes("overflowPill"))return null;let l=XR(KR,{children:[n.overflow(e),us("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:us(Ee,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),r=j(t,"overflowPill",qR("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?us("button",{type:"button",onClick:()=>o(),...r,children:l}):us("span",{...r,children:l})};import{jsx as zC,jsxs as YR}from"react/jsx-runtime";var HC=({overflow:e,toasts:t})=>{let n=ke(),o=!n.hiddenElements.includes("dismissAllButton");return!o&&!e.length?null:YR("div",{...j(n,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[o&&zC("button",{type:"button",onClick:()=>me.dismissMany(t.map(l=>l.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&&zC(VC,{count:e.length})]})};import{jsx as Dn,jsxs as fs}from"react/jsx-runtime";var hs=({toast:e,onDismiss:t})=>{let n=ke(),o=e.actions?.[0],l=e.title!==void 0&&e.title!==null;return fs("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:[Dn("span",{...j(n,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:Dn(is,{toast:e,size:"sm"})}),fs("div",{...j(n,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[fs("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(cs,{toast:e})]}),l&&Dn("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),fs("span",{...j(n,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[o&&Dn(Ln,{icon:"ArrowRight",label:o.label,onClick:()=>{o.onClick?.(e),t(e.id)}}),Dn(Ln,{icon:"X",label:n.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as QR,useLayoutEffect as ZR,useRef as JR}from"react";var jR='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',gs=(e,t,n)=>{let o=JR(!1);return QR(()=>{e.current?.focus({preventScroll:!0})},[e]),ZR(()=>{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 p=i.relatedTarget;p&&!i.currentTarget.contains(p)&&(o.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),n();return}if(i.key!=="Tab"||!e.current)return;let p=[...e.current.querySelectorAll(jR)],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 eE}from"react";import{Fragment as oE,jsx as Ke,jsxs as co}from"react/jsx-runtime";var Q1=3,tE=({toasts:e,onCollapse:t})=>{let n=eE(null),o=gs(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(l=>Ke(hs,{toast:l,onDismiss:me.dismiss},l.id))})},UC=({category:e,toasts:t,expanded:n})=>{let o=ke(),{labels:l,onViewAll:r,hiddenElements:a}=o,i=Ar(o,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"&&!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:[co("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(K1,{category:e,...j(o,"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(o,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:l.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})]}),!a.includes("meta")&&co("span",{...j(o,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[s>0&&co(oE,{children:[l.needAction(s)," \xB7 "]}),ls(d,o.now,l)]})]})]}),n?Ke(tE,{toasts:t,onCollapse:m}):co("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,Q1).map(b=>co("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>Q1&&!a.includes("groupMore")&&Ke("span",{...j(o,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:l.more(t.length-Q1)})]}),co("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:l.review(i),rightIcon:Ke(Ee,{name:"ArrowRight",width:14,height:14}),onClick:()=>r(e),...Ft(j(o,"groupReviewButton",tt))}),Ke(te,{variant:"secondary",label:n?l.collapse:l.expand,"aria-expanded":n,onClick:m,...Ft(j(o,"groupToggleButton",tt))}),Ke("span",{className:"cleen-flex-1"}),Ke(te,{variant:"borderless",label:l.dismiss,onClick:f,...Ft(j(o,"groupDismissButton",tt))})]}),Ke(Ln,{icon:"X",label:l.dismissGroup,onClick:f,...j(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as nE}from"react";import{jsx as Vo,jsxs as bs}from"react/jsx-runtime";var GC=({toasts:e})=>{let t=ke(),{labels:n,onViewAll:o}=t,l=nE(null),r=()=>me.setExpanded(!1),a=gs(l,e.length,r);return bs("div",{ref:l,tabIndex:-1,role:"group","aria-label":n.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:[bs("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:[bs("span",{children:[n.listTitle(e.length)," "]}),Vo("span",{className:"cleen-flex-1"}),Vo(te,{variant:"borderless",label:n.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(hs,{toast:i,onDismiss:me.dismiss},i.id))}),bs("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&&Vo(te,{variant:"secondary",label:n.openNotifications,onClick:()=>o(),classNames:{container:tt}}),Vo("span",{className:"cleen-flex-1"}),Vo(te,{variant:"secondary",label:n.dismissAll,onClick:()=>me.dismissMany(e.map(i=>i.id)),classNames:{container:tt}})]})]})};import{useEffect as rE,useState as aE}from"react";var $C=e=>{let[t,n]=aE(()=>Date.now());return rE(()=>{if(!e)return;n(Date.now());let o=setInterval(()=>n(Date.now()),CC);return()=>clearInterval(o)},[e]),t};import{cn as J1}from"@cleen/ui-core";import{forwardRef as lE,useCallback as cE,useEffect as Z1,useMemo as WC,useRef as qC}from"react";import{jsx as io}from"react/jsx-runtime";var iE=e=>{switch(e.type){case"toast":return io(ds,{toast:e.toast},e.key);case"deck":return io(_C,{top:e.top,hidden:e.hidden},e.key);case"list":return io(GC,{toasts:e.toasts},e.key);case"group":return io(UC,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return io(HC,{overflow:e.overflow,toasts:e.toasts},e.key)}},sE=(e,t)=>io("div",{"aria-hidden":"true",className:J1("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:iE(e)},e.key),pE=lE(function({layout:t="list",maxVisible:n=vC,position:o="bottom-right",categories:l,onViewAll:r,labels:a,classNames:i,styles:p,hiddenElements:s,className:d,style:f,...m},b){let y=rs(),u=H1(y.toasts).length,v=$C(y.toasts.length>0),C=qC(null),P=qC(!1),I=WC(()=>BC[t](y.toasts,y.ui,n),[t,y.toasts,y.ui,n]),x=WC(()=>({categories:{...Gl,...l},labels:{...$l,...a},classNames:i,styles:p,hiddenElements:s??[],onViewAll:r,now:v,paused:y.paused}),[l,a,i,p,s,r,v,y.paused]);Z1(()=>{let{expanded:N,expandedGroups:F}=y.ui,w=y.toasts.some(M=>M.leaving);u<=n&&!w&&(N||F.length)&&me.resetUi()},[u,n,y.toasts,y.ui]);let S=cE(()=>{let N=document.activeElement,F=!!(N&&C.current?.contains(N))&&!!N?.matches(":focus-visible");P.current||F?me.pauseAll():me.resumeAll()},[]);Z1(()=>{u||(P.current=!1),S()},[u,S]),Z1(()=>{let N=F=>{P.current&&!C.current?.contains(F.target)&&(P.current=!1,S())};return document.addEventListener("pointermove",N,{passive:!0}),()=>document.removeEventListener("pointermove",N)},[S]);let E=N=>{P.current=N,S()},T=()=>requestAnimationFrame(S);return io("div",{className:J1("cleen",d),style:f,ref:b,children:io(q1.Provider,{value:x,children:io("div",{role:"region","aria-live":"polite","aria-label":x.labels.region,ref:C,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onFocus:T,onBlur:T,...j(x,"region",J1("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",PC[o])),...m,children:I.map(N=>sE(N,o.endsWith("left")?"cleen-items-start":o.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as KC}from"@cleen/ui-core";import{forwardRef as dE,useState as mE}from"react";import{jsx as j1,jsxs as uE}from"react/jsx-runtime";var eg=dE(({totalPages:e,labels:t,onGoToPage:n,classNames:o,styles:l,...r},a)=>{let[i,p]=mE(""),s=()=>{let f=parseInt(i,10);isNaN(f)||(n?.(Math.min(Math.max(f,1),e)),p(""))},d=f=>{f.key==="Enter"?s():f.key==="Escape"&&p("")};return j1("div",{className:"cleen",...r,children:uE("div",{className:KC("cleen-flex cleen-items-center cleen-gap-2",o?.container),style:l?.container,children:[j1("span",{className:KC("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",o?.label),style:l?.label,children:t?.goToPage}),j1(Ie,{ref:a,type:"number",min:1,max:e,value:i,onChange:f=>p(f.target.value),onKeyDown:d,...o?.input,...l?.input})]})})});import{cn as ys,useOutsideClick as fE,usePositionClose as hE}from"@cleen/ui-core";import{forwardRef as gE,useRef as XC,useState as YC}from"react";import{createPortal as bE}from"react-dom";import{jsx as _r,jsxs as vE}from"react/jsx-runtime";var yE=[10,20,50,100],tg=gE(({pageSize:e,pageSizes:t=yE,labels:n,onPageSizeChange:o,classNames:l,styles:r,...a},i)=>{let[p,s]=YC(e??t?.[0]??void 0),[d,f]=YC(!1),m=XC(null),b=XC(null),{positionStyles:y,isMounted:u}=hE({triggerRef:m,targetRef:b,isOpen:d,position:"top-left"});return fE({refs:[m,b],handler:()=>f(!1),enabled:d}),_r("div",{className:"cleen",ref:i,...a,children:vE("div",{className:ys("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",l?.container),style:r?.container,children:[_r(Ne,{label:n?.itemsPerPage?.(p),classNames:{labelContainer:"cleen-min-w-max"},children:_r("div",{className:ys("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&&bE(_r("div",{className:"cleen",children:_r("div",{ref:b,className:ys("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:ys("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),o?.(v),f(!1)},children:v},v))})}),document.body)]})})});var QC={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 IE,useCallback as vs,useMemo as CE,useRef as xE}from"react";import{jsx as ot,jsxs as SE}from"react/jsx-runtime";var PE=IE(({currentPage:e,totalPages:t,pageSize:n,pageSizes:o,hasGotoPage:l=!0,hasPageSizeSelector:r=!0,onPageChange:a,onPageSizeChange:i,labels:p=QC,classNames:s,styles:d,...f},m)=>{let b=xE(null),y=vs(()=>{e<t&&a?.(e+1)},[e,t,a]),u=vs(()=>{e>1&&a?.(e-1)},[e,a]),v=vs(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=vs(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]),P=CE(()=>{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:SE("div",{className:zo("cleen-flex cleen-justify-between cleen-gap-4",s?.container),style:d?.container,children:[r?ot(tg,{pageSize:n,labels:p,onPageSizeChange:i,pageSizes:o,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:P}),l?ot(eg,{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 ZC}from"@cleen/ui-core";import{forwardRef as wE,useEffect as ME,useState as kE}from"react";import{jsx as Is,jsxs as JC}from"react/jsx-runtime";var TE={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},jC=wE(({isFullscreen:e,percentage:t,duration:n=1e3,radius:o,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 P=o??TE[r]/2,I=P-l/2,x=I*2*Math.PI,[S,E]=kE(0);ME(()=>{let N=null;if(n===0){E(t);return}let F=w=>{N||(N=w);let M=w-N,k=Math.min(M/n*t,t);E(k),k<t&&requestAnimationFrame(F)};requestAnimationFrame(F)},[t,n]);let T=x-S/100*x;return Is("div",{ref:C,className:ZC("cleen",m),style:y,...v,children:JC("div",{className:ZC("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:[JC("svg",{height:P*2,width:P*2,style:{transform:"rotate(-90deg)"},children:[Is("circle",{stroke:i,fill:"transparent",strokeWidth:l,r:I,cx:P,cy:P}),Is("circle",{stroke:a,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:x,strokeDashoffset:T,r:I,cx:P,cy:P})]}),!s&&Is("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:d??P/2.5,color:p},children:f?f(S):`${Math.round(S)}%`})]})})});jC.displayName="ProgressCircle";import{cn as ht}from"@cleen/ui-core";import{useEffect as NE,useState as BE}from"react";import{Fragment as ex,jsx as so,jsxs as ql}from"react/jsx-runtime";var RE=({horizontal:e,boxes:t,selectedBox:n,onBoxClick:o,leftElement:l,rightElement:r,leftIcon:a,leftIconName:i,rightIconName:p,className:s,classNames:d,style:f,styles:m,...b})=>{let[y,u]=BE(n);NE(()=>{u(n)},[n]);let v=(x,S)=>ql(ex,{children:[l&&l(x),a||(i?so(Ee,{name:i,className:ht("cleen-w-5 cleen-h-5",S?"cleen-text-primary":"cleen-text-neutral-700",d?.leftIcon),style:m?.leftIcon}):null)]}),C=(x,S)=>so("span",{className:ht("cleen-font-semibold",S?"cleen-text-primary":"cleen-text-neutral-700",d?.label),style:m?.label,children:x?.label}),P=(x,S)=>so("span",{className:ht("cleen-font-semibold cleen-text-16px",S?"cleen-text-primary":"cleen-text-neutral-700",d?.subLabel),style:m?.subLabel,children:x?.subLabel}),I=(x,S)=>ql(ex,{children:[r&&r(x),p&&so(Ee,{name:p,className:ht("cleen-w-5 cleen-h-5",S?"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 S=x?.id===y?.id;return ql("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",S?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",d?.box),style:m?.box,onClick:()=>{u(x),o?.(x)},children:[v(x,S),x?.label&&C(x,S),x?.subLabel&&P(x,S),I(x,S)]},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 S=x?.id===y?.id;return ql("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",S?"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),o?.(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,S)}),so("div",{className:ht("cleen-flex cleen-items-center cleen-justify-center",d?.labelContainer),style:m?.labelContainer,children:x?.label&&C(x,S)}),ql("div",{className:ht("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",d?.rightIconContainer),style:m?.rightIconContainer,children:[x?.subLabel&&P(x,S),I(x,S)]})]},x?.id)})})})};import{cn as Mt}from"@cleen/ui-core";import{forwardRef as DE,useEffect as FE,useId as AE,useRef as OE,useState as _E}from"react";import{cn as tx}from"@cleen/ui-core";import{forwardRef as EE}from"react";import{jsx as ox,jsxs as LE}from"react/jsx-runtime";var Cs=EE(function({checked:t,className:n,classNames:o,style:l,styles:r,...a},i){return LE("div",{className:tx("group cleen-flex cleen-size-5 cleen-min-h-5 cleen-min-w-5 cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-border-neutral-300 focus-within:cleen-ring-2 focus-within:cleen-ring-primary focus-within:cleen-ring-offset-1",t?"cleen-bg-primary":"cleen-bg-surface",n),style:l,children:[ox("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...a}),ox("span",{className:tx("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",o?.innerCircle),style:r?.innerCircle})]})});import{jsx as At,jsxs as xs}from"react/jsx-runtime";var VE=DE(function({required:t,radios:n,label:o,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,[P,I]=_E(m??n[0]?.id),x=AE(),S=`${x}-label`,E=s??`cleen-radio-group-${x}`;FE(()=>{!C&&m!==void 0&&I(m)},[m,C]);let T=C?b:P,N=R=>T!=null&&T==R,F=R=>{C||I(R),u?.(R)},w=OE([]),M=n?.findIndex(R=>!R.disabled&&N(R.id)),k=n?.findIndex(R=>!R.disabled),D=M>=0?M:Math.max(k,0),L=R=>{let B=n[R];!B||B.disabled||(F(B.id),w.current[R]?.focus())},A=(R,B)=>{let V=n.length;for(let U=1;U<V;U++){let O=(R+B*U+V)%V;if(!n[O]?.disabled)return O}return R},z=(R,B)=>{if(n.length)switch(R.key){case"ArrowDown":case"ArrowRight":R.preventDefault(),L(A(B,1));break;case"ArrowUp":case"ArrowLeft":R.preventDefault(),L(A(B,-1));break;default:break}};return At("div",{className:Mt("cleen",r),style:i,ref:v,children:xs("div",{className:a?.container,style:p?.container,children:[o&&At(de,{id:S,htmlFor:x,required:t,tooltip:l,className:Mt("cleen-mb-1.5",a?.label?.className),classNames:a?.label?.classNames,...p?.label,children:o}),At("div",{id:x,role:"radiogroup","aria-labelledby":o?S: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:n?.map((R,B)=>{let V=`${x}-${B}`,U=R.radioPosition??f,O=!!R.disabled;return xs("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",O?"cleen-cursor-not-allowed":"hover:cleen-bg-muted hover:cleen-border-neutral-300 cleen-cursor-pointer",d==="horizontal"&&"cleen-flex-1",N(R?.id)&&"cleen-border-primary hover:cleen-border-primary",a?.radioContainer,R?.className,N(R?.id)&&a?.radioActive),style:{...p?.radioContainer,...R?.style},onClick:_=>{!O&&_.target instanceof Element&&!_.target.closest("label, input, a, button")&&w.current[B]?.click()},children:[R.leftIcon,U==="left"&&At(Cs,{ref:_=>{w.current[B]=_},id:V,name:E,value:R.id,checked:N(R.id),disabled:O,tabIndex:B===D?0:-1,onChange:()=>F(R.id),onKeyDown:_=>z(_,B),className:Mt(O&&"cleen-opacity-50",a?.radioOuterCheckBox,R?.classNames?.outerCheckBox),style:{...p?.radioOuterCheckBox,...R?.styles?.outerCheckBox}}),xs("label",{htmlFor:V,className:Mt("cleen-flex-1",O?"cleen-cursor-not-allowed":"cleen-cursor-pointer",a?.radioLabelsContainer,R?.classNames?.labelsContainer),style:{...p?.radioLabelsContainer,...R?.styles?.labelsContainer},children:[xs("div",{className:Mt("cleen-flex cleen-items-center cleen-gap-1",O&&"cleen-opacity-50"),children:[At("span",{className:Mt("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",a?.radioTitle,R?.classNames?.title),style:{...p?.radioTitle,...R?.styles?.title},children:R.title}),At("span",{className:Mt("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",a?.radiotPostTitle,R?.classNames?.postTitle),style:{...p?.radiotPostTitle,...R?.styles?.postTitle},children:R.postTitle})]}),At("span",{className:Mt("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",a?.radioSubTitle,R?.classNames?.subTitle),style:{...p?.radioSubTitle,...R?.styles?.subTitle},children:R?.subTitle})]}),U==="right"&&At(Cs,{ref:_=>{w.current[B]=_},id:V,name:E,value:R.id,checked:N(R.id),disabled:O,tabIndex:B===D?0:-1,onChange:()=>F(R.id),onKeyDown:_=>z(_,B),className:Mt(O&&"cleen-opacity-50",a?.radioOuterCheckBox),style:p?.radioOuterCheckBox}),U==="hidden"&&At(Cs,{ref:_=>{w.current[B]=_},id:V,name:E,value:R.id,checked:N(R.id),disabled:O,tabIndex:B===D?0:-1,onChange:()=>F(R.id),onKeyDown:_=>z(_,B),className:"cleen-sr-only"}),R.rightIcon]},R?.id)})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&At(ie,{...y})]})})});import{cn as Vr,ColorHelpers as zE}from"@cleen/ui-core";import{forwardRef as HE,useRef as UE,useState as GE}from"react";import{jsx as Fn,jsxs as nx}from"react/jsx-runtime";var $E=HE(function({id:t,required:n,label:o,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:P,...I},x){let[S,E]=GE(0),T=i!==void 0,N=T?i:S,F=d?.length>0?d:Array.from({length:s},(R,B)=>B+1),w=UE([]),M=F.findIndex(R=>R===N),k=M>=0?M:0,D=R=>{T||E(R),p?.(R)},L=R=>{let B=F[R];B!==void 0&&(D(B),w.current[R]?.focus())},A=(R,B)=>{if(b)return;let V=F.length;if(V)switch(R.key){case"ArrowRight":case"ArrowUp":R.preventDefault(),L((B+1)%V);break;case"ArrowLeft":case"ArrowDown":R.preventDefault(),L((B-1+V)%V);break;case"Home":R.preventDefault(),L(0);break;case"End":R.preventDefault(),L(V-1);break;default:break}},z=typeof o=="string"?o:"Rating";return Fn("div",{className:Vr("cleen",u),style:v,ref:x,...I,children:nx("div",{className:Vr("cleen-space-y-2",C?.container),style:P?.container,children:[o&&Fn(de,{htmlFor:t,required:n,tooltip:l,className:Vr("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...P?.label,children:o}),nx("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Fn("div",{role:"radiogroup","aria-label":z,className:Vr("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...f?{gap:f}:{},...P?.list},children:F?.map((R,B)=>Fn("button",{id:t,ref:V=>{w.current[B]=V},role:"radio","aria-checked":N===R,"aria-label":`${R}`,tabIndex:B===k?0:-1,onClick:()=>D(R),onKeyDown:V=>A(V,B),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===R?{borderColor:y,backgroundColor:zE.trasparentize(y,.9),color:y}:{},...P?.item},type:"button",children:Fn("span",{className:Vr("cleen-font-medium cleen-text-sm",C?.value),style:P?.value,children:R})},R))}),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 WE}from"react";import{components as qE}from"react-select";import{jsx as og,jsxs as rx}from"react/jsx-runtime";var ax=e=>{let[t,n]=WE(!1),o=e.data;return og("div",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:og(qE.Option,{...e,children:rx("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[rx("div",{className:"cleen-flex-1",children:[o?.label,o?.sublabel&&og("p",{className:"cleen-text-xs",children:o?.sublabel})]}),typeof o?.icon=="function"?o.icon({...e,isHovered:t}):o?.icon]})})})};import{components as KE}from"react-select";import{jsx as ng,jsxs as XE}from"react/jsx-runtime";var lx=e=>{let t=e.data;return ng(KE.SingleValue,{...e,children:XE("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[ng("p",{children:t?.label}),t?.sublabel&&ng("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as Kl,ZIndex as dx}from"@cleen/ui-core";import{forwardRef as ZE,useId as JE,useState as mx}from"react";import jE from"react-select";import{components as YE}from"react-select";import{jsx as rg,jsxs as cx}from"react/jsx-runtime";var ix=({isLoading:e,inputValue:t,options:n,createNewOptionCallback:o,createNewOptionLabelStringCb:l,children:r,...a})=>{let i=t?.trim().toLowerCase(),p=n?.some(s=>s?.labelString?s.labelString.toLowerCase()===i:typeof s?.label=="string"?s.label.toLowerCase()===i:!1);return rg("div",{className:"cleen",children:cx(YE.MenuList,{options:n,...a,children:[r,o&&!e&&t&&t?.length>0&&!p&&cx("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[rg(xt,{}),rg("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{o(t)},children:l?.(t)||t})]})]})})};import{components as QE}from"react-select";import{jsx as sx}from"react/jsx-runtime";var px=({isLoading:e,noDataFound:t,...n})=>sx(QE.NoOptionsMessage,{...n,children:e?sx(ce,{}):t||"No data found"});import{jsx as Ho,jsxs as fx}from"react/jsx-runtime";var ux=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),eL=ZE(function({label:t,labelTooltip:n,sublabel:o,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:P,...I},x){let[S,E]=mx(!1),[T,N]=mx(""),F=JE(),w=I.inputId??l??r??F,M=(D,L)=>{if(!ux(D.data))return!1;let{labelString:A,label:z}=D.data;return A?A.toLowerCase().includes(L.toLowerCase()):typeof z=="string"?z.toLowerCase().includes(L.toLowerCase()):!1},k=D=>ux(D)?D.labelString??(typeof D.label=="string"?D.label:""):"";return Ho("div",{className:Kl("cleen",i),style:y,ref:x,children:fx("div",{className:Kl("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",p?.cleenContainer),style:u?.cleenContainer,children:[(t||o)&&fx("div",{className:Kl("cleen-flex cleen-flex-col cleen-gap-1",p?.labels?.container),style:u?.labels?.container,children:[t&&Ho(de,{htmlFor:w,required:a,tooltip:n,...p?.labels?.label,...u?.labels?.label,children:t}),o&&Ho("span",{className:Kl("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",p?.labels?.sublabel),style:u?.labels?.sublabel,children:o})]}),Ho(jE,{...C&&{menuIsOpen:S,inputValue:T,onInputChange:D=>N(D),onMenuOpen:()=>E(!0),onMenuClose:()=>E(!1)},...!I.filterOption&&{filterOption:M},...!I.getOptionLabel&&{getOptionLabel:k},id:l||r,classNames:p,isDisabled:d,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:w,className:Kl("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",p?.inputOuterContainer),styles:{...u,control:(D,L)=>{let A={...D,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(A,L):A},menuPortal:(D,L)=>{let A={...D,zIndex:dx.SELECT,...u?.menuPortal};return u?.menuPortal?u?.menuPortal(A,L):A},menu:(D,L)=>{let A={...D,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:dx.SELECT,...u?.menu};return u?.menu?u?.menu(A,L):A},option:(D,L)=>{let A={...D,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(A,L):A},menuList:(D,L)=>{let A={...D,"::-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(A,L):A},singleValue:(D,L)=>{let A={...D,color:L.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return u?.singleValue?u?.singleValue(A,L):A},input:(D,L)=>{let A={...D,color:"rgba(var(--cleen-foreground))"};return u?.input?u?.input(A,L):A}},components:{IndicatorSeparator:()=>null,SingleValue:D=>Ho(lx,{...D}),NoOptionsMessage:D=>Ho(px,{isLoading:s,noDataFound:m?.noDataFound,...D}),MenuList:D=>Ho(ix,{isLoading:s,inputValue:T,createNewOptionCallback:C,createNewOptionLabelStringCb:P,...D}),Option:ax,...b}}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Ho(ie,{...v})]})})});import{jsx as hx,jsxs as tL}from"react/jsx-runtime";function gx({children:e,title:t,className:n="",renderHeader:o}){return tL("div",{className:`cleen-w-full cleen-h-full ${n}`,"data-testid":`drawer-container-${t}`,children:[o?o(t):hx("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),hx("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as po}from"@cleen/ui-core";import{forwardRef as oL,useState as nL}from"react";import{Fragment as cL,jsx as gt,jsxs as Ps}from"react/jsx-runtime";function rL({icon:e,iconSrc:t,iconName:n,iconSize:o=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:o,height:o,...a},children:e}):t?gt("img",{src:t,alt:l,width:o,height:o,className:r,style:a}):n?gt(Ee,{name:n,width:o,height:o,className:r,style:a}):null}function bx({item:e,depth:t,iconSize:n=24,classNames:o,styles:l}){let[r,a]=nL(!1),i={...e,classNames:{...o,...e.classNames},styles:{...l,...e.styles}},p=Array.isArray(i?.items)&&i.items.length>0,s=i?.iconSize??n,d=t>0?{paddingLeft:12+t*28}:{},f=Ps(cL,{children:[Ps("div",{className:po("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[gt(rL,{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)&>(Le,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return p?Ps("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[Ps("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(bx,{item:m,depth:t+1,iconSize:n,classNames:o,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 aL=oL(function({title:t,icon:n,iconName:o,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:n,iconName:o,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(bx,{item:C,depth:0,iconSize:r,classNames:b,styles:u})})}),lL=aL;import{cn as mo}from"@cleen/ui-core";import{useEffect as dL,useLayoutEffect as mL,useRef as zr,useState as uL}from"react";import{cn as Xl}from"@cleen/ui-core";import{useMemo as iL}from"react";import{Link as sL}from"react-router-dom";import{jsx as Yl,jsxs as pL}from"react/jsx-runtime";function Ql({item:e,activeId:t,onClick:n,countBadge:o,classNames:l,styles:r,renderIcon:a}){let i=t===e?.id,p=iL(()=>e?a?a(e,i):e.icon?e.icon:e.iconSrc?Yl("img",{src:e.iconSrc,alt:e?.name||e?.label,className:Xl("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?Yl(Ee,{name:e.iconName,className:Xl("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=pL("div",{"data-testid":`nav-item-${e?.id}`,className:Xl("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||n?.(e)},children:[p,o&&Yl("div",{className:Xl("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:o})]});return Yl(Ne,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:Xl("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...r?.tooltip,label:e?.label,children:e?.path?Yl(sL,{to:e.path,children:s}):s})}import{jsx as uo,jsxs as An}from"react/jsx-runtime";var yx="--cleen-sidebar-fit",vx="data-cleen-sidebar-measuring",Ss=e=>e?.getBoundingClientRect().height??0,Ix=e=>{let t=getComputedStyle(e);return parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)};function Cx({navigationItems:e,bottomNavigationItems:t=[],drawerContent:n={},logo:o,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:P,renderSidebarItem:I}){let[x,S]=uL(d),E=zr(null),T=zr(null),N=zr(null),F=zr(null),w=zr(null),M=zr(null),k=!!o,D=!!r;mL(()=>{let B=E.current,V=T.current,U=F.current;if(!B||!V||!U||typeof ResizeObserver>"u")return;let O=H=>(B.style.setProperty(yx,`${H}px`),Ss(N.current)+Ix(U)+(parseFloat(getComputedStyle(U).rowGap)||0)+Ss(w.current)+Ss(M.current)),_=()=>{B.setAttribute(vx,"");let H=O(0),G=O(1),q=V.clientHeight-Ix(V)-1,$=G>H?Math.min(1,Math.max(0,(q-H)/(G-H))):1;B.style.setProperty(yx,`${$}px`),Ss(V),B.removeAttribute(vx)};_();let K=new ResizeObserver(_);return K.observe(V),()=>K.disconnect()},[e.length,t.length,k,D]);let L=f!==void 0?f:x,A=!!L,z=B=>{let V=L===B.id?null:B.id;f===void 0&&S(V),m?.(V)};dL(()=>{if(!b||!A)return;let B=V=>{E.current&&!E.current.contains(V.target)&&(f===void 0&&S(null),m?.(null))};return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[b,A,f,m]);let R=B=>{!y||!A||E.current&&!E.current.contains(B.relatedTarget)&&(f===void 0&&S(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",...C},ref:E,onBlur:R,tabIndex:y?0:void 0,children:[An("div",{ref:T,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:P?.navigation,children:[o&&uo("div",{ref:N,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:P?.logo,onClick:l,children:o}),An("div",{ref:F,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:P?.navigationItems,children:[uo("nav",{ref:w,className:mo("cleen-flex cleen-flex-col cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)]",v?.upperNavigationItemsWrapper),style:P?.upperNavigationItemsWrapper,children:e.map(B=>An("div",{children:[I?I(B,L===B.id,z):uo(Ql,{item:B,activeId:L,onClick:z,countBadge:B.badgeCount,classNames:{...v?.navigationItem,...B?.classNames},styles:{...P?.navigationItem,...B?.styles}}),B?.withBottomDivider&&uo("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},B.id))}),An("div",{ref:M,className:mo("cleen-flex cleen-flex-col cleen-items-center cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)]",v?.bottomNavigationItemsWrapper),style:P?.bottomNavigationItemsWrapper,children:[t.map(B=>An("div",{children:[I?I(B,L===B.id,z):uo(Ql,{item:B,activeId:L,onClick:z,countBadge:B.badgeCount,classNames:{...v?.navigationItem,...B?.classNames},styles:{...P?.navigationItem,...B?.styles}}),B?.withBottomDivider&&uo("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},B.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":A&&s==="right","cleen-border-l cleen-border-l-border":A&&s==="left"},v?.drawer),style:{...P?.drawer,width:A?`${p}px`:"0px",visibility:A?"visible":"hidden"},children:[L&&n[L]&&uo("div",{className:mo("cleen-flex-1 cleen-overflow-auto",v?.drawerContent),style:P?.drawerContent,children:n[L]}),L&&(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:P?.drawerFooter,children:typeof i=="function"?i(L):i||a})]})]})}var ne=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as xx}from"@cleen/ui-core";import{forwardRef as fL}from"react";import{jsx as Px}from"react/jsx-runtime";var hL={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"},gL=fL(function({width:t,height:n,roundness:o="md",variant:l="default",className:r,style:a},i){let p=ne(l),s={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...n!==void 0?{height:typeof n=="number"?`${n}px`:n}:{},...a};return Px("div",{ref:i,className:xx("cleen",r),children:Px("div",{className:xx("cleen-bg-muted",hL[o],t===void 0&&"cleen-w-full",n===void 0&&"cleen-h-4",p),style:s})})});import{cn as ag}from"@cleen/ui-core";import{forwardRef as bL}from"react";import{jsx as ws,jsxs as yL}from"react/jsx-runtime";var lg=bL(function({className:t,style:n,variant:o="default",itemCount:l=1},r){let a=ne(o);return ws("div",{ref:r,className:ag("cleen",t),style:n,children:ws("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((i,p)=>yL("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[ws("div",{className:ag("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",a)}),ws("div",{className:ag("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",a)})]},p))})})});import{cn as Sx}from"@cleen/ui-core";import{forwardRef as vL}from"react";import{jsx as cg}from"react/jsx-runtime";var ig=vL(function({className:t,style:n,variant:o="default",itemCount:l=1},r){let a=ne(o);return cg("div",{ref:r,className:Sx("cleen",t),style:n,children:cg("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((i,p)=>cg("div",{className:Sx("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",a)},p))})})});import{cn as wx}from"@cleen/ui-core";import{forwardRef as IL}from"react";import{jsx as On,jsxs as Ms}from"react/jsx-runtime";var sg=IL(function({className:t,style:n,variant:o="default"},l){let r=ne(o);return On("div",{ref:l,className:wx("cleen",t),style:n,children:Ms("div",{className:wx("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"}),Ms("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"}),Ms("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"})]}),Ms("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 Mx}from"@cleen/ui-core";import{forwardRef as CL}from"react";import{jsx as pg}from"react/jsx-runtime";var dg=CL(function({className:t,style:n,variant:o="default",itemCount:l=1},r){let a=ne(o);return pg("div",{ref:r,className:Mx("cleen",t),style:n,children:pg("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((i,p)=>pg("div",{className:Mx("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",a)},p))})})});import{cn as ks}from"@cleen/ui-core";import{forwardRef as xL}from"react";import{jsx as Ts,jsxs as kx}from"react/jsx-runtime";var Zl=xL(function({className:t,style:n,variant:o="default"},l){let r=ne(o);return Ts("div",{ref:l,className:ks("cleen",t),style:n,children:kx("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:[Ts("div",{className:ks("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)}),kx("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Ts("div",{className:ks("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)}),Ts("div",{className:ks("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",r)})]})]})})});import{cn as Hr}from"@cleen/ui-core";import{forwardRef as PL}from"react";import{jsx as Ur,jsxs as Ns}from"react/jsx-runtime";var Bs=PL(({className:e,style:t,variant:n="default"},o)=>{let l=ne(n);return Ur("div",{ref:o,className:Hr("cleen",e),style:t,children:Ns("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:[Ns("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[Ur("div",{className:Hr("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",l)}),Ns("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Ur("div",{className:Hr("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",l)}),Ur("div",{className:Hr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),Ns("div",{className:"cleen-space-y-2 cleen-w-full",children:[Ur("div",{className:Hr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",l)}),Ur("div",{className:Hr("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});Bs.displayName="AssessmentHeaderSkeleton";import{cn as Ot}from"@cleen/ui-core";import{forwardRef as SL}from"react";import{jsx as _t,jsxs as Gr}from"react/jsx-runtime";var mg=SL(function({className:t,style:n,variant:o="default"},l){let r=ne(o);return _t("div",{ref:l,className:Ot("cleen",t),style:n,children:Gr("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)}),Gr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[Gr("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)})]}),Gr("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)})]}),Gr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[Gr("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 wL}from"react";import{cn as ML}from"@cleen/ui-core";import{jsx as ug}from"react/jsx-runtime";var fg=wL(function({className:t,style:n,itemCount:o=3,variant:l="default"},r){return ug("div",{ref:r,className:ML("cleen",t),style:n,children:ug("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:o}).map((a,i)=>ug(Zl,{variant:l},i))})})});import{cn as _n}from"@cleen/ui-core";import{forwardRef as kL}from"react";import{jsx as bt,jsxs as Jl}from"react/jsx-runtime";var Tx=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],hg=kL(function({className:t,style:n,variant:o="default"},l){let r=ne(o);return bt("div",{ref:l,className:_n("cleen",t),style:n,children:Jl("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:[Jl("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)=>Jl("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))})]}),Jl("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))}),Jl("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:Tx.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:Tx.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 TL}from"react";import{jsx as fo,jsxs as Rs}from"react/jsx-runtime";var gg=TL(({variant:e="default",itemCount:t=3,className:n,style:o},l)=>{let r=ne(e);return fo("div",{ref:l,className:Vn("cleen",n),style:o,children:fo(Pe,{className:"cleen-max-h-fit",children:Rs("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[Rs("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)=>Rs("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))}),Rs("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 Es}from"@cleen/ui-core";import{forwardRef as NL}from"react";import{jsx as jl,jsxs as BL}from"react/jsx-runtime";var bg=NL(function({className:t,style:n,variant:o="default",itemCount:l=5},r){let a=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 jl("div",{ref:r,className:Es("cleen",t),style:n,children:BL("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:Es("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:Es("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:Es("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 Ls}from"@cleen/ui-core";import{forwardRef as RL}from"react";import{jsx as ec,jsxs as Nx}from"react/jsx-runtime";var yg=RL(function({className:t,style:n,variant:o="default",itemCount:l=4},r){let a=ne(o);return ec("div",{ref:r,className:Ls("cleen",t),style:n,children:Nx("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)=>Nx("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[ec("div",{className:Ls("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",a)}),ec("div",{className:Ls("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",a)})]},p)),ec("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:ec("div",{className:Ls("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",a)})})]})})});import{cn as Bx}from"@cleen/ui-core";import{forwardRef as EL}from"react";import{jsx as vg}from"react/jsx-runtime";var LL=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],Ig=EL(function({className:t,style:n,variant:o="default",colors:l=LL},r){let a=ne(o);return vg("div",{ref:r,className:Bx("cleen",t),style:n,children:vg("div",{className:Bx("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:vg("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as Ds}from"@cleen/ui-core";import{forwardRef as DL}from"react";import{jsx as $r,jsxs as Rx}from"react/jsx-runtime";var Cg=DL(function({className:t,style:n,variant:o="default"},l){let r=ne(o);return $r("div",{ref:l,className:Ds("cleen",t),style:n,children:Rx("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[$r("div",{className:Ds("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:$r("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Rx("div",{className:Ds("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[$r("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),$r("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),$r("div",{className:Ds("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 FL}from"react";import{jsx as nt,jsxs as ho}from"react/jsx-runtime";var xg=FL(function({className:t,style:n,variant:o="default"},l){let r=ne(o);return nt("div",{ref:l,className:at("cleen",t),style:n,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:n,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 Pg}from"@cleen/ui-core";import{forwardRef as AL}from"react";import{jsx as Sg,jsxs as OL}from"react/jsx-runtime";var wg=AL(function({className:t,style:n,variant:o="default"},l){let r=ne(o);return Sg("div",{ref:l,className:Pg("cleen",t),style:n,children:OL("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Sg("div",{className:Pg("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",r)}),Sg("div",{className:Pg("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",r)})]})})});import{cn as tc}from"@cleen/ui-core";import{forwardRef as _L}from"react";import{jsx as Wr,jsxs as Ex}from"react/jsx-runtime";var Mg=_L(function({className:t,style:n,variant:o="default",itemCount:l=5},r){let a=ne(o),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return Wr("div",{ref:r,className:tc("cleen",t),style:n,children:Wr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:l}).map((p,s)=>Ex("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[Wr("div",{className:tc("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",a)}),Ex("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[Wr("div",{className:tc("cleen-bg-muted cleen-rounded cleen-h-4",i[s%i.length],a)}),Wr("div",{className:tc("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",a)})]}),Wr("div",{className:tc("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",a)})]},s))})})});import{cn as Lx}from"@cleen/ui-core";import{forwardRef as VL}from"react";import{jsx as Tg}from"react/jsx-runtime";var kg=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],Ng=VL(function({className:t,style:n,variant:o="default",itemCount:l},r){let a=ne(o),i=l??kg.length;return Tg("div",{ref:r,className:Lx("cleen",t),style:n,children:Tg("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((p,s)=>{let d=s<kg.length?kg[s]:s===i-1?"cleen-w-3/5":"cleen-w-full";return Tg("div",{className:Lx("cleen-bg-muted cleen-rounded cleen-h-3",d,a)},s)})})})});import{cn as Dx}from"@cleen/ui-core";import{forwardRef as zL}from"react";import{jsx as Fx}from"react/jsx-runtime";var Bg=zL(function({className:t,style:n,variant:o="default"},l){let r=ne(o);return Fx("div",{ref:l,className:Dx("cleen",t),style:n,children:Fx("div",{className:Dx("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)})})});import{cn as zn}from"@cleen/ui-core";import{forwardRef as HL}from"react";import{jsx as Vt,jsxs as Fs}from"react/jsx-runtime";var Rg=HL(function({className:t,style:n,variant:o="default"},l){let r=ne(o);return Vt("div",{ref:l,className:zn("cleen",t),style:n,children:Fs("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"})})})}),Fs("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)}),Fs("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)}),Fs("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 oc}from"@cleen/ui-core";import{forwardRef as UL}from"react";import{jsx as nc,jsxs as Eg}from"react/jsx-runtime";var As=UL(function({variant:t="default",className:n,style:o},l){let r=ne(t);return nc("div",{ref:l,className:oc("cleen",n),style:o,children:Eg("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:[Eg("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:[nc("div",{className:oc("cleen-bg-muted cleen-rounded-full cleen-size-1.5",r)}),nc("div",{className:oc("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",r)})]}),Eg("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[nc("div",{className:oc("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",r)}),nc("div",{className:oc("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",r)})]})]})})});As.displayName="SkeletonBadgeCard";import{forwardRef as GL}from"react";import{jsx as Be}from"react/jsx-runtime";var $L=GL(function({className:t,style:n,variant:o="default",itemCount:l=3,colors:r,skeleton:a="card",isShowing:i=!1,children:p},s){if(!i)return p;let d={ref:s,variant:o,itemCount:l,colors:r,className:t,style:n};switch(a){case"card2":return Be(Bs,{...d});case"card3":return Be(mg,{...d});case"cardStack":return Be(fg,{...d});case"contentCard":return Be(gg,{...d});case"infoCard":return Be(xg,{...d});case"widgetCard":return Be(As,{...d});case"image":return Be(Cg,{...d});case"video":return Be(Rg,{...d});case"avatar":return Be(lg,{...d});case"dataGrid":return Be(bg,{...d});case"text":return Be(Bg,{...d});case"paragraph":return Be(Ng,{...d});case"list":return Be(Mg,{...d});case"form":return Be(yg,{...d});case"banner":return Be(sg,{...d});case"chart":return Be(hg,{...d});case"button":return Be(dg,{...d});case"badge":return Be(ig,{...d});case"input":return Be(wg,{...d});case"glowingCard":return Be(Ig,{...d});default:return Be(Zl,{...d})}});import{cn as Uo}from"@cleen/ui-core";import{forwardRef as WL,useCallback as Lg,useEffect as qL,useRef as Ax,useState as Ox}from"react";import{jsx as Go,jsxs as Os}from"react/jsx-runtime";var Hn=WL(function({id:t,required:n,minValue:o=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:P,labels:I,tooltip:x,infoLabels:S},E){let[T,N]=Ox(i??o),F=p!==void 0?p:T,w=Ax(null),[M,k]=Ox(!1),D=Ax(!1),L=(F-o)/(l-o)*100,A=Math.min(100,Math.max(0,L)),z=Lg(H=>{let G=Math.round((H-o)/r)*r+o;return Math.min(l,Math.max(o,G))},[o,l,r]),R=Lg((H,G)=>{let q=z(H);p===void 0&&N(q),d?.(q),G&&f?.(q)},[z,p,d,f]),B=Lg(H=>{let G=w.current;if(!G)return o;let q=G.getBoundingClientRect(),$=(H-q.left)/q.width;return z(o+$*(l-o))},[o,l,z]),V=H=>{if(v)return;let G;switch(H.key){case"ArrowRight":case"ArrowUp":G=F+a;break;case"ArrowLeft":case"ArrowDown":G=F-a;break;case"Home":G=o;break;case"End":G=l;break;default:return}H.preventDefault(),R(G,!0)},U=H=>{v||(H.preventDefault(),k(!0))},O=H=>{if(v||D.current){D.current=!1;return}R(B(H.clientX),!0)},_=H=>{v||(H.preventDefault(),k(!0))};qL(()=>{if(!M)return;let H=Y=>{R(B(Y.clientX))},G=Y=>{k(!1),D.current=!0,f?.(z(B(Y.clientX)))},q=Y=>{Y.touches.length>0&&R(B(Y.touches[0].clientX))},$=Y=>{k(!1),D.current=!0,f?.(z(B(Y.changedTouches[0].clientX)))};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",G),document.addEventListener("touchmove",q),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",G),document.removeEventListener("touchmove",q),document.removeEventListener("touchend",$)}},[M,z,B,R,f]);let K=H=>Go("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Go("div",{className:Uo("cleen",m),style:y,ref:E,children:Os("div",{className:Uo("cleen-w-full",b?.container),style:u?.container,children:[C&&Go(de,{htmlFor:t,required:n,tooltip:P,...b?.label,...u?.label,children:C}),Os("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&&K(I?.minLabel),Os("div",{ref:w,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:O,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:`${A}%`,...u?.filledTrack}})}),Go(Ne,{invertColors:!0,...x,label:I?.tooltip?.(F)??F,className:Uo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",x?.className),style:{left:`calc(${A}% - 8px)`,...x?.style},isOpen:M||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":F,"aria-valuemin":o,"aria-valuemax":l,"aria-disabled":v,"aria-label":typeof C=="string"?C:"Slider","aria-labelledby":t,onMouseDown:U,onTouchStart:_,onKeyDown:V})})]}),s==="inline"?I?.maxLabel&&K(I?.maxLabel):(I?.minLabel||I?.maxLabel)&&Os("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[I?.minLabel&&K(I?.minLabel),I?.maxLabel&&K(I?.maxLabel)]})]}),(S?.errorMessage||S?.infoMessage||S?.subtitle)&&Go(ie,{...S})]})})});import{cn as zt}from"@cleen/ui-core";import{forwardRef as KL,useCallback as Dg,useEffect as XL,useRef as YL,useState as _x}from"react";import{jsx as Ht,jsxs as _s}from"react/jsx-runtime";var QL=KL(function({id:t,required:n,minValue:o=0,maxValue:l=100,step:r=1,defaultValue:a=[o,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:P,tooltips:I,infoLabels:x},S){let[E,T]=_x(a??[o,l]),N=i!==void 0?i:E,F=YL(null),[w,M]=_x(null),k=Dg(H=>{let G=Math.round((H-o)/r)*r+o;return Math.min(l,Math.max(o,G))},[o,l,r]),D=(N[0]-o)/(l-o)*100,L=Math.min(100,Math.max(0,D)),A=(N[1]-o)/(l-o)*100,z=Math.min(100,Math.max(0,A)),R=Dg(H=>{let G=[k(Math.min(H[0],H[1])),k(Math.max(H[0],H[1]))];i===void 0&&T(G),s?.(G)},[k,i,s]),B=Dg(H=>{let G=F.current;if(!G)return o;let q=G.getBoundingClientRect(),$=(H-q.left)/q.width;return k(o+$*(l-o))},[o,l,k]),V=H=>G=>{if(u)return;let q=H==="min"?N[0]:N[1],$;switch(G.key){case"ArrowRight":case"ArrowUp":$=q+r;break;case"ArrowLeft":case"ArrowDown":$=q-r;break;case"Home":$=o;break;case"End":$=l;break;default:return}G.preventDefault();let Y=H==="min"?[Math.min($,N[1]),N[1]]:[N[0],Math.max($,N[0])];R(Y),d?.([k(Y[0]),k(Y[1])])},U=H=>G=>{u||(G.preventDefault(),M(H))},O=H=>{if(u)return;let G=B(H.clientX),q=Math.abs(G-N[0]),$=Math.abs(G-N[1]);q<$?R([G,N[1]]):R([N[0],G])},_=H=>G=>{u||(G.preventDefault(),M(H))};XL(()=>{if(!w)return;let H=Y=>{let ae=B(Y.clientX);R(w==="min"?[ae,N[1]]:[N[0],ae])},G=Y=>{let ae=B(Y.clientX),be=w==="min"?[ae,N[1]]:[N[0],ae];M(null),d?.(be)},q=Y=>{if(Y.touches.length>0){let ae=B(Y.touches[0].clientX);R(w==="min"?[ae,N[1]]:[N[0],ae])}},$=Y=>{let ae=B(Y.changedTouches[0].clientX),be=w==="min"?[ae,N[1]]:[N[0],ae];M(null),d?.(be)};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",G),document.addEventListener("touchmove",q),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",G),document.removeEventListener("touchmove",q),document.removeEventListener("touchend",$)}},[w,N,B,R,d]);let K=H=>Ht("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Ht("div",{className:zt("cleen",f),style:b,ref:S,children:_s("div",{className:zt("cleen-w-full",m?.container),style:y?.container,children:[v&&Ht(de,{htmlFor:t,required:n,tooltip:C,...m?.label,...y?.label,children:v}),_s("div",{className:zt({"cleen-flex cleen-items-center cleen-gap-2":p==="inline"},m?.slider),style:y?.slider,children:[p==="inline"&&P?.minLabel!==void 0&&K(P?.minLabel),_s("div",{ref:F,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:O,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:`${z-L}%`,...y?.filledTrack}})}),Ht(Ne,{invertColors:!0,isOpen:w==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:P?.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":o,"aria-valuemax":N[1],"aria-disabled":u,"aria-label":typeof v=="string"?`${v} minimum value`:"Minimum value",onMouseDown:U("min"),onTouchStart:_("min"),onKeyDown:V("min")})}),Ht(Ne,{invertColors:!0,isOpen:w==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:P?.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(${z}% - 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:_("max"),onKeyDown:V("max")})})]}),p==="inline"?P?.maxLabel&&K(P?.maxLabel):(P?.minLabel||P?.maxLabel)&&_s("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[P?.minLabel&&K(P?.minLabel),P?.maxLabel&&K(P?.maxLabel)]})]}),(x?.errorMessage||x?.infoMessage||x?.subtitle)&&Ht(ie,{...x})]})})});import{cn as qr}from"@cleen/ui-core";import{forwardRef as ZL,useRef as JL,useState as Vx}from"react";import{jsx as Un,jsxs as e6}from"react/jsx-runtime";var jL=ZL(function({label:t,infoLabels:n,value:o,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]=Vx(0),P=o!==void 0,I=P?o:v,[x,S]=Vx(null),E=x!==null?x+1:I,T=!p,N=JL([]),F=I>0?I-1:0,w=L=>{P||C(L),l?.(L)},M=L=>{L<0||L>=r||(w(L+1),N.current[L]?.focus())},k=(L,A)=>{switch(L.key){case"ArrowRight":case"ArrowUp":L.preventDefault(),M((A+1)%r);break;case"ArrowLeft":case"ArrowDown":L.preventDefault(),M((A-1+r)%r);break;case"Home":L.preventDefault(),M(0);break;case"End":L.preventDefault(),M(r-1);break;default:break}},D=typeof t=="string"?t:"Rating";return Un("div",{className:qr("cleen",d),style:f,ref:u,...y,children:e6("div",{className:qr("cleen-space-y-2",m?.container),style:b?.container,children:[t&&Un("span",{className:qr("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?D:`${D}: ${I} out of ${r}`,className:qr("cleen-flex cleen-gap-3",m?.list),style:{...a?{gap:a}:{},...b?.list},children:Array.from({length:r},(L,A)=>{let z=Un(rl,{"aria-hidden":"true",className:qr("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...b?.star,fill:(p?I:E)>A?s:"transparent"}});return T?Un("button",{type:"button",ref:R=>{N.current[A]=R},role:"radio","aria-checked":I===A+1,"aria-label":`${A+1} ${A+1===1?"star":"stars"}`,tabIndex:A===F?0:-1,onMouseEnter:()=>S(A),onMouseLeave:()=>S(null),onClick:()=>w(A+1),onKeyDown:R=>k(R,A),className:qr("focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary focus-visible:cleen-rounded"),children:z},A):Un("span",{className:"cleen-cursor-default",children:z},A)})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&Un(ie,{...n})]})})});import{cn as go}from"@cleen/ui-core";import{forwardRef as t6}from"react";import{jsx as $o,jsxs as zx}from"react/jsx-runtime";var Hx=t6(({steps:e,activeStep:t=0,orientation:n="horizontal",color:o="rgb(var(--cleen-primary))",className:l,classNames:r,style:a,styles:i,...p},s)=>{let d=n==="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 zx("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?o: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?o:void 0,backgroundColor:b?o:"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?o:void 0}})}),zx("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?o: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?o:void 0,...i?.subtitle},children:f.subtitle})]})]},m)})})})});Hx.displayName="Stepper";import{cn as ze}from"@cleen/ui-core";import{forwardRef as o6,useMemo as Gx,useState as Kr}from"react";var Ux={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 a6,jsx as De,jsxs as Xr}from"react/jsx-runtime";var n6=[],r6=o6(function({items:t=n6,value:n,defaultValue:o,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,...P},I){let x={...Ux,...b},[S,E]=Kr(o??[]),T=n??S,[N,F]=Kr(!1),w=s??N,[M,k]=Kr(T),[D,L]=Kr(""),[A,z]=Kr([]),[R,B]=Kr(!1),V=Gx(()=>[...t,...A.filter(Z=>!t.some(W=>W.id===Z.id))],[t,A]),U=D.trim(),O=Gx(()=>{let Z=U.toLowerCase();return Z?V.filter(W=>W.label.toLowerCase().includes(Z)):V},[V,U]),_=!!U&&!V.some(Z=>Z.label.toLowerCase()===U.toLowerCase())&&!!r,K=a||R,H=T.length,G=H>0,q=Z=>{Z&&(k(T),L("")),s===void 0&&F(Z),d?.(Z)},$=Z=>{k(W=>W.includes(Z)?W.filter(re=>re!==Z):[...W,Z])},Y=async()=>{if(!(!r||!U||K)){B(!0);try{let Z=await r(U);Z&&(z(W=>W.some(re=>re.id===Z.id)?W:[...W,Z]),k(W=>W.includes(Z.id)?W:[...W,Z.id]),L(""))}finally{B(!1)}}},ae=Z=>{Z.key==="Enter"&&_&&(Z.preventDefault(),Y())},be=()=>{k([])},pe=()=>{let Z=V.filter(W=>M.includes(W.id));n===void 0&&E(M),l?.(M,Z),q(!1)},Me=Xr(a6,{children:[_&&De("div",{className:"cleen-p-1.5",children:De(te,{variant:"borderless-blue",fullWidth:!0,isLoading:K,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)})})}),O.length===0?_?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:O.map(Z=>Xr("li",{onClick:()=>$(Z.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:M.includes(Z.id),onClick:W=>W.stopPropagation(),label:De("span",{title:Z.label,className:"cleen-select-none",children:Z.label}),fullTriggerArea:!0}),Z.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:Z.count})]},Z.id))})]}),X=Xr("div",{className:ze("cleen-flex cleen-flex-col",u?.content),style:C?.content,role:"dialog",children:[De(Ie,{autoFocus:!0,value:D,onChange:Z=>L(Z.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}),Xr("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:M.length>0?x.selected(M.length):x.footer}),Xr("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:M.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:w,onOpenChange:q,position:f,zIndex:m,content:X,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},...P,children:Xr("button",{type:"button",disabled:p,"aria-label":x.trigger,"aria-haspopup":"dialog","aria-expanded":w,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":G,"cleen-opacity-50 cleen-cursor-not-allowed":p},u?.trigger,G&&u?.triggerActive),style:{...C?.trigger,...G?C?.triggerActive:{}},children:[i??De(ll,{className:"cleen-size-4 cleen-shrink-0"}),G&&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:H}),De(en,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var Fg={default:"Default","sans-serif":"Sans-serif",serif:"Serif",monospace:"Monospace",cursive:"Cursive",fantasy:"Fantasy"},Ag={white:"White",yellow:"Yellow",green:"Green",cyan:"Cyan",blue:"Blue",magenta:"Magenta",red:"Red",black:"Black"},Og={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:Fg,captionColors:Ag,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 _g=10,Vs=1.7777777777777777,Vg=1080,Yr=-1,zg=.5,Hg=2,$x=.25,rc=.05,Wx=2500,qx=5,Kx=.5,ac=5,Xx=480,Yx=24,Qx=16,zs="--cleen-video-player-height",l6=.045,c6=12,i6=32,Zx=`clamp(${c6}px, calc(var(${zs}, 360px) * ${l6}), ${i6}px)`,Jx=250,jx=40,Ug="cleen-video-player-caption-style",Wo={fontFamily:"default",fontColor:"white",fontSize:1,backgroundColor:"black",backgroundOpacity:.75},Qr={default:void 0,"sans-serif":"sans-serif",serif:"serif",monospace:"monospace",cursive:"cursive",fantasy:"fantasy"},lc={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]},Hs=[.5,.75,1,1.25,1.5,1.75,2],Us=[0,.25,.5,.75,1],eP=72,tP=240,oP=3,nP={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 s6,useEffect as Gg,useImperativeHandle as p6,useRef as d6}from"react";import{jsx as h6}from"react/jsx-runtime";var m6=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],u6=e=>{let t=m6;return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))},f6=s6(function({playing:t=!1,volume:n,playbackRate:o,...l},r){let a=d6(null);return p6(r,()=>a.current,[]),Gg(()=>{let i=a.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,l.src]),Gg(()=>{a.current&&n!==void 0&&(a.current.volume=n)},[n]),Gg(()=>{a.current&&o!==void 0&&(a.current.playbackRate=o)},[o]),h6("video",{...u6(l),ref:a,width:"100%",height:"100%"})});import{forwardRef as g6}from"react";import b6 from"react-player";import{jsx as y6}from"react/jsx-runtime";var $g=g6(function(t,n){return y6(b6,{...t,ref:n,width:"100%",height:"100%"})});var cc=(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))(cc||{});var Zr=e=>{if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e),n=Math.floor(t/3600),o=Math.floor(t%3600/60),l=t%60,r=a=>String(a).padStart(2,"0");return n>0?`${n}:${r(o)}:${r(l)}`:`${o}:${r(l)}`},Wg=(e,t)=>{if(!Array.isArray(e)||!(t>0))return[];let n=e.filter(o=>Number.isFinite(o?.start)).map(o=>({...o,start:Math.min(Math.max(o.start,0),t)})).sort((o,l)=>o.start-l.start);return n.map((o,l)=>{let r=n[l+1]?.start??t,a=o.end!==void 0&&Number.isFinite(o.end)?Math.min(Math.max(o.end,o.start),r):r;return{...o,end:a}}).filter(o=>o.end>o.start)},qg=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),rP=e=>e?Array.from({length:e.length},(t,n)=>({start:e.start(n),end:e.end(n)})):[],aP=(e,t)=>e.length===t.length&&e.every((n,o)=>n.start===t[o].start&&n.end===t[o].end),lP=(e,t,n)=>{let o=n-t;if(!(o>0)||!Number.isFinite(o))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,n)})).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)/o,width:(a.end-a.start)/o}))},Gn=({width:e,height:t})=>e>0&&t>0?Math.min(e,t):Math.max(e,t,0),Kg=(e,t)=>{if(!(t!==void 0&&t>0)||e.length===0)return-1;let n=[...e].sort((l,r)=>Gn(l)-Gn(r)||l.bitrate-r.bitrate),o=n.filter(l=>Gn(l)<=t);return(o[o.length-1]??n[0]).index},cP=(e,t)=>{let n=[...e].sort((o,l)=>Gn(l)-Gn(o)||l.bitrate-o.bitrate);return n.map(o=>{let l=Gn(o),r=l>0?t(l):`${Math.round(o.bitrate/1e3)} kbps`,a=n.filter(i=>Gn(i)===l);return{value:o.index,label:l>0&&a.length>1?`${r} (${(o.bitrate/1e6).toFixed(1)} Mbps)`:r}})},v6=(e,t)=>{let n=-1;return e.forEach((o,l)=>{t>=o.start&&(n=l)}),Math.max(n,0)},sc=(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),iP=(e,t)=>{let n=Array.from(e).filter(o=>o.kind==="chapters");return t&&n.find(o=>o.language===t)||n[0]},sP=e=>Array.from(e).map(t=>({start:t.startTime,end:t.endTime,title:t.text?.replace(/<[^>]*>/g,"").trim()||void 0})),$s=e=>Array.from(e).filter(({kind:t="subtitles"})=>["subtitles","captions"].includes(t)),pP=(e,t,n)=>e.label||e.srcLang||n(t+1),ic=(e,t)=>e.includes(t),Xg=e=>{let t=e&&typeof e=="object"?e:{},n=Object.keys(lc),o=Object.keys(Qr);return{fontFamily:ic(o,t.fontFamily)?t.fontFamily:Wo.fontFamily,fontColor:ic(n,t.fontColor)?t.fontColor:Wo.fontColor,fontSize:ic(Hs,t.fontSize)?t.fontSize:Wo.fontSize,backgroundColor:ic(n,t.backgroundColor)?t.backgroundColor:Wo.backgroundColor,backgroundOpacity:ic(Us,t.backgroundOpacity)?t.backgroundOpacity:Wo.backgroundOpacity}},Gs=(e,t=1)=>`rgba(${lc[e].join(",")},${t})`,dP=({fontFamily:e,fontColor:t,fontSize:n,backgroundColor:o,backgroundOpacity:l})=>({fontFamily:Qr[e],fontSize:`calc(${Zx} * ${n})`,color:Gs(t),backgroundColor:Gs(o,l)});import{cn as mc}from"@cleen/ui-core";import{forwardRef as PD,useCallback as Xe,useImperativeHandle as SD,useMemo as ib,useReducer as wD,useRef as mS,useState as MD}from"react";import{cn as Xn}from"@cleen/ui-core";var qo="cleen-text-[#fff]",Yg="cleen-text-[rgba(255,255,255,0.45)]",mP="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",uP="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",fP="!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",Ws="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",qs="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as gP}from"@cleen/ui-core";import{useLayoutEffect as x6,useRef as P6}from"react";import{useEffect as I6,useState as C6}from"react";var Ks=[],hP=(e,t,n,o,l)=>{let[r,a]=C6(Ks);return I6(()=>{let i=e.current?.textTracks;if(!t||!i)return;let p,s=()=>a(p?.activeCues?Array.from(p.activeCues):Ks),d=()=>{let f=$s(i),m=f[n]??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(Ks)}},[t,n,o,l,e]),t?r:Ks};import{jsx as Qg}from"react/jsx-runtime";var S6=e=>typeof VTTCue<"u"&&e instanceof VTTCue?e.getCueAsHTML():"",w6=({cue:e,className:t,style:n})=>{let o=P6(null);return x6(()=>{o.current?.replaceChildren(S6(e))},[e]),Qg("span",{ref:o,className:t,style:n})},bP=({videoRef:e,src:t,showCaptions:n,trackIndex:o,captionStyle:l,pictureInPicture:r,hidden:a,controlsVisible:i,controlsOnHover:p,classNames:s,styles:d})=>{let f=hP(e,n&&!r,o,t,!a);return a||r||f.length===0?null:Qg("div",{className:gP("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)=>Qg(w6,{cue:m,className:gP("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:{...dP(l),...d?.captionsText}},`${m.id}-${m.startTime}-${b}`))})};import{cn as M6}from"@cleen/ui-core";import{forwardRef as k6}from"react";import{jsx as T6}from"react/jsx-runtime";var Ut=k6(function({label:t,onClick:n,disabled:o,active:l,className:r,style:a,children:i},p){return T6("button",{ref:p,type:"button","aria-label":t,"aria-pressed":l,onClick:n,disabled:o,className:M6("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 xP}from"react";import{useCallback as N6,useEffect as B6,useRef as yP,useState as R6}from"react";var vP=(e,t)=>{let[n,o]=R6(null),l=yP(!1),r=yP(!1),a=N6(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;o({ratio:f,time:f*t})},[e,t]);return B6(()=>{let p=d=>{l.current&&a(d.clientX)},s=()=>{l.current=!1,r.current||o(null)};return window.addEventListener("pointermove",p),window.addEventListener("pointerup",s),()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",s)}},[a]),{preview:n,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||o(null)}}}};import{cn as E6}from"@cleen/ui-core";import{Fragment as L6,jsx as IP}from"react/jsx-runtime";var Xs=({buffered:e,start:t,end:n,className:o,style:l})=>IP(L6,{children:lP(e,t,n).map(r=>IP("div",{"aria-hidden":!0,className:E6("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:{...l,left:`${r.left*100}%`,width:`${r.width*100}%`}},r.left))});import{cn as Ys}from"@cleen/ui-core";import{jsx as Qs,jsxs as D6}from"react/jsx-runtime";var CP=({chapters:e,duration:t,currentTime:n,buffered:o,classNames:l,styles:r})=>Qs("div",{"aria-hidden":!0,className:Ys("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=>Qs("div",{className:Ys("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:D6("div",{className:Ys("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:[Qs(Xs,{buffered:o,start:a.start,end:a.end,className:l?.chapterBuffered,style:r?.chapterBuffered}),Qs("div",{className:Ys("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:`${qg(a,n)*100}%`}})]})},a.start))});import{Fragment as F6,jsx as $n,jsxs as Zs}from"react/jsx-runtime";var PP=({allowBarSeeking:e,chapters:t,duration:n,currentTime:o,buffered:l,onSeek:r,seekLabel:a,progressLabel:i,classNames:p,styles:s})=>{let d=xP(null),f=xP(null),{preview:m,previewHandlers:b}=vP(d,n),y=m?sc(t,m.time):void 0,u=t.length>0,v=u&&$n(CP,{chapters:t,duration:n,currentTime:o,buffered:l,classNames:p,styles:s}),C=$n(Xs,{buffered:l,start:0,end:n,className:p?.seekBuffered,style:s?.seekBuffered}),P=f.current?.offsetWidth||0;if(e){let x=p?.seekSlider?.classNames;return Zs("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&&Zs("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}% - ${P/2}px), calc(100% - ${P}px))`,...s?.seekTooltip},children:[$n("span",{children:Zr(m.time)}),y?.title&&Zs("span",{className:Gt("cleen-font-medium cleen-truncate",p?.seekTooltipChapter),style:s?.seekTooltipChapter,children:["\xB7 ",y.title]})]}),$n(Hn,{value:o,maxValue:n,step:.01,keyboardStep:ac,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=n>0?Math.min(o/n*100,100):0;return $n("div",{role:"progressbar","aria-label":i,"aria-valuemin":0,"aria-valuemax":Math.floor(n),"aria-valuenow":Math.floor(o),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||Zs(F6,{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 V6,useRef as BP,useState as RP}from"react";import{cn as A6}from"@cleen/ui-core";import{cn as $t}from"@cleen/ui-core";import{useId as SP}from"react";import{jsx as Wn,jsxs as Zg}from"react/jsx-runtime";var pc=({title:e,children:t,onReset:n,resetLabel:o,classNames:l,styles:r})=>{let a=SP();return Zg("section",{"aria-labelledby":a,className:$t("cleen-flex cleen-flex-col cleen-gap-3",l?.settingsGroup),style:r?.settingsGroup,children:[Zg("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}),n&&Wn("button",{type:"button",onClick:n,className:$t("cleen-font-semibold cleen-text-xs cleen-text-primary hover:cleen-underline",l?.settingsResetButton),style:r?.settingsResetButton,children:o})]}),t]})},bo=({label:e,options:t,value:n,onChange:o,classNames:l,styles:r})=>{let a=SP(),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===n;return p.swatch?Wn("button",{type:"button","aria-label":p.ariaLabel,"aria-pressed":s,title:p.ariaLabel,onClick:()=>o(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:()=>o(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?Zg("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 wP}from"react/jsx-runtime";var Jg=-1,O6=e=>`${Math.round(e*100)}%`,MP=({tracks:e,trackIndex:t,showCaptions:n,captionStyle:o,onCaptionStyleChange:l,dispatch:r,labels:a,classNames:i,styles:p})=>{let s={classNames:i,styles:p},d=t<e.length?t:0,f=[{value:Jg,label:a.captionsOff},...e.map((u,v)=>({value:v,label:pP(u,v,a.captionsTrack)}))],m=Object.keys(Qr).map(u=>({value:u,label:a.captionFontFamilies[u]??Fg[u],style:{fontFamily:Qr[u]}})),b=Object.keys(lc).map(u=>{let v=a.captionColors[u]??Ag[u];return{value:u,label:v,ariaLabel:v,swatch:Gs(u)}}),y=u=>u.map(v=>({value:v,label:O6(v)}));return wP("div",{className:A6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",i?.captionsSettings),style:p?.captionsSettings,children:[qn(pc,{title:a.language,...s,children:qn(bo,{options:f,value:n?d:Jg,onChange:u=>r(u===Jg?{type:"hideCaptions"}:{type:"selectCaptionsTrack",index:u}),...s})}),wP(pc,{title:a.captionStyle,onReset:()=>l(Wo),resetLabel:a.resetCaptionStyle,...s,children:[qn(bo,{label:a.fontFamily,options:m,value:o.fontFamily,onChange:u=>l({fontFamily:u}),...s}),qn(bo,{label:a.fontColor,options:b,value:o.fontColor,onChange:u=>l({fontColor:u}),...s}),qn(bo,{label:a.fontSize,options:y(Hs),value:o.fontSize,onChange:u=>l({fontSize:u}),...s}),qn(bo,{label:a.backgroundColor,options:b,value:o.backgroundColor,onChange:u=>l({backgroundColor:u}),...s}),qn(bo,{label:a.backgroundOpacity,options:y(Us),value:o.backgroundOpacity,onChange:u=>l({backgroundOpacity:u}),...s})]})]})};import{cn as _6}from"@cleen/ui-core";import{jsx as jg}from"react/jsx-runtime";var kP=({quality:e,labels:t,classNames:n,styles:o})=>{let l=cP(e.levels,t.qualityLevel),r=l.find(i=>i.value===e.current)?.label,a=[{value:Yr,label:t.qualityAuto(r)},...l];return jg("div",{className:_6("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",n?.qualitySettings),style:o?.qualitySettings,children:jg(pc,{title:t.quality,classNames:n,styles:o,children:jg(bo,{options:a,value:e.selected,onChange:e.onChange,classNames:n,styles:o})})})};import{cn as Js}from"@cleen/ui-core";import{jsx as eb,jsxs as TP}from"react/jsx-runtime";var NP=({playbackRate:e,dispatch:t,label:n,classNames:o,styles:l})=>TP("div",{className:Js("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",o?.speedContent),style:l?.speedContent,children:[TP("div",{className:Js("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",o?.speedHeader),style:l?.speedHeader,children:[eb("span",{className:o?.speedLabel,style:l?.speedLabel,children:n}),eb("span",{className:Js("cleen-tabular-nums cleen-text-primary",o?.speedValue),style:l?.speedValue,children:`${e.toFixed(2)}\xD7`})]}),eb(Hn,{minValue:zg,maxValue:Hg,step:$x,value:e,onChange:r=>t({type:"setPlaybackRate",playbackRate:r}),className:Js("cleen-w-full",o?.speedSlider?.className),classNames:o?.speedSlider?.classNames,labels:{minLabel:`${zg}\xD7`,maxLabel:`${Hg}\xD7`},...l?.speedSlider})]});import{jsx as kt}from"react/jsx-runtime";var Jr=18,EP=["button:not(:disabled)","[href]","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)","[tabindex]"].map(e=>`${e}:not([tabindex="-1"])`).join(", "),LP=({containerRef:e,portalContainer:t,isOpen:n,onOpenChange:o,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:P})=>{let[I,x]=RP(0),[S,E]=RP(),T=BP(null),N=BP(null),F=A=>{o(!1),A&&T.current?.focus()};V6(()=>{if(!n)return;let A=requestAnimationFrame(()=>{let R=N.current;(R?.querySelector('[role="tab"][aria-selected="true"]')??R?.querySelector(EP))?.focus({preventScroll:!0})}),z=R=>{R.key==="Escape"&&(o(!1),document.activeElement===T.current&&T.current?.focus())};return document.addEventListener("keydown",z),()=>{cancelAnimationFrame(A),document.removeEventListener("keydown",z)}},[n,o]);let w=C?.settingsPopover?.classNames,M=C?.settingsTabs?.classNames,k=A=>{if(A){let z=e.current?.clientHeight;E(z===void 0?void 0:Math.min(tP,z-eP))}o(A)},D=A=>{if(A.stopPropagation(),A.key==="Escape"){F(!0);return}if(A.key==="Tab"&&N.current){let z=Array.from(N.current.querySelectorAll(EP)),R=z[0],B=z[z.length-1];A.shiftKey&&document.activeElement===R?(A.preventDefault(),B?.focus()):!A.shiftKey&&document.activeElement===B&&(A.preventDefault(),R?.focus())}},L=[...l?[{id:"quality",label:kt(pa,{width:Jr,height:Jr}),content:kt(kP,{quality:r,labels:u,classNames:C,styles:P})}]:[],...a?[{id:"speed",label:kt(nl,{width:Jr,height:Jr}),content:kt(NP,{playbackRate:p,dispatch:y,label:u.playbackSpeed,classNames:C,styles:P})}]:[],...i?[{id:"captions",label:kt(ya,{width:Jr,height:Jr}),content:kt(MP,{tracks:s,trackIndex:d,showCaptions:f,captionStyle:m,onCaptionStyleChange:b,dispatch:y,labels:u,classNames:C,styles:P})}]:[]];return kt(no,{position:"top-right",isOpen:n,onOpenChange:k,portalContainer:t,className:C?.settingsPopover?.className,classNames:{...w,popover:Xo("!cleen-w-72 cleen-flex cleen-flex-col cleen-overflow-hidden",w?.popover),trigger:Xo("cleen-flex cleen-items-center",w?.trigger)},...P?.settingsPopover,styles:{...P?.settingsPopover?.styles,popover:{height:S,...P?.settingsPopover?.styles?.popover}},content:kt("div",{ref:N,className:"cleen-flex cleen-flex-col cleen-min-h-0",onKeyDown:D,onDoubleClick:A=>A.stopPropagation(),children:kt(Hl,{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:{...M,container:Xo("cleen-flex cleen-flex-col cleen-min-h-0",M?.container),list:Xo("cleen-shrink-0 cleen-mb-0 cleen-px-3 cleen-pt-2",M?.list),tab:Xo("cleen-pb-2",M?.tab),content:Xo("cleen-min-h-0 cleen-overflow-y-auto",M?.content)},...P?.settingsTabs})}),children:kt(Ut,{ref:T,label:u.settings,active:n,className:Xo(C?.controlButton,C?.settingsButton),style:{...P?.controlButton,...P?.settingsButton},children:kt(Ja,{width:v,height:v})})})};import{cn as DP}from"@cleen/ui-core";import{jsx as tb}from"react/jsx-runtime";var FP=({hasTracks:e,showCaptions:t,onToggle:n,portalContainer:o,labels:l,classNames:r,styles:a})=>{let i=r?.subtitlesBadge?.classNames;return tb(Ne,{label:e?l.subtitles:l.noSubtitles,className:r?.subtitlesTooltip?.className,classNames:r?.subtitlesTooltip?.classNames,portalContainer:o,...a?.subtitlesTooltip,children:tb("button",{type:"button","aria-label":l.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:n,className:DP("cleen-rounded-md disabled:cleen-opacity-40",Ko,r?.subtitlesButton),style:a?.subtitlesButton,children:tb(Le,{variant:"sleek",className:r?.subtitlesBadge?.className,classNames:{...i,container:DP(mP,{[uP]:e},{[fP]:t},i?.container)},...a?.subtitlesBadge,children:l.subtitlesBadge})})})};import{jsx as Kn,jsxs as z6}from"react/jsx-runtime";var AP=({muted:e,volume:t,size:n})=>e||t===0?Kn(ml,{width:n,height:n}):t<.75?Kn(dl,{width:n,height:n}):Kn(pl,{width:n,height:n}),OP=({isFullscreen:e,size:t})=>e?Kn(Ua,{width:t,height:t}):Kn(Va,{width:t,height:t}),jr=({forward:e,seconds:t,size:n})=>z6("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[Kn(e?Qa:Ya,{width:n,height:n}),Kn("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(n*.34)},children:t})]});import{cn as js}from"@cleen/ui-core";import{jsx as ep,jsxs as H6}from"react/jsx-runtime";var _P=({muted:e,volume:t,dispatch:n,labels:o,iconSize:l,classNames:r,styles:a})=>H6("div",{className:js("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2 cleen-min-w-0",r?.volume),style:a?.volume,children:[ep(Ut,{label:e?o.unmute:o.mute,active:e,onClick:()=>n({type:"toggleMuted"}),className:js(r?.controlButton,r?.muteButton),style:{...a?.controlButton,...a?.muteButton},children:ep(AP,{muted:e,volume:t,size:l})}),ep("div",{role:"group","aria-label":o.volume,className:js("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:ep(Hn,{minValue:0,maxValue:1,step:rc,value:e?0:t,onChange:i=>n({type:"setVolume",volume:i,muted:i===0}),className:js("cleen-w-full",r?.volumeSlider?.className),classNames:r?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...a?.volumeSlider})})]});import{jsx as Ae,jsxs as dc}from"react/jsx-runtime";var VP=({containerRef:e,portalContainer:t,videoRef:n,src:o,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:P,controlsOnHover:I,onSeek:x,onSeekBy:S,onTogglePlay:E,onToggleFullscreen:T,pictureInPictureSupported:N,onTogglePictureInPicture:F,labels:w,compact:M,classNames:k,styles:D})=>{let{playing:L,currentTime:A,duration:z,muted:R,volume:B,playbackRate:V,showCaptions:U,captionsTrackIndex:O,settingsOpen:_,isPictureInPicture:K,isFullscreen:H}=l,G=M?Qx:Yx,q=sc(p,A)?.title,$=I&&!_,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:{...D?.controlButton,...D?.[Me]}});return dc("div",{className:Xn("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-pointer-events-none",{"cleen-hidden":P},k?.controlBar),style:D?.controlBar,children:[Ae(bP,{videoRef:n,src:o,showCaptions:U,trackIndex:O,captionStyle:y,pictureInPicture:K,hidden:P,controlsVisible:C,controlsOnHover:$,classNames:k,styles:D}),dc("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:D?.controls,children:[a("seekbar")&&Ae(PP,{allowBarSeeking:i,chapters:p,duration:z,currentTime:A,buffered:s,onSeek:x,seekLabel:w.seek,progressLabel:w.progress,classNames:k,styles:D}),dc("div",{className:Xn("cleen-flex cleen-items-center","cleen-gap-2.5",{"sm:cleen-gap-3.5":!M},qo,k?.controlsRow),style:D?.controlsRow,children:[a("play")&&!M&&Ae(Ut,{label:L?w.pause:w.play,onClick:E,...pe("playButton"),children:L?Ae(vt,{width:G,height:G}):Ae(It,{width:G,height:G})}),a("backward")&&Ae(Ut,{label:w.seekBackward(d),onClick:()=>S(-d),...pe("backwardButton"),children:Ae(jr,{seconds:d,size:G})}),a("forward")&&Ae(Ut,{label:w.seekForward(d),onClick:()=>S(d),...pe("forwardButton"),children:Ae(jr,{forward:!0,seconds:d,size:G})}),a("volume")&&Ae(_P,{muted:R,volume:B,dispatch:r,labels:w,iconSize:G,classNames:k,styles:D}),a("time")&&dc("span",{className:Xn("cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap",{"cleen-text-xxs":M},k?.time),style:D?.time,children:[Ae("span",{className:k?.currentTime,style:D?.currentTime,children:Zr(A)})," ",dc("span",{className:Xn("cleen-font-medium",Yg,k?.duration),style:D?.duration,children:["/ ",Zr(z)]})]}),q?Ae("span",{title:q,className:Xn("cleen-flex-1 cleen-min-w-0 cleen-font-medium cleen-text-[13px] cleen-truncate",Yg,k?.chapterTitle),style:D?.chapterTitle,children:q}):Ae("span",{className:"cleen-flex-1"}),a("subtitles")&&m&&!M&&Ae(FP,{hasTracks:m,showCaptions:U,onToggle:()=>r({type:"toggleCaptions"}),portalContainer:t,labels:w,classNames:k,styles:D}),a("settings")&&(Y||ae||be)&&Ae(LP,{containerRef:e,portalContainer:t,isOpen:_,onOpenChange:v,showQualityTab:Y,quality:f,showSpeedTab:ae,showCaptionsTab:be,playbackRate:V,captionTracks:b,captionsTrackIndex:O,showCaptions:U,captionStyle:y,onCaptionStyleChange:u,dispatch:r,labels:w,iconSize:G,classNames:k,styles:D}),a("pictureInPicture")&&N&&Ae(Ut,{label:K?w.exitPictureInPicture:w.pictureInPicture,active:K,onClick:F,...pe("pictureInPictureButton"),children:Ae(qa,{width:G,height:G})}),a("fullscreen")&&Ae(Ut,{label:H?w.exitFullscreen:w.fullscreen,active:H,onClick:T,...pe("fullscreenButton"),children:Ae(OP,{isFullscreen:H,size:G})})]})]})]})};import{cn as zP}from"@cleen/ui-core";import{cn as U6}from"@cleen/ui-core";import{jsx as G6}from"react/jsx-runtime";var ob=({label:e,onClick:t,className:n,style:o,children:l})=>G6("button",{type:"button","aria-label":e,onClick:t,className:U6("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",Ws,qs,qo,Ko,n),style:o,children:l});import{jsx as Yn,jsxs as $6}from"react/jsx-runtime";var HP=({playing:e,seekStep:t,visible:n,hidden:o,controlsOnHover:l,isShown:r,onTogglePlay:a,onSeekBy:i,labels:p,classNames:s,styles:d})=>$6("div",{className:zP("cleen-relative cleen-flex cleen-items-center cleen-gap-6 cleen-transition-opacity cleen-duration-300",n?l?"cleen-opacity-0 group-hover:cleen-opacity-100":"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":o},s?.overlay),style:d?.overlay,children:[r("backward")&&Yn(ob,{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:zP("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",Ws,qs,qo,Ko,s?.overlayPlayButton),style:d?.overlayPlayButton,children:e?Yn(vt,{width:28,height:28}):Yn(It,{width:28,height:28})}),r("forward")&&Yn(ob,{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 nb}from"@cleen/ui-core";import{jsx as UP,jsxs as W6}from"react/jsx-runtime";var GP=({label:e,subLabel:t,classNames:n,styles:o})=>W6("div",{className:nb("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:[UP("span",{className:nb("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",n?.placeholderLabel),style:o?.placeholderLabel,children:e}),t&&UP("span",{className:nb("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",n?.placeholderSubLabel),style:o?.placeholderSubLabel,children:t})]});import{useEffect as $P,useState as q6}from"react";var rb=[],WP=["progress","timeupdate","loadedmetadata","durationchange","seeked","emptied"],qP=(e,t,n)=>{let[o,l]=q6(rb);return $P(()=>{l(rb)},[t]),$P(()=>{let r=e.current;if(!r)return;let a=()=>{let i=rP(r.buffered);l(p=>aP(p,i)?p:i.length>0?i:rb)};return a(),WP.forEach(i=>r.addEventListener(i,a)),()=>WP.forEach(i=>r.removeEventListener(i,a))},[e,t,n]),o};import{useCallback as K6,useState as X6}from"react";var Y6=()=>{try{let e=window.localStorage.getItem(Ug);return Xg(e?JSON.parse(e):void 0)}catch{return Xg(void 0)}},KP=()=>{let[e,t]=X6(Y6),n=K6(o=>{t(l=>{let r={...l,...o};try{window.localStorage.setItem(Ug,JSON.stringify(r))}catch{}return r})},[]);return{captionStyle:e,updateCaptionStyle:n}};import{useEffect as Q6,useState as Z6}from"react";var ab=[],XP=(e,t,n,o)=>{let[l,r]=Z6(ab);return Q6(()=>{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?sP(y):ab),u},f=()=>{clearInterval(s);let y=0;s=setInterval(()=>{y+=1,(d()||y>=jx)&&clearInterval(s)},Jx)},m=()=>{let y=iP(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(ab)}},[e,t,n,o]),l};import{useEffect as J6,useState as j6}from"react";var YP=e=>{let[t,n]=j6(!1);return J6(()=>{let o=e.current;if(!o||typeof ResizeObserver>"u")return;let l=new ResizeObserver(([r])=>{n(r.contentRect.width<Xx)});return l.observe(o),()=>l.disconnect()},[e]),t};import{useCallback as Wt,useEffect as eD,useRef as QP,useState as tD}from"react";var ZP=e=>{try{return e.matches(":focus-visible")}catch{return!1}},oD=()=>typeof window<"u"&&window.matchMedia?.("(hover: none)").matches?"touch":"mouse",JP=(e,t,n,o,l)=>{let r=QP(void 0),a=QP(void 0),[i,p]=tD(oD),s=Wt(()=>{let x=o.current,S=document.activeElement;return!!x&&!!S&&S!==x&&x.contains(S)&&ZP(S)},[o]),d=Wt(()=>{clearTimeout(r.current);let x=()=>{r.current=setTimeout(()=>{if(s()){x();return}n({type:"setControlsActive",controlsActive:!1})},Wx)};x()},[n,s]),f=Wt(()=>{n({type:"setControlsActive",controlsActive:!0}),d()},[n,d]),m=Wt(()=>{e&&!s()&&(clearTimeout(r.current),n({type:"setControlsActive",controlsActive:!1}))},[n,s,e]);eD(()=>{if(!e){clearTimeout(r.current),n({type:"setControlsActive",controlsActive:!0});return}return d(),()=>clearTimeout(r.current)},[n,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]),P=Wt(x=>{x.target!==x.currentTarget&&ZP(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:P}}};import{useCallback as nD,useEffect as rD}from"react";var jP=(e,t,n)=>(rD(()=>{let o=()=>n({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",o),()=>document.removeEventListener("fullscreenchange",o)},[e,n]),nD(()=>{let o=e.current;!o||!t||(document.fullscreenElement?document.exitFullscreen():o.requestFullscreen?.())},[e,t]));import{useLayoutEffect as aD,useRef as lD}from"react";var eS=(e,t)=>{let n=lD(null);aD(()=>{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 l=n.current;n.current=null,l?.isConnected&&document.activeElement===o&&l.focus({preventScroll:!0})},[e,t])};import{useCallback as cD}from"react";var iD='input, textarea, select, [contenteditable]:not([contenteditable="false"])',sD='button, a[href], [role="button"], [role="tab"]',pD='[role="slider"], [role="radiogroup"], [role="tablist"]',dD=e=>{let t=e.target;return t===e.currentTarget?!1:t.closest(iD)?!0:e.key===" "||e.key==="Enter"?!!t.closest(sD):e.key.startsWith("Arrow")||e.key==="Home"||e.key==="End"?!!t.closest(pD):!1},tS=({volume:e,canSeekBackward:t,canSeekForward:n,canUseVolume:o,canUseCaptions:l,dispatch:r,seekBy:a,seekToPercentage:i,togglePlay:p,toggleFullscreen:s,restart:d})=>cD(f=>{if(f.metaKey||f.ctrlKey||f.altKey||dD(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(-ac),t);case"ArrowRight":return m(()=>a(ac),n);case"ArrowUp":return m(()=>b(Math.min(e+rc,1)),o);case"ArrowDown":return m(()=>b(Math.max(e-rc,0)),o);case"f":return m(s);case"m":return m(()=>r({type:"toggleMuted"}),o);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,n,l,o,r,d,a,i,s,p,e]);import{useCallback as mD,useEffect as oS,useRef as uD,useState as fD}from"react";var lb=()=>{},nS=e=>!!e&&typeof document<"u"&&document.pictureInPictureEnabled===!0&&typeof e.requestPictureInPicture=="function"&&!e.disablePictureInPicture,rS=(e,t,n,o,l)=>{let[r,a]=fD(!1),i=uD(!1);oS(()=>{let s=e.current;if(a(nS(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,n,o,l]),oS(()=>()=>{i.current&&document.pictureInPictureElement&&document.exitPictureInPicture().catch(lb)},[]);let p=mD(()=>{let s=e.current;!t||!nS(s)||(i.current&&document.pictureInPictureElement?document.exitPictureInPicture().catch(lb):s?.requestPictureInPicture().catch(lb))},[t,e]);return{isSupported:t&&r,togglePictureInPicture:p}};import{useEffect as hD}from"react";var aS=e=>{hD(()=>{let t=e.current;if(!t||typeof ResizeObserver>"u")return;let n=new ResizeObserver(([o])=>{t.style.setProperty(zs,`${o.contentRect.height}px`)});return n.observe(t),()=>{n.disconnect(),t.style.removeProperty(zs)}},[e])};import{useCallback as gD,useEffect as lS,useRef as bD,useState as tp}from"react";var cb=[],yD=e=>{let t=e?.api;return t&&Array.isArray(t.levels)&&typeof t.on=="function"?t:void 0},vD=e=>e.map((t,n)=>({index:n,width:t.width??0,height:t.height??0,bitrate:t.bitrate??0})),cS=(e,t,n,o)=>{let[l,r]=tp(),[a,i]=tp(cb),[p,s]=tp(Yr),[d,f]=tp(-1),m=bD(o);m.current=o,lS(()=>{let y=yD(e.current);if(!y)return;let u=()=>{let P=vD(y.levels);y.autoLevelCapping=Kg(P,m.current),i(P.length>1?P:cb),s(y.autoLevelEnabled?Yr:y.currentLevel),f(y.currentLevel)},v=(P,I)=>f(I.level),C=()=>{r(void 0),i(cb),s(Yr),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]),lS(()=>{l&&(l.autoLevelCapping=Kg(a,o))},[l,a,o]);let b=gD(y=>{l&&(l.nextLevel=y,s(y))},[l]);return{levels:a,selected:p,current:d,onChange:b}};import{useCallback as op,useEffect as ID,useRef as CD}from"react";var iS=(e,t,n,o)=>{let l=CD(0);ID(()=>{l.current=0},[n]);let r=op(s=>{let d=e.current;if(!d||!Number.isFinite(d.duration))return;o();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,o,e]),a=op(s=>{let d=e.current;!d||!Number.isFinite(d.duration)||r(d.duration*Math.min(Math.max(s,0),1))},[r,e]),i=op(s=>r((e.current?.currentTime??0)+s),[r,e]),p=op(s=>{let d=e.current;!d||!Number.isFinite(d.duration)||(o(),d.currentTime=Math.min(Math.max(s,0),d.duration))},[o,e]);return{seekTo:r,seekToPercentage:a,seekBy:i,jumpTo:p,watchedTimeRef:l}};import{useCallback as sS,useRef as xD}from"react";var pS=(e,t)=>{let n=xD({seconds:e,src:null,attempts:0,done:!1}),o=sS(r=>{let a=n.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)>Kx?r.currentTime=i:a.done=!0,a.attempts>=qx&&(a.done=!0),t({type:"seek",currentTime:i}))},[t]),l=sS(()=>{n.current.done=!0},[]);return{applyStartTime:o,cancelStartTime:l}};var dS=(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 fS}from"react/jsx-runtime";var kD=[],uS=[],TD=PD(function({src:t,tracks:n=kD,startTime:o,allowBarSeeking:l=!0,allowSeekingPastWatched:r=!0,chapters:a,hiddenControls:i=uS,hiddenOverlayControls:p=uS,aspectRatio:s=Vs,controlsOnHover:d=!1,seekStep:f=10,maxQuality:m=Vg,engine:b=$g,labels:y,onTimeChange:u,onDurationChange:v,onPause:C,onEnded:P,className:I,classNames:x,style:S,styles:E,...T},N){let F=mS(null),w=mS(null),[M,k]=wD(dS,nP),{playing:D,duration:L,muted:A,volume:z,playbackRate:R,isLoading:B,isFullscreen:V}=M,U=ib(()=>({...Og,...y}),[y]),O=ib(()=>$s(n),[n]),_=O.length>0,{captionStyle:K,updateCaptionStyle:H}=KP(),G=fe=>!i.includes(fe),q=fe=>!p.includes(fe),$=G("volume"),Y=G("fullscreen"),ae=G("pictureInPicture"),be=_&&G("subtitles"),pe=G("backward")||q("backward"),Me=G("forward")||q("forward"),{applyStartTime:X,cancelStartTime:Z}=pS(o,k),{seekTo:W,seekToPercentage:re,seekBy:se,jumpTo:ye,watchedTimeRef:ue}=iS(w,r,t,Z),{controlsVisible:xe,inputMode:J,revealControls:Re,handleMediaClick:Oe,containerHandlers:Se}=JP(D,M.controlsActive||M.settingsOpen,k,F,w),Ye=d&&J==="mouse",lt=Xe(fe=>{k({type:"setSettingsOpen",settingsOpen:fe}),fe||Re()},[Re]);aS(F);let ea=YP(F),{isSupported:Zn,togglePictureInPicture:le}=rS(w,ae,t,!B,k),Q=jP(F,Y,k);SD(N,()=>({getMediaElement:()=>w.current,play:()=>k({type:"play"}),pause:()=>k({type:"pause"}),jumpTo:ye}),[ye]);let ee=Xe(()=>k({type:"togglePlay"}),[]),ge=Xe(()=>{W(0),k({type:"play"})},[W]),_e=tS({volume:z,canSeekBackward:pe,canSeekForward:Me,canUseVolume:$,canUseCaptions:be,dispatch:k,seekBy:se,seekToPercentage:re,togglePlay:ee,toggleFullscreen:Q,restart:ge}),Jn=Se.onKeyDown,ta=Xe(fe=>{Jn(fe),_e(fe)},[Jn,_e]),Te=Xe(()=>{Oe()||ee()},[Oe,ee]),Yo=Xe(()=>k({type:"play"}),[]),hS=Xe(()=>{k({type:"pause"}),C?.()},[C]),gS=Xe(fe=>{ue.current=fe.currentTarget.duration,k({type:"pause"}),P?.()},[P,ue]),bS=Xe(fe=>{let oa=fe.currentTarget,Qo=oa.currentTime;if(Qo-ue.current<=oP)ue.current=Math.max(ue.current,Qo);else if(!r){oa.currentTime=ue.current;return}k({type:"timeUpdate",currentTime:Qo}),u?.(Qo)},[r,u,ue]),[yS,vS]=MD(),IS=Xe(fe=>{let{videoWidth:oa,videoHeight:Qo}=fe.currentTarget;vS(oa>0&&Qo>0?oa/Qo:void 0),k({type:"loaded",duration:fe.currentTarget.duration}),X(fe.currentTarget)},[X]),sb=Xe(fe=>X(fe.currentTarget),[X]),CS=Xe(fe=>{k({type:"ready"}),X(fe.currentTarget)},[X]),xS=Xe(fe=>{k({type:"durationChange",duration:fe.currentTarget.duration}),X(fe.currentTarget),v?.(fe)},[X,v]),PS=Xe(()=>k({type:"buffering"}),[]),SS=Xe(()=>k({type:"ready"}),[]),pb=!!t&&B,db=!t||!B&&(!Number.isFinite(L)||L===0),np=db||pb;eS(F,np);let rp=XP(w,(O[M.captionsTrackIndex]??O[0])?.srcLang,t,!B),wS=qP(w,t,!B),MS=cS(w,t,!B,m),kS=ib(()=>Wg(rp.length>0?rp:a,L),[rp,a,L]);return Qn("div",{className:mc("cleen",I),style:S,children:fS("div",{ref:F,className:mc("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:E?.container,onPointerMove:Se.onPointerMove,onPointerLeave:Se.onPointerLeave,onPointerDown:Se.onPointerDown,onFocus:Se.onFocus,onDoubleClick:Q,onKeyDown:ta,tabIndex:0,children:[fS("div",{className:mc("cleen-relative cleen-flex cleen-justify-center cleen-items-center",{"cleen-h-full":V},x?.viewport),style:{aspectRatio:V?void 0:s==="auto"?yS??Vs:s,...E?.viewport},children:[Qn(b,{...T,ref:w,src:t||void 0,controls:!1,playing:D,muted:A,volume:z,playbackRate:R,playsInline:!0,className:mc("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",x?.video),style:E?.video,onClick:Te,onPlay:Yo,onPause:hS,onEnded:gS,onTimeUpdate:bS,onLoadedMetadata:IS,onLoadedData:sb,onCanPlay:CS,onSeeked:sb,onDurationChange:xS,onWaiting:PS,onError:SS,crossOrigin:"anonymous",children:n.map(fe=>Qn("track",{kind:fe.kind??"subtitles",src:fe.src,srcLang:fe.srcLang,label:fe.label},fe.src))}),db&&Qn(GP,{label:U.placeholder,subLabel:U.placeholderSubLabel,classNames:x,styles:E}),pb&&Qn(ce,{size:"xl",className:mc("cleen-absolute",x?.loader?.className),classNames:x?.loader?.classNames,...E?.loader}),Qn(HP,{playing:D,seekStep:f,visible:xe,hidden:np,controlsOnHover:Ye,isShown:q,onTogglePlay:ee,onSeekBy:se,labels:U,classNames:x,styles:E})]}),Qn(VP,{compact:ea,containerRef:F,portalContainer:V?F.current:null,videoRef:w,src:t,state:M,dispatch:k,isShown:G,allowBarSeeking:l,chapters:kS,buffered:wS,quality:MS,seekStep:f,hasTracks:_,captionTracks:O,captionStyle:K,onCaptionStyleChange:H,onSettingsOpenChange:lt,visible:xe,hidden:np,controlsOnHover:Ye,onSeek:W,onSeekBy:se,onTogglePlay:ee,onToggleFullscreen:Q,pictureInPictureSupported:Zn,onTogglePictureInPicture:le,labels:U,classNames:x,styles:E})]})})});export{FS as AdvancedProgressBar,tT as AudioPlayback,iT as AudioRecorder,Di as Avatar,uT as AvatarRow,gT as Breadcrumb,te as Button,J0 as Calendar,NT as CalendarDropdown,Y3 as CanvasButton,Pe as Card,h3 as CardIcon,I3 as CardMedia,FT as Carousel,bn as Checkbox,qT as CheckboxGroup,Ee as CleenIcon,pE as CleenNotificationContainer,R2 as Collapsible,jT as ColorPicker,rN as CreditCardInput,Gl as DEFAULT_NOTIFICATION_CATEGORIES,$l as DEFAULT_NOTIFICATION_LABELS,Og as DEFAULT_VIDEO_PLAYER_LABELS,xt as Divider,o1 as Drawer,gx as DrawerContainer,lL as DrawerContentTitle,Bl as Dropdown,_N as Dropzone,W3 as EditableCard,JN as EditableMatrix,_0 as EditableText,z0 as EditableTextArea,aB as FileCard,d1 as FileStackedProgressTracker,XB as FilterDrawer,lC as FormGroup,aR as GroupSelector,vp as Icon48AlertFeatured,Ip as Icon48SuccessFeatured,Jo as IconAlertCircle,xp as IconAlertOctagon,Sp as IconAlertTriangle,wp as IconApps,kp as IconArchive,Tp as IconArrowBarDown,Np as IconArrowBarLeft,Bp as IconArrowBarRight,Rp as IconArrowBarToDown,Ep as IconArrowBarToLeft,Lp as IconArrowBarToRight,Dp as IconArrowBarToUp,Fp as IconArrowBarUp,Op as IconArrowDown,_p as IconArrowDownLeft,zp as IconArrowDownNarrow,Hp as IconArrowDownRight,Gp as IconArrowLeft,Wp as IconArrowLeftNarrow,Kp as IconArrowRight,Yp as IconArrowRightNarrow,Zp as IconArrowUp,Jp as IconArrowUpLeft,ed as IconArrowUpNarrow,td as IconArrowUpRight,od as IconAttachment,pa as IconBadgeHd,nd as IconBarChart,rd as IconBarChartSquare,ad as IconBell,ld as IconBold,md as IconBookOpen,cd as IconBookmark,mp as IconBookmarkCheck,up as IconBookmarkCheckFill,id as IconBookmarkFill,sd as IconBookmarkMinus,hp as IconBookmarkPlus,dd as IconBookmarkX,ud as IconBoxLines,hd as IconBoxText,bd as IconBracketsCheck,yd as IconBracketsEllipses,vd as IconBrickWall,Id as IconBriefcase,gp as IconBuilding,Cd as IconCalculator,fa as IconCalendar,xd as IconCertificate,Yt as IconCheck,jo as IconCheckCircle,Pd as IconCheckCircleBroken,Sd as IconCheckFill,wd as IconCheckVerified,Md as IconCheckVerifiedFill,en as IconChevronDown,kd as IconChevronDownDouble,Td as IconChevronDownLeft,Nd as IconChevronDownLeftDouble,Bd as IconChevronDownRight,Rd as IconChevronDownRightDouble,Qt as IconChevronLeft,Ed as IconChevronLeftDouble,ct as IconChevronRight,ha as IconChevronRightDouble,Ld as IconChevronSelectorVertical,Zt as IconChevronUp,Dd as IconChevronUpDouble,Fd as IconChevronUpLeft,Ad as IconChevronUpLeftDouble,Od as IconChevronUpRight,_d as IconChevronUpRightDouble,Vd as IconClick,ga as IconClock,zd as IconClockFastForward,Ud as IconClockPlay,Gd as IconClockRewind,$d as IconClone,ya as IconClosedCaption,Kd as IconCode,Xd as IconCodeBrowser,Qd as IconCodeCircle,Jd as IconColors,bp as IconColumnEdit,jd as IconCopy,em as IconCopy2,om as IconCopyCheck,nm as IconCreditCard,rm as IconCube,am as IconCubeOutline,va as IconCursorBox,lm as IconDataflow,cm as IconDataflow2,im as IconDataflow3,pm as IconDistributeHorizontal,dm as IconDollar,um as IconDollarCircle,fm as IconDot,hm as IconDotFill,gm as IconDotsGrid,Ca as IconDotsHorizontal,Co as IconDotsVertical,Im as IconDownload,Cm as IconEdit,Pm as IconEditable,Sm as IconExpand,Mm as IconExternalLink,Tm as IconExternalLink2,Nm as IconEye,Rm as IconEyeHidden,Em as IconEyeHidden2,Lm as IconFaceAngry,Dm as IconFaceLaugh,Fm as IconFaceSmile,on as IconFile,Om as IconFileCheck,Sa as IconFileCsv,_m as IconFileDownload,wa as IconFileJson,Vm as IconFileList,pt as IconFileMusic,nn as IconFilePdf,ka as IconFileSpreadsheet,jt as IconFileText,Um as IconFileUpload,Na as IconFileXls,Ba as IconFileXlsx,Tt as IconFileZip,Hm as IconFiles,Gm as IconFilter,Ra as IconFilter2,Wm as IconFlag,qm as IconFlag2,Km as IconFlagFill,Xm as IconFocus,Ym as IconFolder,Qm as IconFolderExport,Zm as IconFolderImport,Jm as IconGraduationCap,jm as IconGripVertical,eu as IconHand,tu as IconHandShield,ou as IconHash,nu as IconHeadsetMic,ru as IconHeart,au as IconHeartFill,cu as IconHouse,La as IconHouseLine,We as IconImage,iu as IconImage2,su as IconImageCheck,pu as IconImageOff,du as IconImport,mu as IconInbox,fu as IconInfoCircle,gu as IconInfoHexagon,yu as IconItalic,Iu as IconLayersMultiple,Cu as IconLayersSingle,xu as IconLayout,Su as IconLayout2,wu as IconLayoutColumns,Mu as IconLayoutCustom,Tu as IconLayoutStuffed,Nu as IconLayoutTile,Bu as IconLifeBuoy,Eu as IconLightbulb,Lu as IconLightning,Du as IconLightningFast,Fu as IconLineChart,Au as IconLineChartBar,Ou as IconLineChartBreakoutSquare,Vu as IconLineChartUp,zu as IconLines,Hu as IconLinesCheck,Uu as IconLinesPlay,$u as IconLink,Wu as IconLink2,qu as IconLinkOff,Ku as IconListBullet,Xu as IconListOrder,Qu as IconLock,Zu as IconLockFill,ju as IconLogIn,tf as IconLogOut,nf as IconLogOut2,rf as IconMagicWand,af as IconMail,lf as IconMailOpen,cf as IconMapPin,Va as IconMaximize,sf as IconMaximize2,pf as IconMessageCircle,rn as IconMessageSquare,mf as IconMessageSquare2,uf as IconMessageXSquare,Ha as IconMicrophone,Ua as IconMinimize,ff as IconMinimize2,hf as IconMinusCircle,bf as IconMobile,yf as IconMonitor,vf as IconMonitor2,If as IconMoon,Cf as IconMoonCircle,yt as IconMovie,Nt as IconName,xf as IconNavigationPointer,Pf as IconNotificationBox,Bf as IconPCSetup,Sf as IconPackage,wf as IconPalette,Mf as IconPasscodeLock,vt as IconPause,Tf as IconPauseCircle,Ef as IconPen,Lf as IconPercentageCircle,Df as IconPerspective,Af as IconPhoneCall,qa as IconPictureInPicture,Ka as IconPin,It as IconPlay,_f as IconPlayCircle,an as IconPlus,Mo as IconPlusCircle,Hf as IconPrinter,Uf as IconPulse,Xa as IconQuestionCircle,$f as IconQuote,Wf as IconRadioButton,qf as IconRadioButtonFill,Kf as IconReceipt,Xf as IconReceiptCheck,Yf as IconRedo,Ya as IconRefresh,Qf as IconRefresh2,Zf as IconRefresh3,Jf as IconRepeat,jf as IconReplace,Qa as IconReplay,th as IconRestore,nh as IconRocket,rh as IconRoundChart,ah as IconRoundChart2,ch as IconRoute,sh as IconSave,ph as IconScanDots,Za as IconScissors,Ct as IconSearch,dh as IconSend,mh as IconServer,Ja as IconSettings,uh as IconSettings2,fh as IconShare,hh as IconShieldLightning,bh as IconShieldPlus,vh as IconShieldRemove,Ih as IconShoppingBag,Ch as IconShoppingCart,xh as IconShrink,Ph as IconShuffle,Sh as IconSkipForward,wh as IconSlashCircle,Mh as IconSlashOctagon,kh as IconSocialAndroid,Th as IconSocialApple,Nh as IconSocialGithub,Bh as IconSocialGlobe,Rh as IconSocialGoogle,Lh as IconSocialInstagram,Dh as IconSocialLinkedin,Ah as IconSocialMastercard,Oh as IconSocialReact,_h as IconSocialVisa,Vh as IconSocialX,nl as IconSpeedometer,zh as IconStairs,rl as IconStar,Hh as IconStarFill,Uh as IconStarHalf,Gh as IconStars,al as IconStop,$h as IconStrikethrough,Wh as IconSun,qh as IconSwap,Kh as IconSwitchHorizontal,Yh as IconTable,ll as IconTag,Qh as IconTarget,Jh as IconTarget2,e0 as IconTextFormat,t0 as IconTextFormat2,o0 as IconTextHighlight,n0 as IconThumbsDown,r0 as IconThumbsUp,a0 as IconThumbsUpFill,l0 as IconToggle,c0 as IconTranslate,dt as IconTrash,i0 as IconTrending,s0 as IconUnderline,p0 as IconUndo,m0 as IconUnlock,sn as IconUploadCloud,il as IconUser,h0 as IconUserCheck,g0 as IconUserDollar,y0 as IconUserEdit,v0 as IconUserPlus,I0 as IconUserRight,P0 as IconUserSquare,yp as IconUserVoice,C0 as IconUsers,S0 as IconUsersUp,w0 as IconVideo,k0 as IconVideoChat,pl as IconVolume,dl as IconVolumeDown,ml as IconVolumeMute,N0 as IconWrench,He as IconX,B0 as IconXCircle,R0 as IconXCircleFill,E0 as IconXSquare,L0 as IconZoomIn,F0 as IconZoomOut,ie as InfoLabels,Ie as Input,de as Label,ce as Loader,fR as Lookup,vR as Markdown,Mn as Menu,TR as Modal,Lr as NOTIFICATION_GENERAL_CATEGORY,f6 as NativeVideoEngine,PE as Pagination,eg as PaginationGoToPage,tg as PaginationPageSize,Le as PillBadge,no as Popover,Nr as ProgressBar,jC as ProgressCircle,RE as RadioBoxGroup,VE as RadioButtonGroup,$E as Rating,$g as ReactPlayerEngine,eL as Select,Cx as Sidebar,Ql as SidebarItem,gL as Skeleton,lg as SkeletonAvatar,ig as SkeletonBadge,sg as SkeletonBanner,dg as SkeletonButton,Zl as SkeletonCard,Bs as SkeletonCard2,mg as SkeletonCard3,fg as SkeletonCardStack,hg as SkeletonChart,gg as SkeletonContentCard,bg as SkeletonDataGrid,yg as SkeletonForm,Ig as SkeletonGlowingCard,Cg as SkeletonImage,xg as SkeletonInfoCard,wg as SkeletonInput,Mg as SkeletonList,Ng as SkeletonParagraph,Bg as SkeletonText,Rg as SkeletonVideo,As as SkeletonWidgetCard,$L as SkeletonWrapper,Hn as Slider,QL as SliderRange,s1 as StackedProgressTracker,r1 as StackedProgressTrackerRow,a1 as StackedProgressTrackerStatusFilter,jL as StarRating,Hx as Stepper,F1 as Switch,Dl as TRACKER_STATUS_FILTER_ORDER,Hl as Tabs,r6 as TagFilter,Il as TextArea,Ne as Tooltip,El as TrackerItemStatus,Ll as TrackerStatusFilter,Vs as VIDEO_PLAYER_ASPECT_RATIO_DEFAULT,Vg as VIDEO_PLAYER_MAX_QUALITY_DEFAULT,_g as VIDEO_PLAYER_SEEK_STEP_DEFAULT,TD as VideoPlayer,cc as VideoPlayerControl,Fl as cleanCellValue,SC as createNotificationStore,Je as formatHours,Zr as formatTime,Pn as getEditableMatrixKey,I1 as getEditableMatrixTotals,A0 as getFileIcon,y1 as getMinutesBetween,sc as getVideoChapterAt,v6 as getVideoChapterIndex,qg as getVideoChapterProgress,Wg as getVideoChapters,G1 as groupLayout,$1 as listLayout,Rn as notification,me as notificationStore,v1 as parseHours,j0 as parseRgbaString,Rr as roundHours,wC as showNotification,W1 as stackLayout,b1 as timeToMinutes,DR as useNotifications};
|