@cleen/ui 0.1.299 → 0.1.300
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.d.ts +43 -332
- package/dist/index.js +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import{cn as xn,useAnimateNumber as _M}from"@cleen/ui-core";import{forwardRef as VM,useMemo as by}from"react";import{cn as ti,usePositionClose as LM,ZIndex as DM}from"@cleen/ui-core";import{useEffect as dy,useRef as od,useState as my}from"react";import{createPortal as FM}from"react-dom";import{jsx as nd,jsxs as uy}from"react/jsx-runtime";var _e=({bg:e,label:t,color:o,closeOnClick:n=!0,hideOnMouseDown:r=!0,isOpen:l,children:a,hasArrow:i,placement:p="top",offset:s=8,className:d,classNames:f,isDisabled:m,openDelay:h=0,invertColors:y=!1,extraUpdateTriggers:u,allowNonDescendantHover:v=!0,zIndex:I=DM.TOOLTIP,portalContainer:P,style:x,styles:C,onClick:S,onMouseEnter:L,onMouseLeave:k,...E})=>{let[F,M]=my(l??!1),[N,w]=my(!1),O=od(null),T=od(null),D=od(null),{positionStyles:U,isMounted:B,optimalPosition:R}=LM({triggerRef:T,targetRef:O,position:p,isOpen:F&&!m,offset:s,extraUpdateTriggers:u,container:P});dy(()=>{M(l??!1)},[l]);let z=A=>{S?.(A),n&&M(!1)},G=(A,V)=>{if(l!==void 0)return;let X=T.current?.contains(A.target);!v&&!X||(V?(L?.(A),h&&h>0?D.current=setTimeout(()=>{M(!0)},h):M(!0)):(D.current&&(clearTimeout(D.current),D.current=null),M(!1),k?.(A)))};return dy(()=>{let A=()=>{r&&w(!0)},V=()=>{w(!1)};return document.addEventListener("mousedown",A),document.addEventListener("mouseup",V),()=>{document.removeEventListener("mousedown",A),document.removeEventListener("mouseup",V)}},[r]),uy("div",{className:ti("cleen",d),style:x,children:[nd("div",{ref:T,className:ti("cleen-relative cleen-max-w-fit",f?.container),style:C?.container,onClick:z,onMouseEnter:A=>G(A,!0),onMouseLeave:A=>G(A,!1),...E,children:a}),t!==void 0&&F&&!m&&!N&&FM(nd("div",{className:"cleen",children:uy("div",{ref:O,className:ti("cleen-shadow cleen-px-2 cleen-py-0.5 cleen-rounded-md cleen-text-sm cleen-transition-opacity cleen-duration-200 cleen-pointer-events-none","cleen-absolute",y?"cleen-bg-primary after:cleen-border-primary cleen-text-primary-foreground":"cleen-bg-surface after:cleen-border-surface cleen-text-primary",{"cleen-opacity-0":!B,"cleen-opacity-100":B},f?.labelContainer),style:{zIndex:I,top:`${U.top}px`,left:`${U.left}px`,...e&&{backgroundColor:e},...o&&{color:o},...C?.labelContainer},children:[t,nd("div",{className:ti(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)]":R==="top"||R==="top-left"||R==="top-right","cleen-left-[calc(50%-6px)]":R==="top"||R==="bottom","cleen-left-[6px]":R==="top-left"||R==="bottom-left","cleen-right-[6px]":R==="top-right"||R==="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)]":R==="bottom"||R==="bottom-left"||R==="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)]":R==="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)]":R==="right"}]:"cleen-hidden"),style:{}})]})}),P??document.body)]})};import{cn as Bl}from"@cleen/ui-core";var fo=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),ho=(e,t,o)=>{let n=Number.isFinite(t)?t:0,r=Number.isFinite(o)?o:100;return r===n?0:(e-n)/(r-n)*100};import{cn as oi}from"@cleen/ui-core";import{jsx as rd}from"react/jsx-runtime";var ni=({serie:e,minValue:t,maxValue:o,color:n,trackHeight:r,className:l,style:a})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,p=Number.isFinite(i)?i:t,s=fo(ho(p,t,o)),d=Math.max(2,e?.height??r*1.5),f={left:`${s}%`,top:"50%"};return e.tooltip?rd(_e,{invertColors:!0,...e.tooltip,className:oi("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:oi("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:rd("div",{className:oi("cleen-rounded-full",l),style:{width:d,height:d,backgroundColor:n,...a}})}):rd("div",{className:oi("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",l),style:{width:d,height:d,backgroundColor:n,...f,...a}})};import{jsx as ri}from"react/jsx-runtime";var fy=({serie:e,minValue:t,maxValue:o,animatedGlobal:n=t,renderAnimated:r,color:l,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=fo(ho(d,t,o)),h=fo(ho(f,t,o));h<m&&([m,h]=[h,m]);let y=Math.max(0,r?n-m:h-m);if(y<1&&!r||r&&n>=h&&y===0)return ri(ni,{serie:{...e,type:"clamp",value:m},color:l,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%"},I={background:l,borderRadius:e?.radius??i??(e?.height??a)/2};return e.tooltip?ri(_e,{invertColors:!0,...e.tooltip,className:Bl("cleen-absolute",e.tooltip.className),style:{...u,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:Bl("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:Bl("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:ri("div",{className:Bl("cleen-relative cleen-size-full",p),style:{...I,...v,...s}})}):ri("div",{className:Bl("cleen-absolute cleen-pointer-events-none",p),style:{...I,...u,...s}})};import{cn as AM}from"@cleen/ui-core";import{jsx as OM}from"react/jsx-runtime";var hy=({serie:e,minValue:t,maxValue:o,className:n,style:r})=>{let l=0;if(e.type==="clamp"){let a=typeof e.value=="number"?e.value:0,i=Number.isFinite(a)?a:t;l=fo(ho(i,t,o))}else{let a=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:o,p=fo(ho(a,t,o)),s=fo(ho(i,t,o));l=(p+s)/2}return OM("div",{className:AM("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",n),style:{left:`${l}%`,...r},children:e.label})};var gy={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as Pr,jsxs as yy}from"react/jsx-runtime";var zM=VM(function({series:t=[],track:o,renderAnimated:n,renderAnimatedDuration:r=1e3,className:l,classNames:a,style:i,styles:p,minValue:s=0,maxValue:d=100,...f},m){let h=by(()=>({...gy,...o}),[o]),y=by(()=>t.reduce((P,x)=>{if(x.type==="bar"){let C=typeof x.end=="number"?x.end:d,S=Math.max(s,Math.min(C,d));if(S>P)return S}return P},0),[t,s,d]),u=_M({targetNumber:y,defaultNumber:s,duration:r,disabled:!n}),{bars:v,clamps:I}=t.reduce((P,x,C)=>{if(x==null||!x.type)return P;let S=x.color??"var(--cleen-primary)";switch(x.type){case"clamp":P.clamps.push(Pr(ni,{serie:x,color:S,trackHeight:h.height,minValue:s,maxValue:d,className:xn(a?.clamp,x.className),style:{...p?.clamp,...x.style}},`clamp-${C}`));break;case"bar":P.bars.push(Pr(fy,{serie:x,color:S,trackHeight:h.height,trackRadius:h.radius,minValue:s,maxValue:d,renderAnimated:n,animatedGlobal:u,className:xn(a?.bar,x.className),style:{...p?.bar,...x.style}},`bar-${C}`));break;default:break}return P},{clamps:[],bars:[]});return Pr("div",{className:xn("cleen",l),style:i,ref:m,...f,children:yy("div",{className:xn("cleen-relative cleen-w-full",a?.container),style:p?.container,children:[yy("div",{className:xn("cleen-relative cleen-size-full",a?.trackWrapper),style:p?.trackWrapper,children:[Pr("div",{className:xn("cleen-relative cleen-w-full",a?.track),style:{height:h.height,backgroundColor:h.color,borderRadius:h.radius??h.height/2,...p?.track},children:v}),I]}),t.some(P=>!!P.label)&&Pr("div",{"aria-hidden":!0,className:xn("cleen-relative cleen-mt-2 cleen-h-5",a?.labels),style:p?.labels,children:t.map((P,x)=>!P||!P.type||!P.label?null:Pr(hy,{serie:P,minValue:s,maxValue:d,className:a?.label,style:p?.label},`label-${x}`))})]})})});import{cn as ld}from"@cleen/ui-core";import{jsx as ad}from"react/jsx-runtime";var HM={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"},UM={slow:1.3,normal:.65,fast:.4},de=({isFullscreen:e,size:t="xs",stroke:o,speed:n="normal",className:r,classNames:l,style:a,styles:i,color:p,...s})=>ad("div",{className:ld("cleen",r),style:a,children:ad("div",{className:ld("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},l?.container),style:i?.container,...s,children:ad("span",{className:ld("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"&&HM[t],l?.loader),style:{...p&&{borderInlineColor:p,borderTopColor:p},...typeof t=="number"&&{width:t,height:t},...typeof o=="number"&&{borderWidth:o},animationDuration:`${typeof n=="number"?n:UM[n]}s`,...i?.loader}})})});import{cn as cd,useWidthDynamicResize as $M}from"@cleen/ui-core";import{forwardRef as GM,useImperativeHandle as WM,useRef as qM}from"react";var vy={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"},Iy={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 xy,jsxs as KM}from"react/jsx-runtime";var re=GM(function({type:t="button",label:o,onClick:n,className:r,classNames:l,style:a,styles:i,disabled:p=!1,leftIcon:s,rightIcon:d,loaderColor:f,isLoading:m=!1,variant:h="primary",fullWidth:y=!1,children:u,...v},I){let P=qM(null);return WM(I,()=>P.current),$M({ref:P,skip:y},[m,s,d,y]),xy("div",{className:cd("cleen",r),style:a,children:KM("button",{type:t,ref:P,className:cd("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",vy[h],{"cleen-w-full cleen-flex-1":y,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":p||m},l?.container),style:i?.container,disabled:m||p,onClick:n,...v,children:[m&&xy(de,{size:"xs",color:f||Iy[h],className:cd("cleen-mr-1.5 cleen-w-fit",l?.loaderContainer),style:i?.loaderContainer,classNames:{loader:l?.loader},styles:{loader:i?.loader}}),s||null,o||u,d||null]})})});var Cy={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"},Py={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 zo,ColorHelpers as lw}from"@cleen/ui-core";function Sr(e,t,o){return Math.min(Math.max(e,o),t)}var id=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},Ll=id;function XM(e){if(typeof e!="string")throw new Ll(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=ow.test(e)?ZM(e):e;let o=JM.exec(t);if(o){let a=Array.from(o).slice(1);return[...a.slice(0,3).map(i=>parseInt(Dl(i,2),16)),parseInt(Dl(a[3]||"f",2),16)/255]}let n=jM.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 r=ew.exec(t);if(r){let a=Array.from(r).slice(1);return[...a.slice(0,3).map(i=>parseInt(i,10)),parseFloat(a[3]||"1")]}let l=tw.exec(t);if(l){let[a,i,p,s]=Array.from(l).slice(1).map(parseFloat);if(Sr(0,100,i)!==i)throw new Ll(e);if(Sr(0,100,p)!==p)throw new Ll(e);return[...nw(a,i,p),Number.isNaN(s)?1:s]}throw new Ll(e)}function YM(e){let t=5381,o=e.length;for(;o;)t=t*33^e.charCodeAt(--o);return(t>>>0)%2341}var Sy=e=>parseInt(e.replace(/_/g,""),36),QM="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=Sy(t.substring(0,3)),n=Sy(t.substring(3)).toString(16),r="";for(let l=0;l<6-n.length;l++)r+="0";return e[o]=`${r}${n}`,e},{});function ZM(e){let t=e.toLowerCase().trim(),o=QM[YM(t)];if(!o)throw new Ll(e);return`#${o}`}var Dl=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),JM=new RegExp(`^#${Dl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),jM=new RegExp(`^#${Dl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),ew=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Dl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),tw=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,ow=/^[a-z]+$/i,My=e=>Math.round(e*255),nw=(e,t,o)=>{let n=o/100;if(t===0)return[n,n,n].map(My);let r=(e%360+360)%360/60,l=(1-Math.abs(2*n-1))*(t/100),a=l*(1-Math.abs(r%2-1)),i=0,p=0,s=0;r>=0&&r<1?(i=l,p=a):r>=1&&r<2?(i=a,p=l):r>=2&&r<3?(p=l,s=a):r>=3&&r<4?(p=a,s=l):r>=4&&r<5?(i=a,s=l):r>=5&&r<6&&(i=l,s=a);let d=n-l/2,f=i+d,m=p+d,h=s+d;return[f,m,h].map(My)};function rw(e,t,o,n){return`rgba(${Sr(0,255,e).toFixed()}, ${Sr(0,255,t).toFixed()}, ${Sr(0,255,o).toFixed()}, ${parseFloat(Sr(0,1,n).toFixed(3))})`}function Fl(e,t){let[o,n,r,l]=XM(e);return rw(o,n,r,l-t)}import{forwardRef as aw,useMemo as cw}from"react";import{jsx as Mr,jsxs as wy}from"react/jsx-runtime";var Re=aw(function({header:t,footer:o,color:n,isGlass:r=!1,hoverable:l=!1,p:a,gap:i,radius:p=8,children:s,className:d,classNames:f,style:m,styles:h,...y},u){let{cardColor:v,backgroundColor:I,borderColor:P}=cw(()=>{let x=lw.getComputedColor(n);return x?{cardColor:x,backgroundColor:Fl(x,.9),borderColor:Fl(x,.8)}:{cardColor:x}},[n]);return Mr("div",{className:zo("cleen",d),style:m,ref:u,...y,children:wy("div",{className:zo("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",l&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",o?.content?"cleen-pb-3":"cleen-pb-6",f?.container),style:{...v&&{backgroundColor:I,borderColor:P,color:v},...r&&{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,...h?.container},children:[(t?.content||t?.title)&&wy("div",{className:zo("cleen-px-6",f?.header?.content),style:{...v&&{color:v},...a!==void 0&&{paddingInline:a},...h?.header?.content},children:[t?.title&&Mr("div",{className:zo("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",f?.header?.title),style:{...v&&{color:v},...h?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&Mr("hr",{className:zo("cleen-text-neutral-200",f?.header?.divider),style:{...v&&{color:P},...h?.header?.divider}}),s&&Mr("div",{className:zo("cleen-px-6",f?.childrenContainer),style:{...a!==void 0&&{paddingInline:a},...h?.childrenContainer},children:s}),o?.content&&o?.hasDivider&&Mr("hr",{className:zo("cleen-text-neutral-200",f?.footer?.divider),style:{...v&&{color:P},...h?.footer?.divider}}),o?.content&&Mr("div",{className:zo("cleen-px-6 -cleen-mt-3 cleen-text-foreground",f?.footer?.content),style:{...v&&{color:v},...a!==void 0&&{paddingInline:a},...h?.footer?.content},children:o.content})]})})});import{jsx as iw}from"react/jsx-runtime";function c({size:e=24,width:t,height:o,strokeWidth:n=1.5,isFilled:r=!1,children:l,...a}){return delete a.color1,delete a.color2,iw("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:o??e,viewBox:"0 0 24 24",fill:r?"currentColor":"none",stroke:"currentColor",strokeWidth:r?0:n,strokeLinecap:"round",strokeLinejoin:"round",...a,children:l})}import{jsx as ky,jsxs as sw}from"react/jsx-runtime";var sd=e=>sw(c,{...e,children:[ky("path",{d:"M9 10.5l2 2l4 -4"}),ky("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as Ey}from"react/jsx-runtime";var pd=e=>Ey(c,{isFilled:!0,...e,children:Ey("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 dd,jsxs as pw}from"react/jsx-runtime";var md=e=>pw(c,{...e,children:[dd("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),dd("path",{d:"M16 19h6"}),dd("path",{d:"M19 16v6"})]});import{jsx as Ho,jsxs as dw}from"react/jsx-runtime";var ud=e=>dw(c,{...e,children:[Ho("path",{d:"M3 21l18 0"}),Ho("path",{d:"M9 8l1 0"}),Ho("path",{d:"M9 12l1 0"}),Ho("path",{d:"M9 16l1 0"}),Ho("path",{d:"M14 8l1 0"}),Ho("path",{d:"M14 12l1 0"}),Ho("path",{d:"M14 16l1 0"}),Ho("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as Ty,jsxs as mw}from"react/jsx-runtime";var fd=e=>mw(c,{...e,children:[Ty("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"}),Ty("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 li,jsxs as uw}from"react/jsx-runtime";var hd=e=>uw(c,{...e,children:[li("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),li("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),li("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),li("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as Al,jsxs as fw}from"react/jsx-runtime";var gd=e=>fw(c,{viewBox:"0 0 48 48",...e,children:[Al("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Al("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Al("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Al("path",{d:"M24 18v8"}),Al("path",{d:"M24 30h.01"})]});import{jsx as ai,jsxs as hw}from"react/jsx-runtime";var bd=e=>hw(c,{viewBox:"0 0 48 48",...e,children:[ai("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),ai("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),ai("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),ai("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as yd,jsxs as gw}from"react/jsx-runtime";var Cn=e=>gw(c,{...e,children:[yd("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),yd("path",{d:"M12 8v4"}),yd("path",{d:"M12 16h.01"})]});import{jsx as Ny}from"react/jsx-runtime";var vd=e=>Ny(c,{isFilled:!0,...e,children:Ny("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 Id,jsxs as bw}from"react/jsx-runtime";var xd=e=>bw(c,{...e,children:[Id("path",{d:"M12 9v4"}),Id("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"}),Id("path",{d:"M12 16h.01"})]});import{jsx as Ol,jsxs as yw}from"react/jsx-runtime";var Cd=e=>yw(c,{...e,children:[Ol("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"}),Ol("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"}),Ol("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"}),Ol("path",{d:"M14 7l6 0"}),Ol("path",{d:"M17 4l0 6"})]});import{jsx as Pd,jsxs as vw}from"react/jsx-runtime";var Sd=e=>vw(c,{...e,children:[Pd("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"}),Pd("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),Pd("path",{d:"M10 12l4 0"})]});import{jsx as ci,jsxs as Iw}from"react/jsx-runtime";var Md=e=>Iw(c,{...e,children:[ci("path",{d:"M12 20l0 -10"}),ci("path",{d:"M12 20l4 -4"}),ci("path",{d:"M12 20l-4 -4"}),ci("path",{d:"M4 4l16 0"})]});import{jsx as ii,jsxs as xw}from"react/jsx-runtime";var wd=e=>xw(c,{...e,children:[ii("path",{d:"M4 12l10 0"}),ii("path",{d:"M4 12l4 4"}),ii("path",{d:"M4 12l4 -4"}),ii("path",{d:"M20 4l0 16"})]});import{jsx as si,jsxs as Cw}from"react/jsx-runtime";var kd=e=>Cw(c,{...e,children:[si("path",{d:"M20 12l-10 0"}),si("path",{d:"M20 12l-4 4"}),si("path",{d:"M20 12l-4 -4"}),si("path",{d:"M4 4l0 16"})]});import{jsx as pi,jsxs as Pw}from"react/jsx-runtime";var Ed=e=>Pw(c,{...e,children:[pi("path",{d:"M4 20l16 0"}),pi("path",{d:"M12 14l0 -10"}),pi("path",{d:"M12 14l4 -4"}),pi("path",{d:"M12 14l-4 -4"})]});import{jsx as di,jsxs as Sw}from"react/jsx-runtime";var Td=e=>Sw(c,{...e,children:[di("path",{d:"M10 12l10 0"}),di("path",{d:"M10 12l4 4"}),di("path",{d:"M10 12l4 -4"}),di("path",{d:"M4 4l0 16"})]});import{jsx as mi,jsxs as Mw}from"react/jsx-runtime";var Nd=e=>Mw(c,{...e,children:[mi("path",{d:"M14 12l-10 0"}),mi("path",{d:"M14 12l-4 4"}),mi("path",{d:"M14 12l-4 -4"}),mi("path",{d:"M20 4l0 16"})]});import{jsx as ui,jsxs as ww}from"react/jsx-runtime";var Rd=e=>ww(c,{...e,children:[ui("path",{d:"M12 10l0 10"}),ui("path",{d:"M12 10l4 4"}),ui("path",{d:"M12 10l-4 4"}),ui("path",{d:"M4 4l16 0"})]});import{jsx as fi,jsxs as kw}from"react/jsx-runtime";var Bd=e=>kw(c,{...e,children:[fi("path",{d:"M12 4l0 10"}),fi("path",{d:"M12 4l4 4"}),fi("path",{d:"M12 4l-4 4"}),fi("path",{d:"M4 20l16 0"})]});import{jsx as Ld,jsxs as Ew}from"react/jsx-runtime";var Dd=e=>Ew(c,{...e,children:[Ld("path",{d:"M12 5l0 14"}),Ld("path",{d:"M18 13l-6 6"}),Ld("path",{d:"M6 13l6 6"})]});import{jsx as Ry,jsxs as Tw}from"react/jsx-runtime";var Fd=e=>Tw(c,{...e,children:[Ry("path",{d:"M17 7l-10 10"}),Ry("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as Ad,jsxs as Nw}from"react/jsx-runtime";var Od=e=>Nw(c,{...e,children:[Ad("path",{d:"M12 5l0 14"}),Ad("path",{d:"M16 15l-4 4"}),Ad("path",{d:"M8 15l4 4"})]});import{jsx as By,jsxs as Rw}from"react/jsx-runtime";var _d=e=>Rw(c,{...e,children:[By("path",{d:"M7 7l10 10"}),By("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as Vd,jsxs as Bw}from"react/jsx-runtime";var zd=e=>Bw(c,{...e,children:[Vd("path",{d:"M5 12l14 0"}),Vd("path",{d:"M5 12l6 6"}),Vd("path",{d:"M5 12l6 -6"})]});import{jsx as Hd,jsxs as Lw}from"react/jsx-runtime";var Ud=e=>Lw(c,{...e,children:[Hd("path",{d:"M5 12l14 0"}),Hd("path",{d:"M5 12l4 4"}),Hd("path",{d:"M5 12l4 -4"})]});import{jsx as $d,jsxs as Dw}from"react/jsx-runtime";var Gd=e=>Dw(c,{...e,children:[$d("path",{d:"M5 12l14 0"}),$d("path",{d:"M13 18l6 -6"}),$d("path",{d:"M13 6l6 6"})]});import{jsx as Wd,jsxs as Fw}from"react/jsx-runtime";var qd=e=>Fw(c,{...e,children:[Wd("path",{d:"M5 12l14 0"}),Wd("path",{d:"M15 16l4 -4"}),Wd("path",{d:"M15 8l4 4"})]});import{jsx as Kd,jsxs as Aw}from"react/jsx-runtime";var Xd=e=>Aw(c,{...e,children:[Kd("path",{d:"M12 5l0 14"}),Kd("path",{d:"M18 11l-6 -6"}),Kd("path",{d:"M6 11l6 -6"})]});import{jsx as Ly,jsxs as Ow}from"react/jsx-runtime";var Yd=e=>Ow(c,{...e,children:[Ly("path",{d:"M7 7l10 10"}),Ly("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as Qd,jsxs as _w}from"react/jsx-runtime";var Zd=e=>_w(c,{...e,children:[Qd("path",{d:"M12 5l0 14"}),Qd("path",{d:"M16 9l-4 -4"}),Qd("path",{d:"M8 9l4 -4"})]});import{jsx as Dy,jsxs as Vw}from"react/jsx-runtime";var Jd=e=>Vw(c,{...e,children:[Dy("path",{d:"M17 7l-10 10"}),Dy("path",{d:"M8 7l9 0l0 9"})]});import{jsx as Fy}from"react/jsx-runtime";var jd=e=>Fy(c,{...e,children:Fy("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 _l,jsxs as zw}from"react/jsx-runtime";var Vl=e=>zw(c,{...e,children:[_l("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"}),_l("path",{d:"M14 9v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1"}),_l("path",{d:"M7 15v-6"}),_l("path",{d:"M10 15v-6"}),_l("path",{d:"M7 12h3"})]});import{jsx as hi,jsxs as Hw}from"react/jsx-runtime";var em=e=>Hw(c,{...e,children:[hi("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"}),hi("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"}),hi("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"}),hi("path",{d:"M4 20h14"})]});import{jsx as zl,jsxs as Uw}from"react/jsx-runtime";var tm=e=>Uw(c,{...e,children:[zl("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"}),zl("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"}),zl("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"}),zl("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"}),zl("path",{d:"M7 18.5h10"})]});import{jsx as Ay,jsxs as $w}from"react/jsx-runtime";var om=e=>$w(c,{...e,children:[Ay("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"}),Ay("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as Oy,jsxs as Gw}from"react/jsx-runtime";var nm=e=>Gw(c,{...e,children:[Oy("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),Oy("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as _y}from"react/jsx-runtime";var rm=e=>_y(c,{...e,children:_y("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as Vy}from"react/jsx-runtime";var lm=e=>Vy(c,{isFilled:!0,...e,children:Vy("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 zy,jsxs as Ww}from"react/jsx-runtime";var am=e=>Ww(c,{...e,children:[zy("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),zy("path",{d:"M16 19h6"})]});import{jsx as cm,jsxs as qw}from"react/jsx-runtime";var im=e=>qw(c,{...e,children:[cm("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),cm("path",{d:"M20.5 21.5l-5 -5"}),cm("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as Hl,jsxs as Kw}from"react/jsx-runtime";var sm=e=>Kw(c,{...e,children:[Hl("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Hl("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Hl("path",{d:"M3 6l0 13"}),Hl("path",{d:"M12 6l0 13"}),Hl("path",{d:"M21 6l0 13"})]});import{jsx as gi,jsxs as Xw}from"react/jsx-runtime";var pm=e=>Xw(c,{...e,children:[gi("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"}),gi("path",{d:"M9 13h-2"}),gi("path",{d:"M13 10h-6"}),gi("path",{d:"M11 7h-4"})]});import{jsx as dm,jsxs as Yw}from"react/jsx-runtime";var mm=e=>Yw(c,{...e,children:[dm("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"}),dm("path",{d:"M10 8h4"}),dm("path",{d:"M12 8v8"})]});import{jsx as um,jsxs as Qw}from"react/jsx-runtime";var fm=e=>Qw(c,{...e,children:[um("path",{d:"M9 12l2 2l4 -4"}),um("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),um("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Ul,jsxs as Zw}from"react/jsx-runtime";var hm=e=>Zw(c,{...e,children:[Ul("path",{d:"M15 12h.01"}),Ul("path",{d:"M12 12h.01"}),Ul("path",{d:"M9 12h.01"}),Ul("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Ul("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as go,jsxs as Jw}from"react/jsx-runtime";var gm=e=>Jw(c,{...e,children:[go("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),go("path",{d:"M4 8h16"}),go("path",{d:"M20 12h-16"}),go("path",{d:"M4 16h16"}),go("path",{d:"M9 4v4"}),go("path",{d:"M14 8v4"}),go("path",{d:"M8 12v4"}),go("path",{d:"M16 12v4"}),go("path",{d:"M11 16v4"})]});import{jsx as bi,jsxs as jw}from"react/jsx-runtime";var bm=e=>jw(c,{...e,children:[bi("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"}),bi("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),bi("path",{d:"M12 12l0 .01"}),bi("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as Uo,jsxs as ek}from"react/jsx-runtime";var ym=e=>ek(c,{...e,children:[Uo("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"}),Uo("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"}),Uo("path",{d:"M8 14l0 .01"}),Uo("path",{d:"M12 14l0 .01"}),Uo("path",{d:"M16 14l0 .01"}),Uo("path",{d:"M8 17l0 .01"}),Uo("path",{d:"M12 17l0 .01"}),Uo("path",{d:"M16 17l0 .01"})]});import{jsx as wr,jsxs as tk}from"react/jsx-runtime";var $l=e=>tk(c,{...e,children:[wr("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"}),wr("path",{d:"M16 3v4"}),wr("path",{d:"M8 3v4"}),wr("path",{d:"M4 11h16"}),wr("path",{d:"M11 15h1"}),wr("path",{d:"M12 15v3"})]});import{jsx as kr,jsxs as ok}from"react/jsx-runtime";var vm=e=>ok(c,{...e,children:[kr("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),kr("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),kr("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"}),kr("path",{d:"M6 9l12 0"}),kr("path",{d:"M6 12l3 0"}),kr("path",{d:"M6 15l2 0"})]});import{jsx as Hy}from"react/jsx-runtime";var bo=e=>Hy(c,{...e,children:Hy("path",{d:"M5 12l5 5l10 -10"})});import{jsx as Uy,jsxs as nk}from"react/jsx-runtime";var Pn=e=>nk(c,{...e,children:[Uy("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Uy("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as $y,jsxs as rk}from"react/jsx-runtime";var Im=e=>rk(c,{...e,children:[$y("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),$y("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as Gy}from"react/jsx-runtime";var xm=e=>Gy(c,{isFilled:!0,...e,children:Gy("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 Wy,jsxs as lk}from"react/jsx-runtime";var Cm=e=>lk(c,{...e,children:[Wy("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"}),Wy("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as qy}from"react/jsx-runtime";var Pm=e=>qy(c,{isFilled:!0,...e,children:qy("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 Ky}from"react/jsx-runtime";var Sn=e=>Ky(c,{...e,children:Ky("path",{d:"M6 9l6 6l6 -6"})});import{jsx as Xy,jsxs as ak}from"react/jsx-runtime";var Sm=e=>ak(c,{...e,children:[Xy("path",{d:"M7 7l5 5l5 -5"}),Xy("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as Yy}from"react/jsx-runtime";var Mm=e=>Yy(c,{...e,children:Yy("path",{d:"M8 8v8h8"})});import{jsx as Qy,jsxs as ck}from"react/jsx-runtime";var wm=e=>ck(c,{...e,children:[Qy("path",{d:"M11 5v8h8"}),Qy("path",{d:"M7 9v8h8"})]});import{jsx as Zy}from"react/jsx-runtime";var km=e=>Zy(c,{...e,children:Zy("path",{d:"M16 8v8h-8"})});import{jsx as Jy,jsxs as ik}from"react/jsx-runtime";var Em=e=>ik(c,{...e,children:[Jy("path",{d:"M13 5v8h-8"}),Jy("path",{d:"M17 9v8h-8"})]});import{jsx as jy}from"react/jsx-runtime";var yo=e=>jy(c,{...e,children:jy("path",{d:"M15 6l-6 6l6 6"})});import{jsx as ev,jsxs as sk}from"react/jsx-runtime";var Tm=e=>sk(c,{...e,children:[ev("path",{d:"M11 7l-5 5l5 5"}),ev("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as tv}from"react/jsx-runtime";var St=e=>tv(c,{...e,children:tv("path",{d:"M9 6l6 6l-6 6"})});import{jsx as ov,jsxs as pk}from"react/jsx-runtime";var Gl=e=>pk(c,{...e,children:[ov("path",{d:"M7 7l5 5l-5 5"}),ov("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as nv,jsxs as dk}from"react/jsx-runtime";var Nm=e=>dk(c,{...e,children:[nv("path",{d:"M8 9l4 -4l4 4"}),nv("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as rv}from"react/jsx-runtime";var vo=e=>rv(c,{...e,children:rv("path",{d:"M6 15l6 -6l6 6"})});import{jsx as lv,jsxs as mk}from"react/jsx-runtime";var Rm=e=>mk(c,{...e,children:[lv("path",{d:"M7 11l5 -5l5 5"}),lv("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as av}from"react/jsx-runtime";var Bm=e=>av(c,{...e,children:av("path",{d:"M8 16v-8h8"})});import{jsx as cv,jsxs as uk}from"react/jsx-runtime";var Lm=e=>uk(c,{...e,children:[cv("path",{d:"M7 15v-8h8"}),cv("path",{d:"M11 19v-8h8"})]});import{jsx as iv}from"react/jsx-runtime";var Dm=e=>iv(c,{...e,children:iv("path",{d:"M8 8h8v8"})});import{jsx as sv,jsxs as fk}from"react/jsx-runtime";var Fm=e=>fk(c,{...e,children:[sv("path",{d:"M9 7h8v8"}),sv("path",{d:"M5 11h8v8"})]});import{jsx as Er,jsxs as hk}from"react/jsx-runtime";var Am=e=>hk(c,{...e,children:[Er("path",{d:"M3 12l3 0"}),Er("path",{d:"M12 3l0 3"}),Er("path",{d:"M7.8 7.8l-2.2 -2.2"}),Er("path",{d:"M16.2 7.8l2.2 -2.2"}),Er("path",{d:"M7.8 16.2l-2.2 2.2"}),Er("path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9"})]});import{jsx as pv,jsxs as gk}from"react/jsx-runtime";var Wl=e=>gk(c,{...e,children:[pv("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),pv("path",{d:"M12 7v5l3 3"})]});import{jsx as yi,jsxs as bk}from"react/jsx-runtime";var Om=e=>bk(c,{...e,children:[yi("path",{d:"M12 7v5l2 2"}),yi("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),yi("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),yi("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as _m,jsxs as yk}from"react/jsx-runtime";var Vm=e=>yk(c,{...e,children:[_m("path",{d:"M12 7v5l2 2"}),_m("path",{d:"M17 22l5 -3l-5 -3z"}),_m("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as dv,jsxs as vk}from"react/jsx-runtime";var zm=e=>vk(c,{...e,children:[dv("path",{d:"M12 8l0 4l2 2"}),dv("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as ql,jsxs as Ik}from"react/jsx-runtime";var Hm=e=>Ik(c,{...e,children:[ql("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),ql("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"}),ql("path",{d:"M11 14h6"}),ql("path",{d:"M14 11v6"}),ql("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 Um,jsxs as xk}from"react/jsx-runtime";var Kl=e=>xk(c,{...e,children:[Um("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"}),Um("path",{d:"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Um("path",{d:"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"})]});import{jsx as $m,jsxs as Ck}from"react/jsx-runtime";var Gm=e=>Ck(c,{...e,children:[$m("path",{d:"M7 8l-4 4l4 4"}),$m("path",{d:"M17 8l4 4l-4 4"}),$m("path",{d:"M14 4l-4 16"})]});import{jsx as Tr,jsxs as Pk}from"react/jsx-runtime";var Wm=e=>Pk(c,{...e,children:[Tr("path",{d:"M4 8h16"}),Tr("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Tr("path",{d:"M8 4v4"}),Tr("path",{d:"M9 12l-2 2l2 2"}),Tr("path",{d:"M15 12l2 2l-2 2"}),Tr("path",{d:"M13 11l-2 6"})]});import{jsx as qm,jsxs as Sk}from"react/jsx-runtime";var Km=e=>Sk(c,{...e,children:[qm("path",{d:"M10 14l-2 -2l2 -2"}),qm("path",{d:"M14 10l2 2l-2 2"}),qm("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Xm,jsxs as Mk}from"react/jsx-runtime";var Ym=e=>Mk(c,{...e,children:[Xm("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Xm("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Xm("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as mv,jsxs as wk}from"react/jsx-runtime";var Qm=e=>wk(c,{...e,children:[mv("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"}),mv("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 uv,jsxs as kk}from"react/jsx-runtime";var Zm=e=>kk(c,{...e,children:[uv("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"}),uv("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 Jm,jsxs as Ek}from"react/jsx-runtime";var jm=e=>Ek(c,{...e,children:[Jm("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"}),Jm("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"}),Jm("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as vi,jsxs as Tk}from"react/jsx-runtime";var eu=e=>Tk(c,{...e,children:[vi("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"}),vi("path",{d:"M3 10l18 0"}),vi("path",{d:"M7 15l.01 0"}),vi("path",{d:"M11 15l2 0"})]});import{jsx as Ii,jsxs as Nk}from"react/jsx-runtime";var tu=e=>Nk(c,{...e,children:[Ii("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"}),Ii("path",{d:"M12 22v-10"}),Ii("path",{d:"M12 12l8.73 -5.04"}),Ii("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as Mt,jsxs as Rk}from"react/jsx-runtime";var ou=e=>Rk(c,{...e,children:[Mt("path",{d:"M6 17.6l-2 -1.1v-2.5"}),Mt("path",{d:"M4 10v-2.5l2 -1.1"}),Mt("path",{d:"M10 4.1l2 -1.1l2 1.1"}),Mt("path",{d:"M18 6.4l2 1.1v2.5"}),Mt("path",{d:"M20 14v2.5l-2 1.12"}),Mt("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),Mt("path",{d:"M12 12l2 -1.1"}),Mt("path",{d:"M18 8.6l2 -1.1"}),Mt("path",{d:"M12 12l0 2.5"}),Mt("path",{d:"M12 18.5l0 2.5"}),Mt("path",{d:"M12 12l-2 -1.12"}),Mt("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as fv,jsxs as Bk}from"react/jsx-runtime";var Xl=e=>Bk(c,{...e,children:[fv("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"}),fv("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 Mn,jsxs as Lk}from"react/jsx-runtime";var nu=e=>Lk(c,{...e,children:[Mn("path",{d:"M5 2h5v4h-5z"}),Mn("path",{d:"M15 10h5v4h-5z"}),Mn("path",{d:"M5 18h5v4h-5z"}),Mn("path",{d:"M5 10h5v4h-5z"}),Mn("path",{d:"M10 12h5"}),Mn("path",{d:"M7.5 6v4"}),Mn("path",{d:"M7.5 14v4"})]});import{jsx as wt,jsxs as Dk}from"react/jsx-runtime";var ru=e=>Dk(c,{...e,children:[wt("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),wt("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),wt("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),wt("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),wt("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),wt("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),wt("path",{d:"M5 17l2 -3"}),wt("path",{d:"M9 10l2 -3"}),wt("path",{d:"M13 7l2 3"}),wt("path",{d:"M17 14l2 3"}),wt("path",{d:"M15 14l-2 3"}),wt("path",{d:"M9 14l2 3"})]});import{jsx as Yl,jsxs as Fk}from"react/jsx-runtime";var lu=e=>Fk(c,{...e,children:[Yl("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"}),Yl("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"}),Yl("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"}),Yl("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),Yl("path",{d:"M12 9l0 3"})]});import{jsx as au,jsxs as Ak}from"react/jsx-runtime";var cu=e=>Ak(c,{...e,children:[au("path",{d:"M4 4l16 0"}),au("path",{d:"M4 20l16 0"}),au("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 hv,jsxs as Ok}from"react/jsx-runtime";var iu=e=>Ok(c,{...e,children:[hv("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"}),hv("path",{d:"M12 3v3m0 12v3"})]});import{jsx as su,jsxs as _k}from"react/jsx-runtime";var pu=e=>_k(c,{...e,children:[su("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),su("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"}),su("path",{d:"M12 7v10"})]});import{jsx as gv}from"react/jsx-runtime";var du=e=>gv(c,{...e,children:gv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as bv}from"react/jsx-runtime";var mu=e=>bv(c,{isFilled:!0,...e,children:bv("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 Io,jsxs as Vk}from"react/jsx-runtime";var uu=e=>Vk(c,{...e,children:[Io("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Io("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Io("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Io("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Io("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Io("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Io("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Io("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Io("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as fu,jsxs as zk}from"react/jsx-runtime";var Ql=e=>zk(c,{...e,children:[fu("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fu("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fu("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as hu,jsxs as Hk}from"react/jsx-runtime";var $o=e=>Hk(c,{...e,children:[hu("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hu("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hu("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as gu,jsxs as Uk}from"react/jsx-runtime";var bu=e=>Uk(c,{...e,children:[gu("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),gu("path",{d:"M7 11l5 5l5 -5"}),gu("path",{d:"M12 4l0 12"})]});import{jsx as yv,jsxs as $k}from"react/jsx-runtime";var yu=e=>$k(c,{...e,children:[yv("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),yv("path",{d:"M13.5 6.5l4 4"})]});import{jsx as vu,jsxs as Gk}from"react/jsx-runtime";var Iu=e=>Gk(c,{...e,children:[vu("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),vu("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),vu("path",{d:"M16 5l3 3"})]});import{jsx as Go,jsxs as Wk}from"react/jsx-runtime";var xu=e=>Wk(c,{...e,children:[Go("path",{d:"M16 4l4 0l0 4"}),Go("path",{d:"M14 10l6 -6"}),Go("path",{d:"M8 20l-4 0l0 -4"}),Go("path",{d:"M4 20l6 -6"}),Go("path",{d:"M16 20l4 0l0 -4"}),Go("path",{d:"M14 14l6 6"}),Go("path",{d:"M8 4l-4 0l0 4"}),Go("path",{d:"M4 4l6 6"})]});import{jsx as Cu,jsxs as qk}from"react/jsx-runtime";var Zl=e=>qk(c,{...e,children:[Cu("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),Cu("path",{d:"M11 13l9 -9"}),Cu("path",{d:"M15 4h5v5"})]});import{jsx as Pu,jsxs as Kk}from"react/jsx-runtime";var Su=e=>Kk(c,{...e,children:[Pu("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"}),Pu("path",{d:"M15 9l-6 6"}),Pu("path",{d:"M10 9l5 0l0 5"})]});import{jsx as vv,jsxs as Xk}from"react/jsx-runtime";var Mu=e=>Xk(c,{...e,children:[vv("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),vv("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 wu,jsxs as Yk}from"react/jsx-runtime";var ku=e=>Yk(c,{...e,children:[wu("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),wu("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"}),wu("path",{d:"M3 3l18 18"})]});import{jsx as Jl,jsxs as Qk}from"react/jsx-runtime";var Eu=e=>Qk(c,{...e,children:[Jl("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),Jl("path",{d:"M3 15l2.5 -3.8"}),Jl("path",{d:"M21 14.976l-2.492 -3.776"}),Jl("path",{d:"M9 17l.5 -4"}),Jl("path",{d:"M15 17l-.5 -4"})]});import{jsx as xi,jsxs as Zk}from"react/jsx-runtime";var Tu=e=>Zk(c,{...e,children:[xi("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),xi("path",{d:"M8 9l2 1"}),xi("path",{d:"M16 9l-2 1"}),xi("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as Nr,jsxs as Jk}from"react/jsx-runtime";var Nu=e=>Jk(c,{...e,children:[Nr("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Nr("path",{d:"M7 8.5l3 3"}),Nr("path",{d:"M7 11.5l3 -3"}),Nr("path",{d:"M14 8.5l3 3"}),Nr("path",{d:"M14 11.5l3 -3"}),Nr("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Ci,jsxs as jk}from"react/jsx-runtime";var Ru=e=>jk(c,{...e,children:[Ci("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Ci("path",{d:"M9 10l.01 0"}),Ci("path",{d:"M15 10l.01 0"}),Ci("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Iv,jsxs as e4}from"react/jsx-runtime";var wn=e=>e4(c,{...e,children:[Iv("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Iv("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 Bu,jsxs as t4}from"react/jsx-runtime";var Lu=e=>t4(c,{...e,children:[Bu("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Bu("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"}),Bu("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as jl,jsxs as o4}from"react/jsx-runtime";var ea=e=>o4(c,{...e,children:[jl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),jl("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),jl("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),jl("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"}),jl("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as Pi,jsxs as n4}from"react/jsx-runtime";var Du=e=>n4(c,{...e,children:[Pi("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Pi("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"}),Pi("path",{d:"M12 17v-6"}),Pi("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as Rr,jsxs as r4}from"react/jsx-runtime";var ta=e=>r4(c,{...e,children:[Rr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Rr("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Rr("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),Rr("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"}),Rr("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"}),Rr("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as Si,jsxs as l4}from"react/jsx-runtime";var Fu=e=>l4(c,{...e,children:[Si("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Si("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"}),Si("path",{d:"M9 17h6"}),Si("path",{d:"M9 13h6"})]});import{jsx as Mi,jsxs as a4}from"react/jsx-runtime";var kt=e=>a4(c,{...e,children:[Mi("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Mi("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"}),Mi("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Mi("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as Br,jsxs as c4}from"react/jsx-runtime";var kn=e=>c4(c,{...e,children:[Br("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Br("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Br("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),Br("path",{d:"M17 18h2"}),Br("path",{d:"M20 15h-3v6"}),Br("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as Au,jsxs as i4}from"react/jsx-runtime";var Ou=e=>i4(c,{...e,children:[Au("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),Au("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"}),Au("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 oa,jsxs as s4}from"react/jsx-runtime";var na=e=>s4(c,{...e,children:[oa("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),oa("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"}),oa("path",{d:"M8 11h8v7h-8z"}),oa("path",{d:"M8 15h8"}),oa("path",{d:"M11 11v7"})]});import{jsx as ra,jsxs as p4}from"react/jsx-runtime";var xo=e=>p4(c,{...e,children:[ra("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ra("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"}),ra("path",{d:"M9 9l1 0"}),ra("path",{d:"M9 13l6 0"}),ra("path",{d:"M9 17l6 0"})]});import{jsx as wi,jsxs as d4}from"react/jsx-runtime";var _u=e=>d4(c,{...e,children:[wi("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),wi("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"}),wi("path",{d:"M12 11v6"}),wi("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as Lr,jsxs as m4}from"react/jsx-runtime";var la=e=>m4(c,{...e,children:[Lr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Lr("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Lr("path",{d:"M4 15l4 6"}),Lr("path",{d:"M4 21l4 -6"}),Lr("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"}),Lr("path",{d:"M11 15v6h3"})]});import{jsx as Wo,jsxs as u4}from"react/jsx-runtime";var aa=e=>u4(c,{...e,children:[Wo("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Wo("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Wo("path",{d:"M4 16l3 5"}),Wo("path",{d:"M4 21l3 -5"}),Wo("path",{d:"M8.5 16v5h2"}),Wo("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"}),Wo("path",{d:"M16.5 16l3 5"}),Wo("path",{d:"M16.5 21l3 -5"})]});import{jsx as qo,jsxs as f4}from"react/jsx-runtime";var Xt=e=>f4(c,{...e,children:[qo("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"}),qo("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"}),qo("path",{d:"M11 5l-1 0"}),qo("path",{d:"M13 7l-1 0"}),qo("path",{d:"M11 9l-1 0"}),qo("path",{d:"M13 11l-1 0"}),qo("path",{d:"M11 13l-1 0"}),qo("path",{d:"M13 15l-1 0"})]});import{jsx as xv}from"react/jsx-runtime";var Vu=e=>xv(c,{...e,children:xv("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 zu,jsxs as h4}from"react/jsx-runtime";var ca=e=>h4(c,{...e,children:[zu("path",{d:"M4 6h16"}),zu("path",{d:"M6 12h12"}),zu("path",{d:"M9 18h6"})]});import{jsx as Cv,jsxs as g4}from"react/jsx-runtime";var Hu=e=>g4(c,{...e,children:[Cv("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"}),Cv("path",{d:"M5 21v-7"})]});import{jsx as Pv}from"react/jsx-runtime";var Uu=e=>Pv(c,{...e,children:Pv("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as Sv}from"react/jsx-runtime";var $u=e=>Sv(c,{isFilled:!0,...e,children:Sv("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 ia,jsxs as b4}from"react/jsx-runtime";var Gu=e=>b4(c,{...e,children:[ia("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ia("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),ia("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),ia("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),ia("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Mv}from"react/jsx-runtime";var Wu=e=>Mv(c,{...e,children:Mv("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 ki,jsxs as y4}from"react/jsx-runtime";var qu=e=>y4(c,{...e,children:[ki("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"}),ki("path",{d:"M1 12.5l7 0"}),ki("path",{d:"M1 12.5l2 2"}),ki("path",{d:"M1 12.5l2 -2"})]});import{jsx as Ei,jsxs as v4}from"react/jsx-runtime";var Ku=e=>v4(c,{...e,children:[Ei("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"}),Ei("path",{d:"M2 13l7 0"}),Ei("path",{d:"M9 13l-2 2"}),Ei("path",{d:"M9 13l-2 -2"})]});import{jsx as wv,jsxs as I4}from"react/jsx-runtime";var Xu=e=>I4(c,{...e,children:[wv("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),wv("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as Dr,jsxs as x4}from"react/jsx-runtime";var Yu=e=>x4(c,{...e,children:[Dr("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dr("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dr("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dr("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dr("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Dr("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ti,jsxs as C4}from"react/jsx-runtime";var Qu=e=>C4(c,{...e,children:[Ti("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Ti("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Ti("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Ti("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 Fr,jsxs as P4}from"react/jsx-runtime";var Zu=e=>P4(c,{...e,children:[Fr("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Fr("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Fr("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Fr("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),Fr("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"}),Fr("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 Ni,jsxs as S4}from"react/jsx-runtime";var Ju=e=>S4(c,{...e,children:[Ni("path",{d:"M5 9l14 0"}),Ni("path",{d:"M5 15l14 0"}),Ni("path",{d:"M11 4l-4 16"}),Ni("path",{d:"M17 4l-4 16"})]});import{jsx as Ri,jsxs as M4}from"react/jsx-runtime";var ju=e=>M4(c,{...e,children:[Ri("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),Ri("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),Ri("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"}),Ri("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 kv}from"react/jsx-runtime";var ef=e=>kv(c,{...e,children:kv("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 Ev}from"react/jsx-runtime";var tf=e=>Ev(c,{isFilled:!0,...e,children:Ev("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 of,jsxs as w4}from"react/jsx-runtime";var nf=e=>w4(c,{...e,children:[of("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),of("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),of("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as Tv,jsxs as k4}from"react/jsx-runtime";var sa=e=>k4(c,{...e,children:[Tv("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"}),Tv("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Bi,jsxs as E4}from"react/jsx-runtime";var nt=e=>E4(c,{...e,children:[Bi("path",{d:"M15 8h.01"}),Bi("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"}),Bi("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Bi("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as pa,jsxs as T4}from"react/jsx-runtime";var rf=e=>T4(c,{...e,children:[pa("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"}),pa("path",{d:"M4 16l16 0"}),pa("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),pa("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),pa("path",{d:"M14 7l.01 0"})]});import{jsx as da,jsxs as N4}from"react/jsx-runtime";var lf=e=>N4(c,{...e,children:[da("path",{d:"M15 8h.01"}),da("path",{d:"M11.5 21h-5.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v7"}),da("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),da("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),da("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as ma,jsxs as R4}from"react/jsx-runtime";var af=e=>R4(c,{...e,children:[ma("path",{d:"M15 8h.01"}),ma("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"}),ma("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),ma("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),ma("path",{d:"M3 3l18 18"})]});import{jsx as Nv,jsxs as B4}from"react/jsx-runtime";var cf=e=>B4(c,{...e,children:[Nv("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Nv("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 Rv,jsxs as L4}from"react/jsx-runtime";var sf=e=>L4(c,{...e,children:[Rv("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"}),Rv("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as pf,jsxs as D4}from"react/jsx-runtime";var df=e=>D4(c,{...e,children:[pf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),pf("path",{d:"M12 9h.01"}),pf("path",{d:"M11 12h1v4h1"})]});import{jsx as mf,jsxs as F4}from"react/jsx-runtime";var uf=e=>F4(c,{...e,children:[mf("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"}),mf("path",{d:"M12 9h.01"}),mf("path",{d:"M11 12h1v4h1"})]});import{jsx as ff,jsxs as A4}from"react/jsx-runtime";var hf=e=>A4(c,{...e,children:[ff("path",{d:"M11 5l6 0"}),ff("path",{d:"M7 19l6 0"}),ff("path",{d:"M14 5l-4 14"})]});import{jsx as gf,jsxs as O4}from"react/jsx-runtime";var bf=e=>O4(c,{...e,children:[gf("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),gf("path",{d:"M4 12l8 4l8 -4"}),gf("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as Bv,jsxs as _4}from"react/jsx-runtime";var yf=e=>_4(c,{...e,children:[Bv("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),Bv("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as Lv,jsxs as V4}from"react/jsx-runtime";var vf=e=>V4(c,{...e,children:[Lv("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"}),Lv("path",{d:"M9 4l0 16"})]});import{jsx as If,jsxs as z4}from"react/jsx-runtime";var xf=e=>z4(c,{...e,children:[If("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"}),If("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"}),If("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 Li,jsxs as H4}from"react/jsx-runtime";var Cf=e=>H4(c,{...e,children:[Li("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"}),Li("path",{d:"M4 9h8"}),Li("path",{d:"M12 15h8"}),Li("path",{d:"M12 4v16"})]});import{jsx as ua,jsxs as U4}from"react/jsx-runtime";var Pf=e=>U4(c,{...e,children:[ua("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"}),ua("path",{d:"M4 12h8"}),ua("path",{d:"M12 15h8"}),ua("path",{d:"M12 9h8"}),ua("path",{d:"M12 4v16"})]});import{jsx as Sf,jsxs as $4}from"react/jsx-runtime";var Mf=e=>$4(c,{...e,children:[Sf("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"}),Sf("path",{d:"M10 4l4 16"}),Sf("path",{d:"M12 12l-8 2"})]});import{jsx as Di,jsxs as G4}from"react/jsx-runtime";var wf=e=>G4(c,{...e,children:[Di("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"}),Di("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"}),Di("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"}),Di("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 Ar,jsxs as W4}from"react/jsx-runtime";var kf=e=>W4(c,{...e,children:[Ar("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Ar("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Ar("path",{d:"M15 15l3.35 3.35"}),Ar("path",{d:"M9 15l-3.35 3.35"}),Ar("path",{d:"M5.65 5.65l3.35 3.35"}),Ar("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as Ef,jsxs as q4}from"react/jsx-runtime";var Tf=e=>q4(c,{...e,children:[Ef("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),Ef("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"}),Ef("path",{d:"M9.7 17l4.6 0"})]});import{jsx as Dv}from"react/jsx-runtime";var Nf=e=>Dv(c,{...e,children:Dv("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as Fv,jsxs as K4}from"react/jsx-runtime";var Rf=e=>K4(c,{...e,children:[Fv("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),Fv("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as Av,jsxs as X4}from"react/jsx-runtime";var Bf=e=>X4(c,{...e,children:[Av("path",{d:"M4 19l16 0"}),Av("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as Or,jsxs as Y4}from"react/jsx-runtime";var Lf=e=>Y4(c,{...e,children:[Or("path",{d:"M3 3v18h18"}),Or("path",{d:"M20 18v3"}),Or("path",{d:"M16 16v5"}),Or("path",{d:"M12 13v8"}),Or("path",{d:"M8 16v5"}),Or("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as _r,jsxs as Q4}from"react/jsx-runtime";var Df=e=>Q4(c,{...e,children:[_r("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"}),_r("path",{d:"M3 13c0 0, 8 0, 12 -4"}),_r("path",{d:"M12 8h4v4"}),_r("path",{d:"M15 2v1.44"}),_r("path",{d:"M18.75 4.75l1.2 -1.2"}),_r("path",{d:"M20 9h1.44"})]});import{jsx as Ff,jsxs as Z4}from"react/jsx-runtime";var Af=e=>Z4(c,{...e,children:[Ff("path",{d:"M4 19l16 0"}),Ff("path",{d:"M4 16l6 -6l4 4l5 -5"}),Ff("path",{d:"M15 8h5v5"})]});import{jsx as Ov,jsxs as J4}from"react/jsx-runtime";var Of=e=>J4(c,{...e,children:[Ov("path",{d:"M5 10h14"}),Ov("path",{d:"M5 14h14"})]});import{jsx as Vr,jsxs as j4}from"react/jsx-runtime";var _f=e=>j4(c,{...e,children:[Vr("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),Vr("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),Vr("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),Vr("path",{d:"M11 6l9 0"}),Vr("path",{d:"M11 12l9 0"}),Vr("path",{d:"M11 18l9 0"})]});import{jsx as Fi,jsxs as e5}from"react/jsx-runtime";var Vf=e=>e5(c,{...e,children:[Fi("path",{d:"M12 10v8l8 -4z"}),Fi("path",{d:"M4 6h16"}),Fi("path",{d:"M4 12h4.5"}),Fi("path",{d:"M4 18h4.5"})]});import{jsx as zf,jsxs as t5}from"react/jsx-runtime";var En=e=>t5(c,{...e,children:[zf("path",{d:"M9 15l6 -6"}),zf("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),zf("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 _v,jsxs as o5}from"react/jsx-runtime";var Hf=e=>o5(c,{...e,children:[_v("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),_v("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Ai,jsxs as n5}from"react/jsx-runtime";var Uf=e=>n5(c,{...e,children:[Ai("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Ai("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Ai("path",{d:"M3 3l18 18"}),Ai("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 zr,jsxs as r5}from"react/jsx-runtime";var Hr=e=>r5(c,{...e,children:[zr("path",{d:"M9 6l11 0"}),zr("path",{d:"M9 12l11 0"}),zr("path",{d:"M9 18l11 0"}),zr("path",{d:"M5 6l0 .01"}),zr("path",{d:"M5 12l0 .01"}),zr("path",{d:"M5 18l0 .01"})]});import{jsx as fa,jsxs as l5}from"react/jsx-runtime";var $f=e=>l5(c,{...e,children:[fa("path",{d:"M11 6h9"}),fa("path",{d:"M11 12h9"}),fa("path",{d:"M12 18h8"}),fa("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),fa("path",{d:"M6 10v-6l-2 2"})]});import{jsx as Gf,jsxs as a5}from"react/jsx-runtime";var Wf=e=>a5(c,{...e,children:[Gf("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"}),Gf("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Gf("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as Vv}from"react/jsx-runtime";var qf=e=>Vv(c,{isFilled:!0,...e,children:Vv("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 Kf,jsxs as c5}from"react/jsx-runtime";var Xf=e=>c5(c,{...e,children:[Kf("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"}),Kf("path",{d:"M3 12h13l-3 -3"}),Kf("path",{d:"M13 15l3 -3"})]});import{jsx as Yf,jsxs as i5}from"react/jsx-runtime";var Qf=e=>i5(c,{...e,children:[Yf("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"}),Yf("path",{d:"M9 12h12l-3 -3"}),Yf("path",{d:"M18 15l3 -3"})]});import{jsx as Zf,jsxs as s5}from"react/jsx-runtime";var Jf=e=>s5(c,{...e,children:[Zf("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"}),Zf("path",{d:"M15 12h-12l3 -3"}),Zf("path",{d:"M6 15l-3 -3"})]});import{jsx as Oi,jsxs as p5}from"react/jsx-runtime";var jf=e=>p5(c,{...e,children:[Oi("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Oi("path",{d:"M15 6l3 3"}),Oi("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"}),Oi("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 zv,jsxs as d5}from"react/jsx-runtime";var eh=e=>d5(c,{...e,children:[zv("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"}),zv("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as _i,jsxs as m5}from"react/jsx-runtime";var th=e=>m5(c,{...e,children:[_i("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),_i("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),_i("path",{d:"M3 19l6 -6"}),_i("path",{d:"M15 13l6 6"})]});import{jsx as Hv,jsxs as u5}from"react/jsx-runtime";var oh=e=>u5(c,{...e,children:[Hv("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Hv("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 Vi,jsxs as f5}from"react/jsx-runtime";var ha=e=>f5(c,{...e,children:[Vi("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Vi("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Vi("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Vi("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as zi,jsxs as h5}from"react/jsx-runtime";var nh=e=>h5(c,{...e,children:[zi("path",{d:"M16 4l4 0l0 4"}),zi("path",{d:"M14 10l6 -6"}),zi("path",{d:"M8 20l-4 0l0 -4"}),zi("path",{d:"M4 20l6 -6"})]});import{jsx as Uv}from"react/jsx-runtime";var rh=e=>Uv(c,{...e,children:Uv("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 lh,jsxs as g5}from"react/jsx-runtime";var Co=e=>g5(c,{...e,children:[lh("path",{d:"M8 9h8"}),lh("path",{d:"M8 13h6"}),lh("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 Hi,jsxs as b5}from"react/jsx-runtime";var ah=e=>b5(c,{...e,children:[Hi("path",{d:"M12 11v.01"}),Hi("path",{d:"M8 11v.01"}),Hi("path",{d:"M16 11v.01"}),Hi("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 ga,jsxs as y5}from"react/jsx-runtime";var ch=e=>y5(c,{...e,children:[ga("path",{d:"M8 9h8"}),ga("path",{d:"M8 13h6"}),ga("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"}),ga("path",{d:"M22 22l-5 -5"}),ga("path",{d:"M17 22l5 -5"})]});import{jsx as Ui,jsxs as v5}from"react/jsx-runtime";var ba=e=>v5(c,{...e,children:[Ui("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"}),Ui("path",{d:"M5 10a7 7 0 0 0 14 0"}),Ui("path",{d:"M8 21l8 0"}),Ui("path",{d:"M12 17l0 4"})]});import{jsx as $i,jsxs as I5}from"react/jsx-runtime";var ya=e=>I5(c,{...e,children:[$i("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),$i("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),$i("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),$i("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Gi,jsxs as x5}from"react/jsx-runtime";var va=e=>x5(c,{...e,children:[Gi("path",{d:"M18 10h-4v-4"}),Gi("path",{d:"M20 4l-6 6"}),Gi("path",{d:"M6 14h4v4"}),Gi("path",{d:"M10 14l-6 6"})]});import{jsx as $v,jsxs as C5}from"react/jsx-runtime";var ih=e=>C5(c,{...e,children:[$v("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),$v("path",{d:"M9 12l6 0"})]});import{jsx as sh,jsxs as P5}from"react/jsx-runtime";var ph=e=>P5(c,{...e,children:[sh("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"}),sh("path",{d:"M11 4h2"}),sh("path",{d:"M12 17v.01"})]});import{jsx as Wi,jsxs as S5}from"react/jsx-runtime";var dh=e=>S5(c,{...e,children:[Wi("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"}),Wi("path",{d:"M7 20h10"}),Wi("path",{d:"M9 16v4"}),Wi("path",{d:"M15 16v4"})]});import{jsx as Ia,jsxs as M5}from"react/jsx-runtime";var mh=e=>M5(c,{...e,children:[Ia("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"}),Ia("path",{d:"M3 13h18"}),Ia("path",{d:"M8 21h8"}),Ia("path",{d:"M10 17l-.5 4"}),Ia("path",{d:"M14 17l.5 4"})]});import{jsx as Gv}from"react/jsx-runtime";var uh=e=>Gv(c,{...e,children:Gv("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 Wv,jsxs as w5}from"react/jsx-runtime";var fh=e=>w5(c,{...e,children:[Wv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Wv("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 Ko,jsxs as k5}from"react/jsx-runtime";var At=e=>k5(c,{...e,children:[Ko("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"}),Ko("path",{d:"M8 4l0 16"}),Ko("path",{d:"M16 4l0 16"}),Ko("path",{d:"M4 8l4 0"}),Ko("path",{d:"M4 16l4 0"}),Ko("path",{d:"M4 12l16 0"}),Ko("path",{d:"M16 8l4 0"}),Ko("path",{d:"M16 16l4 0"})]});import{jsx as qv}from"react/jsx-runtime";var hh=e=>qv(c,{...e,children:qv("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 Kv,jsxs as E5}from"react/jsx-runtime";var gh=e=>E5(c,{...e,children:[Kv("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),Kv("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as xa,jsxs as T5}from"react/jsx-runtime";var bh=e=>T5(c,{...e,children:[xa("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),xa("path",{d:"M12 12l8 -4.5"}),xa("path",{d:"M12 12l0 9"}),xa("path",{d:"M12 12l-8 -4.5"}),xa("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as qi,jsxs as N5}from"react/jsx-runtime";var yh=e=>N5(c,{...e,children:[qi("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"}),qi("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),qi("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),qi("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ca,jsxs as R5}from"react/jsx-runtime";var vh=e=>R5(c,{...e,children:[Ca("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"}),Ca("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),Ca("path",{d:"M15 16h.01"}),Ca("path",{d:"M12.01 16h.01"}),Ca("path",{d:"M9.02 16h.01"})]});import{jsx as Xv,jsxs as B5}from"react/jsx-runtime";var Ot=e=>B5(c,{...e,children:[Xv("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"}),Xv("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 Ih,jsxs as L5}from"react/jsx-runtime";var xh=e=>L5(c,{...e,children:[Ih("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Ih("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"}),Ih("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 Ch,jsxs as D5}from"react/jsx-runtime";var Ph=e=>D5(c,{...e,children:[Ch("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"}),Ch("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),Ch("path",{d:"M16 9h2"})]});import{jsx as Sh,jsxs as F5}from"react/jsx-runtime";var Mh=e=>F5(c,{...e,children:[Sh("path",{d:"M14 6l7 7l-4 4"}),Sh("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"}),Sh("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as Ki,jsxs as A5}from"react/jsx-runtime";var wh=e=>A5(c,{...e,children:[Ki("path",{d:"M9 15l6 -6"}),Ki("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),Ki("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),Ki("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Yv}from"react/jsx-runtime";var kh=e=>Yv(c,{...e,children:Yv("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 Eh,jsxs as O5}from"react/jsx-runtime";var Th=e=>O5(c,{...e,children:[Eh("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"}),Eh("path",{d:"M15 7a2 2 0 0 1 2 2"}),Eh("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as Qv,jsxs as _5}from"react/jsx-runtime";var Pa=e=>_5(c,{...e,children:[Qv("path",{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"}),Qv("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 Nh,jsxs as V5}from"react/jsx-runtime";var Sa=e=>V5(c,{...e,children:[Nh("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),Nh("path",{d:"M9 15l-4.5 4.5"}),Nh("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as Zv}from"react/jsx-runtime";var _t=e=>Zv(c,{...e,children:Zv("path",{d:"M7 4v16l13 -8z"})});import{jsx as Jv,jsxs as z5}from"react/jsx-runtime";var Rh=e=>z5(c,{...e,children:[Jv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Jv("path",{d:"M9 8v8l8 -4z"})]});import{jsx as jv,jsxs as H5}from"react/jsx-runtime";var Po=e=>H5(c,{...e,children:[jv("path",{d:"M12 5l0 14"}),jv("path",{d:"M5 12l14 0"})]});import{jsx as Bh,jsxs as U5}from"react/jsx-runtime";var Xo=e=>U5(c,{...e,children:[Bh("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Bh("path",{d:"M9 12h6"}),Bh("path",{d:"M12 9v6"})]});import{jsx as Lh,jsxs as $5}from"react/jsx-runtime";var Dh=e=>$5(c,{...e,children:[Lh("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"}),Lh("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),Lh("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 e2}from"react/jsx-runtime";var Fh=e=>e2(c,{...e,children:e2("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as Ah,jsxs as G5}from"react/jsx-runtime";var Ma=e=>G5(c,{...e,children:[Ah("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Ah("path",{d:"M12 16v.01"}),Ah("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as t2,jsxs as W5}from"react/jsx-runtime";var Oh=e=>W5(c,{...e,children:[t2("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"}),t2("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 o2,jsxs as q5}from"react/jsx-runtime";var _h=e=>q5(c,{...e,children:[o2("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),o2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as n2}from"react/jsx-runtime";var Vh=e=>n2(c,{isFilled:!0,...e,children:n2("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 6.66a2 2 0 0 0 -1.977 1.697l-.018 .154l-.005 .149l.005 .15a2 2 0 1 0 1.995 -2.15z"})});import{jsx as r2}from"react/jsx-runtime";var zh=e=>r2(c,{...e,children:r2("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2m4 -14h6m-6 4h6m-2 4h2"})});import{jsx as l2,jsxs as K5}from"react/jsx-runtime";var Hh=e=>K5(c,{...e,children:[l2("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2"}),l2("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as a2,jsxs as X5}from"react/jsx-runtime";var Uh=e=>X5(c,{...e,children:[a2("path",{d:"M15 14l4 -4l-4 -4"}),a2("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as c2}from"react/jsx-runtime";var wa=e=>c2(c,{...e,children:c2("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as i2,jsxs as Y5}from"react/jsx-runtime";var $h=e=>Y5(c,{...e,children:[i2("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),i2("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as s2,jsxs as Q5}from"react/jsx-runtime";var Gh=e=>Q5(c,{...e,children:[s2("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),s2("path",{d:"M20 4v5h-5"})]});import{jsx as p2,jsxs as Z5}from"react/jsx-runtime";var Wh=e=>Z5(c,{...e,children:[p2("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),p2("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as Xi,jsxs as J5}from"react/jsx-runtime";var qh=e=>J5(c,{...e,children:[Xi("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"}),Xi("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"}),Xi("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),Xi("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as d2}from"react/jsx-runtime";var ka=e=>d2(c,{...e,children:d2("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Kh,jsxs as j5}from"react/jsx-runtime";var Xh=e=>j5(c,{...e,children:[Kh("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Kh("path",{d:"M3 4.001v5h5"}),Kh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Yh,jsxs as eE}from"react/jsx-runtime";var Qh=e=>eE(c,{...e,children:[Yh("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"}),Yh("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),Yh("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as m2,jsxs as tE}from"react/jsx-runtime";var Zh=e=>tE(c,{...e,children:[m2("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"}),m2("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 u2,jsxs as oE}from"react/jsx-runtime";var Jh=e=>oE(c,{...e,children:[u2("path",{d:"M12 3v9h9"}),u2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as jh,jsxs as nE}from"react/jsx-runtime";var e0=e=>nE(c,{...e,children:[jh("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),jh("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),jh("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 t0,jsxs as rE}from"react/jsx-runtime";var o0=e=>rE(c,{...e,children:[t0("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"}),t0("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),t0("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as Yo,jsxs as lE}from"react/jsx-runtime";var n0=e=>lE(c,{...e,children:[Yo("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),Yo("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),Yo("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),Yo("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),Yo("path",{d:"M5 11h1v2h-1z"}),Yo("path",{d:"M10 11l0 2"}),Yo("path",{d:"M14 11h1v2h-1z"}),Yo("path",{d:"M19 11l0 2"})]});import{jsx as Yi,jsxs as aE}from"react/jsx-runtime";var Ea=e=>aE(c,{...e,children:[Yi("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Yi("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Yi("path",{d:"M8.6 8.6l10.4 10.4"}),Yi("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as f2,jsxs as cE}from"react/jsx-runtime";var vt=e=>cE(c,{...e,children:[f2("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),f2("path",{d:"M21 21l-6 -6"})]});import{jsx as h2,jsxs as iE}from"react/jsx-runtime";var r0=e=>iE(c,{...e,children:[h2("path",{d:"M10 14l11 -11"}),h2("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 Qi,jsxs as sE}from"react/jsx-runtime";var l0=e=>sE(c,{...e,children:[Qi("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"}),Qi("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"}),Qi("path",{d:"M7 8l0 .01"}),Qi("path",{d:"M7 16l0 .01"})]});import{jsx as g2,jsxs as pE}from"react/jsx-runtime";var Ta=e=>pE(c,{...e,children:[g2("path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"}),g2("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as So,jsxs as dE}from"react/jsx-runtime";var a0=e=>dE(c,{...e,children:[So("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),So("path",{d:"M4 6l8 0"}),So("path",{d:"M16 6l4 0"}),So("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),So("path",{d:"M4 12l2 0"}),So("path",{d:"M10 12l10 0"}),So("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),So("path",{d:"M4 18l11 0"}),So("path",{d:"M19 18l1 0"})]});import{jsx as Na,jsxs as mE}from"react/jsx-runtime";var c0=e=>mE(c,{...e,children:[Na("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Na("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Na("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Na("path",{d:"M8.7 10.7l6.6 -3.4"}),Na("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as b2,jsxs as uE}from"react/jsx-runtime";var i0=e=>uE(c,{...e,children:[b2("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"}),b2("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as s0,jsxs as fE}from"react/jsx-runtime";var p0=e=>fE(c,{...e,children:[s0("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"}),s0("path",{d:"M16 19h6"}),s0("path",{d:"M19 16v6"})]});import{jsx as d0,jsxs as hE}from"react/jsx-runtime";var m0=e=>hE(c,{...e,children:[d0("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"}),d0("path",{d:"M22 22l-5 -5"}),d0("path",{d:"M17 22l5 -5"})]});import{jsx as y2,jsxs as gE}from"react/jsx-runtime";var u0=e=>gE(c,{...e,children:[y2("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"}),y2("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as Zi,jsxs as bE}from"react/jsx-runtime";var f0=e=>bE(c,{...e,children:[Zi("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Zi("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Zi("path",{d:"M17 17h-11v-14h-2"}),Zi("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as Qo,jsxs as yE}from"react/jsx-runtime";var h0=e=>yE(c,{...e,children:[Qo("path",{d:"M5 9l4 0l0 -4"}),Qo("path",{d:"M3 3l6 6"}),Qo("path",{d:"M5 15l4 0l0 4"}),Qo("path",{d:"M3 21l6 -6"}),Qo("path",{d:"M19 9l-4 0l0 -4"}),Qo("path",{d:"M15 9l6 -6"}),Qo("path",{d:"M19 15l-4 0l0 4"}),Qo("path",{d:"M15 15l6 6"})]});import{jsx as Ji,jsxs as vE}from"react/jsx-runtime";var g0=e=>vE(c,{...e,children:[Ji("path",{d:"M18 4l3 3l-3 3"}),Ji("path",{d:"M18 20l3 -3l-3 -3"}),Ji("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),Ji("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 v2,jsxs as IE}from"react/jsx-runtime";var b0=e=>IE(c,{...e,children:[v2("path",{d:"M4 5v14l12 -7z"}),v2("path",{d:"M20 5l0 14"})]});import{jsx as I2,jsxs as xE}from"react/jsx-runtime";var y0=e=>xE(c,{...e,children:[I2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),I2("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as x2,jsxs as CE}from"react/jsx-runtime";var v0=e=>CE(c,{...e,children:[x2("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"}),x2("path",{d:"M5 5 L19 19"})]});import{jsx as Tn,jsxs as PE}from"react/jsx-runtime";var I0=e=>PE(c,{...e,children:[Tn("path",{d:"M4 10l0 6"}),Tn("path",{d:"M20 10l0 6"}),Tn("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),Tn("path",{d:"M8 3l1 2"}),Tn("path",{d:"M16 3l-1 2"}),Tn("path",{d:"M9 18l0 3"}),Tn("path",{d:"M15 18l0 3"})]});import{jsx as C2,jsxs as SE}from"react/jsx-runtime";var x0=e=>SE(c,{...e,children:[C2("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"}),C2("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as P2}from"react/jsx-runtime";var C0=e=>P2(c,{...e,children:P2("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 Ra,jsxs as ME}from"react/jsx-runtime";var P0=e=>ME(c,{...e,children:[Ra("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Ra("path",{d:"M3.6 9h16.8"}),Ra("path",{d:"M3.6 15h16.8"}),Ra("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),Ra("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as S2}from"react/jsx-runtime";var S0=e=>S2(c,{...e,children:S2("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 M0,jsxs as wE}from"react/jsx-runtime";var w0=e=>wE(c,{...e,children:[M0("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"}),M0("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),M0("path",{d:"M16.5 7.5v.01"})]});import{jsx as Ba,jsxs as kE}from"react/jsx-runtime";var k0=e=>kE(c,{...e,children:[Ba("path",{d:"M8 11v5"}),Ba("path",{d:"M8 8v.01"}),Ba("path",{d:"M12 16v-5"}),Ba("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),Ba("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 E0,jsxs as EE}from"react/jsx-runtime";var T0=e=>EE(c,{...e,children:[E0("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),E0("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),E0("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 Nn,jsxs as TE}from"react/jsx-runtime";var N0=e=>TE(c,{...e,children:[Nn("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"}),Nn("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"}),Nn("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"}),Nn("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"}),Nn("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"}),Nn("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"}),Nn("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"})]});import{jsx as La,jsxs as NE}from"react/jsx-runtime";var R0=e=>NE(c,{...e,children:[La("path",{d:"M21 15l-1 -6l-2.5 6"}),La("path",{d:"M9 15l1 -6"}),La("path",{d:"M3 9h1v6h.5l2.5 -6"}),La("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"}),La("path",{d:"M18 14h2.7"})]});import{jsx as M2,jsxs as RE}from"react/jsx-runtime";var B0=e=>RE(c,{...e,children:[M2("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),M2("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as ji,jsxs as BE}from"react/jsx-runtime";var Da=e=>BE(c,{...e,children:[ji("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),ji("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ji("path",{d:"M13.41 10.59l2.59 -2.59"}),ji("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as w2}from"react/jsx-runtime";var L0=e=>w2(c,{...e,children:w2("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as k2}from"react/jsx-runtime";var Fa=e=>k2(c,{...e,children:k2("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 E2}from"react/jsx-runtime";var D0=e=>E2(c,{isFilled:!0,...e,children:E2("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 T2}from"react/jsx-runtime";var F0=e=>T2(c,{isFilled:!0,...e,children:T2("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 N2}from"react/jsx-runtime";var A0=e=>N2(c,{...e,children:N2("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 R2}from"react/jsx-runtime";var Aa=e=>R2(c,{...e,children:R2("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 B2,jsxs as LE}from"react/jsx-runtime";var O0=e=>LE(c,{...e,children:[B2("path",{d:"M5 12l14 0"}),B2("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 L2,jsxs as DE}from"react/jsx-runtime";var _0=e=>DE(c,{...e,children:[L2("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),L2("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 D2,jsxs as FE}from"react/jsx-runtime";var V0=e=>FE(c,{...e,children:[D2("path",{d:"M7 10h14l-4 -4"}),D2("path",{d:"M17 14h-14l4 4"})]});import{jsx as es,jsxs as AE}from"react/jsx-runtime";var z0=e=>AE(c,{...e,children:[es("path",{d:"M16 3l4 4l-4 4"}),es("path",{d:"M10 7l10 0"}),es("path",{d:"M8 13l-4 4l4 4"}),es("path",{d:"M4 17l9 0"})]});import{jsx as H0,jsxs as OE}from"react/jsx-runtime";var U0=e=>OE(c,{...e,children:[H0("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"}),H0("path",{d:"M3 10h18"}),H0("path",{d:"M10 3v18"})]});import{jsx as F2,jsxs as _E}from"react/jsx-runtime";var Oa=e=>_E(c,{...e,children:[F2("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),F2("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 Ur,jsxs as VE}from"react/jsx-runtime";var $0=e=>VE(c,{...e,children:[Ur("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Ur("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),Ur("path",{d:"M12 2l0 2"}),Ur("path",{d:"M12 20l0 2"}),Ur("path",{d:"M20 12l2 0"}),Ur("path",{d:"M2 12l2 0"})]});import{jsx as G0,jsxs as zE}from"react/jsx-runtime";var W0=e=>zE(c,{...e,children:[G0("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),G0("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),G0("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as q0,jsxs as HE}from"react/jsx-runtime";var K0=e=>HE(c,{...e,children:[q0("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),q0("path",{d:"M9 11h6"}),q0("path",{d:"M5 19h14"})]});import{jsx as A2,jsxs as UE}from"react/jsx-runtime";var X0=e=>UE(c,{...e,children:[A2("path",{d:"M6 4l12 0"}),A2("path",{d:"M12 4l0 16"})]});import{jsx as ts,jsxs as $E}from"react/jsx-runtime";var Y0=e=>$E(c,{...e,children:[ts("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),ts("path",{d:"M12.5 5.5l4 4"}),ts("path",{d:"M4.5 13.5l4 4"}),ts("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as O2}from"react/jsx-runtime";var Q0=e=>O2(c,{...e,children:O2("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 _2}from"react/jsx-runtime";var Z0=e=>_2(c,{...e,children:_2("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 V2,jsxs as GE}from"react/jsx-runtime";var J0=e=>GE(c,{isFilled:!0,...e,children:[V2("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"}),V2("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 z2,jsxs as WE}from"react/jsx-runtime";var j0=e=>WE(c,{...e,children:[z2("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),z2("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 $r,jsxs as qE}from"react/jsx-runtime";var e1=e=>qE(c,{...e,children:[$r("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),$r("path",{d:"M4 6.371h7"}),$r("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),$r("path",{d:"M12 20l4 -9l4 9"}),$r("path",{d:"M19.1 18h-6.2"}),$r("path",{d:"M6.694 3l.793 .582"})]});import{jsx as _a,jsxs as KE}from"react/jsx-runtime";var Et=e=>KE(c,{...e,children:[_a("path",{d:"M4 7l16 0"}),_a("path",{d:"M10 11l0 6"}),_a("path",{d:"M14 11l0 6"}),_a("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),_a("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as H2,jsxs as XE}from"react/jsx-runtime";var t1=e=>XE(c,{...e,children:[H2("path",{d:"M3 17l6 -6l4 4l8 -8"}),H2("path",{d:"M14 7l7 0l0 7"})]});import{jsx as U2,jsxs as YE}from"react/jsx-runtime";var o1=e=>YE(c,{...e,children:[U2("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),U2("path",{d:"M5 19h14"})]});import{jsx as $2,jsxs as QE}from"react/jsx-runtime";var n1=e=>QE(c,{...e,children:[$2("path",{d:"M9 14l-4 -4l4 -4"}),$2("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as r1,jsxs as ZE}from"react/jsx-runtime";var l1=e=>ZE(c,{...e,children:[r1("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"}),r1("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),r1("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as a1,jsxs as JE}from"react/jsx-runtime";var Rn=e=>JE(c,{...e,children:[a1("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"}),a1("path",{d:"M9 15l3 -3l3 3"}),a1("path",{d:"M12 12l0 9"})]});import{jsx as G2,jsxs as jE}from"react/jsx-runtime";var Va=e=>jE(c,{...e,children:[G2("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),G2("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as c1,jsxs as e3}from"react/jsx-runtime";var i1=e=>e3(c,{...e,children:[c1("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),c1("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),c1("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as os,jsxs as t3}from"react/jsx-runtime";var s1=e=>t3(c,{...e,children:[os("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),os("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),os("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),os("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as p1,jsxs as o3}from"react/jsx-runtime";var d1=e=>o3(c,{...e,children:[p1("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),p1("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),p1("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 ns,jsxs as n3}from"react/jsx-runtime";var m1=e=>n3(c,{...e,children:[ns("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),ns("path",{d:"M16 19h6"}),ns("path",{d:"M19 16v6"}),ns("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as rs,jsxs as r3}from"react/jsx-runtime";var u1=e=>r3(c,{...e,children:[rs("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),rs("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),rs("path",{d:"M16 22l5 -5"}),rs("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as ls,jsxs as l3}from"react/jsx-runtime";var f1=e=>l3(c,{...e,children:[ls("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),ls("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),ls("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),ls("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as h1,jsxs as a3}from"react/jsx-runtime";var g1=e=>a3(c,{...e,children:[h1("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),h1("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),h1("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 za,jsxs as c3}from"react/jsx-runtime";var b1=e=>c3(c,{...e,children:[za("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),za("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),za("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),za("path",{d:"M19 22v-6"}),za("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as W2,jsxs as i3}from"react/jsx-runtime";var y1=e=>i3(c,{...e,children:[W2("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"}),W2("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 v1,jsxs as s3}from"react/jsx-runtime";var I1=e=>s3(c,{...e,children:[v1("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),v1("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),v1("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 x1,jsxs as p3}from"react/jsx-runtime";var Ha=e=>p3(c,{...e,children:[x1("path",{d:"M15 8a5 5 0 0 1 0 8"}),x1("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),x1("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 q2,jsxs as d3}from"react/jsx-runtime";var Ua=e=>d3(c,{...e,children:[q2("path",{d:"M15 8a5 5 0 0 1 0 8"}),q2("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 K2,jsxs as m3}from"react/jsx-runtime";var $a=e=>m3(c,{...e,children:[K2("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"}),K2("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as X2}from"react/jsx-runtime";var C1=e=>X2(c,{...e,children:X2("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 Y2,jsxs as u3}from"react/jsx-runtime";var Le=e=>u3(c,{...e,children:[Y2("path",{d:"M18 6l-12 12"}),Y2("path",{d:"M6 6l12 12"})]});import{jsx as Q2,jsxs as f3}from"react/jsx-runtime";var P1=e=>f3(c,{...e,children:[Q2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Q2("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Z2}from"react/jsx-runtime";var S1=e=>Z2(c,{isFilled:!0,...e,children:Z2("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 J2,jsxs as h3}from"react/jsx-runtime";var M1=e=>h3(c,{...e,children:[J2("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"}),J2("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as as,jsxs as g3}from"react/jsx-runtime";var w1=e=>g3(c,{...e,children:[as("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),as("path",{d:"M7 10l6 0"}),as("path",{d:"M10 7l0 6"}),as("path",{d:"M21 21l-6 -6"})]});import{jsx as k1,jsxs as b3}from"react/jsx-runtime";var E1=e=>b3(c,{...e,children:[k1("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),k1("path",{d:"M7 10l6 0"}),k1("path",{d:"M21 21l-6 -6"})]});var Yt=(g=>(g["48AlertFeatured"]="48AlertFeatured",g["48SuccessFeatured"]="48SuccessFeatured",g.AlertCircle="AlertCircle",g.AlertOctagon="AlertOctagon",g.AlertTriangle="AlertTriangle",g.Apps="Apps",g.ArrowBarDown="ArrowBarDown",g.ArrowBarLeft="ArrowBarLeft",g.ArrowBarRight="ArrowBarRight",g.ArrowBarToDown="ArrowBarToDown",g.ArrowBarToLeft="ArrowBarToLeft",g.ArrowBarToRight="ArrowBarToRight",g.ArrowBarToUp="ArrowBarToUp",g.ArrowBarUp="ArrowBarUp",g.Archive="Archive",g.ArrowDown="ArrowDown",g.ArrowDownLeft="ArrowDownLeft",g.ArrowDownNarrow="ArrowDownNarrow",g.ArrowDownRight="ArrowDownRight",g.ArrowLeft="ArrowLeft",g.ArrowLeftNarrow="ArrowLeftNarrow",g.ArrowRight="ArrowRight",g.ArrowRightNarrow="ArrowRightNarrow",g.ArrowUp="ArrowUp",g.ArrowUpLeft="ArrowUpLeft",g.ArrowUpNarrow="ArrowUpNarrow",g.ArrowUpRight="ArrowUpRight",g.Attachment="Attachment",g.BadgeHd="BadgeHd",g.BarChart="BarChart",g.BarChartSquare="BarChartSquare",g.Bell="Bell",g.Bold="Bold",g.Bookmark="Bookmark",g.BookmarkCheck="BookmarkCheck",g.BookmarkCheckFill="BookmarkCheckFill",g.BookmarkFill="BookmarkFill",g.BookmarkMinus="BookmarkMinus",g.BookmarkPlus="BookmarkPlus",g.BookmarkX="BookmarkX",g.BookOpen="BookOpen",g.BoxLines="BoxLines",g.BoxText="BoxText",g.BracketsCheck="BracketsCheck",g.BracketsEllipses="BracketsEllipses",g.BrickWall="BrickWall",g.Briefcase="Briefcase",g.Building="Building",g.Calculator="Calculator",g.Calendar="Calendar",g.Certificate="Certificate",g.Check="Check",g.CheckCircle="CheckCircle",g.CheckCircleBroken="CheckCircleBroken",g.CheckFill="CheckFill",g.CheckVerified="CheckVerified",g.CheckVerifiedFill="CheckVerifiedFill",g.ChevronDown="ChevronDown",g.ChevronDownDouble="ChevronDownDouble",g.ChevronDownLeft="ChevronDownLeft",g.ChevronDownLeftDouble="ChevronDownLeftDouble",g.ChevronDownRight="ChevronDownRight",g.ChevronDownRightDouble="ChevronDownRightDouble",g.ChevronLeft="ChevronLeft",g.ChevronLeftDouble="ChevronLeftDouble",g.ChevronRight="ChevronRight",g.ChevronRightDouble="ChevronRightDouble",g.ChevronSelectorVertical="ChevronSelectorVertical",g.ChevronUp="ChevronUp",g.ChevronUpDouble="ChevronUpDouble",g.ChevronUpLeft="ChevronUpLeft",g.ChevronUpLeftDouble="ChevronUpLeftDouble",g.ChevronUpRight="ChevronUpRight",g.ChevronUpRightDouble="ChevronUpRightDouble",g.Click="Click",g.Clock="Clock",g.ClockFastForward="ClockFastForward",g.ClockPlay="ClockPlay",g.ClockRewind="ClockRewind",g.Clone="Clone",g.ClosedCaption="ClosedCaption",g.Code="Code",g.CodeBrowser="CodeBrowser",g.CodeCircle="CodeCircle",g.Colors="Colors",g.ColumnEdit="ColumnEdit",g.Copy="Copy",g.Copy2="Copy2",g.CopyCheck="CopyCheck",g.CreditCard="CreditCard",g.Cube="Cube",g.CubeOutline="CubeOutline",g.CursorBox="CursorBox",g.Dataflow="Dataflow",g.Dataflow2="Dataflow2",g.Dataflow3="Dataflow3",g.DistributeHorizontal="DistributeHorizontal",g.Dollar="Dollar",g.DollarCircle="DollarCircle",g.Dot="Dot",g.DotFill="DotFill",g.DotsGrid="DotsGrid",g.DotsHorizontal="DotsHorizontal",g.DotsVertical="DotsVertical",g.Download="Download",g.Edit="Edit",g.Editable="Editable",g.Expand="Expand",g.ExternalLink="ExternalLink",g.ExternalLink2="ExternalLink2",g.Eye="Eye",g.EyeHidden="EyeHidden",g.EyeHidden2="EyeHidden2",g.FaceAngry="FaceAngry",g.FaceLaugh="FaceLaugh",g.FaceSmile="FaceSmile",g.File="File",g.FileCheck="FileCheck",g.FileCsv="FileCsv",g.FileDownload="FileDownload",g.FileJson="FileJson",g.FileList="FileList",g.FileMusic="FileMusic",g.FilePdf="FilePdf",g.Files="Files",g.FileSpreadsheet="FileSpreadsheet",g.FileText="FileText",g.FileUpload="FileUpload",g.FileXls="FileXls",g.FileXlsx="FileXlsx",g.FileZip="FileZip",g.Filter="Filter",g.Filter2="Filter2",g.Flag="Flag",g.Flag2="Flag2",g.FlagFill="FlagFill",g.Focus="Focus",g.Folder="Folder",g.FolderExport="FolderExport",g.FolderImport="FolderImport",g.GraduationCap="GraduationCap",g.GripVertical="GripVertical",g.Hand="Hand",g.HandShield="HandShield",g.Hash="Hash",g.HeadsetMic="HeadsetMic",g.Heart="Heart",g.HeartFill="HeartFill",g.House="House",g.HouseLine="HouseLine",g.Image="Image",g.Image2="Image2",g.ImageCheck="ImageCheck",g.ImageOff="ImageOff",g.Import="Import",g.Inbox="Inbox",g.InfoCircle="InfoCircle",g.InfoHexagon="InfoHexagon",g.Italic="Italic",g.LayersMultiple="LayersMultiple",g.LayersSingle="LayersSingle",g.Layout="Layout",g.Layout2="Layout2",g.LayoutColumns="LayoutColumns",g.LayoutCustom="LayoutCustom",g.LayoutStuffed="LayoutStuffed",g.LayoutTile="LayoutTile",g.LifeBuoy="LifeBuoy",g.Lightbulb="Lightbulb",g.Lightning="Lightning",g.LightningFast="LightningFast",g.LineChart="LineChart",g.LineChartBar="LineChartBar",g.LineChartBreakoutSquare="LineChartBreakoutSquare",g.LineChartUp="LineChartUp",g.Lines="Lines",g.LinesCheck="LinesCheck",g.LinesPlay="LinesPlay",g.Link="Link",g.Link2="Link2",g.LinkOff="LinkOff",g.ListBullet="ListBullet",g.ListOrder="ListOrder",g.Lock="Lock",g.LockFill="LockFill",g.LogIn="LogIn",g.LogOut="LogOut",g.LogOut2="LogOut2",g.MagicWand="MagicWand",g.Mail="Mail",g.MailOpen="MailOpen",g.MapPin="MapPin",g.Maximize="Maximize",g.Maximize2="Maximize2",g.MessageCircle="MessageCircle",g.MessageSquare="MessageSquare",g.MessageSquare2="MessageSquare2",g.MessageXSquare="MessageXSquare",g.Microphone="Microphone",g.Minimize="Minimize",g.Minimize2="Minimize2",g.MinusCircle="MinusCircle",g.Mobile="Mobile",g.Monitor="Monitor",g.Monitor2="Monitor2",g.Moon="Moon",g.MoonCircle="MoonCircle",g.Movie="Movie",g.NavigationPointer="NavigationPointer",g.NotificationBox="NotificationBox",g.Package="Package",g.Palette="Palette",g.PasscodeLock="PasscodeLock",g.Pause="Pause",g.PauseCircle="PauseCircle",g.PCSetup="PCSetup",g.Pen="Pen",g.PercentageCircle="PercentageCircle",g.Perspective="Perspective",g.PhoneCall="PhoneCall",g.PictureInPicture="PictureInPicture",g.Pin="Pin",g.Play="Play",g.PlayCircle="PlayCircle",g.Plus="Plus",g.PlusCircle="PlusCircle",g.Printer="Printer",g.Pulse="Pulse",g.QuestionCircle="QuestionCircle",g.Quote="Quote",g.RadioButton="RadioButton",g.RadioButtonFill="RadioButtonFill",g.Receipt="Receipt",g.ReceiptCheck="ReceiptCheck",g.Redo="Redo",g.Refresh="Refresh",g.Refresh2="Refresh2",g.Refresh3="Refresh3",g.Repeat="Repeat",g.Replace="Replace",g.Replay="Replay",g.Restore="Restore",g.Rocket="Rocket",g.RoundChart="RoundChart",g.RoundChart2="RoundChart2",g.Route="Route",g.Save="Save",g.ScanDots="ScanDots",g.Scissors="Scissors",g.Search="Search",g.Send="Send",g.Server="Server",g.Settings="Settings",g.Settings2="Settings2",g.Share="Share",g.ShieldLightning="ShieldLightning",g.ShieldPlus="ShieldPlus",g.ShieldRemove="ShieldRemove",g.ShoppingBag="ShoppingBag",g.ShoppingCart="ShoppingCart",g.Shrink="Shrink",g.Shuffle="Shuffle",g.SkipForward="SkipForward",g.SlashCircle="SlashCircle",g.SlashOctagon="SlashOctagon",g.SocialAndroid="SocialAndroid",g.SocialApple="SocialApple",g.SocialGithub="SocialGithub",g.SocialGlobe="SocialGlobe",g.SocialGoogle="SocialGoogle",g.SocialInstagram="SocialInstagram",g.SocialLinkedin="SocialLinkedin",g.SocialMastercard="SocialMastercard",g.SocialReact="SocialReact",g.SocialVisa="SocialVisa",g.SocialX="SocialX",g.Speedometer="Speedometer",g.Stairs="Stairs",g.Star="Star",g.StarFill="StarFill",g.StarHalf="StarHalf",g.Stars="Stars",g.Stop="Stop",g.Strikethrough="Strikethrough",g.Sun="Sun",g.Swap="Swap",g.SwitchHorizontal="SwitchHorizontal",g.Table="Table",g.Tag="Tag",g.Target="Target",g.Target2="Target2",g.TextFormat="TextFormat",g.TextFormat2="TextFormat2",g.TextHighlight="TextHighlight",g.ThumbsDown="ThumbsDown",g.ThumbsUp="ThumbsUp",g.ThumbsUpFill="ThumbsUpFill",g.Toggle="Toggle",g.Translate="Translate",g.Trash="Trash",g.Trending="Trending",g.Underline="Underline",g.Undo="Undo",g.Unlock="Unlock",g.UploadCloud="UploadCloud",g.User="User",g.UserCheck="UserCheck",g.UserDollar="UserDollar",g.UserEdit="UserEdit",g.UserPlus="UserPlus",g.UserRight="UserRight",g.Users="Users",g.UserSquare="UserSquare",g.UsersUp="UsersUp",g.UserVoice="UserVoice",g.Video="Video",g.VideoChat="VideoChat",g.Volume="Volume",g.VolumeDown="VolumeDown",g.VolumeMute="VolumeMute",g.Wrench="Wrench",g.X="X",g.XCircle="XCircle",g.XCircleFill="XCircleFill",g.XSquare="XSquare",g.ZoomIn="ZoomIn",g.ZoomOut="ZoomOut",g))(Yt||{});import{jsx as b}from"react/jsx-runtime";function $e({name:e,...t}){switch(e){case"48AlertFeatured":return b(gd,{...t});case"48SuccessFeatured":return b(bd,{...t});case"AlertCircle":return b(Cn,{...t});case"AlertOctagon":return b(vd,{...t});case"AlertTriangle":return b(xd,{...t});case"ArrowBarDown":return b(Md,{...t});case"ArrowBarLeft":return b(wd,{...t});case"ArrowBarRight":return b(kd,{...t});case"ArrowBarToDown":return b(Ed,{...t});case"ArrowBarToLeft":return b(Td,{...t});case"ArrowBarToRight":return b(Nd,{...t});case"ArrowBarToUp":return b(Rd,{...t});case"ArrowBarUp":return b(Bd,{...t});case"Apps":return b(Cd,{...t});case"Archive":return b(Sd,{...t});case"ArrowDown":return b(Dd,{...t});case"ArrowDownLeft":return b(Fd,{...t});case"ArrowDownNarrow":return b(Od,{...t});case"ArrowDownRight":return b(_d,{...t});case"ArrowLeft":return b(zd,{...t});case"ArrowLeftNarrow":return b(Ud,{...t});case"ArrowRight":return b(Gd,{...t});case"ArrowRightNarrow":return b(qd,{...t});case"ArrowUp":return b(Xd,{...t});case"ArrowUpLeft":return b(Yd,{...t});case"ArrowUpNarrow":return b(Zd,{...t});case"ArrowUpRight":return b(Jd,{...t});case"Attachment":return b(jd,{...t});case"BadgeHd":return b(Vl,{...t});case"BarChart":return b(em,{...t});case"BarChartSquare":return b(tm,{...t});case"Bell":return b(om,{...t});case"Bold":return b(nm,{...t});case"BookOpen":return b(sm,{...t});case"Bookmark":return b(rm,{...t});case"BookmarkCheck":return b(sd,{...t});case"BookmarkCheckFill":return b(pd,{...t});case"BookmarkFill":return b(lm,{...t});case"BookmarkMinus":return b(am,{...t});case"BookmarkPlus":return b(md,{...t});case"BookmarkX":return b(im,{...t});case"BoxLines":return b(pm,{...t});case"BoxText":return b(mm,{...t});case"BracketsCheck":return b(fm,{...t});case"BracketsEllipses":return b(hm,{...t});case"BrickWall":return b(gm,{...t});case"Briefcase":return b(bm,{...t});case"Building":return b(ud,{...t});case"Calculator":return b(ym,{...t});case"Calendar":return b($l,{...t});case"Certificate":return b(vm,{...t});case"Check":return b(bo,{...t});case"CheckCircle":return b(Pn,{...t});case"CheckCircleBroken":return b(Im,{...t});case"CheckFill":return b(xm,{...t});case"CheckVerified":return b(Cm,{...t});case"CheckVerifiedFill":return b(Pm,{...t});case"ChevronDown":return b(Sn,{...t});case"ChevronDownDouble":return b(Sm,{...t});case"ChevronDownLeft":return b(Mm,{...t});case"ChevronDownLeftDouble":return b(wm,{...t});case"ChevronDownRight":return b(km,{...t});case"ChevronDownRightDouble":return b(Em,{...t});case"ChevronLeft":return b(yo,{...t});case"ChevronLeftDouble":return b(Tm,{...t});case"ChevronRight":return b(St,{...t});case"ChevronRightDouble":return b(Gl,{...t});case"ChevronSelectorVertical":return b(Nm,{...t});case"ChevronUp":return b(vo,{...t});case"ChevronUpDouble":return b(Rm,{...t});case"ChevronUpLeft":return b(Bm,{...t});case"ChevronUpLeftDouble":return b(Lm,{...t});case"ChevronUpRight":return b(Dm,{...t});case"ChevronUpRightDouble":return b(Fm,{...t});case"Click":return b(Am,{...t});case"Clock":return b(Wl,{...t});case"ClockFastForward":return b(Om,{...t});case"ClockPlay":return b(Vm,{...t});case"ClockRewind":return b(zm,{...t});case"Clone":return b(Hm,{...t});case"ClosedCaption":return b(Kl,{...t});case"Code":return b(Gm,{...t});case"CodeBrowser":return b(Wm,{...t});case"CodeCircle":return b(Km,{...t});case"Colors":return b(Ym,{...t});case"ColumnEdit":return b(fd,{...t});case"Copy":return b(Qm,{...t});case"Copy2":return b(Zm,{...t});case"CopyCheck":return b(jm,{...t});case"Files":return b(Ou,{...t});case"CreditCard":return b(eu,{...t});case"Cube":return b(tu,{...t});case"CubeOutline":return b(ou,{...t});case"CursorBox":return b(Xl,{...t});case"Dataflow":return b(nu,{...t});case"Dataflow2":return b(ru,{...t});case"Dataflow3":return b(lu,{...t});case"DistributeHorizontal":return b(cu,{...t});case"Dollar":return b(iu,{...t});case"DollarCircle":return b(pu,{...t});case"Dot":return b(du,{...t});case"DotFill":return b(mu,{...t});case"DotsGrid":return b(uu,{...t});case"DotsHorizontal":return b(Ql,{...t});case"DotsVertical":return b($o,{...t});case"Download":return b(bu,{...t});case"Edit":return b(yu,{...t});case"Editable":return b(Iu,{...t});case"Expand":return b(xu,{...t});case"ExternalLink":return b(Zl,{...t});case"ExternalLink2":return b(Su,{...t});case"Eye":return b(Mu,{...t});case"EyeHidden":return b(ku,{...t});case"EyeHidden2":return b(Eu,{...t});case"FaceAngry":return b(Tu,{...t});case"FaceLaugh":return b(Nu,{...t});case"FaceSmile":return b(Ru,{...t});case"File":return b(wn,{...t});case"FileCheck":return b(Lu,{...t});case"FileCsv":return b(ea,{...t});case"FileDownload":return b(Du,{...t});case"FileJson":return b(ta,{...t});case"FileList":return b(Fu,{...t});case"FileMusic":return b(kt,{...t});case"FilePdf":return b(kn,{...t});case"FileSpreadsheet":return b(na,{...t});case"FileText":return b(xo,{...t});case"FileUpload":return b(_u,{...t});case"FileXls":return b(la,{...t});case"FileXlsx":return b(aa,{...t});case"FileZip":return b(Xt,{...t});case"Filter":return b(Vu,{...t});case"Filter2":return b(ca,{...t});case"Flag":return b(Hu,{...t});case"Flag2":return b(Uu,{...t});case"FlagFill":return b($u,{...t});case"Focus":return b(Gu,{...t});case"Folder":return b(Wu,{...t});case"FolderExport":return b(qu,{...t});case"FolderImport":return b(Ku,{...t});case"GraduationCap":return b(Xu,{...t});case"GripVertical":return b(Yu,{...t});case"Hand":return b(Qu,{...t});case"HandShield":return b(Zu,{...t});case"Hash":return b(Ju,{...t});case"HeadsetMic":return b(ju,{...t});case"Heart":return b(ef,{...t});case"HeartFill":return b(tf,{...t});case"House":return b(nf,{...t});case"HouseLine":return b(sa,{...t});case"Image":return b(nt,{...t});case"Image2":return b(rf,{...t});case"ImageCheck":return b(lf,{...t});case"ImageOff":return b(af,{...t});case"Import":return b(cf,{...t});case"Inbox":return b(sf,{...t});case"InfoCircle":return b(df,{...t});case"InfoHexagon":return b(uf,{...t});case"Italic":return b(hf,{...t});case"LayersMultiple":return b(bf,{...t});case"LayersSingle":return b(yf,{...t});case"Layout":return b(vf,{...t});case"Layout2":return b(xf,{...t});case"LayoutColumns":return b(Cf,{...t});case"LayoutCustom":return b(Pf,{...t});case"LayoutStuffed":return b(Mf,{...t});case"LayoutTile":return b(wf,{...t});case"LifeBuoy":return b(kf,{...t});case"Lightbulb":return b(Tf,{...t});case"Lightning":return b(Nf,{...t});case"LightningFast":return b(Rf,{...t});case"LineChartBar":return b(Lf,{...t});case"LineChartBreakoutSquare":return b(Df,{...t});case"LineChart":return b(Bf,{...t});case"LineChartUp":return b(Af,{...t});case"Lines":return b(Of,{...t});case"LinesCheck":return b(_f,{...t});case"LinesPlay":return b(Vf,{...t});case"Link":return b(En,{...t});case"Link2":return b(Hf,{...t});case"LinkOff":return b(Uf,{...t});case"ListBullet":return b(Hr,{...t});case"ListOrder":return b($f,{...t});case"Lock":return b(Wf,{...t});case"LockFill":return b(qf,{...t});case"LogIn":return b(Xf,{...t});case"LogOut":return b(Qf,{...t});case"LogOut2":return b(Jf,{...t});case"MagicWand":return b(jf,{...t});case"Mail":return b(eh,{...t});case"MailOpen":return b(th,{...t});case"MapPin":return b(oh,{...t});case"Maximize":return b(ha,{...t});case"Maximize2":return b(nh,{...t});case"MessageCircle":return b(rh,{...t});case"MessageSquare":return b(Co,{...t});case"MessageSquare2":return b(ah,{...t});case"MessageXSquare":return b(ch,{...t});case"Microphone":return b(ba,{...t});case"Minimize":return b(ya,{...t});case"Minimize2":return b(va,{...t});case"MinusCircle":return b(ih,{...t});case"Mobile":return b(ph,{...t});case"Monitor":return b(dh,{...t});case"Monitor2":return b(mh,{...t});case"Moon":return b(uh,{...t});case"MoonCircle":return b(fh,{...t});case"Movie":return b(At,{...t});case"NavigationPointer":return b(hh,{...t});case"NotificationBox":return b(gh,{...t});case"Package":return b(bh,{...t});case"Palette":return b(yh,{...t});case"PasscodeLock":return b(vh,{...t});case"Pause":return b(Ot,{...t});case"PauseCircle":return b(xh,{...t});case"PCSetup":return b(Ph,{...t});case"Pen":return b(Mh,{...t});case"PercentageCircle":return b(wh,{...t});case"Perspective":return b(kh,{...t});case"PhoneCall":return b(Th,{...t});case"PictureInPicture":return b(Pa,{...t});case"Pin":return b(Sa,{...t});case"Play":return b(_t,{...t});case"PlayCircle":return b(Rh,{...t});case"Plus":return b(Po,{...t});case"PlusCircle":return b(Xo,{...t});case"Printer":return b(Dh,{...t});case"Pulse":return b(Fh,{...t});case"QuestionCircle":return b(Ma,{...t});case"Quote":return b(Oh,{...t});case"RadioButton":return b(_h,{...t});case"RadioButtonFill":return b(Vh,{...t});case"Receipt":return b(zh,{...t});case"ReceiptCheck":return b(Hh,{...t});case"Redo":return b(Uh,{...t});case"Refresh":return b(wa,{...t});case"Refresh2":return b($h,{...t});case"Refresh3":return b(Gh,{...t});case"Repeat":return b(Wh,{...t});case"Replace":return b(qh,{...t});case"Replay":return b(ka,{...t});case"Restore":return b(Xh,{...t});case"Rocket":return b(Qh,{...t});case"RoundChart":return b(Zh,{...t});case"RoundChart2":return b(Jh,{...t});case"Route":return b(e0,{...t});case"Save":return b(o0,{...t});case"ScanDots":return b(n0,{...t});case"Scissors":return b(Ea,{...t});case"Search":return b(vt,{...t});case"Send":return b(r0,{...t});case"Server":return b(l0,{...t});case"Settings":return b(Ta,{...t});case"Settings2":return b(a0,{...t});case"Share":return b(c0,{...t});case"ShieldLightning":return b(i0,{...t});case"ShieldPlus":return b(p0,{...t});case"ShieldRemove":return b(m0,{...t});case"ShoppingBag":return b(u0,{...t});case"ShoppingCart":return b(f0,{...t});case"Shrink":return b(h0,{...t});case"Shuffle":return b(g0,{...t});case"SkipForward":return b(b0,{...t});case"SlashCircle":return b(y0,{...t});case"SlashOctagon":return b(v0,{...t});case"SocialAndroid":return b(I0,{...t});case"SocialApple":return b(x0,{...t});case"SocialGithub":return b(C0,{...t});case"SocialGlobe":return b(P0,{...t});case"SocialGoogle":return b(S0,{...t});case"SocialInstagram":return b(w0,{...t});case"SocialLinkedin":return b(k0,{...t});case"SocialMastercard":return b(T0,{...t});case"SocialReact":return b(N0,{...t});case"SocialVisa":return b(R0,{...t});case"SocialX":return b(B0,{...t});case"Speedometer":return b(Da,{...t});case"Stairs":return b(L0,{...t});case"Star":return b(Fa,{...t});case"StarFill":return b(D0,{...t});case"StarHalf":return b(F0,{...t});case"Stars":return b(A0,{...t});case"Stop":return b(Aa,{...t});case"Strikethrough":return b(O0,{...t});case"Sun":return b(_0,{...t});case"Swap":return b(V0,{...t});case"SwitchHorizontal":return b(z0,{...t});case"Table":return b(U0,{...t});case"Tag":return b(Oa,{...t});case"Target":return b($0,{...t});case"Target2":return b(W0,{...t});case"TextFormat":return b(K0,{...t});case"TextFormat2":return b(X0,{...t});case"TextHighlight":return b(Y0,{...t});case"ThumbsDown":return b(Q0,{...t});case"ThumbsUp":return b(Z0,{...t});case"ThumbsUpFill":return b(J0,{...t});case"Toggle":return b(j0,{...t});case"Translate":return b(e1,{...t});case"Trash":return b(Et,{...t});case"Trending":return b(t1,{...t});case"Underline":return b(o1,{...t});case"Undo":return b(n1,{...t});case"Unlock":return b(l1,{...t});case"UploadCloud":return b(Rn,{...t});case"User":return b(Va,{...t});case"UserCheck":return b(i1,{...t});case"UserDollar":return b(s1,{...t});case"UserEdit":return b(d1,{...t});case"UserPlus":return b(m1,{...t});case"UserRight":return b(u1,{...t});case"UserSquare":return b(g1,{...t});case"Users":return b(f1,{...t});case"UsersUp":return b(b1,{...t});case"UserVoice":return b(hd,{...t});case"Video":return b(y1,{...t});case"VideoChat":return b(I1,{...t});case"Volume":return b(Ha,{...t});case"VolumeDown":return b(Ua,{...t});case"VolumeMute":return b($a,{...t});case"Wrench":return b(C1,{...t});case"X":return b(Le,{...t});case"XCircle":return b(P1,{...t});case"XCircleFill":return b(S1,{...t});case"XSquare":return b(M1,{...t});case"ZoomIn":return b(w1,{...t});case"ZoomOut":return b(E1,{...t});default:return null}}var j2=wn,eI={png:nt,jpg:nt,jpeg:nt,gif:nt,bmp:nt,webp:nt,svg:nt,avif:nt,heic:nt,ico:nt,tif:nt,tiff:nt,mp4:At,mov:At,webm:At,avi:At,mkv:At,m4v:At,ogv:At,mp3:kt,wav:kt,ogg:kt,oga:kt,m4a:kt,aac:kt,flac:kt,weba:kt,pdf:kn,doc:xo,docx:xo,txt:xo,rtf:xo,odt:xo,json:ta,csv:ea,xls:la,xlsx:aa,ods:na,zip:Xt,rar:Xt,"7z":Xt,tar:Xt,gz:Xt,tgz:Xt};var T1=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&eI[t]||j2};import{cn as N1,ColorHelpers as y3}from"@cleen/ui-core";import{forwardRef as v3}from"react";import{Fragment as x3,jsx as Ga,jsxs as C3}from"react/jsx-runtime";var I3=v3(function({iconName:t,iconSrc:o,icon:n,iconSize:r=20,header:l,color:a,children:i,classNames:p,styles:s,...d},f){let m=y3.getComputedColor(a);return Ga(Re,{ref:f,classNames:{...p,header:{...p?.header,title:N1("cleen-flex cleen-gap-4",p?.header?.title)}},header:{...l,title:C3(x3,{children:[Ga("div",{className:N1("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:Fl(m,.85),color:m,borderColor:"transparent"},...s?.iconHolder},children:n||(t?Ga($e,{name:t,className:"cleen-text-foreground",style:{width:r,height:r,...m&&{color:m}}}):o?Ga("img",{src:o,alt:"Icon",className:"cleen-text-foreground",style:{width:r,height:r,...m&&{color:m}}}):null)}),l?.title]})},color:a,...d,children:i&&Ga("div",{className:N1("cleen-flex-1",p?.content),style:s?.content,children:i})})});import{cn as Gr}from"@cleen/ui-core";import{forwardRef as P3,useMemo as S3}from"react";import{jsx as Wa}from"react/jsx-runtime";var M3=P3(function({media:t,header:o,color:n,children:r,classNames:l,styles:a,...i},p){let s=S3(()=>{switch(t?.type){case"image":return Wa("img",{...t,alt:t.alt??"Card media",className:Gr("cleen-w-full cleen-aspect-video cleen-object-cover",l?.media?.content),style:a?.media?.content});case"video":return Wa("video",{playsInline:!0,controls:!0,...t,className:Gr("cleen-w-full cleen-aspect-video cleen-object-cover",l?.media?.content),style:a?.media?.content});case"iframe":return Wa("iframe",{...t,title:t.title??"Card iframe",className:Gr("cleen-w-full cleen-aspect-video cleen-object-cover",l?.media?.content),style:a?.media?.content});default:return null}},[t,l?.media,a?.media]);return Wa(Re,{ref:p,color:n,classNames:{...l,container:Gr("cleen-pt-0",l?.container),header:{...l?.header,content:Gr("cleen-p-0",l?.header?.content)}},header:{...o,...s&&{content:Wa("div",{className:Gr("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",l?.media?.container),style:a?.media?.container,children:s})}},...i,children:r})});import{cn as qa}from"@cleen/ui-core";import{jsx as cs,jsxs as w3}from"react/jsx-runtime";var ue=({className:e,classNames:t,style:o,styles:n,infoMessage:r,errorMessage:l,subtitle:a,...i})=>cs("div",{className:qa("cleen",e),style:o,children:w3("div",{className:qa(t?.container),style:n?.container,...i,children:[r&&cs("div",{className:qa("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:n?.infoMessage,role:"note",children:r}),l&&cs("div",{className:qa("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:n?.errorMessage,role:"alert",children:l}),a&&cs("div",{className:qa("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:n?.subtitle,children:a})]})});import{cn as Ka}from"@cleen/ui-core";import{jsx as Xa,jsxs as k3}from"react/jsx-runtime";var ve=({required:e=!1,tooltip:t,children:o,className:n,classNames:r,style:l,styles:a,...i})=>Xa("div",{className:Ka("cleen",n),style:l,children:k3("label",{...i,className:Ka("cleen-w-full cleen-flex cleen-gap-1 cleen-items-center cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-leading-6",r?.container),style:a?.container,children:[Xa("div",{className:Ka({"cleen-flex-1":!e&&!t},r?.label),style:a?.label,children:o}),e&&Xa("span",{className:Ka("cleen-text-primary",r?.required),style:a?.required,children:"*"}),t&&Xa(_e,{hasArrow:!0,placement:"top",label:t,color:"rgb(var(--cleen-neutral-600))",...r?.tooltip,style:a?.tooltip?.style,styles:{...a?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...a?.tooltip?.styles?.labelContainer}},children:Xa(Ma,{className:Ka("cleen-size-3 cleen-text-neutral-500 hover:cleen-text-neutral-900 cleen-transition-colors cleen-cursor-help",r?.questionIcon),style:a?.questionIcon})})]})});import{cn as Mo}from"@cleen/ui-core";import{forwardRef as E3,useEffect as T3,useId as N3,useMemo as R3,useState as tI}from"react";import{jsx as Zo,jsxs as is}from"react/jsx-runtime";var Se=E3(function({name:t,id:o,type:n,label:r,labelTooltip:l,defaultValue:a,value:i,files:p,disabled:s,required:d,className:f,classNames:m,style:h,styles:y,autoComplete:u="off",isFocusedBorder:v,maxLength:I,minLength:P,maxLengthLabelThreshold:x=.5,uploadLabel:C="Choose a file",leftIcon:S,rightIcon:L,topRightIcon:k,inputOverlay:E,infoLabels:F,maxLengthLabel:M,minLengthLabel:N,onChange:w,...O},T){let D=i!==void 0||p!==void 0,[U,B]=tI(a??""),[R,z]=tI(null),G=D?i:U,A=D?p:R;T3(()=>{D||B(i??a??"")},[i,a,D]);let V=$=>{let J=$.target.value;if(n==="file"&&$.target.files){D||z($.target.files),w?.($);return}(!I||J.length<=I)&&(D||B(J),w?.($))},X=R3(()=>P&&N&&(G?.toString()?.length??0)<P?N(P-(G?.toString()?.length??0)):!I||!M||(G?.toString()?.length??0)/I<x?F?.subtitle:M?.(I-(G?.toString()?.length??0)),[G,I,x,F?.subtitle]),_=N3(),H=!!(F?.errorMessage||F?.infoMessage||X),W=H?`${_}-info`:void 0;return Zo("div",{className:Mo("cleen",f),style:h,children:is("div",{className:Mo("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:[(r||k)&&is("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[Zo(ve,{htmlFor:o||t,required:d,tooltip:l,className:Mo("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...y?.label,children:r}),k]}),is("label",{className:Mo("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&&Zo("div",{className:Mo("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}),is("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[Zo("input",{id:o||t,name:t,type:n,disabled:s,maxLength:I,autoComplete:u,value:G,className:Mo("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:V,required:d,"aria-invalid":F?.errorMessage?!0:void 0,"aria-describedby":W,ref:T,...O}),E&&Zo("div",{className:Mo("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:E}),n==="file"&&Zo("p",{className:Mo("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",A&&A.length>0&&"cleen-text-foreground"),children:A&&A.length>0?Array.from(A).map($=>$.name).join(", "):C})]}),L&&Zo("div",{className:Mo("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})]}),H&&Zo(ue,{id:W,...F,subtitle:X})]})})});import{cn as Ya,useOutsideClick as B3}from"@cleen/ui-core";import{forwardRef as L3,useEffect as oI,useImperativeHandle as D3,useMemo as F3,useRef as A3,useState as ss}from"react";import{jsx as Qa,jsxs as O3}from"react/jsx-runtime";var R1=L3(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:r,onIsEditingChange:l,placeholder:a,placeholderText:i,canEdit:p=!0,onSave:s,onCancel:d,onChange:f,inputProps:m,blurOnOutsideClick:h=!0,saveOnBlur:y=!0,isLoading:u,customLoader:v=Qa(de,{}),selectAllOnEdit:I=!1,renderText:P,className:x,classNames:C,style:S,styles:L,...k},E){let F=t!==void 0,[M,N]=ss(o??""),w=F?t??"":M,[O,T]=ss(!1),D=u??O,U=F3(()=>typeof P=="function"?P(w):P||w||i||a,[w,P,a,i]),[B,R]=ss(n),z=r!==void 0,G=z?r:B,[A,V]=ss(w),X=A3(null);D3(E,()=>({...X.current,save:H,cancel:_})),oI(()=>{F||N(o??"")},[o,F]),oI(()=>{G||V(w)},[w,G]);let _=async()=>{z||R(!1),l?.(!1),V(w),await d?.()},H=async()=>{if(!D){if(w===A){await d?.(),z||R(!1),l?.(!1);return}T(!0),F||N(A);try{await s?.(A),z||R(!1),l?.(!1)}finally{T(!1)}}},W=async $=>{$.key==="Enter"&&($.preventDefault(),await H()),$.key==="Escape"&&($.stopPropagation(),$.preventDefault(),await _()),m?.onKeyDown?.($)};return B3({refs:[X],enabled:h&&G,handler:async()=>{y?await H():await _()}}),Qa("div",{className:Ya("cleen",x),style:S,ref:X,...k,children:G?O3("div",{className:Ya("cleen-relative cleen-h-full",C?.container),style:L?.container,children:[Qa(Se,{value:A,onChange:$=>{V($.target.value),f?.($.target.value)},autoFocus:!0,placeholder:a,className:C?.input?.className,classNames:{...C?.input?.classNames,inputContainer:Ya("cleen-border-primary hover:cleen-border-primary/60",C?.input?.classNames?.inputContainer)},...L?.input,...m,onFocus:$=>{m?.onFocus?.($),I&&$.target.select()},disabled:D||m?.disabled,onKeyDown:W}),D&&Qa("div",{className:Ya("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",C?.loaderContainer),style:L?.loaderContainer,children:v})]}):Qa("div",{onClick:()=>{p&&(z||R(!0),l?.(!0))},className:Ya("cleen-min-h-6 cleen-text-foreground",p&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!w&&"cleen-text-muted-foreground",C?.preview),style:L?.preview,children:U})})});import{cn as Wr}from"@cleen/ui-core";import{forwardRef as _3,useEffect as nI,useId as V3,useMemo as z3,useRef as H3,useState as U3}from"react";import{jsx as Bn,jsxs as B1}from"react/jsx-runtime";var Za=_3(function({name:t,id:o,value:n,defaultValue:r,label:l,labelTooltip:a,disabled:i,required:p,infoLabels:s,topRightElement:d,labelRightElement:f,textareaOverlay:m,onChange:h,minHeight:y,maxHeight:u=200,autoResize:v=!0,maxLength:I,minLength:P,maxLengthLabelThreshold:x=.5,maxLengthLabel:C,minLengthLabel:S,className:L,classNames:k,style:E,styles:F,...M},N){let w=n!==void 0,[O,T]=U3(typeof r=="string"?r:""),D=H3(null),U=N??D,B=w?n:O;nI(()=>{w||T(n??(typeof r=="string"?r:""))},[n,r,w]);let R=$=>{$.style.height="auto";let J=Math.min($.scrollHeight,u);$.style.height=`${J}px`},z=$=>{R($.target)};nI(()=>{!v||!D.current||R(D.current)},[v,B,u]);let G=$=>{$.preventDefault()},A=$=>{$.preventDefault();let J=$.dataTransfer?.getData("text/plain");w?h?.(`${n??""}${J}`):(T(ee=>`${ee}${J}`),h?.(`${O}${J}`))},V=$=>{let J=$.target.value;(!I||J.length<=I)&&(w||T(J),h?.(J),v&&z($))},X=z3(()=>P&&S&&(B?.length??0)<P?S(P-(B?.length??0)):!I||!C||(B?.toString()?.length??0)/I<x?s?.subtitle:C?.(I-(B?.toString()?.length??0)),[B,I,x,s?.subtitle]),_=V3(),H=!!(s?.errorMessage||s?.infoMessage||X),W=H?`${_}-info`:void 0;return Bn("div",{className:Wr("cleen",L),style:E,children:B1("div",{className:Wr("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",k?.container),style:F?.container,children:[(l||f)&&B1("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[l&&Bn(ve,{htmlFor:o||t,required:p,tooltip:a,className:Wr("cleen-w-full",k?.label?.className),classNames:k?.label?.classNames,...F?.label,children:l}),f&&Bn("div",{className:"cleen-ml-auto",children:f})]}),B1("div",{className:Wr("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",k?.textareaContainer),style:F?.textareaContainer,children:[d&&Bn("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:d}),m&&Bn("div",{className:Wr("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}),Bn("textarea",{id:o||t,name:t,ref:U,disabled:i,value:B,minLength:P,maxLength:I,"aria-invalid":s?.errorMessage?!0:void 0,"aria-describedby":W,className:Wr("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",k?.textarea),style:{...y&&{minHeight:`${y}px`},...F?.textarea},onFocus:$=>$.currentTarget.setSelectionRange($.currentTarget.value.length,$.currentTarget.value.length),onDragOver:G,onDrop:A,...M,onChange:V})]}),H&&Bn(ue,{id:W,...s,subtitle:X})]})})});import{cn as Ja,useOutsideClick as $3}from"@cleen/ui-core";import{forwardRef as G3,useEffect as rI,useImperativeHandle as W3,useMemo as q3,useRef as K3,useState as ps}from"react";import{jsx as ja,jsxs as X3}from"react/jsx-runtime";var L1=G3(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:r,onIsEditingChange:l,placeholder:a,placeholderText:i,canEdit:p=!0,onSave:s,onCancel:d,onChange:f,textAreaProps:m,blurOnOutsideClick:h=!0,saveOnBlur:y=!0,isLoading:u,customLoader:v=ja(de,{size:"md"}),selectAllOnEdit:I=!1,renderText:P,className:x,classNames:C,style:S,styles:L,...k},E){let F=t!==void 0,[M,N]=ps(o??""),w=F?t??"":M,[O,T]=ps(!1),D=u??O,U=q3(()=>typeof P=="function"?P(w):P||w||i||a,[w,P,a,i]),[B,R]=ps(n),z=r!==void 0,G=z?r:B,[A,V]=ps(w),X=K3(null);W3(E,()=>({...X.current,save:H,cancel:_})),rI(()=>{F||N(o??"")},[o,F]),rI(()=>{G||V(w)},[w,G]);let _=async()=>{z||R(!1),l?.(!1),V(w),await d?.()},H=async()=>{if(!D){if(w===A){await d?.(),z||R(!1),l?.(!1);return}T(!0),F||N(A);try{await s?.(A),z||R(!1),l?.(!1)}finally{T(!1)}}},W=async $=>{$.key==="Escape"&&($.preventDefault(),$.stopPropagation(),await _()),$.key==="Enter"&&($.metaKey||$.ctrlKey)&&($.preventDefault(),await H()),m?.onKeyDown?.($)};return $3({refs:[X],enabled:h&&G,handler:async()=>{y?await H():await _()}}),ja("div",{className:Ja("cleen",x),style:S,ref:X,...k,children:G?X3("div",{className:Ja("cleen-relative cleen-h-full",C?.container),style:L?.container,children:[ja(Za,{value:A,onChange:$=>{V($),f?.($)},autoFocus:!0,placeholder:a,className:C?.textArea?.className,classNames:{...C?.textArea?.classNames,textareaContainer:Ja("cleen-border-primary hover:cleen-border-primary/60",C?.textArea?.classNames?.textareaContainer)},...L?.textArea,...m,onFocus:$=>{m?.onFocus?.($),I&&$.target.select()},disabled:D||m?.disabled,onKeyDown:W}),D&&ja("div",{className:Ja("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",C?.loaderContainer),style:L?.loaderContainer,children:v})]}):ja("div",{onClick:()=>{p&&(z||R(!0),l?.(!0))},className:Ja("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",!w&&"cleen-text-muted-foreground",C?.preview),style:L?.preview,children:U})})});import"@cleen/ui-core";import{forwardRef as Y3}from"react";import{Fragment as Z3,jsx as D1,jsxs as J3}from"react/jsx-runtime";var Q3=Y3(function({header:t,color:o,children:n,description:r,onSave:l,isDescriptionHidden:a=!1,titleProps:i,descriptionProps:p,classNames:s,styles:d,...f},m){let h=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return D1(Re,{ref:m,color:o,header:{...t,title:D1(R1,{value:h??"",onSave:async y=>{await l?.("title",y)},...s?.titleTextInput,...d?.titleTextInput,...i})},classNames:s,styles:d,...f,children:(!a||n)&&J3(Z3,{children:[D1(L1,{value:r??"",onSave:async y=>{await l?.("description",y)},...p,textAreaProps:p?.textAreaProps,...s?.descriptionTextInput,...d?.descriptionTextInput}),n]})})});import{cn as ec}from"@cleen/ui-core";import{forwardRef as j3}from"react";import{jsx as ds}from"react/jsx-runtime";var eT=j3(function({type:t="button",label:o,onClick:n,containerRef:r,className:l,classNames:a,style:i,styles:p,disabled:s=!1,loaderOptions:d,isLoading:f=!1,variant:m="primary",children:h,...y},u){return ds("div",{className:ec("cleen",l),style:i,ref:r,children:ds("button",{type:t,ref:u,disabled:f||s,onClick:n,className:ec("cleen-size-full",a?.container),style:p?.container,...y,children:ds(Re,{p:0,className:ec("cleen-size-full cleen-group",a?.card?.className),classNames:{...a?.card?.classNames,container:ec("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",Cy[m],a?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||f}),childrenContainer:ec("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",a?.card?.classNames?.childrenContainer)},"aria-disabled":s||f,...p?.card,children:f?ds(de,{size:"lg",...d,color:d?.color||Py[m],...a?.loader,...p?.loader}):o||h})})})});import{cn as tc,ColorHelpers as lI,formatAudioTime as aI}from"@cleen/ui-core";import{useWavesurfer as tT}from"@wavesurfer/react";import{forwardRef as oT,useCallback as nT,useRef as rT}from"react";import{jsx as oc,jsxs as cI}from"react/jsx-runtime";var lT={waveColor:lI.getComputedColor("var(--cleen-neutral-200)"),progressColor:lI.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},aT=oT(function({url:t,options:o,className:n,classNames:r,style:l,styles:a,...i},p){let s=rT(null),{wavesurfer:d,isPlaying:f,isReady:m,currentTime:h}=tT({...lT,...o,container:s,url:t}),y=m?d?.getDuration()??0:0,u=nT(()=>{d?.playPause()},[d]);return oc("div",{ref:p,className:tc("cleen",n),style:l,...i,children:cI("div",{className:tc("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",r?.container),style:a?.container,children:[oc(re,{type:"button",onClick:u,disabled:!m,"aria-label":f?"Pause":"Play",className:r?.playButton?.className,classNames:{...r?.playButton?.classNames,container:tc("cleen-p-0 !cleen-size-9 cleen-rounded-full",r?.playButton?.classNames?.container)},...a?.playButton,children:f?oc(Ot,{className:"cleen-fill-current"}):oc(_t,{className:"cleen-fill-current"})}),oc("div",{ref:s,className:tc("cleen-flex-1 cleen-min-w-0",r?.waveform),style:a?.waveform}),cI("span",{className:tc("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",r?.timestamp),style:a?.timestamp,children:[aI(h),"\xA0/\xA0",aI(y)]})]})})});import{ColorHelpers as cT}from"@cleen/ui-core";var iI=cT.getComputedColor("var(--cleen-primary)"),sI="rgba(var(--cleen-primary), 0.15)",pI={waveColor:iI,progressColor:iI,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var dI={startRecording:"Click to start recording"};import{cn as It,formatAudioTime as vs,trimBlob as sT}from"@cleen/ui-core";import{useWavesurfer as pT}from"@wavesurfer/react";import{forwardRef as dT,useCallback as Kr,useEffect as z1,useMemo as mT,useRef as fI,useState as Is}from"react";function F1(e,t,o,n){return new(o||(o=Promise))((function(r,l){function a(s){try{p(n.next(s))}catch(d){l(d)}}function i(s){try{p(n.throw(s))}catch(d){l(d)}}function p(s){var d;s.done?r(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 ms=class{constructor(){this.listeners={}}on(t,o,n){if(this.listeners[t]||(this.listeners[t]=new Set),n?.once){let r=(...l)=>{this.un(t,r),o(...l)};return this.listeners[t].add(r),()=>this.un(t,r)}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)))}},O1=class extends ms{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}},_1=class extends ms{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()}},A1=100,iT=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],us=class e extends O1{constructor(t){var o,n,r,l,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:(r=t.scrollingWaveformWindow)!==null&&r!==void 0?r:5,continuousWaveform:(l=t.continuousWaveform)!==null&&l!==void 0&&l,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 _1,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,r=n.createMediaStreamSource(t),l=n.createAnalyser();r.connect(l),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(l.fftSize=32);let a=l.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,h;if(!this.isWaveformPaused){if(l.getFloatTimeDomainData(i),this.options.scrollingWaveform){let y=Math.floor((this.options.scrollingWaveformWindow||0)*A1),u=0;for(let I=0;I<a;I++){let P=Math.abs(i[I]);P>u&&(u=P)}this.dataWindow||(this.dataWindow=new Float32Array(y));let v=new Float32Array(y);if(this.dataWindow&&this.dataWindow.length>0){let I=y-1,P=this.dataWindow.slice(-I);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*A1):((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=((h=(m=this.dataWindow)===null||m===void 0?void 0:m.length)!==null&&h!==void 0?h:0)/A1;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),r?.disconnect(),n?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return F1(this,void 0,void 0,(function*(){let o;this.micStream&&this.stopMic();try{o=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(r){throw new Error("Error accessing the microphone: "+r.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((r=>r.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(t){return F1(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||iT.find((a=>MediaRecorder.isTypeSupported(a))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=n,this.stopRecording();let r=[];n.ondataavailable=a=>{a.data.size>0&&r.push(a.data),this.emit("record-data-available",a.data)};let l=a=>{var i;let p=new Blob(r,{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=()=>l("record-pause"),n.onstop=()=>l("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 F1(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 gs=class{constructor(){this.listeners={}}on(t,o,n){if(this.listeners[t]||(this.listeners[t]=new Set),n?.once){let r=(...l)=>{this.un(t,r),o(...l)};return this.listeners[t].add(r),()=>this.un(t,r)}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)))}},V1=class extends gs{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 mI(e,t){let o=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[n,r]of Object.entries(t))if(n==="children"&&r)for(let[l,a]of Object.entries(r))a instanceof Node?o.appendChild(a):typeof a=="string"?o.appendChild(document.createTextNode(a)):o.appendChild(mI(l,a));else n==="style"?Object.assign(o.style,r):n==="textContent"?o.textContent=r:o.setAttribute(n,r.toString());return o}function nc(e,t,o){let n=mI(e,t||{});return o?.appendChild(n),n}function uI(e){let t=e,o=new Set;return{get value(){return t},set(n){Object.is(t,n)||(t=n,o.forEach((r=>r(t))))},update(n){this.set(n(t))},subscribe:n=>(o.add(n),()=>o.delete(n))}}function fs(e,t){let o,n=()=>{o&&(o(),o=void 0),o=e()},r=t.map((l=>l.subscribe(n)));return n(),()=>{o&&(o(),o=void 0),r.forEach((l=>l()))}}function qr(e,t){let o=uI(null),n=r=>{o.set(r)};return e.addEventListener(t,n),o._cleanup=()=>{e.removeEventListener(t,n)},o}function Ln(e){let t=e._cleanup;typeof t=="function"&&t()}function hs(e,t={}){let{threshold:o=3,mouseButton:n=0,touchDelay:r=100}=t,l=uI(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,h=!1,y=Date.now(),u=e.getBoundingClientRect(),{left:v,top:I}=u,P=k=>{if(k.defaultPrevented||a.size>1||i&&Date.now()-y<r)return;let E=k.clientX,F=k.clientY,M=E-f,N=F-m;(h||Math.abs(M)>o||Math.abs(N)>o)&&(k.preventDefault(),k.stopPropagation(),h||(l.set({type:"start",x:f-v,y:m-I}),h=!0),l.set({type:"move",x:E-v,y:F-I,deltaX:M,deltaY:N}),f=E,m=F)},x=k=>{if(a.delete(k.pointerId),h){let E=k.clientX,F=k.clientY;l.set({type:"end",x:E-v,y:F-I})}p()},C=k=>{a.delete(k.pointerId),k.relatedTarget&&k.relatedTarget!==document.documentElement||x(k)},S=k=>{h&&(k.stopPropagation(),k.preventDefault())},L=k=>{k.defaultPrevented||a.size>1||h&&k.preventDefault()};document.addEventListener("pointermove",P),document.addEventListener("pointerup",x),document.addEventListener("pointerout",C),document.addEventListener("pointercancel",C),document.addEventListener("touchmove",L,{passive:!1}),document.addEventListener("click",S,{capture:!0}),p=()=>{document.removeEventListener("pointermove",P),document.removeEventListener("pointerup",x),document.removeEventListener("pointerout",C),document.removeEventListener("pointercancel",C),document.removeEventListener("touchmove",L),setTimeout((()=>{document.removeEventListener("click",S,{capture:!0})}),10)}};return e.addEventListener("pointerdown",s),{signal:l,cleanup:()=>{p(),e.removeEventListener("pointerdown",s),a.clear(),Ln(l)}}}var bs=class extends gs{constructor(t,o,n=0){var r,l,a,i,p,s,d,f,m,h;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((r=t.end)!==null&&r!==void 0?r:t.start),this.drag=(l=t.drag)===null||l===void 0||l,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=(h=t.contentEditable)!==null&&h!==void 0?h: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=nc("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),r=nc("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),l=hs(n,{threshold:1}),a=hs(r,{threshold:1}),i=fs((()=>{let s=l.signal.value;s&&(s.type==="move"&&s.deltaX!==void 0?this.onResize(s.deltaX,"start"):s.type==="end"&&this.onEndResizing("start"))}),[l.signal]),p=fs((()=>{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(),l.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 r=nc("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(r),r}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=qr(t,"click"),n=qr(t,"mouseenter"),r=qr(t,"mouseleave"),l=qr(t,"dblclick"),a=qr(t,"pointerdown"),i=qr(t,"pointerup"),p=o.subscribe((v=>v&&this.emit("click",v))),s=n.subscribe((v=>v&&this.emit("over",v))),d=r.subscribe((v=>v&&this.emit("leave",v))),f=l.subscribe((v=>v&&this.emit("dblclick",v))),m=a.subscribe((v=>v&&this.toggleCursor(!0))),h=i.subscribe((v=>v&&this.toggleCursor(!1)));this.subscriptions.push((()=>{p(),s(),d(),f(),m(),h(),Ln(o),Ln(n),Ln(r),Ln(l),Ln(a),Ln(i)}));let y=hs(t),u=fs((()=>{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 r;if(!(!((r=this.element)===null||r===void 0)&&r.parentElement))return;let{width:l}=this.element.parentElement.getBoundingClientRect(),a=t/l*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=nc("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 r=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:r?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 r=this.start===this.end;this.resize=t.resize,this.resize&&!r?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()}},ys=class e extends V1{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((r=>r.start<=o&&(r.end===r.start?r.start+.05:r.end)>=o));n.forEach((r=>{t.includes(r)||this.emit("region-in",r)})),t.forEach((r=>{n.includes(r)||this.emit("region-out",r)})),t=n})))}initRegionsContainer(){return nc("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(),r=this.regions.map((l=>{if(l===t||!l.content)return 0;let a=l.content.getBoundingClientRect();return n.left<a.left+a.width&&a.left<n.left+n.width?a.height:0})).reduce(((l,a)=>l+a),0);o.style.marginTop=`${r}px`}),10)}adjustScroll(t){var o,n;if(!t.element)return;let r=(n=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper())===null||n===void 0?void 0:n.parentElement;if(!r)return;let{clientWidth:l,scrollWidth:a}=r;if(a<=l)return;let i=r.getBoundingClientRect(),p=t.element.getBoundingClientRect(),s=p.left-i.left,d=p.right-i.left;s<0?r.scrollLeft+=s:d>l&&(r.scrollLeft+=d-l)}virtualAppend(t,o,n){let r=()=>{if(!this.wavesurfer)return;let l=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+l;d&&!n.parentElement?o.appendChild(n):!d&&n.parentElement&&n.remove()};setTimeout((()=>{if(!this.wavesurfer||!t.element)return;r();let l=this.wavesurfer.on("scroll",r),a=this.wavesurfer.on("zoom",r),i=this.wavesurfer.on("resize",r);this.subscriptions.push(l,a,i),t.once("remove",(()=>{l(),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 r;(r=this.wavesurfer)===null||r===void 0||r.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 r=this.wavesurfer.getDuration(),l=(n=(o=this.wavesurfer)===null||o===void 0?void 0:o.getDecodedData())===null||n===void 0?void 0:n.numberOfChannels,a=new bs(t,r,l);return this.emit("region-initialized",a),r?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 r=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper();if(!(r&&r instanceof HTMLElement))return()=>{};let l=null,a=0,i=0,p=hs(r,{threshold:o}),s=fs((()=>{var d,f;let m=p.signal.value;if(m)if(m.type==="start"){if(a=m.x,!this.wavesurfer)return;let h=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*h;let v=m.x/u*h,I=(m.x+5)/u*h;l=new bs(Object.assign(Object.assign({},t),{start:v,end:I}),h,y),this.emit("region-initialized",l),l.element&&this.regionsContainer.appendChild(l.element)}else m.type==="move"&&m.deltaX!==void 0?l&&l._onUpdate(m.deltaX,m.x>a?"end":"start",i):m.type==="end"&&l&&(this.saveRegion(l),l.updatingSide=void 0,l=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 fT,jsx as Je,jsxs as rc}from"react/jsx-runtime";var uT=dT(function({onFinalize:t,recordOptions:o,options:n,labels:r=dI,className:l,classNames:a,style:i,styles:p,...s},d){let f=fI(null),[m,h]=Is("idle"),[y,u]=Is(null),[v,I]=Is(null),[P,x]=Is(!1),C=fI("idle");C.current=m;let S=mT(()=>[us.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...o}),ys.create()],[]),[L,k]=S,{wavesurfer:E,isPlaying:F,isReady:M,currentTime:N}=pT({...pI,...n,container:f,plugins:S}),w=M?E?.getDuration()??0:0;z1(()=>{let G=[L.on("record-start",()=>h("recording")),L.on("record-end",A=>{h("recorded"),u(A)}),k.on("region-clicked",(A,V)=>{V.stopPropagation(),A.play(!0)})];return()=>G.forEach(A=>A?.())},[k,L]),z1(()=>E?E.on("ready",()=>{if(C.current!=="recorded")return;let A=E.getDuration();k.clearRegions();let V=k.addRegion({start:0,end:A,color:n?.regionColor??sI,drag:!1,resize:!0});I({start:V.start,end:V.end})}):void 0,[E,k,n]),z1(()=>k.on("region-updated",A=>{I({start:A.start,end:A.end})}),[k]);let O=Kr(async()=>{await L.startRecording()},[L]),T=Kr(()=>{L.stopRecording()},[L]),D=Kr(()=>{E?.playPause()},[E]),U=Kr(async()=>{if(!(!y||!v||!E)){x(!0);try{let G=await sT(y,v.start,v.end),A=URL.createObjectURL(G);u(G),E.load(A)}finally{x(!1)}}},[y,v,E]),B=Kr(()=>{k.clearRegions(),E?.empty(),u(null),I(null),h("idle")},[E,k]),R=Kr(()=>{if(y){let G=URL.createObjectURL(y);t?.(y,G)}},[t,y]),z=!v||v.start<=0&&v.end>=w;return Je("div",{ref:d,className:It("cleen wavesurfer-handle",l),style:i,...s,children:rc("div",{className:It("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",a?.container),style:p?.container,children:[m==="idle"&&rc(fT,{children:[Je("button",{type:"button",onClick:O,"aria-label":"Start recording",className:It("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:Je(ba,{className:"cleen-size-8 cleen-text-primary"})}),Je("p",{className:It("cleen-text-neutral-600 cleen-text-sm cleen-select-none",a?.startLabel),style:p?.startLabel,children:r.startRecording})]}),m==="recording"&&Je("button",{type:"button",onClick:T,"aria-label":"Stop recording",className:It("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:Je(Aa,{className:"cleen-size-8 cleen-text-primary"})}),Je("div",{ref:f,className:It("cleen-w-full cleen-min-w-0 cleen-waveform",m==="idle"&&"cleen-hidden",a?.waveform),style:p?.waveform}),m==="recorded"&&rc("div",{className:It("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",a?.recordedContainer),style:p?.recordedContainer,children:[Je(re,{type:"button",onClick:D,disabled:!M,"aria-label":F?"Pause":"Play",className:a?.playPauseButton?.className,classNames:{...a?.playPauseButton?.classNames,container:It("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.playPauseButton?.classNames?.container)},...p?.playPauseButton,children:F?Je(Ot,{className:"cleen-fill-current"}):Je(_t,{className:"cleen-fill-current"})}),rc("span",{className:It("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",a?.timestamp),style:p?.timestamp,children:[vs(N),"\xA0/\xA0",vs(w)]}),Je("span",{className:"cleen-flex-1"}),!z&&v&&rc("span",{className:It("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",a?.trimmedTimestamp),style:p?.trimmedTimestamp,children:[vs(v.start),"\u2013",vs(v.end)]}),Je(re,{type:"button",onClick:B,variant:"secondary","aria-label":"Discard recording",className:a?.discardButton?.className,classNames:{...a?.discardButton?.classNames,container:It("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.discardButton?.classNames?.container)},...p?.discardButton,children:Je(Et,{className:"cleen-text-error"})}),Je(re,{type:"button",onClick:U,disabled:z||P||!M,"aria-label":"Apply trim",variant:"secondary",className:a?.trimButton?.className,classNames:{...a?.trimButton?.classNames,container:It("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.trimButton?.classNames?.container)},...p?.trimButton,children:Je(Ea,{})}),Je(re,{type:"button",onClick:R,"aria-label":"Finalize recording",className:a?.finalizeButton?.className,classNames:{...a?.finalizeButton?.classNames,container:It("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",a?.finalizeButton?.classNames?.container)},...p?.finalizeButton,children:Je(bo,{})})]})]})})});import{cn as xs}from"@cleen/ui-core";import{forwardRef as hT,useMemo as gT}from"react";var hI={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 lc}from"react/jsx-runtime";var Cs=hT(function({title:t,name:o,src:n,alt:r,size:l="md",initialsLength:a=2,isSelected:i=!1,showBorder:p=!1,fallback:s=lc(Va,{}),className:d,classNames:f,style:m,styles:h,onClick:y,...u},v){let I=gT(()=>(a===2?o?.split(" ").map(P=>P.charAt(0).toUpperCase()).join("").slice(0,a):o?.charAt(0).toUpperCase())||s,[o,a,s]);return lc("div",{className:xs("cleen",d),style:m,ref:v,...u,children:lc("div",{onClick:y,className:xs("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof l=="string"&&hI[l],{"cleen-border-2 cleen-border-white":p,"cleen-cursor-pointer":!!y},f?.avatar,p&&i&&["cleen-border-primary",f?.avatarSelected]),style:{...typeof l=="number"&&{width:l,height:l,fontSize:l*.4,lineHeight:`${l}px`},...h?.avatar,...p&&i&&h?.avatarSelected},title:t||o,children:n?lc("img",{src:n,alt:r||o,className:xs("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",f?.image),style:h?.image}):lc("span",{className:xs("cleen-select-none cleen-text-neutral-700",f?.fallback),style:h?.fallback,children:I})})})});import{cn as gI}from"@cleen/ui-core";import{forwardRef as bT}from"react";import{jsx as H1,jsxs as vT}from"react/jsx-runtime";var yT=bT(function({avatars:t,size:o="md",selectedAvatars:n=[],onAvatarToggle:r,gap:l=4,maxVisible:a,maxExtra:i=99,showBorder:p=!0,initialsLength:s,fallback:d,className:f,classNames:m,style:h,styles:y,...u},v){let I=a?t?.slice(0,a):t,P=a&&t&&t.length>a?Math.min(t.length-a,i):0;return H1("div",{className:gI("cleen",f),style:h,ref:v,...u,children:vT("div",{className:gI("cleen-flex cleen-items-center",m?.row),style:{gap:l,...y?.row},children:[I?.map((x,C)=>{let S=n.includes(x?.id??"");return H1(Cs,{name:x.name,src:x.src,size:o,isSelected:S,showBorder:p,initialsLength:s,fallback:d,onClick:()=>r?.(x.id??""),...m?.avatar,style:{zIndex:I.length-C,...y?.avatar?.style},styles:y?.avatar?.styles,...x},x.id||C)}),P>0&&H1(Cs,{size:o,fallback:`+${P}`,...m?.extra,...y?.extra})]})})});import{cn as Jo}from"@cleen/ui-core";import{forwardRef as IT}from"react";import{Link as bI}from"react-router-dom";import{jsx as ac,jsxs as Ps}from"react/jsx-runtime";var xT=IT(function({root:t={path:"/",icon:ac(sa,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:o,className:n,classNames:r,style:l,styles:a,...i},p){return!o||o.length===0?null:ac("div",{className:Jo("cleen",n),style:l,ref:p,...i,children:ac("nav",{className:Jo("cleen-hidden sm:cleen-flex",r?.container),style:a?.container,"aria-label":"Breadcrumb",children:Ps("ol",{role:"list",className:Jo("cleen-flex cleen-items-center cleen-gap-4",r?.list),style:a?.list,children:[t&&ac("li",{className:Jo("cleen-flex cleen-items-center",r?.rootItem),style:a?.rootItem,children:Ps(bI,{to:t?.path,className:Jo("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",r?.rootLink),style:a?.rootLink,"aria-label":t?.label?void 0:"Home",children:[t?.icon,t?.label]})}),o.map(({path:s,icon:d,label:f,id:m},h)=>{let y=h===o.length-1,u=f||s.charAt(0).toUpperCase()+s.slice(1);return Ps("li",{className:Jo("cleen-flex cleen-items-center cleen-gap-4",r?.item),style:a?.item,children:[(t||!t&&h!==0)&&ac(St,{className:Jo("cleen-h-5 cleen-w-5 cleen-text-neutral-300",r?.chevron),style:a?.chevron,"aria-hidden":"true"}),Ps(bI,{to:s,className:Jo("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",r?.link),style:a?.link,"aria-current":y?"page":void 0,children:[d,u]})]},m||s)})]})})})});var Ss=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:o,max:n}=t,r=new Date,l=new Date(r.getFullYear(),r.getMonth(),r.getDate());if(o){let a=o==="today"?l:o;if(a>=e)return a}if(n){let a=n==="today"?l:n;if(a<=e)return a}return e};import{cn as Ms}from"@cleen/ui-core";import{forwardRef as CT,useState as U1}from"react";import{DayPicker as yI,MonthGrid as PT}from"react-day-picker";import{Fragment as ST,jsx as Dn,jsxs as G1}from"react/jsx-runtime";var $1=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),W1=CT(function({label:t,labelTooltip:o,infoLabels:n,required:r,withDateInput:l=!1,withTodayButton:a=!1,selected:i,onSelect:p,month:s,labels:d,className:f,style:m,classNames:h,styles:y,mode:u="single",min:v,max:I,disabled:P,disabledDates:x,components:C,...S},L){let k=i!==void 0,E=u==="single",[F,M]=U1(),[N,w]=U1(),O=k?i:E?F:N,[T,D]=U1(s),U=(z,G)=>{k||(E&&(z===void 0||z instanceof Date)?M(z):E||w(z)),p?.(z,G)},B={MonthGrid:z=>G1(ST,{children:[(a||l)&&G1("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[l&&Dn(Se,{value:u==="single"?$1(O):O?.from||O?.to?`${$1(O?.from)??"..."} - ${$1(O?.to)??"..."}`:void 0,placeholder:d?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),a&&Dn(re,{variant:"secondary",onClick:()=>D(new Date),children:d?.today??"Today"})]}),Dn(PT,{...z})]}),...C},R={navLayout:"around",...S,className:Ms("cleen-text-foreground",h?.calendar?.className),classNames:{...h?.calendar?.classNames,nav:Ms("cleen-text-error",h?.calendar?.classNames?.nav)},disabled:v||I?{before:v==="today"?new Date:v,after:I==="today"?new Date:I}:x||P,components:B,month:T,onMonthChange:D,...y?.calendar};return G1("div",{ref:L,className:Ms("cleen",f),style:m,children:[t&&Dn(ve,{required:r,tooltip:o,className:Ms("cleen-mb-1.5",h?.label?.className),classNames:h?.label?.classNames,...y?.label,children:t}),E?Dn(yI,{mode:"single",...R,selected:O,onSelect:(z,G)=>{if(v||I){U(Ss(z,{min:v,max:I}),G);return}U(z,G)}}):Dn(yI,{mode:"range",...R,selected:O,onSelect:(z,G)=>{if(v||I){U({from:Ss(z?.from,{min:v,max:I}),to:Ss(z?.to,{min:v,max:I})},G);return}U(z,G)}}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&Dn(ue,{...n})]})});import{cn as Xr,useOutsideClick as MT,usePositionClose as wT,ZIndex as kT}from"@cleen/ui-core";import{forwardRef as ET,useEffect as TT,useRef as vI,useState as NT}from"react";import{createPortal as RT}from"react-dom";import{jsx as Fn,jsxs as II}from"react/jsx-runtime";var cc=ET(function({type:t="button",required:o,label:n,title:r,titleTooltip:l,disabled:a=!1,leftIcon:i,rightIcon:p=Fn(Xl,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:s=!0,fullWidthDropdown:d,offset:f=4,isOpen:m,onOpenChange:h,keepOpenOnClickContent:y=!0,zIndex:u=kT.DROPDOWN,infoLabels:v,className:I,classNames:P,style:x,styles:C,children:S,...L},k){let[E,F]=NT(!1),M=m!==void 0?m:E,N=vI(null),w=vI(null),{positionStyles:O,isMounted:T}=wT({triggerRef:w,targetRef:N,position:"bottom-left",isOpen:M,offset:f});MT({refs:[N,w],handler:()=>{F(!1),h?.(!1)},enabled:M}),TT(()=>{let B=R=>{R.key==="Escape"&&M&&(F(!1),h?.(!1))};return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[M,h]);let D=()=>{let B=!M;m===void 0&&F(B),h?.(B)},U=()=>{y||(m===void 0&&F(!1),h?.(!1))};return II("div",{className:Xr("cleen",I),style:x,ref:k,...L,children:[r&&Fn(ve,{required:o,tooltip:l,className:Xr("cleen-mb-1.5",P?.title?.className),classNames:P?.title?.classNames,...C?.title,children:r}),Fn("div",{className:Xr("cleen-inline-block cleen-relative",s&&"cleen-w-full"),ref:w,children:II("button",{type:t,className:Xr("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:C?.trigger,disabled:a,"aria-haspopup":"dialog","aria-expanded":M,onClick:D,children:[i,Fn("div",{className:Xr("cleen-flex-1 cleen-text-left",P?.label),style:C?.label,children:n}),p]})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Fn(ue,{...v}),S&&M&&RT(Fn("div",{className:"cleen",children:Fn("div",{ref:N,className:Xr("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!T},P?.dropdown),style:{zIndex:u,top:`${O.top}px`,left:`${O.left}px`,minWidth:d&&w.current?.offsetWidth?`${w.current.offsetWidth}px`:void 0,...C?.dropdown},onClick:U,children:S})}),document.body)]})});import{cn as xI}from"@cleen/ui-core";import{forwardRef as BT,useMemo as LT,useState as ws}from"react";import{jsx as An,jsxs as CI}from"react/jsx-runtime";var DT=BT(function({label:t,placeholder:o,infoLabels:n,required:r,selected:l,onSelect:a,onSelectInternal:i,leftIcon:p,rightIcon:s=An($l,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:d,style:f,classNames:m,styles:h,mode:y="single",min:u,max:v,disabled:I,disabledDates:P,...x},C){let S=l!==void 0,L=y==="single",[k,E]=ws(!1),[F,M]=ws(),[N,w]=ws(),O=S?l:L?F:N,[T,D]=ws(),U=R=>{S||(L&&(R===void 0||R instanceof Date)?M(R):L||w(R)),a?.(R)},B=LT(()=>{if(!O)return o;if(L)return O?.toLocaleDateString();{let R=O;if(R.from&&R.to)return`${R.from.toLocaleDateString()} - ${R.to.toLocaleDateString()}`;if(R.from)return R.from.toLocaleDateString()}return o},[o,O,L]);return CI("div",{ref:C,className:xI("cleen",d),style:f,children:[An(cc,{title:t,label:B,isOpen:k,onOpenChange:R=>{D(O),E(R)},leftIcon:p,rightIcon:s,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:xI("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:r,disabled:I,...h?.dropdown,children:An(Re,{footer:{hasDivider:!0,content:CI("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[An(re,{variant:"secondary",onClick:()=>E(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),An(re,{onClick:()=>{U(T),E(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...h?.card,children:An(W1,{mode:y,...x,selected:T,onSelect:(R,z)=>D(i?.(R,z)??R),min:u,max:v,disabledDates:P,...m?.calendar,...h?.calendar})})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&An(ue,{...n})]})});import"react";import{cn as Yr}from"@cleen/ui-core";import FT from"embla-carousel-auto-scroll";import AT from"embla-carousel-autoplay";import OT from"embla-carousel-react";import{forwardRef as _T,useEffect as VT,useMemo as PI,useState as SI}from"react";import{jsx as On,jsxs as HT}from"react/jsx-runtime";var zT=_T(function({options:t,slideAmount:o=3,slideSize:n,prevBtn:r,nextBtn:l,autoPlay:a=!1,autoPlayOptions:i,autoScroll:p=!1,autoScrollOptions:s,children:d,className:f,classNames:m,style:h,styles:y,...u},v){let I=PI(()=>{let w=[];return a&&w.push(AT(i)),p&&w.push(FT(s)),w},[a,p,i,s]),[P,x]=OT({skipSnaps:!0,...t},I),[C,S]=SI(!0),[L,k]=SI(!0),E=()=>x?.scrollPrev(),F=()=>x?.scrollNext(),M=w=>{S(!w?.canScrollPrev()),k(!w?.canScrollNext())};VT(()=>{x&&(M(x),x.on("reInit",M),x.on("select",M))},[x]);let N=PI(()=>n?`${n}%`:`${100/o}%`,[n,o]);return On("div",{className:Yr("cleen",f),style:h,ref:v,...u,children:HT("div",{className:Yr("cleen-flex cleen-gap-2",m?.container),style:y?.container,children:[On("button",{className:Yr("cleen-text-foreground",m?.prevBtn,C&&"cleen-opacity-50"),onClick:E,disabled:C,style:y?.prevBtn,children:r||On(yo,{})}),On("div",{className:Yr("cleen-flex-1 cleen-overflow-hidden",m?.viewport),style:y?.viewport,ref:P,children:On("div",{className:Yr("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":N},children:d})}),On("button",{className:Yr("cleen-text-foreground",m?.nextBtn,L&&"cleen-opacity-50"),onClick:F,disabled:L,style:y?.nextBtn,children:l||On(St,{})})]})})});import{cn as _n}from"@cleen/ui-core";import{forwardRef as UT,useEffect as kI,useId as $T,useRef as GT,useState as WT}from"react";var MI={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)]"},wI={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 qT,jsx as Qt,jsxs as ks}from"react/jsx-runtime";var Vn=UT(function({id:t,name:o,required:n,checked:r,defaultChecked:l=!1,className:a,classNames:i,style:p,styles:s,onChange:d,disabled:f,title:m,titleTooltip:h,label:y,sublabel:u,variant:v="primary",allowIndeterminate:I=!1,fullTriggerArea:P=!1,infoLabels:x,inputRef:C,...S},L){let k=$T(),E=t??k,F=typeof r=="boolean"||r===null,[M,N]=WT(l),w=GT(null),O=R=>{w.current=R,C&&(C.current=R)};kI(()=>{F||N(l)},[l,F]);let T=F?r:M;kI(()=>{w.current&&(w.current.indeterminate=I&&T===null)},[I,T]);let D=R=>{let z;if(I)switch(T){case!0:z=null;break;case!1:z=!0;break;default:z=!1;break}else z=!T;F||N(z),d?.({...R,target:{...R.target,checked:z}})},U=ks(qT,{children:[ks("label",{className:_n("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",{[MI[v]]:T,[wI[v]]:T===null},f&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:s?.checkbox,children:[Qt("input",{ref:O,type:"checkbox",disabled:f,className:"cleen-sr-only",checked:T===!0,onChange:D,id:E,name:o,...S}),T===null?Qt("span",{className:"cleen-block cleen-m-auto cleen-border cleen-border-white cleen-rounded-sm cleen-w-2.5 cleen-h-0.5 cleen-size-3"}):T?Qt(bo,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(y||u)&&ks("div",{children:[Qt("label",{htmlFor:E,className:_n("cleen-block cleen-text-foreground",i?.label),style:s?.label,children:y}),Qt("label",{htmlFor:E,className:_n("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:s?.sublabel,children:u})]})]}),B={className:_n("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":f},i?.checkboxContainer),style:s?.checkboxContainer};return Qt("div",{className:_n("cleen",a),style:p,ref:L,children:ks("div",{className:_n(i?.container),style:s?.container,children:[m&&Qt(ve,{htmlFor:E,required:n,tooltip:h,className:_n("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...s?.title,children:m}),P?Qt("div",{...B,onClick:R=>{R.target instanceof Element&&!R.target.closest("label")&&w.current?.click()},children:U}):Qt("div",{...B,children:U}),(x?.errorMessage||x?.infoMessage||x?.subtitle)&&Qt(ue,{...x})]})})});import{cn as ic}from"@cleen/ui-core";import{forwardRef as KT,useId as XT,useMemo as YT,useState as QT}from"react";import{jsx as Qr,jsxs as JT}from"react/jsx-runtime";var ZT=KT(function({id:t,required:o,label:n,labelTooltip:r,checkboxes:l,allowIndeterminate:a,infoLabels:i,requiresAtLeastOneOptions:p,classNames:s,styles:d,onChange:f,...m},h){let y=XT(),u=t??y,[v,I]=QT(!1),P=YT(()=>p&&v&&l?.every(C=>C.checked===!1)?p.title:i?.errorMessage,[p,i?.errorMessage,l,v]),x=(C,S)=>{let L={...S,checked:C.target.checked},k;l&&S?.id&&(k=[...l].map(E=>E.id===S.id?L:E)),f?.(L,k),I(!0)};return Qr("div",{className:ic("cleen"),...m,ref:h,children:JT("div",{className:ic("cleen-flex cleen-flex-col cleen-gap-2",s?.container),style:d?.container,children:[n&&Qr(ve,{htmlFor:u,required:o,tooltip:r,className:ic("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...d?.label,children:n}),Qr("div",{className:ic("cleen-flex cleen-flex-col cleen-gap-3",s?.checkboxes),style:d?.checkboxes,children:l?.map((C,S)=>Qr("div",{className:ic("cleen-flex",s?.checkboxContainer),style:d?.checkboxContainer,children:Qr(Vn,{allowIndeterminate:a,...C,id:`${u}-${S}`,fullTriggerArea:!0,onChange:L=>x(L,C)})},C.id))}),(P||i?.infoMessage||i?.subtitle)&&Qr(ue,{...i,errorMessage:P})]})})});import{cn as zn}from"@cleen/ui-core";import{forwardRef as jT,useState as EI}from"react";import{jsx as Zr,jsxs as TI}from"react/jsx-runtime";var NI=jT(({sections:e,defaultOpenIndex:t,allowExpandAll:o=!1,className:n,classNames:r,style:l,styles:a,...i},p)=>{let[s,d]=EI(t??null),[f,m]=EI(()=>new Set(e.map((u,v)=>v))),h=u=>o?f.has(u):s===u,y=(u,v)=>{v.onClick?.(),v.items?.length&&(o?m(I=>{let P=new Set(I);return P.has(u)?P.delete(u):P.add(u),P}):d(s===u?null:u))};return Zr("div",{ref:p,className:zn("cleen",n),style:{...l,width:"100%"},...i,children:Zr("div",{className:zn("cleen-w-full",r?.container),style:a?.container,children:e.map((u,v)=>TI("div",{className:zn("cleen-mb-3",r?.section),style:a?.section,children:[TI("div",{onClick:()=>y(v,u),className:zn("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",r?.sectionHeader),style:a?.sectionHeader,children:[Zr("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:u?.title}),u?.items?.length?Zr(vo,{className:zn("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!h(v)})}):null]}),h(v)&&u?.items&&Zr("div",{className:zn("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",r?.sectionBody),style:a?.sectionBody,children:u?.items?.map((I,P)=>Zr("div",{className:zn("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",r?.item),style:a?.item,onClick:I?.onClick,children:I?.content},I?.key??P))})]},u?.key??v))})})});NI.displayName="Collapsible";function q1(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 RI(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as Es}from"@cleen/ui-core";import{useEffect as eN,useState as tN}from"react";import{HexAlphaColorPicker as oN,RgbaColorPicker as nN}from"react-colorful";import{jsx as Jr,jsxs as lN}from"react/jsx-runtime";var BI="rgba(0, 0, 0, 1)",LI="#000000ff",rN=({required:e,value:t,defaultValue:o,onChange:n,colorModel:r="rgba",disabled:l,label:a,labelTooltip:i,className:p,classNames:s,style:d,styles:f,infoLabels:m,...h})=>{let y=t!==void 0,u=o??(r==="hexa"?LI:BI),[v,I]=tN(u),P=y?t:v;eN(()=>{y||I(o??(r==="hexa"?LI:BI))},[o,y,r]);let x=S=>{let L=RI(S);y||I(L),n?.(L)},C=S=>{y||I(S),n?.(S)};return Jr("div",{className:Es("cleen",p),style:d,...h,children:lN("div",{className:Es("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",s?.container),style:f?.container,children:[a&&Jr(ve,{required:e,tooltip:i,className:Es("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...f?.label,children:a}),Jr("div",{className:Es("cleen-rounded-md",l&&"cleen-opacity-50 cleen-pointer-events-none",s?.picker),style:f?.picker,children:r==="hexa"?Jr(oN,{color:P,onChange:C}):Jr(nN,{color:q1(P),onChange:x})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&Jr(ue,{...m})]})})};import{cn as Tt}from"@cleen/ui-core";import{forwardRef as aN,useMemo as cN,useState as iN}from"react";var K1=(e="")=>e.replace(/\D+/g,""),DI=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function FI(e,t="other"){if(!e)return e;let o=K1(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 AI=e=>K1(e);function OI(e){let t=K1(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),r=new Date,l=r.getFullYear()%100,a=r.getMonth()+1;return parseInt(n,10)<l||parseInt(n,10)===l&&parseInt(o,10)<a?`${o}/${n.charAt(0)}`:`${o}/${n}`}import{jsx as jo,jsxs as _I}from"react/jsx-runtime";var sN=aN(function({labels:t,value:o,isLoading:n,errors:r,className:l,classNames:a,style:i,styles:p,infoLabels:s,onChange:d,onFieldFocus:f,...m},h){let[y,u]=iN({number:"",expiry:"",cvc:""}),v=!!o,I=v?o:y,P=cN(()=>DI(I.number),[I.number]),x=S=>{let{name:L}=S.target,{value:k}=S.target;switch(L){case"number":k=FI(k,P);break;case"expiry":k=OI(k);break;case"cvc":k=AI(k);break;default:return}v||u(E=>({...E,[L]:k})),d?.({...o,[L]:k})},C=S=>{f?.(S.target.name)};return jo("div",{className:Tt("cleen",l),style:i,ref:h,...m,children:jo("div",{className:Tt("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?jo("div",{className:Tt("cleen-py-4",a?.loader?.container),style:p?.loader?.container,children:jo(de,{...a?.loader?.component,...p?.loader?.component})}):_I("form",{className:Tt("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:[jo(Se,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:Tt("cleen-w-full",a?.form?.cardNumber?.className),classNames:{...a?.form?.cardNumber?.classNames,inputContainer:Tt({"cleen-border-error":r?.number},a?.form?.cardNumber?.classNames?.inputContainer),input:Tt({"cleen-text-error":r?.number},a?.form?.cardNumber?.classNames?.input)},...p?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:I.number,onChange:x,onFocus:C,infoLabels:{errorMessage:r?.number}}),_I("div",{className:Tt("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",a?.form?.cvcExpiryContainer),style:p?.form?.cvcExpiryContainer,children:[jo(Se,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:a?.form?.expiry?.className,classNames:{...a?.form?.expiry?.classNames,inputContainer:Tt({"cleen-border-error":r?.expiry},a?.form?.expiry?.classNames?.inputContainer),input:Tt({"cleen-text-error":r?.expiry},a?.form?.expiry?.classNames?.input)},...p?.form?.expiry,placeholder:"00/00",value:I.expiry,onChange:x,onFocus:C,infoLabels:{errorMessage:r?.expiry}}),jo(Se,{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:Tt({"cleen-border-error":r?.cvc},a?.form?.cvc?.classNames?.inputContainer),input:Tt({"cleen-text-error":r?.cvc},a?.form?.cvc?.classNames?.input)},...p?.form?.cvc,placeholder:"***",value:I.cvc,onChange:x,onFocus:C,infoLabels:{errorMessage:r?.cvc}})]}),(s?.infoMessage||s?.errorMessage||s?.subtitle)&&jo(ue,{...s})]})})})});import{cn as VI}from"@cleen/ui-core";import{jsx as zI}from"react/jsx-runtime";var Vt=({isHorizontal:e=!0,className:t,classNames:o,style:n,styles:r,...l})=>zI("div",{className:VI("cleen",t),style:n,children:zI("div",{className:VI("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",o?.container),style:r?.container,...l})});import{cn as en,useBodyScrollLock as pN,useCleenOverlays as HI,ZIndex as dN}from"@cleen/ui-core";import{forwardRef as mN,useCallback as uN,useEffect as X1,useId as fN,useRef as hN,useState as UI}from"react";import{createPortal as gN}from"react-dom";import{jsx as jr,jsxs as Ts}from"react/jsx-runtime";var bN={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},$I=300,Y1=mN(function({title:t,subtitle:o,children:n,headerCloseBtn:r,footer:l,isOpen:a=!1,onClose:i,closeOnOverlayClick:p=!0,position:s="right",zIndex:d=dN.DRAWER,size:f="lg",p:m,gap:h,className:y,classNames:u,style:v,styles:I,...P},x){let[C,S]=UI(a),[L,k]=UI(a),E=hN(null),F=fN(),{addOverlay:M,removeOverlay:N}=HI(),w=uN(()=>{S(!1),setTimeout(()=>i?.(),$I)},[i]);return X1(()=>{if(a){k(!0);let O=setTimeout(()=>S(!0),1);return()=>clearTimeout(O)}else{S(!1);let O=setTimeout(()=>k(!1),$I);return()=>clearTimeout(O)}},[a]),X1(()=>{if(a)return M(F),()=>N(F)},[M,N,a,F]),X1(()=>{let O=T=>{let{overlays:D}=HI.getState();T.key==="Escape"&&D[D.length-1]===F&&w()};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[w,F]),pN(L),L?gN(Ts("div",{className:en("cleen",y),style:v,ref:x,...P,children:[jr("div",{className:en("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",C?"cleen-opacity-100":"cleen-opacity-0",u?.overlay),onClick:()=>{p&&w()},style:{zIndex:d-1,...I?.overlay},"aria-hidden":"true"}),Ts("div",{className:en("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",C?"cleen-translate-x-0":s==="right"?"cleen-translate-x-full":"-cleen-translate-x-full",u?.drawer),style:{zIndex:d,width:typeof f=="number"?f:bN[f],...h!==void 0&&{gap:h},...I?.drawer},ref:E,children:[Ts("div",{className:en("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},...I?.header},children:[Ts("div",{className:"cleen-flex cleen-flex-col",children:[jr("span",{className:en("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",u?.title),style:I?.title,children:t}),jr("span",{className:en("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",u?.subtitle),style:I?.subtitle,children:o})]}),r||jr(Le,{onClick:w,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),jr("div",{className:en("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",u?.content),style:{...m!==void 0&&{paddingInline:m},...I?.content},children:n}),l&&jr("div",{className:en("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:h},...I?.footer},children:l})]})]}),document.body):null});import{cn as Hn,useAnimateNumber as yN}from"@cleen/ui-core";import{forwardRef as vN,useEffect as IN,useMemo as xN,useRef as CN,useState as PN}from"react";import{jsx as Ns,jsxs as Q1}from"react/jsx-runtime";var el=vN(({percentage:e,title:t,barColor:o,backgroundColor:n="rgb(var(--cleen-neutral-200))",textColor:r="rgb(var(--cleen-foreground))",invertProgressColors:l=!1,showPercentage:a=!1,renderAnimated:i=!1,renderAnimatedDuration:p=1e3,className:s,classNames:d,style:f,styles:m,...h},y)=>{let u=Math.max(0,Math.min(e,100)),v=CN(u),[I,P]=PN(i?0:u),x=yN({targetNumber:I,duration:p,disabled:!i});IN(()=>{if(i){setTimeout(()=>P(u),0);return}v.current!==u&&(P(u),v.current=u)},[u,i]);let C=xN(()=>{if(o)return o;switch(u<=30?"red":u<70?"orange":"green"){case"red":return l?"rgb(var(--cleen-success))":"rgb(var(--cleen-error))";case"orange":return"rgb(var(--cleen-warning))";case"green":return l?"rgb(var(--cleen-error))":"rgb(var(--cleen-success))";default:return"rgb(var(--cleen-success))"}},[u,l,o]);return Ns("div",{ref:y,className:Hn("cleen",s),style:f,children:Q1("div",{className:Hn("cleen-w-full",d?.container),style:m?.container,...h,children:[t&&Ns("div",{className:Hn("cleen-mb-1 cleen-font-semibold cleen-text-xs",d?.title),style:m?.title,children:t}),Q1("div",{className:Hn("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",d?.wrapper||d?.progress),style:m?.wrapper??m?.progress,children:[Ns("div",{className:Hn("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",d?.track),style:{backgroundColor:n,...m?.track},children:Ns("div",{className:Hn("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",d?.fill),style:{width:`${I}%`,backgroundColor:C,...i&&{transitionDuration:`${p}ms`},...m?.fill}})}),a&&Q1("span",{className:Hn("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",d?.text),style:{color:r,...m?.text},children:[Math.round(x),"%"]})]})]})})});el.displayName="ProgressBar";import{cn as tn,FileEntryStatus as Un}from"@cleen/ui-core";import{useMemo as GI}from"react";import{Fragment as WI,jsx as je,jsxs as $n}from"react/jsx-runtime";var qI=({fileEntry:e,onRemove:t,onFileClick:o,labels:n,classNames:r,styles:l})=>{let{id:a,file:i,name:p,size:s,url:d,type:f,status:m,progress:h=0,preExisting:y}=e,u=m===Un.UPLOADING,v=m===Un.ERROR,I=m===Un.DONE,P=m===Un.DELETING,x=s?s*h/100:0,C=GI(()=>{switch(m){case Un.UPLOADING:return $n(WI,{children:[je(Rn,{className:"cleen-size-4"}),je("span",{children:n?.uploading})]});case Un.DONE:return je(Pn,{className:"cleen-size-4"});case Un.ERROR:return je(Cn,{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||"",[k,E]=L.split("."),F=GI(()=>f?.startsWith("image/")&&d?je("img",{src:d,alt:L,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):f==="application/pdf"?je(kn,{className:"cleen-size-8"}):je(wn,{className:"cleen-size-8"}),[L,f,d]);return je(Re,{p:12,className:r?.card?.className,classNames:{...r?.card?.classNames,container:tn(r?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":I})},...l?.card,onClick:I?S:void 0,children:$n("div",{className:tn("cleen-space-y-1",r?.container),style:l?.container,children:[$n("div",{className:tn("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",r?.nameContainer),style:l?.nameContainer,children:[F,$n("div",{className:tn("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",r?.name),style:{maxWidth:F?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...l?.name},children:[je("span",{className:"cleen-truncate cleen-shrink",children:k}),$n("span",{className:"cleen-whitespace-nowrap",children:[".",E]})]}),je("div",{className:"cleen-flex-1"}),!u&&(P?je(de,{color:"rgb(var(--cleen-error))",className:tn("cleen-shrink-0")}):je(Et,{className:tn("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)}}))]}),$n("div",{className:tn("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",r?.statusContainer),style:l?.statusContainer,children:[!!s&&(u?je("p",{children:n?.uploadProgress?.(x,s)}):I&&je("p",{children:n?.uploaded?.(s)})),!y&&$n(WI,{children:[je("span",{children:"|"}),je("div",{className:tn("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":v,"cleen-text-success":I},r?.statusText),style:l?.statusText,children:C})]})]}),u&&je(el,{barColor:"rgb(var(--cleen-primary))",percentage:h,showPercentage:!0,...r?.progressBar,...l?.progressBar})]})},a)};var Rs=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 KI={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${Rs(e)} of ${Rs(t)}`,uploaded:e=>Rs(e)};var XI={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 sc=(l=>(l.PENDING="pending",l.IN_PROGRESS="inProgress",l.DONE="done",l.ERROR="error",l.REMOVING="removing",l))(sc||{});import{cn as Gn}from"@cleen/ui-core";import{jsx as on,jsxs as YI}from"react/jsx-runtime";var Z1=({item:e,labels:t,classNames:o,styles:n})=>{let{status:r,progress:l=0,icon:a,name:i}=e,p=r==="inProgress",s=r==="done",d=r==="error",f=r==="removing",m=r==="pending";return YI("div",{className:Gn("cleen-flex cleen-items-center cleen-gap-3",o?.container),style:n?.container,children:[a,YI("div",{className:Gn("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",o?.infoContainer),style:n?.infoContainer,children:[on("p",{className:Gn("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",o?.name),style:n?.name,children:i}),p&&on(el,{barColor:"rgb(var(--cleen-primary))",percentage:l,...o?.progressBar,...n?.progressBar})]}),p&&on("span",{className:Gn("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",o?.progressText),style:n?.progressText,children:t?.itemProgress?.(l)}),f&&on(de,{color:"rgb(var(--cleen-error))"}),s&&on(Pn,{className:Gn("cleen-size-5 cleen-shrink-0 cleen-text-success",o?.statusIcon),style:n?.statusIcon}),d&&on(Cn,{className:Gn("cleen-size-5 cleen-shrink-0 cleen-text-error",o?.statusIcon),style:n?.statusIcon}),m&&on("div",{className:Gn("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((h,y)=>on("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${y*.1}s`}},y))})]})};var pc=(r=>(r.NOT_STARTED="notStarted",r.IN_PROGRESS="inProgress",r.COMPLETED="completed",r.ALL="all",r))(pc||{}),dc=["notStarted","inProgress","completed","all"];import{cn as Bs}from"@cleen/ui-core";import{jsx as QI,jsxs as SN}from"react/jsx-runtime";var J1=({value:e,onChange:t,counts:o,labels:n,classNames:r,styles:l})=>QI("div",{role:"group","aria-label":n?.statusFilter,className:Bs("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",r?.container),style:l?.container,children:dc.map(a=>{let i=a===e;return SN("button",{type:"button","aria-pressed":i,onClick:()=>t(a),className:Bs("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",r?.option,i&&Bs("cleen-bg-background cleen-text-foreground cleen-shadow-sm",r?.optionActive)),style:{...l?.option,...i&&l?.optionActive},children:[n?.statusFilterOptions?.[a],o&&QI("span",{className:Bs("cleen-text-neutral-400 cleen-tabular-nums",r?.optionCount),style:l?.optionCount,children:o[a]})]},a)})});var ZI={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 JI=e=>e.status==="inProgress"||e.status==="pending",jI=e=>e.length>0&&e.every(t=>t.status==="done"),j1=(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 MN,cn as zt,useControlled as ex,useDisclosure as wN}from"@cleen/ui-core";import{forwardRef as kN,useEffect as tx,useMemo as eg,useRef as EN}from"react";import{jsx as Zt,jsxs as tg}from"react/jsx-runtime";var og=kN(function({items:t,title:o,maxVisibleItems:n=5,isExpanded:r,defaultExpanded:l=!1,onExpandedChange:a,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:p,showHeader:s=!0,showStatusFilter:d=!1,showStatusFilterCounts:f=!1,statusFilter:m,defaultStatusFilter:h="inProgress",onStatusFilterChange:y,labels:u,className:v,classNames:I,style:P,styles:x,...C},S){let{isOpen:L,toggle:k,close:E}=wN(),{value:F,handleChange:M}=ex({value:r,defaultValue:l,onChange:a});tx(()=>{t.length>0&&E()},[t.length,E]);let N=MN(ZI,u),{value:w,handleChange:O}=ex({value:m,defaultValue:h,onChange:y}),T=EN(i);T.current=i;let D=jI(t);tx(()=>{if(p==null||!T.current||!D)return;if(p<=0){T.current();return}let V=setTimeout(()=>T.current?.(),p);return()=>clearTimeout(V)},[D,p]);let U=eg(()=>t.filter(JI).length,[t]),B=eg(()=>!d||!w?t:t.filter(V=>j1(V,w)),[t,d,w]),R=eg(()=>{if(f)return dc.reduce((V,X)=>({...V,[X]:t.filter(_=>j1(_,X)).length}),{})},[t,f]);if(!t.length)return null;let z=Math.max(B.length-n,0),G=F||!z?B:B.slice(0,n),A=o??(U?N?.processing?.(U):N?.completed);return Zt(Re,{p:16,gap:12,ref:S,className:zt(v,I?.card?.className),classNames:{...I?.card?.classNames,childrenContainer:zt(I?.card?.classNames?.childrenContainer,{"cleen-hidden":L})},style:P,styles:x?.card?.styles,header:s?{hasDivider:!L,content:tg("div",{className:zt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",I?.header),style:x?.header,children:[Zt("p",{className:zt("cleen-font-semibold cleen-text-foreground cleen-text-sm",I?.title),style:x?.title,children:A}),tg("div",{className:zt("cleen-flex cleen-items-center cleen-gap-2",I?.headerButtons),style:x?.headerButtons,children:[Zt("button",{type:"button","aria-label":N?.contract,onClick:k,className:zt("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",I?.contractButton),style:x?.contractButton,children:Zt(vo,{className:zt("cleen-size-5 cleen-transition-transform",L&&"cleen-rotate-180")})}),i&&Zt("button",{type:"button","aria-label":N?.dismiss,onClick:i,className:zt("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",I?.dismissButton),style:x?.dismissButton,children:Zt(Le,{className:"cleen-size-4"})})]})]})}:void 0,...C,children:tg("div",{className:zt("cleen-flex cleen-flex-col cleen-gap-3",I?.list),style:x?.list,children:[d&&w&&Zt(J1,{value:w,onChange:O,counts:R,labels:N,classNames:I?.statusFilter,styles:x?.statusFilter}),!G.length&&Zt("p",{className:zt("cleen-text-muted-foreground cleen-text-xs",I?.emptyStatusFilter),style:x?.emptyStatusFilter,children:N?.emptyStatusFilter}),G.map(V=>Zt(Z1,{item:V,labels:N,classNames:I?.row,styles:x?.row},V.id)),!!z&&Zt("button",{type:"button","aria-expanded":F,onClick:()=>M(!F),className:zt("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",I?.expandButton),style:x?.expandButton,children:F?N?.showLess:N?.showMore?.(z)})]})})});import{FileEntryStatus as wo}from"@cleen/ui-core";var TN=[{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"]}],ox={label:"FILE",className:"cleen-bg-neutral-500"},NN={[wo.QUEUED]:"inProgress",[wo.UPLOADING]:"inProgress",[wo.PAUSED]:"inProgress",[wo.DONE]:"done",[wo.ERROR]:"error",[wo.DELETING]:"removing"},ng=e=>e.name||e.file?.name||"",nx=e=>{let t=ng(e).split(".").pop()?.toLowerCase()??"",o=TN.find(({extensions:n})=>n.includes(t));return o?{label:o.label,className:o.className}:{label:t?t.slice(0,4).toUpperCase():ox.label,className:ox.className}},rx=e=>e.status===wo.QUEUED||e.status===wo.UPLOADING||e.status===wo.PAUSED,lx=e=>NN[e.status]??"pending",ax=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as RN}from"@cleen/ui-core";import{jsx as BN}from"react/jsx-runtime";var cx=({fileEntry:e,className:t,style:o})=>{let n=nx(e);return BN("div",{className:RN("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 LN}from"react/jsx-runtime";var ix=(e,t)=>({id:e.id,name:ng(e),progress:e.progress,status:lx(e),icon:LN(cx,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as DN}from"@cleen/ui-core";import{forwardRef as FN,useMemo as sx}from"react";import{jsx as AN}from"react/jsx-runtime";var rg=FN(function({files:t,title:o,maxVisibleFiles:n=5,labels:r,classNames:l,styles:a,...i},p){let s=sx(()=>ax(t),[t]),d=DN(XI,r),f=sx(()=>s.map(y=>ix(y,{className:l?.row?.typeBadge,style:a?.row?.typeBadge})),[s,l?.row?.typeBadge,a?.row?.typeBadge]),m=s.filter(rx).length,h=o??(m?d?.uploading?.(m):d?.completed);return AN(og,{ref:p,items:f,title:h,maxVisibleItems:n,labels:{showMore:d?.showMore,showLess:d?.showLess,dismiss:d?.dismiss,contract:d?.contract,itemProgress:d?.uploadProgress},classNames:l,styles:a,...i})});import{applyDefaults as ON,cn as mt,FileEntryStatus as _N,useFileUpload as VN}from"@cleen/ui-core";import{forwardRef as zN,useEffect as HN,useMemo as px,useRef as dx,useState as lg}from"react";import{createPortal as UN}from"react-dom";import{jsx as ut,jsxs as Ls}from"react/jsx-runtime";var $N=zN(function({required:t,icon:o,files:n,initialFiles:r=[],onFilesChange:l,onFileUpload:a,onFilesUpload:i,onFileRemove:p,onFileClick:s,infoLabels:d,containerRef:f,label:m,labelTooltip:h,labels:y,showUploadedFiles:u=!1,showProgressTracker:v=!1,progressTracker:I,className:P,classNames:x,style:C,styles:S,multiple:L,disabled:k,loadingWhileUploading:E,isLoading:F,readOnly:M,onChange:N,id:w,name:O,...T},D){let U=dx(null),{files:B,addFiles:R,remove:z}=VN({files:n,onFilesChange:l,initialFiles:r,onFileUpload:a,onFilesUpload:i,onFileRemove:p}),G=px(()=>F||E&&Array.from(B.values()).some(j=>j.status===_N.UPLOADING),[B,E,F]),[A,V]=lg(!1),[X,_]=lg([]),[H,W]=lg(!1),$=dx(new Set(B.keys()));HN(()=>{let j=Array.from(B.keys()),Te=j.filter(He=>!$.current.has(He));$.current=new Set(j),_(He=>{let Pe=He.filter(ot=>B.has(ot));return Te.length?H?Te:[...Pe,...Te.filter(ot=>!Pe.includes(ot))]:Pe.length===He.length?He:Pe}),Te.length&&W(!1)},[B,H]);let J=px(()=>X.map(j=>B.get(j)).filter(j=>!!j),[X,B]),ee=()=>{W(!0),_([]),I?.onDismiss?.()},xe=!k&&!M&&!G,ge=j=>{let Te=Array.from(j.target.files??[]);R(Te),N?.(j)},Ee=j=>{z(j)},we=()=>{xe&&U.current?.click()},oe=j=>{if(!j.length)return;let Te=L?j:j.slice(0,1);if(!U.current||typeof DataTransfer>"u"){R(Te);return}let He=new DataTransfer;Te.forEach(Pe=>He.items.add(Pe));try{U.current.files=He.files}catch{R(Te);return}R(Te),N?.({target:U.current,currentTarget:U.current})},se=j=>{j.preventDefault(),j.stopPropagation(),V(!1),xe&&oe(Array.from(j.dataTransfer.files??[]))},ze=j=>{j.preventDefault(),j.stopPropagation(),xe&&V(!0)},Y=j=>{j.preventDefault(),j.stopPropagation(),xe&&V(!0)},K=j=>{j.preventDefault(),j.stopPropagation(),xe&&V(!1)},Q=j=>{xe&&(j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),we()))},Ce=ON(KI,y);return Ls("div",{className:mt("cleen",P),style:C,ref:f,children:[ut("input",{id:w||O,name:O,ref:j=>{if(U.current=j,typeof D=="function"){D(j);return}D&&(D.current=j)},type:"file",multiple:L,disabled:k||G,readOnly:M,className:mt("cleen-hidden",x?.input),style:S?.input,onChange:ge,...T}),m&&ut(ve,{htmlFor:w||O,required:t,tooltip:h,className:mt("cleen-mb-1.5",x?.label?.className),classNames:x?.label?.classNames,...S?.label,children:m}),Ls("div",{className:mt("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":G}),children:[ut(Re,{tabIndex:xe?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":k||M||G,onClick:we,onKeyDown:Q,onDrop:se,onDragEnter:ze,onDragOver:Y,onDragLeave:K,p:16,className:mt("cleen-rounded-lg focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",x?.card?.className),classNames:{...x?.card?.classNames,container:mt("cleen-transition-colors",k?"cleen-cursor-not-allowed cleen-bg-muted":"cleen-cursor-pointer hover:cleen-bg-surface hover:cleen-border-muted-foreground",x?.card?.classNames?.container,A&&["cleen-border-muted-foreground cleen-bg-surface",x?.cardDragActive]),childrenContainer:mt({"cleen-blur-sm":G},x?.card?.classNames?.childrenContainer)},style:S?.card?.style,styles:{...S?.card?.styles,container:{...S?.card?.styles?.container,...A?S?.cardDragActive:void 0}},children:Ls("div",{className:mt("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",x?.dropArea),style:S?.dropArea,"aria-disabled":k||M||G,children:[ut("div",{className:mt("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",x?.iconContainer),style:S?.iconContainer,children:o||ut(Rn,{className:"cleen-size-5"})}),Ls("p",{className:mt("cleen-font-medium cleen-text-sm",x?.textContainer),style:S?.textContainer,children:[ut("span",{className:mt(k?"cleen-text-muted-foreground":"cleen-text-primary",x?.primaryText),style:S?.primaryText,children:Ce?.primaryText})," ",ut("span",{className:mt("cleen-text-foreground",x?.secondaryText),style:S?.secondaryText,children:Ce?.secondaryText})]}),ut("p",{className:mt("cleen-text-neutral-600 cleen-text-xs",x?.helperText),style:S?.helperText,children:Ce?.helperText})]})}),G&&ut(de,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),u&&B.size>0&&ut("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(B.values()).map(j=>ut(qI,{fileEntry:j,onRemove:Ee,onFileClick:s,labels:Ce,classNames:x?.fileCard,styles:S?.fileCard},j.id))}),v&&!H&&J.length>0&&UN(ut("div",{className:"cleen",children:ut(rg,{...I,files:J,onDismiss:ee,className:mt("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",x?.progressTracker?.className),classNames:x?.progressTracker?.classNames,...S?.progressTracker})}),document.body),(d?.errorMessage||d?.infoMessage||d?.subtitle)&&ut(ue,{...d})]})});import{cn as ct,useControlled as qx,useOutsideClick as BR}from"@cleen/ui-core";import{forwardRef as LR,Fragment as Kx,useCallback as DR,useEffect as Xx,useId as FR,useImperativeHandle as AR,useMemo as Qn,useRef as nl,useState as OR}from"react";import{cn as ag,useDisclosure as GN,useOutsideClick as WN,usePositionClose as qN,ZIndex as KN}from"@cleen/ui-core";import{forwardRef as XN,useRef as mx}from"react";import{createPortal as YN}from"react-dom";import{jsx as cg,jsxs as QN}from"react/jsx-runtime";var Wn=XN(function({isOpen:t,onOpenChange:o,content:n,position:r="bottom-left",offset:l,zIndex:a=KN.POPOVER,portalContainer:i,children:p,className:s,classNames:d,style:f,styles:m,...h},y){let{isOpen:u,toggle:v,close:I}=GN({value:t,setValue:o}),P=mx(null),x=mx(null),{positionStyles:C,isMounted:S}=qN({triggerRef:P,targetRef:x,position:r,isOpen:u,offset:l,container:i});WN({refs:[P,x],handler:I,enabled:u});let L=k=>{k.stopPropagation(),v()};return QN("div",{className:ag("cleen",s),style:f,ref:y,...h,children:[cg("div",{ref:P,onClick:L,className:ag("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:p}),u&&YN(cg("div",{className:"cleen",onClick:k=>k.stopPropagation(),onPointerDown:k=>k.stopPropagation(),onMouseDown:k=>k.stopPropagation(),onTouchStart:k=>k.stopPropagation(),children:cg("div",{ref:x,className:ag("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:`${C.top}px`,left:`${C.left}px`,...m?.popover},onClick:k=>k.stopPropagation(),children:n})}),i??document.body)]})});import{cn as ig}from"@cleen/ui-core";import{Fragment as ZN,useEffect as ux,useMemo as fx,useRef as JN,useState as sg}from"react";import{jsx as Jt,jsxs as tl}from"react/jsx-runtime";var hx=({sections:e,labels:t,onAddRow:o,onSearchChange:n,isLoading:r=!1,className:l,style:a,popoverClassName:i,popoverStyle:p})=>{let[s,d]=sg(!1),[f,m]=sg(""),[h,y]=sg(0),u=JN(null),v=fx(()=>{let S=n?"":f.trim().toLowerCase();return e.filter(L=>!L.readOnly&&L.options?.length).map(L=>{let k=new Set(L.rows.map(E=>E.id));return{section:L,options:(L.options??[]).filter(E=>!k.has(E.id)&&(!S||E.label.toLowerCase().includes(S)||E.meta?.toLowerCase().includes(S)))}}).filter(L=>L.options.length)},[e,f,n]),I=fx(()=>v.flatMap(S=>S.options.map(L=>({sectionId:S.section.id,option:L}))),[v]);ux(()=>{y(0),n?.(f.trim())},[f]),ux(()=>{if(!s){m("");return}requestAnimationFrame(()=>u.current?.focus())},[s]);let P=S=>{S&&(o(S),d(!1))},x=S=>{S.key==="ArrowDown"?(S.preventDefault(),y(L=>Math.min(L+1,I.length-1))):S.key==="ArrowUp"?(S.preventDefault(),y(L=>Math.max(L-1,0))):S.key==="Enter"?(S.preventDefault(),P(I[h])):S.key==="Escape"&&d(!1)},C=-1;return Jt(Wn,{isOpen:s,onOpenChange:d,position:"top-left",classNames:{popover:ig("cleen-w-80",i)},styles:{popover:p},content:tl("div",{className:"cleen-flex cleen-flex-col",children:[Jt("div",{className:"cleen-border-b cleen-border-border cleen-p-2",children:Jt(Se,{ref:u,value:f,placeholder:t.searchPlaceholder,leftIcon:Jt(vt,{size:14}),onChange:S=>m(S.target.value),onKeyDown:x,role:"combobox","aria-expanded":s,"aria-autocomplete":"list"})}),tl("div",{className:"cleen-max-h-72 cleen-overflow-y-auto cleen-py-1",role:"listbox",children:[r&&Jt("div",{className:"cleen-flex cleen-justify-center cleen-py-3",children:Jt(de,{})}),!r&&!I.length&&Jt("div",{className:"cleen-px-3 cleen-py-4 cleen-text-center cleen-text-sm cleen-text-muted-foreground",children:t.noOptions}),v.map(S=>tl(ZN,{children:[tl("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=>{C+=1;let k=C;return tl("button",{type:"button",role:"option","aria-selected":k===h,onMouseEnter:()=>y(k),onClick:()=>P({sectionId:S.section.id,option:L}),className:ig("cleen-flex cleen-w-full cleen-flex-col cleen-px-3 cleen-py-1.5 cleen-text-left",k===h&&"cleen-bg-muted"),children:[Jt("span",{className:"cleen-text-sm cleen-text-foreground",children:L.label}),L.meta&&Jt("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:L.meta})]},L.id)})]},S.section.id))]})]}),children:tl(re,{variant:"secondary",className:ig("cleen-gap-1.5",l),style:a,children:[Jt(Po,{size:14}),t.add]})})};import{cn as Os}from"@cleen/ui-core";import{useEffect as tR,useRef as vx,useState as Ix}from"react";var nn=(e,t)=>`${e}|${t}`,at=(e,t=1)=>+`${Math.round(+`${e.toFixed(12)}e${t}`)}e-${t}`,et=(e,t=1)=>at(e,t).toFixed(t),pg=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},dg=(e,t,o)=>{let n=pg(e),r=pg(t);if(n===null||r===null)return null;let l=r-n+(o?1440:0);return l>0?l:null};var mc=(e,t=!0)=>{let o=e.trim().replace(",",".");if(!o)return null;let n=t?/^(\d{1,2}):([0-5]\d)$/.exec(o):null;return n?Number(n[1])+Number(n[2])/60:/^\d*\.?\d+$|^\d+\.$/.test(o)?Number(o):Number.NaN};var jN=e=>e!==null,yx=e=>typeof e.value=="number"&&e.value>0?e.value:0,Ds=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),e.linkId&&(t.linkId=e.linkId),Object.keys(t).length?(e.billable===!1&&(t.billable=!1),e.id!==void 0&&e.id!==""&&(t.id=e.id),t):null},ol=e=>{if(!e)return[];if(Array.isArray(e.entries)&&e.entries.length)return e.entries.map(o=>({...o}));let t={...e};return delete t.entries,Ds(t)?[t]:[]},Fs=(e,t=6)=>{let o=e.map(Ds).filter(jN);if(!o.length)return null;if(o.length===1)return o[0];let n=at(o.reduce((r,l)=>r+yx(l),0),t);return n>0?{value:n,entries:o}:{entries:o}},mg=e=>{if(e){if(Array.isArray(e.entries)&&e.entries.length){let t=e.entries.map(o=>o.value).filter(o=>typeof o=="number");if(t.length)return at(t.reduce((o,n)=>o+n,0),6)}return typeof e.value=="number"?e.value:void 0}},ug=(e,t=6)=>{let o=0,n=0;return e.forEach(r=>{let l=yx(r);o+=l,r.billable===!1&&(n+=l)}),{total:at(o,t),billable:at(o-n,t),nonBillable:at(n,t)}},As=(e,t)=>{if(!(!e||!t))return e.options.find(o=>o.id===t)??e.selectedOptions?.find(o=>o.id===t)??{id:t,label:t}},uc=e=>Fs(ol(e)),gx=e=>e.reduce((t,o)=>t+o,0),eR={sum:gx,average:e=>gx(e)/e.length,min:e=>Math.min(...e),max:e=>Math.max(...e)},qn=()=>Object.create(null),bx=(e,t,o)=>(e[t]??=[]).push(o),fg=(e,t,o,n="sum")=>{let r=n==="sum",l=h=>h.length?eR[n](h):r?0:void 0,a=h=>{let y=qn();return Object.keys(h).forEach(u=>{let v=l(h[u]);v!==void 0&&(y[u]=v)}),y},i=qn(),p=qn(),s=qn(),d=qn(),f=[];e.forEach(h=>{p[h.id]=[],s[h.id]=qn(),h.rows.forEach(y=>{i[y.id]=[],t.forEach(u=>{let v=mg(o[nn(y.id,u.id)]);v!==void 0&&(i[y.id].push(v),p[h.id].push(v),bx(s[h.id],u.id,v),bx(d,u.id,v),f.push(v))})})});let m=qn();return Object.keys(s).forEach(h=>{m[h]=a(s[h])}),{rows:a(i),sections:a(p),sectionColumns:m,columns:a(d),grand:l(f)}};import{jsx as ft,jsxs as fc}from"react/jsx-runtime";var hg="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",xx=({cellKey:e,column:t,rowLabel:o,cell:n,min:r,max:l,precision:a,timeEntry:i,notes:p,hasDetails:s,links:d,density:f,notePreviews:m,readOnly:h,flash:y,isDetailOpen:u,labels:v,formatAmount:I,onOpenDetail:P,onCommit:x,onNavigate:C,className:S,style:L})=>{let k=ol(n),E=k.length===1?k[0]:void 0,F=k.length>1,M=mg(n),N=M===void 0?"":et(M,a),[w,O]=Ix(N),[T,D]=Ix(null),U=vx(!1),B=vx(null);tR(()=>{O(N),D(null),B.current=null},[N]);let R=et(r,a),z=et(l,a),G=i&&!!(E?.start&&E?.end),A=f==="compact",V=h||F||u,X=s&&(!h||k.length>0),_=As(d,E?.linkId),H=E?.note,W=K=>{if(K===null)return null;if(Number.isNaN(K))return v.invalidError;let Q=at(K,a);return Q<r||Q>l?v.rangeError(R,z):null},$=()=>{if(V||w===N||w===B.current)return D(null),n??null;let K=mc(w,i),Q=W(K);if(D(Q),Q)return!1;let Ce=K===null?void 0:at(K,a),j=Ce!==void 0||!!E?.note?.trim(),Te=uc({id:E?.id,note:E?.note,linkId:j?E?.linkId:void 0,billable:E?.billable,value:Ce});return B.current=w,x(Te),Te},J=()=>{if(U.current){U.current=!1;return}$()},ee=K=>{if(!X)return;let Q=$();P(K,Q===!1?n??null:Q)},xe=K=>{if(K.key==="Escape"){O(N),D(null),U.current=!0,K.currentTarget.blur(),U.current=!1;return}if(K.key==="."&&K.ctrlKey){K.preventDefault(),ee("time");return}if(!K.ctrlKey&&!K.metaKey&&!K.altKey){if(p&&(K.key==="n"||K.key==="N")){K.preventDefault(),ee("note");return}if(i&&(K.key==="t"||K.key==="T")){K.preventDefault(),ee("time");return}if(F&&!u&&(/^[0-9.,:]$/.test(K.key)||K.key==="Backspace"||K.key==="Delete")){K.preventDefault(),ee("time");return}}let Ce={ArrowUp:"up",ArrowDown:"down",Enter:"down"}[K.key];Ce&&C&&(K.preventDefault(),$()!==!1&&C(Ce))},ge=t.title??String(t.label),Ee=F?v.entriesCount(k.length):"",we=F?k.map(K=>`${I(K.value??0)}${K.billable===!1?`, ${v.nonBillable}`:""}${K.note?`: ${K.note}`:""}`).join(`
|
|
3
|
-
`):void 0,oe=H??_?.label,se=_&&H?`${_.label}: ${H}`:oe??void 0,ze=_?d?.icon??ft(En,{size:11,className:"cleen-shrink-0"}):ft(Co,{size:11,className:"cleen-shrink-0"}),Y=F?Hr:G?Wl:null;return ft("td",{className:Os("cleen-group cleen-relative cleen-border-b cleen-border-border cleen-align-top cleen-transition-colors",A?"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",(y||u)&&"cleen-bg-primary-100",S),style:L,"data-cell-key":e,children:fc("div",{className:"cleen-flex cleen-flex-col cleen-gap-0.5",children:[fc("div",{className:"cleen-relative cleen-flex cleen-items-center",children:[Y&&ft(Y,{size:12,className:"cleen-absolute cleen-left-1.5 cleen-text-muted-foreground cleen-pointer-events-none","aria-hidden":!0}),ft("input",{type:"text",inputMode:"decimal","aria-label":[o,ge,Ee].filter(Boolean).join(", "),"aria-invalid":!!T,title:T??we,readOnly:V,value:w,placeholder:h?"":"\u2013",onChange:K=>{O(K.target.value),T&&D(null)},onBlur:J,onKeyDown:xe,"data-matrix-input":e,className:Os("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",A?"cleen-h-7 cleen-px-1.5":"cleen-h-8 cleen-px-2",Y&&"cleen-pl-5",X&&"cleen-pr-6",T?"cleen-border-error":u?"cleen-border-primary":"cleen-border-transparent hover:cleen-border-border focus:cleen-border-primary",!w&&"placeholder:cleen-text-neutral-300")}),X&&ft("button",{type:"button","aria-label":v.details,"aria-expanded":u,title:v.details,tabIndex:-1,onClick:()=>ee("time"),className:Os("cleen-absolute cleen-right-0.5 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",u?"cleen-opacity-100":"cleen-opacity-0 group-hover:cleen-opacity-100 group-focus-within:cleen-opacity-100"),children:ft(Ql,{size:14})})]}),T&&ft("span",{className:"cleen-text-[10px] cleen-leading-tight cleen-text-error",children:T}),F?m&&!A&&fc("button",{type:"button",onClick:()=>ee("time"),title:we,className:hg,children:[ft(Hr,{size:11,className:"cleen-shrink-0"}),ft("span",{className:"cleen-truncate",children:Ee})]}):!p&&!_?null:oe&&m&&!A?fc("button",{type:"button",onClick:()=>ee("note"),title:se,disabled:!X,className:hg,children:[ze,ft("span",{className:"cleen-truncate",children:oe})]}):oe?ft("button",{type:"button",onClick:()=>ee("note"),title:se,"aria-label":se,disabled:!X,className:"cleen-ml-auto cleen-mr-1 cleen-text-muted-foreground hover:cleen-text-foreground",children:ft(Co,{size:11})}):p&&!h&&m&&!A&&M!==void 0&&fc("button",{type:"button",tabIndex:-1,onClick:()=>ee("note"),className:Os(hg,"cleen-opacity-0 group-hover:cleen-opacity-100"),children:[ft(Co,{size:11}),v.addNote]})]})})};import{cn as Kn,useBodyScrollLock as oR,useCleenOverlays as Cx,ZIndex as nR}from"@cleen/ui-core";import{forwardRef as rR,useCallback as lR,useEffect as gg,useId as aR,useRef as cR,useState as Px}from"react";import{createPortal as iR}from"react-dom";import{jsx as hc,jsxs as Mx}from"react/jsx-runtime";var sR={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},Sx=300,bg=rR(function({isOpen:t=!1,onClose:o,closeOnOverlayClick:n=!0,closeButtonIcon:r=hc(Le,{className:"cleen-size-5"}),header:l,footer:a,zIndex:i=nR.MODAL,size:p="md",color:s,p:d,gap:f,radius:m=16,className:h,classNames:y,style:u,styles:v,children:I,...P},x){let[C,S]=Px(t),[L,k]=Px(t),E=cR(null),F=aR(),{addOverlay:M,removeOverlay:N}=Cx(),w=lR(()=>{S(!1),setTimeout(()=>o?.(),Sx)},[o]);return gg(()=>{if(t){k(!0);let O=setTimeout(()=>S(!0),1);return()=>clearTimeout(O)}else{S(!1);let O=setTimeout(()=>k(!1),Sx);return()=>clearTimeout(O)}},[t]),gg(()=>{if(t)return M(F),()=>N(F)},[M,N,t,F]),gg(()=>{let O=T=>{let{overlays:D}=Cx.getState();T.key==="Escape"&&D[D.length-1]===F&&w()};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[w,F]),oR(L),L?iR(Mx("div",{className:Kn("cleen",h),style:u,ref:x,...P,children:[hc("div",{className:Kn("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",C?"cleen-opacity-100":"cleen-opacity-0",y?.overlay),style:{zIndex:i,...v?.overlay},onClick:()=>{n&&w()},"aria-hidden":"true"}),hc("div",{className:Kn("cleen-fixed cleen-inset-0 cleen-flex cleen-justify-center cleen-items-center cleen-p-4 cleen-overflow-auto","cleen-transition-all cleen-duration-300 cleen-ease-in-out","cleen-pointer-events-none",C?"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:Mx(Re,{header:l,footer:a,color:s,p:d,gap:f,radius:m,className:Kn("cleen-relative cleen-shadow-xl cleen-w-full cleen-max-w-lg cleen-rounded-lg cleen-pointer-events-auto",y?.modal?.className),style:{maxWidth:typeof p=="number"?p:sR[p],...v?.modal?.style},classNames:{...y?.modal?.classNames,container:Kn("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",y?.modal?.classNames?.container),childrenContainer:Kn("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",y?.modal?.classNames?.childrenContainer)},styles:v?.modal?.styles,ref:E,children:[I,r&&hc("div",{className:Kn("cleen-top-3 cleen-right-3 cleen-absolute"),children:hc(re,{variant:"borderless",onClick:w,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:r})})]})})]}),document.body):null});import{cn as xR}from"@cleen/ui-core";import{useEffect as CR,useRef as PR}from"react";var Be={gap:12,value:88,time:132,nextDay:144,billable:56,note:260,link:280,remove:32,padding:12},Xn="cleen-flex cleen-size-8 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",yg=({timeEntry:e,billable:t})=>{let{gap:o,value:n,time:r,nextDay:l,billable:a}=Be;return n+(e?2*(r+o)+l+o:0)+(t?a+o:0)},wx=e=>{let{gap:t,note:o,link:n,remove:r}=Be;return yg(e)+(e.notes?o+t:0)+(e.links?n+t:0)+(e.removable?r+t:0)};import{useEffect as pR,useState as kx}from"react";var _s=()=>{let[e,t]=kx(null),[o,n]=kx(0);return pR(()=>{if(!e||(n(e.clientWidth),typeof ResizeObserver>"u"))return;let r=new ResizeObserver(()=>n(e.clientWidth));return r.observe(e),()=>r.disconnect()},[e]),[t,o]};import{cn as Vs,ColorHelpers as zs}from"@cleen/ui-core";import{useMemo as dR}from"react";var vg=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow","foreground-transparent"],Ig={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"},Ex={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"},Tx={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"},Nx={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"},Rx={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var Bx=(e,t)=>!e&&!t?"primary":t?vg[t%vg.length]:e;import{jsx as xg,jsxs as mR}from"react/jsx-runtime";var Ne=({className:e,classNames:t,style:o,styles:n,label:r,color:l="primary",variant:a="rounded",showDot:i=!1,icon:p,removeable:s=!1,withBorder:d=!0,filled:f=!1,onRemoveClicked:m,onClick:h,colorByIndex:y,children:u,...v})=>{let{variantClass:I,dotVariantClass:P,dotVariantStyle:x,variantStyle:C}=dR(()=>{let S={};if(l in Ig){let L=Bx(l,y);S.variantClass=f?Ex[L]:Ig[L],S.dotVariantClass=f?Nx[L]:Tx[L]}else S.variantStyle={borderColor:f?l:zs.trasparentize(l,.8),backgroundColor:f?l:zs.trasparentize(l,.95),color:f?zs.adjustColorForContrast(l,.5):l},S.dotVariantStyle={backgroundColor:f?zs.adjustColorForContrast(l,.5):l};return S},[l,y,f]);return xg("div",{className:Vs("cleen",e),style:o,children:mR("span",{className:Vs("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},I,Rx[a],{"hover:cleen-opacity-80 cleen-cursor-pointer":h||s},t?.container),style:{...C,...n?.container},onClick:h,...v,children:[i&&xg("span",{className:Vs("cleen-size-2 cleen-rounded-[50%]",P,t?.dot),style:{...x,...n?.dot}}),p,r??u,s&&xg(Le,{className:Vs("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 ko}from"@cleen/ui-core";import{forwardRef as uR,useEffect as fR,useId as hR,useState as gR}from"react";import{jsx as Yn,jsxs as Cg}from"react/jsx-runtime";var gc=uR(function({id:t,name:o,required:n,checked:r,defaultChecked:l=!1,onChange:a,title:i,label:p,labelTooltip:s,sublabel:d,disabled:f,classNames:m,className:h,style:y,styles:u,infoLabels:v,...I},P){let x=typeof r=="boolean",[C,S]=gR(l);fR(()=>{x||S(l)},[l,x]);let L=x?r:C,k=hR(),E=i?`${k}-title`:void 0,F=p?`${k}-label`:void 0,M=[E,F].filter(Boolean).join(" ")||void 0,N=()=>{f||(x||S(!C),a?.(!L))};return Yn("div",{className:ko("cleen",h),style:y,children:Cg("div",{className:ko("cleen-flex cleen-flex-col",m?.container),style:u?.container,children:[i&&Yn(ve,{id:E,htmlFor:t||o,required:n,tooltip:s,className:ko("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...u?.title,children:i}),Cg("div",{className:ko("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:u?.switchContainer,children:[Yn("button",{id:t||o,type:"button",role:"switch","aria-checked":L,"aria-labelledby":M,disabled:f,onClick:N,className:ko("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,...I,children:Yn("span",{"aria-hidden":"true",className:ko("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)&&Cg("div",{className:ko("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:u?.labelContainer,children:[p&&Yn("span",{id:F,className:ko("cleen-font-semibold cleen-text-foreground",m?.label),style:u?.label,children:p}),d&&Yn("span",{className:ko("cleen-font-normal cleen-text-muted-foreground",m?.sublabel),style:u?.sublabel,children:d})]})]}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Yn(ue,{...v})]})})});import{cn as Nt}from"@cleen/ui-core";import{Fragment as bR,useEffect as yR,useMemo as Ox,useState as Sg}from"react";var jt=(e,t)=>`${e}:${t}`,Dx=(e,t)=>{let o=ol(e);return(o.length?o:[{}]).map(n=>({...n,uid:t()}))},Lx=(e,t)=>e>=t.min&&e<=t.max,Pg=(e,t)=>{let o={...e};delete o.uid,delete o.text,delete o.checked,t.timeEntry||(delete o.start,delete o.end,delete o.endsNextDay);let n=!!(o.start&&o.end);if(e.text!==void 0){let r=mc(e.text,t.timeEntry);if(r===null)n||delete o.value;else{if(Number.isNaN(r))return{entry:o,issue:"invalid",typed:!0};{let l=at(r,t.precision);return Lx(l,t)?(delete o.start,delete o.end,delete o.endsNextDay,{entry:{...o,value:l}}):{entry:o,issue:"range",typed:!0}}}}if(o.start||o.end){if(!n)return{entry:o,issue:"incomplete"};let r=dg(o.start,o.end,o.endsNextDay);if(r===null)return{entry:o,issue:"time"};let l=at(r/60,t.precision);return Lx(l,t)?{entry:{...o,value:l},minutes:r}:{entry:{...o,value:l},issue:"range",minutes:r}}return{entry:o}},Fx=(e,t)=>{if(e.text===void 0)return e;let o=Pg(e,t);return o.typed?{...e,checked:!0}:{...o.entry,uid:e.uid}},Hs=(e,t,o)=>{let n={...e,...t};delete n.text,delete n.checked,n.start||delete n.start,n.end||delete n.end,!n.start&&!n.end&&delete n.endsNextDay;let r=Pg(n,o);return r.minutes!==void 0&&r.entry.value!==void 0&&(n.value=r.entry.value),n},Ax=(e,t)=>{let o=e.map(l=>Pg(l,t)),n=o.map(l=>l.entry),r=ug(n,t.precision);return{resolved:o,cell:Fs(n,t.precision),totals:r,hasIssue:o.some(l=>!!l.issue),isOverMax:r.total>t.max+1e-9}};import{Fragment as kg,jsx as me,jsxs as rt}from"react/jsx-runtime";var vR="cleen-text-xs cleen-font-medium cleen-text-muted-foreground",Mg="cleen-border-error/70 hover:cleen-border-error focus-within:cleen-ring-error-bg",IR=({variant:e,index:t,draft:o,resolved:n,customError:r,showErrors:l,rules:a,notes:i,billable:p,removable:s,links:d,readOnly:f,noteMaxLength:m,labels:h,valueLabel:y,isLinkLoading:u,isOnlyEmptyLine:v,isLine:I,isStacked:P,timeWidth:x,onLinkSearchChange:C,onDraftChange:S,onRemove:L,onFocusRequest:k,className:E,style:F})=>{let[M,N]=Sg(!1),[w,O]=Sg(""),[T,D]=Sg(0),U=h.entryName(t+1),B=et(a.min,a.precision),R=et(a.max,a.precision),{issue:z,typed:G}=n,A=null,V=!1;z==="invalid"&&(o.checked||l)?(A=h.invalidError,V=!0):z==="range"&&(!G||o.checked||l)?(A=h.rangeError(B,R),V=!0):z==="time"?(A=h.timeError,V=!0):z==="incomplete"?(A=h.timeIncompleteError,V=l):!z&&r&&l&&(A=r,V=!0);let X=V&&(z==="invalid"||z==="range"||!z),_=V&&(z==="time"||z==="incomplete"),H=As(d,o.linkId),W=Ox(()=>{if(!d)return[];let Y=C?"":w.trim().toLowerCase();return d.options.filter(K=>!Y||`${K.label} ${K.meta??""} ${K.badge??""}`.toLowerCase().includes(Y))},[d,w,C]),$=Ox(()=>{let Y=[];return W.forEach(K=>{let Q=K.group??"",Ce=Y.find(j=>j.name===Q);Ce?Ce.options.push(K):Y.push({name:Q,options:[K]})}),Y},[W]),J=$.flatMap(Y=>Y.options);yR(()=>{M&&C?.(w.trim())},[M,w]);let ee=()=>{N(!1),O(""),D(0)},xe=Y=>{ee(),S({...o,linkId:Y}),k(jt(Y?"note":"link",o.uid))},ge=Y=>{if(Y.key==="ArrowDown")Y.preventDefault(),N(!0),D(K=>Math.min(K+1,Math.max(J.length-1,0)));else if(Y.key==="ArrowUp")Y.preventDefault(),D(K=>Math.max(K-1,0));else if(Y.key==="Enter"&&M){let K=J[T];if(!K)return;Y.preventDefault(),Y.stopPropagation(),xe(K.id)}else Y.key==="Escape"&&M&&(Y.preventDefault(),Y.stopPropagation(),ee())},Ee=Y=>P?{label:Y}:{"aria-label":`${Y}, ${U}`},we=o.text??(typeof o.value=="number"?et(o.value,a.precision):""),oe=i||!!d,se=[I?`${x}px`:"minmax(0, 1fr)",I&&oe?"minmax(0, 1fr)":"",s?`${Be.remove}px`:""].filter(Boolean).join(" "),ze=-1;return rt("div",{className:Nt("cleen-grid cleen-items-start cleen-gap-x-3 cleen-gap-y-2",!I&&t>0&&"cleen-border-t cleen-border-dashed cleen-border-border cleen-pt-3",E),style:{gridTemplateColumns:se,...F},children:[rt("div",{className:Nt("cleen-order-1 cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-gap-3",P?"cleen-items-end":"cleen-items-center"),onFocus:()=>M&&ee(),children:[me(Se,{...Ee(y),className:"cleen-shrink-0",style:{width:Be.value},inputMode:"decimal",placeholder:et(0,a.precision),value:we,disabled:f,"aria-invalid":X||void 0,"data-matrix-field":jt("value",o.uid),classNames:{input:"cleen-text-right cleen-font-medium cleen-tabular-nums",inputContainer:Nt(X&&Mg)},onChange:Y=>S({...o,text:Y.target.value,checked:!1}),onBlur:()=>S(Fx(o,a))}),a.timeEntry&&rt(kg,{children:[me(Se,{...Ee(h.start),type:"time",className:"cleen-shrink-0",style:{width:Be.time},value:o.start??"",disabled:f,"aria-invalid":_||void 0,"data-matrix-field":jt("start",o.uid),classNames:{input:"cleen-tabular-nums",inputContainer:Nt(_&&Mg)},onChange:Y=>S(Hs(o,{start:Y.target.value},a))}),me(Se,{...Ee(h.end),type:"time",className:"cleen-shrink-0",style:{width:Be.time},value:o.end??"",disabled:f,"aria-invalid":_||void 0,classNames:{input:"cleen-tabular-nums",inputContainer:Nt(_&&Mg)},onChange:Y=>S(Hs(o,{end:Y.target.value},a))}),me(Vn,{className:"cleen-flex cleen-h-[38px] cleen-shrink-0 cleen-items-center",style:{width:Be.nextDay},label:h.endsNextDay,checked:!!o.endsNextDay,disabled:f,classNames:{checkboxContainer:"cleen-items-center",label:"cleen-text-sm cleen-leading-tight cleen-text-muted-foreground"},onChange:Y=>S(Hs(o,{endsNextDay:Y.target.checked},a))})]}),p&&me("span",{className:"cleen-flex cleen-h-[38px] cleen-shrink-0 cleen-items-center cleen-justify-center",style:P?void 0:{width:Be.billable},title:o.billable===!1?h.nonBillable:h.billable,children:me(gc,{checked:o.billable!==!1,disabled:f,label:P?h.billable:void 0,"aria-label":P?void 0:`${h.billable}, ${U}`,classNames:{label:"cleen-font-normal"},onChange:Y=>S({...o,billable:Y?void 0:!1})})})]}),oe&&rt("div",{className:Nt("cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-start cleen-gap-3",I?"cleen-order-2":"cleen-order-3 cleen-col-span-full"),children:[i&&(e==="modal"?me(Za,{className:"cleen-min-w-0 cleen-flex-1",style:{flexBasis:Be.note},"aria-label":`${h.note}, ${U}`,placeholder:h.notePlaceholder,value:o.note??"",maxLength:m,minHeight:64,disabled:f,"data-matrix-field":jt("note",o.uid),classNames:{textarea:"cleen-py-2"},onFocus:()=>M&&ee(),onChange:Y=>S({...o,note:Y})}):me(Se,{className:"cleen-min-w-0 cleen-flex-1",style:{flexBasis:I?0:Be.note},"aria-label":`${h.note}, ${U}`,placeholder:h.notePlaceholder,value:o.note??"",maxLength:m,disabled:f,leftIcon:me(Co,{size:14}),"data-matrix-field":jt("note",o.uid),onFocus:()=>M&&ee(),onChange:Y=>S({...o,note:Y.target.value})})),d&&me("div",{className:"cleen-min-w-0 cleen-shrink-0 cleen-grow-0",style:{flexBasis:Be.link,maxWidth:"100%"},children:H?rt("span",{className:"cleen-flex cleen-h-[38px] cleen-min-w-0 cleen-items-center cleen-gap-2 cleen-rounded-md cleen-border cleen-border-border cleen-bg-background cleen-pl-2 cleen-pr-1 cleen-shadow-sm",title:H.meta?`${H.label} \xB7 ${H.meta}`:H.label,children:[H.badge?me(Ne,{className:"cleen-shrink-0",color:H.badgeColor??"gray",label:H.badge}):me("span",{className:"cleen-shrink-0 cleen-text-muted-foreground",children:d.icon??me(En,{size:14})}),me("span",{className:"cleen-min-w-0 cleen-flex-1 cleen-truncate cleen-text-sm cleen-font-medium cleen-text-foreground",children:H.label}),!f&&me("button",{type:"button","aria-label":`${h.removeLink}, ${U}`,title:h.removeLink,className:Nt(Xn,"cleen-size-7"),onClick:()=>xe(void 0),children:me(Le,{size:14})})]}):me(Se,{role:"combobox","aria-expanded":M,"aria-autocomplete":"list","aria-label":`${d.label}, ${U}`,placeholder:d.placeholder??d.label,value:w,disabled:f,leftIcon:me(vt,{size:14}),"data-matrix-field":jt("link",o.uid),onFocus:()=>N(!0),onClick:()=>N(!0),onBlur:ee,onChange:Y=>{O(Y.target.value),D(0),N(!0)},onKeyDown:ge})})]}),s&&me("button",{type:"button","aria-label":`${h.removeEntry}, ${U}`,title:h.removeEntry,className:Nt(Xn,"cleen-mt-[3px]",I?"cleen-order-3":"cleen-order-2",(v||f)&&"cleen-invisible"),onClick:L,children:me(Le,{size:16})}),A&&me("span",{role:V?"alert":"status",className:Nt("cleen-order-4 cleen-col-span-full cleen-text-xs",V?"cleen-text-error":"cleen-text-muted-foreground"),children:A}),d&&M&&!H&&rt("div",{role:"listbox","aria-label":d.label,className:"cleen-order-5 cleen-col-span-full cleen-flex cleen-max-h-80 cleen-flex-col cleen-overflow-y-auto cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-py-1 cleen-shadow-sm",onMouseDown:Y=>Y.preventDefault(),children:[u&&me("div",{className:"cleen-flex cleen-justify-center cleen-py-3",children:me(de,{})}),!u&&!J.length&&me("div",{className:"cleen-px-3 cleen-py-3 cleen-text-sm cleen-text-muted-foreground",children:d.emptyText??h.noOptions}),$.map(Y=>rt(bR,{children:[Y.name&&me("div",{className:"cleen-px-3 cleen-pb-1 cleen-pt-2 cleen-text-xs cleen-font-medium cleen-uppercase cleen-text-muted-foreground",children:Y.name}),Y.options.map(K=>{ze+=1;let Q=ze;return rt("button",{type:"button",role:"option",tabIndex:-1,"aria-selected":Q===T,className:Nt("cleen-flex cleen-w-full cleen-items-center cleen-gap-2 cleen-px-3 cleen-py-1.5 cleen-text-left",Q===T&&"cleen-bg-muted"),onMouseEnter:()=>D(Q),onClick:()=>xe(K.id),children:[K.badge&&me(Ne,{className:"cleen-shrink-0",color:K.badgeColor??"gray",label:K.badge}),rt("span",{className:"cleen-flex cleen-min-w-0 cleen-flex-col",children:[me("span",{className:"cleen-truncate cleen-text-sm cleen-text-foreground",children:K.label}),K.meta&&me("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:K.meta})]})]},K.id)})]},Y.name))]})]})},wg=({width:e,drafts:t,resolved:o,customErrors:n,onChange:r,...l})=>{let{variant:a,rules:i,notes:p,billable:s,removable:d,links:f,labels:m}=l,h={timeEntry:i.timeEntry,billable:s,notes:p,links:!!f,removable:d},y=yg(h),u=a==="inline"&&e>=wx(h),v=e>0&&e<y+(d?Be.remove+Be.gap:0),I=p||!!f,P=(L,k)=>r(t.map((E,F)=>F===L?k:E)),x=L=>{r(t.filter((k,E)=>E!==L)),l.onFocusRequest("add")},C=t.length===1?t[0]:null,S=!!(C&&C.text===void 0&&typeof C.value!="number"&&!C.start&&!C.end&&!C.note&&!C.linkId);return rt("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-col cleen-gap-2",children:[!v&&rt("div",{"aria-hidden":!0,className:Nt("cleen-grid cleen-gap-x-3",vR),style:{gridTemplateColumns:u?`${y}px minmax(0, 1fr)`:"minmax(0, 1fr)"},children:[rt("div",{className:"cleen-flex cleen-gap-3",children:[me("span",{style:{width:Be.value},children:l.valueLabel}),i.timeEntry&&rt(kg,{children:[me("span",{style:{width:Be.time},children:m.start}),me("span",{style:{width:Be.time},children:m.end}),me("span",{style:{width:Be.nextDay}})]}),s&&me("span",{className:"cleen-text-center",style:{width:Be.billable},children:m.billable})]}),u&&I&&rt("div",{className:"cleen-flex cleen-min-w-0 cleen-gap-3",children:[p&&me("span",{className:"cleen-min-w-0 cleen-flex-1",children:m.note}),f&&me("span",{className:"cleen-shrink-0",style:{width:Be.link,marginRight:d?Be.remove+Be.gap:0},children:f.label})]})]}),t.map((L,k)=>me(IR,{...l,index:k,draft:L,resolved:o[k]??{entry:{}},customError:n[k]??null,isOnlyEmptyLine:S,isLine:u,isStacked:v,timeWidth:y,onDraftChange:E=>P(k,E),onRemove:()=>x(k)},L.uid))]})},_x=({totals:e,billable:t,labels:o,formatAmount:n,className:r})=>rt("span",{role:"status",className:Nt("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-2 cleen-tabular-nums",r),children:[t&&rt(kg,{children:[me(Ne,{color:"primary",label:`${o.billable} ${n(e.billable)}`}),me(Ne,{color:"gray",label:`${o.nonBillable} ${n(e.nonBillable)}`})]}),me("span",{className:"cleen-whitespace-nowrap cleen-text-sm cleen-font-semibold cleen-text-foreground",children:o.entriesTotal(n(e.total))})]});import{Fragment as MR,jsx as Ge,jsxs as Rt}from"react/jsx-runtime";var SR=1500,Vx=e=>{let{drafts:t,billable:o,multipleEntries:n,readOnly:r,labels:l,rules:a}=e,i=t.length>1;return{removable:n||i,totals:(o||n||i)&&Ge(_x,{totals:e.totals,billable:o,labels:l,formatAmount:e.formatAmount}),add:n&&!r&&Ge(re,{variant:"borderless",className:"-cleen-ml-2",classNames:{container:"cleen-gap-1.5 cleen-px-2 cleen-py-1"},leftIcon:Ge(Po,{size:14}),"data-matrix-field":"add",onClick:e.onAdd,children:l.addEntry}),overMax:e.isOverMax&&Ge("span",{role:"alert",className:"cleen-text-xs cleen-text-error",children:l.totalError(et(a.max,a.precision))})}},zx=({width:e,className:t,style:o,...n})=>{let{labels:r,readOnly:l}=n,a=Vx(n),i=p=>{if(p.key==="Escape"){p.preventDefault(),p.stopPropagation(),n.onCancel();return}let{target:s}=p;p.key==="Enter"&&s instanceof HTMLInputElement&&s.type!=="checkbox"&&(p.preventDefault(),n.onDone())};return Rt("div",{role:"group","aria-label":n.ariaLabel,"data-matrix-detail":n.detailId,className:xR("cleen-sticky cleen-left-0 cleen-flex cleen-flex-col cleen-gap-3 cleen-px-3 cleen-pb-3.5 cleen-pt-3 cleen-text-left cleen-text-sm cleen-font-normal",t),style:{width:e||void 0,...o},onKeyDown:i,children:[Rt("div",{className:"cleen-flex cleen-flex-wrap cleen-items-baseline cleen-gap-x-2",children:[Ge("span",{className:"cleen-whitespace-nowrap cleen-font-semibold cleen-text-foreground",children:n.heading}),Ge("span",{className:"cleen-truncate cleen-text-muted-foreground",children:n.rowLabel})]}),Ge(wg,{...n,variant:"inline",width:Math.max(e-2*Be.padding,0),removable:a.removable,className:n.entryClassName,style:n.entryStyle}),a.overMax,Rt("div",{className:"cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-x-4 cleen-gap-y-2",children:[a.add,Rt("div",{className:"cleen-ml-auto cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-x-4 cleen-gap-y-2",children:[a.totals,Rt("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[n.canSwitch&&Ge("button",{type:"button","aria-label":r.openInWindow,title:r.openInWindow,className:Xn,onClick:n.onSwitch,children:Ge(Zl,{size:18})}),Ge(re,{variant:"secondary",classNames:{container:"cleen-px-3 cleen-py-1.5"},onClick:l?n.onCancel:n.onDone,children:r.done})]})]})]})]})},Hx=({isOpen:e,className:t,style:o,...n})=>{let{labels:r,canSave:l,onCancel:a,onDone:i}=n,p=n.readOnly||!e,s=Vx({...n,readOnly:p}),[d,f]=_s(),m=PR(0);return CR(()=>{if(!e)return;let y=v=>{v.key==="Escape"&&(m.current=Date.now())},u=()=>{m.current=0};return document.addEventListener("keydown",y,!0),document.addEventListener("mousedown",u,!0),()=>{document.removeEventListener("keydown",y,!0),document.removeEventListener("mousedown",u,!0)}},[e]),Ge(bg,{isOpen:e,onClose:()=>{n.readOnly||Date.now()-m.current<SR?a():i()},size:720,closeButtonIcon:null,closeOnOverlayClick:l||n.readOnly,classNames:{modal:{className:t}},styles:{modal:{style:o}},header:{content:Rt("div",{className:"cleen-flex cleen-items-start cleen-gap-3",children:[Rt("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col",children:[Ge("span",{className:"cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis",children:n.heading}),Rt("span",{className:"cleen-truncate cleen-text-sm cleen-text-muted-foreground",children:[n.rowLabel,n.rowMeta&&Rt(MR,{children:[" \xB7 ",n.rowMeta]})]})]}),Rt("div",{className:"-cleen-mr-2 -cleen-mt-1 cleen-flex cleen-items-center cleen-gap-1",children:[n.canSwitch&&Ge("button",{type:"button","aria-label":r.dock,title:r.dock,className:Xn,onClick:n.onSwitch,children:Ge(va,{size:18})}),Ge("button",{type:"button","aria-label":r.close,title:r.close,className:Xn,onClick:n.readOnly?a:i,children:Ge(Le,{size:18})})]})]})},footer:{content:Rt("div",{className:"cleen-mt-4 cleen-flex cleen-w-full cleen-flex-wrap cleen-items-center cleen-justify-between cleen-gap-3",children:[s.totals||Ge("span",{}),Ge(re,{variant:"primary",onClick:n.readOnly?a:i,children:r.done})]})},children:Rt("div",{ref:d,role:"group","aria-label":n.ariaLabel,"data-matrix-detail":e?n.detailId:void 0,className:"cleen-flex cleen-w-full cleen-flex-col cleen-items-start cleen-gap-3 cleen-text-sm",children:[Ge("div",{className:"cleen-w-full",children:Ge(wg,{...n,readOnly:p,variant:"modal",width:f,removable:s.removable,className:n.entryClassName,style:n.entryStyle})}),s.add,s.overMax]})})};var Ux={corner:"",total:"Total",footer:"Column total",add:"Add row",searchPlaceholder:"Search",noOptions:"No matches found",emptySection:"No rows in this section.",details:"Cell details",value:"",start:"Start",end:"End",endsNextDay:"Ends next day",clearTimes:"Clear times",note:"Note (optional)",notePlaceholder:"Add a note",addNote:"Add note",done:"Done",removeRow:"Remove row",collapse:"Collapse",expand:"Expand",hint:"",billable:"Billable",nonBillable:"Non-billable",addEntry:"Add entry",removeEntry:"Remove entry",removeLink:"Remove link",openInWindow:"Open in a window",dock:"Dock under the row",close:"Close",entryName:e=>`entry ${e}`,entriesCount:e=>`${e} entries`,entriesTotal:e=>`Total ${e}`,rangeError:(e,t)=>`Enter a value from ${e} to ${t}`,invalidError:"Enter a number",timeError:"End time must be after the start time",timeIncompleteError:"Add a start and an end time",totalError:e=>`Entries add up to more than ${e}`,formatHours:e=>`${e} h`},$x=e=>e?"Hours":"Value";import{useCallback as wR,useState as kR,useSyncExternalStore as ER}from"react";var Gx="cleen.matrix.entry-editor",Eg=new Set,Us=Object.create(null),TR=e=>(Eg.add(e),()=>{Eg.delete(e)}),NR=e=>{if(e in Us)return Us[e];let t=null;try{let o=window.localStorage.getItem(e);(o==="inline"||o==="modal")&&(t=o)}catch{}return Us[e]=t,t},RR=(e,t)=>{Us[e]=t;try{window.localStorage.setItem(e,t)}catch{}Eg.forEach(o=>o())},Wx=({editor:e,defaultEditor:t,onEditorChange:o,storageKey:n})=>{let r=ER(TR,()=>n?NR(n):null,()=>null),[l,a]=kR(null),i=e??(n?r:l)??t,p=wR(s=>{e===void 0&&(n?RR(n,s):a(s)),o?.(s)},[e,o,n]);return{mode:i,setMode:p,canSwitch:e===void 0||!!o}};import{jsx as he,jsxs as xt}from"react/jsx-runtime";var rl=e=>typeof e=="string"||typeof e=="number"?String(e):"",Yx={},Qx=[],_R=30,VR=LR(function({columns:t,sections:o,values:n,defaultValues:r,onValuesChange:l,onCellChange:a,onAddRow:i,onRemoveRow:p,onAddRowSearchChange:s,isAddRowLoading:d=!1,min:f=.1,max:m=24,precision:h=1,aggregate:y="sum",formatValue:u,timeEntry:v=!0,notes:I=!0,multipleEntries:P=!1,billable:x=!1,editor:C,defaultEditor:S="inline",onEditorChange:L,editorStorageKey:k=Gx,validateEntry:E,onLinkSearchChange:F,isLinkLoading:M=!1,density:N="comfortable",notePreviews:w=!0,noteMaxLength:O=1e3,readOnly:T=!1,isLoading:D=!1,flash:U,showFooter:B=!0,showHint:R=!0,collapsedSections:z,defaultCollapsedSections:G,onCollapsedSectionsChange:A,labels:V,className:X,classNames:_,style:H,styles:W,...$},J){let ee={...Ux,...V},xe=ee.value||$x(v),ge=nl(null),Ee=nl(null),[we,oe]=_s(),se=FR(),ze=nl(0),Y=nl(null),K=nl(null),[Q,Ce]=OR(null);AR(J,()=>ge.current);let{mode:j,setMode:Te,canSwitch:He}=Wx({editor:C,defaultEditor:S,onEditorChange:L,storageKey:k}),{value:Pe=Yx,handleChange:ot}=qx({value:n,defaultValue:r??Yx,onChange:l}),{value:Fe=Qx,handleChange:vn}=qx({value:z,defaultValue:G??Qx,onChange:A}),Pt=Qn(()=>fg(o,t,Pe,y),[o,t,Pe,y]),ce=q=>u?u(q):et(q,h),Z=q=>q?ce(q):"",ne=q=>q===void 0?y==="sum"?ce(0):"":ce(q),be=q=>{if(u)return u(q);if(V?.formatHours)return V.formatHours(at(q,h));let ae=et(q,h);return v?`${ae} h`:ae},Ae=Qn(()=>o.filter(q=>!Fe.includes(q.id)).flatMap(q=>q.rows.map(ae=>ae.id)),[o,Fe]),Wt=Qn(()=>({min:f,max:m,precision:h,timeEntry:v}),[f,m,h,v]),Oe=Qn(()=>{if(!Q||Fe.includes(Q.sectionId))return null;let q=o.find(Ue=>Ue.id===Q.sectionId),ae=q?.rows.find(Ue=>Ue.id===Q.rowId),pe=t.find(Ue=>Ue.id===Q.columnId);return q&&ae&&pe?{section:q,row:ae,column:pe}:null},[Q,o,t,Fe]);Xx(()=>{Q&&!Oe&&Ce(null)},[Q,Oe]);let ye=Qn(()=>Q?Ax(Q.drafts,Wt):null,[Q,Wt]),qt=Qn(()=>!Q||!ye||!E?[]:ye.resolved.map(q=>{let ae=q.issue?null:Ds(q.entry);return ae?E(ae,{sectionId:Q.sectionId,rowId:Q.rowId,columnId:Q.columnId})??null:null}),[Q,ye,E]),Kc=T||!!(Oe?.section.readOnly||Oe?.row.readOnly),Xc=!!(ye?.isOverMax&&Q&&Q.drafts.length>1),Yc=!!ye&&!ye?.hasIssue&&!Xc&&!qt.some(Boolean),Qc=(q,ae,pe,Ue)=>{let Ze=nn(ae,pe),dt=Pe[Ze]??null,Xe={...Pe};Ue?Xe[Ze]=Ue:delete Xe[Ze],ot(Xe),a?.({key:Ze,sectionId:q,rowId:ae,columnId:pe,value:Ue,previous:dt})},kl=()=>{Q&&(Y.current={cell:Q.key}),Ce(null)},In=()=>{if(!Q||!ye)return!0;if(Kc)return kl(),!0;if(!Yc)return Ce({...Q,showErrors:!0}),!1;let q=ye.cell,ae=uc(Pe[Q.key]??{});return JSON.stringify(q)!==JSON.stringify(ae)&&Qc(Q.sectionId,Q.rowId,Q.columnId,q),kl(),!0},xr=()=>(ze.current+=1,ze.current),Zc=(q,ae)=>jt(q==="note"&&I?"note":v?"start":"value",ae.uid),Zp=(q,ae,pe,Ue,Ze)=>{let dt=nn(ae.id,pe.id);if(Q){let Cr=Q.key===dt;if(!In()||Cr)return}let Xe=Dx(Ze,xr);Y.current={field:Zc(Ue,Xe[0])},Ce({key:dt,sectionId:q.id,rowId:ae.id,columnId:pe.id,focus:Ue,drafts:Xe,showErrors:!1})},Jp=q=>Ce(ae=>ae&&{...ae,drafts:q.length?q:[{uid:xr()}]}),jp=()=>{let q={uid:xr()};Y.current={field:jt("value",q.uid)},Ce(ae=>ae&&{...ae,drafts:[...ae.drafts,q]})},Jc=()=>{Q&&(Y.current={field:Zc(Q.focus,Q.drafts[0])}),Te(j==="modal"?"inline":"modal")},El=nl(In);El.current=In;let Tl=Qn(()=>[ge],[]),Nl=DR(()=>{El.current()},[]);BR({refs:Tl,handler:Nl,enabled:!!Q&&j==="inline"}),Xx(()=>{if(!Y.current)return;let q=0,ae=0,pe=Ze=>{if("cell"in Ze)return Array.from(Ee.current?.querySelectorAll("[data-matrix-input]")??[]).find(Xe=>Xe.dataset.matrixInput===Ze.cell);let dt=Array.from(document.querySelectorAll("[data-matrix-detail]")).find(Xe=>Xe.dataset.matrixDetail===se);return Array.from(dt?.querySelectorAll("[data-matrix-field]")??[]).find(Xe=>Xe.dataset.matrixField===Ze.field)},Ue=()=>{let Ze=Y.current;if(!Ze)return;let dt=pe(Ze);ae+=1,dt?(Y.current=null,dt.focus()):ae<_R?q=requestAnimationFrame(Ue):Y.current=null};return Ue(),()=>cancelAnimationFrame(q)});let ed=(q,ae,pe)=>{let Ue=Ae.indexOf(q),Ze=t.findIndex(Kt=>Kt.id===ae),dt=Ae[Ue+(pe==="down"?1:pe==="up"?-1:0)],Xe=t[Ze+(pe==="right"?1:pe==="left"?-1:0)];if(!dt||!Xe)return;let Cr=Ee.current?.querySelector(`[data-matrix-input="${CSS.escape(nn(dt,Xe.id))}"]`);Cr?.focus(),Cr?.select()},td=q=>{let ae=!Fe.includes(q);ae&&Q?.sectionId===q&&!In()||vn(ae?[...Fe,q]:Fe.filter(pe=>pe!==q))},jc=N==="compact",fe="cleen-sticky cleen-left-0 cleen-z-[1] cleen-bg-background cleen-border-r cleen-border-border",Vo=!T&&!!i&&o.some(q=>!q.readOnly&&(s||q.options?.length)),pt=Q&&Oe&&ye?{detailId:se,heading:Oe.column.title??[Oe.column.label,Oe.column.sublabel].map(rl).filter(Boolean).join(" "),rowLabel:Oe.row.label,rowMeta:Oe.row.meta,ariaLabel:[rl(Oe.row.label),Oe.column.title??rl(Oe.column.label)].filter(Boolean).join(", "),multipleEntries:P,drafts:Q.drafts,resolved:ye.resolved,customErrors:qt,showErrors:Q.showErrors,rules:Wt,notes:I,billable:Oe.row.billable??x,links:Oe.row.links,readOnly:Kc,noteMaxLength:O,labels:ee,valueLabel:xe,isLinkLoading:M,onLinkSearchChange:F?q=>F({sectionId:Q.sectionId,rowId:Q.rowId,columnId:Q.columnId,search:q}):void 0,totals:ye.totals,isOverMax:Xc,canSave:Yc,canSwitch:He,formatAmount:be,onChange:Jp,onAdd:jp,onDone:In,onCancel:kl,onSwitch:Jc,onFocusRequest:q=>{Y.current={field:q}},entryClassName:_?.entry,entryStyle:W?.entry}:null;pt&&(K.current=pt);let sy=pt??K.current,py=[v&&"a start and end time",P&&"several entries"].filter(Boolean).join(" or ");return xt("div",{ref:ge,className:ct("cleen cleen-relative cleen-flex cleen-flex-col cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background",X,_?.container),style:{...H,...W?.container},...$,children:[he("div",{ref:we,className:"cleen-overflow-x-auto",children:xt("table",{ref:Ee,className:ct("cleen-w-full cleen-border-separate cleen-border-spacing-0 cleen-text-sm",_?.table),style:W?.table,children:[he("thead",{children:xt("tr",{children:[he("th",{scope:"col",className:ct(fe,"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",_?.headerCell),style:W?.headerCell,children:ee.corner}),t.map(q=>xt("th",{scope:"col",title:q.title,className:ct("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",_?.headerCell),style:W?.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:ct("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",_?.headerCell),style:W?.headerCell,children:ee.total})]})}),he("tbody",{children:o.map(q=>{let ae=Fe.includes(q.id);return xt(Kx,{children:[xt("tr",{className:ct("cleen-bg-muted",_?.sectionRow),style:W?.sectionRow,children:[he("th",{scope:"rowgroup",className:ct(fe,"cleen-bg-muted cleen-border-b cleen-px-2 cleen-py-1.5 cleen-text-left"),children:xt("button",{type:"button",onClick:()=>td(q.id),"aria-expanded":!ae,"aria-label":`${ae?ee.expand:ee.collapse} ${rl(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(Sn,{size:14,className:ct("cleen-transition-transform",ae&&"-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(pe=>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:Z(Pt.sectionColumns[q.id]?.[pe.id]??0)},pe.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:ne(Pt.sections[q.id])})]}),!ae&&!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??ee.emptySection})}),!ae&&q.rows.map(pe=>{let Ue=T||!!(q.readOnly||pe.readOnly),Ze=Pt.rows[pe.id],dt=v||I||P||(pe.billable??x)||!!pe.links,Xe=Q?.rowId===pe.id&&Q.sectionId===q.id,Cr=!Ue&&!!p&&pe.removable!==!1&&!t.some(Kt=>Pe[nn(pe.id,Kt.id)]);return xt(Kx,{children:[xt("tr",{className:ct("cleen-group/row",_?.row),style:W?.row,children:[he("th",{scope:"row",className:ct(fe,"cleen-border-b cleen-text-left cleen-font-normal",jc?"cleen-px-3 cleen-py-1":"cleen-px-3 cleen-py-2",_?.rowLabel),style:W?.rowLabel,children:xt("div",{className:"cleen-flex cleen-items-start cleen-gap-2",children:[xt("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:pe.label}),pe.meta&&!jc&&he("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:pe.meta})]}),Cr&&he("button",{type:"button","aria-label":`${ee.removeRow} ${rl(pe.label)}`,title:ee.removeRow,onClick:()=>{Xe&&Ce(null),p?.({sectionId:q.id,rowId:pe.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(Le,{size:14})})]})}),t.map(Kt=>{let ei=nn(pe.id,Kt.id);return he(xx,{cellKey:ei,column:Kt,rowLabel:rl(pe.label),cell:Pe[ei],min:f,max:m,precision:h,timeEntry:v,notes:I,hasDetails:dt,links:pe.links,density:N,notePreviews:w,readOnly:Ue,flash:U?.[ei],isDetailOpen:Q?.key===ei,labels:ee,formatAmount:be,onOpenDetail:(Rl,BM)=>Zp(q,pe,Kt,Rl,BM),onCommit:Rl=>Qc(q.id,pe.id,Kt.id,Rl),onNavigate:Rl=>ed(pe.id,Kt.id,Rl),className:_?.cell,style:W?.cell},Kt.id)}),he("td",{className:ct("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",_?.totalCell),style:W?.totalCell,children:ne(Ze)})]}),Xe&&pt&&j==="inline"&&he("tr",{children:he("td",{colSpan:t.length+2,className:ct("cleen-border-b cleen-border-t-2 cleen-border-border cleen-border-t-primary cleen-bg-surface cleen-p-0",_?.detail),style:W?.detail,children:he(zx,{...pt,width:oe})})})]},pe.id)})]},q.id)})}),B&&he("tfoot",{children:xt("tr",{className:ct("cleen-bg-muted",_?.footer),style:W?.footer,children:[he("th",{scope:"row",className:ct(fe,"cleen-bg-muted cleen-px-3 cleen-py-2 cleen-text-left cleen-text-xs cleen-font-semibold cleen-text-foreground"),children:ee.footer}),t.map(q=>he("td",{className:ct("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:Z(Pt.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:ne(Pt.grand)})]})})]})}),(Vo||R&&!T)&&xt("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:[Vo&&i?he(hx,{sections:o,labels:ee,onAddRow:i,onSearchChange:s,isLoading:d,className:_?.addButton,style:W?.addButton,popoverClassName:_?.popover,popoverStyle:W?.popover}):he("span",{}),R&&!T&&he("span",{className:"cleen-text-xs cleen-text-muted-foreground",children:ee.hint||`Type a value from ${et(f,h)} to ${et(m,h)}${py?`, or open the cell menu for ${py}`:""}.${I?" Press N in a cell for its note.":""}`})]}),sy&&he(Hx,{...sy,isOpen:!!pt&&j==="modal",className:_?.window,style:W?.window}),D&&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(de,{})})]})});var zR=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)}},Zx={uploaded:e=>`Uploaded: ${zR(e)}`};var Tg={"image/":"image","video/":"video","audio/":"audio"},Ng={"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"},Jx={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"},jx=["http:","https:","blob:"];var HR=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in Ng)return Ng[t];let o=Object.keys(Tg).find(n=>t.startsWith(n));return o?Tg[o]:void 0},Rg=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},UR=e=>{let t=Rg(e);return t?Jx[t]:void 0},eC=e=>HR(e.type)??UR(e.name)??"generic",tC=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return jx.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as Eo,formatFileSize as $R}from"@cleen/ui-core";import{forwardRef as GR,useMemo as oC,useState as WR}from"react";import{Fragment as KR,jsx as eo,jsxs as $s}from"react/jsx-runtime";var qR=GR(function({file:t,preview:o=!1,onRemove:n,description:r,labels:l,className:a,classNames:i,style:p,styles:s,...d},f){let[m,h]=WR(),y=oC(()=>({...Zx,...l}),[l]),u=eC(t),v=T1(Rg(t.name)),I=tC(t.url)?t.url:void 0,P=t.previewUrl||t.url,x=o&&(u==="image"||u==="video")&&!!P&&m!==P,C=oC(()=>{if(r!=null)return r;let E=[];if(t.size!=null&&E.push($R(t.size)),t.uploadedAt!=null){let F=y?.uploaded(t.uploadedAt);F&&E.push(F)}return E.length>0?E.join(" \u2022 "):null},[r,t.uploadedAt,t.size,y]),S=E=>{E.stopPropagation(),n?.(t)},L=Eo("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-items-center cleen-gap-3 cleen-py-2 cleen-px-3 cleen-rounded-lg",I&&"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),k=$s(KR,{children:[$s("div",{className:Eo("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:[x&&(u==="image"||u==="video"&&t.previewUrl)&&eo("img",{src:P,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>h(P)}),x&&u==="video"&&!t.previewUrl&&eo("video",{src:P,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>h(P)}),!x&&eo(v,{"aria-hidden":!0,className:Eo("cleen-size-5",i?.icon),style:s?.icon})]}),$s("div",{className:Eo("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:s?.content,children:[eo("span",{className:Eo("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:s?.title,title:t.name,children:t.name}),C!==null&&eo("span",{className:Eo("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:s?.description,children:C})]})]});return eo("div",{className:Eo("cleen",a),style:p,ref:f,...d,children:$s("div",{className:Eo("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",I&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",i?.container),style:s?.container,children:[I?eo("a",{href:I,target:"_blank",rel:"noopener noreferrer",className:L,style:s?.main,children:k}):eo("div",{className:L,style:s?.main,children:k}),n&&eo("button",{type:"button",className:Eo("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:eo(Le,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Gs={filterName:"",exposed:!1};import{createContext as XR}from"react";var Bt=XR({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as YR}from"@cleen/ui-core";import{useContext as QR,useState as ZR}from"react";import{Fragment as JR,jsx as bc,jsxs as Bg}from"react/jsx-runtime";var nC={min:3,max:50},rC=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:o,setIsSaveFiltersStep:n,handleCloseSaveFilter:r,setError:l,onSave:a,classNames:i,styles:p,labels:s,withSavedFilters:d=!0,onCancel:f,onApply:m}=QR(Bt),[h,y]=ZR(!1),u=async()=>{try{if(t.filterName.length<nC.min){l?.("filterName",s?.saveStep?.validation?.tooShort);return}if(t.filterName.length>nC.max){l?.("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?Bg("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[bc(re,{onClick:()=>n(!1),variant:"secondary",...i?.saveFilter?.backBtn,...p?.saveFilter?.backBtn,children:s?.saveStep?.back}),bc(re,{onClick:u,isLoading:h,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...p?.saveFilter?.saveBtn,children:s?.saveStep?.save})]}):Bg(JR,{children:[d&&bc(re,{onClick:()=>{o(Gs),n(!0)},variant:"borderless-blue",...i?.saveBtn,...p?.saveBtn,children:s?.save}),Bg("div",{className:YR("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!d}),children:[bc(re,{onClick:()=>{f?.(),r()},variant:"secondary",...i?.cancelBtn,...p?.cancelBtn,children:s?.cancel}),bc(re,{onClick:()=>{m?.(),r()},...i?.applyBtn,...p?.applyBtn,children:s?.apply})]})]})};import{cn as Zn}from"@cleen/ui-core";import{Link as jR}from"react-router-dom";import{Fragment as cC,jsx as Ht,jsxs as yc}from"react/jsx-runtime";var lC=({item:e,classNames:t,styles:o})=>({disabled:e?.disabled,className:Zn("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:yc(cC,{children:[e?.icon,Ht("span",{className:Zn("cleen-flex-1",t?.label),style:o?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),aC=(e,t)=>e.map(o=>o?.type==="group"?{...o,items:aC(o.items,t)}:o?.type==="button"&&!o.submenu?.length?{...o,onClick:()=>t?.(o)}:o),Lg=({item:e,isLast:t,handleClick:o,onEnterSubmenu:n,renderActionsMenu:r,classNames:l,styles:a})=>{switch(e?.type){case"group":return yc(cC,{children:[e?.label&&Ht("p",{className:Zn("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",l?.groupLabel),style:a?.groupDivider,children:e?.label}),e?.items?.map((i,p,s)=>Ht(Lg,{item:i,handleClick:o,onEnterSubmenu:n,renderActionsMenu:r,isLast:p===s.length-1},i?.id||p)),!t&&Ht("hr",{className:Zn("cleen-text-neutral-200",l?.groupDivider),style:a?.groupDivider})]});case"button":{let i=e?.submenu&&e?.submenu?.length>0,p=!!r&&!!e?.actions&&e.actions.length>0,s=()=>{i?n?.(e.submenu,e?.label):o?.(e)};if(!p)return yc("button",{type:"button",onClick:s,...lC({item:e,classNames:l,styles:a}),children:[e?.icon,Ht("span",{className:"cleen-flex-1",children:e?.label}),i&&Ht(St,{className:"cleen-size-4 cleen-text-neutral-400"})]});let d=e.actionsLabel??"More actions";return yc("div",{className:Zn("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",l?.container),style:a?.container,children:[yc("button",{type:"button",onClick:s,disabled:e?.disabled,className:Zn("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,Ht("span",{className:Zn("cleen-flex-1 cleen-min-w-0 cleen-truncate",l?.label),style:a?.label,children:e?.label}),i&&Ht(St,{className:"cleen-size-4 cleen-text-neutral-400"})]}),r(aC(e.actions,o),Ht("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:Ht($o,{className:"cleen-size-4"})}))]})}case"link":return Ht(jR,{to:"",...lC({item:e,classNames:l,styles:a})});default:return null}};import{cn as eB}from"@cleen/ui-core";import{useEffect as iC,useState as sC}from"react";import{Fragment as tB,jsx as pC,jsxs as dC}from"react/jsx-runtime";var mC=({items:e,keepOpenOnClick:t,hideMenu:o,renderActionsMenu:n,classNames:r,styles:l})=>{let[a,i]=sC([]),[p,s]=sC(e),d=(h,y)=>{i(u=>[...u,{items:p,title:y}]),s(h)},f=()=>{let h=a[a?.length-1];h&&(s(h?.items),i(y=>y?.slice(0,-1)))};iC(()=>{s(e),i([])},[e]),iC(()=>{let h=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",h),()=>{document.removeEventListener("keydown",h)}},[o,a]);let m=h=>{h?.onClick?.(),t||o()};return dC(tB,{children:[a?.length>0&&dC("button",{onClick:f,className:eB("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-sm cleen-text-foreground hover:cleen-bg-neutral-50",r?.submenuButton),style:l?.submenuButton,children:[pC(yo,{className:"cleen-size-4 cleen-text-neutral-300"}),a?.[a?.length-1]?.title]}),p?.map((h,y,u)=>pC(Lg,{item:h,isLast:y===u?.length-1,handleClick:m,onEnterSubmenu:d,renderActionsMenu:n,classNames:r?.item,styles:l?.item},h?.id||y))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as oB,cn as Dg,useDisclosure as nB,useOutsideClick as rB,usePositionClose as lB,ZIndex as aB}from"@cleen/ui-core";import{forwardRef as cB,useRef as uC}from"react";import{createPortal as iB}from"react-dom";import{jsx as vc,jsxs as pB}from"react/jsx-runtime";var Jn=cB(function({items:t=[],position:o="bottom-left",keepOpenOnClick:n=!0,triggerRef:r,menuRef:l,ignoreClickOutside:a=!1,zIndex:i=aB.MENU,children:p,className:s,classNames:d,style:f,styles:m,...h},y){let{isOpen:u,toggle:v,close:I}=nB(),P=uC(null),x=uC(null),C=r??P,S=l??x,{positionStyles:L,isMounted:k}=lB({triggerRef:C,targetRef:S,position:o,isOpen:u});rB({refs:[C,S],handler:I,enabled:u});let E=()=>{v()};return pB("div",{className:Dg("cleen",s),style:f,ref:y,...h,children:[vc("div",{ref:C,onClick:E,className:Dg("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:p}),u&&iB(vc("div",{className:"cleen",...a&&{[oB]:"true"},children:vc("div",{ref:S,className:Dg("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!k},d?.menu),style:{zIndex:i,top:`${L.top}px`,left:`${L.left}px`,...m?.menu},children:vc(mC,{items:t,keepOpenOnClick:n,hideMenu:I,renderActionsMenu:(F,M)=>sB(F,M,i),classNames:d,styles:m})})}),document.body)]})});function sB(e,t,o){return vc(Jn,{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 mB}from"@cleen/ui-core";import{useContext as uB,useState as fC}from"react";import{jsx as to,jsxs as fB}from"react/jsx-runtime";var hC=({filter:e,activeTabId:t})=>{let[o,n]=fC(!1),[r,l]=fC(!1),{labels:a,onFilterDelete:i,onFilterPin:p,onFilterSelect:s,onFilterUnpin:d,setIsFiltersDropdownOpen:f}=uB(Bt),m=async()=>{try{if(!i)return;n(!0),await i(e.filterID)}catch(y){console.error("Error while deleting filter:",y)}finally{n(!1)}},h=async()=>{try{l(!0),e?.isPinned?await d?.(e.filterID):await p?.(e.filterID)}catch(y){console.error("Error while pinning/unpinnning filter:",y)}finally{l(!1)}};return to("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:fB("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{s?.(e),f(!1)},children:[to("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),r?to(de,{classNames:{loader:"cleen-size-5"}}):to(Ne,{color:"gray",onClick:y=>{y.stopPropagation(),h()},icon:to(Sa,{name:"pin",className:mB("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"&&to(Jn,{items:[{id:"duplicate",type:"button",label:a?.savedFilters?.filter?.cancelDelete,icon:to(Le,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:a?.savedFilters?.filter?.delete,icon:to(Et,{}),danger:!0,onClick:()=>m()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:y=>y.stopPropagation(),className:"cleen-flex",children:o?to(de,{size:"sm",color:"rgb(var(--cleen-error))"}):to(Et,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as rn}from"@cleen/ui-core";import{forwardRef as hB,useId as gB,useMemo as bC,useRef as bB,useState as Ag}from"react";import{cn as Fg}from"@cleen/ui-core";var Ic={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"}},gC=e=>{let t=e==="vertical";return{underlined:{list:Fg("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:Fg("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:Fg("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 xc,jsxs as yC}from"react/jsx-runtime";var Ws=(e,t)=>e?.id??String(t),Cc=hB(function({tabs:t,variant:o="underlined",direction:n="horizontal",currentTabIndex:r,onTabChange:l,multiple:a=!1,activeTabIds:i,defaultActiveTabIds:p,onChange:s,className:d,classNames:f,style:m,styles:h,...y},u){let[v,I]=Ag(0),x=r!==void 0?r:v,[C,S]=Ag(p??[]),L=i??C,k=bC(()=>{if(!a){let A=t?.[x];return A?[A]:[]}return t?.filter((A,V)=>L.includes(Ws(A,V)))??[]},[t,a,x,L]),E=(A,V)=>a?L.includes(Ws(A,V)):x===V,F=(A,V)=>{if(a){let X=Ws(V,A),_=L.includes(X),H=t?.map((W,$)=>Ws(W,$)).filter(W=>W===X?!_:L.includes(W))??[];S(H),s?.(H)}else I(A);l?.(A,V)},M=gB(),N=bB([]),[w,O]=Ag(),T=A=>`${M}-tab-${A}`,D=A=>`${M}-panel-${A}`,U=t?.flatMap((A,V)=>A?.isDisabled?[]:[V])??[],B=w!==void 0&&U.includes(w)?w:U.find(A=>E(t[A],A))??U[0],R=A=>{let V=N.current.findIndex(J=>J===A.target),X=U.indexOf(V);if(X===-1)return;let[_,H]=n==="vertical"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],W=U.length-1,$={[_]:X===0?W:X-1,[H]:X===W?0:X+1,Home:0,End:W}[A.key];$!==void 0&&(A.preventDefault(),N.current[U[$]]?.focus())},z=new Set(t?.flatMap((A,V)=>A?.content&&E(A,V)?[V]:[])??[]),G=bC(()=>gC(n),[n]);return xc("div",{className:rn("cleen",d),style:m,ref:u,...y,children:yC("div",{className:rn(Ic[n].container,f?.container),style:h?.container,children:[xc("div",{role:"tablist","aria-label":"Tabs","aria-orientation":n,"aria-multiselectable":a||void 0,className:rn(G[o].list,Ic[n].list,f?.list),style:h?.list,onKeyDown:R,onBlur:A=>{A.currentTarget.contains(A.relatedTarget)||O(void 0)},children:t?.map((A,V)=>{let X=E(A,V),_=A?.isDisabled;return yC("button",{type:"button",role:"tab",ref:H=>{N.current[V]=H},id:T(V),"aria-selected":X,"aria-controls":z.has(V)?D(V):void 0,"aria-disabled":_||void 0,tabIndex:V===B?0:-1,disabled:_,onFocus:()=>O(V),onClick:()=>F(V,A),className:rn("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",!_&&"cleen-cursor-pointer",G[o].tab,Ic[n].tab,f?.tab,_?rn(G[o].tabDisabled,f?.tabDisabled):X?rn(G[o].tabActive,f?.tabActive):rn(G[o].tabInactive,f?.tabInactive)),style:{...h?.tab,..._?h?.tabDisabled:X?h?.tabActive:h?.tabInactive},children:[A?.label,!!A?.badge?.label&&xc(Ne,{variant:"rounded",color:X?"blue":"gray",...f?.count,...h?.count,...A.badge})]},A?.id||V)})}),k.some(A=>!!A?.content)&&xc("div",{className:rn("h-full",a&&"cleen-flex cleen-flex-col cleen-gap-4",Ic[n].content,f?.content),style:h?.content,...!a&&{role:"tabpanel",id:D(x),"aria-labelledby":T(x)},children:a?k.map(A=>{if(!A?.content)return null;let V=t.indexOf(A);return xc("div",{role:"tabpanel",id:D(V),"aria-labelledby":T(V),children:A.content},A.id||V)}):k[0]?.content})]})})});import{useContext as yB,useState as vB}from"react";import{jsx as jn,jsxs as xB}from"react/jsx-runtime";var IB=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},vC=({selectedSavedFilter:e,filters:t,isFiltersFetching:o,onFilterCategoryChange:n})=>{let[r,l]=vB("all"),{labels:a,classNames:i,styles:p,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:d}=yB(Bt);return jn(cc,{isOpen:s,onOpenChange:d,leftIcon:jn(ca,{className:"cleen-size-5"}),label:e?.title??a?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...p?.dropdown,children:xB("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[jn(Cc,{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)=>{l(m?.id),n?.(IB(m?.id))},classNames:{list:"cleen-mb-2"}}),jn("div",{className:"flex flex-col",children:o?jn(de,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(f=>jn(hC,{filter:f,activeTabId:r},f.filterID)):jn("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:a?.savedFilters?.noFilters})})]})})};import{useContext as CB}from"react";import{Fragment as PB,jsx as IC,jsxs as SB}from"react/jsx-runtime";var xC=()=>{let{classNames:e,styles:t,labels:o,saveStepValues:n,setSaveStepValues:r,errors:l,clearError:a}=CB(Bt);return SB(PB,{children:[IC(Se,{value:n.filterName,onChange:i=>{r(p=>({...p,filterName:i.target.value})),l?.filterName&&a?.("filterName")},label:o?.saveStep?.filterNameInput?.label,placeholder:o?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:l?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),IC(gc,{checked:n.exposed,onChange:i=>r(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 CC={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 MB}from"@cleen/ui-core";import{useState as Og}from"react";import{jsx as wB}from"react/jsx-runtime";var PC=({children:e,value:t})=>{let[o,n]=Og(!1),[r,l]=Og(Gs),{errors:a,setError:i,clearError:p}=MB({}),[s,d]=Og(!1),f=()=>{n(!1),t?.onClose?.()};return wB(Bt.Provider,{value:{isSaveFiltersStep:o,setIsSaveFiltersStep:n,saveStepValues:r,setSaveStepValues:l,handleCloseSaveFilter:f,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:d,errors:a,setError:i,clearError:p,...t},children:e})};import{applyDefaults as kB,cn as SC}from"@cleen/ui-core";import{forwardRef as MC,useContext as EB}from"react";import{Fragment as RB,jsx as ln,jsxs as BB}from"react/jsx-runtime";var TB=MC(function({selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,children:r,classNames:l,styles:a,labels:i,withSavedFilters:p=!0,onClear:s,onSave:d,onCancel:f,onApply:m,onClose:h,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:v,onFilterPin:I,onFilterSelect:P,onFilterUnpin:x,...C},S){return ln(PC,{value:{selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,classNames:l,styles:a,labels:kB(CC,i),withSavedFilters:p,onClear:s,onSave:d,onCancel:f,onApply:m,onClose:h,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:v,onFilterPin:I,onFilterSelect:P,onFilterUnpin:x},children:ln(NB,{...C,ref:S,children:r})})}),NB=MC(function({children:t,...o},n){let{handleCloseSaveFilter:r,isSaveFiltersStep:l,selectedSavedFilter:a,savedFilters:i,isFiltersFetching:p,classNames:s,styles:d,labels:f,withSavedFilters:m=!0,onClear:h,onFilterCategoryChange:y,onFilterSelect:u}=EB(Bt);return ln(Y1,{footer:ln(rC,{}),headerCloseBtn:ln(re,{onClick:()=>{h?.(),u?.(void 0)},leftIcon:ln(Et,{}),variant:"secondary",...s?.clearBtn,...d?.clearBtn,children:f?.clear}),classNames:{...s,content:SC("cleen-space-y-4",s?.content),footer:SC("cleen-justify-between",s?.footer)},onClose:r,ref:n,...o,title:l?f?.saveStep?.title:o.title,subtitle:l?f?.saveStep?.subtitle:o.subtitle,children:l?ln(xC,{}):BB(RB,{children:[m&&ln(vC,{filters:i,selectedSavedFilter:a,onFilterCategoryChange:y,isFiltersFetching:p}),t]})})});import{cn as ll}from"@cleen/ui-core";import{forwardRef as LB}from"react";import{jsx as qs,jsxs as wC}from"react/jsx-runtime";var kC=LB(({title:e,titleTooltip:t,subtitle:o,required:n,labelProps:r,children:l,className:a,classNames:i,style:p,styles:s,...d},f)=>qs("div",{ref:f,className:ll("cleen",a),style:{...p,width:"100%"},...d,children:wC("div",{className:ll("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:s?.container,children:[wC("div",{className:ll("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:s?.titleColumn,children:[qs(ve,{...r,required:n,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:ll("cleen-truncate",i?.title?.classNames?.label)},...s?.title,children:e}),o&&qs("div",{className:ll("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})]}),qs("div",{className:ll("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:s?.controlsRow,children:l})]})}));kC.displayName="FormGroup";import{cn as Ye,useDebounce as DB,useOutsideClick as FB,usePositionClose as AB,ZIndex as OB}from"@cleen/ui-core";import{useEffect as Ks,useMemo as _g,useRef as Vg,useState as Ut}from"react";import{createPortal as _B}from"react-dom";import{Fragment as HB,jsx as le,jsxs as ht}from"react/jsx-runtime";function VB(e){return e!==null&&typeof e=="object"}function lt(e,t){if(VB(e)&&t in e)return e[t]}function EC(e,t){let o=lt(e,t);return Array.isArray(o)?o:[]}function TC(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 zB=({position:e="bottom-right",labels:t,groups:o=[],selectedItemID:n=null,groupThreeDotMenuOptions:r=[],itemThreeDotMenuOptions:l=[],refetchData:a,onGroupSave:i,onItemSave:p,onGroupThreeDotMenuClick:s,onItemThreeDotMenuClick:d,onSearchChange:f,onItemSelect:m,groupIDKey:h,groupTitleKey:y,itemsKey:u,itemIDKey:v,itemGroupIDKey:I,itemTitleKey:P,itemSubtitleKey:x,newValueMinLength:C=2,isLoading:S=!1,isGroupSaving:L=!1,isItemSaving:k=!1,selectedColor:E="rgb(var(--cleen-primary-100))",hasFiltering:F=!0,zIndex:M=OB.POPOVER,className:N,classNames:w,style:O,styles:T})=>{let[D,U]=Ut(!1),[B,R]=Ut(!1),[z,G]=Ut(!1),[A,V]=Ut(!1),[X,_]=Ut(null),[H,W]=Ut(null),[$,J]=Ut(""),[ee,xe]=Ut(""),[ge,Ee]=Ut(null),we=Vg(void 0),[oe,se]=Ut(""),[ze]=DB(oe,500),[Y,K]=Ut(""),Q=Vg(null),Ce=Vg(null),{positionStyles:j,isMounted:Te}=AB({triggerRef:Q,targetRef:Ce,position:e,isOpen:D,offset:10});FB({refs:[Ce],handler:()=>U(!1),enabled:D});let He=_g(()=>o??[],[o]),Pe=_g(()=>{let Z=new Map;for(let ne of He){let be=lt(ne,h);be!=null&&Z.set(be,EC(ne,u))}return Z},[He,h,u]),ot=_g(()=>{let Z=[];return X==null?Z=Array.from(Pe?.values()).flat():Z=Pe?.get(X)??[],F&&Y.trim()!==""&&(Z=Z.filter(ne=>{let be=String(lt(ne,P)??""),Ae=x?String(lt(ne,x)??""):"";return be.toLowerCase().includes(Y?.toLowerCase()??"")||Ae.toLowerCase().includes(Y?.toLowerCase()??"")})),Z},[X,Pe,Y,P,x,F]);Ks(()=>{let Z=we.current!==n;if(we.current=n,n==null){Z&&(W(null),_(null));return}let be=Array.from(Pe?.values())?.flat()?.find(Ae=>lt(Ae,v)===n);if(be){let Ae=lt(be,I)??null;W(be),_(Ae)}else Z&&W(null)},[n,Pe,v,I]),Ks(()=>{if(ge==null)return;let ne=Array.from(Pe?.values())?.flat()?.find(Ae=>lt(Ae,v)===ge);if(!ne)return;let be=lt(ne,I);_(typeof be=="string"||typeof be=="number"?be:null),W(ne),Ee(null),m?.(ne)},[ge,Pe,v,I,m]),Ks(()=>{f&&f(ze??"")},[ze,f]),Ks(()=>{D||(R(!1),G(!1),J(""),xe(""))},[D]);let Fe=Z=>{Z===X?(_(null),W(null),m?.(null)):(W(null),_(Z),m?.(null))},vn=Z=>{let ne=lt(Z,I);_(typeof ne=="string"||typeof ne=="number"?ne:null),W(Z),m?.(Z),U(!1)};async function Pt(){if(!i)return;let Z={[y]:$};try{let ne=await i(Z);if(ne?.success){R(!1),J(""),a&&await a();let be=TC(ne,h);be!=null&&(_(be),W(null),m?.(null))}}catch{}}async function ce(){if(!p)return;let Z={[P]:ee,...X!=null?{[I]:X}:{}};try{let ne=await p(Z);ne?.success&&(G(!1),xe(""),Ee(TC(ne,v)),a&&await a())}catch{}}return le("div",{className:Ye("cleen",N),style:O,children:ht("div",{ref:Q,className:Ye("cleen-relative cleen-w-full cleen-cursor-pointer",w?.container),style:T?.container,onClick:Z=>{Z.stopPropagation(),U(!0)},children:[le(Se,{placeholder:t?.inputPlaceholder,rightIcon:le(vo,{className:Ye("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!D})}),value:oe,onChange:Z=>{_(null),W(null),se(Z.target.value)},classNames:{input:D?"":"cleen-cursor-pointer"},className:w?.input,style:T?.input}),D&&_B(le("div",{className:"cleen",children:ht("div",{ref:Ce,className:Ye("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":!Te},w?.columnsContainer),style:{zIndex:M,top:`${j.top}px`,left:`${j.left}px`,...T?.columnsContainer},children:[ht("div",{className:"cleen-w-1/2 cleen-h-full",children:[le("div",{className:Ye("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",w?.leftColumn),style:T?.leftColumn,children:S?le("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:le(de,{size:"sm"})}):o?.map((Z,ne)=>{let be=lt(Z,h),Ae=be===X,Wt=String(lt(Z,y)??""),Oe=EC(Z,u)?.length??0;return ht("div",{className:Ye("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-10 cleen-cursor-pointer cleen-transition-colors hover:cleen-bg-neutral-50",w?.groupItem),style:{...T?.groupItem||{},...Ae?{backgroundColor:E}:{}},onClick:ye=>{ye.stopPropagation(),ye.preventDefault(),Fe(be??null)},children:[ht("div",{className:Ye("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",r?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[le("span",{className:Ye("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",w?.groupItemTitle),style:T?.groupItemTitle,children:Wt}),le(Ne,{color:"lighter-blue",label:Oe})]}),r?.length>0&&le("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:ye=>{ye.stopPropagation(),s?.(Z)},children:le(Jn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:r?.map(ye=>{let qt=ye?.disabledOptionCallback?.(Z);return{...ye,type:"button",label:le("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:ye?.label}),onClick:()=>{qt||ye?.onClick(Z)},disabled:qt}}),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:le($o,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${ne}-${String(be??ne)}`)})}),le(Vt,{isHorizontal:!0}),B?ht("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[le(Se,{leftIcon:le(Xo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:$,onChange:Z=>J(Z.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),le("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?L?le(de,{}):$?.length>C?le(re,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{Pt()},classNames:{container:"cleen-w-max cleen-h-7"}}):le("div",{}):le("div",{})})]}):ht("div",{className:Ye("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer cleen-transition-colors hover:cleen-bg-neutral-50",w?.newGroupButton),style:T?.newGroupButton,onClick:()=>R(!0),children:[le(Xo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),le("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),le(Vt,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),ht("div",{className:"cleen-w-1/2 cleen-h-full",children:[ht("div",{className:Ye("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",w?.rightColumn),style:T?.rightColumn,children:[F&&ht(HB,{children:[le(Se,{leftIcon:le(vt,{className:"cleen-size-5"}),className:Ye("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!A}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:Z=>K(Z.target.value),placeholder:t?.filterPlaceholder}),le("button",{type:"button",className:Ye("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":!A}),onClick:()=>V(Z=>!Z),children:le(Gl,{className:Ye("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",A?"-cleen-rotate-90":"cleen-rotate-90")})})]}),S?le("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:le(de,{size:"sm"})}):ot?.map((Z,ne)=>{let be=lt(Z,v),Ae=H&<(H,v)===be,Wt=String(lt(Z,P)??""),Oe=x?String(lt(Z,x)??""):"";return ht("div",{className:Ye("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-[60px] cleen-cursor-pointer hover:cleen-bg-neutral-50 cleen-transition-colors",w?.item),style:{...T?.item||{},...Ae?{backgroundColor:E}:{}},onClick:ye=>{ye.stopPropagation(),ye.preventDefault(),vn(Z)},children:[ht("div",{className:Ye("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[le("span",{className:Ye("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",w?.itemTitle),style:T?.itemTitle,children:Wt}),le("span",{className:Ye("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",w?.itemSubtitle),style:T?.itemSubtitle,children:Oe})]}),l?.length>0&&le("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:ye=>{ye.stopPropagation(),d?.(Z)},children:le(Jn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(ye=>{let qt=ye?.disabledOptionCallback?.(Z);return{...ye,type:"button",label:le("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:ye?.label}),onClick:()=>{qt||ye?.onClick(Z)},disabled:qt}}),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:le($o,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${ne}-${String(be??ne)}`)})]}),le(Vt,{isHorizontal:!0}),z?ht("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[le(Se,{leftIcon:le(Xo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:ee,onChange:Z=>xe(Z.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),le("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:p?k?le(de,{}):ee?.length>C?le(re,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{ce()},classNames:{container:"cleen-w-max cleen-h-7"}}):le("div",{}):le("div",{})})]}):ht("div",{className:Ye("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer hover:cleen-bg-primary/10",w?.newItemButton),style:T?.newItemButton,onClick:()=>G(!0),children:[le(Xo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),le("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!D&&H&&le("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:()=>U(!0),children:le("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(lt(H,P)??"")})})]})})};import{cn as tt,useDebounce as UB,useOutsideClick as $B,usePositionClose as GB,ZIndex as WB}from"@cleen/ui-core";import{forwardRef as qB,useEffect as BC,useId as KB,useMemo as LC,useRef as Xs,useState as Ys}from"react";import{createPortal as XB}from"react-dom";import{cn as er}from"@cleen/ui-core";import{jsx as an,jsxs as NC}from"react/jsx-runtime";var RC=({options:e,selection:t,classNames:o,styles:n,onChoose:r,displaySubtextInline:l=!0,activeIndex:a=-1,getOptionId:i,onActiveIndexChange:p,...s})=>an("div",{...s,children:an("div",{className:er("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),h=f===a;return NC("li",{id:i?.(f),role:"option","aria-selected":m,className:er("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":h},o?.item),style:n?.item,onMouseEnter:()=>p?.(f),onClick:()=>r?.(d,m),children:[NC("div",{className:er("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",o?.labels,!l&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:n?.labels,children:[d?.leadingBadgeValue&&an(Ne,{color:"gray",label:d?.leadingBadgeValue}),d?.icon,d?.label&&an("span",{className:er("cleen-font-medium cleen-text-foreground cleen-text-base",!l&&"cleen-w-full cleen-truncate"),children:d?.label}),d?.preSublabel&&an("span",{className:er("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!l&&"cleen-w-full cleen-truncate"),children:d?.preSublabel}),d?.sublabel&&an("span",{className:er("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!l&&"cleen-w-full cleen-truncate"),children:d?.sublabel})]}),m&&an("div",{className:o?.checkContainer,style:n?.checkContainer,children:an(bo,{className:er("cleen-text-primary",o?.check),style:n?.check})})]},d.value)})})});import{Fragment as QB,jsx as qe,jsxs as Qs}from"react/jsx-runtime";var YB=qB(function({id:t,name:o,label:n,labelTooltip:r,labels:l,options:a,value:i,displaySelected:p="under",isLoading:s=!1,required:d,internalFiltering:f=!1,closeOnReachingLimit:m=!0,limit:h,getCustomBadgeLabel:y,displaySubtextInline:u=!0,selectedBadgeColor:v="blue",debounceDelay:I=0,characterThreshold:P=2,disabled:x=!1,isNoDataVisibleOnCreateNew:C=!0,zIndex:S=WB.DROPDOWN,className:L,classNames:k,style:E,styles:F,infoLabels:M,menuDetachedFromPortal:N,onInputChange:w,onChange:O,onCreateNewOption:T,createNewOptionLabelString:D,onLookupBlur:U,triggerBlurOnlyWhenOpen:B=!0,menuRef:R,...z},G){let[A,V]=Ys(!1),X=Xs(null),_=Xs(null),H=R??X,{positionStyles:W,isMounted:$}=GB({triggerRef:_,targetRef:H,position:"bottom-left",isOpen:A,offset:4});$B({refs:[H,_],handler:()=>{V(!1),U?.()},enabled:B?A:!0});let[J,ee]=Ys(""),xe=UB(J,I),ge=I?xe:J,Ee=Xs(ge),we=Xs(!1),oe=()=>{we.current=!1,ee("")},se=Array.isArray(i),[ze,Y]=Ys([]),K=se?i:ze,Q=["inside","inside-badge"].includes(p),Ce=(ce,Z=!1)=>{if(Z){let be=K.filter(Ae=>Ae.value!==ce.value);se||Y(be),O?.(be);return}let ne;if(h===1)ne=[ce];else{if(h&&K.length>=h)return;ne=[...K,ce]}se||Y(ne),O?.(ne),m&&h&&ne.length>=h&&(oe(),V(!1))},j=LC(()=>f?a?.filter(ce=>ce?.label?.match(new RegExp(ge,"i"))):a,[a,ge,f]),Te=LC(()=>D&&T&&!s&&J?.length>0&&!j?.some(ce=>ce?.label===J)?typeof D=="function"?D(J):D:null,[D,T,s,J,j]);BC(()=>{if(Ee.current!==ge)if(Ee.current=ge,ge.length<P)V(!1);else{w?.(ge);let ce=!!_.current?.contains(document.activeElement);we.current&&ce&&V(!0)}},[ge,w,P]);let He=KB(),Pe=ce=>`${He}-option-${ce}`,[ot,Fe]=Ys(-1);BC(()=>{Fe(-1)},[ge,A]);let vn=ce=>{let Z=j?.length??0;switch(ce.key){case"ArrowDown":if(!Z)return;if(ce.preventDefault(),!A){V(!0),Fe(0);return}Fe(ne=>(ne+1)%Z);break;case"ArrowUp":if(!Z)return;if(ce.preventDefault(),!A){V(!0),Fe(Z-1);return}Fe(ne=>(ne-1+Z)%Z);break;case"Home":if(!A||!Z)return;ce.preventDefault(),Fe(0);break;case"End":if(!A||!Z)return;ce.preventDefault(),Fe(Z-1);break;case"Enter":{if(!A||ot<0)return;let ne=j?.[ot];if(!ne)return;ce.preventDefault();let be=K?.some(Ae=>Ae.value===ne.value);Ce(ne,be);break}case"Escape":A&&(ce.preventDefault(),V(!1));break;default:break}},Pt=Qs("ul",{id:He,role:"listbox",className:tt("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",k?.menu?.container),style:F?.menu?.container,children:[s?qe(de,{className:tt("cleen-py-3",k?.menu?.loader),style:F?.menu?.loader}):!j||j?.length===0?!!l?.noDataFound&&(C||!Te)&&qe("div",{className:tt("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",k?.menu?.noDataFound),style:F?.menu?.noDataFound,children:l?.noDataFound}):qe(RC,{options:j,selection:K,onChoose:Ce,displaySubtextInline:u,activeIndex:ot,getOptionId:Pe,onActiveIndexChange:Fe,...k?.menu?.list,...F?.menu?.list}),Te&&Qs("div",{className:tt("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",k?.createNewOption?.container),style:F?.createNewOption?.container,children:[qe(Vt,{...k?.createNewOption?.divider,...F?.createNewOption?.divider}),qe("span",{className:tt("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",k?.createNewOption?.value),style:F?.createNewOption?.value,onClick:()=>{let ce=T?.(J);typeof ce=="boolean"&&!ce||(oe(),V(!1))},children:Te})]})]});return qe("div",{className:tt("cleen",L),style:E,children:Qs("div",{className:tt("cleen-flex cleen-flex-col cleen-w-full",k?.container),style:F?.container,children:[n&&qe(ve,{htmlFor:t||o,required:d,tooltip:r,className:tt("cleen-mb-1.5",k?.label?.className),classNames:k?.label?.classNames,...F?.label,children:n}),qe("div",{ref:_,className:tt("cleen-relative cleen-flex cleen-items-center",k?.input?.container),style:F?.input?.container,children:qe(Se,{id:t||o,type:"search",autoFocus:!1,autoComplete:"off",className:tt("cleen-w-full",k?.input?.component?.className),classNames:{...k?.input?.component?.classNames,inputContainer:tt({"cleen-flex-wrap":Q},k?.input?.component?.classNames?.inputContainer),input:tt({"cleen-pl-2":Q},k?.input?.component?.classNames?.input),leftIconContainer:tt({"cleen-pr-0":Q},k?.input?.component?.classNames?.leftIconContainer)},...F?.input?.component,leftIcon:Qs(QB,{children:[qe(vt,{}),Q&&(K||[])?.length>0&&qe("div",{className:tt("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{V(!A)},children:p==="inside-badge"?K?.map(ce=>qe(Ne,{label:ce?.label,color:"blue",variant:"semiRounded"},ce.value)):qe("span",{className:tt("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:K?.map(ce=>ce?.label).join(", ")})})," "]}),onFocus:()=>{ge.length>=P&&J.length>=P&&V(!0)},value:J,onChange:ce=>{we.current=!0,ee(ce.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":A,"aria-controls":A?He:void 0,"aria-activedescendant":A&&ot>=0?Pe(ot):void 0,onKeyDown:vn,ref:G,required:d,disabled:x,...z})}),A&&(N?qe("div",{ref:H,children:Pt}):XB(qe("div",{className:"cleen",children:qe("div",{ref:H,className:tt("cleen-absolute",{"cleen-opacity-0":!$}),style:{zIndex:S,top:`${W.top}px`,left:`${W.left}px`,minWidth:_.current?.offsetWidth?`${_.current.offsetWidth}px`:void 0},children:Pt})}),document.body)),p==="under"&&K?.length>0&&qe("span",{className:tt("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",k?.pillbadge?.container),style:F?.pillbadge?.container,children:K?.map(ce=>qe(Ne,{label:y?y(ce):ce?.label,color:v,removeable:!x,onRemoveClicked:()=>{if(x)return;let Z=K?.filter(ne=>ne?.value!==ce?.value);se||Y(Z),O?.(Z)},...k?.pillbadge?.component,...F?.pillbadge?.component},ce.value))}),(M?.errorMessage||M?.infoMessage||M?.subtitle)&&qe(ue,{...M})]})})});import{cn as ke}from"@cleen/ui-core";import{forwardRef as ZB}from"react";import JB from"react-markdown";import jB from"remark-gfm";import{jsx as Me}from"react/jsx-runtime";var eL=ZB(function({components:t,children:o,className:n,classNames:r,style:l,styles:a,...i},p){let s={h1:({children:d})=>Me("h1",{className:ke("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:d}),h2:({children:d})=>Me("h2",{className:ke("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:d}),h3:({children:d})=>Me("h3",{className:ke("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:d}),h4:({children:d})=>Me("h4",{className:ke("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:d}),h5:({children:d})=>Me("h5",{className:ke("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),h6:({children:d})=>Me("h6",{className:ke("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),p:({children:d})=>Me("p",{className:ke("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:d}),a:({href:d,children:f})=>Me("a",{href:d,className:ke("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:f}),ul:({children:d})=>Me("ul",{className:ke("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),ol:({children:d})=>Me("ol",{className:ke("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),li:({children:d})=>Me("li",{className:ke("cleen-mb-1"),children:d}),blockquote:({children:d})=>Me("blockquote",{className:ke("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?Me("code",{className:ke("cleen-font-mono cleen-text-sm"),...m,children:f}):Me("code",{className:ke("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...m,children:f}),pre:({children:d})=>Me("pre",{className:ke("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:()=>Me("hr",{className:ke("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:d,alt:f})=>Me("img",{src:d,alt:f,className:ke("cleen-max-w-full cleen-rounded")}),strong:({children:d})=>Me("strong",{className:ke("cleen-font-semibold"),children:d}),em:({children:d})=>Me("em",{className:ke("cleen-italic"),children:d}),table:({children:d})=>Me("div",{className:ke("cleen-overflow-x-auto cleen-mb-4"),children:Me("table",{className:ke("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:d})}),thead:({children:d})=>Me("thead",{className:ke("cleen-border-b cleen-border-border"),children:d}),th:({children:d})=>Me("th",{className:ke("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:d}),td:({children:d})=>Me("td",{className:ke("cleen-p-2 cleen-border-b cleen-border-border"),children:d}),input:({type:d,checked:f,disabled:m})=>d==="checkbox"?Me("input",{type:"checkbox",checked:f,disabled:m,readOnly:!0,className:ke("cleen-mr-2 cleen-align-middle")}):Me("input",{type:d})};return Me("div",{ref:p,className:ke("cleen",n,r?.container),style:{...l,...a?.container},...i,children:Me(JB,{...i,remarkPlugins:[jB],components:{...s,...t},children:o})})});import{Fragment as tL,jsxs as DC}from"react/jsx-runtime";var FC={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}},Zs={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},AC=3,OC=180,_C=15e3,al="general",Pc={[al]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},VC={primary:"cleen-bg-primary-50 cleen-text-primary",success:"cleen-bg-success-bg cleen-text-success",warning:"cleen-bg-warning-bg cleen-text-warning",error:"cleen-bg-error-bg cleen-text-error",info:"cleen-bg-info-bg cleen-text-info",neutral:"cleen-bg-muted cleen-text-muted-foreground"},zC={"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"},Sc={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=>DC(tL,{children:[DC("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`},gt="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var zg={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},HC=({exitDuration:e=OC}={})=>{let t=zg,o=new Set,n=new Map,r=new Map,l=0,a=M=>{t={...t,...M},o.forEach(N=>N())},i=M=>{let N=n.get(M);!N||N.handle||t.paused||(N.startedAt=Date.now(),N.handle=setTimeout(()=>v(M),N.remaining))},p=M=>{let N=n.get(M);N?.handle&&(clearTimeout(N.handle),N.remaining=Math.max(0,N.remaining-(Date.now()-(N.startedAt??Date.now()))),N.handle=null,N.startedAt=null)},s=M=>{let N=n.get(M);N?.handle&&clearTimeout(N.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:++l}),i(M.id))},f=M=>{let N=r.get(M);N&&(r.delete(M),N.ids.delete(M),N.ids.size||clearTimeout(N.handle))},m=M=>{M.forEach(O=>r.delete(O));let N=t.toasts.filter(O=>!M.includes(O.id)),w=N.some(O=>!O.leaving);a({toasts:N,...!w&&{ui:zg.ui}})},h=M=>{f(M.id);let N=t.toasts.some(w=>w.id===M.id);return d(M),a({toasts:N?t.toasts.map(w=>w.id===M.id?M:w):[...t.toasts,M]}),M.id},y=(M,N)=>{let w=t.toasts.find(T=>T.id===M);if(!w||w.leaving)return;let O={...w,...N};("priority"in N||"duration"in N)&&d(O),a({toasts:t.toasts.map(T=>T.id===M?O:T)})},u=M=>{let N=t.toasts.filter(T=>M.includes(T.id)&&!T.leaving);if(!N.length)return;N.forEach(T=>s(T.id));let w=N.filter(T=>T.animationType==="none"||e<=0).map(T=>T.id),O=N.filter(T=>!w.includes(T.id)).map(T=>T.id);if(O.length){let T=t.toasts.filter(B=>!B.leaving).length;a({toasts:t.toasts.map(B=>O.includes(B.id)?{...B,leaving:!0,leavingFromCount:T}:B)});let D=new Set(O),U=setTimeout(()=>m([...D]),e);O.forEach(B=>r.set(B,{handle:U,ids:D}))}w.length&&m(w)},v=M=>u([M]);return{add:h,update:y,dismiss:v,dismissMany:u,clear:()=>u(t.toasts.map(M=>M.id)),pauseAll:()=>{t.paused||(n.forEach((M,N)=>p(N)),a({paused:!0}))},resumeAll:()=>{t.paused&&(a({paused:!1}),n.forEach((M,N)=>i(N)))},setExpanded:M=>a({ui:{...t.ui,expanded:M}}),toggleGroup:M=>{let{expandedGroups:N}=t.ui;a({ui:{...t.ui,expandedGroups:N.includes(M)?N.filter(w=>w!==M):[...N,M]}})},resetUi:()=>a({ui:zg.ui}),getTimer:M=>{let N=n.get(M);if(!N)return;let w=N.startedAt?Date.now()-N.startedAt:0;return{duration:N.duration,remaining:Math.max(0,N.remaining-w),revision:N.revision}},subscribe:M=>(o.add(M),()=>{o.delete(M)}),getSnapshot:()=>t}},Ie=HC();var oL=0,UC=({id:e,variant:t="default",priority:o,actions:n,duration:r,closeButton:l=!0,hideProgressBar:a,animationType:i="slide",...p})=>{let s=FC[t];return Ie.add({...p,id:e??`cleen-notification-${++oL}`,variant:t,actions:n,priority:o??(n?.length?"important":"normal"),duration:r??s.duration,closeButton:l,progressBar:a===void 0?s.progressBar:!a,animationType:i,createdAt:Date.now()})},nL=(e,{hideProgressBar:t,...o})=>Ie.update(e,{...o,...t!==void 0&&{progressBar:!t}}),tr={show:UC,update:nL,dismiss:Ie.dismiss,dismissMany:Ie.dismissMany,clear:Ie.clear};import{useSyncExternalStore as rL}from"react";var Js=()=>rL(Ie.subscribe,Ie.getSnapshot,Ie.getSnapshot);import{useMemo as lL}from"react";var aL=()=>{let{toasts:e,paused:t}=Js();return{toasts:lL(()=>e.filter(n=>!n.leaving),[e]),paused:t,show:tr.show,update:tr.update,dismiss:tr.dismiss,dismissMany:tr.dismissMany,clear:tr.clear}};var $C={critical:0,important:1,normal:2},Hg=e=>e.filter(t=>!t.leaving),js=e=>[...e].reverse(),WC=e=>[...e].sort((t,o)=>$C[t.priority]-$C[o.priority]),cl=e=>!!e.actions?.length&&e.priority!=="normal",qC=e=>e.category??al,or=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),Ug=e=>e.map(or),GC=(e,t)=>(e.leavingFromCount??0)>t,il=(e,t,o)=>{let n=Hg(e);if(n.length>t)return o(n);let r=e.filter(l=>l.leaving&&GC(l,t));return!n.length&&r.length>t?o(r).map(l=>({...l,exiting:!0})):Ug(e.filter(l=>!l.leaving||!GC(l,t)))};var $g=(e,t,o)=>il(e,o,n=>{let r=WC(js(n)),l=r.filter(u=>u.priority==="critical"),a=r.filter(u=>u.priority!=="critical"),i=new Map;a.forEach(u=>{let v=qC(u);i.set(v,[...i.get(v)??[],u])});let p=u=>Number(i.get(u).some(cl)),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(l.length,1)),m=d.slice(0,f),h=[...l.slice(1),...d.slice(f).flatMap(u=>i.get(u))],y=l.slice(0,1).map(or);return m.forEach(u=>{let v=i.get(u);y.push(v.length===1?or(v[0]):{type:"group",key:`group-${u}`,category:u,toasts:v,expanded:t.expandedGroups.includes(u)})}),y.push({type:"footer",key:"footer",overflow:h,toasts:n}),y});var Gg=(e,t,o=1/0)=>il(e,o,n=>[...Ug(n),{type:"footer",key:"footer",overflow:[],toasts:n}]);var Wg=(e,t,o)=>il(e,o,n=>{let r=js(n);if(t.expanded)return[{type:"list",key:"list",toasts:r}];let l=r.filter(d=>d.priority==="critical"),a=r.filter(d=>d.priority!=="critical"),[i,...p]=a,s=l.map(or);return i&&p.length?s.push({type:"deck",key:"deck",top:i,hidden:p}):i&&s.push(or(i)),s});var KC={list:Gg,stack:Wg,group:$g};import{createContext as cL,useContext as iL}from"react";var qg=cL({categories:Pc,labels:Sc,hiddenElements:[],now:Date.now(),paused:!1}),De=()=>iL(qg);import{cn as sL,getTimeAgoLabel as pL}from"@cleen/ui-core";var te=(e,t,o,n)=>{let r=n?.classNames,l=n?.styles,a=e.styles?.[t]||l?.[t]?{...e.styles?.[t],...l?.[t]}:void 0;return{className:sL(o,e.classNames?.[t],r?.[t]),style:a,"data-slot":t}},oo=({className:e,style:t,...o})=>({classNames:{container:e},styles:{container:t},...o}),sl=(e,t)=>e.categories[t]??{...e.categories[al],label:t,pluralLabel:t},ep=(e,t,o)=>{let n=Math.floor(Math.max(0,t-e));return typeof o.timeAgo=="function"?o.timeAgo(n):pL(n,o?.timeAgoStamps)},XC=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 dL}from"@cleen/ui-core";import{jsx as YC}from"react/jsx-runtime";var tp=({toast:e})=>{let t=De();if(t.hiddenElements.includes("badges"))return null;let o=e.priority==="critical";if(!o&&!cl(e))return null;let n=te(t,"badge",void 0,e);return YC("span",{...te(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:YC(Ne,{color:o?"red":"primary",variant:"full",label:o?t.labels.critical:t.labels.action,classNames:{container:dL("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 QC}from"@cleen/ui-core";import{Fragment as mL,jsx as cn}from"react/jsx-runtime";var ZC=({icon:e,tone:t="neutral",size:o="md",className:n,...r})=>{let l=o==="sm"?14:18;return cn("span",{className:QC("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",VC[t],n),"aria-hidden":"true",...r,children:cn($e,{name:e,width:l,height:l})})},Kg=({category:e,...t})=>{let o=De(),n=sl(o,e);return cn(ZC,{icon:n.icon,tone:n.tone,...t})},op=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return cn(mL,{children:e.icon});if(e.category)return cn(Kg,{category:e.category,size:t});let o=Zs[e.variant];return o?cn(ZC,{icon:o.name,tone:o.tone,size:t}):null},nr=({icon:e,label:t,className:o,...n})=>cn("button",{type:"button","aria-label":t,title:t,className:QC("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:cn($e,{name:e,width:14,height:14,strokeWidth:2})});import{cn as Xg}from"@cleen/ui-core";import{Fragment as uL,jsx as Mc,jsxs as Yg}from"react/jsx-runtime";var JC=({toast:e,children:t})=>{let o=De(),n=e.title!==void 0&&e.title!==null,r=e.icon===void 0&&(!!e.category||!!Zs[e.variant]),l=Mc(op,{toast:e}),a=Mc(tp,{toast:e});return Yg(uL,{children:[(e.icon!==void 0||r||e.variant!=="default")&&Mc("span",{...te(o,"icon",Xg("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!r}),e),children:l}),Yg("div",{...te(o,"body",Xg("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[n?Yg("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[Mc("span",{...te(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,Mc("span",{...te(o,"message",Xg("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":n,"cleen-text-foreground":!n}),e),children:e.message}),t]})]})};import{useState as fL}from"react";import{jsx as hL}from"react/jsx-runtime";var jC=({toast:e})=>{let t=De(),[o]=fL(()=>Ie.getTimer(e.id));if(!o)return null;let n=te(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 hL("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 gL}from"@cleen/ui-core";import{jsx as rp,jsxs as np}from"react/jsx-runtime";var lp=({toast:e,inDeck:t=!1})=>{let o=De(),{labels:n,hiddenElements:r}=o,l=e.priority==="critical",a=!!e.actions?.length,i=()=>Ie.dismiss(e.id),p=f=>{f.key==="Escape"&&(f.stopPropagation(),i())},s=!!e.category&&!r.includes("meta"),d=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!r.includes("progressBar");return np("div",{role:l?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||a?void 0:0,onKeyDown:p,...te(o,"toast",gL("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)]":l,"cleen-z-10":t},!(t&&e.leaving)&&XC(e),e.className),e),children:[np(JC,{toast:e,children:[s&&np("span",{...te(o,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[sl(o,e.category).label," \xB7"," ",ep(e.createdAt,o.now,n)]}),a&&np("div",{...te(o,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((f,m)=>{let h=te(o,"action",gt,e);return rp(re,{variant:f.variant??(m?"secondary":"primary"),label:f.label,onClick:()=>{f.onClick?.(e),i()},...oo(h)},`${f.label}-${m}`)}),rp(re,{variant:"secondary",label:n.dismiss,onClick:i,...oo(te(o,"dismissButton",gt,e))})]})]}),e.closeButton&&rp(nr,{icon:"X",label:n.close,onClick:i,...te(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),d&&rp(jC,{toast:e},Ie.getTimer(e.id)?.revision)]})};import{Fragment as bL,jsx as pl,jsxs as ap}from"react/jsx-runtime";var eP="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",tP=({top:e,hidden:t})=>{let o=De(),{labels:n}=o,r=[e.id,...t.map(l=>l.id)];return ap(bL,{children:[ap("div",{...te(o,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[pl(lp,{toast:e,inDeck:!0}),pl("span",{"aria-hidden":"true",...te(o,"deckPeek",`${eP} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&pl("span",{"aria-hidden":"true",...te(o,"deckPeek",`${eP} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!o.hiddenElements.includes("deckMoreBar")&&ap("div",{...te(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:[pl("span",{...te(o,"deckMoreLabel"),children:n.moreBehind(t.length)}),ap("span",{className:"cleen-flex cleen-gap-1",children:[pl(re,{variant:"secondary",label:n.showAll,"aria-expanded":!1,onClick:()=>Ie.setExpanded(!0),...oo(te(o,"deckShowAllButton",gt))}),pl(re,{variant:"borderless",label:n.dismissAll,onClick:()=>Ie.dismissMany(r),...oo(te(o,"deckDismissAllButton",gt))})]})]})]})};import{cn as yL}from"@cleen/ui-core";import{Fragment as vL,jsx as cp,jsxs as IL}from"react/jsx-runtime";var oP=({count:e})=>{let t=De(),{labels:o,onViewAll:n}=t;if(t.hiddenElements.includes("overflowPill"))return null;let r=IL(vL,{children:[o.overflow(e),cp("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:cp($e,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),l=te(t,"overflowPill",yL("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?cp("button",{type:"button",onClick:()=>n(),...l,children:r}):cp("span",{...l,children:r})};import{jsx as nP,jsxs as xL}from"react/jsx-runtime";var rP=({overflow:e,toasts:t})=>{let o=De(),n=!o.hiddenElements.includes("dismissAllButton");return!n&&!e.length?null:xL("div",{...te(o,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[n&&nP("button",{type:"button",onClick:()=>Ie.dismissMany(t.map(r=>r.id)),...te(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&&nP(oP,{count:e.length})]})};import{jsx as rr,jsxs as ip}from"react/jsx-runtime";var sp=({toast:e,onDismiss:t})=>{let o=De(),n=e.actions?.[0],r=e.title!==void 0&&e.title!==null;return ip("div",{...te(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:[rr("span",{...te(o,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:rr(op,{toast:e,size:"sm"})}),ip("div",{...te(o,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[ip("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[rr("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:r?e.title:e.message}),rr(tp,{toast:e})]}),r&&rr("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),ip("span",{...te(o,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[n&&rr(nr,{icon:"ArrowRight",label:n.label,onClick:()=>{n.onClick?.(e),t(e.id)}}),rr(nr,{icon:"X",label:o.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as CL,useLayoutEffect as PL,useRef as SL}from"react";var ML='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',pp=(e,t,o)=>{let n=SL(!1);return CL(()=>{e.current?.focus({preventScroll:!0})},[e]),PL(()=>{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(ML)],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 wL}from"react";import{Fragment as EL,jsx as it,jsxs as To}from"react/jsx-runtime";var Qg=3,kL=({toasts:e,onCollapse:t})=>{let o=wL(null),n=pp(o,e.length,t);return it("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(r=>it(sp,{toast:r,onDismiss:Ie.dismiss},r.id))})},lP=({category:e,toasts:t,expanded:o})=>{let n=De(),{labels:r,onViewAll:l,hiddenElements:a}=n,i=sl(n,e),p=t.map(h=>h.id),s=t.filter(cl).length,d=Math.min(...t.map(h=>h.createdAt)),f=()=>Ie.dismissMany(p),m=()=>Ie.toggleGroup(e);return To("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:h=>{h.key==="Escape"&&!o&&(h.stopPropagation(),f())},...te(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:[To("div",{...te(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:[it(Kg,{category:e,...te(n,"groupIcon")}),To("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[To("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[it("span",{...te(n,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:r.groupTitle(t.length,i)}),it("span",{...te(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")&&To("span",{...te(n,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[s>0&&To(EL,{children:[r.needAction(s)," \xB7 "]}),ep(d,n.now,r)]})]})]}),o?it(kL,{toasts:t,onCollapse:m}):To("div",{...te(n,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,Qg).map(h=>To("div",{...te(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:[it("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),it("span",{className:"cleen-min-w-0 cleen-truncate",children:h.title??h.message})]},h.id)),t.length>Qg&&!a.includes("groupMore")&&it("span",{...te(n,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:r.more(t.length-Qg)})]}),To("div",{...te(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:[l&&it(re,{variant:"primary",label:r.review(i),rightIcon:it($e,{name:"ArrowRight",width:14,height:14}),onClick:()=>l(e),...oo(te(n,"groupReviewButton",gt))}),it(re,{variant:"secondary",label:o?r.collapse:r.expand,"aria-expanded":o,onClick:m,...oo(te(n,"groupToggleButton",gt))}),it("span",{className:"cleen-flex-1"}),it(re,{variant:"borderless",label:r.dismiss,onClick:f,...oo(te(n,"groupDismissButton",gt))})]}),it(nr,{icon:"X",label:r.dismissGroup,onClick:f,...te(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as TL}from"react";import{jsx as sn,jsxs as dp}from"react/jsx-runtime";var aP=({toasts:e})=>{let t=De(),{labels:o,onViewAll:n}=t,r=TL(null),l=()=>Ie.setExpanded(!1),a=pp(r,e.length,l);return dp("div",{ref:r,tabIndex:-1,role:"group","aria-label":o.region,...a,...te(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:[dp("div",{...te(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:[dp("span",{children:[o.listTitle(e.length)," "]}),sn("span",{className:"cleen-flex-1"}),sn(re,{variant:"borderless",label:o.collapse,"aria-expanded":!0,leftIcon:sn($e,{name:"ChevronUp",width:14,height:14}),onClick:l,classNames:{container:gt}})]}),sn("div",{...te(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>sn(sp,{toast:i,onDismiss:Ie.dismiss},i.id))}),dp("div",{...te(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&&sn(re,{variant:"secondary",label:o.openNotifications,onClick:()=>n(),classNames:{container:gt}}),sn("span",{className:"cleen-flex-1"}),sn(re,{variant:"secondary",label:o.dismissAll,onClick:()=>Ie.dismissMany(e.map(i=>i.id)),classNames:{container:gt}})]})]})};import{useEffect as NL,useState as RL}from"react";var cP=e=>{let[t,o]=RL(()=>Date.now());return NL(()=>{if(!e)return;o(Date.now());let n=setInterval(()=>o(Date.now()),_C);return()=>clearInterval(n)},[e]),t};import{cn as Jg}from"@cleen/ui-core";import{forwardRef as BL,useCallback as LL,useEffect as Zg,useMemo as iP,useRef as sP}from"react";import{jsx as No}from"react/jsx-runtime";var DL=e=>{switch(e.type){case"toast":return No(lp,{toast:e.toast},e.key);case"deck":return No(tP,{top:e.top,hidden:e.hidden},e.key);case"list":return No(aP,{toasts:e.toasts},e.key);case"group":return No(lP,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return No(rP,{overflow:e.overflow,toasts:e.toasts},e.key)}},FL=(e,t)=>No("div",{"aria-hidden":"true",className:Jg("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:DL(e)},e.key),AL=BL(function({layout:t="list",maxVisible:o=AC,position:n="bottom-right",categories:r,onViewAll:l,labels:a,classNames:i,styles:p,hiddenElements:s,className:d,style:f,...m},h){let y=Js(),u=Hg(y.toasts).length,v=cP(y.toasts.length>0),I=sP(null),P=sP(!1),x=iP(()=>KC[t](y.toasts,y.ui,o),[t,y.toasts,y.ui,o]),C=iP(()=>({categories:{...Pc,...r},labels:{...Sc,...a},classNames:i,styles:p,hiddenElements:s??[],onViewAll:l,now:v,paused:y.paused}),[r,a,i,p,s,l,v,y.paused]);Zg(()=>{let{expanded:E,expandedGroups:F}=y.ui,M=y.toasts.some(N=>N.leaving);u<=o&&!M&&(E||F.length)&&Ie.resetUi()},[u,o,y.toasts,y.ui]);let S=LL(()=>{let E=document.activeElement,F=!!(E&&I.current?.contains(E))&&!!E?.matches(":focus-visible");P.current||F?Ie.pauseAll():Ie.resumeAll()},[]);Zg(()=>{u||(P.current=!1),S()},[u,S]),Zg(()=>{let E=F=>{P.current&&!I.current?.contains(F.target)&&(P.current=!1,S())};return document.addEventListener("pointermove",E,{passive:!0}),()=>document.removeEventListener("pointermove",E)},[S]);let L=E=>{P.current=E,S()},k=()=>requestAnimationFrame(S);return No("div",{className:Jg("cleen",d),style:f,ref:h,children:No(qg.Provider,{value:C,children:No("div",{role:"region","aria-live":"polite","aria-label":C.labels.region,ref:I,onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),onFocus:k,onBlur:k,...te(C,"region",Jg("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",zC[n])),...m,children:x.map(E=>FL(E,n.endsWith("left")?"cleen-items-start":n.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as pP}from"@cleen/ui-core";import{forwardRef as OL,useState as _L}from"react";import{jsx as jg,jsxs as VL}from"react/jsx-runtime";var eb=OL(({totalPages:e,labels:t,onGoToPage:o,classNames:n,styles:r,...l},a)=>{let[i,p]=_L(""),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 jg("div",{className:"cleen",...l,children:VL("div",{className:pP("cleen-flex cleen-items-center cleen-gap-2",n?.container),style:r?.container,children:[jg("span",{className:pP("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",n?.label),style:r?.label,children:t?.goToPage}),jg(Se,{ref:a,type:"number",min:1,max:e,value:i,onChange:f=>p(f.target.value),onKeyDown:d,...n?.input,...r?.input})]})})});import{cn as mp,useOutsideClick as zL,usePositionClose as HL}from"@cleen/ui-core";import{forwardRef as UL,useRef as dP,useState as mP}from"react";import{createPortal as $L}from"react-dom";import{jsx as dl,jsxs as WL}from"react/jsx-runtime";var GL=[10,20,50,100],tb=UL(({pageSize:e,pageSizes:t=GL,labels:o,onPageSizeChange:n,classNames:r,styles:l,...a},i)=>{let[p,s]=mP(e??t?.[0]??void 0),[d,f]=mP(!1),m=dP(null),h=dP(null),{positionStyles:y,isMounted:u}=HL({triggerRef:m,targetRef:h,isOpen:d,position:"top-left"});return zL({refs:[m,h],handler:()=>f(!1),enabled:d}),dl("div",{className:"cleen",ref:i,...a,children:WL("div",{className:mp("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",r?.container),style:l?.container,children:[dl(_e,{label:o?.itemsPerPage?.(p),classNames:{labelContainer:"cleen-min-w-max"},children:dl("div",{className:mp("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",r?.trigger),style:l?.trigger,onClick:()=>f(v=>!v),ref:m,children:p})}),d&&$L(dl("div",{className:"cleen",children:dl("div",{ref:h,className:mp("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},r?.menu),style:{top:`${y.top}px`,left:`${y.left}px`,...l?.menu},children:t?.filter(v=>v!==p)?.map(v=>dl("div",{className:mp("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",r?.menuItem),style:l?.menuItem,onClick:()=>{s(v),n?.(v),f(!1)},children:v},v))})}),document.body)]})})});var uP={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as pn}from"@cleen/ui-core";import{forwardRef as qL,useCallback as up,useMemo as KL,useRef as XL}from"react";import{jsx as bt,jsxs as QL}from"react/jsx-runtime";var YL=qL(({currentPage:e,totalPages:t,pageSize:o,pageSizes:n,hasGotoPage:r=!0,hasPageSizeSelector:l=!0,onPageChange:a,onPageSizeChange:i,labels:p=uP,classNames:s,styles:d,...f},m)=>{let h=XL(null),y=up(()=>{e<t&&a?.(e+1)},[e,t,a]),u=up(()=>{e>1&&a?.(e-1)},[e,a]),v=up(x=>bt("span",{className:pn("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",x===e&&"cleen-bg-muted hover:cleen-bg-neutral-200",s?.pageButton,x===e?s?.activePageButton:""),style:{...d?.pageButton,...x===e?d?.activePageButton:{}},onClick:()=>a?.(x),children:x},`page-${x}`),[e,a,s,d]),I=up(x=>bt("span",{className:pn("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:()=>h.current?.focus(),children:"..."},x),[s,d]),P=KL(()=>{if(isNaN(e)||isNaN(t))return[];let x=[];if(x.push(bt(_e,{label:p.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:bt("span",{className:pn("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:bt(yo,{})})},"prev")),t<=7)for(let C=1;C<=t;C++)x.push(v(C));else if(x.push(v(1)),e<=3){for(let C=2;C<5;C++)x.push(v(C));x.push(I("dots-end")),x.push(v(t))}else if(e>=t-2){x.push(I("dots-start"));for(let C=t-3;C<=t;C++)x.push(v(C))}else x.push(I("dots-start")),x.push(v(e-1)),x.push(v(e)),x.push(v(e+1)),x.push(I("dots-end")),x.push(v(t));return x.push(bt(_e,{label:p.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:bt("span",{className:pn("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:bt(St,{})})},"next")),x},[e,t,p,s,d,I,v,y,u]);return bt("div",{className:"cleen",ref:m,...f,children:QL("div",{className:pn("cleen-flex cleen-justify-between cleen-gap-4",s?.container),style:d?.container,children:[l?bt(tb,{pageSize:o,labels:p,onPageSizeChange:i,pageSizes:n,className:pn("cleen-flex-1",s?.pageSizeSelector?.className),classNames:s?.pageSizeSelector?.classNames,...d?.pageSizeSelector}):bt("div",{className:"cleen-flex-1"}),bt("div",{className:pn("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",s?.buttonsContainer),style:d?.buttonsContainer,children:P}),r?bt(eb,{ref:h,totalPages:t,onGoToPage:a,labels:p,className:pn("cleen-flex cleen-flex-1 cleen-justify-end",s?.goToPage?.className),classNames:s?.goToPage?.classNames,...d?.goToPage}):bt("div",{className:"cleen-flex-1"})]})})});import{cn as fP}from"@cleen/ui-core";import{forwardRef as ZL,useEffect as JL,useState as jL}from"react";import{jsx as fp,jsxs as hP}from"react/jsx-runtime";var e6={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},gP=ZL(({isFullscreen:e,percentage:t,duration:o=1e3,radius:n,stroke:r=16,size:l="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:h,style:y,styles:u,...v},I)=>{let P=n??e6[l]/2,x=P-r/2,C=x*2*Math.PI,[S,L]=jL(0);JL(()=>{let E=null;if(o===0){L(t);return}let F=M=>{E||(E=M);let N=M-E,w=Math.min(N/o*t,t);L(w),w<t&&requestAnimationFrame(F)};requestAnimationFrame(F)},[t,o]);let k=C-S/100*C;return fp("div",{ref:I,className:fP("cleen",m),style:y,...v,children:hP("div",{className:fP("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},h?.container),style:u?.container,children:[hP("svg",{height:P*2,width:P*2,style:{transform:"rotate(-90deg)"},children:[fp("circle",{stroke:i,fill:"transparent",strokeWidth:r,r:x,cx:P,cy:P}),fp("circle",{stroke:a,fill:"transparent",strokeWidth:r,strokeLinecap:"round",strokeDasharray:C,strokeDashoffset:k,r:x,cx:P,cy:P})]}),!s&&fp("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)}%`})]})})});gP.displayName="ProgressCircle";import{cn as Lt}from"@cleen/ui-core";import{useEffect as t6,useState as o6}from"react";import{Fragment as bP,jsx as Ro,jsxs as wc}from"react/jsx-runtime";var n6=({horizontal:e,boxes:t,selectedBox:o,onBoxClick:n,leftElement:r,rightElement:l,leftIcon:a,leftIconName:i,rightIconName:p,className:s,classNames:d,style:f,styles:m,...h})=>{let[y,u]=o6(o);t6(()=>{u(o)},[o]);let v=(C,S)=>wc(bP,{children:[r&&r(C),a||(i?Ro($e,{name:i,className:Lt("cleen-w-5 cleen-h-5",S?"cleen-text-primary":"cleen-text-neutral-700",d?.leftIcon),style:m?.leftIcon}):null)]}),I=(C,S)=>Ro("span",{className:Lt("cleen-font-semibold",S?"cleen-text-primary":"cleen-text-neutral-700",d?.label),style:m?.label,children:C?.label}),P=(C,S)=>Ro("span",{className:Lt("cleen-font-semibold cleen-text-16px",S?"cleen-text-primary":"cleen-text-neutral-700",d?.subLabel),style:m?.subLabel,children:C?.subLabel}),x=(C,S)=>wc(bP,{children:[l&&l(C),p&&Ro($e,{name:p,className:Lt("cleen-w-5 cleen-h-5",S?"cleen-text-primary":"cleen-text-neutral-700",d?.rightIcon),style:m?.rightIcon})]});return Ro("div",{className:Lt("cleen",s),style:f,...h,children:e?Ro("div",{className:Lt("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(C=>{let S=C?.id===y?.id;return wc("div",{className:Lt("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(C),n?.(C)},children:[v(C,S),C?.label&&I(C,S),C?.subLabel&&P(C,S),x(C,S)]},C?.id)})}):Ro("div",{className:Lt("cleen-grid cleen-gap-3 cleen-w-full",d?.container),style:{gridTemplateColumns:"1fr auto 1fr",...m?.container},children:t?.map(C=>{let S=C?.id===y?.id;return wc("div",{className:Lt("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(C),n?.(C)},children:[Ro("div",{className:Lt("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",d?.leftIconContainer),style:m?.leftIconContainer,children:v(C,S)}),Ro("div",{className:Lt("cleen-flex cleen-items-center cleen-justify-center",d?.labelContainer),style:m?.labelContainer,children:C?.label&&I(C,S)}),wc("div",{className:Lt("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",d?.rightIconContainer),style:m?.rightIconContainer,children:[C?.subLabel&&P(C,S),x(C,S)]})]},C?.id)})})})};import{cn as $t}from"@cleen/ui-core";import{forwardRef as a6,useEffect as c6,useId as i6,useRef as s6,useState as p6}from"react";import{cn as yP}from"@cleen/ui-core";import{forwardRef as r6}from"react";import{jsx as vP,jsxs as l6}from"react/jsx-runtime";var hp=r6(function({checked:t,className:o,classNames:n,style:r,styles:l,...a},i){return l6("div",{className:yP("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:r,children:[vP("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...a}),vP("span",{className:yP("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",n?.innerCircle),style:l?.innerCircle})]})});import{jsx as no,jsxs as gp}from"react/jsx-runtime";var d6=a6(function({required:t,radios:o,label:n,labelTooltip:r,className:l,classNames:a,style:i,styles:p,name:s,direction:d="vertical",radioPosition:f="left",defaultActiveId:m,value:h,infoLabels:y,onChange:u},v){let I=h!==void 0,[P,x]=p6(m??o[0]?.id),C=i6(),S=`${C}-label`,L=s??`cleen-radio-group-${C}`;c6(()=>{!I&&m!==void 0&&x(m)},[m,I]);let k=I?h:P,E=B=>k!=null&&k==B,F=B=>{I||x(B),u?.(B)},M=s6([]),N=o?.findIndex(B=>!B.disabled&&E(B.id)),w=o?.findIndex(B=>!B.disabled),O=N>=0?N:Math.max(w,0),T=B=>{let R=o[B];!R||R.disabled||(F(R.id),M.current[B]?.focus())},D=(B,R)=>{let z=o.length;for(let G=1;G<z;G++){let A=(B+R*G+z)%z;if(!o[A]?.disabled)return A}return B},U=(B,R)=>{if(o.length)switch(B.key){case"ArrowDown":case"ArrowRight":B.preventDefault(),T(D(R,1));break;case"ArrowUp":case"ArrowLeft":B.preventDefault(),T(D(R,-1));break;default:break}};return no("div",{className:$t("cleen",l),style:i,ref:v,children:gp("div",{className:a?.container,style:p?.container,children:[n&&no(ve,{id:S,htmlFor:C,required:t,tooltip:r,className:$t("cleen-mb-1.5",a?.label?.className),classNames:a?.label?.classNames,...p?.label,children:n}),no("div",{id:C,role:"radiogroup","aria-labelledby":n?S:void 0,className:$t("cleen-flex cleen-flex-wrap cleen-gap-2.5",d==="vertical"&&"cleen-flex-col cleen-w-fit",a?.radios),style:p?.radios,children:o?.map((B,R)=>{let z=`${C}-${R}`,G=B.radioPosition??f,A=!!B.disabled;return gp("div",{className:$t("cleen-flex cleen-gap-2 cleen-p-5 cleen-border cleen-border-border cleen-rounded-xl cleen-transition-all cleen-duration-200",A?"cleen-cursor-not-allowed":"hover:cleen-bg-muted hover:cleen-border-neutral-300 cleen-cursor-pointer",d==="horizontal"&&"cleen-flex-1",E(B?.id)&&"cleen-border-primary hover:cleen-border-primary",a?.radioContainer,B?.className,E(B?.id)&&a?.radioActive),style:{...p?.radioContainer,...B?.style},onClick:V=>{!A&&V.target instanceof Element&&!V.target.closest("label, input, a, button")&&M.current[R]?.click()},children:[B.leftIcon,G==="left"&&no(hp,{ref:V=>{M.current[R]=V},id:z,name:L,value:B.id,checked:E(B.id),disabled:A,tabIndex:R===O?0:-1,onChange:()=>F(B.id),onKeyDown:V=>U(V,R),className:$t(A&&"cleen-opacity-50",a?.radioOuterCheckBox,B?.classNames?.outerCheckBox),style:{...p?.radioOuterCheckBox,...B?.styles?.outerCheckBox}}),gp("label",{htmlFor:z,className:$t("cleen-flex-1",A?"cleen-cursor-not-allowed":"cleen-cursor-pointer",a?.radioLabelsContainer,B?.classNames?.labelsContainer),style:{...p?.radioLabelsContainer,...B?.styles?.labelsContainer},children:[gp("div",{className:$t("cleen-flex cleen-items-center cleen-gap-1",A&&"cleen-opacity-50"),children:[no("span",{className:$t("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",a?.radioTitle,B?.classNames?.title),style:{...p?.radioTitle,...B?.styles?.title},children:B.title}),no("span",{className:$t("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",a?.radiotPostTitle,B?.classNames?.postTitle),style:{...p?.radiotPostTitle,...B?.styles?.postTitle},children:B.postTitle})]}),no("span",{className:$t("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",a?.radioSubTitle,B?.classNames?.subTitle),style:{...p?.radioSubTitle,...B?.styles?.subTitle},children:B?.subTitle})]}),G==="right"&&no(hp,{ref:V=>{M.current[R]=V},id:z,name:L,value:B.id,checked:E(B.id),disabled:A,tabIndex:R===O?0:-1,onChange:()=>F(B.id),onKeyDown:V=>U(V,R),className:$t(A&&"cleen-opacity-50",a?.radioOuterCheckBox),style:p?.radioOuterCheckBox}),G==="hidden"&&no(hp,{ref:V=>{M.current[R]=V},id:z,name:L,value:B.id,checked:E(B.id),disabled:A,tabIndex:R===O?0:-1,onChange:()=>F(B.id),onKeyDown:V=>U(V,R),className:"cleen-sr-only"}),B.rightIcon]},B?.id)})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&no(ue,{...y})]})})});import{cn as ml,ColorHelpers as m6}from"@cleen/ui-core";import{forwardRef as u6,useRef as f6,useState as h6}from"react";import{jsx as lr,jsxs as IP}from"react/jsx-runtime";var g6=u6(function({id:t,required:o,label:n,labelTooltip:r,labels:l,infoLabels:a,value:i,onChange:p,amount:s=5,options:d=[],gap:f,size:m=36,readonly:h,color:y="rgb(var(--cleen-primary))",className:u,style:v,classNames:I,styles:P,...x},C){let[S,L]=h6(0),k=i!==void 0,E=k?i:S,F=d?.length>0?d:Array.from({length:s},(B,R)=>R+1),M=f6([]),N=F.findIndex(B=>B===E),w=N>=0?N:0,O=B=>{k||L(B),p?.(B)},T=B=>{let R=F[B];R!==void 0&&(O(R),M.current[B]?.focus())},D=(B,R)=>{if(h)return;let z=F.length;if(z)switch(B.key){case"ArrowRight":case"ArrowUp":B.preventDefault(),T((R+1)%z);break;case"ArrowLeft":case"ArrowDown":B.preventDefault(),T((R-1+z)%z);break;case"Home":B.preventDefault(),T(0);break;case"End":B.preventDefault(),T(z-1);break;default:break}},U=typeof n=="string"?n:"Rating";return lr("div",{className:ml("cleen",u),style:v,ref:C,...x,children:IP("div",{className:ml("cleen-space-y-2",I?.container),style:P?.container,children:[n&&lr(ve,{htmlFor:t,required:o,tooltip:r,className:ml("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...P?.label,children:n}),IP("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[lr("div",{role:"radiogroup","aria-label":U,className:ml("cleen-flex cleen-flex-wrap cleen-gap-3",I?.list),style:{...f?{gap:f}:{},...P?.list},children:F?.map((B,R)=>lr("button",{id:t,ref:z=>{M.current[R]=z},role:"radio","aria-checked":E===B,"aria-label":`${B}`,tabIndex:R===w?0:-1,onClick:()=>O(B),onKeyDown:z=>D(z,R),className:ml("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",h&&"cleen-cursor-default cleen-pointer-events-none",I?.item),style:{width:m,height:m,...E===B?{borderColor:y,backgroundColor:m6.trasparentize(y,.9),color:y}:{},...P?.item},type:"button",children:lr("span",{className:ml("cleen-font-medium cleen-text-sm",I?.value),style:P?.value,children:B})},B))}),l?.helperText&&lr("span",{className:"cleen-text-sm cleen-text-neutral-600",children:l.helperText})]}),(a?.errorMessage||a?.infoMessage||a?.subtitle)&&lr(ue,{...a})]})})});import{useState as b6}from"react";import{components as y6}from"react-select";import{jsx as ob,jsxs as xP}from"react/jsx-runtime";var CP=e=>{let[t,o]=b6(!1),n=e.data;return ob("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:ob(y6.Option,{...e,children:xP("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[xP("div",{className:"cleen-flex-1",children:[n?.label,n?.sublabel&&ob("p",{className:"cleen-text-xs",children:n?.sublabel})]}),typeof n?.icon=="function"?n.icon({...e,isHovered:t}):n?.icon]})})})};import{components as v6}from"react-select";import{jsx as nb,jsxs as I6}from"react/jsx-runtime";var PP=e=>{let t=e.data;return nb(v6.SingleValue,{...e,children:I6("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[nb("p",{children:t?.label}),t?.sublabel&&nb("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as kc,ZIndex as EP}from"@cleen/ui-core";import{forwardRef as P6,useId as S6,useState as TP}from"react";import M6 from"react-select";import{components as x6}from"react-select";import{jsx as rb,jsxs as SP}from"react/jsx-runtime";var MP=({isLoading:e,inputValue:t,options:o,createNewOptionCallback:n,createNewOptionLabelStringCb:r,children:l,...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 rb("div",{className:"cleen",children:SP(x6.MenuList,{options:o,...a,children:[l,n&&!e&&t&&t?.length>0&&!p&&SP("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[rb(Vt,{}),rb("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{n(t)},children:r?.(t)||t})]})]})})};import{components as C6}from"react-select";import{jsx as wP}from"react/jsx-runtime";var kP=({isLoading:e,noDataFound:t,...o})=>wP(C6.NoOptionsMessage,{...o,children:e?wP(de,{}):t||"No data found"});import{jsx as dn,jsxs as RP}from"react/jsx-runtime";var NP=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),w6=P6(function({label:t,labelTooltip:o,sublabel:n,id:r,name:l,required:a,className:i,classNames:p,isLoading:s=!1,disabled:d,emboldenOptions:f=!1,labels:m,components:h,style:y,styles:u,infoLabels:v,createNewOptionCallback:I,createNewOptionLabelStringCb:P,...x},C){let[S,L]=TP(!1),[k,E]=TP(""),F=S6(),M=x.inputId??r??l??F,N=(O,T)=>{if(!NP(O.data))return!1;let{labelString:D,label:U}=O.data;return D?D.toLowerCase().includes(T.toLowerCase()):typeof U=="string"?U.toLowerCase().includes(T.toLowerCase()):!1},w=O=>NP(O)?O.labelString??(typeof O.label=="string"?O.label:""):"";return dn("div",{className:kc("cleen",i),style:y,ref:C,children:RP("div",{className:kc("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",p?.cleenContainer),style:u?.cleenContainer,children:[(t||n)&&RP("div",{className:kc("cleen-flex cleen-flex-col cleen-gap-1",p?.labels?.container),style:u?.labels?.container,children:[t&&dn(ve,{htmlFor:M,required:a,tooltip:o,...p?.labels?.label,...u?.labels?.label,children:t}),n&&dn("span",{className:kc("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",p?.labels?.sublabel),style:u?.labels?.sublabel,children:n})]}),dn(M6,{...I&&{menuIsOpen:S,inputValue:k,onInputChange:O=>E(O),onMenuOpen:()=>L(!0),onMenuClose:()=>L(!1)},...!x.filterOption&&{filterOption:N},...!x.getOptionLabel&&{getOptionLabel:w},id:r||l,classNames:p,isDisabled:d,menuPortalTarget:document.body,menuPosition:"fixed",...x,inputId:M,className:kc("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",p?.inputOuterContainer),styles:{...u,control:(O,T)=>{let D={...O,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:f&&T.hasValue?"600":"400",borderColor:v?.errorMessage?"rgba(var(--cleen-error), 0.7)":"rgb(var(--cleen-border))",color:T.isDisabled?"rgb(var(--cleen-neutral-500))":"rgb(var(--cleen-foreground))",backgroundColor:T.isDisabled?"rgb(var(--cleen-neutral-100))":"rgba(var(--cleen-background))",boxShadow:T.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:I?"rgba(var(--cleen-foreground))":"transparent","&:hover":{borderColor:v?.errorMessage?"rgba(var(--cleen-error))":"rgb(var(--cleen-border))"}};return u?.control?u?.control(D,T):D},menuPortal:(O,T)=>{let D={...O,zIndex:EP.SELECT,...u?.menuPortal};return u?.menuPortal?u?.menuPortal(D,T):D},menu:(O,T)=>{let D={...O,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:EP.SELECT,...u?.menu};return u?.menu?u?.menu(D,T):D},option:(O,T)=>{let D={...O,backgroundColor:T.isSelected?"rgba(var(--cleen-primary))":T.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:T.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-foreground))",fontWeight:f?"600":"400","&:hover":T.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:T.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-neutral-600))"},"&:hover p":{color:"rgba(var(--cleen-white))"},"&:active":{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))"}};return u?.option?u?.option(D,T):D},menuList:(O,T)=>{let D={...O,"::-webkit-scrollbar":{width:"6px",height:"0px"},"::-webkit-scrollbar-track":{background:"rgb(var(--cleen-background))"},"::-webkit-scrollbar-thumb":{background:"rgba(var(--cleen-neutral-200))"},"::-webkit-scrollbar-thumb:hover":{background:"rgba(var(--cleen-neutral-400))"},padding:0,borderRadius:4,...u?.menuList};return u?.menuList?u?.menuList(D,T):D},singleValue:(O,T)=>{let D={...O,color:T.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return u?.singleValue?u?.singleValue(D,T):D},input:(O,T)=>{let D={...O,color:"rgba(var(--cleen-foreground))"};return u?.input?u?.input(D,T):D}},components:{IndicatorSeparator:()=>null,SingleValue:O=>dn(PP,{...O}),NoOptionsMessage:O=>dn(kP,{isLoading:s,noDataFound:m?.noDataFound,...O}),MenuList:O=>dn(MP,{isLoading:s,inputValue:k,createNewOptionCallback:I,createNewOptionLabelStringCb:P,...O}),Option:CP,...h}}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&dn(ue,{...v})]})})});import{jsx as BP,jsxs as k6}from"react/jsx-runtime";function LP({children:e,title:t,className:o="",renderHeader:n}){return k6("div",{className:`cleen-w-full cleen-h-full ${o}`,"data-testid":`drawer-container-${t}`,children:[n?n(t):BP("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),BP("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as Bo}from"@cleen/ui-core";import{forwardRef as E6,useState as T6}from"react";import{Fragment as L6,jsx as Dt,jsxs as bp}from"react/jsx-runtime";function N6({icon:e,iconSrc:t,iconName:o,iconSize:n=24,title:r,className:l,style:a}){return e?Dt("span",{className:Bo("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",l),style:{width:n,height:n,...a},children:e}):t?Dt("img",{src:t,alt:r,width:n,height:n,className:l,style:a}):o?Dt($e,{name:o,width:n,height:n,className:l,style:a}):null}function DP({item:e,depth:t,iconSize:o=24,classNames:n,styles:r}){let[l,a]=T6(!1),i={...e,classNames:{...n,...e.classNames},styles:{...r,...e.styles}},p=Array.isArray(i?.items)&&i.items.length>0,s=i?.iconSize??o,d=t>0?{paddingLeft:12+t*28}:{},f=bp(L6,{children:[bp("div",{className:Bo("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[Dt(N6,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:s,title:i?.name,className:Bo("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}),Dt("span",{className:Bo("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)&&Dt(Ne,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return p?bp("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[bp("summary",{className:Bo("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,Dt($e,{name:"ChevronDown",className:Bo("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":l},i?.classNames?.chevron),style:i?.styles?.chevron})]}),Dt("div",{className:Bo("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(m=>Dt(DP,{item:m,depth:t+1,iconSize:o,classNames:n,styles:r},m?.id??m?.name))})]}):Dt("div",{className:Bo("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 R6=E6(function({title:t,icon:o,iconName:n,iconSrc:r,iconSize:l=24,badgeColor:a="gray",badgeCount:i,items:p,onClick:s,isActive:d=!1,disabled:f,className:m,classNames:h,style:y,styles:u},v){let I={id:"root",name:t,icon:o,iconName:n,iconSrc:r,iconSize:l,badgeColor:a,badgeCount:i,isActive:d,disabled:f,onClick:s?()=>s():void 0,classNames:h,styles:u,items:p};return Dt("div",{className:Bo("cleen",m),style:y,ref:v,children:Dt(DP,{item:I,depth:0,iconSize:l,classNames:h,styles:u})})}),B6=R6;import{cn as Lo}from"@cleen/ui-core";import{useEffect as O6,useLayoutEffect as _6,useRef as ul,useState as V6}from"react";import{cn as Ec}from"@cleen/ui-core";import{useMemo as D6}from"react";import{Link as F6}from"react-router-dom";import{jsx as Tc,jsxs as A6}from"react/jsx-runtime";function Nc({item:e,activeId:t,onClick:o,countBadge:n,classNames:r,styles:l,renderIcon:a}){let i=t===e?.id,p=D6(()=>e?a?a(e,i):e.icon?e.icon:e.iconSrc?Tc("img",{src:e.iconSrc,alt:e?.name||e?.label,className:Ec("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",r?.icon,i&&"cleen-text-primary"),style:l?.icon}):e.iconName?Tc($e,{name:e.iconName,className:Ec("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",r?.icon,i&&"cleen-text-primary"),style:l?.icon}):null:null,[e,i,a,r?.icon,l?.icon]),s=A6("div",{"data-testid":`nav-item-${e?.id}`,className:Ec("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",r?.container,i&&"cleen-bg-primary/10"),style:l?.container,onClick:()=>{e?.path||o?.(e)},children:[p,n&&Tc("div",{className:Ec("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",r?.badge),style:l?.badge,children:n})]});return Tc(_e,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:r?.tooltip?.className,classNames:{...r?.tooltip,labelContainer:Ec("cleen-min-w-max",r?.tooltip?.classNames?.labelContainer)},...l?.tooltip,label:e?.label,children:e?.path?Tc(F6,{to:e.path,children:s}):s})}import{jsx as Do,jsxs as ar}from"react/jsx-runtime";var FP="--cleen-sidebar-fit",AP="data-cleen-sidebar-measuring",yp=e=>e?.getBoundingClientRect().height??0,OP=e=>{let t=getComputedStyle(e);return parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)};function _P({navigationItems:e,bottomNavigationItems:t=[],drawerContent:o={},logo:n,onLogoClick:r,userAvatar:l,userInfo:a,drawerFooter:i,drawerWidth:p=330,direction:s="right",defaultActiveId:d=null,activeId:f,onActiveChange:m,closeOnOutsideClick:h=!0,closeOnBlur:y=!0,className:u,classNames:v,style:I,styles:P,renderSidebarItem:x}){let[C,S]=V6(d),L=ul(null),k=ul(null),E=ul(null),F=ul(null),M=ul(null),N=ul(null),w=!!n,O=!!l;_6(()=>{let R=L.current,z=k.current,G=F.current;if(!R||!z||!G||typeof ResizeObserver>"u")return;let A=_=>(R.style.setProperty(FP,`${_}px`),yp(E.current)+OP(G)+(parseFloat(getComputedStyle(G).rowGap)||0)+yp(M.current)+yp(N.current)),V=()=>{R.setAttribute(AP,"");let _=A(0),H=A(1),W=z.clientHeight-OP(z)-1,$=H>_?Math.min(1,Math.max(0,(W-_)/(H-_))):1;R.style.setProperty(FP,`${$}px`),yp(z),R.removeAttribute(AP)};V();let X=new ResizeObserver(V);return X.observe(z),()=>X.disconnect()},[e.length,t.length,w,O]);let T=f!==void 0?f:C,D=!!T,U=R=>{let z=T===R.id?null:R.id;f===void 0&&S(z),m?.(z)};O6(()=>{if(!h||!D)return;let R=z=>{L.current&&!L.current.contains(z.target)&&(f===void 0&&S(null),m?.(null))};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[h,D,f,m]);let B=R=>{!y||!D||L.current&&!L.current.contains(R.relatedTarget)&&(f===void 0&&S(null),m?.(null))};return ar("div",{className:Lo("cleen",u),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:s==="left"?"row-reverse":"row",...I},ref:L,onBlur:B,tabIndex:y?0:void 0,children:[ar("div",{ref:k,className:Lo("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&&Do("div",{ref:E,className:Lo("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:r,children:n}),ar("div",{ref:F,className:Lo("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:[Do("nav",{ref:M,className:Lo("cleen-flex cleen-flex-col cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)]",v?.upperNavigationItemsWrapper),style:P?.upperNavigationItemsWrapper,children:e.map(R=>ar("div",{children:[x?x(R,T===R.id,U):Do(Nc,{item:R,activeId:T,onClick:U,countBadge:R.badgeCount,classNames:{...v?.navigationItem,...R?.classNames},styles:{...P?.navigationItem,...R?.styles}}),R?.withBottomDivider&&Do("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},R.id))}),ar("div",{ref:N,className:Lo("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(R=>ar("div",{children:[x?x(R,T===R.id,U):Do(Nc,{item:R,activeId:T,onClick:U,countBadge:R.badgeCount,classNames:{...v?.navigationItem,...R?.classNames},styles:{...P?.navigationItem,...R?.styles}}),R?.withBottomDivider&&Do("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},R.id)),l&&Do("div",{className:"cleen-mt-[calc(8px_+_var(--cleen-sidebar-fit,1px)_*_16)] cleen-mb-[calc(12px_+_var(--cleen-sidebar-fit,1px)_*_20)]",children:l})]})]})]}),ar("div",{className:Lo("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":D&&s==="right","cleen-border-l cleen-border-l-border":D&&s==="left"},v?.drawer),style:{...P?.drawer,width:D?`${p}px`:"0px",visibility:D?"visible":"hidden"},children:[T&&o[T]&&Do("div",{className:Lo("cleen-flex-1 cleen-overflow-auto",v?.drawerContent),style:P?.drawerContent,children:o[T]}),T&&(i||a)&&Do("div",{className:Lo("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(T):i||a})]})]})}var ie=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as VP}from"@cleen/ui-core";import{forwardRef as z6}from"react";import{jsx as zP}from"react/jsx-runtime";var H6={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"},U6=z6(function({width:t,height:o,roundness:n="md",variant:r="default",className:l,style:a},i){let p=ie(r),s={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...o!==void 0?{height:typeof o=="number"?`${o}px`:o}:{},...a};return zP("div",{ref:i,className:VP("cleen",l),children:zP("div",{className:VP("cleen-bg-muted",H6[n],t===void 0&&"cleen-w-full",o===void 0&&"cleen-h-4",p),style:s})})});import{cn as lb}from"@cleen/ui-core";import{forwardRef as $6}from"react";import{jsx as vp,jsxs as G6}from"react/jsx-runtime";var ab=$6(function({className:t,style:o,variant:n="default",itemCount:r=1},l){let a=ie(n);return vp("div",{ref:l,className:lb("cleen",t),style:o,children:vp("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:r}).map((i,p)=>G6("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[vp("div",{className:lb("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",a)}),vp("div",{className:lb("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",a)})]},p))})})});import{cn as HP}from"@cleen/ui-core";import{forwardRef as W6}from"react";import{jsx as cb}from"react/jsx-runtime";var ib=W6(function({className:t,style:o,variant:n="default",itemCount:r=1},l){let a=ie(n);return cb("div",{ref:l,className:HP("cleen",t),style:o,children:cb("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:r}).map((i,p)=>cb("div",{className:HP("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",a)},p))})})});import{cn as UP}from"@cleen/ui-core";import{forwardRef as q6}from"react";import{jsx as cr,jsxs as Ip}from"react/jsx-runtime";var sb=q6(function({className:t,style:o,variant:n="default"},r){let l=ie(n);return cr("div",{ref:r,className:UP("cleen",t),style:o,children:Ip("div",{className:UP("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",l),children:[cr("div",{className:"cleen-h-48 cleen-w-full"}),Ip("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:[cr("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),Ip("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[cr("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),cr("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),Ip("div",{className:"cleen-flex cleen-gap-3",children:[cr("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),cr("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as $P}from"@cleen/ui-core";import{forwardRef as K6}from"react";import{jsx as pb}from"react/jsx-runtime";var db=K6(function({className:t,style:o,variant:n="default",itemCount:r=1},l){let a=ie(n);return pb("div",{ref:l,className:$P("cleen",t),style:o,children:pb("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:r}).map((i,p)=>pb("div",{className:$P("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",a)},p))})})});import{cn as xp}from"@cleen/ui-core";import{forwardRef as X6}from"react";import{jsx as Cp,jsxs as GP}from"react/jsx-runtime";var Rc=X6(function({className:t,style:o,variant:n="default"},r){let l=ie(n);return Cp("div",{ref:r,className:xp("cleen",t),style:o,children:GP("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:[Cp("div",{className:xp("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",l)}),GP("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Cp("div",{className:xp("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)}),Cp("div",{className:xp("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",l)})]})]})})});import{cn as fl}from"@cleen/ui-core";import{forwardRef as Y6}from"react";import{jsx as hl,jsxs as Pp}from"react/jsx-runtime";var Sp=Y6(({className:e,style:t,variant:o="default"},n)=>{let r=ie(o);return hl("div",{ref:n,className:fl("cleen",e),style:t,children:Pp("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:[Pp("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[hl("div",{className:fl("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",r)}),Pp("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[hl("div",{className:fl("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",r)}),hl("div",{className:fl("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)})]})]}),Pp("div",{className:"cleen-space-y-2 cleen-w-full",children:[hl("div",{className:fl("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",r)}),hl("div",{className:fl("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",r)})]})]})})});Sp.displayName="AssessmentHeaderSkeleton";import{cn as ro}from"@cleen/ui-core";import{forwardRef as Q6}from"react";import{jsx as lo,jsxs as gl}from"react/jsx-runtime";var mb=Q6(function({className:t,style:o,variant:n="default"},r){let l=ie(n);return lo("div",{ref:r,className:ro("cleen",t),style:o,children:gl("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:[lo("div",{className:ro("cleen-bg-muted cleen-w-full cleen-h-40",l)}),gl("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[gl("div",{className:"cleen-flex cleen-gap-2",children:[lo("div",{className:ro("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",l)}),lo("div",{className:ro("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",l)})]}),gl("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[lo("div",{className:ro("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",l)}),lo("div",{className:ro("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",l)}),lo("div",{className:ro("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",l)})]}),gl("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[gl("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[lo("div",{className:ro("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",l)}),lo("div",{className:ro("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",l)})]}),lo("div",{className:ro("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",l)})]})]})]})})});import{forwardRef as Z6}from"react";import{cn as J6}from"@cleen/ui-core";import{jsx as ub}from"react/jsx-runtime";var fb=Z6(function({className:t,style:o,itemCount:n=3,variant:r="default"},l){return ub("div",{ref:l,className:J6("cleen",t),style:o,children:ub("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:n}).map((a,i)=>ub(Rc,{variant:r},i))})})});import{cn as ir}from"@cleen/ui-core";import{forwardRef as j6}from"react";import{jsx as Ft,jsxs as Bc}from"react/jsx-runtime";var WP=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],hb=j6(function({className:t,style:o,variant:n="default"},r){let l=ie(n);return Ft("div",{ref:r,className:ir("cleen",t),style:o,children:Bc("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:[Bc("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[Ft("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",l)}),Ft("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((a,i)=>Bc("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[Ft("div",{className:ir("cleen-bg-muted cleen-rounded-full cleen-size-2.5",l)}),Ft("div",{className:ir("cleen-bg-muted cleen-rounded cleen-h-3",l),style:{width:a}})]},i))})]}),Bc("div",{className:"cleen-flex cleen-gap-3",children:[Ft("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=>Ft("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",l)},a))}),Bc("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[Ft("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:WP.map((a,i)=>Ft("div",{className:ir("cleen-bg-muted cleen-rounded-t cleen-flex-1",a,l)},i))}),Ft("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),Ft("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:WP.map((a,i)=>Ft("div",{className:ir("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",l)},i))})]})]})]})})});import{cn as sr}from"@cleen/ui-core";import{forwardRef as eD}from"react";import{jsx as Fo,jsxs as Mp}from"react/jsx-runtime";var gb=eD(({variant:e="default",itemCount:t=3,className:o,style:n},r)=>{let l=ie(e);return Fo("div",{ref:r,className:sr("cleen",o),style:n,children:Fo(Re,{className:"cleen-max-h-fit",children:Mp("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[Mp("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Fo("div",{className:sr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",l)}),Fo("div",{className:sr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",l)})]}),Fo("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((a,i)=>Mp("div",{className:"cleen-space-y-3",children:[Fo("div",{className:sr("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",l)}),Fo("div",{className:sr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",l)})]},i))}),Mp("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[Fo("div",{className:sr("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",l)}),Fo("div",{className:sr("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",l)})]})]})})})});import{cn as wp}from"@cleen/ui-core";import{forwardRef as tD}from"react";import{jsx as Lc,jsxs as oD}from"react/jsx-runtime";var bb=tD(function({className:t,style:o,variant:n="default",itemCount:r=5},l){let a=ie(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 Lc("div",{ref:l,className:wp("cleen",t),style:o,children:oD("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[Lc("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)=>Lc("div",{className:wp("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",p,a)},s))}),Array.from({length:r}).map((p,s)=>Lc("div",{className:wp("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",s<r-1?"cleen-border-b cleen-border-border":""),children:i.map((d,f)=>Lc("div",{className:wp("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 kp}from"@cleen/ui-core";import{forwardRef as nD}from"react";import{jsx as Dc,jsxs as qP}from"react/jsx-runtime";var yb=nD(function({className:t,style:o,variant:n="default",itemCount:r=4},l){let a=ie(n);return Dc("div",{ref:l,className:kp("cleen",t),style:o,children:qP("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:r}).map((i,p)=>qP("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Dc("div",{className:kp("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",a)}),Dc("div",{className:kp("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",a)})]},p)),Dc("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:Dc("div",{className:kp("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",a)})})]})})});import{cn as KP}from"@cleen/ui-core";import{forwardRef as rD}from"react";import{jsx as vb}from"react/jsx-runtime";var lD=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],Ib=rD(function({className:t,style:o,variant:n="default",colors:r=lD},l){let a=ie(n);return vb("div",{ref:l,className:KP("cleen",t),style:o,children:vb("div",{className:KP("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),${r.join(",")})`},children:vb("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as Ep}from"@cleen/ui-core";import{forwardRef as aD}from"react";import{jsx as bl,jsxs as XP}from"react/jsx-runtime";var xb=aD(function({className:t,style:o,variant:n="default"},r){let l=ie(n);return bl("div",{ref:r,className:Ep("cleen",t),style:o,children:XP("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[bl("div",{className:Ep("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",l),children:bl("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:XP("div",{className:Ep("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[bl("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),bl("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),bl("div",{className:Ep("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",l)})]})})});import{cn as Ct}from"@cleen/ui-core";import{forwardRef as cD}from"react";import{jsx as yt,jsxs as Ao}from"react/jsx-runtime";var Cb=cD(function({className:t,style:o,variant:n="default"},r){let l=ie(n);return yt("div",{ref:r,className:Ct("cleen",t),style:o,children:Ao("div",{className:Ct("cleen-flex cleen-flex-col cleen-items-start cleen-gap-4 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-h-fit",t),style:o,children:[Ao("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[yt("div",{className:Ct("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",l)}),yt("div",{className:Ct("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",l)})]}),Ao("div",{className:"cleen-space-y-3 cleen-w-full",children:[Ao("div",{children:[yt("div",{className:Ct("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",l)}),yt(Re,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:Ao("div",{className:"cleen-space-y-2",children:[yt("div",{className:Ct("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",l)}),yt("div",{className:Ct("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",l)})]})})]}),Ao("div",{children:[yt("div",{className:Ct("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",l)}),Ao("div",{className:"cleen-space-y-2",children:[yt("div",{className:Ct("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",l)}),yt("div",{className:Ct("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",l)})]})]}),Ao("div",{children:[yt("div",{className:Ct("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",l)}),yt(Re,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:Ao("div",{className:"cleen-space-y-2",children:[yt("div",{className:Ct("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",l)}),yt("div",{className:Ct("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",l)})]})})]})]})]})})});import{cn as Pb}from"@cleen/ui-core";import{forwardRef as iD}from"react";import{jsx as Sb,jsxs as sD}from"react/jsx-runtime";var Mb=iD(function({className:t,style:o,variant:n="default"},r){let l=ie(n);return Sb("div",{ref:r,className:Pb("cleen",t),style:o,children:sD("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Sb("div",{className:Pb("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",l)}),Sb("div",{className:Pb("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",l)})]})})});import{cn as Fc}from"@cleen/ui-core";import{forwardRef as pD}from"react";import{jsx as yl,jsxs as YP}from"react/jsx-runtime";var wb=pD(function({className:t,style:o,variant:n="default",itemCount:r=5},l){let a=ie(n),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return yl("div",{ref:l,className:Fc("cleen",t),style:o,children:yl("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:r}).map((p,s)=>YP("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[yl("div",{className:Fc("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",a)}),YP("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[yl("div",{className:Fc("cleen-bg-muted cleen-rounded cleen-h-4",i[s%i.length],a)}),yl("div",{className:Fc("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",a)})]}),yl("div",{className:Fc("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",a)})]},s))})})});import{cn as QP}from"@cleen/ui-core";import{forwardRef as dD}from"react";import{jsx as Eb}from"react/jsx-runtime";var kb=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],Tb=dD(function({className:t,style:o,variant:n="default",itemCount:r},l){let a=ie(n),i=r??kb.length;return Eb("div",{ref:l,className:QP("cleen",t),style:o,children:Eb("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((p,s)=>{let d=s<kb.length?kb[s]:s===i-1?"cleen-w-3/5":"cleen-w-full";return Eb("div",{className:QP("cleen-bg-muted cleen-rounded cleen-h-3",d,a)},s)})})})});import{cn as ZP}from"@cleen/ui-core";import{forwardRef as mD}from"react";import{jsx as JP}from"react/jsx-runtime";var Nb=mD(function({className:t,style:o,variant:n="default"},r){let l=ie(n);return JP("div",{ref:r,className:ZP("cleen",t),style:o,children:JP("div",{className:ZP("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})})});import{cn as pr}from"@cleen/ui-core";import{forwardRef as uD}from"react";import{jsx as ao,jsxs as Tp}from"react/jsx-runtime";var Rb=uD(function({className:t,style:o,variant:n="default"},r){let l=ie(n);return ao("div",{ref:r,className:pr("cleen",t),style:o,children:Tp("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[ao("div",{className:pr("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",l),children:ao("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:ao("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:ao("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"})})})}),Tp("div",{className:"cleen-flex cleen-gap-3",children:[ao("div",{className:pr("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",l)}),Tp("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[ao("div",{className:pr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",l)}),ao("div",{className:pr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",l)}),Tp("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[ao("div",{className:pr("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",l)}),ao("div",{className:pr("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",l)})]})]})]})]})})});import{cn as Ac}from"@cleen/ui-core";import{forwardRef as fD}from"react";import{jsx as Oc,jsxs as Bb}from"react/jsx-runtime";var Np=fD(function({variant:t="default",className:o,style:n},r){let l=ie(t);return Oc("div",{ref:r,className:Ac("cleen",o),style:n,children:Bb("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:[Bb("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-2 cleen-py-0.5 cleen-border cleen-border-border cleen-rounded-full",children:[Oc("div",{className:Ac("cleen-bg-muted cleen-rounded-full cleen-size-1.5",l)}),Oc("div",{className:Ac("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",l)})]}),Bb("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[Oc("div",{className:Ac("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",l)}),Oc("div",{className:Ac("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",l)})]})]})})});Np.displayName="SkeletonBadgeCard";import{forwardRef as hD}from"react";import{jsx as Ve}from"react/jsx-runtime";var gD=hD(function({className:t,style:o,variant:n="default",itemCount:r=3,colors:l,skeleton:a="card",isShowing:i=!1,children:p},s){if(!i)return p;let d={ref:s,variant:n,itemCount:r,colors:l,className:t,style:o};switch(a){case"card2":return Ve(Sp,{...d});case"card3":return Ve(mb,{...d});case"cardStack":return Ve(fb,{...d});case"contentCard":return Ve(gb,{...d});case"infoCard":return Ve(Cb,{...d});case"widgetCard":return Ve(Np,{...d});case"image":return Ve(xb,{...d});case"video":return Ve(Rb,{...d});case"avatar":return Ve(ab,{...d});case"dataGrid":return Ve(bb,{...d});case"text":return Ve(Nb,{...d});case"paragraph":return Ve(Tb,{...d});case"list":return Ve(wb,{...d});case"form":return Ve(yb,{...d});case"banner":return Ve(sb,{...d});case"chart":return Ve(hb,{...d});case"button":return Ve(db,{...d});case"badge":return Ve(ib,{...d});case"input":return Ve(Mb,{...d});case"glowingCard":return Ve(Ib,{...d});default:return Ve(Rc,{...d})}});import{cn as mn}from"@cleen/ui-core";import{forwardRef as bD,useCallback as Lb,useEffect as yD,useRef as jP,useState as eS}from"react";import{jsx as un,jsxs as Rp}from"react/jsx-runtime";var dr=bD(function({id:t,required:o,minValue:n=0,maxValue:r=100,step:l=1,keyboardStep:a=l,defaultValue:i=0,value:p,variant:s="default",onChange:d,onChangeEnd:f,className:m,classNames:h,style:y,styles:u,disabled:v=!1,label:I,labelTooltip:P,labels:x,tooltip:C,infoLabels:S},L){let[k,E]=eS(i??n),F=p!==void 0?p:k,M=jP(null),[N,w]=eS(!1),O=jP(!1),T=(F-n)/(r-n)*100,D=Math.min(100,Math.max(0,T)),U=Lb(_=>{let H=Math.round((_-n)/l)*l+n;return Math.min(r,Math.max(n,H))},[n,r,l]),B=Lb((_,H)=>{let W=U(_);p===void 0&&E(W),d?.(W),H&&f?.(W)},[U,p,d,f]),R=Lb(_=>{let H=M.current;if(!H)return n;let W=H.getBoundingClientRect(),$=(_-W.left)/W.width;return U(n+$*(r-n))},[n,r,U]),z=_=>{if(v)return;let H;switch(_.key){case"ArrowRight":case"ArrowUp":H=F+a;break;case"ArrowLeft":case"ArrowDown":H=F-a;break;case"Home":H=n;break;case"End":H=r;break;default:return}_.preventDefault(),B(H,!0)},G=_=>{v||(_.preventDefault(),w(!0))},A=_=>{if(v||O.current){O.current=!1;return}B(R(_.clientX),!0)},V=_=>{v||(_.preventDefault(),w(!0))};yD(()=>{if(!N)return;let _=J=>{B(R(J.clientX))},H=J=>{w(!1),O.current=!0,f?.(U(R(J.clientX)))},W=J=>{J.touches.length>0&&B(R(J.touches[0].clientX))},$=J=>{w(!1),O.current=!0,f?.(U(R(J.changedTouches[0].clientX)))};return document.addEventListener("mousemove",_),document.addEventListener("mouseup",H),document.addEventListener("touchmove",W),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",W),document.removeEventListener("touchend",$)}},[N,U,R,B,f]);let X=_=>un("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:_});return un("div",{className:mn("cleen",m),style:y,ref:L,children:Rp("div",{className:mn("cleen-w-full",h?.container),style:u?.container,children:[I&&un(ve,{htmlFor:t,required:o,tooltip:P,...h?.label,...u?.label,children:I}),Rp("div",{className:mn({"cleen-flex cleen-items-center cleen-gap-2":s==="inline"},h?.slider),style:u?.slider,children:[s==="inline"&&x?.minLabel!==void 0&&X(x?.minLabel),Rp("div",{ref:M,className:mn("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":v,"cleen-flex-1":s==="inline"},h?.track),style:u?.track,"aria-disabled":v,onClick:A,children:[un("div",{className:mn("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",h?.path),style:u?.path,children:un("div",{className:mn("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",h?.filledTrack),style:{width:`${D}%`,...u?.filledTrack}})}),un(_e,{invertColors:!0,...C,label:x?.tooltip?.(F)??F,className:mn("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",C?.className),style:{left:`calc(${D}% - 8px)`,...C?.style},isOpen:N||C?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:un("div",{id:t,className:mn("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",h?.thumb),style:u?.thumb,tabIndex:v?-1:0,role:"slider","aria-valuenow":F,"aria-valuemin":n,"aria-valuemax":r,"aria-disabled":v,"aria-label":typeof I=="string"?I:"Slider","aria-labelledby":t,onMouseDown:G,onTouchStart:V,onKeyDown:z})})]}),s==="inline"?x?.maxLabel&&X(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&Rp("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[x?.minLabel&&X(x?.minLabel),x?.maxLabel&&X(x?.maxLabel)]})]}),(S?.errorMessage||S?.infoMessage||S?.subtitle)&&un(ue,{...S})]})})});import{cn as co}from"@cleen/ui-core";import{forwardRef as vD,useCallback as Db,useEffect as ID,useRef as xD,useState as tS}from"react";import{jsx as io,jsxs as Bp}from"react/jsx-runtime";var CD=vD(function({id:t,required:o,minValue:n=0,maxValue:r=100,step:l=1,defaultValue:a=[n,r],value:i,variant:p="default",onChange:s,onChangeEnd:d,className:f,classNames:m,style:h,styles:y,disabled:u=!1,label:v,labelTooltip:I,labels:P,tooltips:x,infoLabels:C},S){let[L,k]=tS(a??[n,r]),E=i!==void 0?i:L,F=xD(null),[M,N]=tS(null),w=Db(_=>{let H=Math.round((_-n)/l)*l+n;return Math.min(r,Math.max(n,H))},[n,r,l]),O=(E[0]-n)/(r-n)*100,T=Math.min(100,Math.max(0,O)),D=(E[1]-n)/(r-n)*100,U=Math.min(100,Math.max(0,D)),B=Db(_=>{let H=[w(Math.min(_[0],_[1])),w(Math.max(_[0],_[1]))];i===void 0&&k(H),s?.(H)},[w,i,s]),R=Db(_=>{let H=F.current;if(!H)return n;let W=H.getBoundingClientRect(),$=(_-W.left)/W.width;return w(n+$*(r-n))},[n,r,w]),z=_=>H=>{if(u)return;let W=_==="min"?E[0]:E[1],$;switch(H.key){case"ArrowRight":case"ArrowUp":$=W+l;break;case"ArrowLeft":case"ArrowDown":$=W-l;break;case"Home":$=n;break;case"End":$=r;break;default:return}H.preventDefault();let J=_==="min"?[Math.min($,E[1]),E[1]]:[E[0],Math.max($,E[0])];B(J),d?.([w(J[0]),w(J[1])])},G=_=>H=>{u||(H.preventDefault(),N(_))},A=_=>{if(u)return;let H=R(_.clientX),W=Math.abs(H-E[0]),$=Math.abs(H-E[1]);W<$?B([H,E[1]]):B([E[0],H])},V=_=>H=>{u||(H.preventDefault(),N(_))};ID(()=>{if(!M)return;let _=J=>{let ee=R(J.clientX);B(M==="min"?[ee,E[1]]:[E[0],ee])},H=J=>{let ee=R(J.clientX),xe=M==="min"?[ee,E[1]]:[E[0],ee];N(null),d?.(xe)},W=J=>{if(J.touches.length>0){let ee=R(J.touches[0].clientX);B(M==="min"?[ee,E[1]]:[E[0],ee])}},$=J=>{let ee=R(J.changedTouches[0].clientX),xe=M==="min"?[ee,E[1]]:[E[0],ee];N(null),d?.(xe)};return document.addEventListener("mousemove",_),document.addEventListener("mouseup",H),document.addEventListener("touchmove",W),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",W),document.removeEventListener("touchend",$)}},[M,E,R,B,d]);let X=_=>io("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:_});return io("div",{className:co("cleen",f),style:h,ref:S,children:Bp("div",{className:co("cleen-w-full",m?.container),style:y?.container,children:[v&&io(ve,{htmlFor:t,required:o,tooltip:I,...m?.label,...y?.label,children:v}),Bp("div",{className:co({"cleen-flex cleen-items-center cleen-gap-2":p==="inline"},m?.slider),style:y?.slider,children:[p==="inline"&&P?.minLabel!==void 0&&X(P?.minLabel),Bp("div",{ref:F,className:co("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:A,children:[io("div",{className:co("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",u?"cleen-cursor-not-allowed":"cleen-cursor-pointer"),children:io("div",{className:co("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{left:`${T}%`,width:`${U-T}%`,...y?.filledTrack}})}),io(_e,{invertColors:!0,isOpen:M==="min"||x?.min?.isOpen||x?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...x?.shared,...x?.min,label:P?.tooltip?.(E[0])??E[0]?.toString(),className:co("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",x?.shared?.className,x?.min?.className),style:{left:`calc(${T}% - 8px)`,...x?.shared?.style,...x?.min?.style},children:io("div",{className:co("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",u?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:y?.thumb,tabIndex:u?-1:0,role:"slider","aria-valuenow":E[0],"aria-valuemin":n,"aria-valuemax":E[1],"aria-disabled":u,"aria-label":typeof v=="string"?`${v} minimum value`:"Minimum value",onMouseDown:G("min"),onTouchStart:V("min"),onKeyDown:z("min")})}),io(_e,{invertColors:!0,isOpen:M==="max"||x?.max?.isOpen||x?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...x?.shared,...x?.max,label:P?.tooltip?.(E[1])??E[1]?.toString(),className:co("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",x?.shared?.className,x?.max?.className),style:{left:`calc(${U}% - 8px)`,...x?.shared?.style,...x?.max?.style},children:io("div",{className:co("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",u?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:y?.thumb,tabIndex:u?-1:0,role:"slider","aria-valuenow":E[1],"aria-valuemin":E[0],"aria-valuemax":r,"aria-disabled":u,"aria-label":typeof v=="string"?`${v} maximum value`:"Maximum value",onMouseDown:G("max"),onTouchStart:V("max"),onKeyDown:z("max")})})]}),p==="inline"?P?.maxLabel&&X(P?.maxLabel):(P?.minLabel||P?.maxLabel)&&Bp("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[P?.minLabel&&X(P?.minLabel),P?.maxLabel&&X(P?.maxLabel)]})]}),(C?.errorMessage||C?.infoMessage||C?.subtitle)&&io(ue,{...C})]})})});import{cn as vl}from"@cleen/ui-core";import{forwardRef as PD,useRef as SD,useState as oS}from"react";import{jsx as mr,jsxs as wD}from"react/jsx-runtime";var MD=PD(function({label:t,infoLabels:o,value:n,onChange:r,amount:l=5,gap:a,size:i,readonly:p,color:s="rgb(var(--cleen-yellow))",className:d,style:f,classNames:m,styles:h,...y},u){let[v,I]=oS(0),P=n!==void 0,x=P?n:v,[C,S]=oS(null),L=C!==null?C+1:x,k=!p,E=SD([]),F=x>0?x-1:0,M=T=>{P||I(T),r?.(T)},N=T=>{T<0||T>=l||(M(T+1),E.current[T]?.focus())},w=(T,D)=>{switch(T.key){case"ArrowRight":case"ArrowUp":T.preventDefault(),N((D+1)%l);break;case"ArrowLeft":case"ArrowDown":T.preventDefault(),N((D-1+l)%l);break;case"Home":T.preventDefault(),N(0);break;case"End":T.preventDefault(),N(l-1);break;default:break}},O=typeof t=="string"?t:"Rating";return mr("div",{className:vl("cleen",d),style:f,ref:u,...y,children:wD("div",{className:vl("cleen-space-y-2",m?.container),style:h?.container,children:[t&&mr("span",{className:vl("cleen-font-medium cleen-text-sm cleen-text-foreground",m?.label),style:h?.label,children:t}),mr("div",{role:k?"radiogroup":"img","aria-label":k?O:`${O}: ${x} out of ${l}`,className:vl("cleen-flex cleen-gap-3",m?.list),style:{...a?{gap:a}:{},...h?.list},children:Array.from({length:l},(T,D)=>{let U=mr(Fa,{"aria-hidden":"true",className:vl("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...h?.star,fill:(p?x:L)>D?s:"transparent"}});return k?mr("button",{type:"button",ref:B=>{E.current[D]=B},role:"radio","aria-checked":x===D+1,"aria-label":`${D+1} ${D+1===1?"star":"stars"}`,tabIndex:D===F?0:-1,onMouseEnter:()=>S(D),onMouseLeave:()=>S(null),onClick:()=>M(D+1),onKeyDown:B=>w(B,D),className:vl("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:U},D):mr("span",{className:"cleen-cursor-default",children:U},D)})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&mr(ue,{...o})]})})});import{cn as Oo}from"@cleen/ui-core";import{forwardRef as kD}from"react";import{jsx as fn,jsxs as nS}from"react/jsx-runtime";var rS=kD(({steps:e,activeStep:t=0,orientation:o="horizontal",color:n="rgb(var(--cleen-primary))",className:r,classNames:l,style:a,styles:i,...p},s)=>{let d=o==="vertical";return fn("div",{ref:s,className:Oo("cleen",r),style:{...a,width:"100%"},...p,children:fn("div",{className:Oo("cleen-flex cleen-w-full",d?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",l?.container),style:{width:"100%",...i?.container},children:e?.map((f,m)=>{let h=m+1<t,y=m+1===t;return nS("div",{className:Oo("cleen-relative cleen-flex cleen-flex-1",d?"cleen-flex-row cleen-items-start":"cleen-flex-col cleen-items-center cleen-text-center",l?.step),style:i?.step,children:[m<e?.length-1&&fn("div",{className:Oo("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)]",h&&"cleen-bg-primary",l?.connector),style:{backgroundColor:h?n:void 0,...i?.connector}}),fn("div",{className:Oo("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",h||y?"cleen-border-[2px]":"cleen-border-border",l?.circle),style:{borderColor:y||h?n:void 0,backgroundColor:h?n:"transparent",...i?.circle},children:h?fn("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):fn("span",{className:Oo("cleen-w-2 cleen-h-2 cleen-rounded-full",y?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:y?n:void 0}})}),nS("div",{className:Oo("cleen-flex cleen-flex-col",d?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[f.title&&fn("div",{className:Oo("cleen-font-medium cleen-text-sm",y?"cleen-text-primary":"cleen-text-foreground",l?.title),style:{color:y?n:void 0,...i?.title},children:f.title}),f.subtitle&&fn("div",{className:Oo("cleen-text-xs cleen-text-neutral-600",l?.subtitle),style:{color:y?n:void 0,...i?.subtitle},children:f.subtitle})]})]},m)})})})});rS.displayName="Stepper";import{cn as Qe}from"@cleen/ui-core";import{forwardRef as ED,useMemo as aS,useState as Il}from"react";var lS={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 RD,jsx as We,jsxs as xl}from"react/jsx-runtime";var TD=[],ND=ED(function({items:t=TD,value:o,defaultValue:n,onApply:r,onCreate:l,isLoading:a=!1,icon:i,disabled:p=!1,isOpen:s,onOpenChange:d,position:f="bottom-left",zIndex:m,labels:h,className:y,classNames:u,style:v,styles:I,...P},x){let C={...lS,...h},[S,L]=Il(n??[]),k=o??S,[E,F]=Il(!1),M=s??E,[N,w]=Il(k),[O,T]=Il(""),[D,U]=Il([]),[B,R]=Il(!1),z=aS(()=>[...t,...D.filter(oe=>!t.some(se=>se.id===oe.id))],[t,D]),G=O.trim(),A=aS(()=>{let oe=G.toLowerCase();return oe?z.filter(se=>se.label.toLowerCase().includes(oe)):z},[z,G]),V=!!G&&!z.some(oe=>oe.label.toLowerCase()===G.toLowerCase())&&!!l,X=a||B,_=k.length,H=_>0,W=oe=>{oe&&(w(k),T("")),s===void 0&&F(oe),d?.(oe)},$=oe=>{w(se=>se.includes(oe)?se.filter(ze=>ze!==oe):[...se,oe])},J=async()=>{if(!(!l||!G||X)){R(!0);try{let oe=await l(G);oe&&(U(se=>se.some(ze=>ze.id===oe.id)?se:[...se,oe]),w(se=>se.includes(oe.id)?se:[...se,oe.id]),T(""))}finally{R(!1)}}},ee=oe=>{oe.key==="Enter"&&V&&(oe.preventDefault(),J())},xe=()=>{w([])},ge=()=>{let oe=z.filter(se=>N.includes(se.id));o===void 0&&L(N),r?.(N,oe),W(!1)},Ee=xl(RD,{children:[V&&We("div",{className:"cleen-p-1.5",children:We(re,{variant:"borderless-blue",fullWidth:!0,isLoading:X,leftIcon:We(Po,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{J()},classNames:{container:Qe("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",u?.createButton)},styles:{container:I?.createButton},children:We("span",{className:"cleen-truncate",children:C.create(G)})})}),A.length===0?V?null:We("p",{className:Qe("cleen-px-3 cleen-py-4 cleen-text-gray-500 cleen-text-sm cleen-text-center cleen-opacity-50",u?.noData),style:I?.noData,children:z.length===0?C.noData:C.noMatches}):We("ul",{className:Qe("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:I?.list,children:A.map(oe=>xl("li",{onClick:()=>$(oe.id),className:Qe("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:I?.item,children:[We(Vn,{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:Qe("cleen-text-sm cleen-truncate cleen-cursor-pointer",u?.itemLabel)},styles:{checkbox:I?.checkbox,label:I?.itemLabel},checked:N.includes(oe.id),onClick:se=>se.stopPropagation(),label:We("span",{title:oe.label,className:"cleen-select-none",children:oe.label}),fullTriggerArea:!0}),oe.count!==void 0&&We("span",{className:Qe("cleen-shrink-0 cleen-text-gray-500 cleen-text-sm cleen-tabular-nums cleen-opacity-50 cleen-select-none",u?.count),style:I?.count,children:oe.count})]},oe.id))})]}),we=xl("div",{className:Qe("cleen-flex cleen-flex-col",u?.content),style:I?.content,role:"dialog",children:[We(Se,{autoFocus:!0,value:O,onChange:oe=>T(oe.target.value),onKeyDown:ee,placeholder:C.searchPlaceholder,"aria-label":C.searchPlaceholder,leftIcon:We(vt,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:Qe("cleen-shrink-0 cleen-p-1.5 cleen-py-1",u?.search),style:I?.search,classNames:{inputContainer:"cleen-border-0 cleen-shadow-none cleen-rounded-none focus-within:cleen-ring-0",input:"cleen-text-sm"}}),We(Vt,{className:Qe("cleen-shrink-0",u?.divider),style:I?.divider}),We("div",{className:"cleen-flex-1 cleen-min-h-0",children:Ee}),xl("div",{className:Qe("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:I?.footer,children:[We("span",{className:Qe("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",u?.footerText),style:I?.footerText,children:N.length>0?C.selected(N.length):C.footer}),xl("div",{className:Qe("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",u?.footerActions),style:I?.footerActions,children:[We(re,{variant:"secondary",onClick:xe,disabled:N.length===0,classNames:{container:Qe("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.clearButton)},styles:{container:I?.clearButton},children:C.clear}),We(re,{variant:"primary",onClick:ge,classNames:{container:Qe("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.doneButton)},styles:{container:I?.doneButton},children:C.done})]})]})]});return We(Wn,{ref:x,isOpen:M,onOpenChange:W,position:f,zIndex:m,content:we,className:y,style:v,classNames:{trigger:Qe(p&&"cleen-pointer-events-none"),popover:Qe("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",u?.popover)},styles:{popover:I?.popover},...P,children:xl("button",{type:"button",disabled:p,"aria-label":C.trigger,"aria-haspopup":"dialog","aria-expanded":M,className:Qe("cleen-flex cleen-items-center cleen-gap-1 cleen-bg-background cleen-shadow-sm cleen-px-2.5 cleen-py-2 cleen-border cleen-border-border cleen-rounded-lg cleen-text-muted-foreground cleen-transition-colors cleen-duration-200 hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2",{"cleen-border-primary-300 cleen-bg-primary-50 cleen-text-primary hover:cleen-bg-primary-100":H,"cleen-opacity-50 cleen-cursor-not-allowed":p},u?.trigger,H&&u?.triggerActive),style:{...I?.trigger,...H?I?.triggerActive:{}},children:[i??We(Oa,{className:"cleen-size-4 cleen-shrink-0"}),H&&We("span",{className:Qe("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:I?.badge,children:_}),We(Sn,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var Fb={default:"Default","sans-serif":"Sans-serif",serif:"Serif",monospace:"Monospace",cursive:"Cursive",fantasy:"Fantasy"},Ab={white:"White",yellow:"Yellow",green:"Green",cyan:"Cyan",blue:"Blue",magenta:"Magenta",red:"Red",black:"Black"},Ob={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:Fb,captionColors:Ab,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 _b=10,Lp=1.7777777777777777,Vb=1080,Cl=-1,zb=.5,Hb=2,cS=.25,_c=.05,iS=2500,sS=5,pS=.5,Vc=5,dS=480,mS=24,uS=16,Dp="--cleen-video-player-height",BD=.045,LD=12,DD=32,fS=`clamp(${LD}px, calc(var(${Dp}, 360px) * ${BD}), ${DD}px)`,hS=250,gS=40,Ub="cleen-video-player-caption-style",hn={fontFamily:"default",fontColor:"white",fontSize:1,backgroundColor:"black",backgroundOpacity:.75},Pl={default:void 0,"sans-serif":"sans-serif",serif:"serif",monospace:"monospace",cursive:"cursive",fantasy:"fantasy"},zc={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]},Fp=[.5,.75,1,1.25,1.5,1.75,2],Ap=[0,.25,.5,.75,1],bS=72,yS=240,vS=3,IS={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 FD,useEffect as $b,useImperativeHandle as AD,useRef as OD}from"react";import{jsx as HD}from"react/jsx-runtime";var _D=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],VD=e=>{let t=_D;return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))},zD=FD(function({playing:t=!1,volume:o,playbackRate:n,...r},l){let a=OD(null);return AD(l,()=>a.current,[]),$b(()=>{let i=a.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,r.src]),$b(()=>{a.current&&o!==void 0&&(a.current.volume=o)},[o]),$b(()=>{a.current&&n!==void 0&&(a.current.playbackRate=n)},[n]),HD("video",{...VD(r),ref:a,width:"100%",height:"100%"})});import{forwardRef as UD}from"react";import $D from"react-player";import{jsx as GD}from"react/jsx-runtime";var Gb=UD(function(t,o){return GD($D,{...t,ref:o,width:"100%",height:"100%"})});var Hc=(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))(Hc||{});var Sl=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),r=t%60,l=a=>String(a).padStart(2,"0");return o>0?`${o}:${l(n)}:${l(r)}`:`${n}:${l(r)}`},Wb=(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,r)=>n.start-r.start);return o.map((n,r)=>{let l=o[r+1]?.start??t,a=n.end!==void 0&&Number.isFinite(n.end)?Math.min(Math.max(n.end,n.start),l):l;return{...n,end:a}}).filter(n=>n.end>n.start)},qb=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),xS=e=>e?Array.from({length:e.length},(t,o)=>({start:e.start(o),end:e.end(o)})):[],CS=(e,t)=>e.length===t.length&&e.every((o,n)=>o.start===t[n].start&&o.end===t[n].end),PS=(e,t,o)=>{let n=o-t;if(!(n>0)||!Number.isFinite(n))return[];let r=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),l=[];return r.forEach(a=>{let i=l[l.length-1];i&&a.start<=i.end?i.end=Math.max(i.end,a.end):l.push({...a})}),l.map(a=>({left:(a.start-t)/n,width:(a.end-a.start)/n}))},ur=({width:e,height:t})=>e>0&&t>0?Math.min(e,t):Math.max(e,t,0),Kb=(e,t)=>{if(!(t!==void 0&&t>0)||e.length===0)return-1;let o=[...e].sort((r,l)=>ur(r)-ur(l)||r.bitrate-l.bitrate),n=o.filter(r=>ur(r)<=t);return(n[n.length-1]??o[0]).index},SS=(e,t)=>{let o=[...e].sort((n,r)=>ur(r)-ur(n)||r.bitrate-n.bitrate);return o.map(n=>{let r=ur(n),l=r>0?t(r):`${Math.round(n.bitrate/1e3)} kbps`,a=o.filter(i=>ur(i)===r);return{value:n.index,label:r>0&&a.length>1?`${l} (${(n.bitrate/1e6).toFixed(1)} Mbps)`:l}})},WD=(e,t)=>{let o=-1;return e.forEach((n,r)=>{t>=n.start&&(o=r)}),Math.max(o,0)},$c=(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),MS=(e,t)=>{let o=Array.from(e).filter(n=>n.kind==="chapters");return t&&o.find(n=>n.language===t)||o[0]},wS=e=>Array.from(e).map(t=>({start:t.startTime,end:t.endTime,title:t.text?.replace(/<[^>]*>/g,"").trim()||void 0})),_p=e=>Array.from(e).filter(({kind:t="subtitles"})=>["subtitles","captions"].includes(t)),kS=(e,t,o)=>e.label||e.srcLang||o(t+1),Uc=(e,t)=>e.includes(t),Xb=e=>{let t=e&&typeof e=="object"?e:{},o=Object.keys(zc),n=Object.keys(Pl);return{fontFamily:Uc(n,t.fontFamily)?t.fontFamily:hn.fontFamily,fontColor:Uc(o,t.fontColor)?t.fontColor:hn.fontColor,fontSize:Uc(Fp,t.fontSize)?t.fontSize:hn.fontSize,backgroundColor:Uc(o,t.backgroundColor)?t.backgroundColor:hn.backgroundColor,backgroundOpacity:Uc(Ap,t.backgroundOpacity)?t.backgroundOpacity:hn.backgroundOpacity}},Op=(e,t=1)=>`rgba(${zc[e].join(",")},${t})`,ES=({fontFamily:e,fontColor:t,fontSize:o,backgroundColor:n,backgroundOpacity:r})=>({fontFamily:Pl[e],fontSize:`calc(${fS} * ${o})`,color:Op(t),backgroundColor:Op(n,r)});import{cn as qc}from"@cleen/ui-core";import{forwardRef as YF,useCallback as st,useImperativeHandle as QF,useMemo as iy,useReducer as ZF,useRef as TM,useState as JF}from"react";import{cn as yr}from"@cleen/ui-core";var gn="cleen-text-[#fff]",Yb="cleen-text-[rgba(255,255,255,0.45)]",TS="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",NS="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",RS="!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)]",bn="focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",Vp="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",zp="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as LS}from"@cleen/ui-core";import{useLayoutEffect as XD,useRef as YD}from"react";import{useEffect as qD,useState as KD}from"react";var Hp=[],BS=(e,t,o,n,r)=>{let[l,a]=KD(Hp);return qD(()=>{let i=e.current?.textTracks;if(!t||!i)return;let p,s=()=>a(p?.activeCues?Array.from(p.activeCues):Hp),d=()=>{let f=_p(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(Hp)}},[t,o,n,r,e]),t?l:Hp};import{jsx as Qb}from"react/jsx-runtime";var QD=e=>typeof VTTCue<"u"&&e instanceof VTTCue?e.getCueAsHTML():"",ZD=({cue:e,className:t,style:o})=>{let n=YD(null);return XD(()=>{n.current?.replaceChildren(QD(e))},[e]),Qb("span",{ref:n,className:t,style:o})},DS=({videoRef:e,src:t,showCaptions:o,trackIndex:n,captionStyle:r,pictureInPicture:l,hidden:a,controlsVisible:i,controlsOnHover:p,classNames:s,styles:d})=>{let f=BS(e,o&&!l,n,t,!a);return a||l||f.length===0?null:Qb("div",{className:LS("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,h)=>Qb(ZD,{cue:m,className:LS("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:{...ES(r),...d?.captionsText}},`${m.id}-${m.startTime}-${h}`))})};import{cn as JD}from"@cleen/ui-core";import{forwardRef as jD}from"react";import{jsx as eF}from"react/jsx-runtime";var so=jD(function({label:t,onClick:o,disabled:n,active:r,className:l,style:a,children:i},p){return eF("button",{ref:p,type:"button","aria-label":t,"aria-pressed":r,onClick:o,disabled:n,className:JD("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",bn,l),style:a,children:i})});import{cn as po}from"@cleen/ui-core";import{useRef as VS}from"react";import{useCallback as tF,useEffect as oF,useRef as FS,useState as nF}from"react";var AS=(e,t)=>{let[o,n]=nF(null),r=FS(!1),l=FS(!1),a=tF(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 oF(()=>{let p=d=>{r.current&&a(d.clientX)},s=()=>{r.current=!1,l.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=>{l.current=!0,a(p.clientX)},onPointerMove:p=>a(p.clientX),onPointerDown:p=>{r.current=!0,a(p.clientX)},onPointerLeave:()=>{l.current=!1,r.current||n(null)}}}};import{cn as rF}from"@cleen/ui-core";import{Fragment as lF,jsx as OS}from"react/jsx-runtime";var Up=({buffered:e,start:t,end:o,className:n,style:r})=>OS(lF,{children:PS(e,t,o).map(l=>OS("div",{"aria-hidden":!0,className:rF("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:{...r,left:`${l.left*100}%`,width:`${l.width*100}%`}},l.left))});import{cn as $p}from"@cleen/ui-core";import{jsx as Gp,jsxs as aF}from"react/jsx-runtime";var _S=({chapters:e,duration:t,currentTime:o,buffered:n,classNames:r,styles:l})=>Gp("div",{"aria-hidden":!0,className:$p("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-h-1 -cleen-translate-y-1/2 cleen-pointer-events-none",r?.chapters),style:l?.chapters,children:e.map(a=>Gp("div",{className:$p("cleen-absolute cleen-inset-y-0 cleen-pr-0.5 last:cleen-pr-0",r?.chapter),style:{...l?.chapter,left:`${a.start/t*100}%`,width:`${(a.end-a.start)/t*100}%`},children:aF("div",{className:$p("cleen-relative cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-h-full cleen-overflow-hidden",r?.chapterTrack),style:l?.chapterTrack,children:[Gp(Up,{buffered:n,start:a.start,end:a.end,className:r?.chapterBuffered,style:l?.chapterBuffered}),Gp("div",{className:$p("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",r?.chapterFill),style:{...l?.chapterFill,width:`${qb(a,o)*100}%`}})]})},a.start))});import{Fragment as cF,jsx as fr,jsxs as Wp}from"react/jsx-runtime";var zS=({allowBarSeeking:e,chapters:t,duration:o,currentTime:n,buffered:r,onSeek:l,seekLabel:a,progressLabel:i,classNames:p,styles:s})=>{let d=VS(null),f=VS(null),{preview:m,previewHandlers:h}=AS(d,o),y=m?$c(t,m.time):void 0,u=t.length>0,v=u&&fr(_S,{chapters:t,duration:o,currentTime:n,buffered:r,classNames:p,styles:s}),I=fr(Up,{buffered:r,start:0,end:o,className:p?.seekBuffered,style:s?.seekBuffered}),P=f.current?.offsetWidth||0;if(e){let C=p?.seekSlider?.classNames;return Wp("div",{ref:d,role:"group","aria-label":a,className:po("cleen-relative",p?.seekBar),style:s?.seekBar,...h,children:[v||fr("div",{"aria-hidden":!0,className:po("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:I}),m&&Wp("div",{ref:f,"aria-hidden":!0,className:po("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",gn,{"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:[fr("span",{children:Sl(m.time)}),y?.title&&Wp("span",{className:po("cleen-font-medium cleen-truncate",p?.seekTooltipChapter),style:s?.seekTooltipChapter,children:["\xB7 ",y.title]})]}),fr(dr,{value:n,maxValue:o,step:.01,keyboardStep:Vc,onChange:l,className:po("cleen-relative cleen-flex cleen-items-center cleen-h-3.5 cleen-cursor-pointer",p?.seekSlider?.className),classNames:{...C,track:po("!cleen-h-4",C?.track),path:po("!cleen-bg-transparent",C?.path),filledTrack:po({"!cleen-bg-transparent":u},C?.filledTrack)},tooltip:{isDisabled:!0},...s?.seekSlider})]})}let x=o>0?Math.min(n/o*100,100):0;return fr("div",{role:"progressbar","aria-label":i,"aria-valuemin":0,"aria-valuemax":Math.floor(o),"aria-valuenow":Math.floor(n),className:po("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||Wp(cF,{children:[I,fr("div",{className:po("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:`${x}%`}})]})})};import{cn as yn}from"@cleen/ui-core";import{useEffect as dF,useRef as KS,useState as XS}from"react";import{cn as iF}from"@cleen/ui-core";import{cn as mo}from"@cleen/ui-core";import{useId as HS}from"react";import{jsx as hr,jsxs as Zb}from"react/jsx-runtime";var Gc=({title:e,children:t,onReset:o,resetLabel:n,classNames:r,styles:l})=>{let a=HS();return Zb("section",{"aria-labelledby":a,className:mo("cleen-flex cleen-flex-col cleen-gap-3",r?.settingsGroup),style:l?.settingsGroup,children:[Zb("div",{className:mo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",r?.settingsGroupHeader),style:l?.settingsGroupHeader,children:[hr("h3",{id:a,className:mo("cleen-font-semibold cleen-text-foreground cleen-text-xs",r?.settingsGroupTitle),style:l?.settingsGroupTitle,children:e}),o&&hr("button",{type:"button",onClick:o,className:mo("cleen-font-semibold cleen-text-xs cleen-text-primary hover:cleen-underline",r?.settingsResetButton),style:l?.settingsResetButton,children:n})]}),t]})},_o=({label:e,options:t,value:o,onChange:n,classNames:r,styles:l})=>{let a=HS(),i=hr("div",{role:e?"group":void 0,"aria-labelledby":e?a:void 0,className:mo("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-1.5",r?.settingsOptions),style:l?.settingsOptions,children:t.map(p=>{let s=p.value===o;return p.swatch?hr("button",{type:"button","aria-label":p.ariaLabel,"aria-pressed":s,title:p.ariaLabel,onClick:()=>n(p.value),className:mo("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",r?.settingsSwatch,s&&["cleen-ring-2 cleen-ring-primary cleen-ring-offset-2 cleen-ring-offset-background",r?.settingsSwatchActive]),style:{backgroundColor:p.swatch,...p.style,...l?.settingsSwatch,...s?l?.settingsSwatchActive:void 0}},p.value):hr("button",{type:"button","aria-label":p.ariaLabel,"aria-pressed":s,onClick:()=>n(p.value),className:mo("cleen-rounded focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",r?.settingsOption,s&&r?.settingsOptionActive),style:{...p.style,...l?.settingsOption,...s?l?.settingsOptionActive:void 0},children:hr(Ne,{color:s?"primary":"foreground-transparent",variant:"sleek",className:r?.settingsOptionBadge?.className,classNames:{...r?.settingsOptionBadge?.classNames,container:mo("cleen-font-medium",s?"hover:cleen-bg-primary-100":"hover:cleen-bg-muted",r?.settingsOptionBadge?.classNames?.container)},...l?.settingsOptionBadge,children:p.label})},p.value)})});return e?Zb("div",{className:mo("cleen-flex cleen-flex-col cleen-gap-1.5",r?.settingsField),style:l?.settingsField,children:[hr("span",{id:a,className:mo("cleen-text-muted-foreground cleen-text-xs",r?.settingsFieldLabel),style:l?.settingsFieldLabel,children:e}),i]}):i};import{jsx as gr,jsxs as US}from"react/jsx-runtime";var Jb=-1,sF=e=>`${Math.round(e*100)}%`,$S=({tracks:e,trackIndex:t,showCaptions:o,captionStyle:n,onCaptionStyleChange:r,dispatch:l,labels:a,classNames:i,styles:p})=>{let s={classNames:i,styles:p},d=t<e.length?t:0,f=[{value:Jb,label:a.captionsOff},...e.map((u,v)=>({value:v,label:kS(u,v,a.captionsTrack)}))],m=Object.keys(Pl).map(u=>({value:u,label:a.captionFontFamilies[u]??Fb[u],style:{fontFamily:Pl[u]}})),h=Object.keys(zc).map(u=>{let v=a.captionColors[u]??Ab[u];return{value:u,label:v,ariaLabel:v,swatch:Op(u)}}),y=u=>u.map(v=>({value:v,label:sF(v)}));return US("div",{className:iF("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",i?.captionsSettings),style:p?.captionsSettings,children:[gr(Gc,{title:a.language,...s,children:gr(_o,{options:f,value:o?d:Jb,onChange:u=>l(u===Jb?{type:"hideCaptions"}:{type:"selectCaptionsTrack",index:u}),...s})}),US(Gc,{title:a.captionStyle,onReset:()=>r(hn),resetLabel:a.resetCaptionStyle,...s,children:[gr(_o,{label:a.fontFamily,options:m,value:n.fontFamily,onChange:u=>r({fontFamily:u}),...s}),gr(_o,{label:a.fontColor,options:h,value:n.fontColor,onChange:u=>r({fontColor:u}),...s}),gr(_o,{label:a.fontSize,options:y(Fp),value:n.fontSize,onChange:u=>r({fontSize:u}),...s}),gr(_o,{label:a.backgroundColor,options:h,value:n.backgroundColor,onChange:u=>r({backgroundColor:u}),...s}),gr(_o,{label:a.backgroundOpacity,options:y(Ap),value:n.backgroundOpacity,onChange:u=>r({backgroundOpacity:u}),...s})]})]})};import{cn as pF}from"@cleen/ui-core";import{jsx as jb}from"react/jsx-runtime";var GS=({quality:e,labels:t,classNames:o,styles:n})=>{let r=SS(e.levels,t.qualityLevel),l=r.find(i=>i.value===e.current)?.label,a=[{value:Cl,label:t.qualityAuto(l)},...r];return jb("div",{className:pF("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",o?.qualitySettings),style:n?.qualitySettings,children:jb(Gc,{title:t.quality,classNames:o,styles:n,children:jb(_o,{options:a,value:e.selected,onChange:e.onChange,classNames:o,styles:n})})})};import{cn as qp}from"@cleen/ui-core";import{jsx as ey,jsxs as WS}from"react/jsx-runtime";var qS=({playbackRate:e,dispatch:t,label:o,classNames:n,styles:r})=>WS("div",{className:qp("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",n?.speedContent),style:r?.speedContent,children:[WS("div",{className:qp("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",n?.speedHeader),style:r?.speedHeader,children:[ey("span",{className:n?.speedLabel,style:r?.speedLabel,children:o}),ey("span",{className:qp("cleen-tabular-nums cleen-text-primary",n?.speedValue),style:r?.speedValue,children:`${e.toFixed(2)}\xD7`})]}),ey(dr,{minValue:zb,maxValue:Hb,step:cS,value:e,onChange:l=>t({type:"setPlaybackRate",playbackRate:l}),className:qp("cleen-w-full",n?.speedSlider?.className),classNames:n?.speedSlider?.classNames,labels:{minLabel:`${zb}\xD7`,maxLabel:`${Hb}\xD7`},...r?.speedSlider})]});import{jsx as Gt}from"react/jsx-runtime";var Ml=18,YS=["button:not(:disabled)","[href]","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)","[tabindex]"].map(e=>`${e}:not([tabindex="-1"])`).join(", "),QS=({containerRef:e,portalContainer:t,isOpen:o,onOpenChange:n,showQualityTab:r,quality:l,showSpeedTab:a,showCaptionsTab:i,playbackRate:p,captionTracks:s,captionsTrackIndex:d,showCaptions:f,captionStyle:m,onCaptionStyleChange:h,dispatch:y,labels:u,iconSize:v,classNames:I,styles:P})=>{let[x,C]=XS(0),[S,L]=XS(),k=KS(null),E=KS(null),F=D=>{n(!1),D&&k.current?.focus()};dF(()=>{if(!o)return;let D=requestAnimationFrame(()=>{let B=E.current;(B?.querySelector('[role="tab"][aria-selected="true"]')??B?.querySelector(YS))?.focus({preventScroll:!0})}),U=B=>{B.key==="Escape"&&(n(!1),document.activeElement===k.current&&k.current?.focus())};return document.addEventListener("keydown",U),()=>{cancelAnimationFrame(D),document.removeEventListener("keydown",U)}},[o,n]);let M=I?.settingsPopover?.classNames,N=I?.settingsTabs?.classNames,w=D=>{if(D){let U=e.current?.clientHeight;L(U===void 0?void 0:Math.min(yS,U-bS))}n(D)},O=D=>{if(D.stopPropagation(),D.key==="Escape"){F(!0);return}if(D.key==="Tab"&&E.current){let U=Array.from(E.current.querySelectorAll(YS)),B=U[0],R=U[U.length-1];D.shiftKey&&document.activeElement===B?(D.preventDefault(),R?.focus()):!D.shiftKey&&document.activeElement===R&&(D.preventDefault(),B?.focus())}},T=[...r?[{id:"quality",label:Gt(Vl,{width:Ml,height:Ml}),content:Gt(GS,{quality:l,labels:u,classNames:I,styles:P})}]:[],...a?[{id:"speed",label:Gt(Da,{width:Ml,height:Ml}),content:Gt(qS,{playbackRate:p,dispatch:y,label:u.playbackSpeed,classNames:I,styles:P})}]:[],...i?[{id:"captions",label:Gt(Kl,{width:Ml,height:Ml}),content:Gt($S,{tracks:s,trackIndex:d,showCaptions:f,captionStyle:m,onCaptionStyleChange:h,dispatch:y,labels:u,classNames:I,styles:P})}]:[]];return Gt(Wn,{position:"top-right",isOpen:o,onOpenChange:w,portalContainer:t,className:I?.settingsPopover?.className,classNames:{...M,popover:yn("!cleen-w-72 cleen-flex cleen-flex-col cleen-overflow-hidden",M?.popover),trigger:yn("cleen-flex cleen-items-center",M?.trigger)},...P?.settingsPopover,styles:{...P?.settingsPopover?.styles,popover:{height:S,...P?.settingsPopover?.styles?.popover}},content:Gt("div",{ref:E,className:"cleen-flex cleen-flex-col cleen-min-h-0",onKeyDown:O,onDoubleClick:D=>D.stopPropagation(),children:Gt(Cc,{tabs:T,currentTabIndex:Math.min(x,T.length-1),onTabChange:C,variant:"underlined",className:yn("cleen-flex cleen-flex-col cleen-min-h-0",I?.settingsTabs?.className),classNames:{...N,container:yn("cleen-flex cleen-flex-col cleen-min-h-0",N?.container),list:yn("cleen-shrink-0 cleen-mb-0 cleen-px-3 cleen-pt-2",N?.list),tab:yn("cleen-pb-2",N?.tab),content:yn("cleen-min-h-0 cleen-overflow-y-auto",N?.content)},...P?.settingsTabs})}),children:Gt(so,{ref:k,label:u.settings,active:o,className:yn(I?.controlButton,I?.settingsButton),style:{...P?.controlButton,...P?.settingsButton},children:Gt(Ta,{width:v,height:v})})})};import{cn as ZS}from"@cleen/ui-core";import{jsx as ty}from"react/jsx-runtime";var JS=({hasTracks:e,showCaptions:t,onToggle:o,portalContainer:n,labels:r,classNames:l,styles:a})=>{let i=l?.subtitlesBadge?.classNames;return ty(_e,{label:e?r.subtitles:r.noSubtitles,className:l?.subtitlesTooltip?.className,classNames:l?.subtitlesTooltip?.classNames,portalContainer:n,...a?.subtitlesTooltip,children:ty("button",{type:"button","aria-label":r.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:o,className:ZS("cleen-rounded-md disabled:cleen-opacity-40",bn,l?.subtitlesButton),style:a?.subtitlesButton,children:ty(Ne,{variant:"sleek",className:l?.subtitlesBadge?.className,classNames:{...i,container:ZS(TS,{[NS]:e},{[RS]:t},i?.container)},...a?.subtitlesBadge,children:r.subtitlesBadge})})})};import{jsx as br,jsxs as mF}from"react/jsx-runtime";var jS=({muted:e,volume:t,size:o})=>e||t===0?br($a,{width:o,height:o}):t<.75?br(Ua,{width:o,height:o}):br(Ha,{width:o,height:o}),eM=({isFullscreen:e,size:t})=>e?br(ya,{width:t,height:t}):br(ha,{width:t,height:t}),wl=({forward:e,seconds:t,size:o})=>mF("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[br(e?ka:wa,{width:o,height:o}),br("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(o*.34)},children:t})]});import{cn as Kp}from"@cleen/ui-core";import{jsx as Xp,jsxs as uF}from"react/jsx-runtime";var tM=({muted:e,volume:t,dispatch:o,labels:n,iconSize:r,classNames:l,styles:a})=>uF("div",{className:Kp("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2 cleen-min-w-0",l?.volume),style:a?.volume,children:[Xp(so,{label:e?n.unmute:n.mute,active:e,onClick:()=>o({type:"toggleMuted"}),className:Kp(l?.controlButton,l?.muteButton),style:{...a?.controlButton,...a?.muteButton},children:Xp(jS,{muted:e,volume:t,size:r})}),Xp("div",{role:"group","aria-label":n.volume,className:Kp("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",l?.volumeSliderContainer),style:a?.volumeSliderContainer,children:Xp(dr,{minValue:0,maxValue:1,step:_c,value:e?0:t,onChange:i=>o({type:"setVolume",volume:i,muted:i===0}),className:Kp("cleen-w-full",l?.volumeSlider?.className),classNames:l?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...a?.volumeSlider})})]});import{jsx as Ke,jsxs as Wc}from"react/jsx-runtime";var oM=({containerRef:e,portalContainer:t,videoRef:o,src:n,state:r,dispatch:l,isShown:a,allowBarSeeking:i,chapters:p,buffered:s,seekStep:d,quality:f,hasTracks:m,captionTracks:h,captionStyle:y,onCaptionStyleChange:u,onSettingsOpenChange:v,visible:I,hidden:P,controlsOnHover:x,onSeek:C,onSeekBy:S,onTogglePlay:L,onToggleFullscreen:k,pictureInPictureSupported:E,onTogglePictureInPicture:F,labels:M,compact:N,classNames:w,styles:O})=>{let{playing:T,currentTime:D,duration:U,muted:B,volume:R,playbackRate:z,showCaptions:G,captionsTrackIndex:A,settingsOpen:V,isPictureInPicture:X,isFullscreen:_}=r,H=N?uS:mS,W=$c(p,D)?.title,$=x&&!V,J=a("quality")&&f.levels.length>0,ee=a("speed"),xe=a("subtitles")&&h.length>0,ge=Ee=>({className:yr(w?.controlButton,w?.[Ee]),style:{...O?.controlButton,...O?.[Ee]}});return Wc("div",{className:yr("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-pointer-events-none",{"cleen-hidden":P},w?.controlBar),style:O?.controlBar,children:[Ke(DS,{videoRef:o,src:n,showCaptions:G,trackIndex:A,captionStyle:y,pictureInPicture:X,hidden:P,controlsVisible:I,controlsOnHover:$,classNames:w,styles:O}),Wc("div",{className:yr("cleen-flex cleen-flex-col cleen-gap-2.5 cleen-bg-gradient-to-t cleen-from-[rgba(0,0,0,0.5)] cleen-to-transparent cleen-px-4 cleen-pt-2.5 cleen-pb-4 cleen-transition-opacity cleen-duration-300",I?$?"cleen-opacity-0 group-hover:cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-100 cleen-pointer-events-auto":"cleen-opacity-0",w?.controls),style:O?.controls,children:[a("seekbar")&&Ke(zS,{allowBarSeeking:i,chapters:p,duration:U,currentTime:D,buffered:s,onSeek:C,seekLabel:M.seek,progressLabel:M.progress,classNames:w,styles:O}),Wc("div",{className:yr("cleen-flex cleen-items-center","cleen-gap-2.5",{"sm:cleen-gap-3.5":!N},gn,w?.controlsRow),style:O?.controlsRow,children:[a("play")&&!N&&Ke(so,{label:T?M.pause:M.play,onClick:L,...ge("playButton"),children:T?Ke(Ot,{width:H,height:H}):Ke(_t,{width:H,height:H})}),a("backward")&&Ke(so,{label:M.seekBackward(d),onClick:()=>S(-d),...ge("backwardButton"),children:Ke(wl,{seconds:d,size:H})}),a("forward")&&Ke(so,{label:M.seekForward(d),onClick:()=>S(d),...ge("forwardButton"),children:Ke(wl,{forward:!0,seconds:d,size:H})}),a("volume")&&Ke(tM,{muted:B,volume:R,dispatch:l,labels:M,iconSize:H,classNames:w,styles:O}),a("time")&&Wc("span",{className:yr("cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap",{"cleen-text-xxs":N},w?.time),style:O?.time,children:[Ke("span",{className:w?.currentTime,style:O?.currentTime,children:Sl(D)})," ",Wc("span",{className:yr("cleen-font-medium",Yb,w?.duration),style:O?.duration,children:["/ ",Sl(U)]})]}),W?Ke("span",{title:W,className:yr("cleen-flex-1 cleen-min-w-0 cleen-font-medium cleen-text-[13px] cleen-truncate",Yb,w?.chapterTitle),style:O?.chapterTitle,children:W}):Ke("span",{className:"cleen-flex-1"}),a("subtitles")&&m&&!N&&Ke(JS,{hasTracks:m,showCaptions:G,onToggle:()=>l({type:"toggleCaptions"}),portalContainer:t,labels:M,classNames:w,styles:O}),a("settings")&&(J||ee||xe)&&Ke(QS,{containerRef:e,portalContainer:t,isOpen:V,onOpenChange:v,showQualityTab:J,quality:f,showSpeedTab:ee,showCaptionsTab:xe,playbackRate:z,captionTracks:h,captionsTrackIndex:A,showCaptions:G,captionStyle:y,onCaptionStyleChange:u,dispatch:l,labels:M,iconSize:H,classNames:w,styles:O}),a("pictureInPicture")&&E&&Ke(so,{label:X?M.exitPictureInPicture:M.pictureInPicture,active:X,onClick:F,...ge("pictureInPictureButton"),children:Ke(Pa,{width:H,height:H})}),a("fullscreen")&&Ke(so,{label:_?M.exitFullscreen:M.fullscreen,active:_,onClick:k,...ge("fullscreenButton"),children:Ke(eM,{isFullscreen:_,size:H})})]})]})]})};import{cn as nM}from"@cleen/ui-core";import{cn as fF}from"@cleen/ui-core";import{jsx as hF}from"react/jsx-runtime";var oy=({label:e,onClick:t,className:o,style:n,children:r})=>hF("button",{type:"button","aria-label":e,onClick:t,className:fF("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",Vp,zp,gn,bn,o),style:n,children:r});import{jsx as vr,jsxs as gF}from"react/jsx-runtime";var rM=({playing:e,seekStep:t,visible:o,hidden:n,controlsOnHover:r,isShown:l,onTogglePlay:a,onSeekBy:i,labels:p,classNames:s,styles:d})=>gF("div",{className:nM("cleen-relative cleen-flex cleen-items-center cleen-gap-6 cleen-transition-opacity cleen-duration-300",o?r?"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:[l("backward")&&vr(oy,{label:p.seekBackward(t),onClick:()=>i(-t),className:s?.overlayButton,style:d?.overlayButton,children:vr(wl,{seconds:t,size:26})}),l("play")&&vr("button",{type:"button","aria-label":e?p.pause:p.play,onClick:a,className:nM("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",Vp,zp,gn,bn,s?.overlayPlayButton),style:d?.overlayPlayButton,children:e?vr(Ot,{width:28,height:28}):vr(_t,{width:28,height:28})}),l("forward")&&vr(oy,{label:p.seekForward(t),onClick:()=>i(t),className:s?.overlayButton,style:d?.overlayButton,children:vr(wl,{forward:!0,seconds:t,size:26})})]});import{cn as ny}from"@cleen/ui-core";import{jsx as lM,jsxs as bF}from"react/jsx-runtime";var aM=({label:e,subLabel:t,classNames:o,styles:n})=>bF("div",{className:ny("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:[lM("span",{className:ny("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",o?.placeholderLabel),style:n?.placeholderLabel,children:e}),t&&lM("span",{className:ny("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",o?.placeholderSubLabel),style:n?.placeholderSubLabel,children:t})]});import{useEffect as cM,useState as yF}from"react";var ry=[],iM=["progress","timeupdate","loadedmetadata","durationchange","seeked","emptied"],sM=(e,t,o)=>{let[n,r]=yF(ry);return cM(()=>{r(ry)},[t]),cM(()=>{let l=e.current;if(!l)return;let a=()=>{let i=xS(l.buffered);r(p=>CS(p,i)?p:i.length>0?i:ry)};return a(),iM.forEach(i=>l.addEventListener(i,a)),()=>iM.forEach(i=>l.removeEventListener(i,a))},[e,t,o]),n};import{useCallback as vF,useState as IF}from"react";var xF=()=>{try{let e=window.localStorage.getItem(Ub);return Xb(e?JSON.parse(e):void 0)}catch{return Xb(void 0)}},pM=()=>{let[e,t]=IF(xF),o=vF(n=>{t(r=>{let l={...r,...n};try{window.localStorage.setItem(Ub,JSON.stringify(l))}catch{}return l})},[]);return{captionStyle:e,updateCaptionStyle:o}};import{useEffect as CF,useState as PF}from"react";var ly=[],dM=(e,t,o,n)=>{let[r,l]=PF(ly);return CF(()=>{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 l(u&&y?wS(y):ly),u},f=()=>{clearInterval(s);let y=0;s=setInterval(()=>{y+=1,(d()||y>=gS)&&clearInterval(s)},hS)},m=()=>{let y=MS(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()},h=y=>{y.target instanceof HTMLTrackElement&&d()};return m(),i.addEventListener("addtrack",m),i.addEventListener("removetrack",m),a.addEventListener("load",h,!0),()=>{clearInterval(s),i.removeEventListener("addtrack",m),i.removeEventListener("removetrack",m),a.removeEventListener("load",h,!0),p&&(p.removeEventListener("cuechange",d),p.mode="disabled"),l(ly)}},[e,t,o,n]),r};import{useEffect as SF,useState as MF}from"react";var mM=e=>{let[t,o]=MF(!1);return SF(()=>{let n=e.current;if(!n||typeof ResizeObserver>"u")return;let r=new ResizeObserver(([l])=>{o(l.contentRect.width<dS)});return r.observe(n),()=>r.disconnect()},[e]),t};import{useCallback as uo,useEffect as wF,useRef as uM,useState as kF}from"react";var fM=e=>{try{return e.matches(":focus-visible")}catch{return!1}},EF=()=>typeof window<"u"&&window.matchMedia?.("(hover: none)").matches?"touch":"mouse",hM=(e,t,o,n,r)=>{let l=uM(void 0),a=uM(void 0),[i,p]=kF(EF),s=uo(()=>{let C=n.current,S=document.activeElement;return!!C&&!!S&&S!==C&&C.contains(S)&&fM(S)},[n]),d=uo(()=>{clearTimeout(l.current);let C=()=>{l.current=setTimeout(()=>{if(s()){C();return}o({type:"setControlsActive",controlsActive:!1})},iS)};C()},[o,s]),f=uo(()=>{o({type:"setControlsActive",controlsActive:!0}),d()},[o,d]),m=uo(()=>{e&&!s()&&(clearTimeout(l.current),o({type:"setControlsActive",controlsActive:!1}))},[o,s,e]);wF(()=>{if(!e){clearTimeout(l.current),o({type:"setControlsActive",controlsActive:!0});return}return d(),()=>clearTimeout(l.current)},[o,e,d]);let h=!e||t,y=uo(C=>{C.pointerType==="mouse"&&(p("mouse"),f())},[f]),u=uo(C=>{C.pointerType==="mouse"&&m()},[m]),v=uo(C=>{if(a.current=C.pointerType,C.pointerType!=="touch"){p("mouse");return}p("touch"),C.target!==r.current&&f()},[r,f]),I=uo(C=>{C.metaKey||C.ctrlKey||C.altKey||(p("keyboard"),f())},[f]),P=uo(C=>{C.target!==C.currentTarget&&fM(C.target)&&(p("keyboard"),f())},[f]),x=uo(()=>a.current!=="touch"?!1:(h&&e?m():f(),!0),[h,m,e,f]);return{controlsVisible:h,inputMode:i,revealControls:f,handleMediaClick:x,containerHandlers:{onPointerMove:y,onPointerLeave:u,onPointerDown:v,onKeyDown:I,onFocus:P}}};import{useCallback as TF,useEffect as NF}from"react";var gM=(e,t,o)=>(NF(()=>{let n=()=>o({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",n),()=>document.removeEventListener("fullscreenchange",n)},[e,o]),TF(()=>{let n=e.current;!n||!t||(document.fullscreenElement?document.exitFullscreen():n.requestFullscreen?.())},[e,t]));import{useLayoutEffect as RF,useRef as BF}from"react";var bM=(e,t)=>{let o=BF(null);RF(()=>{let n=e.current;if(!n)return;if(t){let l=document.activeElement;l instanceof HTMLElement&&l!==n&&n.contains(l)&&(o.current=l,n.focus({preventScroll:!0}));return}let r=o.current;o.current=null,r?.isConnected&&document.activeElement===n&&r.focus({preventScroll:!0})},[e,t])};import{useCallback as LF}from"react";var DF='input, textarea, select, [contenteditable]:not([contenteditable="false"])',FF='button, a[href], [role="button"], [role="tab"]',AF='[role="slider"], [role="radiogroup"], [role="tablist"]',OF=e=>{let t=e.target;return t===e.currentTarget?!1:t.closest(DF)?!0:e.key===" "||e.key==="Enter"?!!t.closest(FF):e.key.startsWith("Arrow")||e.key==="Home"||e.key==="End"?!!t.closest(AF):!1},yM=({volume:e,canSeekBackward:t,canSeekForward:o,canUseVolume:n,canUseCaptions:r,dispatch:l,seekBy:a,seekToPercentage:i,togglePlay:p,toggleFullscreen:s,restart:d})=>LF(f=>{if(f.metaKey||f.ctrlKey||f.altKey||OF(f))return;let m=(y,u=!0)=>{u&&(f.preventDefault(),y())},h=y=>l({type:"setVolume",volume:y,muted:!1});switch(f.key){case"ArrowLeft":return m(()=>a(-Vc),t);case"ArrowRight":return m(()=>a(Vc),o);case"ArrowUp":return m(()=>h(Math.min(e+_c,1)),n);case"ArrowDown":return m(()=>h(Math.max(e-_c,0)),n);case"f":return m(s);case"m":return m(()=>l({type:"toggleMuted"}),n);case"r":return m(d);case"c":return m(()=>{r&&l({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,r,n,l,d,a,i,s,p,e]);import{useCallback as _F,useEffect as vM,useRef as VF,useState as zF}from"react";var ay=()=>{},IM=e=>!!e&&typeof document<"u"&&document.pictureInPictureEnabled===!0&&typeof e.requestPictureInPicture=="function"&&!e.disablePictureInPicture,xM=(e,t,o,n,r)=>{let[l,a]=zF(!1),i=VF(!1);vM(()=>{let s=e.current;if(a(IM(s)),!s)return;let d=h=>{i.current=h,r({type:"setPictureInPicture",isPictureInPicture:h})},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,r]),vM(()=>()=>{i.current&&document.pictureInPictureElement&&document.exitPictureInPicture().catch(ay)},[]);let p=_F(()=>{let s=e.current;!t||!IM(s)||(i.current&&document.pictureInPictureElement?document.exitPictureInPicture().catch(ay):s?.requestPictureInPicture().catch(ay))},[t,e]);return{isSupported:t&&l,togglePictureInPicture:p}};import{useEffect as HF}from"react";var CM=e=>{HF(()=>{let t=e.current;if(!t||typeof ResizeObserver>"u")return;let o=new ResizeObserver(([n])=>{t.style.setProperty(Dp,`${n.contentRect.height}px`)});return o.observe(t),()=>{o.disconnect(),t.style.removeProperty(Dp)}},[e])};import{useCallback as UF,useEffect as PM,useRef as $F,useState as Yp}from"react";var cy=[],GF=e=>{let t=e?.api;return t&&Array.isArray(t.levels)&&typeof t.on=="function"?t:void 0},WF=e=>e.map((t,o)=>({index:o,width:t.width??0,height:t.height??0,bitrate:t.bitrate??0})),SM=(e,t,o,n)=>{let[r,l]=Yp(),[a,i]=Yp(cy),[p,s]=Yp(Cl),[d,f]=Yp(-1),m=$F(n);m.current=n,PM(()=>{let y=GF(e.current);if(!y)return;let u=()=>{let P=WF(y.levels);y.autoLevelCapping=Kb(P,m.current),i(P.length>1?P:cy),s(y.autoLevelEnabled?Cl:y.currentLevel),f(y.currentLevel)},v=(P,x)=>f(x.level),I=()=>{l(void 0),i(cy),s(Cl),f(-1)};return l(y),u(),y.on("hlsManifestParsed",u),y.on("hlsLevelsUpdated",u),y.on("hlsLevelSwitched",v),y.on("hlsDestroying",I),()=>{y.off("hlsManifestParsed",u),y.off("hlsLevelsUpdated",u),y.off("hlsLevelSwitched",v),y.off("hlsDestroying",I)}},[e,t,o]),PM(()=>{r&&(r.autoLevelCapping=Kb(a,n))},[r,a,n]);let h=UF(y=>{r&&(r.nextLevel=y,s(y))},[r]);return{levels:a,selected:p,current:d,onChange:h}};import{useCallback as Qp,useEffect as qF,useRef as KF}from"react";var MM=(e,t,o,n)=>{let r=KF(0);qF(()=>{r.current=0},[o]);let l=Qp(s=>{let d=e.current;if(!d||!Number.isFinite(d.duration))return;n();let f=t?d.duration:Math.min(Math.max(r.current,d.currentTime),d.duration);d.currentTime=Math.min(Math.max(s,0),f)},[t,n,e]),a=Qp(s=>{let d=e.current;!d||!Number.isFinite(d.duration)||l(d.duration*Math.min(Math.max(s,0),1))},[l,e]),i=Qp(s=>l((e.current?.currentTime??0)+s),[l,e]),p=Qp(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:l,seekToPercentage:a,seekBy:i,jumpTo:p,watchedTimeRef:r}};import{useCallback as wM,useRef as XF}from"react";var kM=(e,t)=>{let o=XF({seconds:e,src:null,attempts:0,done:!1}),n=wM(l=>{let a=o.current;if(!l?.src||a.done||(a.src===null&&(a.src=l.src),a.src!==l.src))return;let{seconds:i}=a,p=Number.isFinite(l.duration);if(i===void 0||!Number.isFinite(i)||i<=0||p&&i>l.duration){a.done=!0;return}p&&(a.attempts+=1,Math.abs(l.currentTime-i)>pS?l.currentTime=i:a.done=!0,a.attempts>=sS&&(a.done=!0),t({type:"seek",currentTime:i}))},[t]),r=wM(()=>{o.current.done=!0},[]);return{applyStartTime:n,cancelStartTime:r}};var EM=(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 Ir,jsxs as RM}from"react/jsx-runtime";var jF=[],NM=[],eA=YF(function({src:t,tracks:o=jF,startTime:n,allowBarSeeking:r=!0,allowSeekingPastWatched:l=!0,chapters:a,hiddenControls:i=NM,hiddenOverlayControls:p=NM,aspectRatio:s=Lp,controlsOnHover:d=!1,seekStep:f=10,maxQuality:m=Vb,engine:h=Gb,labels:y,onTimeChange:u,onDurationChange:v,onPause:I,onEnded:P,className:x,classNames:C,style:S,styles:L,...k},E){let F=TM(null),M=TM(null),[N,w]=ZF(EM,IS),{playing:O,duration:T,muted:D,volume:U,playbackRate:B,isLoading:R,isFullscreen:z}=N,G=iy(()=>({...Ob,...y}),[y]),A=iy(()=>_p(o),[o]),V=A.length>0,{captionStyle:X,updateCaptionStyle:_}=pM(),H=fe=>!i.includes(fe),W=fe=>!p.includes(fe),$=H("volume"),J=H("fullscreen"),ee=H("pictureInPicture"),xe=V&&H("subtitles"),ge=H("backward")||W("backward"),Ee=H("forward")||W("forward"),{applyStartTime:we,cancelStartTime:oe}=kM(n,w),{seekTo:se,seekToPercentage:ze,seekBy:Y,jumpTo:K,watchedTimeRef:Q}=MM(M,l,t,oe),{controlsVisible:Ce,inputMode:j,revealControls:Te,handleMediaClick:He,containerHandlers:Pe}=hM(O,N.controlsActive||N.settingsOpen,w,F,M),ot=d&&j==="mouse",Fe=st(fe=>{w({type:"setSettingsOpen",settingsOpen:fe}),fe||Te()},[Te]);CM(F);let vn=mM(F),{isSupported:Pt,togglePictureInPicture:ce}=xM(M,ee,t,!R,w),Z=gM(F,J,w);QF(E,()=>({getMediaElement:()=>M.current,play:()=>w({type:"play"}),pause:()=>w({type:"pause"}),jumpTo:K}),[K]);let ne=st(()=>w({type:"togglePlay"}),[]),be=st(()=>{se(0),w({type:"play"})},[se]),Ae=yM({volume:U,canSeekBackward:ge,canSeekForward:Ee,canUseVolume:$,canUseCaptions:xe,dispatch:w,seekBy:Y,seekToPercentage:ze,togglePlay:ne,toggleFullscreen:Z,restart:be}),Wt=Pe.onKeyDown,Oe=st(fe=>{Wt(fe),Ae(fe)},[Wt,Ae]),ye=st(()=>{He()||ne()},[He,ne]),qt=st(()=>w({type:"play"}),[]),Kc=st(()=>{w({type:"pause"}),I?.()},[I]),Xc=st(fe=>{Q.current=fe.currentTarget.duration,w({type:"pause"}),P?.()},[P,Q]),Yc=st(fe=>{let Vo=fe.currentTarget,pt=Vo.currentTime;if(pt-Q.current<=vS)Q.current=Math.max(Q.current,pt);else if(!l){Vo.currentTime=Q.current;return}w({type:"timeUpdate",currentTime:pt}),u?.(pt)},[l,u,Q]),[Qc,kl]=JF(),In=st(fe=>{let{videoWidth:Vo,videoHeight:pt}=fe.currentTarget;kl(Vo>0&&pt>0?Vo/pt:void 0),w({type:"loaded",duration:fe.currentTarget.duration}),we(fe.currentTarget)},[we]),xr=st(fe=>we(fe.currentTarget),[we]),Zc=st(fe=>{w({type:"ready"}),we(fe.currentTarget)},[we]),Zp=st(fe=>{w({type:"durationChange",duration:fe.currentTarget.duration}),we(fe.currentTarget),v?.(fe)},[we,v]),Jp=st(()=>w({type:"buffering"}),[]),jp=st(()=>w({type:"ready"}),[]),Jc=!!t&&R,El=!t||!R&&(!Number.isFinite(T)||T===0),Tl=El||Jc;bM(F,Tl);let Nl=dM(M,(A[N.captionsTrackIndex]??A[0])?.srcLang,t,!R),ed=sM(M,t,!R),td=SM(M,t,!R,m),jc=iy(()=>Wb(Nl.length>0?Nl:a,T),[Nl,a,T]);return Ir("div",{className:qc("cleen",x),style:S,children:RM("div",{ref:F,className:qc("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":!Ce,"focus-visible:cleen-ring-0":z},C?.container),style:L?.container,onPointerMove:Pe.onPointerMove,onPointerLeave:Pe.onPointerLeave,onPointerDown:Pe.onPointerDown,onFocus:Pe.onFocus,onDoubleClick:Z,onKeyDown:Oe,tabIndex:0,children:[RM("div",{className:qc("cleen-relative cleen-flex cleen-justify-center cleen-items-center",{"cleen-h-full":z},C?.viewport),style:{aspectRatio:z?void 0:s==="auto"?Qc??Lp:s,...L?.viewport},children:[Ir(h,{...k,ref:M,src:t||void 0,controls:!1,playing:O,muted:D,volume:U,playbackRate:B,playsInline:!0,className:qc("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",C?.video),style:L?.video,onClick:ye,onPlay:qt,onPause:Kc,onEnded:Xc,onTimeUpdate:Yc,onLoadedMetadata:In,onLoadedData:xr,onCanPlay:Zc,onSeeked:xr,onDurationChange:Zp,onWaiting:Jp,onError:jp,crossOrigin:"anonymous",children:o.map(fe=>Ir("track",{kind:fe.kind??"subtitles",src:fe.src,srcLang:fe.srcLang,label:fe.label},fe.src))}),El&&Ir(aM,{label:G.placeholder,subLabel:G.placeholderSubLabel,classNames:C,styles:L}),Jc&&Ir(de,{size:"xl",className:qc("cleen-absolute",C?.loader?.className),classNames:C?.loader?.classNames,...L?.loader}),Ir(rM,{playing:O,seekStep:f,visible:Ce,hidden:Tl,controlsOnHover:ot,isShown:W,onTogglePlay:ne,onSeekBy:Y,labels:G,classNames:C,styles:L})]}),Ir(oM,{compact:vn,containerRef:F,portalContainer:z?F.current:null,videoRef:M,src:t,state:N,dispatch:w,isShown:H,allowBarSeeking:r,chapters:jc,buffered:ed,quality:td,seekStep:f,hasTracks:V,captionTracks:A,captionStyle:X,onCaptionStyleChange:_,onSettingsOpenChange:Fe,visible:Ce,hidden:Tl,controlsOnHover:ot,onSeek:se,onSeekBy:Y,onTogglePlay:ne,onToggleFullscreen:Z,pictureInPictureSupported:Pt,onTogglePictureInPicture:ce,labels:G,classNames:C,styles:L})]})})});export{zM as AdvancedProgressBar,aT as AudioPlayback,uT as AudioRecorder,Cs as Avatar,yT as AvatarRow,xT as Breadcrumb,re as Button,W1 as Calendar,DT as CalendarDropdown,eT as CanvasButton,Re as Card,I3 as CardIcon,M3 as CardMedia,zT as Carousel,Vn as Checkbox,ZT as CheckboxGroup,$e as CleenIcon,AL as CleenNotificationContainer,NI as Collapsible,rN as ColorPicker,sN as CreditCardInput,Pc as DEFAULT_NOTIFICATION_CATEGORIES,Sc as DEFAULT_NOTIFICATION_LABELS,Ob as DEFAULT_VIDEO_PLAYER_LABELS,Vt as Divider,Y1 as Drawer,LP as DrawerContainer,B6 as DrawerContentTitle,cc as Dropdown,$N as Dropzone,Q3 as EditableCard,VR as EditableMatrix,R1 as EditableText,L1 as EditableTextArea,qR as FileCard,rg as FileStackedProgressTracker,TB as FilterDrawer,kC as FormGroup,zB as GroupSelector,gd as Icon48AlertFeatured,bd as Icon48SuccessFeatured,Cn as IconAlertCircle,vd as IconAlertOctagon,xd as IconAlertTriangle,Cd as IconApps,Sd as IconArchive,Md as IconArrowBarDown,wd as IconArrowBarLeft,kd as IconArrowBarRight,Ed as IconArrowBarToDown,Td as IconArrowBarToLeft,Nd as IconArrowBarToRight,Rd as IconArrowBarToUp,Bd as IconArrowBarUp,Dd as IconArrowDown,Fd as IconArrowDownLeft,Od as IconArrowDownNarrow,_d as IconArrowDownRight,zd as IconArrowLeft,Ud as IconArrowLeftNarrow,Gd as IconArrowRight,qd as IconArrowRightNarrow,Xd as IconArrowUp,Yd as IconArrowUpLeft,Zd as IconArrowUpNarrow,Jd as IconArrowUpRight,jd as IconAttachment,Vl as IconBadgeHd,em as IconBarChart,tm as IconBarChartSquare,om as IconBell,nm as IconBold,sm as IconBookOpen,rm as IconBookmark,sd as IconBookmarkCheck,pd as IconBookmarkCheckFill,lm as IconBookmarkFill,am as IconBookmarkMinus,md as IconBookmarkPlus,im as IconBookmarkX,pm as IconBoxLines,mm as IconBoxText,fm as IconBracketsCheck,hm as IconBracketsEllipses,gm as IconBrickWall,bm as IconBriefcase,ud as IconBuilding,ym as IconCalculator,$l as IconCalendar,vm as IconCertificate,bo as IconCheck,Pn as IconCheckCircle,Im as IconCheckCircleBroken,xm as IconCheckFill,Cm as IconCheckVerified,Pm as IconCheckVerifiedFill,Sn as IconChevronDown,Sm as IconChevronDownDouble,Mm as IconChevronDownLeft,wm as IconChevronDownLeftDouble,km as IconChevronDownRight,Em as IconChevronDownRightDouble,yo as IconChevronLeft,Tm as IconChevronLeftDouble,St as IconChevronRight,Gl as IconChevronRightDouble,Nm as IconChevronSelectorVertical,vo as IconChevronUp,Rm as IconChevronUpDouble,Bm as IconChevronUpLeft,Lm as IconChevronUpLeftDouble,Dm as IconChevronUpRight,Fm as IconChevronUpRightDouble,Am as IconClick,Wl as IconClock,Om as IconClockFastForward,Vm as IconClockPlay,zm as IconClockRewind,Hm as IconClone,Kl as IconClosedCaption,Gm as IconCode,Wm as IconCodeBrowser,Km as IconCodeCircle,Ym as IconColors,fd as IconColumnEdit,Qm as IconCopy,Zm as IconCopy2,jm as IconCopyCheck,eu as IconCreditCard,tu as IconCube,ou as IconCubeOutline,Xl as IconCursorBox,nu as IconDataflow,ru as IconDataflow2,lu as IconDataflow3,cu as IconDistributeHorizontal,iu as IconDollar,pu as IconDollarCircle,du as IconDot,mu as IconDotFill,uu as IconDotsGrid,Ql as IconDotsHorizontal,$o as IconDotsVertical,bu as IconDownload,yu as IconEdit,Iu as IconEditable,xu as IconExpand,Zl as IconExternalLink,Su as IconExternalLink2,Mu as IconEye,ku as IconEyeHidden,Eu as IconEyeHidden2,Tu as IconFaceAngry,Nu as IconFaceLaugh,Ru as IconFaceSmile,wn as IconFile,Lu as IconFileCheck,ea as IconFileCsv,Du as IconFileDownload,ta as IconFileJson,Fu as IconFileList,kt as IconFileMusic,kn as IconFilePdf,na as IconFileSpreadsheet,xo as IconFileText,_u as IconFileUpload,la as IconFileXls,aa as IconFileXlsx,Xt as IconFileZip,Ou as IconFiles,Vu as IconFilter,ca as IconFilter2,Hu as IconFlag,Uu as IconFlag2,$u as IconFlagFill,Gu as IconFocus,Wu as IconFolder,qu as IconFolderExport,Ku as IconFolderImport,Xu as IconGraduationCap,Yu as IconGripVertical,Qu as IconHand,Zu as IconHandShield,Ju as IconHash,ju as IconHeadsetMic,ef as IconHeart,tf as IconHeartFill,nf as IconHouse,sa as IconHouseLine,nt as IconImage,rf as IconImage2,lf as IconImageCheck,af as IconImageOff,cf as IconImport,sf as IconInbox,df as IconInfoCircle,uf as IconInfoHexagon,hf as IconItalic,bf as IconLayersMultiple,yf as IconLayersSingle,vf as IconLayout,xf as IconLayout2,Cf as IconLayoutColumns,Pf as IconLayoutCustom,Mf as IconLayoutStuffed,wf as IconLayoutTile,kf as IconLifeBuoy,Tf as IconLightbulb,Nf as IconLightning,Rf as IconLightningFast,Bf as IconLineChart,Lf as IconLineChartBar,Df as IconLineChartBreakoutSquare,Af as IconLineChartUp,Of as IconLines,_f as IconLinesCheck,Vf as IconLinesPlay,En as IconLink,Hf as IconLink2,Uf as IconLinkOff,Hr as IconListBullet,$f as IconListOrder,Wf as IconLock,qf as IconLockFill,Xf as IconLogIn,Qf as IconLogOut,Jf as IconLogOut2,jf as IconMagicWand,eh as IconMail,th as IconMailOpen,oh as IconMapPin,ha as IconMaximize,nh as IconMaximize2,rh as IconMessageCircle,Co as IconMessageSquare,ah as IconMessageSquare2,ch as IconMessageXSquare,ba as IconMicrophone,ya as IconMinimize,va as IconMinimize2,ih as IconMinusCircle,ph as IconMobile,dh as IconMonitor,mh as IconMonitor2,uh as IconMoon,fh as IconMoonCircle,At as IconMovie,Yt as IconName,hh as IconNavigationPointer,gh as IconNotificationBox,Ph as IconPCSetup,bh as IconPackage,yh as IconPalette,vh as IconPasscodeLock,Ot as IconPause,xh as IconPauseCircle,Mh as IconPen,wh as IconPercentageCircle,kh as IconPerspective,Th as IconPhoneCall,Pa as IconPictureInPicture,Sa as IconPin,_t as IconPlay,Rh as IconPlayCircle,Po as IconPlus,Xo as IconPlusCircle,Dh as IconPrinter,Fh as IconPulse,Ma as IconQuestionCircle,Oh as IconQuote,_h as IconRadioButton,Vh as IconRadioButtonFill,zh as IconReceipt,Hh as IconReceiptCheck,Uh as IconRedo,wa as IconRefresh,$h as IconRefresh2,Gh as IconRefresh3,Wh as IconRepeat,qh as IconReplace,ka as IconReplay,Xh as IconRestore,Qh as IconRocket,Zh as IconRoundChart,Jh as IconRoundChart2,e0 as IconRoute,o0 as IconSave,n0 as IconScanDots,Ea as IconScissors,vt as IconSearch,r0 as IconSend,l0 as IconServer,Ta as IconSettings,a0 as IconSettings2,c0 as IconShare,i0 as IconShieldLightning,p0 as IconShieldPlus,m0 as IconShieldRemove,u0 as IconShoppingBag,f0 as IconShoppingCart,h0 as IconShrink,g0 as IconShuffle,b0 as IconSkipForward,y0 as IconSlashCircle,v0 as IconSlashOctagon,I0 as IconSocialAndroid,x0 as IconSocialApple,C0 as IconSocialGithub,P0 as IconSocialGlobe,S0 as IconSocialGoogle,w0 as IconSocialInstagram,k0 as IconSocialLinkedin,T0 as IconSocialMastercard,N0 as IconSocialReact,R0 as IconSocialVisa,B0 as IconSocialX,Da as IconSpeedometer,L0 as IconStairs,Fa as IconStar,D0 as IconStarFill,F0 as IconStarHalf,A0 as IconStars,Aa as IconStop,O0 as IconStrikethrough,_0 as IconSun,V0 as IconSwap,z0 as IconSwitchHorizontal,U0 as IconTable,Oa as IconTag,$0 as IconTarget,W0 as IconTarget2,K0 as IconTextFormat,X0 as IconTextFormat2,Y0 as IconTextHighlight,Q0 as IconThumbsDown,Z0 as IconThumbsUp,J0 as IconThumbsUpFill,j0 as IconToggle,e1 as IconTranslate,Et as IconTrash,t1 as IconTrending,o1 as IconUnderline,n1 as IconUndo,l1 as IconUnlock,Rn as IconUploadCloud,Va as IconUser,i1 as IconUserCheck,s1 as IconUserDollar,d1 as IconUserEdit,m1 as IconUserPlus,u1 as IconUserRight,g1 as IconUserSquare,hd as IconUserVoice,f1 as IconUsers,b1 as IconUsersUp,y1 as IconVideo,I1 as IconVideoChat,Ha as IconVolume,Ua as IconVolumeDown,$a as IconVolumeMute,C1 as IconWrench,Le as IconX,P1 as IconXCircle,S1 as IconXCircleFill,M1 as IconXSquare,w1 as IconZoomIn,E1 as IconZoomOut,ue as InfoLabels,Se as Input,ve as Label,de as Loader,YB as Lookup,eL as Markdown,Jn as Menu,bg as Modal,al as NOTIFICATION_GENERAL_CATEGORY,zD as NativeVideoEngine,YL as Pagination,eb as PaginationGoToPage,tb as PaginationPageSize,Ne as PillBadge,Wn as Popover,el as ProgressBar,gP as ProgressCircle,n6 as RadioBoxGroup,d6 as RadioButtonGroup,g6 as Rating,Gb as ReactPlayerEngine,w6 as Select,_P as Sidebar,Nc as SidebarItem,U6 as Skeleton,ab as SkeletonAvatar,ib as SkeletonBadge,sb as SkeletonBanner,db as SkeletonButton,Rc as SkeletonCard,Sp as SkeletonCard2,mb as SkeletonCard3,fb as SkeletonCardStack,hb as SkeletonChart,gb as SkeletonContentCard,bb as SkeletonDataGrid,yb as SkeletonForm,Ib as SkeletonGlowingCard,xb as SkeletonImage,Cb as SkeletonInfoCard,Mb as SkeletonInput,wb as SkeletonList,Tb as SkeletonParagraph,Nb as SkeletonText,Rb as SkeletonVideo,Np as SkeletonWidgetCard,gD as SkeletonWrapper,dr as Slider,CD as SliderRange,og as StackedProgressTracker,Z1 as StackedProgressTrackerRow,J1 as StackedProgressTrackerStatusFilter,MD as StarRating,rS as Stepper,gc as Switch,dc as TRACKER_STATUS_FILTER_ORDER,Cc as Tabs,ND as TagFilter,Za as TextArea,_e as Tooltip,sc as TrackerItemStatus,pc as TrackerStatusFilter,Lp as VIDEO_PLAYER_ASPECT_RATIO_DEFAULT,Vb as VIDEO_PLAYER_MAX_QUALITY_DEFAULT,_b as VIDEO_PLAYER_SEEK_STEP_DEFAULT,eA as VideoPlayer,Hc as VideoPlayerControl,uc as cleanCellValue,HC as createNotificationStore,et as formatHours,Sl as formatTime,Fs as getEditableMatrixCellValue,ol as getEditableMatrixEntries,ug as getEditableMatrixEntryTotals,nn as getEditableMatrixKey,fg as getEditableMatrixTotals,T1 as getFileIcon,dg as getMinutesBetween,$c as getVideoChapterAt,WD as getVideoChapterIndex,qb as getVideoChapterProgress,Wb as getVideoChapters,$g as groupLayout,Gg as listLayout,tr as notification,Ie as notificationStore,mc as parseHours,q1 as parseRgbaString,at as roundHours,UC as showNotification,Wg as stackLayout,pg as timeToMinutes,aL as useNotifications};
|
|
1
|
+
import{cn as Go,useAnimateNumber as tS}from"@cleen/ui-core";import{forwardRef as oS,useMemo as Zg}from"react";import{cn as Zl,usePositionClose as Qx,ZIndex as Zx}from"@cleen/ui-core";import{useEffect as Wg,useRef as Us,useState as qg}from"react";import{createPortal as Jx}from"react-dom";import{jsx as Gs,jsxs as Xg}from"react/jsx-runtime";var Ie=({bg:e,label:t,color:o,closeOnClick:n=!0,hideOnMouseDown:c=!0,isOpen:r,children:l,hasArrow:i,placement:s="top",offset:p=8,className:d,classNames:g,isDisabled:m,openDelay:v=0,invertColors:y=!1,extraUpdateTriggers:u,allowNonDescendantHover:b=!0,zIndex:C=Zx.TOOLTIP,portalContainer:x,style:I,styles:P,onClick:M,onMouseEnter:A,onMouseLeave:B,...L})=>{let[D,S]=qg(r??!1),[N,w]=qg(!1),F=Us(null),R=Us(null),E=Us(null),{positionStyles:G,isMounted:T,optimalPosition:k}=Qx({triggerRef:R,targetRef:F,position:s,isOpen:D&&!m,offset:p,extraUpdateTriggers:u,container:x});Wg(()=>{S(r??!1)},[r]);let z=O=>{M?.(O),n&&S(!1)},U=(O,_)=>{if(r!==void 0)return;let X=R.current?.contains(O.target);!b&&!X||(_?(A?.(O),v&&v>0?E.current=setTimeout(()=>{S(!0)},v):S(!0)):(E.current&&(clearTimeout(E.current),E.current=null),S(!1),B?.(O)))};return Wg(()=>{let O=()=>{c&&w(!0)},_=()=>{w(!1)};return document.addEventListener("mousedown",O),document.addEventListener("mouseup",_),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("mouseup",_)}},[c]),Xg("div",{className:Zl("cleen",d),style:I,children:[Gs("div",{ref:R,className:Zl("cleen-relative cleen-max-w-fit",g?.container),style:P?.container,onClick:z,onMouseEnter:O=>U(O,!0),onMouseLeave:O=>U(O,!1),...L,children:l}),t!==void 0&&D&&!m&&!N&&Jx(Gs("div",{className:"cleen",children:Xg("div",{ref:F,className:Zl("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":!T,"cleen-opacity-100":T},g?.labelContainer),style:{zIndex:C,top:`${G.top}px`,left:`${G.left}px`,...e&&{backgroundColor:e},...o&&{color:o},...P?.labelContainer},children:[t,Gs("div",{className:Zl(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)]":k==="top"||k==="top-left"||k==="top-right","cleen-left-[calc(50%-6px)]":k==="top"||k==="bottom","cleen-left-[6px]":k==="top-left"||k==="bottom-left","cleen-right-[6px]":k==="top-right"||k==="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)]":k==="bottom"||k==="bottom-left"||k==="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)]":k==="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)]":k==="right"}]:"cleen-hidden"),style:{}})]})}),x??document.body)]})};import{cn as Hr}from"@cleen/ui-core";var zt=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),Vt=(e,t,o)=>{let n=Number.isFinite(t)?t:0,c=Number.isFinite(o)?o:100;return c===n?0:(e-n)/(c-n)*100};import{cn as Jl}from"@cleen/ui-core";import{jsx as $s}from"react/jsx-runtime";var jl=({serie:e,minValue:t,maxValue:o,color:n,trackHeight:c,className:r,style:l})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,s=Number.isFinite(i)?i:t,p=zt(Vt(s,t,o)),d=Math.max(2,e?.height??c*1.5),g={left:`${p}%`,top:"50%"};return e.tooltip?$s(Ie,{invertColors:!0,...e.tooltip,className:Jl("cleen-absolute cleen-z-10 -cleen-translate-x-1/2 -cleen-translate-y-1/2",e.tooltip.className),style:{...g,...e.tooltip.style},classNames:{...e.tooltip.classNames,labelContainer:Jl("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:$s("div",{className:Jl("cleen-rounded-full",r),style:{width:d,height:d,backgroundColor:n,...l}})}):$s("div",{className:Jl("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",r),style:{width:d,height:d,backgroundColor:n,...g,...l}})};import{jsx as ec}from"react/jsx-runtime";var Kg=({serie:e,minValue:t,maxValue:o,animatedGlobal:n=t,renderAnimated:c,color:r,trackHeight:l,trackRadius:i,className:s,style:p})=>{if(e.type!=="bar")return null;let d=typeof e.start=="number"?e.start:t,g=typeof e.end=="number"?e.end:o,m=zt(Vt(d,t,o)),v=zt(Vt(g,t,o));v<m&&([m,v]=[v,m]);let y=Math.max(0,c?n-m:v-m);if(y<1&&!c||c&&n>=v&&y===0)return ec(jl,{serie:{...e,type:"clamp",value:m},color:r,trackHeight:l,minValue:t,maxValue:o,className:s,style:p});let u={left:`${m}%`,top:e?.height?(l-e.height)/2:0,width:`${y}%`,height:e?.height??"100%"},b={width:"100%",height:"100%"},C={background:r,borderRadius:e?.radius??i??(e?.height??l)/2};return e.tooltip?ec(Ie,{invertColors:!0,...e.tooltip,className:Hr("cleen-absolute",e.tooltip.className),style:{...u,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:Hr("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:Hr("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:ec("div",{className:Hr("cleen-relative cleen-size-full",s),style:{...C,...b,...p}})}):ec("div",{className:Hr("cleen-absolute cleen-pointer-events-none",s),style:{...C,...u,...p}})};import{cn as jx}from"@cleen/ui-core";import{jsx as eS}from"react/jsx-runtime";var Yg=({serie:e,minValue:t,maxValue:o,className:n,style:c})=>{let r=0;if(e.type==="clamp"){let l=typeof e.value=="number"?e.value:0,i=Number.isFinite(l)?l:t;r=zt(Vt(i,t,o))}else{let l=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:o,s=zt(Vt(l,t,o)),p=zt(Vt(i,t,o));r=(s+p)/2}return eS("div",{className:jx("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",n),style:{left:`${r}%`,...c},children:e.label})};var Qg={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as zn,jsxs as Jg}from"react/jsx-runtime";var nS=oS(function({series:t=[],track:o,renderAnimated:n,renderAnimatedDuration:c=1e3,className:r,classNames:l,style:i,styles:s,minValue:p=0,maxValue:d=100,...g},m){let v=Zg(()=>({...Qg,...o}),[o]),y=Zg(()=>t.reduce((x,I)=>{if(I.type==="bar"){let P=typeof I.end=="number"?I.end:d,M=Math.max(p,Math.min(P,d));if(M>x)return M}return x},0),[t,p,d]),u=tS({targetNumber:y,defaultNumber:p,duration:c,disabled:!n}),{bars:b,clamps:C}=t.reduce((x,I,P)=>{if(I==null||!I.type)return x;let M=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":x.clamps.push(zn(jl,{serie:I,color:M,trackHeight:v.height,minValue:p,maxValue:d,className:Go(l?.clamp,I.className),style:{...s?.clamp,...I.style}},`clamp-${P}`));break;case"bar":x.bars.push(zn(Kg,{serie:I,color:M,trackHeight:v.height,trackRadius:v.radius,minValue:p,maxValue:d,renderAnimated:n,animatedGlobal:u,className:Go(l?.bar,I.className),style:{...s?.bar,...I.style}},`bar-${P}`));break;default:break}return x},{clamps:[],bars:[]});return zn("div",{className:Go("cleen",r),style:i,ref:m,...g,children:Jg("div",{className:Go("cleen-relative cleen-w-full",l?.container),style:s?.container,children:[Jg("div",{className:Go("cleen-relative cleen-size-full",l?.trackWrapper),style:s?.trackWrapper,children:[zn("div",{className:Go("cleen-relative cleen-w-full",l?.track),style:{height:v.height,backgroundColor:v.color,borderRadius:v.radius??v.height/2,...s?.track},children:b}),C]}),t.some(x=>!!x.label)&&zn("div",{"aria-hidden":!0,className:Go("cleen-relative cleen-mt-2 cleen-h-5",l?.labels),style:s?.labels,children:t.map((x,I)=>!x||!x.type||!x.label?null:zn(Yg,{serie:x,minValue:p,maxValue:d,className:l?.label,style:s?.label},`label-${I}`))})]})})});import{cn as Ws}from"@cleen/ui-core";import{jsx as qs}from"react/jsx-runtime";var rS={xs:"cleen-size-4",sm:"cleen-size-5",md:"cleen-size-[30px] cleen-border-2",lg:"cleen-size-10 cleen-border-2",xl:"cleen-size-[50px] cleen-border-4"},aS={slow:1.3,normal:.65,fast:.4},re=({isFullscreen:e,size:t="xs",stroke:o,speed:n="normal",className:c,classNames:r,style:l,styles:i,color:s,...p})=>qs("div",{className:Ws("cleen",c),style:l,children:qs("div",{className:Ws("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},r?.container),style:i?.container,...p,children:qs("span",{className:Ws("cleen-border cleen-rounded-full cleen-border-t-primary cleen-border-x-primary cleen-border-b-transparent cleen-animate-[spin_0.65s_linear_infinite]",typeof t=="string"&&rS[t],r?.loader),style:{...s&&{borderInlineColor:s,borderTopColor:s},...typeof t=="number"&&{width:t,height:t},...typeof o=="number"&&{borderWidth:o},animationDuration:`${typeof n=="number"?n:aS[n]}s`,...i?.loader}})})});import{cn as Xs,useWidthDynamicResize as lS}from"@cleen/ui-core";import{forwardRef as cS,useImperativeHandle as iS,useRef as sS}from"react";var jg={primary:"cleen-text-primary-foreground cleen-shadow-sm cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]",secondary:"cleen-border 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"},ey={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 ty,jsxs as pS}from"react/jsx-runtime";var ee=cS(function({type:t="button",label:o,onClick:n,className:c,classNames:r,style:l,styles:i,disabled:s=!1,leftIcon:p,rightIcon:d,loaderColor:g,isLoading:m=!1,variant:v="primary",fullWidth:y=!1,children:u,...b},C){let x=sS(null);return iS(C,()=>x.current),lS({ref:x,skip:y},[m,p,d,y]),ty("div",{className:Xs("cleen",c),style:l,children:pS("button",{type:t,ref:x,className:Xs("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",jg[v],{"cleen-w-full cleen-flex-1":y,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||m},r?.container),style:i?.container,disabled:m||s,onClick:n,...b,children:[m&&ty(re,{size:"xs",color:g||ey[v],className:Xs("cleen-mr-1.5 cleen-w-fit",r?.loaderContainer),style:i?.loaderContainer,classNames:{loader:r?.loader},styles:{loader:i?.loader}}),p||null,o||u,d||null]})})});var oy={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"},ny={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 so,ColorHelpers as PS}from"@cleen/ui-core";function Vn(e,t,o){return Math.min(Math.max(e,o),t)}var Ks=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},Ur=Ks;function dS(e){if(typeof e!="string")throw new Ur(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=bS.test(e)?fS(e):e;let o=hS.exec(t);if(o){let l=Array.from(o).slice(1);return[...l.slice(0,3).map(i=>parseInt(Gr(i,2),16)),parseInt(Gr(l[3]||"f",2),16)/255]}let n=gS.exec(t);if(n){let l=Array.from(n).slice(1);return[...l.slice(0,3).map(i=>parseInt(i,16)),parseInt(l[3]||"ff",16)/255]}let c=yS.exec(t);if(c){let l=Array.from(c).slice(1);return[...l.slice(0,3).map(i=>parseInt(i,10)),parseFloat(l[3]||"1")]}let r=vS.exec(t);if(r){let[l,i,s,p]=Array.from(r).slice(1).map(parseFloat);if(Vn(0,100,i)!==i)throw new Ur(e);if(Vn(0,100,s)!==s)throw new Ur(e);return[...IS(l,i,s),Number.isNaN(p)?1:p]}throw new Ur(e)}function mS(e){let t=5381,o=e.length;for(;o;)t=t*33^e.charCodeAt(--o);return(t>>>0)%2341}var ry=e=>parseInt(e.replace(/_/g,""),36),uS="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=ry(t.substring(0,3)),n=ry(t.substring(3)).toString(16),c="";for(let r=0;r<6-n.length;r++)c+="0";return e[o]=`${c}${n}`,e},{});function fS(e){let t=e.toLowerCase().trim(),o=uS[mS(t)];if(!o)throw new Ur(e);return`#${o}`}var Gr=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),hS=new RegExp(`^#${Gr("([a-f0-9])",3)}([a-f0-9])?$`,"i"),gS=new RegExp(`^#${Gr("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),yS=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Gr(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),vS=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,bS=/^[a-z]+$/i,ay=e=>Math.round(e*255),IS=(e,t,o)=>{let n=o/100;if(t===0)return[n,n,n].map(ay);let c=(e%360+360)%360/60,r=(1-Math.abs(2*n-1))*(t/100),l=r*(1-Math.abs(c%2-1)),i=0,s=0,p=0;c>=0&&c<1?(i=r,s=l):c>=1&&c<2?(i=l,s=r):c>=2&&c<3?(s=r,p=l):c>=3&&c<4?(s=l,p=r):c>=4&&c<5?(i=l,p=r):c>=5&&c<6&&(i=r,p=l);let d=n-r/2,g=i+d,m=s+d,v=p+d;return[g,m,v].map(ay)};function CS(e,t,o,n){return`rgba(${Vn(0,255,e).toFixed()}, ${Vn(0,255,t).toFixed()}, ${Vn(0,255,o).toFixed()}, ${parseFloat(Vn(0,1,n).toFixed(3))})`}function $r(e,t){let[o,n,c,r]=dS(e);return CS(o,n,c,r-t)}import{forwardRef as xS,useMemo as SS}from"react";import{jsx as Hn,jsxs as ly}from"react/jsx-runtime";var he=xS(function({header:t,footer:o,color:n,isGlass:c=!1,hoverable:r=!1,p:l,gap:i,radius:s=8,children:p,className:d,classNames:g,style:m,styles:v,...y},u){let{cardColor:b,backgroundColor:C,borderColor:x}=SS(()=>{let I=PS.getComputedColor(n);return I?{cardColor:I,backgroundColor:$r(I,.9),borderColor:$r(I,.8)}:{cardColor:I}},[n]);return Hn("div",{className:so("cleen",d),style:m,ref:u,...y,children:ly("div",{className:so("cleen-bg-background cleen-pt-6 cleen-border cleen-border-border cleen-flex cleen-flex-col cleen-gap-6 cleen-flex-grow cleen-transition-all cleen-duration-200",r&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",o?.content?"cleen-pb-3":"cleen-pb-6",g?.container),style:{...b&&{backgroundColor:C,borderColor:x,color:b},...c&&{backgroundImage:`linear-gradient(to right, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 5%),
|
|
2
|
+
linear-gradient(to bottom, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 10%)`},...l!==void 0&&{paddingBlock:l},...i!==void 0&&{gap:i},borderRadius:s,...v?.container},children:[(t?.content||t?.title)&&ly("div",{className:so("cleen-px-6",g?.header?.content),style:{...b&&{color:b},...l!==void 0&&{paddingInline:l},...v?.header?.content},children:[t?.title&&Hn("div",{className:so("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",g?.header?.title),style:{...b&&{color:b},...v?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&Hn("hr",{className:so("cleen-text-neutral-200",g?.header?.divider),style:{...b&&{color:x},...v?.header?.divider}}),p&&Hn("div",{className:so("cleen-px-6",g?.childrenContainer),style:{...l!==void 0&&{paddingInline:l},...v?.childrenContainer},children:p}),o?.content&&o?.hasDivider&&Hn("hr",{className:so("cleen-text-neutral-200",g?.footer?.divider),style:{...b&&{color:x},...v?.footer?.divider}}),o?.content&&Hn("div",{className:so("cleen-px-6 -cleen-mt-3 cleen-text-foreground",g?.footer?.content),style:{...b&&{color:b},...l!==void 0&&{paddingInline:l},...v?.footer?.content},children:o.content})]})})});import{jsx as wS}from"react/jsx-runtime";function a({size:e=24,width:t,height:o,strokeWidth:n=1.5,isFilled:c=!1,children:r,...l}){return delete l.color1,delete l.color2,wS("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:o??e,viewBox:"0 0 24 24",fill:c?"currentColor":"none",stroke:"currentColor",strokeWidth:c?0:n,strokeLinecap:"round",strokeLinejoin:"round",...l,children:r})}import{jsx as cy,jsxs as MS}from"react/jsx-runtime";var Ys=e=>MS(a,{...e,children:[cy("path",{d:"M9 10.5l2 2l4 -4"}),cy("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as iy}from"react/jsx-runtime";var Qs=e=>iy(a,{isFilled:!0,...e,children:iy("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 Zs,jsxs as kS}from"react/jsx-runtime";var Js=e=>kS(a,{...e,children:[Zs("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),Zs("path",{d:"M16 19h6"}),Zs("path",{d:"M19 16v6"})]});import{jsx as po,jsxs as TS}from"react/jsx-runtime";var js=e=>TS(a,{...e,children:[po("path",{d:"M3 21l18 0"}),po("path",{d:"M9 8l1 0"}),po("path",{d:"M9 12l1 0"}),po("path",{d:"M9 16l1 0"}),po("path",{d:"M14 8l1 0"}),po("path",{d:"M14 12l1 0"}),po("path",{d:"M14 16l1 0"}),po("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as sy,jsxs as BS}from"react/jsx-runtime";var ep=e=>BS(a,{...e,children:[sy("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"}),sy("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 tc,jsxs as RS}from"react/jsx-runtime";var tp=e=>RS(a,{...e,children:[tc("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),tc("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),tc("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),tc("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as Wr,jsxs as NS}from"react/jsx-runtime";var op=e=>NS(a,{viewBox:"0 0 48 48",...e,children:[Wr("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Wr("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Wr("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Wr("path",{d:"M24 18v8"}),Wr("path",{d:"M24 30h.01"})]});import{jsx as oc,jsxs as LS}from"react/jsx-runtime";var np=e=>LS(a,{viewBox:"0 0 48 48",...e,children:[oc("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),oc("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),oc("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),oc("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as rp,jsxs as ES}from"react/jsx-runtime";var $o=e=>ES(a,{...e,children:[rp("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),rp("path",{d:"M12 8v4"}),rp("path",{d:"M12 16h.01"})]});import{jsx as py}from"react/jsx-runtime";var ap=e=>py(a,{isFilled:!0,...e,children:py("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 lp,jsxs as DS}from"react/jsx-runtime";var cp=e=>DS(a,{...e,children:[lp("path",{d:"M12 9v4"}),lp("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"}),lp("path",{d:"M12 16h.01"})]});import{jsx as qr,jsxs as FS}from"react/jsx-runtime";var ip=e=>FS(a,{...e,children:[qr("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"}),qr("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"}),qr("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"}),qr("path",{d:"M14 7l6 0"}),qr("path",{d:"M17 4l0 6"})]});import{jsx as sp,jsxs as AS}from"react/jsx-runtime";var pp=e=>AS(a,{...e,children:[sp("path",{d:"M3 4m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"}),sp("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),sp("path",{d:"M10 12l4 0"})]});import{jsx as nc,jsxs as OS}from"react/jsx-runtime";var dp=e=>OS(a,{...e,children:[nc("path",{d:"M12 20l0 -10"}),nc("path",{d:"M12 20l4 -4"}),nc("path",{d:"M12 20l-4 -4"}),nc("path",{d:"M4 4l16 0"})]});import{jsx as rc,jsxs as _S}from"react/jsx-runtime";var mp=e=>_S(a,{...e,children:[rc("path",{d:"M4 12l10 0"}),rc("path",{d:"M4 12l4 4"}),rc("path",{d:"M4 12l4 -4"}),rc("path",{d:"M20 4l0 16"})]});import{jsx as ac,jsxs as zS}from"react/jsx-runtime";var up=e=>zS(a,{...e,children:[ac("path",{d:"M20 12l-10 0"}),ac("path",{d:"M20 12l-4 4"}),ac("path",{d:"M20 12l-4 -4"}),ac("path",{d:"M4 4l0 16"})]});import{jsx as lc,jsxs as VS}from"react/jsx-runtime";var fp=e=>VS(a,{...e,children:[lc("path",{d:"M4 20l16 0"}),lc("path",{d:"M12 14l0 -10"}),lc("path",{d:"M12 14l4 -4"}),lc("path",{d:"M12 14l-4 -4"})]});import{jsx as cc,jsxs as HS}from"react/jsx-runtime";var hp=e=>HS(a,{...e,children:[cc("path",{d:"M10 12l10 0"}),cc("path",{d:"M10 12l4 4"}),cc("path",{d:"M10 12l4 -4"}),cc("path",{d:"M4 4l0 16"})]});import{jsx as ic,jsxs as US}from"react/jsx-runtime";var gp=e=>US(a,{...e,children:[ic("path",{d:"M14 12l-10 0"}),ic("path",{d:"M14 12l-4 4"}),ic("path",{d:"M14 12l-4 -4"}),ic("path",{d:"M20 4l0 16"})]});import{jsx as sc,jsxs as GS}from"react/jsx-runtime";var yp=e=>GS(a,{...e,children:[sc("path",{d:"M12 10l0 10"}),sc("path",{d:"M12 10l4 4"}),sc("path",{d:"M12 10l-4 4"}),sc("path",{d:"M4 4l16 0"})]});import{jsx as pc,jsxs as $S}from"react/jsx-runtime";var vp=e=>$S(a,{...e,children:[pc("path",{d:"M12 4l0 10"}),pc("path",{d:"M12 4l4 4"}),pc("path",{d:"M12 4l-4 4"}),pc("path",{d:"M4 20l16 0"})]});import{jsx as bp,jsxs as WS}from"react/jsx-runtime";var Ip=e=>WS(a,{...e,children:[bp("path",{d:"M12 5l0 14"}),bp("path",{d:"M18 13l-6 6"}),bp("path",{d:"M6 13l6 6"})]});import{jsx as dy,jsxs as qS}from"react/jsx-runtime";var Cp=e=>qS(a,{...e,children:[dy("path",{d:"M17 7l-10 10"}),dy("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as Pp,jsxs as XS}from"react/jsx-runtime";var xp=e=>XS(a,{...e,children:[Pp("path",{d:"M12 5l0 14"}),Pp("path",{d:"M16 15l-4 4"}),Pp("path",{d:"M8 15l4 4"})]});import{jsx as my,jsxs as KS}from"react/jsx-runtime";var Sp=e=>KS(a,{...e,children:[my("path",{d:"M7 7l10 10"}),my("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as wp,jsxs as YS}from"react/jsx-runtime";var Mp=e=>YS(a,{...e,children:[wp("path",{d:"M5 12l14 0"}),wp("path",{d:"M5 12l6 6"}),wp("path",{d:"M5 12l6 -6"})]});import{jsx as kp,jsxs as QS}from"react/jsx-runtime";var Tp=e=>QS(a,{...e,children:[kp("path",{d:"M5 12l14 0"}),kp("path",{d:"M5 12l4 4"}),kp("path",{d:"M5 12l4 -4"})]});import{jsx as Bp,jsxs as ZS}from"react/jsx-runtime";var Rp=e=>ZS(a,{...e,children:[Bp("path",{d:"M5 12l14 0"}),Bp("path",{d:"M13 18l6 -6"}),Bp("path",{d:"M13 6l6 6"})]});import{jsx as Np,jsxs as JS}from"react/jsx-runtime";var Lp=e=>JS(a,{...e,children:[Np("path",{d:"M5 12l14 0"}),Np("path",{d:"M15 16l4 -4"}),Np("path",{d:"M15 8l4 4"})]});import{jsx as Ep,jsxs as jS}from"react/jsx-runtime";var Dp=e=>jS(a,{...e,children:[Ep("path",{d:"M12 5l0 14"}),Ep("path",{d:"M18 11l-6 -6"}),Ep("path",{d:"M6 11l6 -6"})]});import{jsx as uy,jsxs as ew}from"react/jsx-runtime";var Fp=e=>ew(a,{...e,children:[uy("path",{d:"M7 7l10 10"}),uy("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as Ap,jsxs as tw}from"react/jsx-runtime";var Op=e=>tw(a,{...e,children:[Ap("path",{d:"M12 5l0 14"}),Ap("path",{d:"M16 9l-4 -4"}),Ap("path",{d:"M8 9l4 -4"})]});import{jsx as fy,jsxs as ow}from"react/jsx-runtime";var _p=e=>ow(a,{...e,children:[fy("path",{d:"M17 7l-10 10"}),fy("path",{d:"M8 7l9 0l0 9"})]});import{jsx as hy}from"react/jsx-runtime";var zp=e=>hy(a,{...e,children:hy("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 Xr,jsxs as nw}from"react/jsx-runtime";var Kr=e=>nw(a,{...e,children:[Xr("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"}),Xr("path",{d:"M14 9v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1"}),Xr("path",{d:"M7 15v-6"}),Xr("path",{d:"M10 15v-6"}),Xr("path",{d:"M7 12h3"})]});import{jsx as dc,jsxs as rw}from"react/jsx-runtime";var Vp=e=>rw(a,{...e,children:[dc("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"}),dc("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"}),dc("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"}),dc("path",{d:"M4 20h14"})]});import{jsx as Yr,jsxs as aw}from"react/jsx-runtime";var Hp=e=>aw(a,{...e,children:[Yr("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"}),Yr("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"}),Yr("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"}),Yr("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"}),Yr("path",{d:"M7 18.5h10"})]});import{jsx as gy,jsxs as lw}from"react/jsx-runtime";var Up=e=>lw(a,{...e,children:[gy("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"}),gy("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as yy,jsxs as cw}from"react/jsx-runtime";var Gp=e=>cw(a,{...e,children:[yy("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),yy("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as vy}from"react/jsx-runtime";var $p=e=>vy(a,{...e,children:vy("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as by}from"react/jsx-runtime";var Wp=e=>by(a,{isFilled:!0,...e,children:by("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 Iy,jsxs as iw}from"react/jsx-runtime";var qp=e=>iw(a,{...e,children:[Iy("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),Iy("path",{d:"M16 19h6"})]});import{jsx as Xp,jsxs as sw}from"react/jsx-runtime";var Kp=e=>sw(a,{...e,children:[Xp("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),Xp("path",{d:"M20.5 21.5l-5 -5"}),Xp("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as Qr,jsxs as pw}from"react/jsx-runtime";var Yp=e=>pw(a,{...e,children:[Qr("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Qr("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Qr("path",{d:"M3 6l0 13"}),Qr("path",{d:"M12 6l0 13"}),Qr("path",{d:"M21 6l0 13"})]});import{jsx as mc,jsxs as dw}from"react/jsx-runtime";var Qp=e=>dw(a,{...e,children:[mc("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"}),mc("path",{d:"M9 13h-2"}),mc("path",{d:"M13 10h-6"}),mc("path",{d:"M11 7h-4"})]});import{jsx as Zp,jsxs as mw}from"react/jsx-runtime";var Jp=e=>mw(a,{...e,children:[Zp("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"}),Zp("path",{d:"M10 8h4"}),Zp("path",{d:"M12 8v8"})]});import{jsx as jp,jsxs as uw}from"react/jsx-runtime";var ed=e=>uw(a,{...e,children:[jp("path",{d:"M9 12l2 2l4 -4"}),jp("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),jp("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Zr,jsxs as fw}from"react/jsx-runtime";var td=e=>fw(a,{...e,children:[Zr("path",{d:"M15 12h.01"}),Zr("path",{d:"M12 12h.01"}),Zr("path",{d:"M9 12h.01"}),Zr("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Zr("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Ht,jsxs as hw}from"react/jsx-runtime";var od=e=>hw(a,{...e,children:[Ht("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"}),Ht("path",{d:"M4 8h16"}),Ht("path",{d:"M20 12h-16"}),Ht("path",{d:"M4 16h16"}),Ht("path",{d:"M9 4v4"}),Ht("path",{d:"M14 8v4"}),Ht("path",{d:"M8 12v4"}),Ht("path",{d:"M16 12v4"}),Ht("path",{d:"M11 16v4"})]});import{jsx as uc,jsxs as gw}from"react/jsx-runtime";var nd=e=>gw(a,{...e,children:[uc("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"}),uc("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),uc("path",{d:"M12 12l0 .01"}),uc("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as mo,jsxs as yw}from"react/jsx-runtime";var rd=e=>yw(a,{...e,children:[mo("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"}),mo("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"}),mo("path",{d:"M8 14l0 .01"}),mo("path",{d:"M12 14l0 .01"}),mo("path",{d:"M16 14l0 .01"}),mo("path",{d:"M8 17l0 .01"}),mo("path",{d:"M12 17l0 .01"}),mo("path",{d:"M16 17l0 .01"})]});import{jsx as Un,jsxs as vw}from"react/jsx-runtime";var Jr=e=>vw(a,{...e,children:[Un("path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z"}),Un("path",{d:"M16 3v4"}),Un("path",{d:"M8 3v4"}),Un("path",{d:"M4 11h16"}),Un("path",{d:"M11 15h1"}),Un("path",{d:"M12 15v3"})]});import{jsx as Gn,jsxs as bw}from"react/jsx-runtime";var ad=e=>bw(a,{...e,children:[Gn("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Gn("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),Gn("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"}),Gn("path",{d:"M6 9l12 0"}),Gn("path",{d:"M6 12l3 0"}),Gn("path",{d:"M6 15l2 0"})]});import{jsx as Cy}from"react/jsx-runtime";var Ut=e=>Cy(a,{...e,children:Cy("path",{d:"M5 12l5 5l10 -10"})});import{jsx as Py,jsxs as Iw}from"react/jsx-runtime";var Wo=e=>Iw(a,{...e,children:[Py("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Py("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as xy,jsxs as Cw}from"react/jsx-runtime";var ld=e=>Cw(a,{...e,children:[xy("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),xy("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as Sy}from"react/jsx-runtime";var cd=e=>Sy(a,{isFilled:!0,...e,children:Sy("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 wy,jsxs as Pw}from"react/jsx-runtime";var id=e=>Pw(a,{...e,children:[wy("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"}),wy("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as My}from"react/jsx-runtime";var sd=e=>My(a,{isFilled:!0,...e,children:My("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 ky}from"react/jsx-runtime";var jr=e=>ky(a,{...e,children:ky("path",{d:"M6 9l6 6l6 -6"})});import{jsx as Ty,jsxs as xw}from"react/jsx-runtime";var pd=e=>xw(a,{...e,children:[Ty("path",{d:"M7 7l5 5l5 -5"}),Ty("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as By}from"react/jsx-runtime";var dd=e=>By(a,{...e,children:By("path",{d:"M8 8v8h8"})});import{jsx as Ry,jsxs as Sw}from"react/jsx-runtime";var md=e=>Sw(a,{...e,children:[Ry("path",{d:"M11 5v8h8"}),Ry("path",{d:"M7 9v8h8"})]});import{jsx as Ny}from"react/jsx-runtime";var ud=e=>Ny(a,{...e,children:Ny("path",{d:"M16 8v8h-8"})});import{jsx as Ly,jsxs as ww}from"react/jsx-runtime";var fd=e=>ww(a,{...e,children:[Ly("path",{d:"M13 5v8h-8"}),Ly("path",{d:"M17 9v8h-8"})]});import{jsx as Ey}from"react/jsx-runtime";var Gt=e=>Ey(a,{...e,children:Ey("path",{d:"M15 6l-6 6l6 6"})});import{jsx as Dy,jsxs as Mw}from"react/jsx-runtime";var hd=e=>Mw(a,{...e,children:[Dy("path",{d:"M11 7l-5 5l5 5"}),Dy("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as Fy}from"react/jsx-runtime";var nt=e=>Fy(a,{...e,children:Fy("path",{d:"M9 6l6 6l-6 6"})});import{jsx as Ay,jsxs as kw}from"react/jsx-runtime";var ea=e=>kw(a,{...e,children:[Ay("path",{d:"M7 7l5 5l-5 5"}),Ay("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as Oy,jsxs as Tw}from"react/jsx-runtime";var gd=e=>Tw(a,{...e,children:[Oy("path",{d:"M8 9l4 -4l4 4"}),Oy("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as _y}from"react/jsx-runtime";var $t=e=>_y(a,{...e,children:_y("path",{d:"M6 15l6 -6l6 6"})});import{jsx as zy,jsxs as Bw}from"react/jsx-runtime";var yd=e=>Bw(a,{...e,children:[zy("path",{d:"M7 11l5 -5l5 5"}),zy("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as Vy}from"react/jsx-runtime";var vd=e=>Vy(a,{...e,children:Vy("path",{d:"M8 16v-8h8"})});import{jsx as Hy,jsxs as Rw}from"react/jsx-runtime";var bd=e=>Rw(a,{...e,children:[Hy("path",{d:"M7 15v-8h8"}),Hy("path",{d:"M11 19v-8h8"})]});import{jsx as Uy}from"react/jsx-runtime";var Id=e=>Uy(a,{...e,children:Uy("path",{d:"M8 8h8v8"})});import{jsx as Gy,jsxs as Nw}from"react/jsx-runtime";var Cd=e=>Nw(a,{...e,children:[Gy("path",{d:"M9 7h8v8"}),Gy("path",{d:"M5 11h8v8"})]});import{jsx as $n,jsxs as Lw}from"react/jsx-runtime";var Pd=e=>Lw(a,{...e,children:[$n("path",{d:"M3 12l3 0"}),$n("path",{d:"M12 3l0 3"}),$n("path",{d:"M7.8 7.8l-2.2 -2.2"}),$n("path",{d:"M16.2 7.8l2.2 -2.2"}),$n("path",{d:"M7.8 16.2l-2.2 2.2"}),$n("path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9"})]});import{jsx as $y,jsxs as Ew}from"react/jsx-runtime";var xd=e=>Ew(a,{...e,children:[$y("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),$y("path",{d:"M12 7v5l3 3"})]});import{jsx as fc,jsxs as Dw}from"react/jsx-runtime";var Sd=e=>Dw(a,{...e,children:[fc("path",{d:"M12 7v5l2 2"}),fc("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),fc("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),fc("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as wd,jsxs as Fw}from"react/jsx-runtime";var Md=e=>Fw(a,{...e,children:[wd("path",{d:"M12 7v5l2 2"}),wd("path",{d:"M17 22l5 -3l-5 -3z"}),wd("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as Wy,jsxs as Aw}from"react/jsx-runtime";var kd=e=>Aw(a,{...e,children:[Wy("path",{d:"M12 8l0 4l2 2"}),Wy("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as ta,jsxs as Ow}from"react/jsx-runtime";var Td=e=>Ow(a,{...e,children:[ta("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),ta("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"}),ta("path",{d:"M11 14h6"}),ta("path",{d:"M14 11v6"}),ta("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 Bd,jsxs as _w}from"react/jsx-runtime";var oa=e=>_w(a,{...e,children:[Bd("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"}),Bd("path",{d:"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),Bd("path",{d:"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"})]});import{jsx as Rd,jsxs as zw}from"react/jsx-runtime";var Nd=e=>zw(a,{...e,children:[Rd("path",{d:"M7 8l-4 4l4 4"}),Rd("path",{d:"M17 8l4 4l-4 4"}),Rd("path",{d:"M14 4l-4 16"})]});import{jsx as Wn,jsxs as Vw}from"react/jsx-runtime";var Ld=e=>Vw(a,{...e,children:[Wn("path",{d:"M4 8h16"}),Wn("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"}),Wn("path",{d:"M8 4v4"}),Wn("path",{d:"M9 12l-2 2l2 2"}),Wn("path",{d:"M15 12l2 2l-2 2"}),Wn("path",{d:"M13 11l-2 6"})]});import{jsx as Ed,jsxs as Hw}from"react/jsx-runtime";var Dd=e=>Hw(a,{...e,children:[Ed("path",{d:"M10 14l-2 -2l2 -2"}),Ed("path",{d:"M14 10l2 2l-2 2"}),Ed("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Fd,jsxs as Uw}from"react/jsx-runtime";var Ad=e=>Uw(a,{...e,children:[Fd("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Fd("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Fd("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as qy,jsxs as Gw}from"react/jsx-runtime";var Od=e=>Gw(a,{...e,children:[qy("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"}),qy("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 Xy,jsxs as $w}from"react/jsx-runtime";var _d=e=>$w(a,{...e,children:[Xy("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"}),Xy("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 zd,jsxs as Ww}from"react/jsx-runtime";var Vd=e=>Ww(a,{...e,children:[zd("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"}),zd("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"}),zd("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as hc,jsxs as qw}from"react/jsx-runtime";var Hd=e=>qw(a,{...e,children:[hc("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"}),hc("path",{d:"M3 10l18 0"}),hc("path",{d:"M7 15l.01 0"}),hc("path",{d:"M11 15l2 0"})]});import{jsx as gc,jsxs as Xw}from"react/jsx-runtime";var Ud=e=>Xw(a,{...e,children:[gc("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"}),gc("path",{d:"M12 22v-10"}),gc("path",{d:"M12 12l8.73 -5.04"}),gc("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as rt,jsxs as Kw}from"react/jsx-runtime";var Gd=e=>Kw(a,{...e,children:[rt("path",{d:"M6 17.6l-2 -1.1v-2.5"}),rt("path",{d:"M4 10v-2.5l2 -1.1"}),rt("path",{d:"M10 4.1l2 -1.1l2 1.1"}),rt("path",{d:"M18 6.4l2 1.1v2.5"}),rt("path",{d:"M20 14v2.5l-2 1.12"}),rt("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),rt("path",{d:"M12 12l2 -1.1"}),rt("path",{d:"M18 8.6l2 -1.1"}),rt("path",{d:"M12 12l0 2.5"}),rt("path",{d:"M12 18.5l0 2.5"}),rt("path",{d:"M12 12l-2 -1.12"}),rt("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as Ky,jsxs as Yw}from"react/jsx-runtime";var na=e=>Yw(a,{...e,children:[Ky("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"}),Ky("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 qo,jsxs as Qw}from"react/jsx-runtime";var $d=e=>Qw(a,{...e,children:[qo("path",{d:"M5 2h5v4h-5z"}),qo("path",{d:"M15 10h5v4h-5z"}),qo("path",{d:"M5 18h5v4h-5z"}),qo("path",{d:"M5 10h5v4h-5z"}),qo("path",{d:"M10 12h5"}),qo("path",{d:"M7.5 6v4"}),qo("path",{d:"M7.5 14v4"})]});import{jsx as at,jsxs as Zw}from"react/jsx-runtime";var Wd=e=>Zw(a,{...e,children:[at("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),at("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),at("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),at("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),at("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),at("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),at("path",{d:"M5 17l2 -3"}),at("path",{d:"M9 10l2 -3"}),at("path",{d:"M13 7l2 3"}),at("path",{d:"M17 14l2 3"}),at("path",{d:"M15 14l-2 3"}),at("path",{d:"M9 14l2 3"})]});import{jsx as ra,jsxs as Jw}from"react/jsx-runtime";var qd=e=>Jw(a,{...e,children:[ra("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"}),ra("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"}),ra("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"}),ra("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),ra("path",{d:"M12 9l0 3"})]});import{jsx as Xd,jsxs as jw}from"react/jsx-runtime";var Kd=e=>jw(a,{...e,children:[Xd("path",{d:"M4 4l16 0"}),Xd("path",{d:"M4 20l16 0"}),Xd("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 Yy,jsxs as eM}from"react/jsx-runtime";var Yd=e=>eM(a,{...e,children:[Yy("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"}),Yy("path",{d:"M12 3v3m0 12v3"})]});import{jsx as Qd,jsxs as tM}from"react/jsx-runtime";var Zd=e=>tM(a,{...e,children:[Qd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Qd("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"}),Qd("path",{d:"M12 7v10"})]});import{jsx as Qy}from"react/jsx-runtime";var Jd=e=>Qy(a,{...e,children:Qy("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as Zy}from"react/jsx-runtime";var jd=e=>Zy(a,{isFilled:!0,...e,children:Zy("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 Wt,jsxs as oM}from"react/jsx-runtime";var em=e=>oM(a,{...e,children:[Wt("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wt("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wt("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wt("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wt("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wt("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wt("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wt("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Wt("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as tm,jsxs as nM}from"react/jsx-runtime";var om=e=>nM(a,{...e,children:[tm("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),tm("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),tm("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as nm,jsxs as rM}from"react/jsx-runtime";var uo=e=>rM(a,{...e,children:[nm("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),nm("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),nm("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as rm,jsxs as aM}from"react/jsx-runtime";var am=e=>aM(a,{...e,children:[rm("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),rm("path",{d:"M7 11l5 5l5 -5"}),rm("path",{d:"M12 4l0 12"})]});import{jsx as Jy,jsxs as lM}from"react/jsx-runtime";var lm=e=>lM(a,{...e,children:[Jy("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),Jy("path",{d:"M13.5 6.5l4 4"})]});import{jsx as cm,jsxs as cM}from"react/jsx-runtime";var im=e=>cM(a,{...e,children:[cm("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),cm("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),cm("path",{d:"M16 5l3 3"})]});import{jsx as fo,jsxs as iM}from"react/jsx-runtime";var sm=e=>iM(a,{...e,children:[fo("path",{d:"M16 4l4 0l0 4"}),fo("path",{d:"M14 10l6 -6"}),fo("path",{d:"M8 20l-4 0l0 -4"}),fo("path",{d:"M4 20l6 -6"}),fo("path",{d:"M16 20l4 0l0 -4"}),fo("path",{d:"M14 14l6 6"}),fo("path",{d:"M8 4l-4 0l0 4"}),fo("path",{d:"M4 4l6 6"})]});import{jsx as pm,jsxs as sM}from"react/jsx-runtime";var dm=e=>sM(a,{...e,children:[pm("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),pm("path",{d:"M11 13l9 -9"}),pm("path",{d:"M15 4h5v5"})]});import{jsx as mm,jsxs as pM}from"react/jsx-runtime";var um=e=>pM(a,{...e,children:[mm("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"}),mm("path",{d:"M15 9l-6 6"}),mm("path",{d:"M10 9l5 0l0 5"})]});import{jsx as jy,jsxs as dM}from"react/jsx-runtime";var fm=e=>dM(a,{...e,children:[jy("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),jy("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 hm,jsxs as mM}from"react/jsx-runtime";var gm=e=>mM(a,{...e,children:[hm("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),hm("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"}),hm("path",{d:"M3 3l18 18"})]});import{jsx as aa,jsxs as uM}from"react/jsx-runtime";var ym=e=>uM(a,{...e,children:[aa("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),aa("path",{d:"M3 15l2.5 -3.8"}),aa("path",{d:"M21 14.976l-2.492 -3.776"}),aa("path",{d:"M9 17l.5 -4"}),aa("path",{d:"M15 17l-.5 -4"})]});import{jsx as yc,jsxs as fM}from"react/jsx-runtime";var vm=e=>fM(a,{...e,children:[yc("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),yc("path",{d:"M8 9l2 1"}),yc("path",{d:"M16 9l-2 1"}),yc("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as qn,jsxs as hM}from"react/jsx-runtime";var bm=e=>hM(a,{...e,children:[qn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),qn("path",{d:"M7 8.5l3 3"}),qn("path",{d:"M7 11.5l3 -3"}),qn("path",{d:"M14 8.5l3 3"}),qn("path",{d:"M14 11.5l3 -3"}),qn("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as vc,jsxs as gM}from"react/jsx-runtime";var Im=e=>gM(a,{...e,children:[vc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),vc("path",{d:"M9 10l.01 0"}),vc("path",{d:"M15 10l.01 0"}),vc("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as e2,jsxs as yM}from"react/jsx-runtime";var Xo=e=>yM(a,{...e,children:[e2("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),e2("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 Cm,jsxs as vM}from"react/jsx-runtime";var Pm=e=>vM(a,{...e,children:[Cm("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Cm("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"}),Cm("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as la,jsxs as bM}from"react/jsx-runtime";var ca=e=>bM(a,{...e,children:[la("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),la("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),la("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),la("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"}),la("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as bc,jsxs as IM}from"react/jsx-runtime";var xm=e=>IM(a,{...e,children:[bc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),bc("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"}),bc("path",{d:"M12 17v-6"}),bc("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as Xn,jsxs as CM}from"react/jsx-runtime";var ia=e=>CM(a,{...e,children:[Xn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Xn("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Xn("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),Xn("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"}),Xn("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"}),Xn("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as Ic,jsxs as PM}from"react/jsx-runtime";var Sm=e=>PM(a,{...e,children:[Ic("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ic("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"}),Ic("path",{d:"M9 17h6"}),Ic("path",{d:"M9 13h6"})]});import{jsx as Cc,jsxs as xM}from"react/jsx-runtime";var lt=e=>xM(a,{...e,children:[Cc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Cc("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"}),Cc("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Cc("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as Kn,jsxs as SM}from"react/jsx-runtime";var Ko=e=>SM(a,{...e,children:[Kn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Kn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Kn("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),Kn("path",{d:"M17 18h2"}),Kn("path",{d:"M20 15h-3v6"}),Kn("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as wm,jsxs as wM}from"react/jsx-runtime";var Mm=e=>wM(a,{...e,children:[wm("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),wm("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"}),wm("path",{d:"M16 17v2a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"})]});import{jsx as sa,jsxs as MM}from"react/jsx-runtime";var pa=e=>MM(a,{...e,children:[sa("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),sa("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),sa("path",{d:"M8 11h8v7h-8z"}),sa("path",{d:"M8 15h8"}),sa("path",{d:"M11 11v7"})]});import{jsx as da,jsxs as kM}from"react/jsx-runtime";var qt=e=>kM(a,{...e,children:[da("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),da("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"}),da("path",{d:"M9 9l1 0"}),da("path",{d:"M9 13l6 0"}),da("path",{d:"M9 17l6 0"})]});import{jsx as Pc,jsxs as TM}from"react/jsx-runtime";var km=e=>TM(a,{...e,children:[Pc("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Pc("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"}),Pc("path",{d:"M12 11v6"}),Pc("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as Yn,jsxs as BM}from"react/jsx-runtime";var ma=e=>BM(a,{...e,children:[Yn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Yn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Yn("path",{d:"M4 15l4 6"}),Yn("path",{d:"M4 21l4 -6"}),Yn("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"}),Yn("path",{d:"M11 15v6h3"})]});import{jsx as ho,jsxs as RM}from"react/jsx-runtime";var ua=e=>RM(a,{...e,children:[ho("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),ho("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),ho("path",{d:"M4 16l3 5"}),ho("path",{d:"M4 21l3 -5"}),ho("path",{d:"M8.5 16v5h2"}),ho("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"}),ho("path",{d:"M16.5 16l3 5"}),ho("path",{d:"M16.5 21l3 -5"})]});import{jsx as go,jsxs as NM}from"react/jsx-runtime";var Pt=e=>NM(a,{...e,children:[go("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"}),go("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"}),go("path",{d:"M11 5l-1 0"}),go("path",{d:"M13 7l-1 0"}),go("path",{d:"M11 9l-1 0"}),go("path",{d:"M13 11l-1 0"}),go("path",{d:"M11 13l-1 0"}),go("path",{d:"M13 15l-1 0"})]});import{jsx as t2}from"react/jsx-runtime";var Tm=e=>t2(a,{...e,children:t2("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 Bm,jsxs as LM}from"react/jsx-runtime";var fa=e=>LM(a,{...e,children:[Bm("path",{d:"M4 6h16"}),Bm("path",{d:"M6 12h12"}),Bm("path",{d:"M9 18h6"})]});import{jsx as o2,jsxs as EM}from"react/jsx-runtime";var Rm=e=>EM(a,{...e,children:[o2("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"}),o2("path",{d:"M5 21v-7"})]});import{jsx as n2}from"react/jsx-runtime";var Nm=e=>n2(a,{...e,children:n2("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as r2}from"react/jsx-runtime";var Lm=e=>r2(a,{isFilled:!0,...e,children:r2("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 ha,jsxs as DM}from"react/jsx-runtime";var Em=e=>DM(a,{...e,children:[ha("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ha("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),ha("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),ha("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),ha("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as a2}from"react/jsx-runtime";var Dm=e=>a2(a,{...e,children:a2("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 xc,jsxs as FM}from"react/jsx-runtime";var Fm=e=>FM(a,{...e,children:[xc("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"}),xc("path",{d:"M1 12.5l7 0"}),xc("path",{d:"M1 12.5l2 2"}),xc("path",{d:"M1 12.5l2 -2"})]});import{jsx as Sc,jsxs as AM}from"react/jsx-runtime";var Am=e=>AM(a,{...e,children:[Sc("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"}),Sc("path",{d:"M2 13l7 0"}),Sc("path",{d:"M9 13l-2 2"}),Sc("path",{d:"M9 13l-2 -2"})]});import{jsx as l2,jsxs as OM}from"react/jsx-runtime";var Om=e=>OM(a,{...e,children:[l2("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),l2("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as Qn,jsxs as _M}from"react/jsx-runtime";var _m=e=>_M(a,{...e,children:[Qn("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Qn("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Qn("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Qn("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Qn("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Qn("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as wc,jsxs as zM}from"react/jsx-runtime";var zm=e=>zM(a,{...e,children:[wc("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),wc("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),wc("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),wc("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 Zn,jsxs as VM}from"react/jsx-runtime";var Vm=e=>VM(a,{...e,children:[Zn("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Zn("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Zn("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Zn("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),Zn("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"}),Zn("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 Mc,jsxs as HM}from"react/jsx-runtime";var Hm=e=>HM(a,{...e,children:[Mc("path",{d:"M5 9l14 0"}),Mc("path",{d:"M5 15l14 0"}),Mc("path",{d:"M11 4l-4 16"}),Mc("path",{d:"M17 4l-4 16"})]});import{jsx as kc,jsxs as UM}from"react/jsx-runtime";var Um=e=>UM(a,{...e,children:[kc("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),kc("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),kc("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"}),kc("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 c2}from"react/jsx-runtime";var Gm=e=>c2(a,{...e,children:c2("path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"})});import{jsx as i2}from"react/jsx-runtime";var $m=e=>i2(a,{isFilled:!0,...e,children:i2("path",{d:"M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z"})});import{jsx as Wm,jsxs as GM}from"react/jsx-runtime";var qm=e=>GM(a,{...e,children:[Wm("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),Wm("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),Wm("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as s2,jsxs as $M}from"react/jsx-runtime";var ga=e=>$M(a,{...e,children:[s2("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"}),s2("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Tc,jsxs as WM}from"react/jsx-runtime";var _e=e=>WM(a,{...e,children:[Tc("path",{d:"M15 8h.01"}),Tc("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"}),Tc("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Tc("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as ya,jsxs as qM}from"react/jsx-runtime";var Xm=e=>qM(a,{...e,children:[ya("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"}),ya("path",{d:"M4 16l16 0"}),ya("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),ya("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),ya("path",{d:"M14 7l.01 0"})]});import{jsx as va,jsxs as XM}from"react/jsx-runtime";var Km=e=>XM(a,{...e,children:[va("path",{d:"M15 8h.01"}),va("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"}),va("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),va("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),va("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as ba,jsxs as KM}from"react/jsx-runtime";var Ym=e=>KM(a,{...e,children:[ba("path",{d:"M15 8h.01"}),ba("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"}),ba("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),ba("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),ba("path",{d:"M3 3l18 18"})]});import{jsx as p2,jsxs as YM}from"react/jsx-runtime";var Qm=e=>YM(a,{...e,children:[p2("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),p2("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 d2,jsxs as QM}from"react/jsx-runtime";var Zm=e=>QM(a,{...e,children:[d2("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"}),d2("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as Jm,jsxs as ZM}from"react/jsx-runtime";var jm=e=>ZM(a,{...e,children:[Jm("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Jm("path",{d:"M12 9h.01"}),Jm("path",{d:"M11 12h1v4h1"})]});import{jsx as eu,jsxs as JM}from"react/jsx-runtime";var tu=e=>JM(a,{...e,children:[eu("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"}),eu("path",{d:"M12 9h.01"}),eu("path",{d:"M11 12h1v4h1"})]});import{jsx as ou,jsxs as jM}from"react/jsx-runtime";var nu=e=>jM(a,{...e,children:[ou("path",{d:"M11 5l6 0"}),ou("path",{d:"M7 19l6 0"}),ou("path",{d:"M14 5l-4 14"})]});import{jsx as ru,jsxs as e4}from"react/jsx-runtime";var au=e=>e4(a,{...e,children:[ru("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),ru("path",{d:"M4 12l8 4l8 -4"}),ru("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as m2,jsxs as t4}from"react/jsx-runtime";var lu=e=>t4(a,{...e,children:[m2("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),m2("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as u2,jsxs as o4}from"react/jsx-runtime";var cu=e=>o4(a,{...e,children:[u2("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"}),u2("path",{d:"M9 4l0 16"})]});import{jsx as iu,jsxs as n4}from"react/jsx-runtime";var su=e=>n4(a,{...e,children:[iu("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"}),iu("path",{d:"M4 13m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"}),iu("path",{d:"M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"})]});import{jsx as Bc,jsxs as r4}from"react/jsx-runtime";var pu=e=>r4(a,{...e,children:[Bc("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"}),Bc("path",{d:"M4 9h8"}),Bc("path",{d:"M12 15h8"}),Bc("path",{d:"M12 4v16"})]});import{jsx as Ia,jsxs as a4}from"react/jsx-runtime";var du=e=>a4(a,{...e,children:[Ia("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"}),Ia("path",{d:"M4 12h8"}),Ia("path",{d:"M12 15h8"}),Ia("path",{d:"M12 9h8"}),Ia("path",{d:"M12 4v16"})]});import{jsx as mu,jsxs as l4}from"react/jsx-runtime";var uu=e=>l4(a,{...e,children:[mu("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"}),mu("path",{d:"M10 4l4 16"}),mu("path",{d:"M12 12l-8 2"})]});import{jsx as Rc,jsxs as c4}from"react/jsx-runtime";var fu=e=>c4(a,{...e,children:[Rc("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"}),Rc("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"}),Rc("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"}),Rc("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 Jn,jsxs as i4}from"react/jsx-runtime";var hu=e=>i4(a,{...e,children:[Jn("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Jn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Jn("path",{d:"M15 15l3.35 3.35"}),Jn("path",{d:"M9 15l-3.35 3.35"}),Jn("path",{d:"M5.65 5.65l3.35 3.35"}),Jn("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as gu,jsxs as s4}from"react/jsx-runtime";var yu=e=>s4(a,{...e,children:[gu("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),gu("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"}),gu("path",{d:"M9.7 17l4.6 0"})]});import{jsx as f2}from"react/jsx-runtime";var vu=e=>f2(a,{...e,children:f2("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as h2,jsxs as p4}from"react/jsx-runtime";var bu=e=>p4(a,{...e,children:[h2("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),h2("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as g2,jsxs as d4}from"react/jsx-runtime";var Iu=e=>d4(a,{...e,children:[g2("path",{d:"M4 19l16 0"}),g2("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as jn,jsxs as m4}from"react/jsx-runtime";var Cu=e=>m4(a,{...e,children:[jn("path",{d:"M3 3v18h18"}),jn("path",{d:"M20 18v3"}),jn("path",{d:"M16 16v5"}),jn("path",{d:"M12 13v8"}),jn("path",{d:"M8 16v5"}),jn("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as er,jsxs as u4}from"react/jsx-runtime";var Pu=e=>u4(a,{...e,children:[er("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"}),er("path",{d:"M3 13c0 0, 8 0, 12 -4"}),er("path",{d:"M12 8h4v4"}),er("path",{d:"M15 2v1.44"}),er("path",{d:"M18.75 4.75l1.2 -1.2"}),er("path",{d:"M20 9h1.44"})]});import{jsx as xu,jsxs as f4}from"react/jsx-runtime";var Su=e=>f4(a,{...e,children:[xu("path",{d:"M4 19l16 0"}),xu("path",{d:"M4 16l6 -6l4 4l5 -5"}),xu("path",{d:"M15 8h5v5"})]});import{jsx as y2,jsxs as h4}from"react/jsx-runtime";var wu=e=>h4(a,{...e,children:[y2("path",{d:"M5 10h14"}),y2("path",{d:"M5 14h14"})]});import{jsx as tr,jsxs as g4}from"react/jsx-runtime";var Mu=e=>g4(a,{...e,children:[tr("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),tr("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),tr("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),tr("path",{d:"M11 6l9 0"}),tr("path",{d:"M11 12l9 0"}),tr("path",{d:"M11 18l9 0"})]});import{jsx as Nc,jsxs as y4}from"react/jsx-runtime";var ku=e=>y4(a,{...e,children:[Nc("path",{d:"M12 10v8l8 -4z"}),Nc("path",{d:"M4 6h16"}),Nc("path",{d:"M4 12h4.5"}),Nc("path",{d:"M4 18h4.5"})]});import{jsx as Tu,jsxs as v4}from"react/jsx-runtime";var Bu=e=>v4(a,{...e,children:[Tu("path",{d:"M9 15l6 -6"}),Tu("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Tu("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 v2,jsxs as b4}from"react/jsx-runtime";var Ru=e=>b4(a,{...e,children:[v2("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),v2("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Lc,jsxs as I4}from"react/jsx-runtime";var Nu=e=>I4(a,{...e,children:[Lc("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Lc("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Lc("path",{d:"M3 3l18 18"}),Lc("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 or,jsxs as C4}from"react/jsx-runtime";var Lu=e=>C4(a,{...e,children:[or("path",{d:"M9 6l11 0"}),or("path",{d:"M9 12l11 0"}),or("path",{d:"M9 18l11 0"}),or("path",{d:"M5 6l0 .01"}),or("path",{d:"M5 12l0 .01"}),or("path",{d:"M5 18l0 .01"})]});import{jsx as Ca,jsxs as P4}from"react/jsx-runtime";var Eu=e=>P4(a,{...e,children:[Ca("path",{d:"M11 6h9"}),Ca("path",{d:"M11 12h9"}),Ca("path",{d:"M12 18h8"}),Ca("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),Ca("path",{d:"M6 10v-6l-2 2"})]});import{jsx as Du,jsxs as x4}from"react/jsx-runtime";var Fu=e=>x4(a,{...e,children:[Du("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"}),Du("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Du("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as b2}from"react/jsx-runtime";var Au=e=>b2(a,{isFilled:!0,...e,children:b2("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 Ou,jsxs as S4}from"react/jsx-runtime";var _u=e=>S4(a,{...e,children:[Ou("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"}),Ou("path",{d:"M3 12h13l-3 -3"}),Ou("path",{d:"M13 15l3 -3"})]});import{jsx as zu,jsxs as w4}from"react/jsx-runtime";var Vu=e=>w4(a,{...e,children:[zu("path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"}),zu("path",{d:"M9 12h12l-3 -3"}),zu("path",{d:"M18 15l3 -3"})]});import{jsx as Hu,jsxs as M4}from"react/jsx-runtime";var Uu=e=>M4(a,{...e,children:[Hu("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"}),Hu("path",{d:"M15 12h-12l3 -3"}),Hu("path",{d:"M6 15l-3 -3"})]});import{jsx as Ec,jsxs as k4}from"react/jsx-runtime";var Gu=e=>k4(a,{...e,children:[Ec("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),Ec("path",{d:"M15 6l3 3"}),Ec("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"}),Ec("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 I2,jsxs as T4}from"react/jsx-runtime";var $u=e=>T4(a,{...e,children:[I2("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"}),I2("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as Dc,jsxs as B4}from"react/jsx-runtime";var Wu=e=>B4(a,{...e,children:[Dc("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),Dc("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),Dc("path",{d:"M3 19l6 -6"}),Dc("path",{d:"M15 13l6 6"})]});import{jsx as C2,jsxs as R4}from"react/jsx-runtime";var qu=e=>R4(a,{...e,children:[C2("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),C2("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 Fc,jsxs as N4}from"react/jsx-runtime";var Pa=e=>N4(a,{...e,children:[Fc("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Fc("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Fc("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Fc("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Ac,jsxs as L4}from"react/jsx-runtime";var Xu=e=>L4(a,{...e,children:[Ac("path",{d:"M16 4l4 0l0 4"}),Ac("path",{d:"M14 10l6 -6"}),Ac("path",{d:"M8 20l-4 0l0 -4"}),Ac("path",{d:"M4 20l6 -6"})]});import{jsx as P2}from"react/jsx-runtime";var Ku=e=>P2(a,{...e,children:P2("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 Yu,jsxs as E4}from"react/jsx-runtime";var Qu=e=>E4(a,{...e,children:[Yu("path",{d:"M8 9h8"}),Yu("path",{d:"M8 13h6"}),Yu("path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"})]});import{jsx as Oc,jsxs as D4}from"react/jsx-runtime";var Zu=e=>D4(a,{...e,children:[Oc("path",{d:"M12 11v.01"}),Oc("path",{d:"M8 11v.01"}),Oc("path",{d:"M16 11v.01"}),Oc("path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3z"})]});import{jsx as xa,jsxs as F4}from"react/jsx-runtime";var Ju=e=>F4(a,{...e,children:[xa("path",{d:"M8 9h8"}),xa("path",{d:"M8 13h6"}),xa("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"}),xa("path",{d:"M22 22l-5 -5"}),xa("path",{d:"M17 22l5 -5"})]});import{jsx as _c,jsxs as A4}from"react/jsx-runtime";var Sa=e=>A4(a,{...e,children:[_c("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"}),_c("path",{d:"M5 10a7 7 0 0 0 14 0"}),_c("path",{d:"M8 21l8 0"}),_c("path",{d:"M12 17l0 4"})]});import{jsx as zc,jsxs as O4}from"react/jsx-runtime";var wa=e=>O4(a,{...e,children:[zc("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),zc("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),zc("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),zc("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as Vc,jsxs as _4}from"react/jsx-runtime";var ju=e=>_4(a,{...e,children:[Vc("path",{d:"M18 10h-4v-4"}),Vc("path",{d:"M20 4l-6 6"}),Vc("path",{d:"M6 14h4v4"}),Vc("path",{d:"M10 14l-6 6"})]});import{jsx as x2,jsxs as z4}from"react/jsx-runtime";var ef=e=>z4(a,{...e,children:[x2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),x2("path",{d:"M9 12l6 0"})]});import{jsx as tf,jsxs as V4}from"react/jsx-runtime";var of=e=>V4(a,{...e,children:[tf("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"}),tf("path",{d:"M11 4h2"}),tf("path",{d:"M12 17v.01"})]});import{jsx as Hc,jsxs as H4}from"react/jsx-runtime";var nf=e=>H4(a,{...e,children:[Hc("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"}),Hc("path",{d:"M7 20h10"}),Hc("path",{d:"M9 16v4"}),Hc("path",{d:"M15 16v4"})]});import{jsx as Ma,jsxs as U4}from"react/jsx-runtime";var rf=e=>U4(a,{...e,children:[Ma("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"}),Ma("path",{d:"M3 13h18"}),Ma("path",{d:"M8 21h8"}),Ma("path",{d:"M10 17l-.5 4"}),Ma("path",{d:"M14 17l.5 4"})]});import{jsx as S2}from"react/jsx-runtime";var af=e=>S2(a,{...e,children:S2("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 w2,jsxs as G4}from"react/jsx-runtime";var lf=e=>G4(a,{...e,children:[w2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),w2("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 yo,jsxs as $4}from"react/jsx-runtime";var ut=e=>$4(a,{...e,children:[yo("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"}),yo("path",{d:"M8 4l0 16"}),yo("path",{d:"M16 4l0 16"}),yo("path",{d:"M4 8l4 0"}),yo("path",{d:"M4 16l4 0"}),yo("path",{d:"M4 12l16 0"}),yo("path",{d:"M16 8l4 0"}),yo("path",{d:"M16 16l4 0"})]});import{jsx as M2}from"react/jsx-runtime";var cf=e=>M2(a,{...e,children:M2("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 k2,jsxs as W4}from"react/jsx-runtime";var sf=e=>W4(a,{...e,children:[k2("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),k2("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as ka,jsxs as q4}from"react/jsx-runtime";var pf=e=>q4(a,{...e,children:[ka("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),ka("path",{d:"M12 12l8 -4.5"}),ka("path",{d:"M12 12l0 9"}),ka("path",{d:"M12 12l-8 -4.5"}),ka("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as Uc,jsxs as X4}from"react/jsx-runtime";var df=e=>X4(a,{...e,children:[Uc("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"}),Uc("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Uc("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Uc("path",{d:"M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ta,jsxs as K4}from"react/jsx-runtime";var mf=e=>K4(a,{...e,children:[Ta("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"}),Ta("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"}),Ta("path",{d:"M15 16h.01"}),Ta("path",{d:"M12.01 16h.01"}),Ta("path",{d:"M9.02 16h.01"})]});import{jsx as T2,jsxs as Y4}from"react/jsx-runtime";var ft=e=>Y4(a,{...e,children:[T2("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"}),T2("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 uf,jsxs as Q4}from"react/jsx-runtime";var ff=e=>Q4(a,{...e,children:[uf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),uf("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"}),uf("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 hf,jsxs as Z4}from"react/jsx-runtime";var gf=e=>Z4(a,{...e,children:[hf("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"}),hf("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),hf("path",{d:"M16 9h2"})]});import{jsx as yf,jsxs as J4}from"react/jsx-runtime";var vf=e=>J4(a,{...e,children:[yf("path",{d:"M14 6l7 7l-4 4"}),yf("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"}),yf("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as Gc,jsxs as j4}from"react/jsx-runtime";var bf=e=>j4(a,{...e,children:[Gc("path",{d:"M9 15l6 -6"}),Gc("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),Gc("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),Gc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as B2}from"react/jsx-runtime";var If=e=>B2(a,{...e,children:B2("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 Cf,jsxs as e5}from"react/jsx-runtime";var Pf=e=>e5(a,{...e,children:[Cf("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"}),Cf("path",{d:"M15 7a2 2 0 0 1 2 2"}),Cf("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as R2,jsxs as t5}from"react/jsx-runtime";var Ba=e=>t5(a,{...e,children:[R2("path",{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"}),R2("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 xf,jsxs as o5}from"react/jsx-runtime";var Ra=e=>o5(a,{...e,children:[xf("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),xf("path",{d:"M9 15l-4.5 4.5"}),xf("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as N2}from"react/jsx-runtime";var ht=e=>N2(a,{...e,children:N2("path",{d:"M7 4v16l13 -8z"})});import{jsx as L2,jsxs as n5}from"react/jsx-runtime";var Sf=e=>n5(a,{...e,children:[L2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),L2("path",{d:"M9 8v8l8 -4z"})]});import{jsx as E2,jsxs as r5}from"react/jsx-runtime";var Na=e=>r5(a,{...e,children:[E2("path",{d:"M12 5l0 14"}),E2("path",{d:"M5 12l14 0"})]});import{jsx as wf,jsxs as a5}from"react/jsx-runtime";var vo=e=>a5(a,{...e,children:[wf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),wf("path",{d:"M9 12h6"}),wf("path",{d:"M12 9v6"})]});import{jsx as Mf,jsxs as l5}from"react/jsx-runtime";var kf=e=>l5(a,{...e,children:[Mf("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"}),Mf("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),Mf("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 D2}from"react/jsx-runtime";var Tf=e=>D2(a,{...e,children:D2("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as Bf,jsxs as c5}from"react/jsx-runtime";var La=e=>c5(a,{...e,children:[Bf("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Bf("path",{d:"M12 16v.01"}),Bf("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as F2,jsxs as i5}from"react/jsx-runtime";var Rf=e=>i5(a,{...e,children:[F2("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"}),F2("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 A2,jsxs as s5}from"react/jsx-runtime";var Nf=e=>s5(a,{...e,children:[A2("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),A2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as O2}from"react/jsx-runtime";var Lf=e=>O2(a,{isFilled:!0,...e,children:O2("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 _2}from"react/jsx-runtime";var Ef=e=>_2(a,{...e,children:_2("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 z2,jsxs as p5}from"react/jsx-runtime";var Df=e=>p5(a,{...e,children:[z2("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"}),z2("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as V2,jsxs as d5}from"react/jsx-runtime";var Ff=e=>d5(a,{...e,children:[V2("path",{d:"M15 14l4 -4l-4 -4"}),V2("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as H2}from"react/jsx-runtime";var Ea=e=>H2(a,{...e,children:H2("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as U2,jsxs as m5}from"react/jsx-runtime";var Af=e=>m5(a,{...e,children:[U2("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),U2("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as G2,jsxs as u5}from"react/jsx-runtime";var Of=e=>u5(a,{...e,children:[G2("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),G2("path",{d:"M20 4v5h-5"})]});import{jsx as $2,jsxs as f5}from"react/jsx-runtime";var _f=e=>f5(a,{...e,children:[$2("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),$2("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as $c,jsxs as h5}from"react/jsx-runtime";var zf=e=>h5(a,{...e,children:[$c("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"}),$c("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"}),$c("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),$c("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as W2}from"react/jsx-runtime";var Da=e=>W2(a,{...e,children:W2("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Vf,jsxs as g5}from"react/jsx-runtime";var Hf=e=>g5(a,{...e,children:[Vf("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Vf("path",{d:"M3 4.001v5h5"}),Vf("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Uf,jsxs as y5}from"react/jsx-runtime";var Gf=e=>y5(a,{...e,children:[Uf("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"}),Uf("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),Uf("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as q2,jsxs as v5}from"react/jsx-runtime";var $f=e=>v5(a,{...e,children:[q2("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"}),q2("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 X2,jsxs as b5}from"react/jsx-runtime";var Wf=e=>b5(a,{...e,children:[X2("path",{d:"M12 3v9h9"}),X2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as qf,jsxs as I5}from"react/jsx-runtime";var Xf=e=>I5(a,{...e,children:[qf("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),qf("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),qf("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 Kf,jsxs as C5}from"react/jsx-runtime";var Yf=e=>C5(a,{...e,children:[Kf("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"}),Kf("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Kf("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as bo,jsxs as P5}from"react/jsx-runtime";var Qf=e=>P5(a,{...e,children:[bo("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),bo("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),bo("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),bo("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),bo("path",{d:"M5 11h1v2h-1z"}),bo("path",{d:"M10 11l0 2"}),bo("path",{d:"M14 11h1v2h-1z"}),bo("path",{d:"M19 11l0 2"})]});import{jsx as Wc,jsxs as x5}from"react/jsx-runtime";var Fa=e=>x5(a,{...e,children:[Wc("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Wc("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Wc("path",{d:"M8.6 8.6l10.4 10.4"}),Wc("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as K2,jsxs as S5}from"react/jsx-runtime";var Xt=e=>S5(a,{...e,children:[K2("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),K2("path",{d:"M21 21l-6 -6"})]});import{jsx as Y2,jsxs as w5}from"react/jsx-runtime";var Zf=e=>w5(a,{...e,children:[Y2("path",{d:"M10 14l11 -11"}),Y2("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 qc,jsxs as M5}from"react/jsx-runtime";var Jf=e=>M5(a,{...e,children:[qc("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"}),qc("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"}),qc("path",{d:"M7 8l0 .01"}),qc("path",{d:"M7 16l0 .01"})]});import{jsx as Q2,jsxs as k5}from"react/jsx-runtime";var Aa=e=>k5(a,{...e,children:[Q2("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"}),Q2("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as Kt,jsxs as T5}from"react/jsx-runtime";var jf=e=>T5(a,{...e,children:[Kt("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Kt("path",{d:"M4 6l8 0"}),Kt("path",{d:"M16 6l4 0"}),Kt("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Kt("path",{d:"M4 12l2 0"}),Kt("path",{d:"M10 12l10 0"}),Kt("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Kt("path",{d:"M4 18l11 0"}),Kt("path",{d:"M19 18l1 0"})]});import{jsx as Oa,jsxs as B5}from"react/jsx-runtime";var eh=e=>B5(a,{...e,children:[Oa("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Oa("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Oa("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Oa("path",{d:"M8.7 10.7l6.6 -3.4"}),Oa("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as Z2,jsxs as R5}from"react/jsx-runtime";var th=e=>R5(a,{...e,children:[Z2("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"}),Z2("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as oh,jsxs as N5}from"react/jsx-runtime";var nh=e=>N5(a,{...e,children:[oh("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"}),oh("path",{d:"M16 19h6"}),oh("path",{d:"M19 16v6"})]});import{jsx as rh,jsxs as L5}from"react/jsx-runtime";var ah=e=>L5(a,{...e,children:[rh("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"}),rh("path",{d:"M22 22l-5 -5"}),rh("path",{d:"M17 22l5 -5"})]});import{jsx as J2,jsxs as E5}from"react/jsx-runtime";var lh=e=>E5(a,{...e,children:[J2("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"}),J2("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as Xc,jsxs as D5}from"react/jsx-runtime";var ch=e=>D5(a,{...e,children:[Xc("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xc("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Xc("path",{d:"M17 17h-11v-14h-2"}),Xc("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as Io,jsxs as F5}from"react/jsx-runtime";var ih=e=>F5(a,{...e,children:[Io("path",{d:"M5 9l4 0l0 -4"}),Io("path",{d:"M3 3l6 6"}),Io("path",{d:"M5 15l4 0l0 4"}),Io("path",{d:"M3 21l6 -6"}),Io("path",{d:"M19 9l-4 0l0 -4"}),Io("path",{d:"M15 9l6 -6"}),Io("path",{d:"M19 15l-4 0l0 4"}),Io("path",{d:"M15 15l6 6"})]});import{jsx as Kc,jsxs as A5}from"react/jsx-runtime";var sh=e=>A5(a,{...e,children:[Kc("path",{d:"M18 4l3 3l-3 3"}),Kc("path",{d:"M18 20l3 -3l-3 -3"}),Kc("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),Kc("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 j2,jsxs as O5}from"react/jsx-runtime";var ph=e=>O5(a,{...e,children:[j2("path",{d:"M4 5v14l12 -7z"}),j2("path",{d:"M20 5l0 14"})]});import{jsx as ev,jsxs as _5}from"react/jsx-runtime";var dh=e=>_5(a,{...e,children:[ev("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),ev("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as tv,jsxs as z5}from"react/jsx-runtime";var mh=e=>z5(a,{...e,children:[tv("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"}),tv("path",{d:"M5 5 L19 19"})]});import{jsx as Yo,jsxs as V5}from"react/jsx-runtime";var uh=e=>V5(a,{...e,children:[Yo("path",{d:"M4 10l0 6"}),Yo("path",{d:"M20 10l0 6"}),Yo("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),Yo("path",{d:"M8 3l1 2"}),Yo("path",{d:"M16 3l-1 2"}),Yo("path",{d:"M9 18l0 3"}),Yo("path",{d:"M15 18l0 3"})]});import{jsx as ov,jsxs as H5}from"react/jsx-runtime";var fh=e=>H5(a,{...e,children:[ov("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"}),ov("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as nv}from"react/jsx-runtime";var hh=e=>nv(a,{...e,children:nv("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 _a,jsxs as U5}from"react/jsx-runtime";var gh=e=>U5(a,{...e,children:[_a("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),_a("path",{d:"M3.6 9h16.8"}),_a("path",{d:"M3.6 15h16.8"}),_a("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),_a("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as rv}from"react/jsx-runtime";var yh=e=>rv(a,{...e,children:rv("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 vh,jsxs as G5}from"react/jsx-runtime";var bh=e=>G5(a,{...e,children:[vh("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"}),vh("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),vh("path",{d:"M16.5 7.5v.01"})]});import{jsx as za,jsxs as $5}from"react/jsx-runtime";var Ih=e=>$5(a,{...e,children:[za("path",{d:"M8 11v5"}),za("path",{d:"M8 8v.01"}),za("path",{d:"M12 16v-5"}),za("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),za("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 Ch,jsxs as W5}from"react/jsx-runtime";var Ph=e=>W5(a,{...e,children:[Ch("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Ch("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),Ch("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 Qo,jsxs as q5}from"react/jsx-runtime";var xh=e=>q5(a,{...e,children:[Qo("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"}),Qo("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"}),Qo("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"}),Qo("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"}),Qo("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"}),Qo("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"}),Qo("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"})]});import{jsx as Va,jsxs as X5}from"react/jsx-runtime";var Sh=e=>X5(a,{...e,children:[Va("path",{d:"M21 15l-1 -6l-2.5 6"}),Va("path",{d:"M9 15l1 -6"}),Va("path",{d:"M3 9h1v6h.5l2.5 -6"}),Va("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"}),Va("path",{d:"M18 14h2.7"})]});import{jsx as av,jsxs as K5}from"react/jsx-runtime";var wh=e=>K5(a,{...e,children:[av("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),av("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as Yc,jsxs as Y5}from"react/jsx-runtime";var Ha=e=>Y5(a,{...e,children:[Yc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Yc("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Yc("path",{d:"M13.41 10.59l2.59 -2.59"}),Yc("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as lv}from"react/jsx-runtime";var Mh=e=>lv(a,{...e,children:lv("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as cv}from"react/jsx-runtime";var Ua=e=>cv(a,{...e,children:cv("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 iv}from"react/jsx-runtime";var kh=e=>iv(a,{isFilled:!0,...e,children:iv("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 sv}from"react/jsx-runtime";var Th=e=>sv(a,{isFilled:!0,...e,children:sv("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 pv}from"react/jsx-runtime";var Bh=e=>pv(a,{...e,children:pv("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 dv}from"react/jsx-runtime";var Ga=e=>dv(a,{...e,children:dv("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 mv,jsxs as Q5}from"react/jsx-runtime";var Rh=e=>Q5(a,{...e,children:[mv("path",{d:"M5 12l14 0"}),mv("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 uv,jsxs as Z5}from"react/jsx-runtime";var Nh=e=>Z5(a,{...e,children:[uv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),uv("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 J5}from"react/jsx-runtime";var Lh=e=>J5(a,{...e,children:[fv("path",{d:"M7 10h14l-4 -4"}),fv("path",{d:"M17 14h-14l4 4"})]});import{jsx as Qc,jsxs as j5}from"react/jsx-runtime";var Eh=e=>j5(a,{...e,children:[Qc("path",{d:"M16 3l4 4l-4 4"}),Qc("path",{d:"M10 7l10 0"}),Qc("path",{d:"M8 13l-4 4l4 4"}),Qc("path",{d:"M4 17l9 0"})]});import{jsx as Dh,jsxs as ek}from"react/jsx-runtime";var Fh=e=>ek(a,{...e,children:[Dh("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"}),Dh("path",{d:"M3 10h18"}),Dh("path",{d:"M10 3v18"})]});import{jsx as hv,jsxs as tk}from"react/jsx-runtime";var $a=e=>tk(a,{...e,children:[hv("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hv("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 nr,jsxs as ok}from"react/jsx-runtime";var Ah=e=>ok(a,{...e,children:[nr("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),nr("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),nr("path",{d:"M12 2l0 2"}),nr("path",{d:"M12 20l0 2"}),nr("path",{d:"M20 12l2 0"}),nr("path",{d:"M2 12l2 0"})]});import{jsx as Oh,jsxs as nk}from"react/jsx-runtime";var _h=e=>nk(a,{...e,children:[Oh("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Oh("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Oh("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as zh,jsxs as rk}from"react/jsx-runtime";var Vh=e=>rk(a,{...e,children:[zh("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),zh("path",{d:"M9 11h6"}),zh("path",{d:"M5 19h14"})]});import{jsx as gv,jsxs as ak}from"react/jsx-runtime";var Hh=e=>ak(a,{...e,children:[gv("path",{d:"M6 4l12 0"}),gv("path",{d:"M12 4l0 16"})]});import{jsx as Zc,jsxs as lk}from"react/jsx-runtime";var Uh=e=>lk(a,{...e,children:[Zc("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),Zc("path",{d:"M12.5 5.5l4 4"}),Zc("path",{d:"M4.5 13.5l4 4"}),Zc("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as yv}from"react/jsx-runtime";var Gh=e=>yv(a,{...e,children:yv("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 $h=e=>vv(a,{...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 bv,jsxs as ck}from"react/jsx-runtime";var Wh=e=>ck(a,{isFilled:!0,...e,children:[bv("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"}),bv("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 Iv,jsxs as ik}from"react/jsx-runtime";var qh=e=>ik(a,{...e,children:[Iv("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Iv("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 rr,jsxs as sk}from"react/jsx-runtime";var Xh=e=>sk(a,{...e,children:[rr("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),rr("path",{d:"M4 6.371h7"}),rr("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),rr("path",{d:"M12 20l4 -9l4 9"}),rr("path",{d:"M19.1 18h-6.2"}),rr("path",{d:"M6.694 3l.793 .582"})]});import{jsx as Wa,jsxs as pk}from"react/jsx-runtime";var ct=e=>pk(a,{...e,children:[Wa("path",{d:"M4 7l16 0"}),Wa("path",{d:"M10 11l0 6"}),Wa("path",{d:"M14 11l0 6"}),Wa("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),Wa("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as Cv,jsxs as dk}from"react/jsx-runtime";var Kh=e=>dk(a,{...e,children:[Cv("path",{d:"M3 17l6 -6l4 4l8 -8"}),Cv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as Pv,jsxs as mk}from"react/jsx-runtime";var Yh=e=>mk(a,{...e,children:[Pv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),Pv("path",{d:"M5 19h14"})]});import{jsx as xv,jsxs as uk}from"react/jsx-runtime";var Qh=e=>uk(a,{...e,children:[xv("path",{d:"M9 14l-4 -4l4 -4"}),xv("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as Zh,jsxs as fk}from"react/jsx-runtime";var Jh=e=>fk(a,{...e,children:[Zh("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"}),Zh("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Zh("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as jh,jsxs as hk}from"react/jsx-runtime";var Zo=e=>hk(a,{...e,children:[jh("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"}),jh("path",{d:"M9 15l3 -3l3 3"}),jh("path",{d:"M12 12l0 9"})]});import{jsx as Sv,jsxs as gk}from"react/jsx-runtime";var qa=e=>gk(a,{...e,children:[Sv("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Sv("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as e0,jsxs as yk}from"react/jsx-runtime";var t0=e=>yk(a,{...e,children:[e0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),e0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),e0("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Jc,jsxs as vk}from"react/jsx-runtime";var o0=e=>vk(a,{...e,children:[Jc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Jc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Jc("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),Jc("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as n0,jsxs as bk}from"react/jsx-runtime";var r0=e=>bk(a,{...e,children:[n0("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),n0("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),n0("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 jc,jsxs as Ik}from"react/jsx-runtime";var a0=e=>Ik(a,{...e,children:[jc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),jc("path",{d:"M16 19h6"}),jc("path",{d:"M19 16v6"}),jc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as ei,jsxs as Ck}from"react/jsx-runtime";var l0=e=>Ck(a,{...e,children:[ei("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),ei("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),ei("path",{d:"M16 22l5 -5"}),ei("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as ti,jsxs as Pk}from"react/jsx-runtime";var c0=e=>Pk(a,{...e,children:[ti("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),ti("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),ti("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),ti("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as i0,jsxs as xk}from"react/jsx-runtime";var s0=e=>xk(a,{...e,children:[i0("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),i0("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),i0("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"})]});import{jsx as Xa,jsxs as Sk}from"react/jsx-runtime";var p0=e=>Sk(a,{...e,children:[Xa("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Xa("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),Xa("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Xa("path",{d:"M19 22v-6"}),Xa("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as wv,jsxs as wk}from"react/jsx-runtime";var d0=e=>wk(a,{...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 Mk}from"react/jsx-runtime";var u0=e=>Mk(a,{...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 f0,jsxs as kk}from"react/jsx-runtime";var Ka=e=>kk(a,{...e,children:[f0("path",{d:"M15 8a5 5 0 0 1 0 8"}),f0("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),f0("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 Mv,jsxs as Tk}from"react/jsx-runtime";var Ya=e=>Tk(a,{...e,children:[Mv("path",{d:"M15 8a5 5 0 0 1 0 8"}),Mv("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 Bk}from"react/jsx-runtime";var Qa=e=>Bk(a,{...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 Tv}from"react/jsx-runtime";var h0=e=>Tv(a,{...e,children:Tv("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 Bv,jsxs as Rk}from"react/jsx-runtime";var He=e=>Rk(a,{...e,children:[Bv("path",{d:"M18 6l-12 12"}),Bv("path",{d:"M6 6l12 12"})]});import{jsx as Rv,jsxs as Nk}from"react/jsx-runtime";var g0=e=>Nk(a,{...e,children:[Rv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Rv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Nv}from"react/jsx-runtime";var y0=e=>Nv(a,{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-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 Lv,jsxs as Lk}from"react/jsx-runtime";var v0=e=>Lk(a,{...e,children:[Lv("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"}),Lv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as oi,jsxs as Ek}from"react/jsx-runtime";var b0=e=>Ek(a,{...e,children:[oi("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),oi("path",{d:"M7 10l6 0"}),oi("path",{d:"M10 7l0 6"}),oi("path",{d:"M21 21l-6 -6"})]});import{jsx as I0,jsxs as Dk}from"react/jsx-runtime";var C0=e=>Dk(a,{...e,children:[I0("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),I0("path",{d:"M7 10l6 0"}),I0("path",{d:"M21 21l-6 -6"})]});var xt=(f=>(f["48AlertFeatured"]="48AlertFeatured",f["48SuccessFeatured"]="48SuccessFeatured",f.AlertCircle="AlertCircle",f.AlertOctagon="AlertOctagon",f.AlertTriangle="AlertTriangle",f.Apps="Apps",f.ArrowBarDown="ArrowBarDown",f.ArrowBarLeft="ArrowBarLeft",f.ArrowBarRight="ArrowBarRight",f.ArrowBarToDown="ArrowBarToDown",f.ArrowBarToLeft="ArrowBarToLeft",f.ArrowBarToRight="ArrowBarToRight",f.ArrowBarToUp="ArrowBarToUp",f.ArrowBarUp="ArrowBarUp",f.Archive="Archive",f.ArrowDown="ArrowDown",f.ArrowDownLeft="ArrowDownLeft",f.ArrowDownNarrow="ArrowDownNarrow",f.ArrowDownRight="ArrowDownRight",f.ArrowLeft="ArrowLeft",f.ArrowLeftNarrow="ArrowLeftNarrow",f.ArrowRight="ArrowRight",f.ArrowRightNarrow="ArrowRightNarrow",f.ArrowUp="ArrowUp",f.ArrowUpLeft="ArrowUpLeft",f.ArrowUpNarrow="ArrowUpNarrow",f.ArrowUpRight="ArrowUpRight",f.Attachment="Attachment",f.BadgeHd="BadgeHd",f.BarChart="BarChart",f.BarChartSquare="BarChartSquare",f.Bell="Bell",f.Bold="Bold",f.Bookmark="Bookmark",f.BookmarkCheck="BookmarkCheck",f.BookmarkCheckFill="BookmarkCheckFill",f.BookmarkFill="BookmarkFill",f.BookmarkMinus="BookmarkMinus",f.BookmarkPlus="BookmarkPlus",f.BookmarkX="BookmarkX",f.BookOpen="BookOpen",f.BoxLines="BoxLines",f.BoxText="BoxText",f.BracketsCheck="BracketsCheck",f.BracketsEllipses="BracketsEllipses",f.BrickWall="BrickWall",f.Briefcase="Briefcase",f.Building="Building",f.Calculator="Calculator",f.Calendar="Calendar",f.Certificate="Certificate",f.Check="Check",f.CheckCircle="CheckCircle",f.CheckCircleBroken="CheckCircleBroken",f.CheckFill="CheckFill",f.CheckVerified="CheckVerified",f.CheckVerifiedFill="CheckVerifiedFill",f.ChevronDown="ChevronDown",f.ChevronDownDouble="ChevronDownDouble",f.ChevronDownLeft="ChevronDownLeft",f.ChevronDownLeftDouble="ChevronDownLeftDouble",f.ChevronDownRight="ChevronDownRight",f.ChevronDownRightDouble="ChevronDownRightDouble",f.ChevronLeft="ChevronLeft",f.ChevronLeftDouble="ChevronLeftDouble",f.ChevronRight="ChevronRight",f.ChevronRightDouble="ChevronRightDouble",f.ChevronSelectorVertical="ChevronSelectorVertical",f.ChevronUp="ChevronUp",f.ChevronUpDouble="ChevronUpDouble",f.ChevronUpLeft="ChevronUpLeft",f.ChevronUpLeftDouble="ChevronUpLeftDouble",f.ChevronUpRight="ChevronUpRight",f.ChevronUpRightDouble="ChevronUpRightDouble",f.Click="Click",f.Clock="Clock",f.ClockFastForward="ClockFastForward",f.ClockPlay="ClockPlay",f.ClockRewind="ClockRewind",f.Clone="Clone",f.ClosedCaption="ClosedCaption",f.Code="Code",f.CodeBrowser="CodeBrowser",f.CodeCircle="CodeCircle",f.Colors="Colors",f.ColumnEdit="ColumnEdit",f.Copy="Copy",f.Copy2="Copy2",f.CopyCheck="CopyCheck",f.CreditCard="CreditCard",f.Cube="Cube",f.CubeOutline="CubeOutline",f.CursorBox="CursorBox",f.Dataflow="Dataflow",f.Dataflow2="Dataflow2",f.Dataflow3="Dataflow3",f.DistributeHorizontal="DistributeHorizontal",f.Dollar="Dollar",f.DollarCircle="DollarCircle",f.Dot="Dot",f.DotFill="DotFill",f.DotsGrid="DotsGrid",f.DotsHorizontal="DotsHorizontal",f.DotsVertical="DotsVertical",f.Download="Download",f.Edit="Edit",f.Editable="Editable",f.Expand="Expand",f.ExternalLink="ExternalLink",f.ExternalLink2="ExternalLink2",f.Eye="Eye",f.EyeHidden="EyeHidden",f.EyeHidden2="EyeHidden2",f.FaceAngry="FaceAngry",f.FaceLaugh="FaceLaugh",f.FaceSmile="FaceSmile",f.File="File",f.FileCheck="FileCheck",f.FileCsv="FileCsv",f.FileDownload="FileDownload",f.FileJson="FileJson",f.FileList="FileList",f.FileMusic="FileMusic",f.FilePdf="FilePdf",f.Files="Files",f.FileSpreadsheet="FileSpreadsheet",f.FileText="FileText",f.FileUpload="FileUpload",f.FileXls="FileXls",f.FileXlsx="FileXlsx",f.FileZip="FileZip",f.Filter="Filter",f.Filter2="Filter2",f.Flag="Flag",f.Flag2="Flag2",f.FlagFill="FlagFill",f.Focus="Focus",f.Folder="Folder",f.FolderExport="FolderExport",f.FolderImport="FolderImport",f.GraduationCap="GraduationCap",f.GripVertical="GripVertical",f.Hand="Hand",f.HandShield="HandShield",f.Hash="Hash",f.HeadsetMic="HeadsetMic",f.Heart="Heart",f.HeartFill="HeartFill",f.House="House",f.HouseLine="HouseLine",f.Image="Image",f.Image2="Image2",f.ImageCheck="ImageCheck",f.ImageOff="ImageOff",f.Import="Import",f.Inbox="Inbox",f.InfoCircle="InfoCircle",f.InfoHexagon="InfoHexagon",f.Italic="Italic",f.LayersMultiple="LayersMultiple",f.LayersSingle="LayersSingle",f.Layout="Layout",f.Layout2="Layout2",f.LayoutColumns="LayoutColumns",f.LayoutCustom="LayoutCustom",f.LayoutStuffed="LayoutStuffed",f.LayoutTile="LayoutTile",f.LifeBuoy="LifeBuoy",f.Lightbulb="Lightbulb",f.Lightning="Lightning",f.LightningFast="LightningFast",f.LineChart="LineChart",f.LineChartBar="LineChartBar",f.LineChartBreakoutSquare="LineChartBreakoutSquare",f.LineChartUp="LineChartUp",f.Lines="Lines",f.LinesCheck="LinesCheck",f.LinesPlay="LinesPlay",f.Link="Link",f.Link2="Link2",f.LinkOff="LinkOff",f.ListBullet="ListBullet",f.ListOrder="ListOrder",f.Lock="Lock",f.LockFill="LockFill",f.LogIn="LogIn",f.LogOut="LogOut",f.LogOut2="LogOut2",f.MagicWand="MagicWand",f.Mail="Mail",f.MailOpen="MailOpen",f.MapPin="MapPin",f.Maximize="Maximize",f.Maximize2="Maximize2",f.MessageCircle="MessageCircle",f.MessageSquare="MessageSquare",f.MessageSquare2="MessageSquare2",f.MessageXSquare="MessageXSquare",f.Microphone="Microphone",f.Minimize="Minimize",f.Minimize2="Minimize2",f.MinusCircle="MinusCircle",f.Mobile="Mobile",f.Monitor="Monitor",f.Monitor2="Monitor2",f.Moon="Moon",f.MoonCircle="MoonCircle",f.Movie="Movie",f.NavigationPointer="NavigationPointer",f.NotificationBox="NotificationBox",f.Package="Package",f.Palette="Palette",f.PasscodeLock="PasscodeLock",f.Pause="Pause",f.PauseCircle="PauseCircle",f.PCSetup="PCSetup",f.Pen="Pen",f.PercentageCircle="PercentageCircle",f.Perspective="Perspective",f.PhoneCall="PhoneCall",f.PictureInPicture="PictureInPicture",f.Pin="Pin",f.Play="Play",f.PlayCircle="PlayCircle",f.Plus="Plus",f.PlusCircle="PlusCircle",f.Printer="Printer",f.Pulse="Pulse",f.QuestionCircle="QuestionCircle",f.Quote="Quote",f.RadioButton="RadioButton",f.RadioButtonFill="RadioButtonFill",f.Receipt="Receipt",f.ReceiptCheck="ReceiptCheck",f.Redo="Redo",f.Refresh="Refresh",f.Refresh2="Refresh2",f.Refresh3="Refresh3",f.Repeat="Repeat",f.Replace="Replace",f.Replay="Replay",f.Restore="Restore",f.Rocket="Rocket",f.RoundChart="RoundChart",f.RoundChart2="RoundChart2",f.Route="Route",f.Save="Save",f.ScanDots="ScanDots",f.Scissors="Scissors",f.Search="Search",f.Send="Send",f.Server="Server",f.Settings="Settings",f.Settings2="Settings2",f.Share="Share",f.ShieldLightning="ShieldLightning",f.ShieldPlus="ShieldPlus",f.ShieldRemove="ShieldRemove",f.ShoppingBag="ShoppingBag",f.ShoppingCart="ShoppingCart",f.Shrink="Shrink",f.Shuffle="Shuffle",f.SkipForward="SkipForward",f.SlashCircle="SlashCircle",f.SlashOctagon="SlashOctagon",f.SocialAndroid="SocialAndroid",f.SocialApple="SocialApple",f.SocialGithub="SocialGithub",f.SocialGlobe="SocialGlobe",f.SocialGoogle="SocialGoogle",f.SocialInstagram="SocialInstagram",f.SocialLinkedin="SocialLinkedin",f.SocialMastercard="SocialMastercard",f.SocialReact="SocialReact",f.SocialVisa="SocialVisa",f.SocialX="SocialX",f.Speedometer="Speedometer",f.Stairs="Stairs",f.Star="Star",f.StarFill="StarFill",f.StarHalf="StarHalf",f.Stars="Stars",f.Stop="Stop",f.Strikethrough="Strikethrough",f.Sun="Sun",f.Swap="Swap",f.SwitchHorizontal="SwitchHorizontal",f.Table="Table",f.Tag="Tag",f.Target="Target",f.Target2="Target2",f.TextFormat="TextFormat",f.TextFormat2="TextFormat2",f.TextHighlight="TextHighlight",f.ThumbsDown="ThumbsDown",f.ThumbsUp="ThumbsUp",f.ThumbsUpFill="ThumbsUpFill",f.Toggle="Toggle",f.Translate="Translate",f.Trash="Trash",f.Trending="Trending",f.Underline="Underline",f.Undo="Undo",f.Unlock="Unlock",f.UploadCloud="UploadCloud",f.User="User",f.UserCheck="UserCheck",f.UserDollar="UserDollar",f.UserEdit="UserEdit",f.UserPlus="UserPlus",f.UserRight="UserRight",f.Users="Users",f.UserSquare="UserSquare",f.UsersUp="UsersUp",f.UserVoice="UserVoice",f.Video="Video",f.VideoChat="VideoChat",f.Volume="Volume",f.VolumeDown="VolumeDown",f.VolumeMute="VolumeMute",f.Wrench="Wrench",f.X="X",f.XCircle="XCircle",f.XCircleFill="XCircleFill",f.XSquare="XSquare",f.ZoomIn="ZoomIn",f.ZoomOut="ZoomOut",f))(xt||{});import{jsx as h}from"react/jsx-runtime";function Se({name:e,...t}){switch(e){case"48AlertFeatured":return h(op,{...t});case"48SuccessFeatured":return h(np,{...t});case"AlertCircle":return h($o,{...t});case"AlertOctagon":return h(ap,{...t});case"AlertTriangle":return h(cp,{...t});case"ArrowBarDown":return h(dp,{...t});case"ArrowBarLeft":return h(mp,{...t});case"ArrowBarRight":return h(up,{...t});case"ArrowBarToDown":return h(fp,{...t});case"ArrowBarToLeft":return h(hp,{...t});case"ArrowBarToRight":return h(gp,{...t});case"ArrowBarToUp":return h(yp,{...t});case"ArrowBarUp":return h(vp,{...t});case"Apps":return h(ip,{...t});case"Archive":return h(pp,{...t});case"ArrowDown":return h(Ip,{...t});case"ArrowDownLeft":return h(Cp,{...t});case"ArrowDownNarrow":return h(xp,{...t});case"ArrowDownRight":return h(Sp,{...t});case"ArrowLeft":return h(Mp,{...t});case"ArrowLeftNarrow":return h(Tp,{...t});case"ArrowRight":return h(Rp,{...t});case"ArrowRightNarrow":return h(Lp,{...t});case"ArrowUp":return h(Dp,{...t});case"ArrowUpLeft":return h(Fp,{...t});case"ArrowUpNarrow":return h(Op,{...t});case"ArrowUpRight":return h(_p,{...t});case"Attachment":return h(zp,{...t});case"BadgeHd":return h(Kr,{...t});case"BarChart":return h(Vp,{...t});case"BarChartSquare":return h(Hp,{...t});case"Bell":return h(Up,{...t});case"Bold":return h(Gp,{...t});case"BookOpen":return h(Yp,{...t});case"Bookmark":return h($p,{...t});case"BookmarkCheck":return h(Ys,{...t});case"BookmarkCheckFill":return h(Qs,{...t});case"BookmarkFill":return h(Wp,{...t});case"BookmarkMinus":return h(qp,{...t});case"BookmarkPlus":return h(Js,{...t});case"BookmarkX":return h(Kp,{...t});case"BoxLines":return h(Qp,{...t});case"BoxText":return h(Jp,{...t});case"BracketsCheck":return h(ed,{...t});case"BracketsEllipses":return h(td,{...t});case"BrickWall":return h(od,{...t});case"Briefcase":return h(nd,{...t});case"Building":return h(js,{...t});case"Calculator":return h(rd,{...t});case"Calendar":return h(Jr,{...t});case"Certificate":return h(ad,{...t});case"Check":return h(Ut,{...t});case"CheckCircle":return h(Wo,{...t});case"CheckCircleBroken":return h(ld,{...t});case"CheckFill":return h(cd,{...t});case"CheckVerified":return h(id,{...t});case"CheckVerifiedFill":return h(sd,{...t});case"ChevronDown":return h(jr,{...t});case"ChevronDownDouble":return h(pd,{...t});case"ChevronDownLeft":return h(dd,{...t});case"ChevronDownLeftDouble":return h(md,{...t});case"ChevronDownRight":return h(ud,{...t});case"ChevronDownRightDouble":return h(fd,{...t});case"ChevronLeft":return h(Gt,{...t});case"ChevronLeftDouble":return h(hd,{...t});case"ChevronRight":return h(nt,{...t});case"ChevronRightDouble":return h(ea,{...t});case"ChevronSelectorVertical":return h(gd,{...t});case"ChevronUp":return h($t,{...t});case"ChevronUpDouble":return h(yd,{...t});case"ChevronUpLeft":return h(vd,{...t});case"ChevronUpLeftDouble":return h(bd,{...t});case"ChevronUpRight":return h(Id,{...t});case"ChevronUpRightDouble":return h(Cd,{...t});case"Click":return h(Pd,{...t});case"Clock":return h(xd,{...t});case"ClockFastForward":return h(Sd,{...t});case"ClockPlay":return h(Md,{...t});case"ClockRewind":return h(kd,{...t});case"Clone":return h(Td,{...t});case"ClosedCaption":return h(oa,{...t});case"Code":return h(Nd,{...t});case"CodeBrowser":return h(Ld,{...t});case"CodeCircle":return h(Dd,{...t});case"Colors":return h(Ad,{...t});case"ColumnEdit":return h(ep,{...t});case"Copy":return h(Od,{...t});case"Copy2":return h(_d,{...t});case"CopyCheck":return h(Vd,{...t});case"Files":return h(Mm,{...t});case"CreditCard":return h(Hd,{...t});case"Cube":return h(Ud,{...t});case"CubeOutline":return h(Gd,{...t});case"CursorBox":return h(na,{...t});case"Dataflow":return h($d,{...t});case"Dataflow2":return h(Wd,{...t});case"Dataflow3":return h(qd,{...t});case"DistributeHorizontal":return h(Kd,{...t});case"Dollar":return h(Yd,{...t});case"DollarCircle":return h(Zd,{...t});case"Dot":return h(Jd,{...t});case"DotFill":return h(jd,{...t});case"DotsGrid":return h(em,{...t});case"DotsHorizontal":return h(om,{...t});case"DotsVertical":return h(uo,{...t});case"Download":return h(am,{...t});case"Edit":return h(lm,{...t});case"Editable":return h(im,{...t});case"Expand":return h(sm,{...t});case"ExternalLink":return h(dm,{...t});case"ExternalLink2":return h(um,{...t});case"Eye":return h(fm,{...t});case"EyeHidden":return h(gm,{...t});case"EyeHidden2":return h(ym,{...t});case"FaceAngry":return h(vm,{...t});case"FaceLaugh":return h(bm,{...t});case"FaceSmile":return h(Im,{...t});case"File":return h(Xo,{...t});case"FileCheck":return h(Pm,{...t});case"FileCsv":return h(ca,{...t});case"FileDownload":return h(xm,{...t});case"FileJson":return h(ia,{...t});case"FileList":return h(Sm,{...t});case"FileMusic":return h(lt,{...t});case"FilePdf":return h(Ko,{...t});case"FileSpreadsheet":return h(pa,{...t});case"FileText":return h(qt,{...t});case"FileUpload":return h(km,{...t});case"FileXls":return h(ma,{...t});case"FileXlsx":return h(ua,{...t});case"FileZip":return h(Pt,{...t});case"Filter":return h(Tm,{...t});case"Filter2":return h(fa,{...t});case"Flag":return h(Rm,{...t});case"Flag2":return h(Nm,{...t});case"FlagFill":return h(Lm,{...t});case"Focus":return h(Em,{...t});case"Folder":return h(Dm,{...t});case"FolderExport":return h(Fm,{...t});case"FolderImport":return h(Am,{...t});case"GraduationCap":return h(Om,{...t});case"GripVertical":return h(_m,{...t});case"Hand":return h(zm,{...t});case"HandShield":return h(Vm,{...t});case"Hash":return h(Hm,{...t});case"HeadsetMic":return h(Um,{...t});case"Heart":return h(Gm,{...t});case"HeartFill":return h($m,{...t});case"House":return h(qm,{...t});case"HouseLine":return h(ga,{...t});case"Image":return h(_e,{...t});case"Image2":return h(Xm,{...t});case"ImageCheck":return h(Km,{...t});case"ImageOff":return h(Ym,{...t});case"Import":return h(Qm,{...t});case"Inbox":return h(Zm,{...t});case"InfoCircle":return h(jm,{...t});case"InfoHexagon":return h(tu,{...t});case"Italic":return h(nu,{...t});case"LayersMultiple":return h(au,{...t});case"LayersSingle":return h(lu,{...t});case"Layout":return h(cu,{...t});case"Layout2":return h(su,{...t});case"LayoutColumns":return h(pu,{...t});case"LayoutCustom":return h(du,{...t});case"LayoutStuffed":return h(uu,{...t});case"LayoutTile":return h(fu,{...t});case"LifeBuoy":return h(hu,{...t});case"Lightbulb":return h(yu,{...t});case"Lightning":return h(vu,{...t});case"LightningFast":return h(bu,{...t});case"LineChartBar":return h(Cu,{...t});case"LineChartBreakoutSquare":return h(Pu,{...t});case"LineChart":return h(Iu,{...t});case"LineChartUp":return h(Su,{...t});case"Lines":return h(wu,{...t});case"LinesCheck":return h(Mu,{...t});case"LinesPlay":return h(ku,{...t});case"Link":return h(Bu,{...t});case"Link2":return h(Ru,{...t});case"LinkOff":return h(Nu,{...t});case"ListBullet":return h(Lu,{...t});case"ListOrder":return h(Eu,{...t});case"Lock":return h(Fu,{...t});case"LockFill":return h(Au,{...t});case"LogIn":return h(_u,{...t});case"LogOut":return h(Vu,{...t});case"LogOut2":return h(Uu,{...t});case"MagicWand":return h(Gu,{...t});case"Mail":return h($u,{...t});case"MailOpen":return h(Wu,{...t});case"MapPin":return h(qu,{...t});case"Maximize":return h(Pa,{...t});case"Maximize2":return h(Xu,{...t});case"MessageCircle":return h(Ku,{...t});case"MessageSquare":return h(Qu,{...t});case"MessageSquare2":return h(Zu,{...t});case"MessageXSquare":return h(Ju,{...t});case"Microphone":return h(Sa,{...t});case"Minimize":return h(wa,{...t});case"Minimize2":return h(ju,{...t});case"MinusCircle":return h(ef,{...t});case"Mobile":return h(of,{...t});case"Monitor":return h(nf,{...t});case"Monitor2":return h(rf,{...t});case"Moon":return h(af,{...t});case"MoonCircle":return h(lf,{...t});case"Movie":return h(ut,{...t});case"NavigationPointer":return h(cf,{...t});case"NotificationBox":return h(sf,{...t});case"Package":return h(pf,{...t});case"Palette":return h(df,{...t});case"PasscodeLock":return h(mf,{...t});case"Pause":return h(ft,{...t});case"PauseCircle":return h(ff,{...t});case"PCSetup":return h(gf,{...t});case"Pen":return h(vf,{...t});case"PercentageCircle":return h(bf,{...t});case"Perspective":return h(If,{...t});case"PhoneCall":return h(Pf,{...t});case"PictureInPicture":return h(Ba,{...t});case"Pin":return h(Ra,{...t});case"Play":return h(ht,{...t});case"PlayCircle":return h(Sf,{...t});case"Plus":return h(Na,{...t});case"PlusCircle":return h(vo,{...t});case"Printer":return h(kf,{...t});case"Pulse":return h(Tf,{...t});case"QuestionCircle":return h(La,{...t});case"Quote":return h(Rf,{...t});case"RadioButton":return h(Nf,{...t});case"RadioButtonFill":return h(Lf,{...t});case"Receipt":return h(Ef,{...t});case"ReceiptCheck":return h(Df,{...t});case"Redo":return h(Ff,{...t});case"Refresh":return h(Ea,{...t});case"Refresh2":return h(Af,{...t});case"Refresh3":return h(Of,{...t});case"Repeat":return h(_f,{...t});case"Replace":return h(zf,{...t});case"Replay":return h(Da,{...t});case"Restore":return h(Hf,{...t});case"Rocket":return h(Gf,{...t});case"RoundChart":return h($f,{...t});case"RoundChart2":return h(Wf,{...t});case"Route":return h(Xf,{...t});case"Save":return h(Yf,{...t});case"ScanDots":return h(Qf,{...t});case"Scissors":return h(Fa,{...t});case"Search":return h(Xt,{...t});case"Send":return h(Zf,{...t});case"Server":return h(Jf,{...t});case"Settings":return h(Aa,{...t});case"Settings2":return h(jf,{...t});case"Share":return h(eh,{...t});case"ShieldLightning":return h(th,{...t});case"ShieldPlus":return h(nh,{...t});case"ShieldRemove":return h(ah,{...t});case"ShoppingBag":return h(lh,{...t});case"ShoppingCart":return h(ch,{...t});case"Shrink":return h(ih,{...t});case"Shuffle":return h(sh,{...t});case"SkipForward":return h(ph,{...t});case"SlashCircle":return h(dh,{...t});case"SlashOctagon":return h(mh,{...t});case"SocialAndroid":return h(uh,{...t});case"SocialApple":return h(fh,{...t});case"SocialGithub":return h(hh,{...t});case"SocialGlobe":return h(gh,{...t});case"SocialGoogle":return h(yh,{...t});case"SocialInstagram":return h(bh,{...t});case"SocialLinkedin":return h(Ih,{...t});case"SocialMastercard":return h(Ph,{...t});case"SocialReact":return h(xh,{...t});case"SocialVisa":return h(Sh,{...t});case"SocialX":return h(wh,{...t});case"Speedometer":return h(Ha,{...t});case"Stairs":return h(Mh,{...t});case"Star":return h(Ua,{...t});case"StarFill":return h(kh,{...t});case"StarHalf":return h(Th,{...t});case"Stars":return h(Bh,{...t});case"Stop":return h(Ga,{...t});case"Strikethrough":return h(Rh,{...t});case"Sun":return h(Nh,{...t});case"Swap":return h(Lh,{...t});case"SwitchHorizontal":return h(Eh,{...t});case"Table":return h(Fh,{...t});case"Tag":return h($a,{...t});case"Target":return h(Ah,{...t});case"Target2":return h(_h,{...t});case"TextFormat":return h(Vh,{...t});case"TextFormat2":return h(Hh,{...t});case"TextHighlight":return h(Uh,{...t});case"ThumbsDown":return h(Gh,{...t});case"ThumbsUp":return h($h,{...t});case"ThumbsUpFill":return h(Wh,{...t});case"Toggle":return h(qh,{...t});case"Translate":return h(Xh,{...t});case"Trash":return h(ct,{...t});case"Trending":return h(Kh,{...t});case"Underline":return h(Yh,{...t});case"Undo":return h(Qh,{...t});case"Unlock":return h(Jh,{...t});case"UploadCloud":return h(Zo,{...t});case"User":return h(qa,{...t});case"UserCheck":return h(t0,{...t});case"UserDollar":return h(o0,{...t});case"UserEdit":return h(r0,{...t});case"UserPlus":return h(a0,{...t});case"UserRight":return h(l0,{...t});case"UserSquare":return h(s0,{...t});case"Users":return h(c0,{...t});case"UsersUp":return h(p0,{...t});case"UserVoice":return h(tp,{...t});case"Video":return h(d0,{...t});case"VideoChat":return h(u0,{...t});case"Volume":return h(Ka,{...t});case"VolumeDown":return h(Ya,{...t});case"VolumeMute":return h(Qa,{...t});case"Wrench":return h(h0,{...t});case"X":return h(He,{...t});case"XCircle":return h(g0,{...t});case"XCircleFill":return h(y0,{...t});case"XSquare":return h(v0,{...t});case"ZoomIn":return h(b0,{...t});case"ZoomOut":return h(C0,{...t});default:return null}}var Ev=Xo,Dv={png:_e,jpg:_e,jpeg:_e,gif:_e,bmp:_e,webp:_e,svg:_e,avif:_e,heic:_e,ico:_e,tif:_e,tiff:_e,mp4:ut,mov:ut,webm:ut,avi:ut,mkv:ut,m4v:ut,ogv:ut,mp3:lt,wav:lt,ogg:lt,oga:lt,m4a:lt,aac:lt,flac:lt,weba:lt,pdf:Ko,doc:qt,docx:qt,txt:qt,rtf:qt,odt:qt,json:ia,csv:ca,xls:ma,xlsx:ua,ods:pa,zip:Pt,rar:Pt,"7z":Pt,tar:Pt,gz:Pt,tgz:Pt};var P0=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&Dv[t]||Ev};import{cn as x0,ColorHelpers as Fk}from"@cleen/ui-core";import{forwardRef as Ak}from"react";import{Fragment as _k,jsx as Za,jsxs as zk}from"react/jsx-runtime";var Ok=Ak(function({iconName:t,iconSrc:o,icon:n,iconSize:c=20,header:r,color:l,children:i,classNames:s,styles:p,...d},g){let m=Fk.getComputedColor(l);return Za(he,{ref:g,classNames:{...s,header:{...s?.header,title:x0("cleen-flex cleen-gap-4",s?.header?.title)}},header:{...r,title:zk(_k,{children:[Za("div",{className:x0("cleen-flex cleen-w-10 cleen-h-10 cleen-justify-center cleen-items-center cleen-gap-2 cleen-flex-shrink-0 cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background",s?.iconHolder),style:{...m&&{backgroundColor:$r(m,.85),color:m,borderColor:"transparent"},...p?.iconHolder},children:n||(t?Za(Se,{name:t,className:"cleen-text-foreground",style:{width:c,height:c,...m&&{color:m}}}):o?Za("img",{src:o,alt:"Icon",className:"cleen-text-foreground",style:{width:c,height:c,...m&&{color:m}}}):null)}),r?.title]})},color:l,...d,children:i&&Za("div",{className:x0("cleen-flex-1",s?.content),style:p?.content,children:i})})});import{cn as ar}from"@cleen/ui-core";import{forwardRef as Vk,useMemo as Hk}from"react";import{jsx as Ja}from"react/jsx-runtime";var Uk=Vk(function({media:t,header:o,color:n,children:c,classNames:r,styles:l,...i},s){let p=Hk(()=>{switch(t?.type){case"image":return Ja("img",{...t,alt:t.alt??"Card media",className:ar("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:l?.media?.content});case"video":return Ja("video",{playsInline:!0,controls:!0,...t,className:ar("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:l?.media?.content});case"iframe":return Ja("iframe",{...t,title:t.title??"Card iframe",className:ar("cleen-w-full cleen-aspect-video cleen-object-cover",r?.media?.content),style:l?.media?.content});default:return null}},[t,r?.media,l?.media]);return Ja(he,{ref:s,color:n,classNames:{...r,container:ar("cleen-pt-0",r?.container),header:{...r?.header,content:ar("cleen-p-0",r?.header?.content)}},header:{...o,...p&&{content:Ja("div",{className:ar("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",r?.media?.container),style:l?.media?.container,children:p})}},...i,children:c})});import{cn as ja}from"@cleen/ui-core";import{jsx as ni,jsxs as Gk}from"react/jsx-runtime";var ne=({className:e,classNames:t,style:o,styles:n,infoMessage:c,errorMessage:r,subtitle:l,...i})=>ni("div",{className:ja("cleen",e),style:o,children:Gk("div",{className:ja(t?.container),style:n?.container,...i,children:[c&&ni("div",{className:ja("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:n?.infoMessage,role:"note",children:c}),r&&ni("div",{className:ja("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:n?.errorMessage,role:"alert",children:r}),l&&ni("div",{className:ja("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:n?.subtitle,children:l})]})});import{cn as el}from"@cleen/ui-core";import{jsx as tl,jsxs as $k}from"react/jsx-runtime";var ae=({required:e=!1,tooltip:t,children:o,className:n,classNames:c,style:r,styles:l,...i})=>tl("div",{className:el("cleen",n),style:r,children:$k("label",{...i,className:el("cleen-w-full cleen-flex cleen-gap-1 cleen-items-center cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-leading-6",c?.container),style:l?.container,children:[tl("div",{className:el({"cleen-flex-1":!e&&!t},c?.label),style:l?.label,children:o}),e&&tl("span",{className:el("cleen-text-primary",c?.required),style:l?.required,children:"*"}),t&&tl(Ie,{hasArrow:!0,placement:"top",label:t,color:"rgb(var(--cleen-neutral-600))",...c?.tooltip,style:l?.tooltip?.style,styles:{...l?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...l?.tooltip?.styles?.labelContainer}},children:tl(La,{className:el("cleen-size-3 cleen-text-neutral-500 hover:cleen-text-neutral-900 cleen-transition-colors cleen-cursor-help",c?.questionIcon),style:l?.questionIcon})})]})});import{cn as Yt}from"@cleen/ui-core";import{forwardRef as Wk,useEffect as qk,useId as Xk,useMemo as Kk,useState as Fv}from"react";import{jsx as Co,jsxs as ri}from"react/jsx-runtime";var ye=Wk(function({name:t,id:o,type:n,label:c,labelTooltip:r,defaultValue:l,value:i,files:s,disabled:p,required:d,className:g,classNames:m,style:v,styles:y,autoComplete:u="off",isFocusedBorder:b,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,uploadLabel:P="Choose a file",leftIcon:M,rightIcon:A,topRightIcon:B,inputOverlay:L,infoLabels:D,maxLengthLabel:S,minLengthLabel:N,onChange:w,...F},R){let E=i!==void 0||s!==void 0,[G,T]=Fv(l??""),[k,z]=Fv(null),U=E?i:G,O=E?s:k;qk(()=>{E||T(i??l??"")},[i,l,E]);let _=$=>{let K=$.target.value;if(n==="file"&&$.target.files){E||z($.target.files),w?.($);return}(!C||K.length<=C)&&(E||T(K),w?.($))},X=Kk(()=>x&&N&&(U?.toString()?.length??0)<x?N(x-(U?.toString()?.length??0)):!C||!S||(U?.toString()?.length??0)/C<I?D?.subtitle:S?.(C-(U?.toString()?.length??0)),[U,C,I,D?.subtitle]),H=Xk(),V=!!(D?.errorMessage||D?.infoMessage||X),q=V?`${H}-info`:void 0;return Co("div",{className:Yt("cleen",g),style:v,children:ri("div",{className:Yt("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:[(c||B)&&ri("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[Co(ae,{htmlFor:o||t,required:d,tooltip:r,className:Yt("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...y?.label,children:c}),B]}),ri("label",{className:Yt("cleen-relative cleen-flex cleen-items-stretch cleen-bg-background cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-all cleen-duration-200 cleen-overflow-hidden focus-within:cleen-ring-4 focus-within:cleen-ring-primary-100 focus-within:cleen-ring-offset-0",{"has-[:focus]:cleen-border has-[:focus]:cleen-border-primary/30":b},p&&"cleen-bg-muted",{"cleen-cursor-pointer":n==="file"&&!p},D?.errorMessage?["cleen-border-error/70 focus-within:cleen-ring-error-bg",!p&&"hover:cleen-border-error"]:["cleen-border-border focus-within:cleen-border-primary-400",!p&&"hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary"],m?.inputContainer),style:y?.inputContainer,children:[M&&Co("div",{className:Yt("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-l-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",p?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.leftIconContainer),style:y?.leftIconContainer,children:M}),ri("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[Co("input",{id:o||t,name:t,type:n,disabled:p,maxLength:C,autoComplete:u,value:U,className:Yt("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",M?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":M,"cleen-rounded-r-none":A,"cleen-hidden":n==="file"},p?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:y?.input,onChange:_,required:d,"aria-invalid":D?.errorMessage?!0:void 0,"aria-describedby":q,ref:R,...F}),L&&Co("div",{className:Yt("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",M?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",m?.inputOverlay),style:y?.inputOverlay,children:L}),n==="file"&&Co("p",{className:Yt("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",p?"cleen-text-neutral-400":"cleen-text-muted-foreground",O&&O.length>0&&"cleen-text-foreground"),children:O&&O.length>0?Array.from(O).map($=>$.name).join(", "):P})]}),A&&Co("div",{className:Yt("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-r-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",p?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.rightIconContainer),style:y?.rightIconContainer,children:A})]}),V&&Co(ne,{id:q,...D,subtitle:X})]})})});import{cn as ol,useOutsideClick as Yk}from"@cleen/ui-core";import{forwardRef as Qk,useEffect as Av,useImperativeHandle as Zk,useMemo as Jk,useRef as jk,useState as ai}from"react";import{jsx as nl,jsxs as e3}from"react/jsx-runtime";var S0=Qk(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:c,onIsEditingChange:r,placeholder:l,placeholderText:i,canEdit:s=!0,onSave:p,onCancel:d,onChange:g,inputProps:m,blurOnOutsideClick:v=!0,saveOnBlur:y=!0,isLoading:u,customLoader:b=nl(re,{}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:M,styles:A,...B},L){let D=t!==void 0,[S,N]=ai(o??""),w=D?t??"":S,[F,R]=ai(!1),E=u??F,G=Jk(()=>typeof x=="function"?x(w):x||w||i||l,[w,x,l,i]),[T,k]=ai(n),z=c!==void 0,U=z?c:T,[O,_]=ai(w),X=jk(null);Zk(L,()=>({...X.current,save:V,cancel:H})),Av(()=>{D||N(o??"")},[o,D]),Av(()=>{U||_(w)},[w,U]);let H=async()=>{z||k(!1),r?.(!1),_(w),await d?.()},V=async()=>{if(!E){if(w===O){await d?.(),z||k(!1),r?.(!1);return}R(!0),D||N(O);try{await p?.(O),z||k(!1),r?.(!1)}finally{R(!1)}}},q=async $=>{$.key==="Enter"&&($.preventDefault(),await V()),$.key==="Escape"&&($.stopPropagation(),$.preventDefault(),await H()),m?.onKeyDown?.($)};return Yk({refs:[X],enabled:v&&U,handler:async()=>{y?await V():await H()}}),nl("div",{className:ol("cleen",I),style:M,ref:X,...B,children:U?e3("div",{className:ol("cleen-relative cleen-h-full",P?.container),style:A?.container,children:[nl(ye,{value:O,onChange:$=>{_($.target.value),g?.($.target.value)},autoFocus:!0,placeholder:l,className:P?.input?.className,classNames:{...P?.input?.classNames,inputContainer:ol("cleen-border-primary hover:cleen-border-primary/60",P?.input?.classNames?.inputContainer)},...A?.input,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:E||m?.disabled,onKeyDown:q}),E&&nl("div",{className:ol("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",P?.loaderContainer),style:A?.loaderContainer,children:b})]}):nl("div",{onClick:()=>{s&&(z||k(!0),r?.(!0))},className:ol("cleen-min-h-6 cleen-text-foreground",s&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!w&&"cleen-text-muted-foreground",P?.preview),style:A?.preview,children:G})})});import{cn as lr}from"@cleen/ui-core";import{forwardRef as t3,useEffect as Ov,useId as o3,useMemo as n3,useRef as r3,useState as a3}from"react";import{jsx as Jo,jsxs as w0}from"react/jsx-runtime";var M0=t3(function({name:t,id:o,value:n,defaultValue:c,label:r,labelTooltip:l,disabled:i,required:s,infoLabels:p,topRightElement:d,labelRightElement:g,textareaOverlay:m,onChange:v,minHeight:y,maxHeight:u=200,autoResize:b=!0,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,maxLengthLabel:P,minLengthLabel:M,className:A,classNames:B,style:L,styles:D,...S},N){let w=n!==void 0,[F,R]=a3(typeof c=="string"?c:""),E=r3(null),G=N??E,T=w?n:F;Ov(()=>{w||R(n??(typeof c=="string"?c:""))},[n,c,w]);let k=$=>{$.style.height="auto";let K=Math.min($.scrollHeight,u);$.style.height=`${K}px`},z=$=>{k($.target)};Ov(()=>{!b||!E.current||k(E.current)},[b,T,u]);let U=$=>{$.preventDefault()},O=$=>{$.preventDefault();let K=$.dataTransfer?.getData("text/plain");w?v?.(`${n??""}${K}`):(R(pe=>`${pe}${K}`),v?.(`${F}${K}`))},_=$=>{let K=$.target.value;(!C||K.length<=C)&&(w||R(K),v?.(K),b&&z($))},X=n3(()=>x&&M&&(T?.length??0)<x?M(x-(T?.length??0)):!C||!P||(T?.toString()?.length??0)/C<I?p?.subtitle:P?.(C-(T?.toString()?.length??0)),[T,C,I,p?.subtitle]),H=o3(),V=!!(p?.errorMessage||p?.infoMessage||X),q=V?`${H}-info`:void 0;return Jo("div",{className:lr("cleen",A),style:L,children:w0("div",{className:lr("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",B?.container),style:D?.container,children:[(r||g)&&w0("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[r&&Jo(ae,{htmlFor:o||t,required:s,tooltip:l,className:lr("cleen-w-full",B?.label?.className),classNames:B?.label?.classNames,...D?.label,children:r}),g&&Jo("div",{className:"cleen-ml-auto",children:g})]}),w0("div",{className:lr("cleen-relative cleen-flex cleen-items-center cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-colors cleen-duration-200",p?.errorMessage?"cleen-border-error/70 hover:cleen-border-error":"cleen-border-border hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary",B?.textareaContainer),style:D?.textareaContainer,children:[d&&Jo("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:d}),m&&Jo("div",{className:lr("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}),Jo("textarea",{id:o||t,name:t,ref:G,disabled:i,value:T,minLength:x,maxLength:C,"aria-invalid":p?.errorMessage?!0:void 0,"aria-describedby":q,className:lr("cleen-block cleen-flex-1 cleen-px-3.5 cleen-py-3 cleen-border-0 cleen-rounded-lg focus:cleen-outline-none focus:cleen-ring-transparent placeholder:cleen-text-muted-foreground sm:cleen-text-sm cleen-text-base",i?"cleen-bg-muted cleen-text-neutral-400":"cleen-bg-background cleen-text-foreground",B?.textarea),style:{...y&&{minHeight:`${y}px`},...D?.textarea},onFocus:$=>$.currentTarget.setSelectionRange($.currentTarget.value.length,$.currentTarget.value.length),onDragOver:U,onDrop:O,...S,onChange:_})]}),V&&Jo(ne,{id:q,...p,subtitle:X})]})})});import{cn as rl,useOutsideClick as l3}from"@cleen/ui-core";import{forwardRef as c3,useEffect as _v,useImperativeHandle as i3,useMemo as s3,useRef as p3,useState as li}from"react";import{jsx as al,jsxs as d3}from"react/jsx-runtime";var k0=c3(function({value:t,defaultValue:o,defaultIsEditing:n=!1,isEditing:c,onIsEditingChange:r,placeholder:l,placeholderText:i,canEdit:s=!0,onSave:p,onCancel:d,onChange:g,textAreaProps:m,blurOnOutsideClick:v=!0,saveOnBlur:y=!0,isLoading:u,customLoader:b=al(re,{size:"md"}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:M,styles:A,...B},L){let D=t!==void 0,[S,N]=li(o??""),w=D?t??"":S,[F,R]=li(!1),E=u??F,G=s3(()=>typeof x=="function"?x(w):x||w||i||l,[w,x,l,i]),[T,k]=li(n),z=c!==void 0,U=z?c:T,[O,_]=li(w),X=p3(null);i3(L,()=>({...X.current,save:V,cancel:H})),_v(()=>{D||N(o??"")},[o,D]),_v(()=>{U||_(w)},[w,U]);let H=async()=>{z||k(!1),r?.(!1),_(w),await d?.()},V=async()=>{if(!E){if(w===O){await d?.(),z||k(!1),r?.(!1);return}R(!0),D||N(O);try{await p?.(O),z||k(!1),r?.(!1)}finally{R(!1)}}},q=async $=>{$.key==="Escape"&&($.preventDefault(),$.stopPropagation(),await H()),$.key==="Enter"&&($.metaKey||$.ctrlKey)&&($.preventDefault(),await V()),m?.onKeyDown?.($)};return l3({refs:[X],enabled:v&&U,handler:async()=>{y?await V():await H()}}),al("div",{className:rl("cleen",I),style:M,ref:X,...B,children:U?d3("div",{className:rl("cleen-relative cleen-h-full",P?.container),style:A?.container,children:[al(M0,{value:O,onChange:$=>{_($),g?.($)},autoFocus:!0,placeholder:l,className:P?.textArea?.className,classNames:{...P?.textArea?.classNames,textareaContainer:rl("cleen-border-primary hover:cleen-border-primary/60",P?.textArea?.classNames?.textareaContainer)},...A?.textArea,...m,onFocus:$=>{m?.onFocus?.($),C&&$.target.select()},disabled:E||m?.disabled,onKeyDown:q}),E&&al("div",{className:rl("cleen-absolute cleen-top-1/2 cleen-left-1/2 cleen-transform cleen--translate-x-1/2 cleen--translate-y-1/2",P?.loaderContainer),style:A?.loaderContainer,children:b})]}):al("div",{onClick:()=>{s&&(z||k(!0),r?.(!0))},className:rl("cleen-min-h-6 cleen-text-foreground cleen-whitespace-pre-wrap",s&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!w&&"cleen-text-muted-foreground",P?.preview),style:A?.preview,children:G})})});import"@cleen/ui-core";import{forwardRef as m3}from"react";import{Fragment as f3,jsx as T0,jsxs as h3}from"react/jsx-runtime";var u3=m3(function({header:t,color:o,children:n,description:c,onSave:r,isDescriptionHidden:l=!1,titleProps:i,descriptionProps:s,classNames:p,styles:d,...g},m){let v=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return T0(he,{ref:m,color:o,header:{...t,title:T0(S0,{value:v??"",onSave:async y=>{await r?.("title",y)},...p?.titleTextInput,...d?.titleTextInput,...i})},classNames:p,styles:d,...g,children:(!l||n)&&h3(f3,{children:[T0(k0,{value:c??"",onSave:async y=>{await r?.("description",y)},...s,textAreaProps:s?.textAreaProps,...p?.descriptionTextInput,...d?.descriptionTextInput}),n]})})});import{cn as ll}from"@cleen/ui-core";import{forwardRef as g3}from"react";import{jsx as ci}from"react/jsx-runtime";var y3=g3(function({type:t="button",label:o,onClick:n,containerRef:c,className:r,classNames:l,style:i,styles:s,disabled:p=!1,loaderOptions:d,isLoading:g=!1,variant:m="primary",children:v,...y},u){return ci("div",{className:ll("cleen",r),style:i,ref:c,children:ci("button",{type:t,ref:u,disabled:g||p,onClick:n,className:ll("cleen-size-full",l?.container),style:s?.container,...y,children:ci(he,{p:0,className:ll("cleen-size-full cleen-group",l?.card?.className),classNames:{...l?.card?.classNames,container:ll("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",oy[m],l?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":p||g}),childrenContainer:ll("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",l?.card?.classNames?.childrenContainer)},"aria-disabled":p||g,...s?.card,children:g?ci(re,{size:"lg",...d,color:d?.color||ny[m],...l?.loader,...s?.loader}):o||v})})})});import{cn as cl,ColorHelpers as zv,formatAudioTime as Vv}from"@cleen/ui-core";import{useWavesurfer as v3}from"@wavesurfer/react";import{forwardRef as b3,useCallback as I3,useRef as C3}from"react";import{jsx as il,jsxs as Hv}from"react/jsx-runtime";var P3={waveColor:zv.getComputedColor("var(--cleen-neutral-200)"),progressColor:zv.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},x3=b3(function({url:t,options:o,className:n,classNames:c,style:r,styles:l,...i},s){let p=C3(null),{wavesurfer:d,isPlaying:g,isReady:m,currentTime:v}=v3({...P3,...o,container:p,url:t}),y=m?d?.getDuration()??0:0,u=I3(()=>{d?.playPause()},[d]);return il("div",{ref:s,className:cl("cleen",n),style:r,...i,children:Hv("div",{className:cl("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",c?.container),style:l?.container,children:[il(ee,{type:"button",onClick:u,disabled:!m,"aria-label":g?"Pause":"Play",className:c?.playButton?.className,classNames:{...c?.playButton?.classNames,container:cl("cleen-p-0 !cleen-size-9 cleen-rounded-full",c?.playButton?.classNames?.container)},...l?.playButton,children:g?il(ft,{className:"cleen-fill-current"}):il(ht,{className:"cleen-fill-current"})}),il("div",{ref:p,className:cl("cleen-flex-1 cleen-min-w-0",c?.waveform),style:l?.waveform}),Hv("span",{className:cl("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",c?.timestamp),style:l?.timestamp,children:[Vv(v),"\xA0/\xA0",Vv(y)]})]})})});import{ColorHelpers as S3}from"@cleen/ui-core";var Uv=S3.getComputedColor("var(--cleen-primary)"),Gv="rgba(var(--cleen-primary), 0.15)",$v={waveColor:Uv,progressColor:Uv,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var Wv={startRecording:"Click to start recording"};import{cn as je,formatAudioTime as hi,trimBlob as M3}from"@cleen/ui-core";import{useWavesurfer as k3}from"@wavesurfer/react";import{forwardRef as T3,useCallback as ir,useEffect as D0,useMemo as B3,useRef as Kv,useState as gi}from"react";function B0(e,t,o,n){return new(o||(o=Promise))((function(c,r){function l(p){try{s(n.next(p))}catch(d){r(d)}}function i(p){try{s(n.throw(p))}catch(d){r(d)}}function s(p){var d;p.done?c(p.value):(d=p.value,d instanceof o?d:new o((function(g){g(d)}))).then(l,i)}s((n=n.apply(e,t||[])).next())}))}var ii=class{constructor(){this.listeners={}}on(t,o,n){if(this.listeners[t]||(this.listeners[t]=new Set),n?.once){let c=(...r)=>{this.un(t,c),o(...r)};return this.listeners[t].add(c),()=>this.un(t,c)}return this.listeners[t].add(o),()=>this.un(t,o)}un(t,o){var n;(n=this.listeners[t])===null||n===void 0||n.delete(o)}once(t,o){return this.on(t,o,{once:!0})}unAll(){this.listeners={}}emit(t,...o){this.listeners[t]&&this.listeners[t].forEach((n=>n(...o)))}},N0=class extends ii{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},L0=class extends ii{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let t=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(t))};t()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}},R0=100,w3=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],si=class e extends N0{constructor(t){var o,n,c,r,l,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:(c=t.scrollingWaveformWindow)!==null&&c!==void 0?c:5,continuousWaveform:(r=t.continuousWaveform)!==null&&r!==void 0&&r,renderRecordedAudio:(l=t.renderRecordedAudio)===null||l===void 0||l,mediaRecorderTimeslice:(i=t.mediaRecorderTimeslice)!==null&&i!==void 0?i:void 0})),this.stream=null,this.mediaRecorder=null,this.dataWindow=null,this.isWaveformPaused=!1,this.lastStartTime=0,this.lastDuration=0,this.duration=0,this.micStream=null,this.recordedBlobUrl=null,this.timer=new L0,this.subscriptions.push(this.timer.on("tick",(()=>{let s=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+s,this.emit("record-progress",this.duration)})))}static create(t){return new e(t||{})}renderMicStream(t){var o;let n=new AudioContext,c=n.createMediaStreamSource(t),r=n.createAnalyser();c.connect(r),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(r.fftSize=32);let l=r.frequencyBinCount,i=new Float32Array(l),s=0;this.wavesurfer&&((o=this.originalOptions)!==null&&o!==void 0||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let p=setInterval((()=>{var d,g,m,v;if(!this.isWaveformPaused){if(r.getFloatTimeDomainData(i),this.options.scrollingWaveform){let y=Math.floor((this.options.scrollingWaveformWindow||0)*R0),u=0;for(let C=0;C<l;C++){let x=Math.abs(i[C]);x>u&&(u=x)}this.dataWindow||(this.dataWindow=new Float32Array(y));let b=new Float32Array(y);if(this.dataWindow&&this.dataWindow.length>0){let C=y-1,x=this.dataWindow.slice(-C);b.set(x,0)}b[y-1]=u,this.dataWindow=b}else if(this.options.continuousWaveform){if(!this.dataWindow){let u=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*R0):((g=(d=this.wavesurfer)===null||d===void 0?void 0:d.getWidth())!==null&&g!==void 0?g:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(u)}let y=0;for(let u=0;u<l;u++){let b=Math.abs(i[u]);b>y&&(y=b)}if(s+1>this.dataWindow.length){let u=new Float32Array(2*this.dataWindow.length);u.set(this.dataWindow,0),this.dataWindow=u}this.dataWindow[s]=y,s++}else this.dataWindow=i;if(this.wavesurfer){let y=((v=(m=this.dataWindow)===null||m===void 0?void 0:m.length)!==null&&v!==void 0?v:0)/R0;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:y).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))})).catch((u=>{console.error("Error rendering real-time recording data:",u)}))}}}),10);return{onDestroy:()=>{clearInterval(p),c?.disconnect(),n?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return B0(this,void 0,void 0,(function*(){let o;this.micStream&&this.stopMic();try{o=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(c){throw new Error("Error accessing the microphone: "+c.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((c=>c.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(t){return B0(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||w3.find((l=>MediaRecorder.isTypeSupported(l))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=n,this.stopRecording();let c=[];n.ondataavailable=l=>{l.data.size>0&&c.push(l.data),this.emit("record-data-available",l.data)};let r=l=>{var i;let s=new Blob(c,{type:n.mimeType});this.emit(l,s),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(s),(i=this.wavesurfer)===null||i===void 0||i.load(this.recordedBlobUrl))};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 B0(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 mi=class{constructor(){this.listeners={}}on(t,o,n){if(this.listeners[t]||(this.listeners[t]=new Set),n?.once){let c=(...r)=>{this.un(t,c),o(...r)};return this.listeners[t].add(c),()=>this.un(t,c)}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)))}},E0=class extends mi{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 qv(e,t){let o=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[n,c]of Object.entries(t))if(n==="children"&&c)for(let[r,l]of Object.entries(c))l instanceof Node?o.appendChild(l):typeof l=="string"?o.appendChild(document.createTextNode(l)):o.appendChild(qv(r,l));else n==="style"?Object.assign(o.style,c):n==="textContent"?o.textContent=c:o.setAttribute(n,c.toString());return o}function sl(e,t,o){let n=qv(e,t||{});return o?.appendChild(n),n}function Xv(e){let t=e,o=new Set;return{get value(){return t},set(n){Object.is(t,n)||(t=n,o.forEach((c=>c(t))))},update(n){this.set(n(t))},subscribe:n=>(o.add(n),()=>o.delete(n))}}function pi(e,t){let o,n=()=>{o&&(o(),o=void 0),o=e()},c=t.map((r=>r.subscribe(n)));return n(),()=>{o&&(o(),o=void 0),c.forEach((r=>r()))}}function cr(e,t){let o=Xv(null),n=c=>{o.set(c)};return e.addEventListener(t,n),o._cleanup=()=>{e.removeEventListener(t,n)},o}function jo(e){let t=e._cleanup;typeof t=="function"&&t()}function di(e,t={}){let{threshold:o=3,mouseButton:n=0,touchDelay:c=100}=t,r=Xv(null),l=new Map,i=matchMedia("(pointer: coarse)").matches,s=()=>{},p=d=>{if(d.button!==n||(l.set(d.pointerId,d),l.size>1))return;let g=d.clientX,m=d.clientY,v=!1,y=Date.now(),u=e.getBoundingClientRect(),{left:b,top:C}=u,x=B=>{if(B.defaultPrevented||l.size>1||i&&Date.now()-y<c)return;let L=B.clientX,D=B.clientY,S=L-g,N=D-m;(v||Math.abs(S)>o||Math.abs(N)>o)&&(B.preventDefault(),B.stopPropagation(),v||(r.set({type:"start",x:g-b,y:m-C}),v=!0),r.set({type:"move",x:L-b,y:D-C,deltaX:S,deltaY:N}),g=L,m=D)},I=B=>{if(l.delete(B.pointerId),v){let L=B.clientX,D=B.clientY;r.set({type:"end",x:L-b,y:D-C})}s()},P=B=>{l.delete(B.pointerId),B.relatedTarget&&B.relatedTarget!==document.documentElement||I(B)},M=B=>{v&&(B.stopPropagation(),B.preventDefault())},A=B=>{B.defaultPrevented||l.size>1||v&&B.preventDefault()};document.addEventListener("pointermove",x),document.addEventListener("pointerup",I),document.addEventListener("pointerout",P),document.addEventListener("pointercancel",P),document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("click",M,{capture:!0}),s=()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",P),document.removeEventListener("pointercancel",P),document.removeEventListener("touchmove",A),setTimeout((()=>{document.removeEventListener("click",M,{capture:!0})}),10)}};return e.addEventListener("pointerdown",p),{signal:r,cleanup:()=>{s(),e.removeEventListener("pointerdown",p),l.clear(),jo(r)}}}var ui=class extends mi{constructor(t,o,n=0){var c,r,l,i,s,p,d,g,m,v;super(),this.totalDuration=o,this.numberOfChannels=n,this.element=null,this.minLength=0,this.maxLength=1/0,this.contentEditable=!1,this.subscriptions=[],this.updatingSide=void 0,this.isRemoved=!1,this.subscriptions=[],this.id=t.id||`region-${Math.random().toString(32).slice(2)}`,this.start=this.clampPosition(t.start),this.end=this.clampPosition((c=t.end)!==null&&c!==void 0?c:t.start),this.drag=(r=t.drag)===null||r===void 0||r,this.resize=(l=t.resize)===null||l===void 0||l,this.resizeStart=(i=t.resizeStart)===null||i===void 0||i,this.resizeEnd=(s=t.resizeEnd)===null||s===void 0||s,this.color=(p=t.color)!==null&&p!==void 0?p:"rgba(0, 0, 0, 0.1)",this.minLength=(d=t.minLength)!==null&&d!==void 0?d:this.minLength,this.maxLength=(g=t.maxLength)!==null&&g!==void 0?g:this.maxLength,this.channelIdx=(m=t.channelIdx)!==null&&m!==void 0?m:-1,this.contentEditable=(v=t.contentEditable)!==null&&v!==void 0?v:this.contentEditable,this.element=this.initElement(),this.setContent(t.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(t){return Math.max(0,Math.min(this.totalDuration,t))}setPart(){var t;let o=this.start===this.end;(t=this.element)===null||t===void 0||t.setAttribute("part",`${o?"marker":"region"} ${this.id}`)}addResizeHandles(t){let o={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},n=sl("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),c=sl("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=di(n,{threshold:1}),l=di(c,{threshold:1}),i=pi((()=>{let p=r.signal.value;p&&(p.type==="move"&&p.deltaX!==void 0?this.onResize(p.deltaX,"start"):p.type==="end"&&this.onEndResizing("start"))}),[r.signal]),s=pi((()=>{let p=l.signal.value;p&&(p.type==="move"&&p.deltaX!==void 0?this.onResize(p.deltaX,"end"):p.type==="end"&&this.onEndResizing("end"))}),[l.signal]);this.subscriptions.push((()=>{i(),s(),r.cleanup(),l.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 c=sl("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(c),c}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"),c=cr(t,"mouseleave"),r=cr(t,"dblclick"),l=cr(t,"pointerdown"),i=cr(t,"pointerup"),s=o.subscribe((b=>b&&this.emit("click",b))),p=n.subscribe((b=>b&&this.emit("over",b))),d=c.subscribe((b=>b&&this.emit("leave",b))),g=r.subscribe((b=>b&&this.emit("dblclick",b))),m=l.subscribe((b=>b&&this.toggleCursor(!0))),v=i.subscribe((b=>b&&this.toggleCursor(!1)));this.subscriptions.push((()=>{s(),p(),d(),g(),m(),v(),jo(o),jo(n),jo(c),jo(r),jo(l),jo(i)}));let y=di(t),u=pi((()=>{let b=y.signal.value;b&&(b.type==="start"?this.toggleCursor(!0):b.type==="move"&&b.deltaX!==void 0?this.onMove(b.deltaX):b.type==="end"&&(this.toggleCursor(!1),this.drag&&this.emit("update-end")))}),[y.signal]);this.subscriptions.push((()=>{u(),y.cleanup()})),this.contentEditable&&this.content&&(this.contentClickListener=b=>this.onContentClick(b),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener))}_onUpdate(t,o,n){var c;if(!(!((c=this.element)===null||c===void 0)&&c.parentElement))return;let{width:r}=this.element.parentElement.getBoundingClientRect(),l=t/r*this.totalDuration,i=o&&o!=="start"?this.start:this.start+l,s=o&&o!=="end"?this.end:this.end+l,p=n!==void 0;p&&this.updatingSide&&this.updatingSide!==o&&(this.updatingSide==="start"?i=n:s=n),i=Math.max(0,i),s=Math.min(this.totalDuration,s);let d=s-i;this.updatingSide=o;let g=d>=this.minLength&&d<=this.maxLength;i<=s&&(g||p)&&(this.start=i,this.end=s,this.renderPosition(),this.emit("update",o))}onMove(t){this.drag&&this._onUpdate(t)}onResize(t,o){this.resize&&(this.resizeStart||o!=="start")&&(this.resizeEnd||o!=="end")&&this._onUpdate(t,o)}onEndResizing(t){this.resize&&(this.emit("update-end",t),this.updatingSide=void 0)}onContentClick(t){t.stopPropagation(),t.target.focus(),this.emit("click",t)}onContentBlur(){this.emit("update-end")}_setTotalDuration(t){this.totalDuration=t,this.renderPosition()}play(t){this.emit("play",t&&this.end!==this.start?this.end:void 0)}getContent(t=!1){var o;return t?this.content||void 0:this.element instanceof HTMLElement?((o=this.content)===null||o===void 0?void 0:o.innerHTML)||void 0:""}setContent(t){var o;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(o=this.content)===null||o===void 0||o.remove(),t){if(typeof t=="string"){let n=this.start===this.end;this.content=sl("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 c=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:c?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 c=this.start===this.end;this.resize=t.resize,this.resize&&!c?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()}},fi=class e extends E0{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((c=>c.start<=o&&(c.end===c.start?c.start+.05:c.end)>=o));n.forEach((c=>{t.includes(c)||this.emit("region-in",c)})),t.forEach((c=>{n.includes(c)||this.emit("region-out",c)})),t=n})))}initRegionsContainer(){return sl("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(t){t.content&&setTimeout((()=>{let o=t.content,n=o.getBoundingClientRect(),c=this.regions.map((r=>{if(r===t||!r.content)return 0;let l=r.content.getBoundingClientRect();return n.left<l.left+l.width&&l.left<n.left+n.width?l.height:0})).reduce(((r,l)=>r+l),0);o.style.marginTop=`${c}px`}),10)}adjustScroll(t){var o,n;if(!t.element)return;let c=(n=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper())===null||n===void 0?void 0:n.parentElement;if(!c)return;let{clientWidth:r,scrollWidth:l}=c;if(l<=r)return;let i=c.getBoundingClientRect(),s=t.element.getBoundingClientRect(),p=s.left-i.left,d=s.right-i.left;p<0?c.scrollLeft+=p:d>r&&(c.scrollLeft+=d-r)}virtualAppend(t,o,n){let c=()=>{if(!this.wavesurfer)return;let r=this.wavesurfer.getWidth(),l=this.wavesurfer.getScroll(),i=o.clientWidth,s=this.wavesurfer.getDuration(),p=Math.round(t.start/s*i),d=p+(Math.round((t.end-t.start)/s*i)||1)>l&&p<l+r;d&&!n.parentElement?o.appendChild(n):!d&&n.parentElement&&n.remove()};setTimeout((()=>{if(!this.wavesurfer||!t.element)return;c();let r=this.wavesurfer.on("scroll",c),l=this.wavesurfer.on("zoom",c),i=this.wavesurfer.on("resize",c);this.subscriptions.push(r,l,i),t.once("remove",(()=>{r(),l(),i()}))}),0)}saveRegion(t){if(!t.element)return;this.virtualAppend(t,this.regionsContainer,t.element),this.avoidOverlapping(t),this.regions.push(t);let 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 c;(c=this.wavesurfer)===null||c===void 0||c.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 c=this.wavesurfer.getDuration(),r=(n=(o=this.wavesurfer)===null||o===void 0?void 0:o.getDecodedData())===null||n===void 0?void 0:n.numberOfChannels,l=new ui(t,c,r);return this.emit("region-initialized",l),c?this.saveRegion(l):this.subscriptions.push(this.wavesurfer.once("ready",(i=>{l._setTotalDuration(i),this.saveRegion(l)}))),l}enableDragSelection(t,o=3){var n;let c=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper();if(!(c&&c instanceof HTMLElement))return()=>{};let r=null,l=0,i=0,s=di(c,{threshold:o}),p=pi((()=>{var d,g;let m=s.signal.value;if(m)if(m.type==="start"){if(l=m.x,!this.wavesurfer)return;let v=this.wavesurfer.getDuration(),y=(g=(d=this.wavesurfer)===null||d===void 0?void 0:d.getDecodedData())===null||g===void 0?void 0:g.numberOfChannels,{width:u}=this.wavesurfer.getWrapper().getBoundingClientRect();i=l/u*v;let b=m.x/u*v,C=(m.x+5)/u*v;r=new ui(Object.assign(Object.assign({},t),{start:b,end:C}),v,y),this.emit("region-initialized",r),r.element&&this.regionsContainer.appendChild(r.element)}else m.type==="move"&&m.deltaX!==void 0?r&&r._onUpdate(m.deltaX,m.x>l?"end":"start",i):m.type==="end"&&r&&(this.saveRegion(r),r.updatingSide=void 0,r=null)}),[s.signal]);return()=>{p(),s.cleanup()}}clearRegions(){this.regions.slice().forEach((t=>t.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as N3,jsx as Fe,jsxs as pl}from"react/jsx-runtime";var R3=T3(function({onFinalize:t,recordOptions:o,options:n,labels:c=Wv,className:r,classNames:l,style:i,styles:s,...p},d){let g=Kv(null),[m,v]=gi("idle"),[y,u]=gi(null),[b,C]=gi(null),[x,I]=gi(!1),P=Kv("idle");P.current=m;let M=B3(()=>[si.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...o}),fi.create()],[]),[A,B]=M,{wavesurfer:L,isPlaying:D,isReady:S,currentTime:N}=k3({...$v,...n,container:g,plugins:M}),w=S?L?.getDuration()??0:0;D0(()=>{let U=[A.on("record-start",()=>v("recording")),A.on("record-end",O=>{v("recorded"),u(O)}),B.on("region-clicked",(O,_)=>{_.stopPropagation(),O.play(!0)})];return()=>U.forEach(O=>O?.())},[B,A]),D0(()=>L?L.on("ready",()=>{if(P.current!=="recorded")return;let O=L.getDuration();B.clearRegions();let _=B.addRegion({start:0,end:O,color:n?.regionColor??Gv,drag:!1,resize:!0});C({start:_.start,end:_.end})}):void 0,[L,B,n]),D0(()=>B.on("region-updated",O=>{C({start:O.start,end:O.end})}),[B]);let F=ir(async()=>{await A.startRecording()},[A]),R=ir(()=>{A.stopRecording()},[A]),E=ir(()=>{L?.playPause()},[L]),G=ir(async()=>{if(!(!y||!b||!L)){I(!0);try{let U=await M3(y,b.start,b.end),O=URL.createObjectURL(U);u(U),L.load(O)}finally{I(!1)}}},[y,b,L]),T=ir(()=>{B.clearRegions(),L?.empty(),u(null),C(null),v("idle")},[L,B]),k=ir(()=>{if(y){let U=URL.createObjectURL(y);t?.(y,U)}},[t,y]),z=!b||b.start<=0&&b.end>=w;return Fe("div",{ref:d,className:je("cleen wavesurfer-handle",r),style:i,...p,children:pl("div",{className:je("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",l?.container),style:s?.container,children:[m==="idle"&&pl(N3,{children:[Fe("button",{type:"button",onClick:F,"aria-label":"Start recording",className:je("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",l?.startButton),style:s?.startButton,children:Fe(Sa,{className:"cleen-size-8 cleen-text-primary"})}),Fe("p",{className:je("cleen-text-neutral-600 cleen-text-sm cleen-select-none",l?.startLabel),style:s?.startLabel,children:c.startRecording})]}),m==="recording"&&Fe("button",{type:"button",onClick:R,"aria-label":"Stop recording",className:je("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",l?.stopButton),style:s?.stopButton,children:Fe(Ga,{className:"cleen-size-8 cleen-text-primary"})}),Fe("div",{ref:g,className:je("cleen-w-full cleen-min-w-0 cleen-waveform",m==="idle"&&"cleen-hidden",l?.waveform),style:s?.waveform}),m==="recorded"&&pl("div",{className:je("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",l?.recordedContainer),style:s?.recordedContainer,children:[Fe(ee,{type:"button",onClick:E,disabled:!S,"aria-label":D?"Pause":"Play",className:l?.playPauseButton?.className,classNames:{...l?.playPauseButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",l?.playPauseButton?.classNames?.container)},...s?.playPauseButton,children:D?Fe(ft,{className:"cleen-fill-current"}):Fe(ht,{className:"cleen-fill-current"})}),pl("span",{className:je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",l?.timestamp),style:s?.timestamp,children:[hi(N),"\xA0/\xA0",hi(w)]}),Fe("span",{className:"cleen-flex-1"}),!z&&b&&pl("span",{className:je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",l?.trimmedTimestamp),style:s?.trimmedTimestamp,children:[hi(b.start),"\u2013",hi(b.end)]}),Fe(ee,{type:"button",onClick:T,variant:"secondary","aria-label":"Discard recording",className:l?.discardButton?.className,classNames:{...l?.discardButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",l?.discardButton?.classNames?.container)},...s?.discardButton,children:Fe(ct,{className:"cleen-text-error"})}),Fe(ee,{type:"button",onClick:G,disabled:z||x||!S,"aria-label":"Apply trim",variant:"secondary",className:l?.trimButton?.className,classNames:{...l?.trimButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",l?.trimButton?.classNames?.container)},...s?.trimButton,children:Fe(Fa,{})}),Fe(ee,{type:"button",onClick:k,"aria-label":"Finalize recording",className:l?.finalizeButton?.className,classNames:{...l?.finalizeButton?.classNames,container:je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",l?.finalizeButton?.classNames?.container)},...s?.finalizeButton,children:Fe(Ut,{})})]})]})})});import{cn as yi}from"@cleen/ui-core";import{forwardRef as L3,useMemo as E3}from"react";var Yv={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 dl}from"react/jsx-runtime";var vi=L3(function({title:t,name:o,src:n,alt:c,size:r="md",initialsLength:l=2,isSelected:i=!1,showBorder:s=!1,fallback:p=dl(qa,{}),className:d,classNames:g,style:m,styles:v,onClick:y,...u},b){let C=E3(()=>(l===2?o?.split(" ").map(x=>x.charAt(0).toUpperCase()).join("").slice(0,l):o?.charAt(0).toUpperCase())||p,[o,l,p]);return dl("div",{className:yi("cleen",d),style:m,ref:b,...u,children:dl("div",{onClick:y,className:yi("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof r=="string"&&Yv[r],{"cleen-border-2 cleen-border-white":s,"cleen-cursor-pointer":!!y},g?.avatar,s&&i&&["cleen-border-primary",g?.avatarSelected]),style:{...typeof r=="number"&&{width:r,height:r,fontSize:r*.4,lineHeight:`${r}px`},...v?.avatar,...s&&i&&v?.avatarSelected},title:t||o,children:n?dl("img",{src:n,alt:c||o,className:yi("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",g?.image),style:v?.image}):dl("span",{className:yi("cleen-select-none cleen-text-neutral-700",g?.fallback),style:v?.fallback,children:C})})})});import{cn as Qv}from"@cleen/ui-core";import{forwardRef as D3}from"react";import{jsx as F0,jsxs as A3}from"react/jsx-runtime";var F3=D3(function({avatars:t,size:o="md",selectedAvatars:n=[],onAvatarToggle:c,gap:r=4,maxVisible:l,maxExtra:i=99,showBorder:s=!0,initialsLength:p,fallback:d,className:g,classNames:m,style:v,styles:y,...u},b){let C=l?t?.slice(0,l):t,x=l&&t&&t.length>l?Math.min(t.length-l,i):0;return F0("div",{className:Qv("cleen",g),style:v,ref:b,...u,children:A3("div",{className:Qv("cleen-flex cleen-items-center",m?.row),style:{gap:r,...y?.row},children:[C?.map((I,P)=>{let M=n.includes(I?.id??"");return F0(vi,{name:I.name,src:I.src,size:o,isSelected:M,showBorder:s,initialsLength:p,fallback:d,onClick:()=>c?.(I.id??""),...m?.avatar,style:{zIndex:C.length-P,...y?.avatar?.style},styles:y?.avatar?.styles,...I},I.id||P)}),x>0&&F0(vi,{size:o,fallback:`+${x}`,...m?.extra,...y?.extra})]})})});import{cn as Po}from"@cleen/ui-core";import{forwardRef as O3}from"react";import{Link as Zv}from"react-router-dom";import{jsx as ml,jsxs as bi}from"react/jsx-runtime";var _3=O3(function({root:t={path:"/",icon:ml(ga,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:o,className:n,classNames:c,style:r,styles:l,...i},s){return!o||o.length===0?null:ml("div",{className:Po("cleen",n),style:r,ref:s,...i,children:ml("nav",{className:Po("cleen-hidden sm:cleen-flex",c?.container),style:l?.container,"aria-label":"Breadcrumb",children:bi("ol",{role:"list",className:Po("cleen-flex cleen-items-center cleen-gap-4",c?.list),style:l?.list,children:[t&&ml("li",{className:Po("cleen-flex cleen-items-center",c?.rootItem),style:l?.rootItem,children:bi(Zv,{to:t?.path,className:Po("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",c?.rootLink),style:l?.rootLink,"aria-label":t?.label?void 0:"Home",children:[t?.icon,t?.label]})}),o.map(({path:p,icon:d,label:g,id:m},v)=>{let y=v===o.length-1,u=g||p.charAt(0).toUpperCase()+p.slice(1);return bi("li",{className:Po("cleen-flex cleen-items-center cleen-gap-4",c?.item),style:l?.item,children:[(t||!t&&v!==0)&&ml(nt,{className:Po("cleen-h-5 cleen-w-5 cleen-text-neutral-300",c?.chevron),style:l?.chevron,"aria-hidden":"true"}),bi(Zv,{to:p,className:Po("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",c?.link),style:l?.link,"aria-current":y?"page":void 0,children:[d,u]})]},m||p)})]})})})});var Ii=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:o,max:n}=t,c=new Date,r=new Date(c.getFullYear(),c.getMonth(),c.getDate());if(o){let l=o==="today"?r:o;if(l>=e)return l}if(n){let l=n==="today"?r:n;if(l<=e)return l}return e};import{cn as Ci}from"@cleen/ui-core";import{forwardRef as z3,useState as A0}from"react";import{DayPicker as Jv,MonthGrid as V3}from"react-day-picker";import{Fragment as H3,jsx as en,jsxs as _0}from"react/jsx-runtime";var O0=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),z0=z3(function({label:t,labelTooltip:o,infoLabels:n,required:c,withDateInput:r=!1,withTodayButton:l=!1,selected:i,onSelect:s,month:p,labels:d,className:g,style:m,classNames:v,styles:y,mode:u="single",min:b,max:C,disabled:x,disabledDates:I,components:P,...M},A){let B=i!==void 0,L=u==="single",[D,S]=A0(),[N,w]=A0(),F=B?i:L?D:N,[R,E]=A0(p),G=(z,U)=>{B||(L&&(z===void 0||z instanceof Date)?S(z):L||w(z)),s?.(z,U)},T={MonthGrid:z=>_0(H3,{children:[(l||r)&&_0("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[r&&en(ye,{value:u==="single"?O0(F):F?.from||F?.to?`${O0(F?.from)??"..."} - ${O0(F?.to)??"..."}`:void 0,placeholder:d?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),l&&en(ee,{variant:"secondary",onClick:()=>E(new Date),children:d?.today??"Today"})]}),en(V3,{...z})]}),...P},k={navLayout:"around",...M,className:Ci("cleen-text-foreground",v?.calendar?.className),classNames:{...v?.calendar?.classNames,nav:Ci("cleen-text-error",v?.calendar?.classNames?.nav)},disabled:b||C?{before:b==="today"?new Date:b,after:C==="today"?new Date:C}:I||x,components:T,month:R,onMonthChange:E,...y?.calendar};return _0("div",{ref:A,className:Ci("cleen",g),style:m,children:[t&&en(ae,{required:c,tooltip:o,className:Ci("cleen-mb-1.5",v?.label?.className),classNames:v?.label?.classNames,...y?.label,children:t}),L?en(Jv,{mode:"single",...k,selected:F,onSelect:(z,U)=>{if(b||C){G(Ii(z,{min:b,max:C}),U);return}G(z,U)}}):en(Jv,{mode:"range",...k,selected:F,onSelect:(z,U)=>{if(b||C){G({from:Ii(z?.from,{min:b,max:C}),to:Ii(z?.to,{min:b,max:C})},U);return}G(z,U)}}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&en(ne,{...n})]})});import{cn as sr,useOutsideClick as U3,usePositionClose as G3,ZIndex as $3}from"@cleen/ui-core";import{forwardRef as W3,useEffect as q3,useRef as jv,useState as X3}from"react";import{createPortal as K3}from"react-dom";import{jsx as tn,jsxs as eb}from"react/jsx-runtime";var ul=W3(function({type:t="button",required:o,label:n,title:c,titleTooltip:r,disabled:l=!1,leftIcon:i,rightIcon:s=tn(na,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:p=!0,fullWidthDropdown:d,offset:g=4,isOpen:m,onOpenChange:v,keepOpenOnClickContent:y=!0,zIndex:u=$3.DROPDOWN,infoLabels:b,className:C,classNames:x,style:I,styles:P,children:M,...A},B){let[L,D]=X3(!1),S=m!==void 0?m:L,N=jv(null),w=jv(null),{positionStyles:F,isMounted:R}=G3({triggerRef:w,targetRef:N,position:"bottom-left",isOpen:S,offset:g});U3({refs:[N,w],handler:()=>{D(!1),v?.(!1)},enabled:S}),q3(()=>{let T=k=>{k.key==="Escape"&&S&&(D(!1),v?.(!1))};return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[S,v]);let E=()=>{let T=!S;m===void 0&&D(T),v?.(T)},G=()=>{y||(m===void 0&&D(!1),v?.(!1))};return eb("div",{className:sr("cleen",C),style:I,ref:B,...A,children:[c&&tn(ae,{required:o,tooltip:r,className:sr("cleen-mb-1.5",x?.title?.className),classNames:x?.title?.classNames,...P?.title,children:c}),tn("div",{className:sr("cleen-inline-block cleen-relative",p&&"cleen-w-full"),ref:w,children:eb("button",{type:t,className:sr("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-bg-background cleen-shadow-sm cleen-my-auto cleen-px-3.5 cleen-py-2.5 cleen-border cleen-border-border cleen-rounded-md cleen-w-full cleen-text-foreground cleen-text-base cleen-transition-colors cleen-duration-200 hover:cleen-bg-neutral-25 hover:cleen-border-muted-foreground",{"cleen-w-full cleen-flex-1":p,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":l},p&&"cleen-w-full",x?.trigger),style:P?.trigger,disabled:l,"aria-haspopup":"dialog","aria-expanded":S,onClick:E,children:[i,tn("div",{className:sr("cleen-flex-1 cleen-text-left",x?.label),style:P?.label,children:n}),s]})}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&tn(ne,{...b}),M&&S&&K3(tn("div",{className:"cleen",children:tn("div",{ref:N,className:sr("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!R},x?.dropdown),style:{zIndex:u,top:`${F.top}px`,left:`${F.left}px`,minWidth:d&&w.current?.offsetWidth?`${w.current.offsetWidth}px`:void 0,...P?.dropdown},onClick:G,children:M})}),document.body)]})});import{cn as tb}from"@cleen/ui-core";import{forwardRef as Y3,useMemo as Q3,useState as Pi}from"react";import{jsx as on,jsxs as ob}from"react/jsx-runtime";var Z3=Y3(function({label:t,placeholder:o,infoLabels:n,required:c,selected:r,onSelect:l,onSelectInternal:i,leftIcon:s,rightIcon:p=on(Jr,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:d,style:g,classNames:m,styles:v,mode:y="single",min:u,max:b,disabled:C,disabledDates:x,...I},P){let M=r!==void 0,A=y==="single",[B,L]=Pi(!1),[D,S]=Pi(),[N,w]=Pi(),F=M?r:A?D:N,[R,E]=Pi(),G=k=>{M||(A&&(k===void 0||k instanceof Date)?S(k):A||w(k)),l?.(k)},T=Q3(()=>{if(!F)return o;if(A)return F?.toLocaleDateString();{let k=F;if(k.from&&k.to)return`${k.from.toLocaleDateString()} - ${k.to.toLocaleDateString()}`;if(k.from)return k.from.toLocaleDateString()}return o},[o,F,A]);return ob("div",{ref:P,className:tb("cleen",d),style:g,children:[on(ul,{title:t,label:T,isOpen:B,onOpenChange:k=>{E(F),L(k)},leftIcon:s,rightIcon:p,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:tb("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:c,disabled:C,...v?.dropdown,children:on(he,{footer:{hasDivider:!0,content:ob("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[on(ee,{variant:"secondary",onClick:()=>L(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),on(ee,{onClick:()=>{G(R),L(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...v?.card,children:on(z0,{mode:y,...I,selected:R,onSelect:(k,z)=>E(i?.(k,z)??k),min:u,max:b,disabledDates:x,...m?.calendar,...v?.calendar})})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&on(ne,{...n})]})});import"react";import{cn as pr}from"@cleen/ui-core";import J3 from"embla-carousel-auto-scroll";import j3 from"embla-carousel-autoplay";import eT from"embla-carousel-react";import{forwardRef as tT,useEffect as oT,useMemo as nb,useState as rb}from"react";import{jsx as nn,jsxs as rT}from"react/jsx-runtime";var nT=tT(function({options:t,slideAmount:o=3,slideSize:n,prevBtn:c,nextBtn:r,autoPlay:l=!1,autoPlayOptions:i,autoScroll:s=!1,autoScrollOptions:p,children:d,className:g,classNames:m,style:v,styles:y,...u},b){let C=nb(()=>{let w=[];return l&&w.push(j3(i)),s&&w.push(J3(p)),w},[l,s,i,p]),[x,I]=eT({skipSnaps:!0,...t},C),[P,M]=rb(!0),[A,B]=rb(!0),L=()=>I?.scrollPrev(),D=()=>I?.scrollNext(),S=w=>{M(!w?.canScrollPrev()),B(!w?.canScrollNext())};oT(()=>{I&&(S(I),I.on("reInit",S),I.on("select",S))},[I]);let N=nb(()=>n?`${n}%`:`${100/o}%`,[n,o]);return nn("div",{className:pr("cleen",g),style:v,ref:b,...u,children:rT("div",{className:pr("cleen-flex cleen-gap-2",m?.container),style:y?.container,children:[nn("button",{className:pr("cleen-text-foreground",m?.prevBtn,P&&"cleen-opacity-50"),onClick:L,disabled:P,style:y?.prevBtn,children:c||nn(Gt,{})}),nn("div",{className:pr("cleen-flex-1 cleen-overflow-hidden",m?.viewport),style:y?.viewport,ref:x,children:nn("div",{className:pr("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":N},children:d})}),nn("button",{className:pr("cleen-text-foreground",m?.nextBtn,A&&"cleen-opacity-50"),onClick:D,disabled:A,style:y?.nextBtn,children:r||nn(nt,{})})]})})});import{cn as rn}from"@cleen/ui-core";import{forwardRef as aT,useEffect as cb,useId as lT,useRef as cT,useState as iT}from"react";var ab={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)]"},lb={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 sT,jsx as St,jsxs as xi}from"react/jsx-runtime";var fl=aT(function({id:t,name:o,required:n,checked:c,defaultChecked:r=!1,className:l,classNames:i,style:s,styles:p,onChange:d,disabled:g,title:m,titleTooltip:v,label:y,sublabel:u,variant:b="primary",allowIndeterminate:C=!1,fullTriggerArea:x=!1,infoLabels:I,inputRef:P,...M},A){let B=lT(),L=t??B,D=typeof c=="boolean"||c===null,[S,N]=iT(r),w=cT(null),F=k=>{w.current=k,P&&(P.current=k)};cb(()=>{D||N(r)},[r,D]);let R=D?c:S;cb(()=>{w.current&&(w.current.indeterminate=C&&R===null)},[C,R]);let E=k=>{let z;if(C)switch(R){case!0:z=null;break;case!1:z=!0;break;default:z=!1;break}else z=!R;D||N(z),d?.({...k,target:{...k.target,checked:z}})},G=xi(sT,{children:[xi("label",{className:rn("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",{[ab[b]]:R,[lb[b]]:R===null},g&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:p?.checkbox,children:[St("input",{ref:F,type:"checkbox",disabled:g,className:"cleen-sr-only",checked:R===!0,onChange:E,id:L,name:o,...M}),R===null?St("span",{className:"cleen-block cleen-m-auto cleen-border cleen-border-white cleen-rounded-sm cleen-w-2.5 cleen-h-0.5 cleen-size-3"}):R?St(Ut,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(y||u)&&xi("div",{children:[St("label",{htmlFor:L,className:rn("cleen-block cleen-text-foreground",i?.label),style:p?.label,children:y}),St("label",{htmlFor:L,className:rn("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:p?.sublabel,children:u})]})]}),T={className:rn("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":g},i?.checkboxContainer),style:p?.checkboxContainer};return St("div",{className:rn("cleen",l),style:s,ref:A,children:xi("div",{className:rn(i?.container),style:p?.container,children:[m&&St(ae,{htmlFor:L,required:n,tooltip:v,className:rn("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...p?.title,children:m}),x?St("div",{...T,onClick:k=>{k.target instanceof Element&&!k.target.closest("label")&&w.current?.click()},children:G}):St("div",{...T,children:G}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&St(ne,{...I})]})})});import{cn as hl}from"@cleen/ui-core";import{forwardRef as pT,useId as dT,useMemo as mT,useState as uT}from"react";import{jsx as dr,jsxs as hT}from"react/jsx-runtime";var fT=pT(function({id:t,required:o,label:n,labelTooltip:c,checkboxes:r,allowIndeterminate:l,infoLabels:i,requiresAtLeastOneOptions:s,classNames:p,styles:d,onChange:g,...m},v){let y=dT(),u=t??y,[b,C]=uT(!1),x=mT(()=>s&&b&&r?.every(P=>P.checked===!1)?s.title:i?.errorMessage,[s,i?.errorMessage,r,b]),I=(P,M)=>{let A={...M,checked:P.target.checked},B;r&&M?.id&&(B=[...r].map(L=>L.id===M.id?A:L)),g?.(A,B),C(!0)};return dr("div",{className:hl("cleen"),...m,ref:v,children:hT("div",{className:hl("cleen-flex cleen-flex-col cleen-gap-2",p?.container),style:d?.container,children:[n&&dr(ae,{htmlFor:u,required:o,tooltip:c,className:hl("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...d?.label,children:n}),dr("div",{className:hl("cleen-flex cleen-flex-col cleen-gap-3",p?.checkboxes),style:d?.checkboxes,children:r?.map((P,M)=>dr("div",{className:hl("cleen-flex",p?.checkboxContainer),style:d?.checkboxContainer,children:dr(fl,{allowIndeterminate:l,...P,id:`${u}-${M}`,fullTriggerArea:!0,onChange:A=>I(A,P)})},P.id))}),(x||i?.infoMessage||i?.subtitle)&&dr(ne,{...i,errorMessage:x})]})})});import{cn as an}from"@cleen/ui-core";import{forwardRef as gT,useState as ib}from"react";import{jsx as mr,jsxs as sb}from"react/jsx-runtime";var pb=gT(({sections:e,defaultOpenIndex:t,allowExpandAll:o=!1,className:n,classNames:c,style:r,styles:l,...i},s)=>{let[p,d]=ib(t??null),[g,m]=ib(()=>new Set(e.map((u,b)=>b))),v=u=>o?g.has(u):p===u,y=(u,b)=>{b.onClick?.(),b.items?.length&&(o?m(C=>{let x=new Set(C);return x.has(u)?x.delete(u):x.add(u),x}):d(p===u?null:u))};return mr("div",{ref:s,className:an("cleen",n),style:{...r,width:"100%"},...i,children:mr("div",{className:an("cleen-w-full",c?.container),style:l?.container,children:e.map((u,b)=>sb("div",{className:an("cleen-mb-3",c?.section),style:l?.section,children:[sb("div",{onClick:()=>y(b,u),className:an("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",c?.sectionHeader),style:l?.sectionHeader,children:[mr("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:u?.title}),u?.items?.length?mr($t,{className:an("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!v(b)})}):null]}),v(b)&&u?.items&&mr("div",{className:an("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",c?.sectionBody),style:l?.sectionBody,children:u?.items?.map((C,x)=>mr("div",{className:an("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",c?.item),style:l?.item,onClick:C?.onClick,children:C?.content},C?.key??x))})]},u?.key??b))})})});pb.displayName="Collapsible";function V0(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 db(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as Si}from"@cleen/ui-core";import{useEffect as yT,useState as vT}from"react";import{HexAlphaColorPicker as bT,RgbaColorPicker as IT}from"react-colorful";import{jsx as ur,jsxs as PT}from"react/jsx-runtime";var mb="rgba(0, 0, 0, 1)",ub="#000000ff",CT=({required:e,value:t,defaultValue:o,onChange:n,colorModel:c="rgba",disabled:r,label:l,labelTooltip:i,className:s,classNames:p,style:d,styles:g,infoLabels:m,...v})=>{let y=t!==void 0,u=o??(c==="hexa"?ub:mb),[b,C]=vT(u),x=y?t:b;yT(()=>{y||C(o??(c==="hexa"?ub:mb))},[o,y,c]);let I=M=>{let A=db(M);y||C(A),n?.(A)},P=M=>{y||C(M),n?.(M)};return ur("div",{className:Si("cleen",s),style:d,...v,children:PT("div",{className:Si("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",p?.container),style:g?.container,children:[l&&ur(ae,{required:e,tooltip:i,className:Si("cleen-mb-1.5",p?.label?.className),classNames:p?.label?.classNames,...g?.label,children:l}),ur("div",{className:Si("cleen-rounded-md",r&&"cleen-opacity-50 cleen-pointer-events-none",p?.picker),style:g?.picker,children:c==="hexa"?ur(bT,{color:x,onChange:P}):ur(IT,{color:V0(x),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&ur(ne,{...m})]})})};import{cn as it}from"@cleen/ui-core";import{forwardRef as xT,useMemo as ST,useState as wT}from"react";var H0=(e="")=>e.replace(/\D+/g,""),fb=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function hb(e,t="other"){if(!e)return e;let o=H0(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 gb=e=>H0(e);function yb(e){let t=H0(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),c=new Date,r=c.getFullYear()%100,l=c.getMonth()+1;return parseInt(n,10)<r||parseInt(n,10)===r&&parseInt(o,10)<l?`${o}/${n.charAt(0)}`:`${o}/${n}`}import{jsx as xo,jsxs as vb}from"react/jsx-runtime";var MT=xT(function({labels:t,value:o,isLoading:n,errors:c,className:r,classNames:l,style:i,styles:s,infoLabels:p,onChange:d,onFieldFocus:g,...m},v){let[y,u]=wT({number:"",expiry:"",cvc:""}),b=!!o,C=b?o:y,x=ST(()=>fb(C.number),[C.number]),I=M=>{let{name:A}=M.target,{value:B}=M.target;switch(A){case"number":B=hb(B,x);break;case"expiry":B=yb(B);break;case"cvc":B=gb(B);break;default:return}b||u(L=>({...L,[A]:B})),d?.({...o,[A]:B})},P=M=>{g?.(M.target.name)};return xo("div",{className:it("cleen",r),style:i,ref:v,...m,children:xo("div",{className:it("cleen-flex cleen-flex-wrap cleen-justify-center cleen-items-start cleen-gap-8 cleen-bg-background cleen-min-w-80 cleen-w-min cleen-border cleen-border-primary/20 cleen-rounded-[10px] cleen-shadow-lg",l?.container),style:s?.container,children:n?xo("div",{className:it("cleen-py-4",l?.loader?.container),style:s?.loader?.container,children:xo(re,{...l?.loader?.component,...s?.loader?.component})}):vb("form",{className:it("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",l?.form?.container),style:s?.form?.container,onSubmit:M=>M.preventDefault(),children:[xo(ye,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:it("cleen-w-full",l?.form?.cardNumber?.className),classNames:{...l?.form?.cardNumber?.classNames,inputContainer:it({"cleen-border-error":c?.number},l?.form?.cardNumber?.classNames?.inputContainer),input:it({"cleen-text-error":c?.number},l?.form?.cardNumber?.classNames?.input)},...s?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:C.number,onChange:I,onFocus:P,infoLabels:{errorMessage:c?.number}}),vb("div",{className:it("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",l?.form?.cvcExpiryContainer),style:s?.form?.cvcExpiryContainer,children:[xo(ye,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:l?.form?.expiry?.className,classNames:{...l?.form?.expiry?.classNames,inputContainer:it({"cleen-border-error":c?.expiry},l?.form?.expiry?.classNames?.inputContainer),input:it({"cleen-text-error":c?.expiry},l?.form?.expiry?.classNames?.input)},...s?.form?.expiry,placeholder:"00/00",value:C.expiry,onChange:I,onFocus:P,infoLabels:{errorMessage:c?.expiry}}),xo(ye,{label:t?.cvc,name:"cvc",type:"tel",inputMode:"numeric",autoComplete:"cc-csc",maxLength:x==="amex"?4:3,className:l?.form?.cvc?.className,classNames:{...l?.form?.cvc?.classNames,inputContainer:it({"cleen-border-error":c?.cvc},l?.form?.cvc?.classNames?.inputContainer),input:it({"cleen-text-error":c?.cvc},l?.form?.cvc?.classNames?.input)},...s?.form?.cvc,placeholder:"***",value:C.cvc,onChange:I,onFocus:P,infoLabels:{errorMessage:c?.cvc}})]}),(p?.infoMessage||p?.errorMessage||p?.subtitle)&&xo(ne,{...p})]})})})});import{cn as bb}from"@cleen/ui-core";import{jsx as Ib}from"react/jsx-runtime";var gt=({isHorizontal:e=!0,className:t,classNames:o,style:n,styles:c,...r})=>Ib("div",{className:bb("cleen",t),style:n,children:Ib("div",{className:bb("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",o?.container),style:c?.container,...r})});import{cn as So,useBodyScrollLock as kT,useCleenOverlays as Cb,ZIndex as TT}from"@cleen/ui-core";import{forwardRef as BT,useCallback as RT,useEffect as U0,useId as NT,useRef as LT,useState as Pb}from"react";import{createPortal as ET}from"react-dom";import{jsx as fr,jsxs as wi}from"react/jsx-runtime";var DT={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},xb=300,G0=BT(function({title:t,subtitle:o,children:n,headerCloseBtn:c,footer:r,isOpen:l=!1,onClose:i,closeOnOverlayClick:s=!0,position:p="right",zIndex:d=TT.DRAWER,size:g="lg",p:m,gap:v,className:y,classNames:u,style:b,styles:C,...x},I){let[P,M]=Pb(l),[A,B]=Pb(l),L=LT(null),D=NT(),{addOverlay:S,removeOverlay:N}=Cb(),w=RT(()=>{M(!1),setTimeout(()=>i?.(),xb)},[i]);return U0(()=>{if(l){B(!0);let F=setTimeout(()=>M(!0),1);return()=>clearTimeout(F)}else{M(!1);let F=setTimeout(()=>B(!1),xb);return()=>clearTimeout(F)}},[l]),U0(()=>{if(l)return S(D),()=>N(D)},[S,N,l,D]),U0(()=>{let F=R=>{let{overlays:E}=Cb.getState();R.key==="Escape"&&E[E.length-1]===D&&w()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[w,D]),kT(A),A?ET(wi("div",{className:So("cleen",y),style:b,ref:I,...x,children:[fr("div",{className:So("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",u?.overlay),onClick:()=>{s&&w()},style:{zIndex:d-1,...C?.overlay},"aria-hidden":"true"}),wi("div",{className:So("cleen-top-0 cleen-fixed cleen-flex cleen-flex-col cleen-gap-6 cleen-bg-surface cleen-shadow-l cleen-h-dvh cleen-transition-transform cleen-duration-300 cleen-ease-in-out cleen-transform",p==="right"?"cleen-right-0":"cleen-left-0",P?"cleen-translate-x-0":p==="right"?"cleen-translate-x-full":"-cleen-translate-x-full",u?.drawer),style:{zIndex:d,width:typeof g=="number"?g:DT[g],...v!==void 0&&{gap:v},...C?.drawer},ref:L,children:[wi("div",{className:So("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:[wi("div",{className:"cleen-flex cleen-flex-col",children:[fr("span",{className:So("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",u?.title),style:C?.title,children:t}),fr("span",{className:So("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",u?.subtitle),style:C?.subtitle,children:o})]}),c||fr(He,{onClick:w,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),fr("div",{className:So("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&&fr("div",{className:So("cleen-flex cleen-justify-end cleen-items-center cleen-gap-2 cleen-bg-sidebar cleen-px-6 cleen-py-4 cleen-border-border cleen-border-t",u?.footer),style:{...m!==void 0&&{paddingInline:m,paddingBlock:v},...C?.footer},children:r})]})]}),document.body):null});import{cn as ln,useAnimateNumber as FT}from"@cleen/ui-core";import{forwardRef as AT,useEffect as OT,useMemo as _T,useRef as zT,useState as VT}from"react";import{jsx as Mi,jsxs as $0}from"react/jsx-runtime";var hr=AT(({percentage:e,title:t,barColor:o,backgroundColor:n="rgb(var(--cleen-neutral-200))",textColor:c="rgb(var(--cleen-foreground))",invertProgressColors:r=!1,showPercentage:l=!1,renderAnimated:i=!1,renderAnimatedDuration:s=1e3,className:p,classNames:d,style:g,styles:m,...v},y)=>{let u=Math.max(0,Math.min(e,100)),b=zT(u),[C,x]=VT(i?0:u),I=FT({targetNumber:C,duration:s,disabled:!i});OT(()=>{if(i){setTimeout(()=>x(u),0);return}b.current!==u&&(x(u),b.current=u)},[u,i]);let P=_T(()=>{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 Mi("div",{ref:y,className:ln("cleen",p),style:g,children:$0("div",{className:ln("cleen-w-full",d?.container),style:m?.container,...v,children:[t&&Mi("div",{className:ln("cleen-mb-1 cleen-font-semibold cleen-text-xs",d?.title),style:m?.title,children:t}),$0("div",{className:ln("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",d?.wrapper||d?.progress),style:m?.wrapper??m?.progress,children:[Mi("div",{className:ln("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",d?.track),style:{backgroundColor:n,...m?.track},children:Mi("div",{className:ln("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",d?.fill),style:{width:`${C}%`,backgroundColor:P,...i&&{transitionDuration:`${s}ms`},...m?.fill}})}),l&&$0("span",{className:ln("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",d?.text),style:{color:c,...m?.text},children:[Math.round(I),"%"]})]})]})})});hr.displayName="ProgressBar";import{cn as wo,FileEntryStatus as cn}from"@cleen/ui-core";import{useMemo as Sb}from"react";import{Fragment as wb,jsx as Ae,jsxs as sn}from"react/jsx-runtime";var Mb=({fileEntry:e,onRemove:t,onFileClick:o,labels:n,classNames:c,styles:r})=>{let{id:l,file:i,name:s,size:p,url:d,type:g,status:m,progress:v=0,preExisting:y}=e,u=m===cn.UPLOADING,b=m===cn.ERROR,C=m===cn.DONE,x=m===cn.DELETING,I=p?p*v/100:0,P=Sb(()=>{switch(m){case cn.UPLOADING:return sn(wb,{children:[Ae(Zo,{className:"cleen-size-4"}),Ae("span",{children:n?.uploading})]});case cn.DONE:return Ae(Wo,{className:"cleen-size-4"});case cn.ERROR:return Ae($o,{className:"cleen-size-4"});default:return null}},[m,n]),M=()=>{if(o){o(e);return}d&&window.open(d,"_blank","noopener,noreferrer")},A=s||i?.name||"",[B,L]=A.split("."),D=Sb(()=>g?.startsWith("image/")&&d?Ae("img",{src:d,alt:A,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):g==="application/pdf"?Ae(Ko,{className:"cleen-size-8"}):Ae(Xo,{className:"cleen-size-8"}),[A,g,d]);return Ae(he,{p:12,className:c?.card?.className,classNames:{...c?.card?.classNames,container:wo(c?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":C})},...r?.card,onClick:C?M:void 0,children:sn("div",{className:wo("cleen-space-y-1",c?.container),style:r?.container,children:[sn("div",{className:wo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",c?.nameContainer),style:r?.nameContainer,children:[D,sn("div",{className:wo("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",c?.name),style:{maxWidth:D?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...r?.name},children:[Ae("span",{className:"cleen-truncate cleen-shrink",children:B}),sn("span",{className:"cleen-whitespace-nowrap",children:[".",L]})]}),Ae("div",{className:"cleen-flex-1"}),!u&&(x?Ae(re,{color:"rgb(var(--cleen-error))",className:wo("cleen-shrink-0")}):Ae(ct,{className:wo("cleen-size-4 cleen-shrink-0 cleen-text-neutral-600 hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer"),onClick:S=>{S.stopPropagation(),t?.(l)}}))]}),sn("div",{className:wo("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",c?.statusContainer),style:r?.statusContainer,children:[!!p&&(u?Ae("p",{children:n?.uploadProgress?.(I,p)}):C&&Ae("p",{children:n?.uploaded?.(p)})),!y&&sn(wb,{children:[Ae("span",{children:"|"}),Ae("div",{className:wo("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":b,"cleen-text-success":C},c?.statusText),style:r?.statusText,children:P})]})]}),u&&Ae(hr,{barColor:"rgb(var(--cleen-primary))",percentage:v,showPercentage:!0,...c?.progressBar,...r?.progressBar})]})},l)};var ki=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 kb={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${ki(e)} of ${ki(t)}`,uploaded:e=>ki(e)};var Tb={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 gl=(r=>(r.PENDING="pending",r.IN_PROGRESS="inProgress",r.DONE="done",r.ERROR="error",r.REMOVING="removing",r))(gl||{});import{cn as pn}from"@cleen/ui-core";import{jsx as Mo,jsxs as Bb}from"react/jsx-runtime";var W0=({item:e,labels:t,classNames:o,styles:n})=>{let{status:c,progress:r=0,icon:l,name:i}=e,s=c==="inProgress",p=c==="done",d=c==="error",g=c==="removing",m=c==="pending";return Bb("div",{className:pn("cleen-flex cleen-items-center cleen-gap-3",o?.container),style:n?.container,children:[l,Bb("div",{className:pn("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",o?.infoContainer),style:n?.infoContainer,children:[Mo("p",{className:pn("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",o?.name),style:n?.name,children:i}),s&&Mo(hr,{barColor:"rgb(var(--cleen-primary))",percentage:r,...o?.progressBar,...n?.progressBar})]}),s&&Mo("span",{className:pn("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",o?.progressText),style:n?.progressText,children:t?.itemProgress?.(r)}),g&&Mo(re,{color:"rgb(var(--cleen-error))"}),p&&Mo(Wo,{className:pn("cleen-size-5 cleen-shrink-0 cleen-text-success",o?.statusIcon),style:n?.statusIcon}),d&&Mo($o,{className:pn("cleen-size-5 cleen-shrink-0 cleen-text-error",o?.statusIcon),style:n?.statusIcon}),m&&Mo("div",{className:pn("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",o?.statusIcon),style:n?.statusIcon,children:Array.from({length:3}).map((v,y)=>Mo("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${y*.1}s`}},y))})]})};var yl=(c=>(c.NOT_STARTED="notStarted",c.IN_PROGRESS="inProgress",c.COMPLETED="completed",c.ALL="all",c))(yl||{}),vl=["notStarted","inProgress","completed","all"];import{cn as Ti}from"@cleen/ui-core";import{jsx as Rb,jsxs as HT}from"react/jsx-runtime";var q0=({value:e,onChange:t,counts:o,labels:n,classNames:c,styles:r})=>Rb("div",{role:"group","aria-label":n?.statusFilter,className:Ti("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",c?.container),style:r?.container,children:vl.map(l=>{let i=l===e;return HT("button",{type:"button","aria-pressed":i,onClick:()=>t(l),className:Ti("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",c?.option,i&&Ti("cleen-bg-background cleen-text-foreground cleen-shadow-sm",c?.optionActive)),style:{...r?.option,...i&&r?.optionActive},children:[n?.statusFilterOptions?.[l],o&&Rb("span",{className:Ti("cleen-text-neutral-400 cleen-tabular-nums",c?.optionCount),style:r?.optionCount,children:o[l]})]},l)})});var Nb={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 Lb=e=>e.status==="inProgress"||e.status==="pending",Eb=e=>e.length>0&&e.every(t=>t.status==="done"),X0=(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 UT,cn as yt,useControlled as Db,useDisclosure as GT}from"@cleen/ui-core";import{forwardRef as $T,useEffect as Fb,useMemo as K0,useRef as WT}from"react";import{jsx as wt,jsxs as Y0}from"react/jsx-runtime";var Q0=$T(function({items:t,title:o,maxVisibleItems:n=5,isExpanded:c,defaultExpanded:r=!1,onExpandedChange:l,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:s,showHeader:p=!0,showStatusFilter:d=!1,showStatusFilterCounts:g=!1,statusFilter:m,defaultStatusFilter:v="inProgress",onStatusFilterChange:y,labels:u,className:b,classNames:C,style:x,styles:I,...P},M){let{isOpen:A,toggle:B,close:L}=GT(),{value:D,handleChange:S}=Db({value:c,defaultValue:r,onChange:l});Fb(()=>{t.length>0&&L()},[t.length,L]);let N=UT(Nb,u),{value:w,handleChange:F}=Db({value:m,defaultValue:v,onChange:y}),R=WT(i);R.current=i;let E=Eb(t);Fb(()=>{if(s==null||!R.current||!E)return;if(s<=0){R.current();return}let _=setTimeout(()=>R.current?.(),s);return()=>clearTimeout(_)},[E,s]);let G=K0(()=>t.filter(Lb).length,[t]),T=K0(()=>!d||!w?t:t.filter(_=>X0(_,w)),[t,d,w]),k=K0(()=>{if(g)return vl.reduce((_,X)=>({..._,[X]:t.filter(H=>X0(H,X)).length}),{})},[t,g]);if(!t.length)return null;let z=Math.max(T.length-n,0),U=D||!z?T:T.slice(0,n),O=o??(G?N?.processing?.(G):N?.completed);return wt(he,{p:16,gap:12,ref:M,className:yt(b,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:yt(C?.card?.classNames?.childrenContainer,{"cleen-hidden":A})},style:x,styles:I?.card?.styles,header:p?{hasDivider:!A,content:Y0("div",{className:yt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",C?.header),style:I?.header,children:[wt("p",{className:yt("cleen-font-semibold cleen-text-foreground cleen-text-sm",C?.title),style:I?.title,children:O}),Y0("div",{className:yt("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:I?.headerButtons,children:[wt("button",{type:"button","aria-label":N?.contract,onClick:B,className:yt("cleen-text-muted-foreground hover:cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.contractButton),style:I?.contractButton,children:wt($t,{className:yt("cleen-size-5 cleen-transition-transform",A&&"cleen-rotate-180")})}),i&&wt("button",{type:"button","aria-label":N?.dismiss,onClick:i,className:yt("cleen-text-muted-foreground hover:cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.dismissButton),style:I?.dismissButton,children:wt(He,{className:"cleen-size-4"})})]})]})}:void 0,...P,children:Y0("div",{className:yt("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:I?.list,children:[d&&w&&wt(q0,{value:w,onChange:F,counts:k,labels:N,classNames:C?.statusFilter,styles:I?.statusFilter}),!U.length&&wt("p",{className:yt("cleen-text-muted-foreground cleen-text-xs",C?.emptyStatusFilter),style:I?.emptyStatusFilter,children:N?.emptyStatusFilter}),U.map(_=>wt(W0,{item:_,labels:N,classNames:C?.row,styles:I?.row},_.id)),!!z&&wt("button",{type:"button","aria-expanded":D,onClick:()=>S(!D),className:yt("cleen-self-start cleen-font-medium cleen-text-primary cleen-text-xs hover:cleen-underline focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.expandButton),style:I?.expandButton,children:D?N?.showLess:N?.showMore?.(z)})]})})});import{FileEntryStatus as Qt}from"@cleen/ui-core";var qT=[{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"]}],Ab={label:"FILE",className:"cleen-bg-neutral-500"},XT={[Qt.QUEUED]:"inProgress",[Qt.UPLOADING]:"inProgress",[Qt.PAUSED]:"inProgress",[Qt.DONE]:"done",[Qt.ERROR]:"error",[Qt.DELETING]:"removing"},Z0=e=>e.name||e.file?.name||"",Ob=e=>{let t=Z0(e).split(".").pop()?.toLowerCase()??"",o=qT.find(({extensions:n})=>n.includes(t));return o?{label:o.label,className:o.className}:{label:t?t.slice(0,4).toUpperCase():Ab.label,className:Ab.className}},_b=e=>e.status===Qt.QUEUED||e.status===Qt.UPLOADING||e.status===Qt.PAUSED,zb=e=>XT[e.status]??"pending",Vb=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as KT}from"@cleen/ui-core";import{jsx as YT}from"react/jsx-runtime";var Hb=({fileEntry:e,className:t,style:o})=>{let n=Ob(e);return YT("div",{className:KT("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 QT}from"react/jsx-runtime";var Ub=(e,t)=>({id:e.id,name:Z0(e),progress:e.progress,status:zb(e),icon:QT(Hb,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as ZT}from"@cleen/ui-core";import{forwardRef as JT,useMemo as Gb}from"react";import{jsx as jT}from"react/jsx-runtime";var J0=JT(function({files:t,title:o,maxVisibleFiles:n=5,labels:c,classNames:r,styles:l,...i},s){let p=Gb(()=>Vb(t),[t]),d=ZT(Tb,c),g=Gb(()=>p.map(y=>Ub(y,{className:r?.row?.typeBadge,style:l?.row?.typeBadge})),[p,r?.row?.typeBadge,l?.row?.typeBadge]),m=p.filter(_b).length,v=o??(m?d?.uploading?.(m):d?.completed);return jT(Q0,{ref:s,items:g,title:v,maxVisibleItems:n,labels:{showMore:d?.showMore,showLess:d?.showLess,dismiss:d?.dismiss,contract:d?.contract,itemProgress:d?.uploadProgress},classNames:r,styles:l,...i})});import{applyDefaults as eB,cn as Xe,FileEntryStatus as tB,useFileUpload as oB}from"@cleen/ui-core";import{forwardRef as nB,useEffect as rB,useMemo as $b,useRef as Wb,useState as j0}from"react";import{createPortal as aB}from"react-dom";import{jsx as Ke,jsxs as Bi}from"react/jsx-runtime";var lB=nB(function({required:t,icon:o,files:n,initialFiles:c=[],onFilesChange:r,onFileUpload:l,onFilesUpload:i,onFileRemove:s,onFileClick:p,infoLabels:d,containerRef:g,label:m,labelTooltip:v,labels:y,showUploadedFiles:u=!1,showProgressTracker:b=!1,progressTracker:C,className:x,classNames:I,style:P,styles:M,multiple:A,disabled:B,loadingWhileUploading:L,isLoading:D,readOnly:S,onChange:N,id:w,name:F,...R},E){let G=Wb(null),{files:T,addFiles:k,remove:z}=oB({files:n,onFilesChange:r,initialFiles:c,onFileUpload:l,onFilesUpload:i,onFileRemove:s}),U=$b(()=>D||L&&Array.from(T.values()).some(Q=>Q.status===tB.UPLOADING),[T,L,D]),[O,_]=j0(!1),[X,H]=j0([]),[V,q]=j0(!1),$=Wb(new Set(T.keys()));rB(()=>{let Q=Array.from(T.keys()),xe=Q.filter(Re=>!$.current.has(Re));$.current=new Set(Q),H(Re=>{let ge=Re.filter(qe=>T.has(qe));return xe.length?V?xe:[...ge,...xe.filter(qe=>!ge.includes(qe))]:ge.length===Re.length?Re:ge}),xe.length&&q(!1)},[T,V]);let K=$b(()=>X.map(Q=>T.get(Q)).filter(Q=>!!Q),[X,T]),pe=()=>{q(!0),H([]),C?.onDismiss?.()},fe=!B&&!S&&!U,me=Q=>{let xe=Array.from(Q.target.files??[]);k(xe),N?.(Q)},$e=Q=>{z(Q)},Pe=()=>{fe&&G.current?.click()},j=Q=>{if(!Q.length)return;let xe=A?Q:Q.slice(0,1);if(!G.current||typeof DataTransfer>"u"){k(xe);return}let Re=new DataTransfer;xe.forEach(ge=>Re.items.add(ge));try{G.current.files=Re.files}catch{k(xe);return}k(xe),N?.({target:G.current,currentTarget:G.current})},ce=Q=>{Q.preventDefault(),Q.stopPropagation(),_(!1),fe&&j(Array.from(Q.dataTransfer.files??[]))},tt=Q=>{Q.preventDefault(),Q.stopPropagation(),fe&&_(!0)},We=Q=>{Q.preventDefault(),Q.stopPropagation(),fe&&_(!0)},Be=Q=>{Q.preventDefault(),Q.stopPropagation(),fe&&_(!1)},De=Q=>{fe&&(Q.key!=="Enter"&&Q.key!==" "||(Q.preventDefault(),Pe()))},Ve=eB(kb,y);return Bi("div",{className:Xe("cleen",x),style:P,ref:g,children:[Ke("input",{id:w||F,name:F,ref:Q=>{if(G.current=Q,typeof E=="function"){E(Q);return}E&&(E.current=Q)},type:"file",multiple:A,disabled:B||U,readOnly:S,className:Xe("cleen-hidden",I?.input),style:M?.input,onChange:me,...R}),m&&Ke(ae,{htmlFor:w||F,required:t,tooltip:v,className:Xe("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...M?.label,children:m}),Bi("div",{className:Xe("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":U}),children:[Ke(he,{tabIndex:fe?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":B||S||U,onClick:Pe,onKeyDown:De,onDrop:ce,onDragEnter:tt,onDragOver:We,onDragLeave:Be,p:16,className:Xe("cleen-rounded-lg focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",I?.card?.className),classNames:{...I?.card?.classNames,container:Xe("cleen-transition-colors",B?"cleen-cursor-not-allowed cleen-bg-muted":"cleen-cursor-pointer hover:cleen-bg-surface hover:cleen-border-muted-foreground",I?.card?.classNames?.container,O&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:Xe({"cleen-blur-sm":U},I?.card?.classNames?.childrenContainer)},style:M?.card?.style,styles:{...M?.card?.styles,container:{...M?.card?.styles?.container,...O?M?.cardDragActive:void 0}},children:Bi("div",{className:Xe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:M?.dropArea,"aria-disabled":B||S||U,children:[Ke("div",{className:Xe("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-border cleen-border-border cleen-rounded-xl cleen-size-11 cleen-text-neutral-700",I?.iconContainer),style:M?.iconContainer,children:o||Ke(Zo,{className:"cleen-size-5"})}),Bi("p",{className:Xe("cleen-font-medium cleen-text-sm",I?.textContainer),style:M?.textContainer,children:[Ke("span",{className:Xe(B?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:M?.primaryText,children:Ve?.primaryText})," ",Ke("span",{className:Xe("cleen-text-foreground",I?.secondaryText),style:M?.secondaryText,children:Ve?.secondaryText})]}),Ke("p",{className:Xe("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:M?.helperText,children:Ve?.helperText})]})}),U&&Ke(re,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),u&&T.size>0&&Ke("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(T.values()).map(Q=>Ke(Mb,{fileEntry:Q,onRemove:$e,onFileClick:p,labels:Ve,classNames:I?.fileCard,styles:M?.fileCard},Q.id))}),b&&!V&&K.length>0&&aB(Ke("div",{className:"cleen",children:Ke(J0,{...C,files:K,onDismiss:pe,className:Xe("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",I?.progressTracker?.className),classNames:I?.progressTracker?.classNames,...M?.progressTracker})}),document.body),(d?.errorMessage||d?.infoMessage||d?.subtitle)&&Ke(ne,{...d})]})});var cB=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)}},qb={uploaded:e=>`Uploaded: ${cB(e)}`};var e1={"image/":"image","video/":"video","audio/":"audio"},t1={"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"},Xb={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"},Kb=["http:","https:","blob:"];var iB=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in t1)return t1[t];let o=Object.keys(e1).find(n=>t.startsWith(n));return o?e1[o]:void 0},o1=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},sB=e=>{let t=o1(e);return t?Xb[t]:void 0},Yb=e=>iB(e.type)??sB(e.name)??"generic",Qb=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return Kb.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as Zt,formatFileSize as pB}from"@cleen/ui-core";import{forwardRef as dB,useMemo as Zb,useState as mB}from"react";import{Fragment as fB,jsx as Mt,jsxs as Ri}from"react/jsx-runtime";var uB=dB(function({file:t,preview:o=!1,onRemove:n,description:c,labels:r,className:l,classNames:i,style:s,styles:p,...d},g){let[m,v]=mB(),y=Zb(()=>({...qb,...r}),[r]),u=Yb(t),b=P0(o1(t.name)),C=Qb(t.url)?t.url:void 0,x=t.previewUrl||t.url,I=o&&(u==="image"||u==="video")&&!!x&&m!==x,P=Zb(()=>{if(c!=null)return c;let L=[];if(t.size!=null&&L.push(pB(t.size)),t.uploadedAt!=null){let D=y?.uploaded(t.uploadedAt);D&&L.push(D)}return L.length>0?L.join(" \u2022 "):null},[c,t.uploadedAt,t.size,y]),M=L=>{L.stopPropagation(),n?.(t)},A=Zt("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-items-center cleen-gap-3 cleen-py-2 cleen-px-3 cleen-rounded-lg",C&&"cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-inset focus-visible:cleen-ring-primary",i?.main),B=Ri(fB,{children:[Ri("div",{className:Zt("cleen-flex cleen-size-10 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-overflow-hidden cleen-rounded-lg cleen-bg-primary-50 cleen-text-primary-600",i?.media),style:p?.media,children:[I&&(u==="image"||u==="video"&&t.previewUrl)&&Mt("img",{src:x,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>v(x)}),I&&u==="video"&&!t.previewUrl&&Mt("video",{src:x,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>v(x)}),!I&&Mt(b,{"aria-hidden":!0,className:Zt("cleen-size-5",i?.icon),style:p?.icon})]}),Ri("div",{className:Zt("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:p?.content,children:[Mt("span",{className:Zt("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:p?.title,title:t.name,children:t.name}),P!==null&&Mt("span",{className:Zt("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:p?.description,children:P})]})]});return Mt("div",{className:Zt("cleen",l),style:s,ref:g,...d,children:Ri("div",{className:Zt("cleen-flex cleen-w-full cleen-min-w-0 cleen-items-center cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-transition-all cleen-duration-200",C&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",i?.container),style:p?.container,children:[C?Mt("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:A,style:p?.main,children:B}):Mt("div",{className:A,style:p?.main,children:B}),n&&Mt("button",{type:"button",className:Zt("cleen-mr-3 cleen-flex cleen-size-8 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-error cleen-transition-colors hover:cleen-bg-muted focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-error",i?.removeButton),style:p?.removeButton,onClick:M,children:Mt(He,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Ni={filterName:"",exposed:!1};import{createContext as hB}from"react";var st=hB({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as gB}from"@cleen/ui-core";import{useContext as yB,useState as vB}from"react";import{Fragment as bB,jsx as bl,jsxs as n1}from"react/jsx-runtime";var Jb={min:3,max:50},jb=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:o,setIsSaveFiltersStep:n,handleCloseSaveFilter:c,setError:r,onSave:l,classNames:i,styles:s,labels:p,withSavedFilters:d=!0,onCancel:g,onApply:m}=yB(st),[v,y]=vB(!1),u=async()=>{try{if(t.filterName.length<Jb.min){r?.("filterName",p?.saveStep?.validation?.tooShort);return}if(t.filterName.length>Jb.max){r?.("filterName",p?.saveStep?.validation?.tooLong);return}y(!0),await l?.(t),n(!1)}catch(b){console.error("Error saving filters:",b)}finally{y(!1)}};return e?n1("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[bl(ee,{onClick:()=>n(!1),variant:"secondary",...i?.saveFilter?.backBtn,...s?.saveFilter?.backBtn,children:p?.saveStep?.back}),bl(ee,{onClick:u,isLoading:v,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...s?.saveFilter?.saveBtn,children:p?.saveStep?.save})]}):n1(bB,{children:[d&&bl(ee,{onClick:()=>{o(Ni),n(!0)},variant:"borderless-blue",...i?.saveBtn,...s?.saveBtn,children:p?.save}),n1("div",{className:gB("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!d}),children:[bl(ee,{onClick:()=>{g?.(),c()},variant:"secondary",...i?.cancelBtn,...s?.cancelBtn,children:p?.cancel}),bl(ee,{onClick:()=>{m?.(),c()},...i?.applyBtn,...s?.applyBtn,children:p?.apply})]})]})};import{cn as dn}from"@cleen/ui-core";import{Link as IB}from"react-router-dom";import{Fragment as oI,jsx as vt,jsxs as Il}from"react/jsx-runtime";var eI=({item:e,classNames:t,styles:o})=>({disabled:e?.disabled,className:dn("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:Il(oI,{children:[e?.icon,vt("span",{className:dn("cleen-flex-1",t?.label),style:o?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),tI=(e,t)=>e.map(o=>o?.type==="group"?{...o,items:tI(o.items,t)}:o?.type==="button"&&!o.submenu?.length?{...o,onClick:()=>t?.(o)}:o),r1=({item:e,isLast:t,handleClick:o,onEnterSubmenu:n,renderActionsMenu:c,classNames:r,styles:l})=>{switch(e?.type){case"group":return Il(oI,{children:[e?.label&&vt("p",{className:dn("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",r?.groupLabel),style:l?.groupDivider,children:e?.label}),e?.items?.map((i,s,p)=>vt(r1,{item:i,handleClick:o,onEnterSubmenu:n,renderActionsMenu:c,isLast:s===p.length-1},i?.id||s)),!t&&vt("hr",{className:dn("cleen-text-neutral-200",r?.groupDivider),style:l?.groupDivider})]});case"button":{let i=e?.submenu&&e?.submenu?.length>0,s=!!c&&!!e?.actions&&e.actions.length>0,p=()=>{i?n?.(e.submenu,e?.label):o?.(e)};if(!s)return Il("button",{type:"button",onClick:p,...eI({item:e,classNames:r,styles:l}),children:[e?.icon,vt("span",{className:"cleen-flex-1",children:e?.label}),i&&vt(nt,{className:"cleen-size-4 cleen-text-neutral-400"})]});let d=e.actionsLabel??"More actions";return Il("div",{className:dn("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:l?.container,children:[Il("button",{type:"button",onClick:p,disabled:e?.disabled,className:dn("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,vt("span",{className:dn("cleen-flex-1 cleen-min-w-0 cleen-truncate",r?.label),style:l?.label,children:e?.label}),i&&vt(nt,{className:"cleen-size-4 cleen-text-neutral-400"})]}),c(tI(e.actions,o),vt("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:vt(uo,{className:"cleen-size-4"})}))]})}case"link":return vt(IB,{to:"",...eI({item:e,classNames:r,styles:l})});default:return null}};import{cn as CB}from"@cleen/ui-core";import{useEffect as nI,useState as rI}from"react";import{Fragment as PB,jsx as aI,jsxs as lI}from"react/jsx-runtime";var cI=({items:e,keepOpenOnClick:t,hideMenu:o,renderActionsMenu:n,classNames:c,styles:r})=>{let[l,i]=rI([]),[s,p]=rI(e),d=(v,y)=>{i(u=>[...u,{items:s,title:y}]),p(v)},g=()=>{let v=l[l?.length-1];v&&(p(v?.items),i(y=>y?.slice(0,-1)))};nI(()=>{p(e),i([])},[e]),nI(()=>{let v=y=>{if(y.key==="Escape")if(l.length>0){let u=l?.[l?.length-1];p(u?.items),i(b=>b?.slice(0,-1))}else o()};return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,l]);let m=v=>{v?.onClick?.(),t||o()};return lI(PB,{children:[l?.length>0&&lI("button",{onClick:g,className:CB("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-sm cleen-text-foreground hover:cleen-bg-neutral-50",c?.submenuButton),style:r?.submenuButton,children:[aI(Gt,{className:"cleen-size-4 cleen-text-neutral-300"}),l?.[l?.length-1]?.title]}),s?.map((v,y,u)=>aI(r1,{item:v,isLast:y===u?.length-1,handleClick:m,onEnterSubmenu:d,renderActionsMenu:n,classNames:c?.item,styles:r?.item},v?.id||y))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as xB,cn as a1,useDisclosure as SB,useOutsideClick as wB,usePositionClose as MB,ZIndex as kB}from"@cleen/ui-core";import{forwardRef as TB,useRef as iI}from"react";import{createPortal as BB}from"react-dom";import{jsx as Cl,jsxs as NB}from"react/jsx-runtime";var mn=TB(function({items:t=[],position:o="bottom-left",keepOpenOnClick:n=!0,triggerRef:c,menuRef:r,ignoreClickOutside:l=!1,zIndex:i=kB.MENU,children:s,className:p,classNames:d,style:g,styles:m,...v},y){let{isOpen:u,toggle:b,close:C}=SB(),x=iI(null),I=iI(null),P=c??x,M=r??I,{positionStyles:A,isMounted:B}=MB({triggerRef:P,targetRef:M,position:o,isOpen:u});wB({refs:[P,M],handler:C,enabled:u});let L=()=>{b()};return NB("div",{className:a1("cleen",p),style:g,ref:y,...v,children:[Cl("div",{ref:P,onClick:L,className:a1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:s}),u&&BB(Cl("div",{className:"cleen",...l&&{[xB]:"true"},children:Cl("div",{ref:M,className:a1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!B},d?.menu),style:{zIndex:i,top:`${A.top}px`,left:`${A.left}px`,...m?.menu},children:Cl(cI,{items:t,keepOpenOnClick:n,hideMenu:C,renderActionsMenu:(D,S)=>RB(D,S,i),classNames:d,styles:m})})}),document.body)]})});function RB(e,t,o){return Cl(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 Li,ColorHelpers as Ei}from"@cleen/ui-core";import{useMemo as LB}from"react";var l1=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow","foreground-transparent"],c1={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"},sI={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"},pI={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"},dI={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"},mI={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var uI=(e,t)=>!e&&!t?"primary":t?l1[t%l1.length]:e;import{jsx as i1,jsxs as EB}from"react/jsx-runtime";var we=({className:e,classNames:t,style:o,styles:n,label:c,color:r="primary",variant:l="rounded",showDot:i=!1,icon:s,removeable:p=!1,withBorder:d=!0,filled:g=!1,onRemoveClicked:m,onClick:v,colorByIndex:y,children:u,...b})=>{let{variantClass:C,dotVariantClass:x,dotVariantStyle:I,variantStyle:P}=LB(()=>{let M={};if(r in c1){let A=uI(r,y);M.variantClass=g?sI[A]:c1[A],M.dotVariantClass=g?dI[A]:pI[A]}else M.variantStyle={borderColor:g?r:Ei.trasparentize(r,.8),backgroundColor:g?r:Ei.trasparentize(r,.95),color:g?Ei.adjustColorForContrast(r,.5):r},M.dotVariantStyle={backgroundColor:g?Ei.adjustColorForContrast(r,.5):r};return M},[r,y,g]);return i1("div",{className:Li("cleen",e),style:o,children:EB("span",{className:Li("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,mI[l],{"hover:cleen-opacity-80 cleen-cursor-pointer":v||p},t?.container),style:{...P,...n?.container},onClick:v,...b,children:[i&&i1("span",{className:Li("cleen-size-2 cleen-rounded-[50%]",x,t?.dot),style:{...I,...n?.dot}}),s,c??u,p&&i1(He,{className:Li("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 FB}from"@cleen/ui-core";import{useContext as AB,useState as fI}from"react";import{jsx as kt,jsxs as OB}from"react/jsx-runtime";var hI=({filter:e,activeTabId:t})=>{let[o,n]=fI(!1),[c,r]=fI(!1),{labels:l,onFilterDelete:i,onFilterPin:s,onFilterSelect:p,onFilterUnpin:d,setIsFiltersDropdownOpen:g}=AB(st),m=async()=>{try{if(!i)return;n(!0),await i(e.filterID)}catch(y){console.error("Error while deleting filter:",y)}finally{n(!1)}},v=async()=>{try{r(!0),e?.isPinned?await d?.(e.filterID):await s?.(e.filterID)}catch(y){console.error("Error while pinning/unpinnning filter:",y)}finally{r(!1)}};return kt("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:OB("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{p?.(e),g(!1)},children:[kt("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),c?kt(re,{classNames:{loader:"cleen-size-5"}}):kt(we,{color:"gray",onClick:y=>{y.stopPropagation(),v()},icon:kt(Ra,{name:"pin",className:FB("cleen-size-3.5 group-hover:cleen-text-neutral-700 cleen-transition-colors cleen-cursor-pointer",e?.isPinned?"cleen-text-neutral-600":"cleen-text-neutral-300")}),classNames:{container:"cleen-font-bold"},label:e?.isPinned?l?.savedFilters?.filter?.unpin:l?.savedFilters?.filter?.pin}),t==="mine"&&kt(mn,{items:[{id:"duplicate",type:"button",label:l?.savedFilters?.filter?.cancelDelete,icon:kt(He,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:l?.savedFilters?.filter?.delete,icon:kt(ct,{}),danger:!0,onClick:()=>m()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:y=>y.stopPropagation(),className:"cleen-flex",children:o?kt(re,{size:"sm",color:"rgb(var(--cleen-error))"}):kt(ct,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as ko}from"@cleen/ui-core";import{forwardRef as _B,useId as zB,useMemo as yI,useRef as VB,useState as p1}from"react";import{cn as s1}from"@cleen/ui-core";var Pl={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"}},gI=e=>{let t=e==="vertical";return{underlined:{list:s1("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:s1("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:s1("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 xl,jsxs as vI}from"react/jsx-runtime";var Di=(e,t)=>e?.id??String(t),Sl=_B(function({tabs:t,variant:o="underlined",direction:n="horizontal",currentTabIndex:c,onTabChange:r,multiple:l=!1,activeTabIds:i,defaultActiveTabIds:s,onChange:p,className:d,classNames:g,style:m,styles:v,...y},u){let[b,C]=p1(0),I=c!==void 0?c:b,[P,M]=p1(s??[]),A=i??P,B=yI(()=>{if(!l){let O=t?.[I];return O?[O]:[]}return t?.filter((O,_)=>A.includes(Di(O,_)))??[]},[t,l,I,A]),L=(O,_)=>l?A.includes(Di(O,_)):I===_,D=(O,_)=>{if(l){let X=Di(_,O),H=A.includes(X),V=t?.map((q,$)=>Di(q,$)).filter(q=>q===X?!H:A.includes(q))??[];M(V),p?.(V)}else C(O);r?.(O,_)},S=zB(),N=VB([]),[w,F]=p1(),R=O=>`${S}-tab-${O}`,E=O=>`${S}-panel-${O}`,G=t?.flatMap((O,_)=>O?.isDisabled?[]:[_])??[],T=w!==void 0&&G.includes(w)?w:G.find(O=>L(t[O],O))??G[0],k=O=>{let _=N.current.findIndex(K=>K===O.target),X=G.indexOf(_);if(X===-1)return;let[H,V]=n==="vertical"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],q=G.length-1,$={[H]:X===0?q:X-1,[V]:X===q?0:X+1,Home:0,End:q}[O.key];$!==void 0&&(O.preventDefault(),N.current[G[$]]?.focus())},z=new Set(t?.flatMap((O,_)=>O?.content&&L(O,_)?[_]:[])??[]),U=yI(()=>gI(n),[n]);return xl("div",{className:ko("cleen",d),style:m,ref:u,...y,children:vI("div",{className:ko(Pl[n].container,g?.container),style:v?.container,children:[xl("div",{role:"tablist","aria-label":"Tabs","aria-orientation":n,"aria-multiselectable":l||void 0,className:ko(U[o].list,Pl[n].list,g?.list),style:v?.list,onKeyDown:k,onBlur:O=>{O.currentTarget.contains(O.relatedTarget)||F(void 0)},children:t?.map((O,_)=>{let X=L(O,_),H=O?.isDisabled;return vI("button",{type:"button",role:"tab",ref:V=>{N.current[_]=V},id:R(_),"aria-selected":X,"aria-controls":z.has(_)?E(_):void 0,"aria-disabled":H||void 0,tabIndex:_===T?0:-1,disabled:H,onFocus:()=>F(_),onClick:()=>D(_,O),className:ko("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[o].tab,Pl[n].tab,g?.tab,H?ko(U[o].tabDisabled,g?.tabDisabled):X?ko(U[o].tabActive,g?.tabActive):ko(U[o].tabInactive,g?.tabInactive)),style:{...v?.tab,...H?v?.tabDisabled:X?v?.tabActive:v?.tabInactive},children:[O?.label,!!O?.badge?.label&&xl(we,{variant:"rounded",color:X?"blue":"gray",...g?.count,...v?.count,...O.badge})]},O?.id||_)})}),B.some(O=>!!O?.content)&&xl("div",{className:ko("h-full",l&&"cleen-flex cleen-flex-col cleen-gap-4",Pl[n].content,g?.content),style:v?.content,...!l&&{role:"tabpanel",id:E(I),"aria-labelledby":R(I)},children:l?B.map(O=>{if(!O?.content)return null;let _=t.indexOf(O);return xl("div",{role:"tabpanel",id:E(_),"aria-labelledby":R(_),children:O.content},O.id||_)}):B[0]?.content})]})})});import{useContext as HB,useState as UB}from"react";import{jsx as un,jsxs as $B}from"react/jsx-runtime";var GB=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},bI=({selectedSavedFilter:e,filters:t,isFiltersFetching:o,onFilterCategoryChange:n})=>{let[c,r]=UB("all"),{labels:l,classNames:i,styles:s,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:d}=HB(st);return un(ul,{isOpen:p,onOpenChange:d,leftIcon:un(fa,{className:"cleen-size-5"}),label:e?.title??l?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...s?.dropdown,children:$B("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[un(Sl,{tabs:[{id:"all",label:l?.savedFilters?.tabs?.all},{id:"mine",label:l?.savedFilters?.tabs?.mine},{id:"shared",label:l?.savedFilters?.tabs?.shared},{id:"featured",label:l?.savedFilters?.tabs?.featured},{id:"pinned",label:l?.savedFilters?.tabs?.pinned}],variant:"padded",onTabChange:(g,m)=>{r(m?.id),n?.(GB(m?.id))},classNames:{list:"cleen-mb-2"}}),un("div",{className:"flex flex-col",children:o?un(re,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(g=>un(hI,{filter:g,activeTabId:c},g.filterID)):un("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:l?.savedFilters?.noFilters})})]})})};import{cn as Jt}from"@cleen/ui-core";import{forwardRef as WB,useEffect as qB,useId as XB,useState as KB}from"react";import{jsx as fn,jsxs as d1}from"react/jsx-runtime";var m1=WB(function({id:t,name:o,required:n,checked:c,defaultChecked:r=!1,onChange:l,title:i,label:s,labelTooltip:p,sublabel:d,disabled:g,classNames:m,className:v,style:y,styles:u,infoLabels:b,...C},x){let I=typeof c=="boolean",[P,M]=KB(r);qB(()=>{I||M(r)},[r,I]);let A=I?c:P,B=XB(),L=i?`${B}-title`:void 0,D=s?`${B}-label`:void 0,S=[L,D].filter(Boolean).join(" ")||void 0,N=()=>{g||(I||M(!P),l?.(!A))};return fn("div",{className:Jt("cleen",v),style:y,children:d1("div",{className:Jt("cleen-flex cleen-flex-col",m?.container),style:u?.container,children:[i&&fn(ae,{id:L,htmlFor:t||o,required:n,tooltip:p,className:Jt("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...u?.title,children:i}),d1("div",{className:Jt("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:u?.switchContainer,children:[fn("button",{id:t||o,type:"button",role:"switch","aria-checked":A,"aria-labelledby":S,disabled:g,onClick:N,className:Jt("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",A?"cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]":"cleen-bg-neutral-200 hover:cleen-bg-neutral-300",m?.switch),style:u?.switch,ref:x,...C,children:fn("span",{"aria-hidden":"true",className:Jt("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",A?"cleen-translate-x-5":"cleen-translate-x-0",m?.check),style:u?.check})}),(s||d)&&d1("div",{className:Jt("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:u?.labelContainer,children:[s&&fn("span",{id:D,className:Jt("cleen-font-semibold cleen-text-foreground",m?.label),style:u?.label,children:s}),d&&fn("span",{className:Jt("cleen-font-normal cleen-text-muted-foreground",m?.sublabel),style:u?.sublabel,children:d})]})]}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&fn(ne,{...b})]})})});import{useContext as YB}from"react";import{Fragment as QB,jsx as II,jsxs as ZB}from"react/jsx-runtime";var CI=()=>{let{classNames:e,styles:t,labels:o,saveStepValues:n,setSaveStepValues:c,errors:r,clearError:l}=YB(st);return ZB(QB,{children:[II(ye,{value:n.filterName,onChange:i=>{c(s=>({...s,filterName:i.target.value})),r?.filterName&&l?.("filterName")},label:o?.saveStep?.filterNameInput?.label,placeholder:o?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:r?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),II(m1,{checked:n.exposed,onChange:i=>c(s=>({...s,exposed:i})),title:o?.saveStep?.exposureSwitch?.title,label:o?.saveStep?.exposureSwitch?.label,sublabel:o?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var PI={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 JB}from"@cleen/ui-core";import{useState as u1}from"react";import{jsx as jB}from"react/jsx-runtime";var xI=({children:e,value:t})=>{let[o,n]=u1(!1),[c,r]=u1(Ni),{errors:l,setError:i,clearError:s}=JB({}),[p,d]=u1(!1),g=()=>{n(!1),t?.onClose?.()};return jB(st.Provider,{value:{isSaveFiltersStep:o,setIsSaveFiltersStep:n,saveStepValues:c,setSaveStepValues:r,handleCloseSaveFilter:g,isFiltersDropdownOpen:p,setIsFiltersDropdownOpen:d,errors:l,setError:i,clearError:s,...t},children:e})};import{applyDefaults as eR,cn as SI}from"@cleen/ui-core";import{forwardRef as wI,useContext as tR}from"react";import{Fragment as rR,jsx as To,jsxs as aR}from"react/jsx-runtime";var oR=wI(function({selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,children:c,classNames:r,styles:l,labels:i,withSavedFilters:s=!0,onClear:p,onSave:d,onCancel:g,onApply:m,onClose:v,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:b,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I,...P},M){return To(xI,{value:{selectedSavedFilter:t,savedFilters:o,isFiltersFetching:n,classNames:r,styles:l,labels:eR(PI,i),withSavedFilters:s,onClear:p,onSave:d,onCancel:g,onApply:m,onClose:v,filterDateFormatter:y,onFilterCategoryChange:u,onFilterDelete:b,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I},children:To(nR,{...P,ref:M,children:c})})}),nR=wI(function({children:t,...o},n){let{handleCloseSaveFilter:c,isSaveFiltersStep:r,selectedSavedFilter:l,savedFilters:i,isFiltersFetching:s,classNames:p,styles:d,labels:g,withSavedFilters:m=!0,onClear:v,onFilterCategoryChange:y,onFilterSelect:u}=tR(st);return To(G0,{footer:To(jb,{}),headerCloseBtn:To(ee,{onClick:()=>{v?.(),u?.(void 0)},leftIcon:To(ct,{}),variant:"secondary",...p?.clearBtn,...d?.clearBtn,children:g?.clear}),classNames:{...p,content:SI("cleen-space-y-4",p?.content),footer:SI("cleen-justify-between",p?.footer)},onClose:c,ref:n,...o,title:r?g?.saveStep?.title:o.title,subtitle:r?g?.saveStep?.subtitle:o.subtitle,children:r?To(CI,{}):aR(rR,{children:[m&&To(bI,{filters:i,selectedSavedFilter:l,onFilterCategoryChange:y,isFiltersFetching:s}),t]})})});import{cn as gr}from"@cleen/ui-core";import{forwardRef as lR}from"react";import{jsx as Fi,jsxs as MI}from"react/jsx-runtime";var kI=lR(({title:e,titleTooltip:t,subtitle:o,required:n,labelProps:c,children:r,className:l,classNames:i,style:s,styles:p,...d},g)=>Fi("div",{ref:g,className:gr("cleen",l),style:{...s,width:"100%"},...d,children:MI("div",{className:gr("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:p?.container,children:[MI("div",{className:gr("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:p?.titleColumn,children:[Fi(ae,{...c,required:n,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:gr("cleen-truncate",i?.title?.classNames?.label)},...p?.title,children:e}),o&&Fi("div",{className:gr("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-w-full cleen-font-normal cleen-text-neutral-600 cleen-text-sm",i?.subtitle),style:p?.subtitle,children:o})]}),Fi("div",{className:gr("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:p?.controlsRow,children:r})]})}));kI.displayName="FormGroup";import{cn as Le,useDebounce as cR,useOutsideClick as iR,usePositionClose as sR,ZIndex as pR}from"@cleen/ui-core";import{useEffect as Ai,useMemo as f1,useRef as h1,useState as bt}from"react";import{createPortal as dR}from"react-dom";import{Fragment as fR,jsx as J,jsxs as Ye}from"react/jsx-runtime";function mR(e){return e!==null&&typeof e=="object"}function ze(e,t){if(mR(e)&&t in e)return e[t]}function TI(e,t){let o=ze(e,t);return Array.isArray(o)?o:[]}function BI(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 uR=({position:e="bottom-right",labels:t,groups:o=[],selectedItemID:n=null,groupThreeDotMenuOptions:c=[],itemThreeDotMenuOptions:r=[],refetchData:l,onGroupSave:i,onItemSave:s,onGroupThreeDotMenuClick:p,onItemThreeDotMenuClick:d,onSearchChange:g,onItemSelect:m,groupIDKey:v,groupTitleKey:y,itemsKey:u,itemIDKey:b,itemGroupIDKey:C,itemTitleKey:x,itemSubtitleKey:I,newValueMinLength:P=2,isLoading:M=!1,isGroupSaving:A=!1,isItemSaving:B=!1,selectedColor:L="rgb(var(--cleen-primary-100))",hasFiltering:D=!0,zIndex:S=pR.POPOVER,className:N,classNames:w,style:F,styles:R})=>{let[E,G]=bt(!1),[T,k]=bt(!1),[z,U]=bt(!1),[O,_]=bt(!1),[X,H]=bt(null),[V,q]=bt(null),[$,K]=bt(""),[pe,fe]=bt(""),[me,$e]=bt(null),Pe=h1(void 0),[j,ce]=bt(""),[tt]=cR(j,500),[We,Be]=bt(""),De=h1(null),Ve=h1(null),{positionStyles:Q,isMounted:xe}=sR({triggerRef:De,targetRef:Ve,position:e,isOpen:E,offset:10});iR({refs:[Ve],handler:()=>G(!1),enabled:E});let Re=f1(()=>o??[],[o]),ge=f1(()=>{let W=new Map;for(let Z of Re){let se=ze(Z,v);se!=null&&W.set(se,TI(Z,u))}return W},[Re,v,u]),qe=f1(()=>{let W=[];return X==null?W=Array.from(ge?.values()).flat():W=ge?.get(X)??[],D&&We.trim()!==""&&(W=W.filter(Z=>{let se=String(ze(Z,x)??""),Ne=I?String(ze(Z,I)??""):"";return se.toLowerCase().includes(We?.toLowerCase()??"")||Ne.toLowerCase().includes(We?.toLowerCase()??"")})),W},[X,ge,We,x,I,D]);Ai(()=>{let W=Pe.current!==n;if(Pe.current=n,n==null){W&&(q(null),H(null));return}let se=Array.from(ge?.values())?.flat()?.find(Ne=>ze(Ne,b)===n);if(se){let Ne=ze(se,C)??null;q(se),H(Ne)}else W&&q(null)},[n,ge,b,C]),Ai(()=>{if(me==null)return;let Z=Array.from(ge?.values())?.flat()?.find(Ne=>ze(Ne,b)===me);if(!Z)return;let se=ze(Z,C);H(typeof se=="string"||typeof se=="number"?se:null),q(Z),$e(null),m?.(Z)},[me,ge,b,C,m]),Ai(()=>{g&&g(tt??"")},[tt,g]),Ai(()=>{E||(k(!1),U(!1),K(""),fe(""))},[E]);let ot=W=>{W===X?(H(null),q(null),m?.(null)):(q(null),H(W),m?.(null))},_r=W=>{let Z=ze(W,C);H(typeof Z=="string"||typeof Z=="number"?Z:null),q(W),m?.(W),G(!1)};async function On(){if(!i)return;let W={[y]:$};try{let Z=await i(W);if(Z?.success){k(!1),K(""),l&&await l();let se=BI(Z,v);se!=null&&(H(se),q(null),m?.(null))}}catch{}}async function oe(){if(!s)return;let W={[x]:pe,...X!=null?{[C]:X}:{}};try{let Z=await s(W);Z?.success&&(U(!1),fe(""),$e(BI(Z,b)),l&&await l())}catch{}}return J("div",{className:Le("cleen",N),style:F,children:Ye("div",{ref:De,className:Le("cleen-relative cleen-w-full cleen-cursor-pointer",w?.container),style:R?.container,onClick:W=>{W.stopPropagation(),G(!0)},children:[J(ye,{placeholder:t?.inputPlaceholder,rightIcon:J($t,{className:Le("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!E})}),value:j,onChange:W=>{H(null),q(null),ce(W.target.value)},classNames:{input:E?"":"cleen-cursor-pointer"},className:w?.input,style:R?.input}),E&&dR(J("div",{className:"cleen",children:Ye("div",{ref:Ve,className:Le("cleen-overflow-hidden cleen-flex cleen-items-start cleen-justify-start cleen-w-[500px] cleen-h-[344px] cleen-bg-surface cleen-border cleen-border-border cleen-rounded-lg cleen-shadow-xl cleen-cursor-default","cleen-absolute",{"cleen-opacity-0":!xe},w?.columnsContainer),style:{zIndex:S,top:`${Q.top}px`,left:`${Q.left}px`,...R?.columnsContainer},children:[Ye("div",{className:"cleen-w-1/2 cleen-h-full",children:[J("div",{className:Le("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",w?.leftColumn),style:R?.leftColumn,children:M?J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:J(re,{size:"sm"})}):o?.map((W,Z)=>{let se=ze(W,v),Ne=se===X,_n=String(ze(W,y)??""),zr=TI(W,u)?.length??0;return Ye("div",{className:Le("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-10 cleen-cursor-pointer cleen-transition-colors hover:cleen-bg-neutral-50",w?.groupItem),style:{...R?.groupItem||{},...Ne?{backgroundColor:L}:{}},onClick:be=>{be.stopPropagation(),be.preventDefault(),ot(se??null)},children:[Ye("div",{className:Le("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",c?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[J("span",{className:Le("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",w?.groupItemTitle),style:R?.groupItemTitle,children:_n}),J(we,{color:"lighter-blue",label:zr})]}),c?.length>0&&J("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:be=>{be.stopPropagation(),p?.(W)},children:J(mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:c?.map(be=>{let Ho=be?.disabledOptionCallback?.(W);return{...be,type:"button",label:J("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:be?.label}),onClick:()=>{Ho||be?.onClick(W)},disabled:Ho}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-surface cleen-rounded-md",children:J(uo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${Z}-${String(se??Z)}`)})}),J(gt,{isHorizontal:!0}),T?Ye("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[J(ye,{leftIcon:J(vo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:$,onChange:W=>K(W.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?A?J(re,{}):$?.length>P?J(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{On()},classNames:{container:"cleen-w-max cleen-h-7"}}):J("div",{}):J("div",{})})]}):Ye("div",{className:Le("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer cleen-transition-colors hover:cleen-bg-neutral-50",w?.newGroupButton),style:R?.newGroupButton,onClick:()=>k(!0),children:[J(vo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),J("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),J(gt,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),Ye("div",{className:"cleen-w-1/2 cleen-h-full",children:[Ye("div",{className:Le("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",w?.rightColumn),style:R?.rightColumn,children:[D&&Ye(fR,{children:[J(ye,{leftIcon:J(Xt,{className:"cleen-size-5"}),className:Le("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!O}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:W=>Be(W.target.value),placeholder:t?.filterPlaceholder}),J("button",{type:"button",className:Le("cleen-w-full cleen-py-0.5 cleen-transition-all cleen-bg-neutral-50 hover:cleen-bg-muted cleen-border-t cleen-border-border",{"-cleen-mt-10 cleen-border-transparent":!O}),onClick:()=>_(W=>!W),children:J(ea,{className:Le("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",O?"-cleen-rotate-90":"cleen-rotate-90")})})]}),M?J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:J(re,{size:"sm"})}):qe?.map((W,Z)=>{let se=ze(W,b),Ne=V&&ze(V,b)===se,_n=String(ze(W,x)??""),zr=I?String(ze(W,I)??""):"";return Ye("div",{className:Le("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-[60px] cleen-cursor-pointer hover:cleen-bg-neutral-50 cleen-transition-colors",w?.item),style:{...R?.item||{},...Ne?{backgroundColor:L}:{}},onClick:be=>{be.stopPropagation(),be.preventDefault(),_r(W)},children:[Ye("div",{className:Le("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",r?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[J("span",{className:Le("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",w?.itemTitle),style:R?.itemTitle,children:_n}),J("span",{className:Le("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",w?.itemSubtitle),style:R?.itemSubtitle,children:zr})]}),r?.length>0&&J("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:be=>{be.stopPropagation(),d?.(W)},children:J(mn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:r?.map(be=>{let Ho=be?.disabledOptionCallback?.(W);return{...be,type:"button",label:J("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:be?.label}),onClick:()=>{Ho||be?.onClick(W)},disabled:Ho}}),classNames:{menu:"cleen-min-w-max"},className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-5 cleen-h-5 cleen-bg-surface cleen-rounded-md",children:J(uo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${Z}-${String(se??Z)}`)})]}),J(gt,{isHorizontal:!0}),z?Ye("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[J(ye,{leftIcon:J(vo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:pe,onChange:W=>fe(W.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),J("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:s?B?J(re,{}):pe?.length>P?J(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{oe()},classNames:{container:"cleen-w-max cleen-h-7"}}):J("div",{}):J("div",{})})]}):Ye("div",{className:Le("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer hover:cleen-bg-primary/10",w?.newItemButton),style:R?.newItemButton,onClick:()=>U(!0),children:[J(vo,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),J("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!E&&V&&J("div",{className:"cleen-absolute cleen-top-1.5 cleen-left-1 cleen-flex cleen-items-center cleen-justify-start cleen-pl-2.5 cleen-w-[calc(100%-40px)] cleen-h-8 cleen-bg-surface",onClick:()=>G(!0),children:J("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(ze(V,x)??"")})})]})})};import{cn as Oe,useDebounce as hR,useOutsideClick as gR,usePositionClose as yR,ZIndex as vR}from"@cleen/ui-core";import{forwardRef as bR,useEffect as LI,useId as IR,useMemo as EI,useRef as Oi,useState as _i}from"react";import{createPortal as CR}from"react-dom";import{cn as hn}from"@cleen/ui-core";import{jsx as Bo,jsxs as RI}from"react/jsx-runtime";var NI=({options:e,selection:t,classNames:o,styles:n,onChoose:c,displaySubtextInline:r=!0,activeIndex:l=-1,getOptionId:i,onActiveIndexChange:s,...p})=>Bo("div",{...p,children:Bo("div",{className:hn("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",o?.container),style:n?.container,children:e?.map((d,g)=>{let m=t?.some(y=>y?.value===d?.value),v=g===l;return RI("li",{id:i?.(g),role:"option","aria-selected":m,className:hn("cleen-flex cleen-justify-between cleen-items-center hover:cleen-bg-muted cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-cursor-pointer cleen-select-none",{"cleen-bg-muted hover:cleen-bg-neutral-200":m,"cleen-bg-muted":v},o?.item),style:n?.item,onMouseEnter:()=>s?.(g),onClick:()=>c?.(d,m),children:[RI("div",{className:hn("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&&Bo(we,{color:"gray",label:d?.leadingBadgeValue}),d?.icon,d?.label&&Bo("span",{className:hn("cleen-font-medium cleen-text-foreground cleen-text-base",!r&&"cleen-w-full cleen-truncate"),children:d?.label}),d?.preSublabel&&Bo("span",{className:hn("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!r&&"cleen-w-full cleen-truncate"),children:d?.preSublabel}),d?.sublabel&&Bo("span",{className:hn("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!r&&"cleen-w-full cleen-truncate"),children:d?.sublabel})]}),m&&Bo("div",{className:o?.checkContainer,style:n?.checkContainer,children:Bo(Ut,{className:hn("cleen-text-primary",o?.check),style:n?.check})})]},d.value)})})});import{Fragment as xR,jsx as ke,jsxs as zi}from"react/jsx-runtime";var PR=bR(function({id:t,name:o,label:n,labelTooltip:c,labels:r,options:l,value:i,displaySelected:s="under",isLoading:p=!1,required:d,internalFiltering:g=!1,closeOnReachingLimit:m=!0,limit:v,getCustomBadgeLabel:y,displaySubtextInline:u=!0,selectedBadgeColor:b="blue",debounceDelay:C=0,characterThreshold:x=2,disabled:I=!1,isNoDataVisibleOnCreateNew:P=!0,zIndex:M=vR.DROPDOWN,className:A,classNames:B,style:L,styles:D,infoLabels:S,menuDetachedFromPortal:N,onInputChange:w,onChange:F,onCreateNewOption:R,createNewOptionLabelString:E,onLookupBlur:G,triggerBlurOnlyWhenOpen:T=!0,menuRef:k,...z},U){let[O,_]=_i(!1),X=Oi(null),H=Oi(null),V=k??X,{positionStyles:q,isMounted:$}=yR({triggerRef:H,targetRef:V,position:"bottom-left",isOpen:O,offset:4});gR({refs:[V,H],handler:()=>{_(!1),G?.()},enabled:T?O:!0});let[K,pe]=_i(""),fe=hR(K,C),me=C?fe:K,$e=Oi(me),Pe=Oi(!1),j=()=>{Pe.current=!1,pe("")},ce=Array.isArray(i),[tt,We]=_i([]),Be=ce?i:tt,De=["inside","inside-badge"].includes(s),Ve=(oe,W=!1)=>{if(W){let se=Be.filter(Ne=>Ne.value!==oe.value);ce||We(se),F?.(se);return}let Z;if(v===1)Z=[oe];else{if(v&&Be.length>=v)return;Z=[...Be,oe]}ce||We(Z),F?.(Z),m&&v&&Z.length>=v&&(j(),_(!1))},Q=EI(()=>g?l?.filter(oe=>oe?.label?.match(new RegExp(me,"i"))):l,[l,me,g]),xe=EI(()=>E&&R&&!p&&K?.length>0&&!Q?.some(oe=>oe?.label===K)?typeof E=="function"?E(K):E:null,[E,R,p,K,Q]);LI(()=>{if($e.current!==me)if($e.current=me,me.length<x)_(!1);else{w?.(me);let oe=!!H.current?.contains(document.activeElement);Pe.current&&oe&&_(!0)}},[me,w,x]);let Re=IR(),ge=oe=>`${Re}-option-${oe}`,[qe,ot]=_i(-1);LI(()=>{ot(-1)},[me,O]);let _r=oe=>{let W=Q?.length??0;switch(oe.key){case"ArrowDown":if(!W)return;if(oe.preventDefault(),!O){_(!0),ot(0);return}ot(Z=>(Z+1)%W);break;case"ArrowUp":if(!W)return;if(oe.preventDefault(),!O){_(!0),ot(W-1);return}ot(Z=>(Z-1+W)%W);break;case"Home":if(!O||!W)return;oe.preventDefault(),ot(0);break;case"End":if(!O||!W)return;oe.preventDefault(),ot(W-1);break;case"Enter":{if(!O||qe<0)return;let Z=Q?.[qe];if(!Z)return;oe.preventDefault();let se=Be?.some(Ne=>Ne.value===Z.value);Ve(Z,se);break}case"Escape":O&&(oe.preventDefault(),_(!1));break;default:break}},On=zi("ul",{id:Re,role:"listbox",className:Oe("cleen-flex cleen-flex-col cleen-gap-0.5 cleen-bg-background cleen-shadow-[0px_12px_16px_-4px_rgba(var(--cleen-neutral-100))] cleen-px-1.5 cleen-pt-1 cleen-pb-0.5 cleen-border cleen-border-border cleen-rounded-lg",B?.menu?.container),style:D?.menu?.container,children:[p?ke(re,{className:Oe("cleen-py-3",B?.menu?.loader),style:D?.menu?.loader}):!Q||Q?.length===0?!!r?.noDataFound&&(P||!xe)&&ke("div",{className:Oe("cleen-flex cleen-justify-center cleen-items-center cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-text-center cleen-pointer-events-none cleen-select-none",B?.menu?.noDataFound),style:D?.menu?.noDataFound,children:r?.noDataFound}):ke(NI,{options:Q,selection:Be,onChoose:Ve,displaySubtextInline:u,activeIndex:qe,getOptionId:ge,onActiveIndexChange:ot,...B?.menu?.list,...D?.menu?.list}),xe&&zi("div",{className:Oe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",B?.createNewOption?.container),style:D?.createNewOption?.container,children:[ke(gt,{...B?.createNewOption?.divider,...D?.createNewOption?.divider}),ke("span",{className:Oe("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",B?.createNewOption?.value),style:D?.createNewOption?.value,onClick:()=>{let oe=R?.(K);typeof oe=="boolean"&&!oe||(j(),_(!1))},children:xe})]})]});return ke("div",{className:Oe("cleen",A),style:L,children:zi("div",{className:Oe("cleen-flex cleen-flex-col cleen-w-full",B?.container),style:D?.container,children:[n&&ke(ae,{htmlFor:t||o,required:d,tooltip:c,className:Oe("cleen-mb-1.5",B?.label?.className),classNames:B?.label?.classNames,...D?.label,children:n}),ke("div",{ref:H,className:Oe("cleen-relative cleen-flex cleen-items-center",B?.input?.container),style:D?.input?.container,children:ke(ye,{id:t||o,type:"search",autoFocus:!1,autoComplete:"off",className:Oe("cleen-w-full",B?.input?.component?.className),classNames:{...B?.input?.component?.classNames,inputContainer:Oe({"cleen-flex-wrap":De},B?.input?.component?.classNames?.inputContainer),input:Oe({"cleen-pl-2":De},B?.input?.component?.classNames?.input),leftIconContainer:Oe({"cleen-pr-0":De},B?.input?.component?.classNames?.leftIconContainer)},...D?.input?.component,leftIcon:zi(xR,{children:[ke(Xt,{}),De&&(Be||[])?.length>0&&ke("div",{className:Oe("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{_(!O)},children:s==="inside-badge"?Be?.map(oe=>ke(we,{label:oe?.label,color:"blue",variant:"semiRounded"},oe.value)):ke("span",{className:Oe("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:Be?.map(oe=>oe?.label).join(", ")})})," "]}),onFocus:()=>{me.length>=x&&K.length>=x&&_(!0)},value:K,onChange:oe=>{Pe.current=!0,pe(oe.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":O,"aria-controls":O?Re:void 0,"aria-activedescendant":O&&qe>=0?ge(qe):void 0,onKeyDown:_r,ref:U,required:d,disabled:I,...z})}),O&&(N?ke("div",{ref:V,children:On}):CR(ke("div",{className:"cleen",children:ke("div",{ref:V,className:Oe("cleen-absolute",{"cleen-opacity-0":!$}),style:{zIndex:M,top:`${q.top}px`,left:`${q.left}px`,minWidth:H.current?.offsetWidth?`${H.current.offsetWidth}px`:void 0},children:On})}),document.body)),s==="under"&&Be?.length>0&&ke("span",{className:Oe("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",B?.pillbadge?.container),style:D?.pillbadge?.container,children:Be?.map(oe=>ke(we,{label:y?y(oe):oe?.label,color:b,removeable:!I,onRemoveClicked:()=>{if(I)return;let W=Be?.filter(Z=>Z?.value!==oe?.value);ce||We(W),F?.(W)},...B?.pillbadge?.component,...D?.pillbadge?.component},oe.value))}),(S?.errorMessage||S?.infoMessage||S?.subtitle)&&ke(ne,{...S})]})})});import{cn as ue}from"@cleen/ui-core";import{forwardRef as SR}from"react";import wR from"react-markdown";import MR from"remark-gfm";import{jsx as de}from"react/jsx-runtime";var kR=SR(function({components:t,children:o,className:n,classNames:c,style:r,styles:l,...i},s){let p={h1:({children:d})=>de("h1",{className:ue("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:d}),h2:({children:d})=>de("h2",{className:ue("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:d}),h3:({children:d})=>de("h3",{className:ue("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:d}),h4:({children:d})=>de("h4",{className:ue("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:d}),h5:({children:d})=>de("h5",{className:ue("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),h6:({children:d})=>de("h6",{className:ue("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:d}),p:({children:d})=>de("p",{className:ue("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:d}),a:({href:d,children:g})=>de("a",{href:d,className:ue("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:g}),ul:({children:d})=>de("ul",{className:ue("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),ol:({children:d})=>de("ol",{className:ue("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:d}),li:({children:d})=>de("li",{className:ue("cleen-mb-1"),children:d}),blockquote:({children:d})=>de("blockquote",{className:ue("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-neutral-700 cleen-mb-4"),children:d}),code:({className:d,children:g,...m})=>d?de("code",{className:ue("cleen-font-mono cleen-text-sm"),...m,children:g}):de("code",{className:ue("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...m,children:g}),pre:({children:d})=>de("pre",{className:ue("cleen-bg-muted dark:cleen-bg-neutral-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:d}),hr:()=>de("hr",{className:ue("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:d,alt:g})=>de("img",{src:d,alt:g,className:ue("cleen-max-w-full cleen-rounded")}),strong:({children:d})=>de("strong",{className:ue("cleen-font-semibold"),children:d}),em:({children:d})=>de("em",{className:ue("cleen-italic"),children:d}),table:({children:d})=>de("div",{className:ue("cleen-overflow-x-auto cleen-mb-4"),children:de("table",{className:ue("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:d})}),thead:({children:d})=>de("thead",{className:ue("cleen-border-b cleen-border-border"),children:d}),th:({children:d})=>de("th",{className:ue("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:d}),td:({children:d})=>de("td",{className:ue("cleen-p-2 cleen-border-b cleen-border-border"),children:d}),input:({type:d,checked:g,disabled:m})=>d==="checkbox"?de("input",{type:"checkbox",checked:g,disabled:m,readOnly:!0,className:ue("cleen-mr-2 cleen-align-middle")}):de("input",{type:d})};return de("div",{ref:s,className:ue("cleen",n,c?.container),style:{...r,...l?.container},...i,children:de(wR,{...i,remarkPlugins:[MR],components:{...p,...t},children:o})})});import{cn as gn,useBodyScrollLock as TR,useCleenOverlays as DI,ZIndex as BR}from"@cleen/ui-core";import{forwardRef as RR,useCallback as NR,useEffect as g1,useId as LR,useRef as ER,useState as FI}from"react";import{createPortal as DR}from"react-dom";import{jsx as wl,jsxs as OI}from"react/jsx-runtime";var FR={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},AI=300,AR=RR(function({isOpen:t=!1,onClose:o,closeOnOverlayClick:n=!0,closeButtonIcon:c=wl(He,{className:"cleen-size-5"}),header:r,footer:l,zIndex:i=BR.MODAL,size:s="md",color:p,p:d,gap:g,radius:m=16,className:v,classNames:y,style:u,styles:b,children:C,...x},I){let[P,M]=FI(t),[A,B]=FI(t),L=ER(null),D=LR(),{addOverlay:S,removeOverlay:N}=DI(),w=NR(()=>{M(!1),setTimeout(()=>o?.(),AI)},[o]);return g1(()=>{if(t){B(!0);let F=setTimeout(()=>M(!0),1);return()=>clearTimeout(F)}else{M(!1);let F=setTimeout(()=>B(!1),AI);return()=>clearTimeout(F)}},[t]),g1(()=>{if(t)return S(D),()=>N(D)},[S,N,t,D]),g1(()=>{let F=R=>{let{overlays:E}=DI.getState();R.key==="Escape"&&E[E.length-1]===D&&w()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[w,D]),TR(A),A?DR(OI("div",{className:gn("cleen",v),style:u,ref:I,...x,children:[wl("div",{className:gn("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",y?.overlay),style:{zIndex:i,...b?.overlay},onClick:()=>{n&&w()},"aria-hidden":"true"}),wl("div",{className:gn("cleen-fixed cleen-inset-0 cleen-flex cleen-justify-center cleen-items-center cleen-p-4 cleen-overflow-auto","cleen-transition-all cleen-duration-300 cleen-ease-in-out","cleen-pointer-events-none",P?"cleen-opacity-100 cleen-scale-100":"cleen-opacity-0 cleen-scale-95",y?.container),style:{zIndex:i,...b?.container},"aria-modal":"true",role:"dialog",children:OI(he,{header:r,footer:l,color:p,p:d,gap:g,radius:m,className:gn("cleen-relative cleen-shadow-xl cleen-w-full cleen-max-w-lg cleen-rounded-lg cleen-pointer-events-auto",y?.modal?.className),style:{maxWidth:typeof s=="number"?s:FR[s],...b?.modal?.style},classNames:{...y?.modal?.classNames,container:gn("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",y?.modal?.classNames?.container),childrenContainer:gn("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",y?.modal?.classNames?.childrenContainer)},styles:b?.modal?.styles,ref:L,children:[C,c&&wl("div",{className:gn("cleen-top-3 cleen-right-3 cleen-absolute"),children:wl(ee,{variant:"borderless",onClick:w,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:c})})]})})]}),document.body):null});import{Fragment as OR,jsxs as _I}from"react/jsx-runtime";var zI={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}},Vi={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},VI=3,HI=180,UI=15e3,yr="general",Ml={[yr]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},GI={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"},$I={"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"},kl={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=>_I(OR,{children:[_I("b",{className:"cleen-text-foreground",children:["+",e," more"]})," behind this one"]}),overflow:e=>`${e} more`,listTitle:e=>`${e} notifications`,groupTitle:(e,t)=>`${e} ${t.pluralLabel}`,review:e=>`Review ${e.pluralLabel}`,needAction:e=>`${e} need your action`},Qe="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var y1={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},WI=({exitDuration:e=HI}={})=>{let t=y1,o=new Set,n=new Map,c=new Map,r=0,l=S=>{t={...t,...S},o.forEach(N=>N())},i=S=>{let N=n.get(S);!N||N.handle||t.paused||(N.startedAt=Date.now(),N.handle=setTimeout(()=>b(S),N.remaining))},s=S=>{let N=n.get(S);N?.handle&&(clearTimeout(N.handle),N.remaining=Math.max(0,N.remaining-(Date.now()-(N.startedAt??Date.now()))),N.handle=null,N.startedAt=null)},p=S=>{let N=n.get(S);N?.handle&&clearTimeout(N.handle),n.delete(S)},d=S=>{p(S.id),!(S.priority!=="normal"||S.duration===!1||S.duration<=0)&&(n.set(S.id,{duration:S.duration,remaining:S.duration,startedAt:null,handle:null,revision:++r}),i(S.id))},g=S=>{let N=c.get(S);N&&(c.delete(S),N.ids.delete(S),N.ids.size||clearTimeout(N.handle))},m=S=>{S.forEach(F=>c.delete(F));let N=t.toasts.filter(F=>!S.includes(F.id)),w=N.some(F=>!F.leaving);l({toasts:N,...!w&&{ui:y1.ui}})},v=S=>{g(S.id);let N=t.toasts.some(w=>w.id===S.id);return d(S),l({toasts:N?t.toasts.map(w=>w.id===S.id?S:w):[...t.toasts,S]}),S.id},y=(S,N)=>{let w=t.toasts.find(R=>R.id===S);if(!w||w.leaving)return;let F={...w,...N};("priority"in N||"duration"in N)&&d(F),l({toasts:t.toasts.map(R=>R.id===S?F:R)})},u=S=>{let N=t.toasts.filter(R=>S.includes(R.id)&&!R.leaving);if(!N.length)return;N.forEach(R=>p(R.id));let w=N.filter(R=>R.animationType==="none"||e<=0).map(R=>R.id),F=N.filter(R=>!w.includes(R.id)).map(R=>R.id);if(F.length){let R=t.toasts.filter(T=>!T.leaving).length;l({toasts:t.toasts.map(T=>F.includes(T.id)?{...T,leaving:!0,leavingFromCount:R}:T)});let E=new Set(F),G=setTimeout(()=>m([...E]),e);F.forEach(T=>c.set(T,{handle:G,ids:E}))}w.length&&m(w)},b=S=>u([S]);return{add:v,update:y,dismiss:b,dismissMany:u,clear:()=>u(t.toasts.map(S=>S.id)),pauseAll:()=>{t.paused||(n.forEach((S,N)=>s(N)),l({paused:!0}))},resumeAll:()=>{t.paused&&(l({paused:!1}),n.forEach((S,N)=>i(N)))},setExpanded:S=>l({ui:{...t.ui,expanded:S}}),toggleGroup:S=>{let{expandedGroups:N}=t.ui;l({ui:{...t.ui,expandedGroups:N.includes(S)?N.filter(w=>w!==S):[...N,S]}})},resetUi:()=>l({ui:y1.ui}),getTimer:S=>{let N=n.get(S);if(!N)return;let w=N.startedAt?Date.now()-N.startedAt:0;return{duration:N.duration,remaining:Math.max(0,N.remaining-w),revision:N.revision}},subscribe:S=>(o.add(S),()=>{o.delete(S)}),getSnapshot:()=>t}},le=WI();var _R=0,qI=({id:e,variant:t="default",priority:o,actions:n,duration:c,closeButton:r=!0,hideProgressBar:l,animationType:i="slide",...s})=>{let p=zI[t];return le.add({...s,id:e??`cleen-notification-${++_R}`,variant:t,actions:n,priority:o??(n?.length?"important":"normal"),duration:c??p.duration,closeButton:r,progressBar:l===void 0?p.progressBar:!l,animationType:i,createdAt:Date.now()})},zR=(e,{hideProgressBar:t,...o})=>le.update(e,{...o,...t!==void 0&&{progressBar:!t}}),yn={show:qI,update:zR,dismiss:le.dismiss,dismissMany:le.dismissMany,clear:le.clear};import{useSyncExternalStore as VR}from"react";var Hi=()=>VR(le.subscribe,le.getSnapshot,le.getSnapshot);import{useMemo as HR}from"react";var UR=()=>{let{toasts:e,paused:t}=Hi();return{toasts:HR(()=>e.filter(n=>!n.leaving),[e]),paused:t,show:yn.show,update:yn.update,dismiss:yn.dismiss,dismissMany:yn.dismissMany,clear:yn.clear}};var XI={critical:0,important:1,normal:2},v1=e=>e.filter(t=>!t.leaving),Ui=e=>[...e].reverse(),YI=e=>[...e].sort((t,o)=>XI[t.priority]-XI[o.priority]),vr=e=>!!e.actions?.length&&e.priority!=="normal",QI=e=>e.category??yr,vn=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),b1=e=>e.map(vn),KI=(e,t)=>(e.leavingFromCount??0)>t,br=(e,t,o)=>{let n=v1(e);if(n.length>t)return o(n);let c=e.filter(r=>r.leaving&&KI(r,t));return!n.length&&c.length>t?o(c).map(r=>({...r,exiting:!0})):b1(e.filter(r=>!r.leaving||!KI(r,t)))};var I1=(e,t,o)=>br(e,o,n=>{let c=YI(Ui(n)),r=c.filter(u=>u.priority==="critical"),l=c.filter(u=>u.priority!=="critical"),i=new Map;l.forEach(u=>{let b=QI(u);i.set(b,[...i.get(b)??[],u])});let s=u=>Number(i.get(u).some(vr)),p=u=>i.get(u).length,d=[...i.keys()].sort((u,b)=>s(b)-s(u)||p(b)-p(u)),g=Math.max(0,o-Math.min(r.length,1)),m=d.slice(0,g),v=[...r.slice(1),...d.slice(g).flatMap(u=>i.get(u))],y=r.slice(0,1).map(vn);return m.forEach(u=>{let b=i.get(u);y.push(b.length===1?vn(b[0]):{type:"group",key:`group-${u}`,category:u,toasts:b,expanded:t.expandedGroups.includes(u)})}),y.push({type:"footer",key:"footer",overflow:v,toasts:n}),y});var C1=(e,t,o=1/0)=>br(e,o,n=>[...b1(n),{type:"footer",key:"footer",overflow:[],toasts:n}]);var P1=(e,t,o)=>br(e,o,n=>{let c=Ui(n);if(t.expanded)return[{type:"list",key:"list",toasts:c}];let r=c.filter(d=>d.priority==="critical"),l=c.filter(d=>d.priority!=="critical"),[i,...s]=l,p=r.map(vn);return i&&s.length?p.push({type:"deck",key:"deck",top:i,hidden:s}):i&&p.push(vn(i)),p});var ZI={list:C1,stack:P1,group:I1};import{createContext as GR,useContext as $R}from"react";var x1=GR({categories:Ml,labels:kl,hiddenElements:[],now:Date.now(),paused:!1}),ve=()=>$R(x1);import{cn as WR,getTimeAgoLabel as qR}from"@cleen/ui-core";var Y=(e,t,o,n)=>{let c=n?.classNames,r=n?.styles,l=e.styles?.[t]||r?.[t]?{...e.styles?.[t],...r?.[t]}:void 0;return{className:WR(o,e.classNames?.[t],c?.[t]),style:l,"data-slot":t}},Tt=({className:e,style:t,...o})=>({classNames:{container:e},styles:{container:t},...o}),Ir=(e,t)=>e.categories[t]??{...e.categories[yr],label:t,pluralLabel:t},Gi=(e,t,o)=>{let n=Math.floor(Math.max(0,t-e));return typeof o.timeAgo=="function"?o.timeAgo(n):qR(n,o?.timeAgoStamps)},JI=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 XR}from"@cleen/ui-core";import{jsx as jI}from"react/jsx-runtime";var $i=({toast:e})=>{let t=ve();if(t.hiddenElements.includes("badges"))return null;let o=e.priority==="critical";if(!o&&!vr(e))return null;let n=Y(t,"badge",void 0,e);return jI("span",{...Y(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:jI(we,{color:o?"red":"primary",variant:"full",label:o?t.labels.critical:t.labels.action,classNames:{container:XR("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 eC}from"@cleen/ui-core";import{Fragment as KR,jsx as Ro}from"react/jsx-runtime";var tC=({icon:e,tone:t="neutral",size:o="md",className:n,...c})=>{let r=o==="sm"?14:18;return Ro("span",{className:eC("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",GI[t],n),"aria-hidden":"true",...c,children:Ro(Se,{name:e,width:r,height:r})})},S1=({category:e,...t})=>{let o=ve(),n=Ir(o,e);return Ro(tC,{icon:n.icon,tone:n.tone,...t})},Wi=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return Ro(KR,{children:e.icon});if(e.category)return Ro(S1,{category:e.category,size:t});let o=Vi[e.variant];return o?Ro(tC,{icon:o.name,tone:o.tone,size:t}):null},bn=({icon:e,label:t,className:o,...n})=>Ro("button",{type:"button","aria-label":t,title:t,className:eC("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:Ro(Se,{name:e,width:14,height:14,strokeWidth:2})});import{cn as w1}from"@cleen/ui-core";import{Fragment as YR,jsx as Tl,jsxs as M1}from"react/jsx-runtime";var oC=({toast:e,children:t})=>{let o=ve(),n=e.title!==void 0&&e.title!==null,c=e.icon===void 0&&(!!e.category||!!Vi[e.variant]),r=Tl(Wi,{toast:e}),l=Tl($i,{toast:e});return M1(YR,{children:[(e.icon!==void 0||c||e.variant!=="default")&&Tl("span",{...Y(o,"icon",w1("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!c}),e),children:r}),M1("div",{...Y(o,"body",w1("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[n?M1("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[Tl("span",{...Y(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}),l]}):l,Tl("span",{...Y(o,"message",w1("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":n,"cleen-text-foreground":!n}),e),children:e.message}),t]})]})};import{useState as QR}from"react";import{jsx as ZR}from"react/jsx-runtime";var nC=({toast:e})=>{let t=ve(),[o]=QR(()=>le.getTimer(e.id));if(!o)return null;let n=Y(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 ZR("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 JR}from"@cleen/ui-core";import{jsx as Xi,jsxs as qi}from"react/jsx-runtime";var Ki=({toast:e,inDeck:t=!1})=>{let o=ve(),{labels:n,hiddenElements:c}=o,r=e.priority==="critical",l=!!e.actions?.length,i=()=>le.dismiss(e.id),s=g=>{g.key==="Escape"&&(g.stopPropagation(),i())},p=!!e.category&&!c.includes("meta"),d=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!c.includes("progressBar");return qi("div",{role:r?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||l?void 0:0,onKeyDown:s,...Y(o,"toast",JR("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)&&JI(e),e.className),e),children:[qi(oC,{toast:e,children:[p&&qi("span",{...Y(o,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[Ir(o,e.category).label," \xB7"," ",Gi(e.createdAt,o.now,n)]}),l&&qi("div",{...Y(o,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((g,m)=>{let v=Y(o,"action",Qe,e);return Xi(ee,{variant:g.variant??(m?"secondary":"primary"),label:g.label,onClick:()=>{g.onClick?.(e),i()},...Tt(v)},`${g.label}-${m}`)}),Xi(ee,{variant:"secondary",label:n.dismiss,onClick:i,...Tt(Y(o,"dismissButton",Qe,e))})]})]}),e.closeButton&&Xi(bn,{icon:"X",label:n.close,onClick:i,...Y(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),d&&Xi(nC,{toast:e},le.getTimer(e.id)?.revision)]})};import{Fragment as jR,jsx as Cr,jsxs as Yi}from"react/jsx-runtime";var rC="cleen-pointer-events-none cleen-absolute cleen-rounded-b-xl cleen-border cleen-border-t-0 cleen-border-border cleen-bg-background cleen-shadow-lg",aC=({top:e,hidden:t})=>{let o=ve(),{labels:n}=o,c=[e.id,...t.map(r=>r.id)];return Yi(jR,{children:[Yi("div",{...Y(o,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[Cr(Ki,{toast:e,inDeck:!0}),Cr("span",{"aria-hidden":"true",...Y(o,"deckPeek",`${rC} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&Cr("span",{"aria-hidden":"true",...Y(o,"deckPeek",`${rC} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!o.hiddenElements.includes("deckMoreBar")&&Yi("div",{...Y(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:[Cr("span",{...Y(o,"deckMoreLabel"),children:n.moreBehind(t.length)}),Yi("span",{className:"cleen-flex cleen-gap-1",children:[Cr(ee,{variant:"secondary",label:n.showAll,"aria-expanded":!1,onClick:()=>le.setExpanded(!0),...Tt(Y(o,"deckShowAllButton",Qe))}),Cr(ee,{variant:"borderless",label:n.dismissAll,onClick:()=>le.dismissMany(c),...Tt(Y(o,"deckDismissAllButton",Qe))})]})]})]})};import{cn as eN}from"@cleen/ui-core";import{Fragment as tN,jsx as Qi,jsxs as oN}from"react/jsx-runtime";var lC=({count:e})=>{let t=ve(),{labels:o,onViewAll:n}=t;if(t.hiddenElements.includes("overflowPill"))return null;let c=oN(tN,{children:[o.overflow(e),Qi("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:Qi(Se,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),r=Y(t,"overflowPill",eN("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?Qi("button",{type:"button",onClick:()=>n(),...r,children:c}):Qi("span",{...r,children:c})};import{jsx as cC,jsxs as nN}from"react/jsx-runtime";var iC=({overflow:e,toasts:t})=>{let o=ve(),n=!o.hiddenElements.includes("dismissAllButton");return!n&&!e.length?null:nN("div",{...Y(o,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[n&&cC("button",{type:"button",onClick:()=>le.dismissMany(t.map(c=>c.id)),...Y(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&&cC(lC,{count:e.length})]})};import{jsx as In,jsxs as Zi}from"react/jsx-runtime";var Ji=({toast:e,onDismiss:t})=>{let o=ve(),n=e.actions?.[0],c=e.title!==void 0&&e.title!==null;return Zi("div",{...Y(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:[In("span",{...Y(o,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:In(Wi,{toast:e,size:"sm"})}),Zi("div",{...Y(o,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[Zi("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[In("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:c?e.title:e.message}),In($i,{toast:e})]}),c&&In("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),Zi("span",{...Y(o,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[n&&In(bn,{icon:"ArrowRight",label:n.label,onClick:()=>{n.onClick?.(e),t(e.id)}}),In(bn,{icon:"X",label:o.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as rN,useLayoutEffect as aN,useRef as lN}from"react";var cN='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',ji=(e,t,o)=>{let n=lN(!1);return rN(()=>{e.current?.focus({preventScroll:!0})},[e]),aN(()=>{let i=document.activeElement;n.current&&e.current&&(!i||i===document.body)&&e.current.focus({preventScroll:!0})},[e,t]),{onFocus:()=>{n.current=!0},onBlur:i=>{let s=i.relatedTarget;s&&!i.currentTarget.contains(s)&&(n.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),o();return}if(i.key!=="Tab"||!e.current)return;let s=[...e.current.querySelectorAll(cN)],p=s[0],d=s[s.length-1];!p||!d||(i.shiftKey&&document.activeElement===p?(i.preventDefault(),d.focus()):!i.shiftKey&&(document.activeElement===d||document.activeElement===e.current)&&(i.preventDefault(),p.focus()))}}};import{useRef as iN}from"react";import{Fragment as pN,jsx as Ue,jsxs as jt}from"react/jsx-runtime";var k1=3,sN=({toasts:e,onCollapse:t})=>{let o=iN(null),n=ji(o,e.length,t);return Ue("div",{ref:o,tabIndex:-1,...n,className:"cleen-max-h-[min(40vh,320px)] cleen-overflow-auto cleen-border-y cleen-border-border focus-visible:cleen-outline-none",children:e.map(c=>Ue(Ji,{toast:c,onDismiss:le.dismiss},c.id))})},sC=({category:e,toasts:t,expanded:o})=>{let n=ve(),{labels:c,onViewAll:r,hiddenElements:l}=n,i=Ir(n,e),s=t.map(v=>v.id),p=t.filter(vr).length,d=Math.min(...t.map(v=>v.createdAt)),g=()=>le.dismissMany(s),m=()=>le.toggleGroup(e);return jt("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:v=>{v.key==="Escape"&&!o&&(v.stopPropagation(),g())},...Y(n,"group","cleen-pointer-events-auto cleen-relative cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl motion-safe:cleen-animate-toast-in"),children:[jt("div",{...Y(n,"groupHeader","cleen-flex cleen-items-center cleen-gap-2.5 cleen-pb-2 cleen-pl-3 cleen-pr-10 cleen-pt-2.5"),children:[Ue(S1,{category:e,...Y(n,"groupIcon")}),jt("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[jt("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[Ue("span",{...Y(n,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:c.groupTitle(t.length,i)}),Ue("span",{...Y(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})]}),!l.includes("meta")&&jt("span",{...Y(n,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[p>0&&jt(pN,{children:[c.needAction(p)," \xB7 "]}),Gi(d,n.now,c)]})]})]}),o?Ue(sN,{toasts:t,onCollapse:m}):jt("div",{...Y(n,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,k1).map(v=>jt("div",{...Y(n,"groupPreviewLine","cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5 cleen-text-[12.5px] cleen-leading-[17px] cleen-text-foreground"),children:[Ue("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),Ue("span",{className:"cleen-min-w-0 cleen-truncate",children:v.title??v.message})]},v.id)),t.length>k1&&!l.includes("groupMore")&&Ue("span",{...Y(n,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:c.more(t.length-k1)})]}),jt("div",{...Y(n,"groupFooter","cleen-flex cleen-items-center cleen-gap-1.5 cleen-pb-2.5 cleen-pl-14 cleen-pr-3 cleen-pt-1.5"),children:[r&&Ue(ee,{variant:"primary",label:c.review(i),rightIcon:Ue(Se,{name:"ArrowRight",width:14,height:14}),onClick:()=>r(e),...Tt(Y(n,"groupReviewButton",Qe))}),Ue(ee,{variant:"secondary",label:o?c.collapse:c.expand,"aria-expanded":o,onClick:m,...Tt(Y(n,"groupToggleButton",Qe))}),Ue("span",{className:"cleen-flex-1"}),Ue(ee,{variant:"borderless",label:c.dismiss,onClick:g,...Tt(Y(n,"groupDismissButton",Qe))})]}),Ue(bn,{icon:"X",label:c.dismissGroup,onClick:g,...Y(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as dN}from"react";import{jsx as No,jsxs as es}from"react/jsx-runtime";var pC=({toasts:e})=>{let t=ve(),{labels:o,onViewAll:n}=t,c=dN(null),r=()=>le.setExpanded(!1),l=ji(c,e.length,r);return es("div",{ref:c,tabIndex:-1,role:"group","aria-label":o.region,...l,...Y(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:[es("div",{...Y(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:[es("span",{children:[o.listTitle(e.length)," "]}),No("span",{className:"cleen-flex-1"}),No(ee,{variant:"borderless",label:o.collapse,"aria-expanded":!0,leftIcon:No(Se,{name:"ChevronUp",width:14,height:14}),onClick:r,classNames:{container:Qe}})]}),No("div",{...Y(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>No(Ji,{toast:i,onDismiss:le.dismiss},i.id))}),es("div",{...Y(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&&No(ee,{variant:"secondary",label:o.openNotifications,onClick:()=>n(),classNames:{container:Qe}}),No("span",{className:"cleen-flex-1"}),No(ee,{variant:"secondary",label:o.dismissAll,onClick:()=>le.dismissMany(e.map(i=>i.id)),classNames:{container:Qe}})]})]})};import{useEffect as mN,useState as uN}from"react";var dC=e=>{let[t,o]=uN(()=>Date.now());return mN(()=>{if(!e)return;o(Date.now());let n=setInterval(()=>o(Date.now()),UI);return()=>clearInterval(n)},[e]),t};import{cn as B1}from"@cleen/ui-core";import{forwardRef as fN,useCallback as hN,useEffect as T1,useMemo as mC,useRef as uC}from"react";import{jsx as eo}from"react/jsx-runtime";var gN=e=>{switch(e.type){case"toast":return eo(Ki,{toast:e.toast},e.key);case"deck":return eo(aC,{top:e.top,hidden:e.hidden},e.key);case"list":return eo(pC,{toasts:e.toasts},e.key);case"group":return eo(sC,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return eo(iC,{overflow:e.overflow,toasts:e.toasts},e.key)}},yN=(e,t)=>eo("div",{"aria-hidden":"true",className:B1("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:gN(e)},e.key),vN=fN(function({layout:t="list",maxVisible:o=VI,position:n="bottom-right",categories:c,onViewAll:r,labels:l,classNames:i,styles:s,hiddenElements:p,className:d,style:g,...m},v){let y=Hi(),u=v1(y.toasts).length,b=dC(y.toasts.length>0),C=uC(null),x=uC(!1),I=mC(()=>ZI[t](y.toasts,y.ui,o),[t,y.toasts,y.ui,o]),P=mC(()=>({categories:{...Ml,...c},labels:{...kl,...l},classNames:i,styles:s,hiddenElements:p??[],onViewAll:r,now:b,paused:y.paused}),[c,l,i,s,p,r,b,y.paused]);T1(()=>{let{expanded:L,expandedGroups:D}=y.ui,S=y.toasts.some(N=>N.leaving);u<=o&&!S&&(L||D.length)&&le.resetUi()},[u,o,y.toasts,y.ui]);let M=hN(()=>{let L=document.activeElement,D=!!(L&&C.current?.contains(L))&&!!L?.matches(":focus-visible");x.current||D?le.pauseAll():le.resumeAll()},[]);T1(()=>{u||(x.current=!1),M()},[u,M]),T1(()=>{let L=D=>{x.current&&!C.current?.contains(D.target)&&(x.current=!1,M())};return document.addEventListener("pointermove",L,{passive:!0}),()=>document.removeEventListener("pointermove",L)},[M]);let A=L=>{x.current=L,M()},B=()=>requestAnimationFrame(M);return eo("div",{className:B1("cleen",d),style:g,ref:v,children:eo(x1.Provider,{value:P,children:eo("div",{role:"region","aria-live":"polite","aria-label":P.labels.region,ref:C,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),onFocus:B,onBlur:B,...Y(P,"region",B1("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",$I[n])),...m,children:I.map(L=>yN(L,n.endsWith("left")?"cleen-items-start":n.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as fC}from"@cleen/ui-core";import{forwardRef as bN,useState as IN}from"react";import{jsx as R1,jsxs as CN}from"react/jsx-runtime";var N1=bN(({totalPages:e,labels:t,onGoToPage:o,classNames:n,styles:c,...r},l)=>{let[i,s]=IN(""),p=()=>{let g=parseInt(i,10);isNaN(g)||(o?.(Math.min(Math.max(g,1),e)),s(""))},d=g=>{g.key==="Enter"?p():g.key==="Escape"&&s("")};return R1("div",{className:"cleen",...r,children:CN("div",{className:fC("cleen-flex cleen-items-center cleen-gap-2",n?.container),style:c?.container,children:[R1("span",{className:fC("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",n?.label),style:c?.label,children:t?.goToPage}),R1(ye,{ref:l,type:"number",min:1,max:e,value:i,onChange:g=>s(g.target.value),onKeyDown:d,...n?.input,...c?.input})]})})});import{cn as ts,useOutsideClick as PN,usePositionClose as xN}from"@cleen/ui-core";import{forwardRef as SN,useRef as hC,useState as gC}from"react";import{createPortal as wN}from"react-dom";import{jsx as Pr,jsxs as kN}from"react/jsx-runtime";var MN=[10,20,50,100],L1=SN(({pageSize:e,pageSizes:t=MN,labels:o,onPageSizeChange:n,classNames:c,styles:r,...l},i)=>{let[s,p]=gC(e??t?.[0]??void 0),[d,g]=gC(!1),m=hC(null),v=hC(null),{positionStyles:y,isMounted:u}=xN({triggerRef:m,targetRef:v,isOpen:d,position:"top-left"});return PN({refs:[m,v],handler:()=>g(!1),enabled:d}),Pr("div",{className:"cleen",ref:i,...l,children:kN("div",{className:ts("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",c?.container),style:r?.container,children:[Pr(Ie,{label:o?.itemsPerPage?.(s),classNames:{labelContainer:"cleen-min-w-max"},children:Pr("div",{className:ts("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",c?.trigger),style:r?.trigger,onClick:()=>g(b=>!b),ref:m,children:s})}),d&&wN(Pr("div",{className:"cleen",children:Pr("div",{ref:v,className:ts("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},c?.menu),style:{top:`${y.top}px`,left:`${y.left}px`,...r?.menu},children:t?.filter(b=>b!==s)?.map(b=>Pr("div",{className:ts("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",c?.menuItem),style:r?.menuItem,onClick:()=>{p(b),n?.(b),g(!1)},children:b},b))})}),document.body)]})})});var yC={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as Lo}from"@cleen/ui-core";import{forwardRef as TN,useCallback as os,useMemo as BN,useRef as RN}from"react";import{jsx as Ze,jsxs as LN}from"react/jsx-runtime";var NN=TN(({currentPage:e,totalPages:t,pageSize:o,pageSizes:n,hasGotoPage:c=!0,hasPageSizeSelector:r=!0,onPageChange:l,onPageSizeChange:i,labels:s=yC,classNames:p,styles:d,...g},m)=>{let v=RN(null),y=os(()=>{e<t&&l?.(e+1)},[e,t,l]),u=os(()=>{e>1&&l?.(e-1)},[e,l]),b=os(I=>Ze("span",{className:Lo("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-cursor-pointer",I===e&&"cleen-bg-muted hover:cleen-bg-neutral-200",p?.pageButton,I===e?p?.activePageButton:""),style:{...d?.pageButton,...I===e?d?.activePageButton:{}},onClick:()=>l?.(I),children:I},`page-${I}`),[e,l,p,d]),C=os(I=>Ze("span",{className:Lo("cleen-flex cleen-justify-center cleen-self-end cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.ellipsis),style:d?.ellipsis,onClick:()=>v.current?.focus(),children:"..."},I),[p,d]),x=BN(()=>{if(isNaN(e)||isNaN(t))return[];let I=[];if(I.push(Ze(Ie,{label:s.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ze("span",{className:Lo("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.navButton),style:d?.navButton,onClick:u,children:Ze(Gt,{})})},"prev")),t<=7)for(let P=1;P<=t;P++)I.push(b(P));else if(I.push(b(1)),e<=3){for(let P=2;P<5;P++)I.push(b(P));I.push(C("dots-end")),I.push(b(t))}else if(e>=t-2){I.push(C("dots-start"));for(let P=t-3;P<=t;P++)I.push(b(P))}else I.push(C("dots-start")),I.push(b(e-1)),I.push(b(e)),I.push(b(e+1)),I.push(C("dots-end")),I.push(b(t));return I.push(Ze(Ie,{label:s.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ze("span",{className:Lo("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",p?.navButton),style:d?.navButton,onClick:y,children:Ze(nt,{})})},"next")),I},[e,t,s,p,d,C,b,y,u]);return Ze("div",{className:"cleen",ref:m,...g,children:LN("div",{className:Lo("cleen-flex cleen-justify-between cleen-gap-4",p?.container),style:d?.container,children:[r?Ze(L1,{pageSize:o,labels:s,onPageSizeChange:i,pageSizes:n,className:Lo("cleen-flex-1",p?.pageSizeSelector?.className),classNames:p?.pageSizeSelector?.classNames,...d?.pageSizeSelector}):Ze("div",{className:"cleen-flex-1"}),Ze("div",{className:Lo("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",p?.buttonsContainer),style:d?.buttonsContainer,children:x}),c?Ze(N1,{ref:v,totalPages:t,onGoToPage:l,labels:s,className:Lo("cleen-flex cleen-flex-1 cleen-justify-end",p?.goToPage?.className),classNames:p?.goToPage?.classNames,...d?.goToPage}):Ze("div",{className:"cleen-flex-1"})]})})});import{cn as E1,useDisclosure as EN,useOutsideClick as DN,usePositionClose as FN,ZIndex as AN}from"@cleen/ui-core";import{forwardRef as ON,useRef as vC}from"react";import{createPortal as _N}from"react-dom";import{jsx as D1,jsxs as zN}from"react/jsx-runtime";var Bl=ON(function({isOpen:t,onOpenChange:o,content:n,position:c="bottom-left",offset:r,zIndex:l=AN.POPOVER,portalContainer:i,children:s,className:p,classNames:d,style:g,styles:m,...v},y){let{isOpen:u,toggle:b,close:C}=EN({value:t,setValue:o}),x=vC(null),I=vC(null),{positionStyles:P,isMounted:M}=FN({triggerRef:x,targetRef:I,position:c,isOpen:u,offset:r,container:i});DN({refs:[x,I],handler:C,enabled:u});let A=B=>{B.stopPropagation(),b()};return zN("div",{className:E1("cleen",p),style:g,ref:y,...v,children:[D1("div",{ref:x,onClick:A,className:E1("cleen-size-fit",d?.trigger,u&&d?.triggerOpen),style:{...m?.trigger,...u?m?.triggerOpen:{}},children:s}),u&&_N(D1("div",{className:"cleen",onClick:B=>B.stopPropagation(),onPointerDown:B=>B.stopPropagation(),onMouseDown:B=>B.stopPropagation(),onTouchStart:B=>B.stopPropagation(),children:D1("div",{ref:I,className:E1("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!M},d?.popover),style:{zIndex:l,top:`${P.top}px`,left:`${P.left}px`,...m?.popover},onClick:B=>B.stopPropagation(),children:n})}),i??document.body)]})});import{cn as bC}from"@cleen/ui-core";import{forwardRef as VN,useEffect as HN,useState as UN}from"react";import{jsx as ns,jsxs as IC}from"react/jsx-runtime";var GN={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},CC=VN(({isFullscreen:e,percentage:t,duration:o=1e3,radius:n,stroke:c=16,size:r="md",color:l="rgb(var(--cleen-primary))",emptyColor:i="rgb(var(--cleen-neutral-200))",textColor:s="rgb(var(--cleen-foreground))",textHidden:p=!1,fontSize:d,renderText:g,className:m,classNames:v,style:y,styles:u,...b},C)=>{let x=n??GN[r]/2,I=x-c/2,P=I*2*Math.PI,[M,A]=UN(0);HN(()=>{let L=null;if(o===0){A(t);return}let D=S=>{L||(L=S);let N=S-L,w=Math.min(N/o*t,t);A(w),w<t&&requestAnimationFrame(D)};requestAnimationFrame(D)},[t,o]);let B=P-M/100*P;return ns("div",{ref:C,className:bC("cleen",m),style:y,...b,children:IC("div",{className:bC("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},v?.container),style:u?.container,children:[IC("svg",{height:x*2,width:x*2,style:{transform:"rotate(-90deg)"},children:[ns("circle",{stroke:i,fill:"transparent",strokeWidth:c,r:I,cx:x,cy:x}),ns("circle",{stroke:l,fill:"transparent",strokeWidth:c,strokeLinecap:"round",strokeDasharray:P,strokeDashoffset:B,r:I,cx:x,cy:x})]}),!p&&ns("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:d??x/2.5,color:s},children:g?g(M):`${Math.round(M)}%`})]})})});CC.displayName="ProgressCircle";import{cn as pt}from"@cleen/ui-core";import{useEffect as $N,useState as WN}from"react";import{Fragment as PC,jsx as to,jsxs as Rl}from"react/jsx-runtime";var qN=({horizontal:e,boxes:t,selectedBox:o,onBoxClick:n,leftElement:c,rightElement:r,leftIcon:l,leftIconName:i,rightIconName:s,className:p,classNames:d,style:g,styles:m,...v})=>{let[y,u]=WN(o);$N(()=>{u(o)},[o]);let b=(P,M)=>Rl(PC,{children:[c&&c(P),l||(i?to(Se,{name:i,className:pt("cleen-w-5 cleen-h-5",M?"cleen-text-primary":"cleen-text-neutral-700",d?.leftIcon),style:m?.leftIcon}):null)]}),C=(P,M)=>to("span",{className:pt("cleen-font-semibold",M?"cleen-text-primary":"cleen-text-neutral-700",d?.label),style:m?.label,children:P?.label}),x=(P,M)=>to("span",{className:pt("cleen-font-semibold cleen-text-16px",M?"cleen-text-primary":"cleen-text-neutral-700",d?.subLabel),style:m?.subLabel,children:P?.subLabel}),I=(P,M)=>Rl(PC,{children:[r&&r(P),s&&to(Se,{name:s,className:pt("cleen-w-5 cleen-h-5",M?"cleen-text-primary":"cleen-text-neutral-700",d?.rightIcon),style:m?.rightIcon})]});return to("div",{className:pt("cleen",p),style:g,...v,children:e?to("div",{className:pt("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",d?.container),style:m?.container,children:t?.map(P=>{let M=P?.id===y?.id;return Rl("div",{className:pt("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",M?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",d?.box),style:m?.box,onClick:()=>{u(P),n?.(P)},children:[b(P,M),P?.label&&C(P,M),P?.subLabel&&x(P,M),I(P,M)]},P?.id)})}):to("div",{className:pt("cleen-grid cleen-gap-3 cleen-w-full",d?.container),style:{gridTemplateColumns:"1fr auto 1fr",...m?.container},children:t?.map(P=>{let M=P?.id===y?.id;return Rl("div",{className:pt("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",M?"cleen-bg-primary-100 cleen-border-muted-foreground":"cleen-bg-surface cleen-border-border",d?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...m?.box},onClick:()=>{u(P),n?.(P)},children:[to("div",{className:pt("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",d?.leftIconContainer),style:m?.leftIconContainer,children:b(P,M)}),to("div",{className:pt("cleen-flex cleen-items-center cleen-justify-center",d?.labelContainer),style:m?.labelContainer,children:P?.label&&C(P,M)}),Rl("div",{className:pt("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",d?.rightIconContainer),style:m?.rightIconContainer,children:[P?.subLabel&&x(P,M),I(P,M)]})]},P?.id)})})})};import{cn as It}from"@cleen/ui-core";import{forwardRef as YN,useEffect as QN,useId as ZN,useRef as JN,useState as jN}from"react";import{cn as xC}from"@cleen/ui-core";import{forwardRef as XN}from"react";import{jsx as SC,jsxs as KN}from"react/jsx-runtime";var rs=XN(function({checked:t,className:o,classNames:n,style:c,styles:r,...l},i){return KN("div",{className:xC("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:c,children:[SC("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...l}),SC("span",{className:xC("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",n?.innerCircle),style:r?.innerCircle})]})});import{jsx as Bt,jsxs as as}from"react/jsx-runtime";var eL=YN(function({required:t,radios:o,label:n,labelTooltip:c,className:r,classNames:l,style:i,styles:s,name:p,direction:d="vertical",radioPosition:g="left",defaultActiveId:m,value:v,infoLabels:y,onChange:u},b){let C=v!==void 0,[x,I]=jN(m??o[0]?.id),P=ZN(),M=`${P}-label`,A=p??`cleen-radio-group-${P}`;QN(()=>{!C&&m!==void 0&&I(m)},[m,C]);let B=C?v:x,L=T=>B!=null&&B==T,D=T=>{C||I(T),u?.(T)},S=JN([]),N=o?.findIndex(T=>!T.disabled&&L(T.id)),w=o?.findIndex(T=>!T.disabled),F=N>=0?N:Math.max(w,0),R=T=>{let k=o[T];!k||k.disabled||(D(k.id),S.current[T]?.focus())},E=(T,k)=>{let z=o.length;for(let U=1;U<z;U++){let O=(T+k*U+z)%z;if(!o[O]?.disabled)return O}return T},G=(T,k)=>{if(o.length)switch(T.key){case"ArrowDown":case"ArrowRight":T.preventDefault(),R(E(k,1));break;case"ArrowUp":case"ArrowLeft":T.preventDefault(),R(E(k,-1));break;default:break}};return Bt("div",{className:It("cleen",r),style:i,ref:b,children:as("div",{className:l?.container,style:s?.container,children:[n&&Bt(ae,{id:M,htmlFor:P,required:t,tooltip:c,className:It("cleen-mb-1.5",l?.label?.className),classNames:l?.label?.classNames,...s?.label,children:n}),Bt("div",{id:P,role:"radiogroup","aria-labelledby":n?M:void 0,className:It("cleen-flex cleen-flex-wrap cleen-gap-2.5",d==="vertical"&&"cleen-flex-col cleen-w-fit",l?.radios),style:s?.radios,children:o?.map((T,k)=>{let z=`${P}-${k}`,U=T.radioPosition??g,O=!!T.disabled;return as("div",{className:It("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",L(T?.id)&&"cleen-border-primary hover:cleen-border-primary",l?.radioContainer,T?.className,L(T?.id)&&l?.radioActive),style:{...s?.radioContainer,...T?.style},onClick:_=>{!O&&_.target instanceof Element&&!_.target.closest("label, input, a, button")&&S.current[k]?.click()},children:[T.leftIcon,U==="left"&&Bt(rs,{ref:_=>{S.current[k]=_},id:z,name:A,value:T.id,checked:L(T.id),disabled:O,tabIndex:k===F?0:-1,onChange:()=>D(T.id),onKeyDown:_=>G(_,k),className:It(O&&"cleen-opacity-50",l?.radioOuterCheckBox,T?.classNames?.outerCheckBox),style:{...s?.radioOuterCheckBox,...T?.styles?.outerCheckBox}}),as("label",{htmlFor:z,className:It("cleen-flex-1",O?"cleen-cursor-not-allowed":"cleen-cursor-pointer",l?.radioLabelsContainer,T?.classNames?.labelsContainer),style:{...s?.radioLabelsContainer,...T?.styles?.labelsContainer},children:[as("div",{className:It("cleen-flex cleen-items-center cleen-gap-1",O&&"cleen-opacity-50"),children:[Bt("span",{className:It("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",l?.radioTitle,T?.classNames?.title),style:{...s?.radioTitle,...T?.styles?.title},children:T.title}),Bt("span",{className:It("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",l?.radiotPostTitle,T?.classNames?.postTitle),style:{...s?.radiotPostTitle,...T?.styles?.postTitle},children:T.postTitle})]}),Bt("span",{className:It("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",l?.radioSubTitle,T?.classNames?.subTitle),style:{...s?.radioSubTitle,...T?.styles?.subTitle},children:T?.subTitle})]}),U==="right"&&Bt(rs,{ref:_=>{S.current[k]=_},id:z,name:A,value:T.id,checked:L(T.id),disabled:O,tabIndex:k===F?0:-1,onChange:()=>D(T.id),onKeyDown:_=>G(_,k),className:It(O&&"cleen-opacity-50",l?.radioOuterCheckBox),style:s?.radioOuterCheckBox}),U==="hidden"&&Bt(rs,{ref:_=>{S.current[k]=_},id:z,name:A,value:T.id,checked:L(T.id),disabled:O,tabIndex:k===F?0:-1,onChange:()=>D(T.id),onKeyDown:_=>G(_,k),className:"cleen-sr-only"}),T.rightIcon]},T?.id)})}),(y?.errorMessage||y?.infoMessage||y?.subtitle)&&Bt(ne,{...y})]})})});import{cn as xr,ColorHelpers as tL}from"@cleen/ui-core";import{forwardRef as oL,useRef as nL,useState as rL}from"react";import{jsx as Cn,jsxs as wC}from"react/jsx-runtime";var aL=oL(function({id:t,required:o,label:n,labelTooltip:c,labels:r,infoLabels:l,value:i,onChange:s,amount:p=5,options:d=[],gap:g,size:m=36,readonly:v,color:y="rgb(var(--cleen-primary))",className:u,style:b,classNames:C,styles:x,...I},P){let[M,A]=rL(0),B=i!==void 0,L=B?i:M,D=d?.length>0?d:Array.from({length:p},(T,k)=>k+1),S=nL([]),N=D.findIndex(T=>T===L),w=N>=0?N:0,F=T=>{B||A(T),s?.(T)},R=T=>{let k=D[T];k!==void 0&&(F(k),S.current[T]?.focus())},E=(T,k)=>{if(v)return;let z=D.length;if(z)switch(T.key){case"ArrowRight":case"ArrowUp":T.preventDefault(),R((k+1)%z);break;case"ArrowLeft":case"ArrowDown":T.preventDefault(),R((k-1+z)%z);break;case"Home":T.preventDefault(),R(0);break;case"End":T.preventDefault(),R(z-1);break;default:break}},G=typeof n=="string"?n:"Rating";return Cn("div",{className:xr("cleen",u),style:b,ref:P,...I,children:wC("div",{className:xr("cleen-space-y-2",C?.container),style:x?.container,children:[n&&Cn(ae,{htmlFor:t,required:o,tooltip:c,className:xr("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...x?.label,children:n}),wC("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Cn("div",{role:"radiogroup","aria-label":G,className:xr("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...g?{gap:g}:{},...x?.list},children:D?.map((T,k)=>Cn("button",{id:t,ref:z=>{S.current[k]=z},role:"radio","aria-checked":L===T,"aria-label":`${T}`,tabIndex:k===w?0:-1,onClick:()=>F(T),onKeyDown:z=>E(z,k),className:xr("cleen-flex cleen-justify-center cleen-items-center cleen-border cleen-border-border hover:cleen-border-muted-foreground cleen-rounded-full cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",v&&"cleen-cursor-default cleen-pointer-events-none",C?.item),style:{width:m,height:m,...L===T?{borderColor:y,backgroundColor:tL.trasparentize(y,.9),color:y}:{},...x?.item},type:"button",children:Cn("span",{className:xr("cleen-font-medium cleen-text-sm",C?.value),style:x?.value,children:T})},T))}),r?.helperText&&Cn("span",{className:"cleen-text-sm cleen-text-neutral-600",children:r.helperText})]}),(l?.errorMessage||l?.infoMessage||l?.subtitle)&&Cn(ne,{...l})]})})});import{useState as lL}from"react";import{components as cL}from"react-select";import{jsx as F1,jsxs as MC}from"react/jsx-runtime";var kC=e=>{let[t,o]=lL(!1),n=e.data;return F1("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:F1(cL.Option,{...e,children:MC("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[MC("div",{className:"cleen-flex-1",children:[n?.label,n?.sublabel&&F1("p",{className:"cleen-text-xs",children:n?.sublabel})]}),typeof n?.icon=="function"?n.icon({...e,isHovered:t}):n?.icon]})})})};import{components as iL}from"react-select";import{jsx as A1,jsxs as sL}from"react/jsx-runtime";var TC=e=>{let t=e.data;return A1(iL.SingleValue,{...e,children:sL("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[A1("p",{children:t?.label}),t?.sublabel&&A1("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as Nl,ZIndex as EC}from"@cleen/ui-core";import{forwardRef as mL,useId as uL,useState as DC}from"react";import fL from"react-select";import{components as pL}from"react-select";import{jsx as O1,jsxs as BC}from"react/jsx-runtime";var RC=({isLoading:e,inputValue:t,options:o,createNewOptionCallback:n,createNewOptionLabelStringCb:c,children:r,...l})=>{let i=t?.trim().toLowerCase(),s=o?.some(p=>p?.labelString?p.labelString.toLowerCase()===i:typeof p?.label=="string"?p.label.toLowerCase()===i:!1);return O1("div",{className:"cleen",children:BC(pL.MenuList,{options:o,...l,children:[r,n&&!e&&t&&t?.length>0&&!s&&BC("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[O1(gt,{}),O1("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{n(t)},children:c?.(t)||t})]})]})})};import{components as dL}from"react-select";import{jsx as NC}from"react/jsx-runtime";var LC=({isLoading:e,noDataFound:t,...o})=>NC(dL.NoOptionsMessage,{...o,children:e?NC(re,{}):t||"No data found"});import{jsx as Eo,jsxs as AC}from"react/jsx-runtime";var FC=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),hL=mL(function({label:t,labelTooltip:o,sublabel:n,id:c,name:r,required:l,className:i,classNames:s,isLoading:p=!1,disabled:d,emboldenOptions:g=!1,labels:m,components:v,style:y,styles:u,infoLabels:b,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...I},P){let[M,A]=DC(!1),[B,L]=DC(""),D=uL(),S=I.inputId??c??r??D,N=(F,R)=>{if(!FC(F.data))return!1;let{labelString:E,label:G}=F.data;return E?E.toLowerCase().includes(R.toLowerCase()):typeof G=="string"?G.toLowerCase().includes(R.toLowerCase()):!1},w=F=>FC(F)?F.labelString??(typeof F.label=="string"?F.label:""):"";return Eo("div",{className:Nl("cleen",i),style:y,ref:P,children:AC("div",{className:Nl("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",s?.cleenContainer),style:u?.cleenContainer,children:[(t||n)&&AC("div",{className:Nl("cleen-flex cleen-flex-col cleen-gap-1",s?.labels?.container),style:u?.labels?.container,children:[t&&Eo(ae,{htmlFor:S,required:l,tooltip:o,...s?.labels?.label,...u?.labels?.label,children:t}),n&&Eo("span",{className:Nl("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",s?.labels?.sublabel),style:u?.labels?.sublabel,children:n})]}),Eo(fL,{...C&&{menuIsOpen:M,inputValue:B,onInputChange:F=>L(F),onMenuOpen:()=>A(!0),onMenuClose:()=>A(!1)},...!I.filterOption&&{filterOption:N},...!I.getOptionLabel&&{getOptionLabel:w},id:c||r,classNames:s,isDisabled:d,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:S,className:Nl("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",s?.inputOuterContainer),styles:{...u,control:(F,R)=>{let E={...F,minHeight:44,borderWidth:1,borderRadius:8,padding:3,transition:"border-color 200ms",fontWeight:g&&R.hasValue?"600":"400",borderColor:b?.errorMessage?"rgba(var(--cleen-error), 0.7)":"rgb(var(--cleen-border))",color:R.isDisabled?"rgb(var(--cleen-neutral-500))":"rgb(var(--cleen-foreground))",backgroundColor:R.isDisabled?"rgb(var(--cleen-neutral-100))":"rgba(var(--cleen-background))",boxShadow:R.isFocused?"0 0 0 2px rgba(var(--cleen-primary), 0.5)":"none",cursor:"pointer",caretColor:C?"rgba(var(--cleen-foreground))":"transparent","&:hover":{borderColor:b?.errorMessage?"rgba(var(--cleen-error))":"rgb(var(--cleen-border))"}};return u?.control?u?.control(E,R):E},menuPortal:(F,R)=>{let E={...F,zIndex:EC.SELECT,...u?.menuPortal};return u?.menuPortal?u?.menuPortal(E,R):E},menu:(F,R)=>{let E={...F,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:EC.SELECT,...u?.menu};return u?.menu?u?.menu(E,R):E},option:(F,R)=>{let E={...F,backgroundColor:R.isSelected?"rgba(var(--cleen-primary))":R.isFocused?"rgba(var(--cleen-primary), 0.1)":"rgba(var(--cleen-white))",color:R.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-foreground))",fontWeight:g?"600":"400","&:hover":R.isSelected?{}:{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))",cursor:"pointer"},p:{color:R.isSelected?"rgba(var(--cleen-white))":"rgba(var(--cleen-neutral-600))"},"&:hover p":{color:"rgba(var(--cleen-white))"},"&:active":{backgroundColor:"rgba(var(--cleen-primary))",color:"rgba(var(--cleen-white))"}};return u?.option?u?.option(E,R):E},menuList:(F,R)=>{let E={...F,"::-webkit-scrollbar":{width:"6px",height:"0px"},"::-webkit-scrollbar-track":{background:"rgb(var(--cleen-background))"},"::-webkit-scrollbar-thumb":{background:"rgba(var(--cleen-neutral-200))"},"::-webkit-scrollbar-thumb:hover":{background:"rgba(var(--cleen-neutral-400))"},padding:0,borderRadius:4,...u?.menuList};return u?.menuList?u?.menuList(E,R):E},singleValue:(F,R)=>{let E={...F,color:R.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return u?.singleValue?u?.singleValue(E,R):E},input:(F,R)=>{let E={...F,color:"rgba(var(--cleen-foreground))"};return u?.input?u?.input(E,R):E}},components:{IndicatorSeparator:()=>null,SingleValue:F=>Eo(TC,{...F}),NoOptionsMessage:F=>Eo(LC,{isLoading:p,noDataFound:m?.noDataFound,...F}),MenuList:F=>Eo(RC,{isLoading:p,inputValue:B,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...F}),Option:kC,...v}}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&Eo(ne,{...b})]})})});import{jsx as OC,jsxs as gL}from"react/jsx-runtime";function _C({children:e,title:t,className:o="",renderHeader:n}){return gL("div",{className:`cleen-w-full cleen-h-full ${o}`,"data-testid":`drawer-container-${t}`,children:[n?n(t):OC("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),OC("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as oo}from"@cleen/ui-core";import{forwardRef as yL,useState as vL}from"react";import{Fragment as PL,jsx as dt,jsxs as ls}from"react/jsx-runtime";function bL({icon:e,iconSrc:t,iconName:o,iconSize:n=24,title:c,className:r,style:l}){return e?dt("span",{className:oo("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",r),style:{width:n,height:n,...l},children:e}):t?dt("img",{src:t,alt:c,width:n,height:n,className:r,style:l}):o?dt(Se,{name:o,width:n,height:n,className:r,style:l}):null}function zC({item:e,depth:t,iconSize:o=24,classNames:n,styles:c}){let[r,l]=vL(!1),i={...e,classNames:{...n,...e.classNames},styles:{...c,...e.styles}},s=Array.isArray(i?.items)&&i.items.length>0,p=i?.iconSize??o,d=t>0?{paddingLeft:12+t*28}:{},g=ls(PL,{children:[ls("div",{className:oo("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[dt(bL,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:p,title:i?.name,className:oo("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}),dt("span",{className:oo("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)&&dt(we,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return s?ls("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[ls("summary",{className:oo("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:()=>l(m=>!m),children:[g,dt(Se,{name:"ChevronDown",className:oo("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})]}),dt("div",{className:oo("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(m=>dt(zC,{item:m,depth:t+1,iconSize:o,classNames:n,styles:c},m?.id??m?.name))})]}):dt("div",{className:oo("cleen-group/row cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-primary/5 cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer",t===0?"cleen-px-3 hover:cleen-bg-muted":void 0,i?.isActive&&t===0&&"cleen-bg-muted",i?.disabled&&"cleen-opacity-50 cleen-pointer-events-none",i?.classNames?.container),style:{...d,...i?.styles?.container},onClick:()=>i?.onClick?.(i),children:g})}var IL=yL(function({title:t,icon:o,iconName:n,iconSrc:c,iconSize:r=24,badgeColor:l="gray",badgeCount:i,items:s,onClick:p,isActive:d=!1,disabled:g,className:m,classNames:v,style:y,styles:u},b){let C={id:"root",name:t,icon:o,iconName:n,iconSrc:c,iconSize:r,badgeColor:l,badgeCount:i,isActive:d,disabled:g,onClick:p?()=>p():void 0,classNames:v,styles:u,items:s};return dt("div",{className:oo("cleen",m),style:y,ref:b,children:dt(zC,{item:C,depth:0,iconSize:r,classNames:v,styles:u})})}),CL=IL;import{cn as no}from"@cleen/ui-core";import{useEffect as ML,useLayoutEffect as kL,useRef as Sr,useState as TL}from"react";import{cn as Ll}from"@cleen/ui-core";import{useMemo as xL}from"react";import{Link as SL}from"react-router-dom";import{jsx as El,jsxs as wL}from"react/jsx-runtime";function Dl({item:e,activeId:t,onClick:o,countBadge:n,classNames:c,styles:r,renderIcon:l}){let i=t===e?.id,s=xL(()=>e?l?l(e,i):e.icon?e.icon:e.iconSrc?El("img",{src:e.iconSrc,alt:e?.name||e?.label,className:Ll("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",c?.icon,i&&"cleen-text-primary"),style:r?.icon}):e.iconName?El(Se,{name:e.iconName,className:Ll("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",c?.icon,i&&"cleen-text-primary"),style:r?.icon}):null:null,[e,i,l,c?.icon,r?.icon]),p=wL("div",{"data-testid":`nav-item-${e?.id}`,className:Ll("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",c?.container,i&&"cleen-bg-primary/10"),style:r?.container,onClick:()=>{e?.path||o?.(e)},children:[s,n&&El("div",{className:Ll("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",c?.badge),style:r?.badge,children:n})]});return El(Ie,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:c?.tooltip?.className,classNames:{...c?.tooltip,labelContainer:Ll("cleen-min-w-max",c?.tooltip?.classNames?.labelContainer)},...r?.tooltip,label:e?.label,children:e?.path?El(SL,{to:e.path,children:p}):p})}import{jsx as ro,jsxs as Pn}from"react/jsx-runtime";var VC="--cleen-sidebar-fit",HC="data-cleen-sidebar-measuring",cs=e=>e?.getBoundingClientRect().height??0,UC=e=>{let t=getComputedStyle(e);return parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)};function GC({navigationItems:e,bottomNavigationItems:t=[],drawerContent:o={},logo:n,onLogoClick:c,userAvatar:r,userInfo:l,drawerFooter:i,drawerWidth:s=330,direction:p="right",defaultActiveId:d=null,activeId:g,onActiveChange:m,closeOnOutsideClick:v=!0,closeOnBlur:y=!0,className:u,classNames:b,style:C,styles:x,renderSidebarItem:I}){let[P,M]=TL(d),A=Sr(null),B=Sr(null),L=Sr(null),D=Sr(null),S=Sr(null),N=Sr(null),w=!!n,F=!!r;kL(()=>{let k=A.current,z=B.current,U=D.current;if(!k||!z||!U||typeof ResizeObserver>"u")return;let O=H=>(k.style.setProperty(VC,`${H}px`),cs(L.current)+UC(U)+(parseFloat(getComputedStyle(U).rowGap)||0)+cs(S.current)+cs(N.current)),_=()=>{k.setAttribute(HC,"");let H=O(0),V=O(1),q=z.clientHeight-UC(z)-1,$=V>H?Math.min(1,Math.max(0,(q-H)/(V-H))):1;k.style.setProperty(VC,`${$}px`),cs(z),k.removeAttribute(HC)};_();let X=new ResizeObserver(_);return X.observe(z),()=>X.disconnect()},[e.length,t.length,w,F]);let R=g!==void 0?g:P,E=!!R,G=k=>{let z=R===k.id?null:k.id;g===void 0&&M(z),m?.(z)};ML(()=>{if(!v||!E)return;let k=z=>{A.current&&!A.current.contains(z.target)&&(g===void 0&&M(null),m?.(null))};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[v,E,g,m]);let T=k=>{!y||!E||A.current&&!A.current.contains(k.relatedTarget)&&(g===void 0&&M(null),m?.(null))};return Pn("div",{className:no("cleen",u),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:p==="left"?"row-reverse":"row",...C},ref:A,onBlur:T,tabIndex:y?0:void 0,children:[Pn("div",{ref:B,className:no("cleen-flex cleen-flex-col cleen-items-center cleen-h-full",p==="right"?"cleen-border-r cleen-border-r-border":"cleen-border-l cleen-border-l-border",b?.navigation),style:x?.navigation,children:[n&&ro("div",{ref:L,className:no("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",b?.logo),style:x?.logo,onClick:c,children:n}),Pn("div",{ref:D,className:no("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",b?.navigationItems),style:x?.navigationItems,children:[ro("nav",{ref:S,className:no("cleen-flex cleen-flex-col cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)]",b?.upperNavigationItemsWrapper),style:x?.upperNavigationItemsWrapper,children:e.map(k=>Pn("div",{children:[I?I(k,R===k.id,G):ro(Dl,{item:k,activeId:R,onClick:G,countBadge:k.badgeCount,classNames:{...b?.navigationItem,...k?.classNames},styles:{...x?.navigationItem,...k?.styles}}),k?.withBottomDivider&&ro("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},k.id))}),Pn("div",{ref:N,className:no("cleen-flex cleen-flex-col cleen-items-center cleen-gap-[calc(2px_+_var(--cleen-sidebar-fit,1px)_*_6)]",b?.bottomNavigationItemsWrapper),style:x?.bottomNavigationItemsWrapper,children:[t.map(k=>Pn("div",{children:[I?I(k,R===k.id,G):ro(Dl,{item:k,activeId:R,onClick:G,countBadge:k.badgeCount,classNames:{...b?.navigationItem,...k?.classNames},styles:{...x?.navigationItem,...k?.styles}}),k?.withBottomDivider&&ro("div",{className:"cleen-bg-neutral-200 cleen-mt-[calc(4px_+_var(--cleen-sidebar-fit,1px)_*_4)] cleen-w-12 cleen-h-[1px]"})]},k.id)),r&&ro("div",{className:"cleen-mt-[calc(8px_+_var(--cleen-sidebar-fit,1px)_*_16)] cleen-mb-[calc(12px_+_var(--cleen-sidebar-fit,1px)_*_20)]",children:r})]})]})]}),Pn("div",{className:no("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":E&&p==="right","cleen-border-l cleen-border-l-border":E&&p==="left"},b?.drawer),style:{...x?.drawer,width:E?`${s}px`:"0px",visibility:E?"visible":"hidden"},children:[R&&o[R]&&ro("div",{className:no("cleen-flex-1 cleen-overflow-auto",b?.drawerContent),style:x?.drawerContent,children:o[R]}),R&&(i||l)&&ro("div",{className:no("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",b?.drawerFooter),style:x?.drawerFooter,children:typeof i=="function"?i(R):i||l})]})]})}var te=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as $C}from"@cleen/ui-core";import{forwardRef as BL}from"react";import{jsx as WC}from"react/jsx-runtime";var RL={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"},NL=BL(function({width:t,height:o,roundness:n="md",variant:c="default",className:r,style:l},i){let s=te(c),p={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...o!==void 0?{height:typeof o=="number"?`${o}px`:o}:{},...l};return WC("div",{ref:i,className:$C("cleen",r),children:WC("div",{className:$C("cleen-bg-muted",RL[n],t===void 0&&"cleen-w-full",o===void 0&&"cleen-h-4",s),style:p})})});import{cn as _1}from"@cleen/ui-core";import{forwardRef as LL}from"react";import{jsx as is,jsxs as EL}from"react/jsx-runtime";var z1=LL(function({className:t,style:o,variant:n="default",itemCount:c=1},r){let l=te(n);return is("div",{ref:r,className:_1("cleen",t),style:o,children:is("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:c}).map((i,s)=>EL("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[is("div",{className:_1("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",l)}),is("div",{className:_1("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",l)})]},s))})})});import{cn as qC}from"@cleen/ui-core";import{forwardRef as DL}from"react";import{jsx as V1}from"react/jsx-runtime";var H1=DL(function({className:t,style:o,variant:n="default",itemCount:c=1},r){let l=te(n);return V1("div",{ref:r,className:qC("cleen",t),style:o,children:V1("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:c}).map((i,s)=>V1("div",{className:qC("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",l)},s))})})});import{cn as XC}from"@cleen/ui-core";import{forwardRef as FL}from"react";import{jsx as xn,jsxs as ss}from"react/jsx-runtime";var U1=FL(function({className:t,style:o,variant:n="default"},c){let r=te(n);return xn("div",{ref:c,className:XC("cleen",t),style:o,children:ss("div",{className:XC("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",r),children:[xn("div",{className:"cleen-h-48 cleen-w-full"}),ss("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-flex-col cleen-justify-center cleen-items-start cleen-gap-4 cleen-px-8",children:[xn("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),ss("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[xn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),xn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),ss("div",{className:"cleen-flex cleen-gap-3",children:[xn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),xn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as KC}from"@cleen/ui-core";import{forwardRef as AL}from"react";import{jsx as G1}from"react/jsx-runtime";var $1=AL(function({className:t,style:o,variant:n="default",itemCount:c=1},r){let l=te(n);return G1("div",{ref:r,className:KC("cleen",t),style:o,children:G1("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:c}).map((i,s)=>G1("div",{className:KC("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",l)},s))})})});import{cn as ps}from"@cleen/ui-core";import{forwardRef as OL}from"react";import{jsx as ds,jsxs as YC}from"react/jsx-runtime";var Fl=OL(function({className:t,style:o,variant:n="default"},c){let r=te(n);return ds("div",{ref:c,className:ps("cleen",t),style:o,children:YC("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:[ds("div",{className:ps("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)}),YC("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[ds("div",{className:ps("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)}),ds("div",{className:ps("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",r)})]})]})})});import{cn as wr}from"@cleen/ui-core";import{forwardRef as _L}from"react";import{jsx as Mr,jsxs as ms}from"react/jsx-runtime";var us=_L(({className:e,style:t,variant:o="default"},n)=>{let c=te(o);return Mr("div",{ref:n,className:wr("cleen",e),style:t,children:ms("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-lg",children:[ms("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[Mr("div",{className:wr("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",c)}),ms("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Mr("div",{className:wr("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",c)}),Mr("div",{className:wr("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",c)})]})]}),ms("div",{className:"cleen-space-y-2 cleen-w-full",children:[Mr("div",{className:wr("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",c)}),Mr("div",{className:wr("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",c)})]})]})})});us.displayName="AssessmentHeaderSkeleton";import{cn as Rt}from"@cleen/ui-core";import{forwardRef as zL}from"react";import{jsx as Nt,jsxs as kr}from"react/jsx-runtime";var W1=zL(function({className:t,style:o,variant:n="default"},c){let r=te(n);return Nt("div",{ref:c,className:Rt("cleen",t),style:o,children:kr("div",{className:"cleen-flex cleen-flex-col cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden cleen-w-full",children:[Nt("div",{className:Rt("cleen-bg-muted cleen-w-full cleen-h-40",r)}),kr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[kr("div",{className:"cleen-flex cleen-gap-2",children:[Nt("div",{className:Rt("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",r)}),Nt("div",{className:Rt("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",r)})]}),kr("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Nt("div",{className:Rt("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",r)}),Nt("div",{className:Rt("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Nt("div",{className:Rt("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)})]}),kr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[kr("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Nt("div",{className:Rt("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",r)}),Nt("div",{className:Rt("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),Nt("div",{className:Rt("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",r)})]})]})]})})});import{forwardRef as VL}from"react";import{cn as HL}from"@cleen/ui-core";import{jsx as q1}from"react/jsx-runtime";var X1=VL(function({className:t,style:o,itemCount:n=3,variant:c="default"},r){return q1("div",{ref:r,className:HL("cleen",t),style:o,children:q1("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:n}).map((l,i)=>q1(Fl,{variant:c},i))})})});import{cn as Sn}from"@cleen/ui-core";import{forwardRef as UL}from"react";import{jsx as mt,jsxs as Al}from"react/jsx-runtime";var QC=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],K1=UL(function({className:t,style:o,variant:n="default"},c){let r=te(n);return mt("div",{ref:c,className:Sn("cleen",t),style:o,children:Al("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:[Al("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[mt("div",{className:Sn("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",r)}),mt("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((l,i)=>Al("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[mt("div",{className:Sn("cleen-bg-muted cleen-rounded-full cleen-size-2.5",r)}),mt("div",{className:Sn("cleen-bg-muted cleen-rounded cleen-h-3",r),style:{width:l}})]},i))})]}),Al("div",{className:"cleen-flex cleen-gap-3",children:[mt("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-end cleen-py-1",style:{height:120},children:[0,1,2,3].map(l=>mt("div",{className:Sn("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",r)},l))}),Al("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[mt("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:QC.map((l,i)=>mt("div",{className:Sn("cleen-bg-muted cleen-rounded-t cleen-flex-1",l,r)},i))}),mt("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),mt("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:QC.map((l,i)=>mt("div",{className:Sn("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",r)},i))})]})]})]})})});import{cn as wn}from"@cleen/ui-core";import{forwardRef as GL}from"react";import{jsx as ao,jsxs as fs}from"react/jsx-runtime";var Y1=GL(({variant:e="default",itemCount:t=3,className:o,style:n},c)=>{let r=te(e);return ao("div",{ref:c,className:wn("cleen",o),style:n,children:ao(he,{className:"cleen-max-h-fit",children:fs("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[fs("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[ao("div",{className:wn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",r)}),ao("div",{className:wn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)})]}),ao("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((l,i)=>fs("div",{className:"cleen-space-y-3",children:[ao("div",{className:wn("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",r)}),ao("div",{className:wn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",r)})]},i))}),fs("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[ao("div",{className:wn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)}),ao("div",{className:wn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",r)})]})]})})})});import{cn as hs}from"@cleen/ui-core";import{forwardRef as $L}from"react";import{jsx as Ol,jsxs as WL}from"react/jsx-runtime";var Q1=$L(function({className:t,style:o,variant:n="default",itemCount:c=5},r){let l=te(n),i=["cleen-w-1/12","cleen-w-3/12","cleen-w-2/12","cleen-w-3/12","cleen-w-2/12","cleen-w-1/12"];return Ol("div",{ref:r,className:hs("cleen",t),style:o,children:WL("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[Ol("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-bg-muted cleen-border-b cleen-border-border",children:i.map((s,p)=>Ol("div",{className:hs("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",s,l)},p))}),Array.from({length:c}).map((s,p)=>Ol("div",{className:hs("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",p<c-1?"cleen-border-b cleen-border-border":""),children:i.map((d,g)=>Ol("div",{className:hs("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",g===i.length-1?"cleen-rounded-full":"cleen-rounded",d,l)},g))},p))]})})});import{cn as gs}from"@cleen/ui-core";import{forwardRef as qL}from"react";import{jsx as _l,jsxs as ZC}from"react/jsx-runtime";var Z1=qL(function({className:t,style:o,variant:n="default",itemCount:c=4},r){let l=te(n);return _l("div",{ref:r,className:gs("cleen",t),style:o,children:ZC("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:c}).map((i,s)=>ZC("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[_l("div",{className:gs("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",l)}),_l("div",{className:gs("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",l)})]},s)),_l("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:_l("div",{className:gs("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",l)})})]})})});import{cn as JC}from"@cleen/ui-core";import{forwardRef as XL}from"react";import{jsx as J1}from"react/jsx-runtime";var KL=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],j1=XL(function({className:t,style:o,variant:n="default",colors:c=KL},r){let l=te(n);return J1("div",{ref:r,className:JC("cleen",t),style:o,children:J1("div",{className:JC("cleen-p-1 cleen-size-full cleen-rounded-lg cleen-animate-[cleen-rotate-gradient-angle_2.5s_linear_infinite]",l),style:{background:`conic-gradient(from var(--cleen--gradient-angle),${c.join(",")})`},children:J1("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as ys}from"@cleen/ui-core";import{forwardRef as YL}from"react";import{jsx as Tr,jsxs as jC}from"react/jsx-runtime";var eg=YL(function({className:t,style:o,variant:n="default"},c){let r=te(n);return Tr("div",{ref:c,className:ys("cleen",t),style:o,children:jC("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[Tr("div",{className:ys("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:Tr("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:jC("div",{className:ys("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[Tr("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),Tr("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),Tr("div",{className:ys("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",r)})]})})});import{cn as et}from"@cleen/ui-core";import{forwardRef as QL}from"react";import{jsx as Je,jsxs as lo}from"react/jsx-runtime";var tg=QL(function({className:t,style:o,variant:n="default"},c){let r=te(n);return Je("div",{ref:c,className:et("cleen",t),style:o,children:lo("div",{className:et("cleen-flex cleen-flex-col cleen-items-start cleen-gap-4 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-h-fit",t),style:o,children:[lo("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Je("div",{className:et("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",r)})]}),lo("div",{className:"cleen-space-y-3 cleen-w-full",children:[lo("div",{children:[Je("div",{className:et("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),Je(he,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:lo("div",{className:"cleen-space-y-2",children:[Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",r)})]})})]}),lo("div",{children:[Je("div",{className:et("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),lo("div",{className:"cleen-space-y-2",children:[Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",r)})]})]}),lo("div",{children:[Je("div",{className:et("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",r)}),Je(he,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:lo("div",{className:"cleen-space-y-2",children:[Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",r)}),Je("div",{className:et("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",r)})]})})]})]})]})})});import{cn as og}from"@cleen/ui-core";import{forwardRef as ZL}from"react";import{jsx as ng,jsxs as JL}from"react/jsx-runtime";var rg=ZL(function({className:t,style:o,variant:n="default"},c){let r=te(n);return ng("div",{ref:c,className:og("cleen",t),style:o,children:JL("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[ng("div",{className:og("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",r)}),ng("div",{className:og("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",r)})]})})});import{cn as zl}from"@cleen/ui-core";import{forwardRef as jL}from"react";import{jsx as Br,jsxs as eP}from"react/jsx-runtime";var ag=jL(function({className:t,style:o,variant:n="default",itemCount:c=5},r){let l=te(n),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return Br("div",{ref:r,className:zl("cleen",t),style:o,children:Br("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:c}).map((s,p)=>eP("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[Br("div",{className:zl("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",l)}),eP("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[Br("div",{className:zl("cleen-bg-muted cleen-rounded cleen-h-4",i[p%i.length],l)}),Br("div",{className:zl("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",l)})]}),Br("div",{className:zl("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",l)})]},p))})})});import{cn as tP}from"@cleen/ui-core";import{forwardRef as eE}from"react";import{jsx as cg}from"react/jsx-runtime";var lg=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],ig=eE(function({className:t,style:o,variant:n="default",itemCount:c},r){let l=te(n),i=c??lg.length;return cg("div",{ref:r,className:tP("cleen",t),style:o,children:cg("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((s,p)=>{let d=p<lg.length?lg[p]:p===i-1?"cleen-w-3/5":"cleen-w-full";return cg("div",{className:tP("cleen-bg-muted cleen-rounded cleen-h-3",d,l)},p)})})})});import{cn as oP}from"@cleen/ui-core";import{forwardRef as tE}from"react";import{jsx as nP}from"react/jsx-runtime";var sg=tE(function({className:t,style:o,variant:n="default"},c){let r=te(n);return nP("div",{ref:c,className:oP("cleen",t),style:o,children:nP("div",{className:oP("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",r)})})});import{cn as Mn}from"@cleen/ui-core";import{forwardRef as oE}from"react";import{jsx as Lt,jsxs as vs}from"react/jsx-runtime";var pg=oE(function({className:t,style:o,variant:n="default"},c){let r=te(n);return Lt("div",{ref:c,className:Mn("cleen",t),style:o,children:vs("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[Lt("div",{className:Mn("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",r),children:Lt("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Lt("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:Lt("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"})})})}),vs("div",{className:"cleen-flex cleen-gap-3",children:[Lt("div",{className:Mn("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",r)}),vs("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Lt("div",{className:Mn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",r)}),Lt("div",{className:Mn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",r)}),vs("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Lt("div",{className:Mn("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",r)}),Lt("div",{className:Mn("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",r)})]})]})]})]})})});import{cn as Vl}from"@cleen/ui-core";import{forwardRef as nE}from"react";import{jsx as Hl,jsxs as dg}from"react/jsx-runtime";var bs=nE(function({variant:t="default",className:o,style:n},c){let r=te(t);return Hl("div",{ref:c,className:Vl("cleen",o),style:n,children:dg("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:[dg("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:[Hl("div",{className:Vl("cleen-bg-muted cleen-rounded-full cleen-size-1.5",r)}),Hl("div",{className:Vl("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",r)})]}),dg("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[Hl("div",{className:Vl("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",r)}),Hl("div",{className:Vl("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",r)})]})]})})});bs.displayName="SkeletonBadgeCard";import{forwardRef as rE}from"react";import{jsx as Ce}from"react/jsx-runtime";var aE=rE(function({className:t,style:o,variant:n="default",itemCount:c=3,colors:r,skeleton:l="card",isShowing:i=!1,children:s},p){if(!i)return s;let d={ref:p,variant:n,itemCount:c,colors:r,className:t,style:o};switch(l){case"card2":return Ce(us,{...d});case"card3":return Ce(W1,{...d});case"cardStack":return Ce(X1,{...d});case"contentCard":return Ce(Y1,{...d});case"infoCard":return Ce(tg,{...d});case"widgetCard":return Ce(bs,{...d});case"image":return Ce(eg,{...d});case"video":return Ce(pg,{...d});case"avatar":return Ce(z1,{...d});case"dataGrid":return Ce(Q1,{...d});case"text":return Ce(sg,{...d});case"paragraph":return Ce(ig,{...d});case"list":return Ce(ag,{...d});case"form":return Ce(Z1,{...d});case"banner":return Ce(U1,{...d});case"chart":return Ce(K1,{...d});case"button":return Ce($1,{...d});case"badge":return Ce(H1,{...d});case"input":return Ce(rg,{...d});case"glowingCard":return Ce(j1,{...d});default:return Ce(Fl,{...d})}});import{cn as Do}from"@cleen/ui-core";import{forwardRef as lE,useCallback as mg,useEffect as cE,useRef as rP,useState as aP}from"react";import{jsx as Fo,jsxs as Is}from"react/jsx-runtime";var kn=lE(function({id:t,required:o,minValue:n=0,maxValue:c=100,step:r=1,keyboardStep:l=r,defaultValue:i=0,value:s,variant:p="default",onChange:d,onChangeEnd:g,className:m,classNames:v,style:y,styles:u,disabled:b=!1,label:C,labelTooltip:x,labels:I,tooltip:P,infoLabels:M},A){let[B,L]=aP(i??n),D=s!==void 0?s:B,S=rP(null),[N,w]=aP(!1),F=rP(!1),R=(D-n)/(c-n)*100,E=Math.min(100,Math.max(0,R)),G=mg(H=>{let V=Math.round((H-n)/r)*r+n;return Math.min(c,Math.max(n,V))},[n,c,r]),T=mg((H,V)=>{let q=G(H);s===void 0&&L(q),d?.(q),V&&g?.(q)},[G,s,d,g]),k=mg(H=>{let V=S.current;if(!V)return n;let q=V.getBoundingClientRect(),$=(H-q.left)/q.width;return G(n+$*(c-n))},[n,c,G]),z=H=>{if(b)return;let V;switch(H.key){case"ArrowRight":case"ArrowUp":V=D+l;break;case"ArrowLeft":case"ArrowDown":V=D-l;break;case"Home":V=n;break;case"End":V=c;break;default:return}H.preventDefault(),T(V,!0)},U=H=>{b||(H.preventDefault(),w(!0))},O=H=>{if(b||F.current){F.current=!1;return}T(k(H.clientX),!0)},_=H=>{b||(H.preventDefault(),w(!0))};cE(()=>{if(!N)return;let H=K=>{T(k(K.clientX))},V=K=>{w(!1),F.current=!0,g?.(G(k(K.clientX)))},q=K=>{K.touches.length>0&&T(k(K.touches[0].clientX))},$=K=>{w(!1),F.current=!0,g?.(G(k(K.changedTouches[0].clientX)))};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",V),document.addEventListener("touchmove",q),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",q),document.removeEventListener("touchend",$)}},[N,G,k,T,g]);let X=H=>Fo("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Fo("div",{className:Do("cleen",m),style:y,ref:A,children:Is("div",{className:Do("cleen-w-full",v?.container),style:u?.container,children:[C&&Fo(ae,{htmlFor:t,required:o,tooltip:x,...v?.label,...u?.label,children:C}),Is("div",{className:Do({"cleen-flex cleen-items-center cleen-gap-2":p==="inline"},v?.slider),style:u?.slider,children:[p==="inline"&&I?.minLabel!==void 0&&X(I?.minLabel),Is("div",{ref:S,className:Do("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":b,"cleen-flex-1":p==="inline"},v?.track),style:u?.track,"aria-disabled":b,onClick:O,children:[Fo("div",{className:Do("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",b?"cleen-cursor-not-allowed":"cleen-cursor-pointer",v?.path),style:u?.path,children:Fo("div",{className:Do("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",v?.filledTrack),style:{width:`${E}%`,...u?.filledTrack}})}),Fo(Ie,{invertColors:!0,...P,label:I?.tooltip?.(D)??D,className:Do("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",P?.className),style:{left:`calc(${E}% - 8px)`,...P?.style},isOpen:N||P?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:Fo("div",{id:t,className:Do("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",b?"cleen-cursor-not-allowed":"cleen-cursor-pointer",v?.thumb),style:u?.thumb,tabIndex:b?-1:0,role:"slider","aria-valuenow":D,"aria-valuemin":n,"aria-valuemax":c,"aria-disabled":b,"aria-label":typeof C=="string"?C:"Slider","aria-labelledby":t,onMouseDown:U,onTouchStart:_,onKeyDown:z})})]}),p==="inline"?I?.maxLabel&&X(I?.maxLabel):(I?.minLabel||I?.maxLabel)&&Is("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[I?.minLabel&&X(I?.minLabel),I?.maxLabel&&X(I?.maxLabel)]})]}),(M?.errorMessage||M?.infoMessage||M?.subtitle)&&Fo(ne,{...M})]})})});import{cn as Et}from"@cleen/ui-core";import{forwardRef as iE,useCallback as ug,useEffect as sE,useRef as pE,useState as lP}from"react";import{jsx as Dt,jsxs as Cs}from"react/jsx-runtime";var dE=iE(function({id:t,required:o,minValue:n=0,maxValue:c=100,step:r=1,defaultValue:l=[n,c],value:i,variant:s="default",onChange:p,onChangeEnd:d,className:g,classNames:m,style:v,styles:y,disabled:u=!1,label:b,labelTooltip:C,labels:x,tooltips:I,infoLabels:P},M){let[A,B]=lP(l??[n,c]),L=i!==void 0?i:A,D=pE(null),[S,N]=lP(null),w=ug(H=>{let V=Math.round((H-n)/r)*r+n;return Math.min(c,Math.max(n,V))},[n,c,r]),F=(L[0]-n)/(c-n)*100,R=Math.min(100,Math.max(0,F)),E=(L[1]-n)/(c-n)*100,G=Math.min(100,Math.max(0,E)),T=ug(H=>{let V=[w(Math.min(H[0],H[1])),w(Math.max(H[0],H[1]))];i===void 0&&B(V),p?.(V)},[w,i,p]),k=ug(H=>{let V=D.current;if(!V)return n;let q=V.getBoundingClientRect(),$=(H-q.left)/q.width;return w(n+$*(c-n))},[n,c,w]),z=H=>V=>{if(u)return;let q=H==="min"?L[0]:L[1],$;switch(V.key){case"ArrowRight":case"ArrowUp":$=q+r;break;case"ArrowLeft":case"ArrowDown":$=q-r;break;case"Home":$=n;break;case"End":$=c;break;default:return}V.preventDefault();let K=H==="min"?[Math.min($,L[1]),L[1]]:[L[0],Math.max($,L[0])];T(K),d?.([w(K[0]),w(K[1])])},U=H=>V=>{u||(V.preventDefault(),N(H))},O=H=>{if(u)return;let V=k(H.clientX),q=Math.abs(V-L[0]),$=Math.abs(V-L[1]);q<$?T([V,L[1]]):T([L[0],V])},_=H=>V=>{u||(V.preventDefault(),N(H))};sE(()=>{if(!S)return;let H=K=>{let pe=k(K.clientX);T(S==="min"?[pe,L[1]]:[L[0],pe])},V=K=>{let pe=k(K.clientX),fe=S==="min"?[pe,L[1]]:[L[0],pe];N(null),d?.(fe)},q=K=>{if(K.touches.length>0){let pe=k(K.touches[0].clientX);T(S==="min"?[pe,L[1]]:[L[0],pe])}},$=K=>{let pe=k(K.changedTouches[0].clientX),fe=S==="min"?[pe,L[1]]:[L[0],pe];N(null),d?.(fe)};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",V),document.addEventListener("touchmove",q),document.addEventListener("touchend",$),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",q),document.removeEventListener("touchend",$)}},[S,L,k,T,d]);let X=H=>Dt("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Dt("div",{className:Et("cleen",g),style:v,ref:M,children:Cs("div",{className:Et("cleen-w-full",m?.container),style:y?.container,children:[b&&Dt(ae,{htmlFor:t,required:o,tooltip:C,...m?.label,...y?.label,children:b}),Cs("div",{className:Et({"cleen-flex cleen-items-center cleen-gap-2":s==="inline"},m?.slider),style:y?.slider,children:[s==="inline"&&x?.minLabel!==void 0&&X(x?.minLabel),Cs("div",{ref:D,className:Et("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":u,"cleen-flex-1":s==="inline"},m?.track),style:y?.track,"aria-disabled":u,onClick:O,children:[Dt("div",{className:Et("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:Dt("div",{className:Et("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{left:`${R}%`,width:`${G-R}%`,...y?.filledTrack}})}),Dt(Ie,{invertColors:!0,isOpen:S==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:x?.tooltip?.(L[0])??L[0]?.toString(),className:Et("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.min?.className),style:{left:`calc(${R}% - 8px)`,...I?.shared?.style,...I?.min?.style},children:Dt("div",{className:Et("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":L[0],"aria-valuemin":n,"aria-valuemax":L[1],"aria-disabled":u,"aria-label":typeof b=="string"?`${b} minimum value`:"Minimum value",onMouseDown:U("min"),onTouchStart:_("min"),onKeyDown:z("min")})}),Dt(Ie,{invertColors:!0,isOpen:S==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:x?.tooltip?.(L[1])??L[1]?.toString(),className:Et("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.max?.className),style:{left:`calc(${G}% - 8px)`,...I?.shared?.style,...I?.max?.style},children:Dt("div",{className:Et("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":L[1],"aria-valuemin":L[0],"aria-valuemax":c,"aria-disabled":u,"aria-label":typeof b=="string"?`${b} maximum value`:"Maximum value",onMouseDown:U("max"),onTouchStart:_("max"),onKeyDown:z("max")})})]}),s==="inline"?x?.maxLabel&&X(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&Cs("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[x?.minLabel&&X(x?.minLabel),x?.maxLabel&&X(x?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&Dt(ne,{...P})]})})});import{cn as Rr}from"@cleen/ui-core";import{forwardRef as mE,useRef as uE,useState as cP}from"react";import{jsx as Tn,jsxs as hE}from"react/jsx-runtime";var fE=mE(function({label:t,infoLabels:o,value:n,onChange:c,amount:r=5,gap:l,size:i,readonly:s,color:p="rgb(var(--cleen-yellow))",className:d,style:g,classNames:m,styles:v,...y},u){let[b,C]=cP(0),x=n!==void 0,I=x?n:b,[P,M]=cP(null),A=P!==null?P+1:I,B=!s,L=uE([]),D=I>0?I-1:0,S=R=>{x||C(R),c?.(R)},N=R=>{R<0||R>=r||(S(R+1),L.current[R]?.focus())},w=(R,E)=>{switch(R.key){case"ArrowRight":case"ArrowUp":R.preventDefault(),N((E+1)%r);break;case"ArrowLeft":case"ArrowDown":R.preventDefault(),N((E-1+r)%r);break;case"Home":R.preventDefault(),N(0);break;case"End":R.preventDefault(),N(r-1);break;default:break}},F=typeof t=="string"?t:"Rating";return Tn("div",{className:Rr("cleen",d),style:g,ref:u,...y,children:hE("div",{className:Rr("cleen-space-y-2",m?.container),style:v?.container,children:[t&&Tn("span",{className:Rr("cleen-font-medium cleen-text-sm cleen-text-foreground",m?.label),style:v?.label,children:t}),Tn("div",{role:B?"radiogroup":"img","aria-label":B?F:`${F}: ${I} out of ${r}`,className:Rr("cleen-flex cleen-gap-3",m?.list),style:{...l?{gap:l}:{},...v?.list},children:Array.from({length:r},(R,E)=>{let G=Tn(Ua,{"aria-hidden":"true",className:Rr("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...v?.star,fill:(s?I:A)>E?p:"transparent"}});return B?Tn("button",{type:"button",ref:T=>{L.current[E]=T},role:"radio","aria-checked":I===E+1,"aria-label":`${E+1} ${E+1===1?"star":"stars"}`,tabIndex:E===D?0:-1,onMouseEnter:()=>M(E),onMouseLeave:()=>M(null),onClick:()=>S(E+1),onKeyDown:T=>w(T,E),className:Rr("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:G},E):Tn("span",{className:"cleen-cursor-default",children:G},E)})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Tn(ne,{...o})]})})});import{cn as co}from"@cleen/ui-core";import{forwardRef as gE}from"react";import{jsx as Ao,jsxs as iP}from"react/jsx-runtime";var sP=gE(({steps:e,activeStep:t=0,orientation:o="horizontal",color:n="rgb(var(--cleen-primary))",className:c,classNames:r,style:l,styles:i,...s},p)=>{let d=o==="vertical";return Ao("div",{ref:p,className:co("cleen",c),style:{...l,width:"100%"},...s,children:Ao("div",{className:co("cleen-flex cleen-w-full",d?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",r?.container),style:{width:"100%",...i?.container},children:e?.map((g,m)=>{let v=m+1<t,y=m+1===t;return iP("div",{className:co("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&&Ao("div",{className:co("cleen-absolute cleen-bg-neutral-200 cleen-transition-all cleen-duration-300",d?"cleen-left-3 cleen-top-7 cleen-w-[2px] cleen-h-[calc(100%-4px)]":"cleen-top-3 cleen-left-[calc(50%+14px)] cleen-h-[2px] cleen-w-[calc(100%+4px)]",v&&"cleen-bg-primary",r?.connector),style:{backgroundColor:v?n:void 0,...i?.connector}}),Ao("div",{className:co("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",v||y?"cleen-border-[2px]":"cleen-border-border",r?.circle),style:{borderColor:y||v?n:void 0,backgroundColor:v?n:"transparent",...i?.circle},children:v?Ao("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):Ao("span",{className:co("cleen-w-2 cleen-h-2 cleen-rounded-full",y?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:y?n:void 0}})}),iP("div",{className:co("cleen-flex cleen-flex-col",d?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[g.title&&Ao("div",{className:co("cleen-font-medium cleen-text-sm",y?"cleen-text-primary":"cleen-text-foreground",r?.title),style:{color:y?n:void 0,...i?.title},children:g.title}),g.subtitle&&Ao("div",{className:co("cleen-text-xs cleen-text-neutral-600",r?.subtitle),style:{color:y?n:void 0,...i?.subtitle},children:g.subtitle})]})]},m)})})})});sP.displayName="Stepper";import{cn as Ee}from"@cleen/ui-core";import{forwardRef as yE,useMemo as dP,useState as Nr}from"react";var pP={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 IE,jsx as Me,jsxs as Lr}from"react/jsx-runtime";var vE=[],bE=yE(function({items:t=vE,value:o,defaultValue:n,onApply:c,onCreate:r,isLoading:l=!1,icon:i,disabled:s=!1,isOpen:p,onOpenChange:d,position:g="bottom-left",zIndex:m,labels:v,className:y,classNames:u,style:b,styles:C,...x},I){let P={...pP,...v},[M,A]=Nr(n??[]),B=o??M,[L,D]=Nr(!1),S=p??L,[N,w]=Nr(B),[F,R]=Nr(""),[E,G]=Nr([]),[T,k]=Nr(!1),z=dP(()=>[...t,...E.filter(j=>!t.some(ce=>ce.id===j.id))],[t,E]),U=F.trim(),O=dP(()=>{let j=U.toLowerCase();return j?z.filter(ce=>ce.label.toLowerCase().includes(j)):z},[z,U]),_=!!U&&!z.some(j=>j.label.toLowerCase()===U.toLowerCase())&&!!r,X=l||T,H=B.length,V=H>0,q=j=>{j&&(w(B),R("")),p===void 0&&D(j),d?.(j)},$=j=>{w(ce=>ce.includes(j)?ce.filter(tt=>tt!==j):[...ce,j])},K=async()=>{if(!(!r||!U||X)){k(!0);try{let j=await r(U);j&&(G(ce=>ce.some(tt=>tt.id===j.id)?ce:[...ce,j]),w(ce=>ce.includes(j.id)?ce:[...ce,j.id]),R(""))}finally{k(!1)}}},pe=j=>{j.key==="Enter"&&_&&(j.preventDefault(),K())},fe=()=>{w([])},me=()=>{let j=z.filter(ce=>N.includes(ce.id));o===void 0&&A(N),c?.(N,j),q(!1)},$e=Lr(IE,{children:[_&&Me("div",{className:"cleen-p-1.5",children:Me(ee,{variant:"borderless-blue",fullWidth:!0,isLoading:X,leftIcon:Me(Na,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{K()},classNames:{container:Ee("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",u?.createButton)},styles:{container:C?.createButton},children:Me("span",{className:"cleen-truncate",children:P.create(U)})})}),O.length===0?_?null:Me("p",{className:Ee("cleen-px-3 cleen-py-4 cleen-text-gray-500 cleen-text-sm cleen-text-center cleen-opacity-50",u?.noData),style:C?.noData,children:z.length===0?P.noData:P.noMatches}):Me("ul",{className:Ee("cleen-flex cleen-flex-col cleen-py-1 cleen-max-h-[300px] cleen-overflow-y-auto cleen-[scrollbar-width:thin] [&::-webkit-scrollbar]:cleen-w-1 [&::-webkit-scrollbar-track]:cleen-bg-transparent [&::-webkit-scrollbar-thumb]:cleen-rounded-full [&::-webkit-scrollbar-thumb]:cleen-bg-neutral-200",u?.list),style:C?.list,children:O.map(j=>Lr("li",{onClick:()=>$(j.id),className:Ee("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 hover:cleen-bg-muted cleen-px-3 cleen-py-2 cleen-transition-colors cleen-cursor-pointer",u?.item),style:C?.item,children:[Me(fl,{className:"cleen-flex-1 cleen-min-w-0",classNames:{container:"cleen-min-w-0",checkboxContainer:"cleen-items-center cleen-min-w-0 [&>div]:cleen-flex-1 [&>div]:cleen-min-w-0",checkbox:u?.checkbox,label:Ee("cleen-text-sm cleen-truncate cleen-cursor-pointer",u?.itemLabel)},styles:{checkbox:C?.checkbox,label:C?.itemLabel},checked:N.includes(j.id),onClick:ce=>ce.stopPropagation(),label:Me("span",{title:j.label,className:"cleen-select-none",children:j.label}),fullTriggerArea:!0}),j.count!==void 0&&Me("span",{className:Ee("cleen-shrink-0 cleen-text-gray-500 cleen-text-sm cleen-tabular-nums cleen-opacity-50 cleen-select-none",u?.count),style:C?.count,children:j.count})]},j.id))})]}),Pe=Lr("div",{className:Ee("cleen-flex cleen-flex-col",u?.content),style:C?.content,role:"dialog",children:[Me(ye,{autoFocus:!0,value:F,onChange:j=>R(j.target.value),onKeyDown:pe,placeholder:P.searchPlaceholder,"aria-label":P.searchPlaceholder,leftIcon:Me(Xt,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:Ee("cleen-shrink-0 cleen-p-1.5 cleen-py-1",u?.search),style:C?.search,classNames:{inputContainer:"cleen-border-0 cleen-shadow-none cleen-rounded-none focus-within:cleen-ring-0",input:"cleen-text-sm"}}),Me(gt,{className:Ee("cleen-shrink-0",u?.divider),style:C?.divider}),Me("div",{className:"cleen-flex-1 cleen-min-h-0",children:$e}),Lr("div",{className:Ee("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-3 cleen-py-2 cleen-border-t cleen-border-border cleen-shrink-0",u?.footer),style:C?.footer,children:[Me("span",{className:Ee("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",u?.footerText),style:C?.footerText,children:N.length>0?P.selected(N.length):P.footer}),Lr("div",{className:Ee("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",u?.footerActions),style:C?.footerActions,children:[Me(ee,{variant:"secondary",onClick:fe,disabled:N.length===0,classNames:{container:Ee("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.clearButton)},styles:{container:C?.clearButton},children:P.clear}),Me(ee,{variant:"primary",onClick:me,classNames:{container:Ee("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",u?.doneButton)},styles:{container:C?.doneButton},children:P.done})]})]})]});return Me(Bl,{ref:I,isOpen:S,onOpenChange:q,position:g,zIndex:m,content:Pe,className:y,style:b,classNames:{trigger:Ee(s&&"cleen-pointer-events-none"),popover:Ee("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",u?.popover)},styles:{popover:C?.popover},...x,children:Lr("button",{type:"button",disabled:s,"aria-label":P.trigger,"aria-haspopup":"dialog","aria-expanded":S,className:Ee("cleen-flex cleen-items-center cleen-gap-1 cleen-bg-background cleen-shadow-sm cleen-px-2.5 cleen-py-2 cleen-border cleen-border-border cleen-rounded-lg cleen-text-muted-foreground cleen-transition-colors cleen-duration-200 hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2",{"cleen-border-primary-300 cleen-bg-primary-50 cleen-text-primary hover:cleen-bg-primary-100":V,"cleen-opacity-50 cleen-cursor-not-allowed":s},u?.trigger,V&&u?.triggerActive),style:{...C?.trigger,...V?C?.triggerActive:{}},children:[i??Me($a,{className:"cleen-size-4 cleen-shrink-0"}),V&&Me("span",{className:Ee("cleen-flex cleen-justify-center cleen-items-center cleen-bg-primary cleen-px-1.5 cleen-rounded-full cleen-min-w-5 cleen-h-5 cleen-font-semibold cleen-text-primary-foreground cleen-text-xs",u?.badge),style:C?.badge,children:H}),Me(jr,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var fg={default:"Default","sans-serif":"Sans-serif",serif:"Serif",monospace:"Monospace",cursive:"Cursive",fantasy:"Fantasy"},hg={white:"White",yellow:"Yellow",green:"Green",cyan:"Cyan",blue:"Blue",magenta:"Magenta",red:"Red",black:"Black"},gg={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:hg,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 yg=10,Ps=1.7777777777777777,vg=1080,Er=-1,bg=.5,Ig=2,mP=.25,Ul=.05,uP=2500,fP=5,hP=.5,Gl=5,gP=480,yP=24,vP=16,xs="--cleen-video-player-height",CE=.045,PE=12,xE=32,bP=`clamp(${PE}px, calc(var(${xs}, 360px) * ${CE}), ${xE}px)`,IP=250,CP=40,Cg="cleen-video-player-caption-style",Oo={fontFamily:"default",fontColor:"white",fontSize:1,backgroundColor:"black",backgroundOpacity:.75},Dr={default:void 0,"sans-serif":"sans-serif",serif:"serif",monospace:"monospace",cursive:"cursive",fantasy:"fantasy"},$l={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]},Ss=[.5,.75,1,1.25,1.5,1.75,2],ws=[0,.25,.5,.75,1],PP=72,xP=240,SP=3,wP={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 SE,useEffect as Pg,useImperativeHandle as wE,useRef as ME}from"react";import{jsx as RE}from"react/jsx-runtime";var kE=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],TE=e=>{let t=kE;return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))},BE=SE(function({playing:t=!1,volume:o,playbackRate:n,...c},r){let l=ME(null);return wE(r,()=>l.current,[]),Pg(()=>{let i=l.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,c.src]),Pg(()=>{l.current&&o!==void 0&&(l.current.volume=o)},[o]),Pg(()=>{l.current&&n!==void 0&&(l.current.playbackRate=n)},[n]),RE("video",{...TE(c),ref:l,width:"100%",height:"100%"})});import{forwardRef as NE}from"react";import LE from"react-player";import{jsx as EE}from"react/jsx-runtime";var xg=NE(function(t,o){return EE(LE,{...t,ref:o,width:"100%",height:"100%"})});var Wl=(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))(Wl||{});var Fr=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),c=t%60,r=l=>String(l).padStart(2,"0");return o>0?`${o}:${r(n)}:${r(c)}`:`${n}:${r(c)}`},Sg=(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,c)=>n.start-c.start);return o.map((n,c)=>{let r=o[c+1]?.start??t,l=n.end!==void 0&&Number.isFinite(n.end)?Math.min(Math.max(n.end,n.start),r):r;return{...n,end:l}}).filter(n=>n.end>n.start)},wg=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),MP=e=>e?Array.from({length:e.length},(t,o)=>({start:e.start(o),end:e.end(o)})):[],kP=(e,t)=>e.length===t.length&&e.every((o,n)=>o.start===t[n].start&&o.end===t[n].end),TP=(e,t,o)=>{let n=o-t;if(!(n>0)||!Number.isFinite(n))return[];let c=e.filter(l=>Number.isFinite(l.start)&&Number.isFinite(l.end)).map(l=>({start:Math.max(l.start,t),end:Math.min(l.end,o)})).filter(l=>l.end>l.start).sort((l,i)=>l.start-i.start),r=[];return c.forEach(l=>{let i=r[r.length-1];i&&l.start<=i.end?i.end=Math.max(i.end,l.end):r.push({...l})}),r.map(l=>({left:(l.start-t)/n,width:(l.end-l.start)/n}))},Bn=({width:e,height:t})=>e>0&&t>0?Math.min(e,t):Math.max(e,t,0),Mg=(e,t)=>{if(!(t!==void 0&&t>0)||e.length===0)return-1;let o=[...e].sort((c,r)=>Bn(c)-Bn(r)||c.bitrate-r.bitrate),n=o.filter(c=>Bn(c)<=t);return(n[n.length-1]??o[0]).index},BP=(e,t)=>{let o=[...e].sort((n,c)=>Bn(c)-Bn(n)||c.bitrate-n.bitrate);return o.map(n=>{let c=Bn(n),r=c>0?t(c):`${Math.round(n.bitrate/1e3)} kbps`,l=o.filter(i=>Bn(i)===c);return{value:n.index,label:c>0&&l.length>1?`${r} (${(n.bitrate/1e6).toFixed(1)} Mbps)`:r}})},DE=(e,t)=>{let o=-1;return e.forEach((n,c)=>{t>=n.start&&(o=c)}),Math.max(o,0)},Xl=(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),RP=(e,t)=>{let o=Array.from(e).filter(n=>n.kind==="chapters");return t&&o.find(n=>n.language===t)||o[0]},NP=e=>Array.from(e).map(t=>({start:t.startTime,end:t.endTime,title:t.text?.replace(/<[^>]*>/g,"").trim()||void 0})),ks=e=>Array.from(e).filter(({kind:t="subtitles"})=>["subtitles","captions"].includes(t)),LP=(e,t,o)=>e.label||e.srcLang||o(t+1),ql=(e,t)=>e.includes(t),kg=e=>{let t=e&&typeof e=="object"?e:{},o=Object.keys($l),n=Object.keys(Dr);return{fontFamily:ql(n,t.fontFamily)?t.fontFamily:Oo.fontFamily,fontColor:ql(o,t.fontColor)?t.fontColor:Oo.fontColor,fontSize:ql(Ss,t.fontSize)?t.fontSize:Oo.fontSize,backgroundColor:ql(o,t.backgroundColor)?t.backgroundColor:Oo.backgroundColor,backgroundOpacity:ql(ws,t.backgroundOpacity)?t.backgroundOpacity:Oo.backgroundOpacity}},Ms=(e,t=1)=>`rgba(${$l[e].join(",")},${t})`,EP=({fontFamily:e,fontColor:t,fontSize:o,backgroundColor:n,backgroundOpacity:c})=>({fontFamily:Dr[e],fontSize:`calc(${bP} * ${o})`,color:Ms(t),backgroundColor:Ms(n,c)});import{cn as Ql}from"@cleen/ui-core";import{forwardRef as _6,useCallback as Ge,useImperativeHandle as z6,useMemo as Hg,useReducer as V6,useRef as Dx,useState as H6}from"react";import{cn as Dn}from"@cleen/ui-core";var _o="cleen-text-[#fff]",Tg="cleen-text-[rgba(255,255,255,0.45)]",DP="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",FP="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",AP="!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)]",zo="focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",Ts="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",Bs="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as _P}from"@cleen/ui-core";import{useLayoutEffect as OE,useRef as _E}from"react";import{useEffect as FE,useState as AE}from"react";var Rs=[],OP=(e,t,o,n,c)=>{let[r,l]=AE(Rs);return FE(()=>{let i=e.current?.textTracks;if(!t||!i)return;let s,p=()=>l(s?.activeCues?Array.from(s.activeCues):Rs),d=()=>{let g=ks(i),m=g[o]??g[0];m!==s&&(s&&(s.removeEventListener("cuechange",p),s.mode="disabled"),m?.addEventListener("cuechange",p),s=m),s&&s.mode!=="hidden"&&(s.mode="hidden"),p()};return d(),i.addEventListener("addtrack",d),i.addEventListener("removetrack",d),()=>{i.removeEventListener("addtrack",d),i.removeEventListener("removetrack",d),s&&(s.removeEventListener("cuechange",p),s.mode="disabled"),l(Rs)}},[t,o,n,c,e]),t?r:Rs};import{jsx as Bg}from"react/jsx-runtime";var zE=e=>typeof VTTCue<"u"&&e instanceof VTTCue?e.getCueAsHTML():"",VE=({cue:e,className:t,style:o})=>{let n=_E(null);return OE(()=>{n.current?.replaceChildren(zE(e))},[e]),Bg("span",{ref:n,className:t,style:o})},zP=({videoRef:e,src:t,showCaptions:o,trackIndex:n,captionStyle:c,pictureInPicture:r,hidden:l,controlsVisible:i,controlsOnHover:s,classNames:p,styles:d})=>{let g=OP(e,o&&!r,n,t,!l);return l||r||g.length===0?null:Bg("div",{className:_P("cleen-left-0 cleen-right-0 cleen-absolute cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-px-4 cleen-pb-3 cleen-text-center cleen-transition-[bottom] cleen-duration-300 cleen-pointer-events-none",i?s?"cleen-bottom-0 group-hover:cleen-bottom-full":"cleen-bottom-full":"cleen-bottom-0",p?.captions),style:d?.captions,children:g.map((m,v)=>Bg(VE,{cue:m,className:_P("cleen-max-w-[80%] cleen-rounded-md cleen-px-[0.5em] cleen-py-[0.2em] cleen-leading-snug cleen-whitespace-pre-line",p?.captionsText),style:{...EP(c),...d?.captionsText}},`${m.id}-${m.startTime}-${v}`))})};import{cn as HE}from"@cleen/ui-core";import{forwardRef as UE}from"react";import{jsx as GE}from"react/jsx-runtime";var Ft=UE(function({label:t,onClick:o,disabled:n,active:c,className:r,style:l,children:i},s){return GE("button",{ref:s,type:"button","aria-label":t,"aria-pressed":c,onClick:o,disabled:n,className:HE("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",zo,r),style:l,children:i})});import{cn as At}from"@cleen/ui-core";import{useRef as $P}from"react";import{useCallback as $E,useEffect as WE,useRef as VP,useState as qE}from"react";var HP=(e,t)=>{let[o,n]=qE(null),c=VP(!1),r=VP(!1),l=$E(s=>{let p=e.current;if(!p||!(t>0))return;let d=p.getBoundingClientRect(),g=d.width>0?Math.min(Math.max((s-d.left)/d.width,0),1):0;n({ratio:g,time:g*t})},[e,t]);return WE(()=>{let s=d=>{c.current&&l(d.clientX)},p=()=>{c.current=!1,r.current||n(null)};return window.addEventListener("pointermove",s),window.addEventListener("pointerup",p),()=>{window.removeEventListener("pointermove",s),window.removeEventListener("pointerup",p)}},[l]),{preview:o,previewHandlers:{onPointerEnter:s=>{r.current=!0,l(s.clientX)},onPointerMove:s=>l(s.clientX),onPointerDown:s=>{c.current=!0,l(s.clientX)},onPointerLeave:()=>{r.current=!1,c.current||n(null)}}}};import{cn as XE}from"@cleen/ui-core";import{Fragment as KE,jsx as UP}from"react/jsx-runtime";var Ns=({buffered:e,start:t,end:o,className:n,style:c})=>UP(KE,{children:TP(e,t,o).map(r=>UP("div",{"aria-hidden":!0,className:XE("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:{...c,left:`${r.left*100}%`,width:`${r.width*100}%`}},r.left))});import{cn as Ls}from"@cleen/ui-core";import{jsx as Es,jsxs as YE}from"react/jsx-runtime";var GP=({chapters:e,duration:t,currentTime:o,buffered:n,classNames:c,styles:r})=>Es("div",{"aria-hidden":!0,className:Ls("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-h-1 -cleen-translate-y-1/2 cleen-pointer-events-none",c?.chapters),style:r?.chapters,children:e.map(l=>Es("div",{className:Ls("cleen-absolute cleen-inset-y-0 cleen-pr-0.5 last:cleen-pr-0",c?.chapter),style:{...r?.chapter,left:`${l.start/t*100}%`,width:`${(l.end-l.start)/t*100}%`},children:YE("div",{className:Ls("cleen-relative cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-h-full cleen-overflow-hidden",c?.chapterTrack),style:r?.chapterTrack,children:[Es(Ns,{buffered:n,start:l.start,end:l.end,className:c?.chapterBuffered,style:r?.chapterBuffered}),Es("div",{className:Ls("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",c?.chapterFill),style:{...r?.chapterFill,width:`${wg(l,o)*100}%`}})]})},l.start))});import{Fragment as QE,jsx as Rn,jsxs as Ds}from"react/jsx-runtime";var WP=({allowBarSeeking:e,chapters:t,duration:o,currentTime:n,buffered:c,onSeek:r,seekLabel:l,progressLabel:i,classNames:s,styles:p})=>{let d=$P(null),g=$P(null),{preview:m,previewHandlers:v}=HP(d,o),y=m?Xl(t,m.time):void 0,u=t.length>0,b=u&&Rn(GP,{chapters:t,duration:o,currentTime:n,buffered:c,classNames:s,styles:p}),C=Rn(Ns,{buffered:c,start:0,end:o,className:s?.seekBuffered,style:p?.seekBuffered}),x=g.current?.offsetWidth||0;if(e){let P=s?.seekSlider?.classNames;return Ds("div",{ref:d,role:"group","aria-label":l,className:At("cleen-relative",s?.seekBar),style:p?.seekBar,...v,children:[b||Rn("div",{"aria-hidden":!0,className:At("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-bg-[rgba(255,255,255,0.3)] cleen-rounded-sm cleen-h-1 cleen-overflow-hidden -cleen-translate-y-1/2 cleen-pointer-events-none",s?.seekTrack),style:p?.seekTrack,children:C}),m&&Ds("div",{ref:g,"aria-hidden":!0,className:At("cleen-bottom-full cleen-absolute cleen-flex cleen-gap-1 cleen-bg-[rgba(0,0,0,0.75)] cleen-mb-2 cleen-px-2 cleen-py-1 cleen-rounded-md cleen-max-w-[16rem] cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap cleen-pointer-events-none",_o,{"cleen-opacity-0":g.current===null},s?.seekTooltip),style:{left:`clamp(0rem, calc(${m.ratio*100}% - ${x/2}px), calc(100% - ${x}px))`,...p?.seekTooltip},children:[Rn("span",{children:Fr(m.time)}),y?.title&&Ds("span",{className:At("cleen-font-medium cleen-truncate",s?.seekTooltipChapter),style:p?.seekTooltipChapter,children:["\xB7 ",y.title]})]}),Rn(kn,{value:n,maxValue:o,step:.01,keyboardStep:Gl,onChange:r,className:At("cleen-relative cleen-flex cleen-items-center cleen-h-3.5 cleen-cursor-pointer",s?.seekSlider?.className),classNames:{...P,track:At("!cleen-h-4",P?.track),path:At("!cleen-bg-transparent",P?.path),filledTrack:At({"!cleen-bg-transparent":u},P?.filledTrack)},tooltip:{isDisabled:!0},...p?.seekSlider})]})}let I=o>0?Math.min(n/o*100,100):0;return Rn("div",{role:"progressbar","aria-label":i,"aria-valuemin":0,"aria-valuemax":Math.floor(o),"aria-valuenow":Math.floor(n),className:At("cleen-relative cleen-h-1",{"cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-overflow-hidden":!u},s?.seekBar),style:p?.seekBar,children:b||Ds(QE,{children:[C,Rn("div",{className:At("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-rounded-full cleen-transition-[width] cleen-duration-200 cleen-ease-linear",s?.progressFill),style:{...p?.progressFill,width:`${I}%`}})]})})};import{cn as Vo}from"@cleen/ui-core";import{useEffect as e6,useRef as JP,useState as jP}from"react";import{cn as ZE}from"@cleen/ui-core";import{cn as Ot}from"@cleen/ui-core";import{useId as qP}from"react";import{jsx as Nn,jsxs as Rg}from"react/jsx-runtime";var Kl=({title:e,children:t,onReset:o,resetLabel:n,classNames:c,styles:r})=>{let l=qP();return Rg("section",{"aria-labelledby":l,className:Ot("cleen-flex cleen-flex-col cleen-gap-3",c?.settingsGroup),style:r?.settingsGroup,children:[Rg("div",{className:Ot("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",c?.settingsGroupHeader),style:r?.settingsGroupHeader,children:[Nn("h3",{id:l,className:Ot("cleen-font-semibold cleen-text-foreground cleen-text-xs",c?.settingsGroupTitle),style:r?.settingsGroupTitle,children:e}),o&&Nn("button",{type:"button",onClick:o,className:Ot("cleen-font-semibold cleen-text-xs cleen-text-primary hover:cleen-underline",c?.settingsResetButton),style:r?.settingsResetButton,children:n})]}),t]})},io=({label:e,options:t,value:o,onChange:n,classNames:c,styles:r})=>{let l=qP(),i=Nn("div",{role:e?"group":void 0,"aria-labelledby":e?l:void 0,className:Ot("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-1.5",c?.settingsOptions),style:r?.settingsOptions,children:t.map(s=>{let p=s.value===o;return s.swatch?Nn("button",{type:"button","aria-label":s.ariaLabel,"aria-pressed":p,title:s.ariaLabel,onClick:()=>n(s.value),className:Ot("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",c?.settingsSwatch,p&&["cleen-ring-2 cleen-ring-primary cleen-ring-offset-2 cleen-ring-offset-background",c?.settingsSwatchActive]),style:{backgroundColor:s.swatch,...s.style,...r?.settingsSwatch,...p?r?.settingsSwatchActive:void 0}},s.value):Nn("button",{type:"button","aria-label":s.ariaLabel,"aria-pressed":p,onClick:()=>n(s.value),className:Ot("cleen-rounded focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",c?.settingsOption,p&&c?.settingsOptionActive),style:{...s.style,...r?.settingsOption,...p?r?.settingsOptionActive:void 0},children:Nn(we,{color:p?"primary":"foreground-transparent",variant:"sleek",className:c?.settingsOptionBadge?.className,classNames:{...c?.settingsOptionBadge?.classNames,container:Ot("cleen-font-medium",p?"hover:cleen-bg-primary-100":"hover:cleen-bg-muted",c?.settingsOptionBadge?.classNames?.container)},...r?.settingsOptionBadge,children:s.label})},s.value)})});return e?Rg("div",{className:Ot("cleen-flex cleen-flex-col cleen-gap-1.5",c?.settingsField),style:r?.settingsField,children:[Nn("span",{id:l,className:Ot("cleen-text-muted-foreground cleen-text-xs",c?.settingsFieldLabel),style:r?.settingsFieldLabel,children:e}),i]}):i};import{jsx as Ln,jsxs as XP}from"react/jsx-runtime";var Ng=-1,JE=e=>`${Math.round(e*100)}%`,KP=({tracks:e,trackIndex:t,showCaptions:o,captionStyle:n,onCaptionStyleChange:c,dispatch:r,labels:l,classNames:i,styles:s})=>{let p={classNames:i,styles:s},d=t<e.length?t:0,g=[{value:Ng,label:l.captionsOff},...e.map((u,b)=>({value:b,label:LP(u,b,l.captionsTrack)}))],m=Object.keys(Dr).map(u=>({value:u,label:l.captionFontFamilies[u]??fg[u],style:{fontFamily:Dr[u]}})),v=Object.keys($l).map(u=>{let b=l.captionColors[u]??hg[u];return{value:u,label:b,ariaLabel:b,swatch:Ms(u)}}),y=u=>u.map(b=>({value:b,label:JE(b)}));return XP("div",{className:ZE("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",i?.captionsSettings),style:s?.captionsSettings,children:[Ln(Kl,{title:l.language,...p,children:Ln(io,{options:g,value:o?d:Ng,onChange:u=>r(u===Ng?{type:"hideCaptions"}:{type:"selectCaptionsTrack",index:u}),...p})}),XP(Kl,{title:l.captionStyle,onReset:()=>c(Oo),resetLabel:l.resetCaptionStyle,...p,children:[Ln(io,{label:l.fontFamily,options:m,value:n.fontFamily,onChange:u=>c({fontFamily:u}),...p}),Ln(io,{label:l.fontColor,options:v,value:n.fontColor,onChange:u=>c({fontColor:u}),...p}),Ln(io,{label:l.fontSize,options:y(Ss),value:n.fontSize,onChange:u=>c({fontSize:u}),...p}),Ln(io,{label:l.backgroundColor,options:v,value:n.backgroundColor,onChange:u=>c({backgroundColor:u}),...p}),Ln(io,{label:l.backgroundOpacity,options:y(ws),value:n.backgroundOpacity,onChange:u=>c({backgroundOpacity:u}),...p})]})]})};import{cn as jE}from"@cleen/ui-core";import{jsx as Lg}from"react/jsx-runtime";var YP=({quality:e,labels:t,classNames:o,styles:n})=>{let c=BP(e.levels,t.qualityLevel),r=c.find(i=>i.value===e.current)?.label,l=[{value:Er,label:t.qualityAuto(r)},...c];return Lg("div",{className:jE("cleen-flex cleen-flex-col cleen-gap-4 cleen-p-3",o?.qualitySettings),style:n?.qualitySettings,children:Lg(Kl,{title:t.quality,classNames:o,styles:n,children:Lg(io,{options:l,value:e.selected,onChange:e.onChange,classNames:o,styles:n})})})};import{cn as Fs}from"@cleen/ui-core";import{jsx as Eg,jsxs as QP}from"react/jsx-runtime";var ZP=({playbackRate:e,dispatch:t,label:o,classNames:n,styles:c})=>QP("div",{className:Fs("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",n?.speedContent),style:c?.speedContent,children:[QP("div",{className:Fs("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",n?.speedHeader),style:c?.speedHeader,children:[Eg("span",{className:n?.speedLabel,style:c?.speedLabel,children:o}),Eg("span",{className:Fs("cleen-tabular-nums cleen-text-primary",n?.speedValue),style:c?.speedValue,children:`${e.toFixed(2)}\xD7`})]}),Eg(kn,{minValue:bg,maxValue:Ig,step:mP,value:e,onChange:r=>t({type:"setPlaybackRate",playbackRate:r}),className:Fs("cleen-w-full",n?.speedSlider?.className),classNames:n?.speedSlider?.classNames,labels:{minLabel:`${bg}\xD7`,maxLabel:`${Ig}\xD7`},...c?.speedSlider})]});import{jsx as Ct}from"react/jsx-runtime";var Ar=18,ex=["button:not(:disabled)","[href]","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)","[tabindex]"].map(e=>`${e}:not([tabindex="-1"])`).join(", "),tx=({containerRef:e,portalContainer:t,isOpen:o,onOpenChange:n,showQualityTab:c,quality:r,showSpeedTab:l,showCaptionsTab:i,playbackRate:s,captionTracks:p,captionsTrackIndex:d,showCaptions:g,captionStyle:m,onCaptionStyleChange:v,dispatch:y,labels:u,iconSize:b,classNames:C,styles:x})=>{let[I,P]=jP(0),[M,A]=jP(),B=JP(null),L=JP(null),D=E=>{n(!1),E&&B.current?.focus()};e6(()=>{if(!o)return;let E=requestAnimationFrame(()=>{let T=L.current;(T?.querySelector('[role="tab"][aria-selected="true"]')??T?.querySelector(ex))?.focus({preventScroll:!0})}),G=T=>{T.key==="Escape"&&(n(!1),document.activeElement===B.current&&B.current?.focus())};return document.addEventListener("keydown",G),()=>{cancelAnimationFrame(E),document.removeEventListener("keydown",G)}},[o,n]);let S=C?.settingsPopover?.classNames,N=C?.settingsTabs?.classNames,w=E=>{if(E){let G=e.current?.clientHeight;A(G===void 0?void 0:Math.min(xP,G-PP))}n(E)},F=E=>{if(E.stopPropagation(),E.key==="Escape"){D(!0);return}if(E.key==="Tab"&&L.current){let G=Array.from(L.current.querySelectorAll(ex)),T=G[0],k=G[G.length-1];E.shiftKey&&document.activeElement===T?(E.preventDefault(),k?.focus()):!E.shiftKey&&document.activeElement===k&&(E.preventDefault(),T?.focus())}},R=[...c?[{id:"quality",label:Ct(Kr,{width:Ar,height:Ar}),content:Ct(YP,{quality:r,labels:u,classNames:C,styles:x})}]:[],...l?[{id:"speed",label:Ct(Ha,{width:Ar,height:Ar}),content:Ct(ZP,{playbackRate:s,dispatch:y,label:u.playbackSpeed,classNames:C,styles:x})}]:[],...i?[{id:"captions",label:Ct(oa,{width:Ar,height:Ar}),content:Ct(KP,{tracks:p,trackIndex:d,showCaptions:g,captionStyle:m,onCaptionStyleChange:v,dispatch:y,labels:u,classNames:C,styles:x})}]:[]];return Ct(Bl,{position:"top-right",isOpen:o,onOpenChange:w,portalContainer:t,className:C?.settingsPopover?.className,classNames:{...S,popover:Vo("!cleen-w-72 cleen-flex cleen-flex-col cleen-overflow-hidden",S?.popover),trigger:Vo("cleen-flex cleen-items-center",S?.trigger)},...x?.settingsPopover,styles:{...x?.settingsPopover?.styles,popover:{height:M,...x?.settingsPopover?.styles?.popover}},content:Ct("div",{ref:L,className:"cleen-flex cleen-flex-col cleen-min-h-0",onKeyDown:F,onDoubleClick:E=>E.stopPropagation(),children:Ct(Sl,{tabs:R,currentTabIndex:Math.min(I,R.length-1),onTabChange:P,variant:"underlined",className:Vo("cleen-flex cleen-flex-col cleen-min-h-0",C?.settingsTabs?.className),classNames:{...N,container:Vo("cleen-flex cleen-flex-col cleen-min-h-0",N?.container),list:Vo("cleen-shrink-0 cleen-mb-0 cleen-px-3 cleen-pt-2",N?.list),tab:Vo("cleen-pb-2",N?.tab),content:Vo("cleen-min-h-0 cleen-overflow-y-auto",N?.content)},...x?.settingsTabs})}),children:Ct(Ft,{ref:B,label:u.settings,active:o,className:Vo(C?.controlButton,C?.settingsButton),style:{...x?.controlButton,...x?.settingsButton},children:Ct(Aa,{width:b,height:b})})})};import{cn as ox}from"@cleen/ui-core";import{jsx as Dg}from"react/jsx-runtime";var nx=({hasTracks:e,showCaptions:t,onToggle:o,portalContainer:n,labels:c,classNames:r,styles:l})=>{let i=r?.subtitlesBadge?.classNames;return Dg(Ie,{label:e?c.subtitles:c.noSubtitles,className:r?.subtitlesTooltip?.className,classNames:r?.subtitlesTooltip?.classNames,portalContainer:n,...l?.subtitlesTooltip,children:Dg("button",{type:"button","aria-label":c.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:o,className:ox("cleen-rounded-md disabled:cleen-opacity-40",zo,r?.subtitlesButton),style:l?.subtitlesButton,children:Dg(we,{variant:"sleek",className:r?.subtitlesBadge?.className,classNames:{...i,container:ox(DP,{[FP]:e},{[AP]:t},i?.container)},...l?.subtitlesBadge,children:c.subtitlesBadge})})})};import{jsx as En,jsxs as t6}from"react/jsx-runtime";var rx=({muted:e,volume:t,size:o})=>e||t===0?En(Qa,{width:o,height:o}):t<.75?En(Ya,{width:o,height:o}):En(Ka,{width:o,height:o}),ax=({isFullscreen:e,size:t})=>e?En(wa,{width:t,height:t}):En(Pa,{width:t,height:t}),Or=({forward:e,seconds:t,size:o})=>t6("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[En(e?Da:Ea,{width:o,height:o}),En("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(o*.34)},children:t})]});import{cn as As}from"@cleen/ui-core";import{jsx as Os,jsxs as o6}from"react/jsx-runtime";var lx=({muted:e,volume:t,dispatch:o,labels:n,iconSize:c,classNames:r,styles:l})=>o6("div",{className:As("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2 cleen-min-w-0",r?.volume),style:l?.volume,children:[Os(Ft,{label:e?n.unmute:n.mute,active:e,onClick:()=>o({type:"toggleMuted"}),className:As(r?.controlButton,r?.muteButton),style:{...l?.controlButton,...l?.muteButton},children:Os(rx,{muted:e,volume:t,size:c})}),Os("div",{role:"group","aria-label":n.volume,className:As("cleen-min-w-0 cleen-grid cleen-grid-cols-[0fr] focus-within:cleen-grid-cols-[1fr] group-hover/volume:cleen-grid-cols-[1fr] cleen-opacity-0 focus-within:cleen-opacity-100 group-hover/volume:cleen-opacity-100 cleen-w-0 focus-within:cleen-w-24 group-hover/volume:cleen-w-24 cleen-transition-all cleen-duration-200",r?.volumeSliderContainer),style:l?.volumeSliderContainer,children:Os(kn,{minValue:0,maxValue:1,step:Ul,value:e?0:t,onChange:i=>o({type:"setVolume",volume:i,muted:i===0}),className:As("cleen-w-full",r?.volumeSlider?.className),classNames:r?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...l?.volumeSlider})})]});import{jsx as Te,jsxs as Yl}from"react/jsx-runtime";var cx=({containerRef:e,portalContainer:t,videoRef:o,src:n,state:c,dispatch:r,isShown:l,allowBarSeeking:i,chapters:s,buffered:p,seekStep:d,quality:g,hasTracks:m,captionTracks:v,captionStyle:y,onCaptionStyleChange:u,onSettingsOpenChange:b,visible:C,hidden:x,controlsOnHover:I,onSeek:P,onSeekBy:M,onTogglePlay:A,onToggleFullscreen:B,pictureInPictureSupported:L,onTogglePictureInPicture:D,labels:S,compact:N,classNames:w,styles:F})=>{let{playing:R,currentTime:E,duration:G,muted:T,volume:k,playbackRate:z,showCaptions:U,captionsTrackIndex:O,settingsOpen:_,isPictureInPicture:X,isFullscreen:H}=c,V=N?vP:yP,q=Xl(s,E)?.title,$=I&&!_,K=l("quality")&&g.levels.length>0,pe=l("speed"),fe=l("subtitles")&&v.length>0,me=$e=>({className:Dn(w?.controlButton,w?.[$e]),style:{...F?.controlButton,...F?.[$e]}});return Yl("div",{className:Dn("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-pointer-events-none",{"cleen-hidden":x},w?.controlBar),style:F?.controlBar,children:[Te(zP,{videoRef:o,src:n,showCaptions:U,trackIndex:O,captionStyle:y,pictureInPicture:X,hidden:x,controlsVisible:C,controlsOnHover:$,classNames:w,styles:F}),Yl("div",{className:Dn("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",w?.controls),style:F?.controls,children:[l("seekbar")&&Te(WP,{allowBarSeeking:i,chapters:s,duration:G,currentTime:E,buffered:p,onSeek:P,seekLabel:S.seek,progressLabel:S.progress,classNames:w,styles:F}),Yl("div",{className:Dn("cleen-flex cleen-items-center","cleen-gap-2.5",{"sm:cleen-gap-3.5":!N},_o,w?.controlsRow),style:F?.controlsRow,children:[l("play")&&!N&&Te(Ft,{label:R?S.pause:S.play,onClick:A,...me("playButton"),children:R?Te(ft,{width:V,height:V}):Te(ht,{width:V,height:V})}),l("backward")&&Te(Ft,{label:S.seekBackward(d),onClick:()=>M(-d),...me("backwardButton"),children:Te(Or,{seconds:d,size:V})}),l("forward")&&Te(Ft,{label:S.seekForward(d),onClick:()=>M(d),...me("forwardButton"),children:Te(Or,{forward:!0,seconds:d,size:V})}),l("volume")&&Te(lx,{muted:T,volume:k,dispatch:r,labels:S,iconSize:V,classNames:w,styles:F}),l("time")&&Yl("span",{className:Dn("cleen-font-semibold cleen-tabular-nums cleen-text-xs cleen-whitespace-nowrap",{"cleen-text-xxs":N},w?.time),style:F?.time,children:[Te("span",{className:w?.currentTime,style:F?.currentTime,children:Fr(E)})," ",Yl("span",{className:Dn("cleen-font-medium",Tg,w?.duration),style:F?.duration,children:["/ ",Fr(G)]})]}),q?Te("span",{title:q,className:Dn("cleen-flex-1 cleen-min-w-0 cleen-font-medium cleen-text-[13px] cleen-truncate",Tg,w?.chapterTitle),style:F?.chapterTitle,children:q}):Te("span",{className:"cleen-flex-1"}),l("subtitles")&&m&&!N&&Te(nx,{hasTracks:m,showCaptions:U,onToggle:()=>r({type:"toggleCaptions"}),portalContainer:t,labels:S,classNames:w,styles:F}),l("settings")&&(K||pe||fe)&&Te(tx,{containerRef:e,portalContainer:t,isOpen:_,onOpenChange:b,showQualityTab:K,quality:g,showSpeedTab:pe,showCaptionsTab:fe,playbackRate:z,captionTracks:v,captionsTrackIndex:O,showCaptions:U,captionStyle:y,onCaptionStyleChange:u,dispatch:r,labels:S,iconSize:V,classNames:w,styles:F}),l("pictureInPicture")&&L&&Te(Ft,{label:X?S.exitPictureInPicture:S.pictureInPicture,active:X,onClick:D,...me("pictureInPictureButton"),children:Te(Ba,{width:V,height:V})}),l("fullscreen")&&Te(Ft,{label:H?S.exitFullscreen:S.fullscreen,active:H,onClick:B,...me("fullscreenButton"),children:Te(ax,{isFullscreen:H,size:V})})]})]})]})};import{cn as ix}from"@cleen/ui-core";import{cn as n6}from"@cleen/ui-core";import{jsx as r6}from"react/jsx-runtime";var Fg=({label:e,onClick:t,className:o,style:n,children:c})=>r6("button",{type:"button","aria-label":e,onClick:t,className:n6("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",Ts,Bs,_o,zo,o),style:n,children:c});import{jsx as Fn,jsxs as a6}from"react/jsx-runtime";var sx=({playing:e,seekStep:t,visible:o,hidden:n,controlsOnHover:c,isShown:r,onTogglePlay:l,onSeekBy:i,labels:s,classNames:p,styles:d})=>a6("div",{className:ix("cleen-relative cleen-flex cleen-items-center cleen-gap-6 cleen-transition-opacity cleen-duration-300",o?c?"cleen-opacity-0 group-hover:cleen-opacity-100":"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":n},p?.overlay),style:d?.overlay,children:[r("backward")&&Fn(Fg,{label:s.seekBackward(t),onClick:()=>i(-t),className:p?.overlayButton,style:d?.overlayButton,children:Fn(Or,{seconds:t,size:26})}),r("play")&&Fn("button",{type:"button","aria-label":e?s.pause:s.play,onClick:l,className:ix("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",Ts,Bs,_o,zo,p?.overlayPlayButton),style:d?.overlayPlayButton,children:e?Fn(ft,{width:28,height:28}):Fn(ht,{width:28,height:28})}),r("forward")&&Fn(Fg,{label:s.seekForward(t),onClick:()=>i(t),className:p?.overlayButton,style:d?.overlayButton,children:Fn(Or,{forward:!0,seconds:t,size:26})})]});import{cn as Ag}from"@cleen/ui-core";import{jsx as px,jsxs as l6}from"react/jsx-runtime";var dx=({label:e,subLabel:t,classNames:o,styles:n})=>l6("div",{className:Ag("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:[px("span",{className:Ag("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",o?.placeholderLabel),style:n?.placeholderLabel,children:e}),t&&px("span",{className:Ag("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",o?.placeholderSubLabel),style:n?.placeholderSubLabel,children:t})]});import{useEffect as mx,useState as c6}from"react";var Og=[],ux=["progress","timeupdate","loadedmetadata","durationchange","seeked","emptied"],fx=(e,t,o)=>{let[n,c]=c6(Og);return mx(()=>{c(Og)},[t]),mx(()=>{let r=e.current;if(!r)return;let l=()=>{let i=MP(r.buffered);c(s=>kP(s,i)?s:i.length>0?i:Og)};return l(),ux.forEach(i=>r.addEventListener(i,l)),()=>ux.forEach(i=>r.removeEventListener(i,l))},[e,t,o]),n};import{useCallback as i6,useState as s6}from"react";var p6=()=>{try{let e=window.localStorage.getItem(Cg);return kg(e?JSON.parse(e):void 0)}catch{return kg(void 0)}},hx=()=>{let[e,t]=s6(p6),o=i6(n=>{t(c=>{let r={...c,...n};try{window.localStorage.setItem(Cg,JSON.stringify(r))}catch{}return r})},[]);return{captionStyle:e,updateCaptionStyle:o}};import{useEffect as d6,useState as m6}from"react";var _g=[],gx=(e,t,o,n)=>{let[c,r]=m6(_g);return d6(()=>{let l=e.current,i=l?.textTracks;if(!l||!i)return;let s,p,d=()=>{let y=s?.cues,u=!!(y&&y.length>0);return r(u&&y?NP(y):_g),u},g=()=>{clearInterval(p);let y=0;p=setInterval(()=>{y+=1,(d()||y>=CP)&&clearInterval(p)},IP)},m=()=>{let y=RP(i,t);y!==s&&(s&&(s.removeEventListener("cuechange",d),s.mode="disabled"),y?.addEventListener("cuechange",d),s=y),s&&s.mode!=="hidden"&&(s.mode="hidden"),!d()&&s&&g()},v=y=>{y.target instanceof HTMLTrackElement&&d()};return m(),i.addEventListener("addtrack",m),i.addEventListener("removetrack",m),l.addEventListener("load",v,!0),()=>{clearInterval(p),i.removeEventListener("addtrack",m),i.removeEventListener("removetrack",m),l.removeEventListener("load",v,!0),s&&(s.removeEventListener("cuechange",d),s.mode="disabled"),r(_g)}},[e,t,o,n]),c};import{useEffect as u6,useState as f6}from"react";var yx=e=>{let[t,o]=f6(!1);return u6(()=>{let n=e.current;if(!n||typeof ResizeObserver>"u")return;let c=new ResizeObserver(([r])=>{o(r.contentRect.width<gP)});return c.observe(n),()=>c.disconnect()},[e]),t};import{useCallback as _t,useEffect as h6,useRef as vx,useState as g6}from"react";var bx=e=>{try{return e.matches(":focus-visible")}catch{return!1}},y6=()=>typeof window<"u"&&window.matchMedia?.("(hover: none)").matches?"touch":"mouse",Ix=(e,t,o,n,c)=>{let r=vx(void 0),l=vx(void 0),[i,s]=g6(y6),p=_t(()=>{let P=n.current,M=document.activeElement;return!!P&&!!M&&M!==P&&P.contains(M)&&bx(M)},[n]),d=_t(()=>{clearTimeout(r.current);let P=()=>{r.current=setTimeout(()=>{if(p()){P();return}o({type:"setControlsActive",controlsActive:!1})},uP)};P()},[o,p]),g=_t(()=>{o({type:"setControlsActive",controlsActive:!0}),d()},[o,d]),m=_t(()=>{e&&!p()&&(clearTimeout(r.current),o({type:"setControlsActive",controlsActive:!1}))},[o,p,e]);h6(()=>{if(!e){clearTimeout(r.current),o({type:"setControlsActive",controlsActive:!0});return}return d(),()=>clearTimeout(r.current)},[o,e,d]);let v=!e||t,y=_t(P=>{P.pointerType==="mouse"&&(s("mouse"),g())},[g]),u=_t(P=>{P.pointerType==="mouse"&&m()},[m]),b=_t(P=>{if(l.current=P.pointerType,P.pointerType!=="touch"){s("mouse");return}s("touch"),P.target!==c.current&&g()},[c,g]),C=_t(P=>{P.metaKey||P.ctrlKey||P.altKey||(s("keyboard"),g())},[g]),x=_t(P=>{P.target!==P.currentTarget&&bx(P.target)&&(s("keyboard"),g())},[g]),I=_t(()=>l.current!=="touch"?!1:(v&&e?m():g(),!0),[v,m,e,g]);return{controlsVisible:v,inputMode:i,revealControls:g,handleMediaClick:I,containerHandlers:{onPointerMove:y,onPointerLeave:u,onPointerDown:b,onKeyDown:C,onFocus:x}}};import{useCallback as v6,useEffect as b6}from"react";var Cx=(e,t,o)=>(b6(()=>{let n=()=>o({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",n),()=>document.removeEventListener("fullscreenchange",n)},[e,o]),v6(()=>{let n=e.current;!n||!t||(document.fullscreenElement?document.exitFullscreen():n.requestFullscreen?.())},[e,t]));import{useLayoutEffect as I6,useRef as C6}from"react";var Px=(e,t)=>{let o=C6(null);I6(()=>{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 c=o.current;o.current=null,c?.isConnected&&document.activeElement===n&&c.focus({preventScroll:!0})},[e,t])};import{useCallback as P6}from"react";var x6='input, textarea, select, [contenteditable]:not([contenteditable="false"])',S6='button, a[href], [role="button"], [role="tab"]',w6='[role="slider"], [role="radiogroup"], [role="tablist"]',M6=e=>{let t=e.target;return t===e.currentTarget?!1:t.closest(x6)?!0:e.key===" "||e.key==="Enter"?!!t.closest(S6):e.key.startsWith("Arrow")||e.key==="Home"||e.key==="End"?!!t.closest(w6):!1},xx=({volume:e,canSeekBackward:t,canSeekForward:o,canUseVolume:n,canUseCaptions:c,dispatch:r,seekBy:l,seekToPercentage:i,togglePlay:s,toggleFullscreen:p,restart:d})=>P6(g=>{if(g.metaKey||g.ctrlKey||g.altKey||M6(g))return;let m=(y,u=!0)=>{u&&(g.preventDefault(),y())},v=y=>r({type:"setVolume",volume:y,muted:!1});switch(g.key){case"ArrowLeft":return m(()=>l(-Gl),t);case"ArrowRight":return m(()=>l(Gl),o);case"ArrowUp":return m(()=>v(Math.min(e+Ul,1)),n);case"ArrowDown":return m(()=>v(Math.max(e-Ul,0)),n);case"f":return m(p);case"m":return m(()=>r({type:"toggleMuted"}),n);case"r":return m(d);case"c":return m(()=>{c&&r({type:"toggleCaptions"})});case"0":return m(()=>i(0));case"1":return m(()=>i(.1));case"2":return m(()=>i(.2));case"3":return m(()=>i(.3));case"4":return m(()=>i(.4));case"5":return m(()=>i(.5));case"6":return m(()=>i(.6));case"7":return m(()=>i(.7));case"8":return m(()=>i(.8));case"9":return m(()=>i(.9));case" ":return m(s);default:return}},[t,o,c,n,r,d,l,i,p,s,e]);import{useCallback as k6,useEffect as Sx,useRef as T6,useState as B6}from"react";var zg=()=>{},wx=e=>!!e&&typeof document<"u"&&document.pictureInPictureEnabled===!0&&typeof e.requestPictureInPicture=="function"&&!e.disablePictureInPicture,Mx=(e,t,o,n,c)=>{let[r,l]=B6(!1),i=T6(!1);Sx(()=>{let p=e.current;if(l(wx(p)),!p)return;let d=v=>{i.current=v,c({type:"setPictureInPicture",isPictureInPicture:v})},g=()=>d(!0),m=()=>d(!1);return p.addEventListener("enterpictureinpicture",g),p.addEventListener("leavepictureinpicture",m),()=>{p.removeEventListener("enterpictureinpicture",g),p.removeEventListener("leavepictureinpicture",m)}},[e,o,n,c]),Sx(()=>()=>{i.current&&document.pictureInPictureElement&&document.exitPictureInPicture().catch(zg)},[]);let s=k6(()=>{let p=e.current;!t||!wx(p)||(i.current&&document.pictureInPictureElement?document.exitPictureInPicture().catch(zg):p?.requestPictureInPicture().catch(zg))},[t,e]);return{isSupported:t&&r,togglePictureInPicture:s}};import{useEffect as R6}from"react";var kx=e=>{R6(()=>{let t=e.current;if(!t||typeof ResizeObserver>"u")return;let o=new ResizeObserver(([n])=>{t.style.setProperty(xs,`${n.contentRect.height}px`)});return o.observe(t),()=>{o.disconnect(),t.style.removeProperty(xs)}},[e])};import{useCallback as N6,useEffect as Tx,useRef as L6,useState as _s}from"react";var Vg=[],E6=e=>{let t=e?.api;return t&&Array.isArray(t.levels)&&typeof t.on=="function"?t:void 0},D6=e=>e.map((t,o)=>({index:o,width:t.width??0,height:t.height??0,bitrate:t.bitrate??0})),Bx=(e,t,o,n)=>{let[c,r]=_s(),[l,i]=_s(Vg),[s,p]=_s(Er),[d,g]=_s(-1),m=L6(n);m.current=n,Tx(()=>{let y=E6(e.current);if(!y)return;let u=()=>{let x=D6(y.levels);y.autoLevelCapping=Mg(x,m.current),i(x.length>1?x:Vg),p(y.autoLevelEnabled?Er:y.currentLevel),g(y.currentLevel)},b=(x,I)=>g(I.level),C=()=>{r(void 0),i(Vg),p(Er),g(-1)};return r(y),u(),y.on("hlsManifestParsed",u),y.on("hlsLevelsUpdated",u),y.on("hlsLevelSwitched",b),y.on("hlsDestroying",C),()=>{y.off("hlsManifestParsed",u),y.off("hlsLevelsUpdated",u),y.off("hlsLevelSwitched",b),y.off("hlsDestroying",C)}},[e,t,o]),Tx(()=>{c&&(c.autoLevelCapping=Mg(l,n))},[c,l,n]);let v=N6(y=>{c&&(c.nextLevel=y,p(y))},[c]);return{levels:l,selected:s,current:d,onChange:v}};import{useCallback as zs,useEffect as F6,useRef as A6}from"react";var Rx=(e,t,o,n)=>{let c=A6(0);F6(()=>{c.current=0},[o]);let r=zs(p=>{let d=e.current;if(!d||!Number.isFinite(d.duration))return;n();let g=t?d.duration:Math.min(Math.max(c.current,d.currentTime),d.duration);d.currentTime=Math.min(Math.max(p,0),g)},[t,n,e]),l=zs(p=>{let d=e.current;!d||!Number.isFinite(d.duration)||r(d.duration*Math.min(Math.max(p,0),1))},[r,e]),i=zs(p=>r((e.current?.currentTime??0)+p),[r,e]),s=zs(p=>{let d=e.current;!d||!Number.isFinite(d.duration)||(n(),d.currentTime=Math.min(Math.max(p,0),d.duration))},[n,e]);return{seekTo:r,seekToPercentage:l,seekBy:i,jumpTo:s,watchedTimeRef:c}};import{useCallback as Nx,useRef as O6}from"react";var Lx=(e,t)=>{let o=O6({seconds:e,src:null,attempts:0,done:!1}),n=Nx(r=>{let l=o.current;if(!r?.src||l.done||(l.src===null&&(l.src=r.src),l.src!==r.src))return;let{seconds:i}=l,s=Number.isFinite(r.duration);if(i===void 0||!Number.isFinite(i)||i<=0||s&&i>r.duration){l.done=!0;return}s&&(l.attempts+=1,Math.abs(r.currentTime-i)>hP?r.currentTime=i:l.done=!0,l.attempts>=fP&&(l.done=!0),t({type:"seek",currentTime:i}))},[t]),c=Nx(()=>{o.current.done=!0},[]);return{applyStartTime:n,cancelStartTime:c}};var Ex=(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 An,jsxs as Ax}from"react/jsx-runtime";var U6=[],Fx=[],G6=_6(function({src:t,tracks:o=U6,startTime:n,allowBarSeeking:c=!0,allowSeekingPastWatched:r=!0,chapters:l,hiddenControls:i=Fx,hiddenOverlayControls:s=Fx,aspectRatio:p=Ps,controlsOnHover:d=!1,seekStep:g=10,maxQuality:m=vg,engine:v=xg,labels:y,onTimeChange:u,onDurationChange:b,onPause:C,onEnded:x,className:I,classNames:P,style:M,styles:A,...B},L){let D=Dx(null),S=Dx(null),[N,w]=V6(Ex,wP),{playing:F,duration:R,muted:E,volume:G,playbackRate:T,isLoading:k,isFullscreen:z}=N,U=Hg(()=>({...gg,...y}),[y]),O=Hg(()=>ks(o),[o]),_=O.length>0,{captionStyle:X,updateCaptionStyle:H}=hx(),V=ie=>!i.includes(ie),q=ie=>!s.includes(ie),$=V("volume"),K=V("fullscreen"),pe=V("pictureInPicture"),fe=_&&V("subtitles"),me=V("backward")||q("backward"),$e=V("forward")||q("forward"),{applyStartTime:Pe,cancelStartTime:j}=Lx(n,w),{seekTo:ce,seekToPercentage:tt,seekBy:We,jumpTo:Be,watchedTimeRef:De}=Rx(S,r,t,j),{controlsVisible:Ve,inputMode:Q,revealControls:xe,handleMediaClick:Re,containerHandlers:ge}=Ix(F,N.controlsActive||N.settingsOpen,w,D,S),qe=d&&Q==="mouse",ot=Ge(ie=>{w({type:"setSettingsOpen",settingsOpen:ie}),ie||xe()},[xe]);kx(D);let _r=yx(D),{isSupported:On,togglePictureInPicture:oe}=Mx(S,pe,t,!k,w),W=Cx(D,K,w);z6(L,()=>({getMediaElement:()=>S.current,play:()=>w({type:"play"}),pause:()=>w({type:"pause"}),jumpTo:Be}),[Be]);let Z=Ge(()=>w({type:"togglePlay"}),[]),se=Ge(()=>{ce(0),w({type:"play"})},[ce]),Ne=xx({volume:G,canSeekBackward:me,canSeekForward:$e,canUseVolume:$,canUseCaptions:fe,dispatch:w,seekBy:We,seekToPercentage:tt,togglePlay:Z,toggleFullscreen:W,restart:se}),_n=ge.onKeyDown,zr=Ge(ie=>{_n(ie),Ne(ie)},[_n,Ne]),be=Ge(()=>{Re()||Z()},[Re,Z]),Ho=Ge(()=>w({type:"play"}),[]),Ox=Ge(()=>{w({type:"pause"}),C?.()},[C]),_x=Ge(ie=>{De.current=ie.currentTarget.duration,w({type:"pause"}),x?.()},[x,De]),zx=Ge(ie=>{let Vr=ie.currentTarget,Uo=Vr.currentTime;if(Uo-De.current<=SP)De.current=Math.max(De.current,Uo);else if(!r){Vr.currentTime=De.current;return}w({type:"timeUpdate",currentTime:Uo}),u?.(Uo)},[r,u,De]),[Vx,Hx]=H6(),Ux=Ge(ie=>{let{videoWidth:Vr,videoHeight:Uo}=ie.currentTarget;Hx(Vr>0&&Uo>0?Vr/Uo:void 0),w({type:"loaded",duration:ie.currentTarget.duration}),Pe(ie.currentTarget)},[Pe]),Ug=Ge(ie=>Pe(ie.currentTarget),[Pe]),Gx=Ge(ie=>{w({type:"ready"}),Pe(ie.currentTarget)},[Pe]),$x=Ge(ie=>{w({type:"durationChange",duration:ie.currentTarget.duration}),Pe(ie.currentTarget),b?.(ie)},[Pe,b]),Wx=Ge(()=>w({type:"buffering"}),[]),qx=Ge(()=>w({type:"ready"}),[]),Gg=!!t&&k,$g=!t||!k&&(!Number.isFinite(R)||R===0),Vs=$g||Gg;Px(D,Vs);let Hs=gx(S,(O[N.captionsTrackIndex]??O[0])?.srcLang,t,!k),Xx=fx(S,t,!k),Kx=Bx(S,t,!k,m),Yx=Hg(()=>Sg(Hs.length>0?Hs:l,R),[Hs,l,R]);return An("div",{className:Ql("cleen",I),style:M,children:Ax("div",{ref:D,className:Ql("cleen-group cleen-relative cleen-bg-[rgb(10,13,18)] cleen-shadow-md cleen-rounded-xl cleen-overflow-hidden focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",{"cleen-cursor-none":!Ve,"focus-visible:cleen-ring-0":z},P?.container),style:A?.container,onPointerMove:ge.onPointerMove,onPointerLeave:ge.onPointerLeave,onPointerDown:ge.onPointerDown,onFocus:ge.onFocus,onDoubleClick:W,onKeyDown:zr,tabIndex:0,children:[Ax("div",{className:Ql("cleen-relative cleen-flex cleen-justify-center cleen-items-center",{"cleen-h-full":z},P?.viewport),style:{aspectRatio:z?void 0:p==="auto"?Vx??Ps:p,...A?.viewport},children:[An(v,{...B,ref:S,src:t||void 0,controls:!1,playing:F,muted:E,volume:G,playbackRate:T,playsInline:!0,className:Ql("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",P?.video),style:A?.video,onClick:be,onPlay:Ho,onPause:Ox,onEnded:_x,onTimeUpdate:zx,onLoadedMetadata:Ux,onLoadedData:Ug,onCanPlay:Gx,onSeeked:Ug,onDurationChange:$x,onWaiting:Wx,onError:qx,crossOrigin:"anonymous",children:o.map(ie=>An("track",{kind:ie.kind??"subtitles",src:ie.src,srcLang:ie.srcLang,label:ie.label},ie.src))}),$g&&An(dx,{label:U.placeholder,subLabel:U.placeholderSubLabel,classNames:P,styles:A}),Gg&&An(re,{size:"xl",className:Ql("cleen-absolute",P?.loader?.className),classNames:P?.loader?.classNames,...A?.loader}),An(sx,{playing:F,seekStep:g,visible:Ve,hidden:Vs,controlsOnHover:qe,isShown:q,onTogglePlay:Z,onSeekBy:We,labels:U,classNames:P,styles:A})]}),An(cx,{compact:_r,containerRef:D,portalContainer:z?D.current:null,videoRef:S,src:t,state:N,dispatch:w,isShown:V,allowBarSeeking:c,chapters:Yx,buffered:Xx,quality:Kx,seekStep:g,hasTracks:_,captionTracks:O,captionStyle:X,onCaptionStyleChange:H,onSettingsOpenChange:ot,visible:Ve,hidden:Vs,controlsOnHover:qe,onSeek:ce,onSeekBy:We,onTogglePlay:Z,onToggleFullscreen:W,pictureInPictureSupported:On,onTogglePictureInPicture:oe,labels:U,classNames:P,styles:A})]})})});export{nS as AdvancedProgressBar,x3 as AudioPlayback,R3 as AudioRecorder,vi as Avatar,F3 as AvatarRow,_3 as Breadcrumb,ee as Button,z0 as Calendar,Z3 as CalendarDropdown,y3 as CanvasButton,he as Card,Ok as CardIcon,Uk as CardMedia,nT as Carousel,fl as Checkbox,fT as CheckboxGroup,Se as CleenIcon,vN as CleenNotificationContainer,pb as Collapsible,CT as ColorPicker,MT as CreditCardInput,Ml as DEFAULT_NOTIFICATION_CATEGORIES,kl as DEFAULT_NOTIFICATION_LABELS,gg as DEFAULT_VIDEO_PLAYER_LABELS,gt as Divider,G0 as Drawer,_C as DrawerContainer,CL as DrawerContentTitle,ul as Dropdown,lB as Dropzone,u3 as EditableCard,S0 as EditableText,k0 as EditableTextArea,uB as FileCard,J0 as FileStackedProgressTracker,oR as FilterDrawer,kI as FormGroup,uR as GroupSelector,op as Icon48AlertFeatured,np as Icon48SuccessFeatured,$o as IconAlertCircle,ap as IconAlertOctagon,cp as IconAlertTriangle,ip as IconApps,pp as IconArchive,dp as IconArrowBarDown,mp as IconArrowBarLeft,up as IconArrowBarRight,fp as IconArrowBarToDown,hp as IconArrowBarToLeft,gp as IconArrowBarToRight,yp as IconArrowBarToUp,vp as IconArrowBarUp,Ip as IconArrowDown,Cp as IconArrowDownLeft,xp as IconArrowDownNarrow,Sp as IconArrowDownRight,Mp as IconArrowLeft,Tp as IconArrowLeftNarrow,Rp as IconArrowRight,Lp as IconArrowRightNarrow,Dp as IconArrowUp,Fp as IconArrowUpLeft,Op as IconArrowUpNarrow,_p as IconArrowUpRight,zp as IconAttachment,Kr as IconBadgeHd,Vp as IconBarChart,Hp as IconBarChartSquare,Up as IconBell,Gp as IconBold,Yp as IconBookOpen,$p as IconBookmark,Ys as IconBookmarkCheck,Qs as IconBookmarkCheckFill,Wp as IconBookmarkFill,qp as IconBookmarkMinus,Js as IconBookmarkPlus,Kp as IconBookmarkX,Qp as IconBoxLines,Jp as IconBoxText,ed as IconBracketsCheck,td as IconBracketsEllipses,od as IconBrickWall,nd as IconBriefcase,js as IconBuilding,rd as IconCalculator,Jr as IconCalendar,ad as IconCertificate,Ut as IconCheck,Wo as IconCheckCircle,ld as IconCheckCircleBroken,cd as IconCheckFill,id as IconCheckVerified,sd as IconCheckVerifiedFill,jr as IconChevronDown,pd as IconChevronDownDouble,dd as IconChevronDownLeft,md as IconChevronDownLeftDouble,ud as IconChevronDownRight,fd as IconChevronDownRightDouble,Gt as IconChevronLeft,hd as IconChevronLeftDouble,nt as IconChevronRight,ea as IconChevronRightDouble,gd as IconChevronSelectorVertical,$t as IconChevronUp,yd as IconChevronUpDouble,vd as IconChevronUpLeft,bd as IconChevronUpLeftDouble,Id as IconChevronUpRight,Cd as IconChevronUpRightDouble,Pd as IconClick,xd as IconClock,Sd as IconClockFastForward,Md as IconClockPlay,kd as IconClockRewind,Td as IconClone,oa as IconClosedCaption,Nd as IconCode,Ld as IconCodeBrowser,Dd as IconCodeCircle,Ad as IconColors,ep as IconColumnEdit,Od as IconCopy,_d as IconCopy2,Vd as IconCopyCheck,Hd as IconCreditCard,Ud as IconCube,Gd as IconCubeOutline,na as IconCursorBox,$d as IconDataflow,Wd as IconDataflow2,qd as IconDataflow3,Kd as IconDistributeHorizontal,Yd as IconDollar,Zd as IconDollarCircle,Jd as IconDot,jd as IconDotFill,em as IconDotsGrid,om as IconDotsHorizontal,uo as IconDotsVertical,am as IconDownload,lm as IconEdit,im as IconEditable,sm as IconExpand,dm as IconExternalLink,um as IconExternalLink2,fm as IconEye,gm as IconEyeHidden,ym as IconEyeHidden2,vm as IconFaceAngry,bm as IconFaceLaugh,Im as IconFaceSmile,Xo as IconFile,Pm as IconFileCheck,ca as IconFileCsv,xm as IconFileDownload,ia as IconFileJson,Sm as IconFileList,lt as IconFileMusic,Ko as IconFilePdf,pa as IconFileSpreadsheet,qt as IconFileText,km as IconFileUpload,ma as IconFileXls,ua as IconFileXlsx,Pt as IconFileZip,Mm as IconFiles,Tm as IconFilter,fa as IconFilter2,Rm as IconFlag,Nm as IconFlag2,Lm as IconFlagFill,Em as IconFocus,Dm as IconFolder,Fm as IconFolderExport,Am as IconFolderImport,Om as IconGraduationCap,_m as IconGripVertical,zm as IconHand,Vm as IconHandShield,Hm as IconHash,Um as IconHeadsetMic,Gm as IconHeart,$m as IconHeartFill,qm as IconHouse,ga as IconHouseLine,_e as IconImage,Xm as IconImage2,Km as IconImageCheck,Ym as IconImageOff,Qm as IconImport,Zm as IconInbox,jm as IconInfoCircle,tu as IconInfoHexagon,nu as IconItalic,au as IconLayersMultiple,lu as IconLayersSingle,cu as IconLayout,su as IconLayout2,pu as IconLayoutColumns,du as IconLayoutCustom,uu as IconLayoutStuffed,fu as IconLayoutTile,hu as IconLifeBuoy,yu as IconLightbulb,vu as IconLightning,bu as IconLightningFast,Iu as IconLineChart,Cu as IconLineChartBar,Pu as IconLineChartBreakoutSquare,Su as IconLineChartUp,wu as IconLines,Mu as IconLinesCheck,ku as IconLinesPlay,Bu as IconLink,Ru as IconLink2,Nu as IconLinkOff,Lu as IconListBullet,Eu as IconListOrder,Fu as IconLock,Au as IconLockFill,_u as IconLogIn,Vu as IconLogOut,Uu as IconLogOut2,Gu as IconMagicWand,$u as IconMail,Wu as IconMailOpen,qu as IconMapPin,Pa as IconMaximize,Xu as IconMaximize2,Ku as IconMessageCircle,Qu as IconMessageSquare,Zu as IconMessageSquare2,Ju as IconMessageXSquare,Sa as IconMicrophone,wa as IconMinimize,ju as IconMinimize2,ef as IconMinusCircle,of as IconMobile,nf as IconMonitor,rf as IconMonitor2,af as IconMoon,lf as IconMoonCircle,ut as IconMovie,xt as IconName,cf as IconNavigationPointer,sf as IconNotificationBox,gf as IconPCSetup,pf as IconPackage,df as IconPalette,mf as IconPasscodeLock,ft as IconPause,ff as IconPauseCircle,vf as IconPen,bf as IconPercentageCircle,If as IconPerspective,Pf as IconPhoneCall,Ba as IconPictureInPicture,Ra as IconPin,ht as IconPlay,Sf as IconPlayCircle,Na as IconPlus,vo as IconPlusCircle,kf as IconPrinter,Tf as IconPulse,La as IconQuestionCircle,Rf as IconQuote,Nf as IconRadioButton,Lf as IconRadioButtonFill,Ef as IconReceipt,Df as IconReceiptCheck,Ff as IconRedo,Ea as IconRefresh,Af as IconRefresh2,Of as IconRefresh3,_f as IconRepeat,zf as IconReplace,Da as IconReplay,Hf as IconRestore,Gf as IconRocket,$f as IconRoundChart,Wf as IconRoundChart2,Xf as IconRoute,Yf as IconSave,Qf as IconScanDots,Fa as IconScissors,Xt as IconSearch,Zf as IconSend,Jf as IconServer,Aa as IconSettings,jf as IconSettings2,eh as IconShare,th as IconShieldLightning,nh as IconShieldPlus,ah as IconShieldRemove,lh as IconShoppingBag,ch as IconShoppingCart,ih as IconShrink,sh as IconShuffle,ph as IconSkipForward,dh as IconSlashCircle,mh as IconSlashOctagon,uh as IconSocialAndroid,fh as IconSocialApple,hh as IconSocialGithub,gh as IconSocialGlobe,yh as IconSocialGoogle,bh as IconSocialInstagram,Ih as IconSocialLinkedin,Ph as IconSocialMastercard,xh as IconSocialReact,Sh as IconSocialVisa,wh as IconSocialX,Ha as IconSpeedometer,Mh as IconStairs,Ua as IconStar,kh as IconStarFill,Th as IconStarHalf,Bh as IconStars,Ga as IconStop,Rh as IconStrikethrough,Nh as IconSun,Lh as IconSwap,Eh as IconSwitchHorizontal,Fh as IconTable,$a as IconTag,Ah as IconTarget,_h as IconTarget2,Vh as IconTextFormat,Hh as IconTextFormat2,Uh as IconTextHighlight,Gh as IconThumbsDown,$h as IconThumbsUp,Wh as IconThumbsUpFill,qh as IconToggle,Xh as IconTranslate,ct as IconTrash,Kh as IconTrending,Yh as IconUnderline,Qh as IconUndo,Jh as IconUnlock,Zo as IconUploadCloud,qa as IconUser,t0 as IconUserCheck,o0 as IconUserDollar,r0 as IconUserEdit,a0 as IconUserPlus,l0 as IconUserRight,s0 as IconUserSquare,tp as IconUserVoice,c0 as IconUsers,p0 as IconUsersUp,d0 as IconVideo,u0 as IconVideoChat,Ka as IconVolume,Ya as IconVolumeDown,Qa as IconVolumeMute,h0 as IconWrench,He as IconX,g0 as IconXCircle,y0 as IconXCircleFill,v0 as IconXSquare,b0 as IconZoomIn,C0 as IconZoomOut,ne as InfoLabels,ye as Input,ae as Label,re as Loader,PR as Lookup,kR as Markdown,mn as Menu,AR as Modal,yr as NOTIFICATION_GENERAL_CATEGORY,BE as NativeVideoEngine,NN as Pagination,N1 as PaginationGoToPage,L1 as PaginationPageSize,we as PillBadge,Bl as Popover,hr as ProgressBar,CC as ProgressCircle,qN as RadioBoxGroup,eL as RadioButtonGroup,aL as Rating,xg as ReactPlayerEngine,hL as Select,GC as Sidebar,Dl as SidebarItem,NL as Skeleton,z1 as SkeletonAvatar,H1 as SkeletonBadge,U1 as SkeletonBanner,$1 as SkeletonButton,Fl as SkeletonCard,us as SkeletonCard2,W1 as SkeletonCard3,X1 as SkeletonCardStack,K1 as SkeletonChart,Y1 as SkeletonContentCard,Q1 as SkeletonDataGrid,Z1 as SkeletonForm,j1 as SkeletonGlowingCard,eg as SkeletonImage,tg as SkeletonInfoCard,rg as SkeletonInput,ag as SkeletonList,ig as SkeletonParagraph,sg as SkeletonText,pg as SkeletonVideo,bs as SkeletonWidgetCard,aE as SkeletonWrapper,kn as Slider,dE as SliderRange,Q0 as StackedProgressTracker,W0 as StackedProgressTrackerRow,q0 as StackedProgressTrackerStatusFilter,fE as StarRating,sP as Stepper,m1 as Switch,vl as TRACKER_STATUS_FILTER_ORDER,Sl as Tabs,bE as TagFilter,M0 as TextArea,Ie as Tooltip,gl as TrackerItemStatus,yl as TrackerStatusFilter,Ps as VIDEO_PLAYER_ASPECT_RATIO_DEFAULT,vg as VIDEO_PLAYER_MAX_QUALITY_DEFAULT,yg as VIDEO_PLAYER_SEEK_STEP_DEFAULT,G6 as VideoPlayer,Wl as VideoPlayerControl,WI as createNotificationStore,Fr as formatTime,P0 as getFileIcon,Xl as getVideoChapterAt,DE as getVideoChapterIndex,wg as getVideoChapterProgress,Sg as getVideoChapters,I1 as groupLayout,C1 as listLayout,yn as notification,le as notificationStore,V0 as parseRgbaString,qI as showNotification,P1 as stackLayout,UR as useNotifications};
|